/* [project]/app/globals.css [app-client] (css) */
:root {
  --font-geist-sans: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR";
  --font-geist-mono: "SFMono-Regular", Consolas, "Liberation Mono";
  --paper: #f4efe5;
  --paper-light: #faf7f0;
  --paper-deep: #e9e1d3;
  --ink: #20201e;
  --ink-soft: #44443f;
  --muted: #77756d;
  --line: #d7cfc1;
  --line-dark: #aaa296;
  --coral: #ff6247;
  --coral-dark: #d84431;
  --green: #2d8063;
  --blue: #3d6f92;
  --yellow: #e8b84c;
  --sidebar-width: 248px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  min-width: 320px;
}

body {
  background: linear-gradient(90deg, #20201e06 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(#20201e05 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-geist-sans), "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

button, input, textarea, select {
  color: inherit;
  font: inherit;
}

button, a, select, input[type="file"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:not(:disabled), a, select {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .55;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #ff624752;
}

input, textarea, select {
  border: 1px solid var(--line-dark);
  background: #fffdf7b8;
  border-radius: 2px;
  outline: 0;
  width: 100%;
  transition: border-color .14s, box-shadow .14s, background .14s;
}

input, select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  min-height: 96px;
  padding: 12px 13px;
  line-height: 1.65;
}

input:hover, textarea:hover, select:hover {
  border-color: #77736c;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--coral);
  background: #fffdf7;
}

::placeholder {
  color: #a09b91;
  opacity: 1;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 34px;
}

label > span, .field-label {
  color: var(--ink-soft);
  letter-spacing: -.01em;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 750;
  display: block;
}

label > span em {
  color: var(--muted);
  margin-left: 5px;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.sr-only {
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  position: absolute !important;
  overflow: hidden !important;
}

.truncate {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.spin {
  animation: .8s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.primary-button, .secondary-button, .ink-button, .coral-button, .youtube-button {
  letter-spacing: -.01em;
  white-space: nowrap;
  border-radius: 2px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 780;
  transition: transform .14s, background .14s, box-shadow .14s;
  display: inline-flex;
}

.primary-button {
  background: var(--coral);
  color: #201d1b;
  box-shadow: 3px 3px 0 var(--ink);
}

.primary-button:hover:not(:disabled), .coral-button:hover:not(:disabled) {
  box-shadow: 4px 4px 0 var(--ink);
  background: #ff765f;
  transform: translate(-1px, -1px);
}

.primary-button:active:not(:disabled), .coral-button:active:not(:disabled) {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.secondary-button {
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 2px 2px 0 var(--ink);
}

.secondary-button:hover:not(:disabled) {
  box-shadow: 3px 3px 0 var(--ink);
  background: #fffdf8;
  transform: translate(-1px, -1px);
}

.ink-button {
  background: var(--ink);
  color: #fffaf0;
}

.ink-button:hover:not(:disabled) {
  background: #363632;
}

.coral-button {
  background: var(--coral);
  color: var(--ink);
  box-shadow: 3px 3px #fffaf0;
}

.youtube-button {
  color: #fff;
  background: #e6372f;
  width: 100%;
}

.youtube-button:hover:not(:disabled) {
  background: #c92d27;
}

.compact {
  min-height: 40px;
  padding: 0 14px;
}

.text-button, .copy-button {
  min-height: 42px;
  color: var(--ink);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--coral);
  text-decoration-color: var(--coral);
  text-underline-offset: 5px;
  background: none;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 12px;
  font-weight: 750;
  text-decoration-thickness: 2px;
  display: inline-flex;
}

.text-button:hover, .copy-button:hover {
  color: var(--coral-dark);
}

.icon-button {
  border: 1px solid var(--line);
  background: none;
  border-radius: 2px;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  display: inline-flex;
}

.icon-button:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--paper-light);
}

.studio-shell {
  min-height: 100vh;
  display: flex;
}

.studio-sidebar {
  z-index: 50;
  width: var(--sidebar-width);
  color: #f5f0e6;
  background: #242421;
  border-right: 1px solid #090909;
  flex-direction: column;
  padding: 22px 18px 16px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.brand-block {
  border-bottom: 1px solid #4d4d47;
  align-items: center;
  gap: 11px;
  padding: 0 3px 21px;
  display: flex;
}

.brand-mark, .login-mark, .mini-mark, .loading-logo {
  flex-direction: column;
  flex: none;
  justify-content: center;
  gap: 4px;
  display: flex;
  position: relative;
}

.brand-mark {
  background: none;
  border: 1px solid #eee7dc;
  border-radius: 2px;
  width: 38px;
  height: 38px;
  padding: 8px 7px;
}

.brand-mark span {
  background: #eee7dc;
  height: 3px;
  display: block;
}

.brand-mark span:nth-child(2) {
  background: var(--coral);
  width: 70%;
}

.brand-block > div:nth-child(2) {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.brand-block strong {
  letter-spacing: -.035em;
  font-size: 17px;
  font-weight: 820;
}

.brand-block > div > span {
  color: #9d9b94;
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: .09em;
  margin-top: 2px;
  font-size: 8px;
}

.sidebar-close {
  color: #eee8df;
  border-color: #4f4f49;
  margin-left: auto;
  display: none;
}

.live-indicator {
  color: #c6c2b8;
  background: #2c2c29;
  border: 1px solid #474741;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  margin: 15px 0 26px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 620;
  display: flex;
}

.live-indicator > span:last-child {
  color: #6fc39d;
  font-family: var(--font-geist-mono), monospace;
  margin-left: auto;
  font-size: 9px;
}

.live-dot, .server-state > span, .connected i, .codex-status-head b i, .backup-status i {
  background: #55b98b;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  display: inline-block;
  box-shadow: 0 0 0 3px #55b98b1f;
}

.side-nav .eyebrow {
  color: #77766f;
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: .16em;
  margin: 0 9px 8px;
  font-size: 9px;
}

.side-nav button {
  color: #b7b4ac;
  text-align: left;
  background: none;
  border-left: 3px solid #0000;
  grid-template-columns: 25px 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 48px;
  margin: 3px 0;
  padding: 0 10px;
  display: grid;
  position: relative;
}

.side-nav button:after {
  content: "";
  background: #30302d;
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 0;
}

.side-nav button:hover {
  color: #fff;
}

.side-nav button.active {
  border-left-color: var(--coral);
  color: #fffaf0;
  background: #30302d;
}

.side-nav button > span:nth-of-type(2) {
  min-width: 0;
  font-size: 13px;
  font-weight: 680;
}

.nav-index {
  color: #65645e;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.side-nav button.active .nav-index {
  color: var(--coral);
}

.nav-count {
  color: #aead9f;
  min-width: 21px;
  height: 21px;
  font-family: var(--font-geist-mono), monospace;
  border: 1px solid #55544d;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  display: inline-flex;
}

.project-pip {
  background: var(--coral);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-right: 7px;
}

.sidebar-new {
  color: #fffaf0;
  background: none;
  border: 1px solid #f1ebe1;
  border-radius: 2px;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  margin: 25px 0 18px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
}

.sidebar-new:hover {
  color: var(--ink);
  background: #f5efe5;
}

.sidebar-new span {
  color: #77756e;
  font-family: var(--font-geist-mono), monospace;
  margin-left: auto;
  font-size: 9px;
}

.sidebar-security {
  color: #aaa79f;
  background: #292927;
  border: 1px solid #484842;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  margin: 0 0 18px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 650;
  display: flex;
}

.sidebar-youtube {
  color: #d8d2c9;
  background: #302724;
  border: 1px solid #51423f;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  margin: -9px 0 7px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 680;
  display: flex;
}

.sidebar-youtube > svg {
  color: #ff5d50;
}

.sidebar-youtube:hover {
  color: #fff;
  background: #3a2c29;
  border-color: #8a5b53;
}

.sidebar-youtube > span {
  color: #89867f;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 7px;
  display: inline-flex;
}

.sidebar-youtube > span i {
  background: #77756e;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.sidebar-youtube > span.configured {
  color: #d0a65b;
}

.sidebar-youtube > span.configured i {
  background: #d0a65b;
}

.sidebar-youtube > span.connected {
  color: #6fc39d;
}

.sidebar-guidelines {
  color: #d8d8cf;
  background: #26312d;
  border: 1px solid #40534b;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  margin: 0 0 7px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 680;
  display: flex;
}

.sidebar-guidelines > svg {
  color: #8fc9b5;
}

.sidebar-guidelines:hover {
  color: #fff;
  background: #2d3b36;
  border-color: #6e8e81;
}

.sidebar-guidelines > span {
  color: #898f89;
  margin-left: auto;
  font-size: 7px;
}

.sidebar-guidelines > span.ready {
  color: #76c8a3;
}

.sidebar-security svg:last-child {
  color: #77756e;
  margin-left: auto;
}

.sidebar-security:hover {
  color: #fffaf0;
  background: #30302d;
  border-color: #77756e;
}

.storage-mini {
  border-top: 1px solid #484842;
  border-bottom: 1px solid #484842;
  margin-top: auto;
  padding: 14px 11px;
}

.storage-mini > div:first-child {
  align-items: center;
  gap: 7px;
  display: flex;
}

.storage-mini strong {
  font-size: 10px;
  font-weight: 650;
}

.storage-mini > div:first-child span {
  color: var(--coral);
  font-family: var(--font-geist-mono), monospace;
  margin-left: auto;
  font-size: 10px;
}

.storage-track, .progress-track {
  background: #55544e;
  width: 100%;
  overflow: hidden;
}

.storage-track {
  height: 4px;
  margin: 10px 0 8px;
}

.storage-track i, .progress-track i {
  background: var(--coral);
  height: 100%;
  display: block;
}

.storage-mini p {
  color: #85837c;
  font-family: var(--font-geist-mono), monospace;
  margin: 0;
  font-size: 8px;
}

.sidebar-foot {
  color: #77756e;
  font-family: var(--font-geist-mono), monospace;
  justify-content: space-between;
  align-items: center;
  padding: 15px 7px 0;
  font-size: 8px;
  display: flex;
}

.server-state {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.server-state > span {
  width: 6px;
  height: 6px;
}

.studio-main {
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  margin-left: var(--sidebar-width);
}

.topbar {
  z-index: 35;
  border-bottom: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #f4efe5eb;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 clamp(22px, 3vw, 46px);
  display: flex;
  position: sticky;
  top: 0;
}

.breadcrumbs {
  min-width: 0;
  color: var(--muted);
  align-items: center;
  gap: 8px;
  font-size: 11px;
  display: flex;
}

.breadcrumbs strong {
  max-width: 46vw;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 720;
  overflow: hidden;
}

.top-actions {
  align-items: center;
  gap: 9px;
  display: flex;
}

.security-button {
  background: #faf7f08c;
}

.youtube-top-button {
  color: #a43a31;
  background: #faf7f08c;
  position: relative;
}

.youtube-top-button.is-connected {
  color: #d9342b;
  border-color: #c3978e;
}

.youtube-top-button > i {
  border: 1px solid var(--paper-light);
  background: #55b98b;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  position: absolute;
  bottom: 5px;
  right: 5px;
}

.guidelines-top-button {
  color: var(--green);
  background: #faf7f08c;
  position: relative;
}

.guidelines-top-button.is-ready {
  border-color: #91bda3;
}

.guidelines-top-button > i {
  border: 1px solid var(--paper-light);
  background: #55b98b;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  position: absolute;
  bottom: 5px;
  right: 5px;
}

.mobile-brand, .mobile-nav {
  display: none;
}

.api-error {
  z-index: 30;
  border: 1px solid #b84938;
  border-left: 5px solid var(--coral-dark);
  color: #6e291f;
  background: #fff2ea;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 15px clamp(22px, 3vw, 46px) 0;
  padding: 12px 14px;
  display: grid;
  position: relative;
}

.api-error div {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.api-error strong {
  font-size: 12px;
}

.api-error span {
  font-size: 11px;
  line-height: 1.45;
}

.api-error button {
  min-height: 36px;
  color: inherit;
  background: none;
  border: 1px solid;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 750;
}

.workspace {
  width: 100%;
  min-height: calc(100vh - 68px);
  padding: clamp(28px, 4vw, 52px) clamp(22px, 3vw, 46px) 64px;
  transition: opacity .14s;
}

.workspace.is-loading {
  opacity: .68;
}

.page-stack {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.page-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 32px;
  display: flex;
}

.page-heading h1, .project-heading h1 {
  letter-spacing: -.065em;
  margin: 5px 0 7px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 840;
  line-height: 1.05;
}

.page-heading p, .project-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.kicker {
  color: var(--coral-dark);
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: .15em;
  font-size: 9px;
  font-weight: 700;
}

.metric-strip {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 26px;
  display: grid;
}

.metric {
  border-right: 1px solid var(--line-dark);
  background: #faf7f06b;
  min-height: 132px;
  padding: 18px 20px 15px;
  position: relative;
}

.metric:last-child {
  border-right: 0;
}

.metric.accent {
  background: var(--coral);
}

.metric-index {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  position: absolute;
  top: 13px;
  right: 14px;
}

.metric.accent .metric-index {
  color: #20201e99;
}

.metric > div {
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  display: flex;
}

.metric > div > span {
  padding-bottom: 7px;
  font-size: 11px;
  font-weight: 760;
}

.metric strong {
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: -.08em;
  font-size: 47px;
  font-weight: 520;
  line-height: 1;
}

.metric p {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 9px;
}

.metric.accent p {
  color: #20201ead;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 22px;
  display: grid;
}

.work-panel {
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--ink);
  background: #faf7f0b3;
  border-radius: 1px;
}

.section-title {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  display: flex;
}

.section-title > span {
  background: var(--ink);
  width: 22px;
  height: 22px;
  color: var(--paper);
  font-family: var(--font-geist-mono), monospace;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  display: inline-flex;
}

.section-title h2 {
  letter-spacing: -.025em;
  margin: 0;
  font-size: 13px;
  font-weight: 780;
}

.section-title em {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: .08em;
  margin-left: auto;
  font-size: 8px;
  font-style: normal;
}

.focus-list {
  padding: 0 16px;
}

.focus-row {
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: none;
  grid-template-columns: 25px 4px minmax(160px, 1fr) auto 116px 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 0 2px;
  display: grid;
}

.focus-row:last-child {
  border-bottom: 0;
}

.focus-row:hover {
  background: #ffffff75;
}

.focus-order {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.status-bar {
  background: var(--blue);
  width: 4px;
  height: 30px;
}

.status-bar.status-script {
  background: #9a6f9b;
}

.status-bar.status-production {
  background: var(--coral);
}

.status-bar.status-review {
  background: var(--yellow);
}

.status-bar.status-ready {
  background: var(--green);
}

.status-bar.status-published {
  background: #77756d;
}

.focus-main {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.focus-main strong {
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 740;
  overflow: hidden;
}

.focus-main > span {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.status-chip {
  color: #294c64;
  white-space: nowrap;
  background: #dbe7ed;
  border: 1px solid #63829b;
  justify-content: center;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 750;
  display: inline-flex;
}

.status-chip.status-script {
  color: #61455f;
  background: #eadcec;
  border-color: #9a7699;
}

.status-chip.status-production {
  color: #883629;
  background: #ffe0d8;
  border-color: #c85b48;
}

.status-chip.status-review {
  color: #76591f;
  background: #fae9ba;
  border-color: #ba9141;
}

.status-chip.status-ready {
  color: #275b46;
  background: #d5ebe0;
  border-color: #4e8b72;
}

.status-chip.status-published {
  color: #56534e;
  background: #e6e2da;
  border-color: #8e8b84;
}

.focus-due {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  font-size: 10px;
  display: flex;
}

.row-arrow {
  color: var(--line-dark);
}

.focus-row:hover .row-arrow {
  color: var(--coral-dark);
  transform: translateX(2px);
}

.storage-panel, .activity-panel, .pipeline-panel {
  min-width: 0;
}

.storage-overview {
  padding: 15px 16px 16px;
}

.drive-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  display: grid;
}

.archive-drive {
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding-top: 17px;
}

.drive-icon, .asset-icon {
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: inline-flex;
}

.drive-row > div {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.drive-row strong {
  font-size: 11px;
}

.drive-row span {
  color: var(--muted);
  font-size: 8px;
}

.drive-row b {
  font-size: 9px;
  font-weight: 650;
}

.drive-row b.connected, .drive-row b.disconnected {
  color: var(--green);
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.drive-row b.disconnected {
  color: var(--coral-dark);
}

.drive-row b.disconnected i {
  background: var(--coral-dark);
}

.progress-block > div:first-child {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 8px;
  display: flex;
}

.progress-block strong {
  color: var(--ink);
  font-weight: 600;
}

.progress-track {
  background: var(--paper-deep);
  height: 5px;
}

.storage-caption, .codex-safety {
  border-left: 2px solid var(--coral);
  background: var(--paper-deep);
  color: var(--muted);
  align-items: flex-start;
  gap: 7px;
  margin: 16px 0 0;
  padding: 10px;
  font-size: 9px;
  line-height: 1.5;
  display: flex;
}

.pipeline-bars {
  padding: 14px 16px 17px;
}

.pipeline-row {
  grid-template-columns: 64px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  min-height: 31px;
  display: grid;
}

.pipeline-row > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 680;
}

.pipeline-row > div {
  background: var(--paper-deep);
  height: 5px;
}

.pipeline-row i {
  background: var(--ink);
  height: 100%;
  display: block;
}

.pipeline-row:nth-child(3) i {
  background: var(--coral);
}

.pipeline-row strong {
  font-family: var(--font-geist-mono), monospace;
  text-align: right;
  font-size: 9px;
  font-weight: 500;
}

.activity-list, .mini-activity {
  min-width: 0;
}

.activity-panel .activity-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 7px 16px 11px;
  display: grid;
}

.activity-item {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 11px 8px;
  display: grid;
}

.activity-panel .activity-item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.activity-dot {
  border: 2px solid var(--coral);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-top: 4px;
}

.activity-item div {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.activity-item strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 670;
  overflow: hidden;
}

.activity-item p {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 9px;
  overflow: hidden;
}

.activity-item time {
  color: #99958c;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.panel-empty {
  color: var(--muted);
  text-align: center;
  margin: 0;
  padding: 22px 16px;
  font-size: 10px;
}

.focus-panel {
  grid-area: 1 / 1;
}

.storage-panel {
  grid-area: 1 / 2;
}

.pipeline-panel {
  grid-area: 2 / 2;
}

.activity-panel {
  grid-area: 2 / 1;
}

.empty-state {
  border: 1px dashed var(--line-dark);
  min-height: 340px;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 42px 24px;
  display: flex;
}

.empty-state > svg {
  color: var(--coral-dark);
  margin-bottom: 13px;
}

.empty-state > strong {
  color: var(--ink);
  font-size: 14px;
}

.empty-state > p {
  max-width: 410px;
  margin: 7px 0 18px;
  font-size: 11px;
  line-height: 1.55;
}

.empty-state.compact {
  border: 0;
  min-height: 190px;
}

.heading-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}

.search-field {
  align-items: center;
  width: 230px;
  display: flex;
  position: relative;
}

.search-field svg {
  color: var(--muted);
  position: absolute;
  left: 12px;
}

.search-field input {
  padding-left: 39px;
}

.board-legend {
  color: var(--muted);
  align-items: center;
  gap: 18px;
  margin: -11px 0 15px;
  font-size: 8px;
  display: flex;
}

.board-legend span {
  align-items: center;
  gap: 5px;
  display: flex;
}

.board-legend i {
  background: var(--line-dark);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.board-legend i.coral {
  background: var(--coral);
}

.board-legend em {
  margin-left: auto;
  font-style: normal;
  display: none;
}

.kanban {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  min-width: 1120px;
  display: grid;
}

.board-page {
  overflow: hidden;
}

.board-page .kanban {
  overflow: visible;
}

.kanban-column {
  border-right: 1px solid var(--line-dark);
  min-width: 0;
}

.kanban-column:last-child {
  border-right: 0;
}

.kanban-head {
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper-deep);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 12px;
  display: grid;
}

.kanban-head > span {
  color: var(--coral-dark);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.kanban-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 780;
}

.kanban-head b {
  border: 1px solid var(--line-dark);
  width: 22px;
  height: 22px;
  font-family: var(--font-geist-mono), monospace;
  justify-content: center;
  align-items: center;
  font-size: 8px;
  font-weight: 550;
  display: inline-flex;
}

.kanban-list {
  background: #ebe4d759;
  flex-direction: column;
  gap: 10px;
  min-height: 510px;
  padding: 11px;
  display: flex;
}

.project-card {
  border: 1px solid var(--line-dark);
  background: var(--paper-light);
  text-align: left;
  border-radius: 1px;
  width: 100%;
  min-height: 190px;
  padding: 13px 13px 11px;
  transition: transform .13s, box-shadow .13s, border-color .13s;
  display: block;
  position: relative;
  box-shadow: 2px 2px #20201e1f;
}

.project-card:before {
  background: var(--ink);
  content: "";
  width: 32px;
  height: 3px;
  position: absolute;
  top: -1px;
  left: 13px;
}

.project-card.urgent:before {
  background: var(--coral);
}

.project-card:hover {
  z-index: 2;
  border-color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px #20201e29;
}

.card-ticket {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 14px;
  font-size: 8px;
  display: flex;
}

.project-card h3 {
  letter-spacing: -.035em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 38px;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
}

.project-card > p {
  min-height: 30px;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0 0 13px;
  font-size: 9px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
}

.card-meta {
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  display: flex;
}

.card-meta > span:last-child {
  color: var(--muted);
  align-items: center;
  gap: 4px;
  font-size: 8px;
  display: flex;
}

.card-meta .urgent-date {
  font-weight: 750;
  color: var(--coral-dark) !important;
}

.card-progress {
  background: var(--paper-deep);
  height: 3px;
  margin: 12px 0 0;
  position: relative;
}

.card-progress i {
  background: var(--coral);
  height: 100%;
  display: block;
}

.card-progress span {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
  position: absolute;
  top: -11px;
  right: 0;
}

.card-foot {
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
  padding-top: 8px;
  font-size: 7px;
  display: flex;
}

.card-foot > span:last-child {
  color: var(--ink);
  align-items: center;
  display: flex;
}

.empty-column {
  border: 1px dashed var(--line-dark);
  min-height: 118px;
  color: var(--muted);
  background: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.empty-column span {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 650;
}

.empty-column small {
  color: #9b978f;
  margin-top: 2px;
  font-size: 8px;
}

.scripts-page {
  max-width: 1320px;
}

.script-library-tabs {
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: 3px 3px 0 var(--ink);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
  display: grid;
}

.script-library-tabs > button {
  border-right: 1px solid var(--ink);
  min-height: 72px;
  color: var(--muted);
  text-align: left;
  background: none;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  display: grid;
  position: relative;
}

.script-library-tabs > button:last-child {
  border-right: 0;
}

.script-library-tabs > button:after {
  content: "";
  background: none;
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.script-library-tabs > button.active {
  color: var(--ink);
  background: #fffaf2;
}

.script-library-tabs > button.active:after {
  background: var(--coral);
}

.script-library-tabs > button > svg {
  justify-self: center;
}

.script-library-tabs > button > span {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.script-library-tabs strong {
  font-size: 13px;
  font-weight: 790;
}

.script-library-tabs small {
  color: var(--muted);
  font-size: 8px;
}

.script-library-tabs b {
  border: 1px solid var(--line-dark);
  background: var(--paper-light);
  min-width: 27px;
  height: 27px;
  font-family: var(--font-geist-mono), monospace;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  display: inline-flex;
}

.script-toolbar {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line-dark);
  background: #faf7f08c;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  min-height: 72px;
  margin-bottom: 19px;
  padding: 13px 16px;
  display: flex;
}

.script-toolbar label {
  width: min(440px, 65%);
}

.script-workspace {
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.55fr);
  align-items: start;
  gap: 22px;
  display: grid;
}

.idea-workspace {
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.62fr);
}

.generator-panel {
  border: 1px solid var(--ink);
  border-top: 5px solid var(--coral);
  background: linear-gradient(90deg, transparent 23px, #ff62471f 24px, transparent 25px),
    var(--paper-light);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 27px 24px 24px;
  position: sticky;
  top: 91px;
  overflow: hidden;
}

.generator-stamp {
  background: var(--coral);
  width: 118px;
  font-family: var(--font-geist-mono), monospace;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  font-size: 8px;
  display: flex;
  position: absolute;
  top: 16px;
  right: -25px;
  transform: rotate(33deg);
}

.generator-panel h2 {
  letter-spacing: -.055em;
  margin: 11px 0 8px;
  font-size: 25px;
  font-weight: 830;
}

.generator-panel > p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 11px;
  line-height: 1.65;
}

.generator-panel textarea {
  background: #fffdf8;
}

.count-control {
  justify-content: space-between;
  align-items: center;
  margin: 17px 0;
  display: flex;
}

.count-control > span {
  font-size: 11px;
  font-weight: 700;
}

.count-control > div {
  border: 1px solid var(--ink);
  display: flex;
}

.count-control button {
  border-right: 1px solid var(--ink);
  min-width: 48px;
  min-height: 36px;
  font-family: var(--font-geist-mono), monospace;
  background: none;
  font-size: 9px;
}

.count-control button:last-child {
  border-right: 0;
}

.count-control button.active {
  background: var(--ink);
  color: #fff;
}

.generator-panel .ink-button {
  width: 100%;
}

.generator-panel > small {
  color: var(--muted);
  text-align: center;
  margin-top: 13px;
  font-size: 8px;
  line-height: 1.5;
  display: block;
}

.idea-generator-panel {
  border-top-color: var(--green);
  background: linear-gradient(90deg, transparent 23px, #2d80631a 24px, transparent 25px),
    var(--paper-light);
}

.idea-generator-panel .generator-stamp {
  background: #8fc9b5;
}

.generator-guide-status {
  width: 100%;
  min-height: 58px;
  color: var(--ink);
  text-align: left;
  background: #edf7f1;
  border: 1px solid #9cb7ab;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  margin: -10px 0 19px;
  padding: 8px 9px;
  display: grid;
}

.generator-guide-status:hover {
  border-color: var(--green);
  background: #f4fbf7;
}

.generator-guide-status.missing {
  background: #fff8e7;
  border-color: #c7ad70;
}

.generator-guide-icon {
  background: var(--green);
  color: #fff;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  display: inline-flex;
}

.generator-guide-status.missing .generator-guide-icon {
  background: #a77925;
}

.generator-guide-status > span:nth-child(2) {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.generator-guide-status small {
  color: var(--muted);
  font-size: 7px;
}

.generator-guide-status strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 9px;
  display: flex;
  overflow: hidden;
}

.generator-guide-status strong em {
  color: var(--green);
  font-family: var(--font-geist-mono), monospace;
  border: 1px solid #9cb7ab;
  flex: none;
  padding: 2px 4px;
  font-size: 6px;
  font-style: normal;
  font-weight: 700;
}

.generator-guide-status > svg {
  color: var(--muted);
}

.idea-format-control {
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  display: flex;
}

.idea-format-control > span {
  font-size: 11px;
  font-weight: 700;
}

.idea-format-control > div {
  border: 1px solid var(--ink);
  display: flex;
}

.idea-format-control button {
  border-right: 1px solid var(--ink);
  background: none;
  min-width: 64px;
  min-height: 36px;
  font-size: 9px;
  font-weight: 700;
}

.idea-format-control button:last-child {
  border-right: 0;
}

.idea-format-control button.active {
  background: var(--green);
  color: #fff;
}

.script-collection {
  min-width: 0;
}

.collection-head {
  border-bottom: 1px solid var(--ink);
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  min-height: 67px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  display: flex;
}

.collection-head h2 {
  letter-spacing: -.045em;
  margin: 4px 0 0;
  font-size: 23px;
  font-weight: 820;
}

.collection-head h2 b {
  border: 1px solid var(--line-dark);
  min-width: 24px;
  height: 24px;
  font-family: var(--font-geist-mono), monospace;
  vertical-align: 3px;
  justify-content: center;
  align-items: center;
  margin-left: 5px;
  font-size: 9px;
  display: inline-flex;
}

.idea-filter {
  scrollbar-width: thin;
  gap: 5px;
  margin: -1px 0 12px;
  padding: 0 0 5px;
  display: flex;
  overflow-x: auto;
}

.idea-filter button {
  border: 1px solid var(--line-dark);
  min-height: 34px;
  color: var(--muted);
  background: #faf7f09e;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
}

.idea-filter button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.idea-filter button span {
  min-width: 17px;
  height: 17px;
  font-family: var(--font-geist-mono), monospace;
  background: #20201e1a;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 7px;
  display: inline-flex;
}

.idea-filter button.active span {
  background: #ffffff2b;
}

.script-composer, .incident-form {
  border: 1px solid var(--ink);
  border-left: 4px solid var(--coral);
  background: var(--paper-light);
  margin-bottom: 13px;
  padding: 18px;
}

.idea-composer {
  border-left-color: var(--green);
}

.composer-note {
  border-left: 3px solid var(--coral);
  color: #6f4b43;
  background: #fff0e9;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 17px;
  padding: 10px 11px;
  font-size: 9px;
  line-height: 1.55;
  display: flex;
}

.composer-note svg {
  color: var(--coral-dark);
  flex: none;
}

.script-composer > label, .incident-form > label, .instructions-form > label, .modal form > label, .publish-form-panel form > label {
  margin-bottom: 16px;
  display: block;
}

.form-row {
  gap: 14px;
  margin-bottom: 16px;
  display: grid;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.three {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.form-row.idea-form-row {
  grid-template-columns: minmax(0, 1.7fr) minmax(100px, .65fr) minmax(100px, .65fr);
}

.form-row label {
  min-width: 0;
}

.form-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  display: flex;
}

.script-list {
  flex-direction: column;
  gap: 9px;
  display: flex;
}

.script-card {
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--ink);
  background: #faf7f0b3;
}

.script-card.expanded {
  border-color: var(--ink);
  border-left-color: var(--coral);
  background: var(--paper-light);
}

.script-idea-card {
  border-left-color: var(--green);
}

.script-idea-card.expanded {
  border-left-color: var(--coral);
}

.script-idea-card.converted {
  border-left-color: var(--blue);
  background: #f0f6f9b3;
}

.script-card-head {
  text-align: left;
  background: none;
  grid-template-columns: 46px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 0 15px;
  display: grid;
}

.script-idea-head {
  grid-template-columns: 46px minmax(0, 1fr) auto auto 22px;
}

.idea-format-badge {
  border: 1px solid var(--line-dark);
  color: var(--ink-soft);
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: .04em;
  padding: 5px 7px;
  font-size: 7px;
  font-weight: 700;
}

.version-index {
  color: var(--coral-dark);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 700;
}

.script-title {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.script-title strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 760;
  overflow: hidden;
}

.script-title small {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.script-status {
  border: 1px solid var(--line-dark);
  min-height: 23px;
  color: var(--muted);
  align-items: center;
  padding: 0 8px;
  font-size: 8px;
  font-weight: 700;
  display: inline-flex;
}

.script-status.approved {
  border-color: var(--green);
  color: var(--green);
}

.script-status.review {
  color: #86651f;
  border-color: #b88d32;
}

.script-status.converted {
  border-color: var(--blue);
  color: var(--blue);
}

.script-card-head > svg {
  color: var(--muted);
  transition: transform .14s;
}

.script-card.expanded .script-card-head > svg {
  transform: rotate(90deg);
}

.script-card-body {
  padding: 0 18px 18px 76px;
  position: relative;
}

.script-card-body pre {
  border-top: 1px solid var(--line);
  font-family: var(--font-geist-sans), sans-serif;
  white-space: pre-wrap;
  word-break: keep-all;
  background: #fffcf5;
  margin: 0;
  padding: 18px;
  font-size: 11px;
  line-height: 1.75;
}

.script-idea-body {
  padding-bottom: 16px;
}

.idea-card-actions {
  border-top: 1px dashed var(--line-dark);
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
}

.idea-status-control {
  flex: none;
  width: 145px;
}

.idea-status-control > span {
  margin-bottom: 4px;
  font-size: 8px;
}

.idea-status-control select {
  min-height: 38px;
  font-size: 10px;
}

.idea-action-buttons {
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  display: flex;
}

.idea-action-buttons .copy-button {
  margin-top: 0;
}

.converted-note {
  min-height: 38px;
  color: var(--blue);
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
}

.prompt-note {
  background: var(--paper-deep);
  color: var(--muted);
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px;
  font-size: 9px;
  line-height: 1.5;
  display: flex;
}

.prompt-note span {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.prompt-note b {
  color: var(--ink);
  font-size: 8px;
}

.copy-button {
  margin-top: 9px;
}

.inline-loading {
  min-height: 300px;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  display: flex;
}

.project-page {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.project-heading {
  padding-bottom: 25px;
}

.back-button {
  min-height: 40px;
  color: var(--muted);
  background: none;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
}

.back-button:hover {
  color: var(--ink);
}

.project-title-row {
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  display: flex;
}

.project-title-row h1 {
  max-width: 920px;
  margin-bottom: 0;
}

.project-state-block {
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
  display: flex;
}

.project-state-block > span:last-child {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  font-size: 10px;
  display: flex;
}

.project-tabs {
  z-index: 25;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  scrollbar-width: none;
  background: #f4efe5f5;
  display: flex;
  position: sticky;
  top: 68px;
  overflow-x: auto;
}

.project-tabs::-webkit-scrollbar {
  display: none;
}

.project-tabs button {
  border-right: 1px solid var(--line-dark);
  min-width: max-content;
  min-height: 51px;
  color: var(--muted);
  background: none;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  position: relative;
}

.project-tabs button.active {
  background: var(--ink);
  color: #fffaf0;
}

.project-tabs button > span {
  color: #9a968d;
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
}

.project-tabs button.active > span {
  color: var(--coral);
}

.project-tabs button b {
  background: var(--coral);
  width: 17px;
  height: 17px;
  color: var(--ink);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 8px;
  display: inline-flex;
}

.project-content {
  padding-top: 24px;
}

.overview-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, .72fr);
  gap: 22px;
  display: grid;
}

.overview-main, .overview-rail {
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  display: flex;
}

.brief-copy {
  color: var(--ink-soft);
  white-space: pre-wrap;
  margin: 0;
  padding: 23px 22px 18px;
  font-size: 13px;
  line-height: 1.75;
}

.brief-meta {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 20px;
  display: grid;
}

.brief-meta div {
  border-right: 1px solid var(--line);
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 13px 12px;
  display: flex;
}

.brief-meta div:last-child {
  border-right: 0;
}

.brief-meta span {
  color: var(--muted);
  font-size: 8px;
}

.brief-meta strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.brief-panel > .text-button {
  margin: 8px 20px 14px;
}

.task-heading .section-title {
  border-bottom: 0;
}

.task-progress {
  background: var(--paper-deep);
  height: 4px;
  margin: 0 16px 12px;
}

.task-progress i {
  background: var(--coral);
  height: 100%;
  display: block;
}

.quick-task-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 16px 10px;
  display: grid;
}

.quick-task-form input {
  border-right: 0;
}

.quick-task-form button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: 78px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
}

.task-list {
  padding: 0 16px 13px;
}

.task-row {
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: none;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 53px;
  padding: 5px 2px;
  display: grid;
}

.task-check {
  border: 1px solid var(--line-dark);
  background: var(--paper-light);
  justify-content: center;
  align-items: center;
  width: 21px;
  height: 21px;
  display: inline-flex;
}

.task-row.done .task-check {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.task-row > span:nth-child(2) {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.task-row strong {
  font-size: 11px;
  font-weight: 650;
}

.task-row small {
  color: var(--muted);
  font-size: 9px;
}

.task-row em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.task-row.done strong {
  color: var(--muted);
  text-decoration: line-through;
}

.preview-panel {
  border: 1px solid var(--ink);
  color: #fff;
  background: #191918;
  overflow: hidden;
}

.preview-head {
  height: 39px;
  font-family: var(--font-geist-mono), monospace;
  border-bottom: 1px solid #454540;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  font-size: 8px;
  display: flex;
}

.preview-head b {
  color: #6fc39d;
  align-items: center;
  gap: 5px;
  font-size: 7px;
  display: flex;
}

.preview-head b i {
  background: #6fc39d;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.preview-head b.muted {
  color: #8b8a82;
}

.preview-panel video {
  background: #000;
  width: 100%;
  max-height: 420px;
  display: block;
}

.preview-empty {
  color: #fff;
  background: linear-gradient(45deg, #1c1c1a 25%, #20201e 25% 50%, #1c1c1a 50% 75%, #20201e 75%) 0 0 / 14px 14px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 260px;
  padding: 25px;
  display: flex;
}

.preview-empty > span {
  width: 62px;
  height: 62px;
  color: var(--coral);
  background: #0000004d;
  border: 1px solid #77756e;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  display: inline-flex;
}

.preview-empty strong {
  font-size: 12px;
}

.preview-empty small {
  color: #9e9b94;
  max-width: 220px;
  margin-top: 6px;
  font-size: 8px;
  line-height: 1.5;
}

.status-editor {
  padding-bottom: 14px;
}

.status-editor label {
  margin: 14px 16px 10px;
  display: block;
}

.status-editor p {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  margin: 0 16px;
  font-size: 8px;
  display: flex;
}

.mini-activity {
  padding-bottom: 8px;
}

.mini-activity .activity-item {
  margin: 0 9px;
}

.project-script-workspace {
  max-width: 1280px;
  margin: 0 auto;
}

.assets-layout {
  grid-template-columns: minmax(260px, .63fr) minmax(0, 1.55fr);
  align-items: start;
  gap: 24px;
  display: grid;
}

.asset-upload-panel {
  border: 1px solid var(--ink);
  border-top: 5px solid var(--coral);
  background: var(--paper-light);
  padding: 23px;
  position: sticky;
  top: 143px;
}

.asset-upload-panel h2, .incident-header h2, .publish-form-panel h2, .codex-hero h2, .instructions-note h2 {
  letter-spacing: -.055em;
  margin: 7px 0 8px;
  font-size: 26px;
  font-weight: 830;
}

.asset-upload-panel > p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 10px;
  line-height: 1.6;
}

.drop-zone {
  border: 1px dashed var(--line-dark);
  min-height: 190px;
  color: var(--muted);
  cursor: pointer;
  background: linear-gradient(90deg, #20201e06 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#20201e06 1px, #0000 1px) 0 0 / 18px 18px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  display: flex;
}

.drop-zone.dragging, .drop-zone:hover {
  border-color: var(--coral-dark);
  color: var(--coral-dark);
  background-color: #fff1e8;
}

.drop-zone strong {
  color: var(--ink);
  margin: 11px 0 4px;
  font-size: 11px;
}

.drop-zone > span {
  font-size: 8px;
}

.drop-zone input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.asset-upload-panel > small {
  color: var(--muted);
  gap: 6px;
  margin-top: 11px;
  font-size: 8px;
  line-height: 1.5;
  display: flex;
}

.video-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 14px;
  display: grid;
}

.video-asset {
  border: 1px solid var(--ink);
  background: var(--paper-light);
  min-width: 0;
}

.video-asset video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
  width: 100%;
  display: block;
}

.video-asset > div {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 7px 9px;
  display: grid;
}

.video-asset .asset-icon {
  width: 32px;
  height: 32px;
}

.video-asset p {
  flex-direction: column;
  gap: 3px;
  margin: 0;
  display: flex;
  overflow: hidden;
}

.video-asset p strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.video-asset p small {
  color: var(--muted);
  font-size: 8px;
}

.video-asset a, .asset-row > a {
  width: 34px;
  height: 34px;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.asset-list {
  border-top: 1px solid var(--ink);
}

.asset-row {
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 40px minmax(150px, 1fr) minmax(150px, .7fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 8px 7px;
  display: grid;
}

.asset-row .asset-icon {
  width: 36px;
  height: 36px;
}

.asset-row > div {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.asset-row > div strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.asset-row > div span {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
}

.asset-row audio {
  width: 100%;
  height: 34px;
}

.asset-row img {
  object-fit: cover;
  width: 70px;
  height: 44px;
}

.instructions-layout {
  grid-template-columns: minmax(270px, .67fr) minmax(0, 1.45fr);
  gap: 25px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
}

.instructions-note {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fffaf0;
  min-height: 440px;
  padding: 29px 27px;
  position: relative;
}

.instructions-note:after {
  border-top: 55px solid #0000;
  border-right: 55px solid var(--coral);
  content: "";
  width: 55px;
  height: 55px;
  position: absolute;
  bottom: 0;
  right: 0;
}

.note-number {
  color: var(--coral);
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: .1em;
  font-size: 9px;
}

.instructions-note h2 {
  margin-top: 45px;
  font-size: 30px;
  line-height: 1.25;
}

.instructions-note > p {
  color: #aaa79f;
  font-size: 11px;
  line-height: 1.75;
}

.note-tip {
  color: var(--coral);
  border-top: 1px solid #4d4c47;
  gap: 10px;
  margin-top: 32px;
  padding-top: 17px;
  display: flex;
}

.note-tip span {
  color: #99968f;
  flex-direction: column;
  gap: 4px;
  font-size: 9px;
  line-height: 1.5;
  display: flex;
}

.note-tip strong {
  color: #fff;
  font-size: 10px;
}

.instructions-form {
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--ink);
  background: var(--paper-light);
  padding: 23px;
}

.instructions-form label > span {
  color: var(--ink);
  margin-bottom: 3px;
  font-size: 13px;
}

.instructions-form label > small {
  color: var(--muted);
  margin-bottom: 9px;
  font-size: 9px;
  line-height: 1.45;
  display: block;
}

.instructions-form .form-actions {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  padding-top: 15px;
}

.instructions-form .form-actions > span {
  color: var(--muted);
  font-size: 8px;
}

.incident-layout {
  max-width: 1260px;
  margin: 0 auto;
}

.incident-header {
  border-bottom: 1px solid var(--ink);
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0 24px;
  display: grid;
}

.incident-symbol {
  border: 1px solid var(--ink);
  background: var(--coral);
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  display: inline-flex;
}

.incident-header h2 {
  margin: 2px 0 4px;
}

.incident-header p {
  max-width: 680px;
  color: var(--muted);
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.incident-form {
  margin-top: 16px;
}

.incident-list {
  flex-direction: column;
  gap: 11px;
  margin-top: 17px;
  display: flex;
}

.incident-card {
  border: 1px solid var(--line-dark);
  border-left: 5px solid var(--green);
  background: var(--paper-light);
  grid-template-columns: 70px minmax(0, 1fr) 112px;
  gap: 18px;
  padding: 18px;
  display: grid;
}

.incident-card.severity-medium {
  border-left-color: var(--yellow);
}

.incident-card.severity-high, .incident-card.severity-critical {
  border-left-color: var(--coral);
}

.incident-index {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  padding-top: 4px;
  font-size: 9px;
}

.incident-title {
  align-items: center;
  gap: 10px;
  display: flex;
}

.incident-title span {
  background: var(--paper-deep);
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  padding: 4px 6px;
  font-size: 7px;
}

.incident-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
}

.incident-body > p {
  color: var(--ink-soft);
  margin: 9px 0 12px;
  font-size: 10px;
  line-height: 1.6;
}

.incident-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  display: grid;
}

.incident-actions > div {
  background: var(--paper-deep);
  padding: 9px 10px;
}

.incident-actions span {
  color: var(--coral-dark);
  font-size: 8px;
  font-weight: 750;
}

.incident-actions p {
  color: var(--muted);
  margin: 3px 0 0;
  font-size: 9px;
  line-height: 1.45;
}

.incident-meta {
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  display: flex;
}

.severity-badge {
  border: 1px solid var(--green);
  min-height: 25px;
  color: var(--green);
  align-items: center;
  padding: 0 8px;
  font-size: 8px;
  font-weight: 750;
  display: inline-flex;
}

.severity-badge.medium {
  color: #7c5d1d;
  border-color: #9d782d;
}

.severity-badge.high, .severity-badge.critical {
  border-color: var(--coral-dark);
  color: var(--coral-dark);
}

.incident-meta time {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  text-align: right;
  font-size: 7px;
}

.publish-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
}

.publish-form-panel, .backup-panel, .codex-status-panel {
  border: 1px solid var(--ink);
  border-top: 5px solid var(--ink);
  background: var(--paper-light);
  padding: 25px;
}

.youtube-heading {
  align-items: center;
  gap: 13px;
  display: flex;
}

.youtube-heading > span {
  color: #fff;
  background: #e6372f;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  display: inline-flex;
}

.publish-form-panel h2 {
  margin: 2px 0 0;
}

.publish-form-panel > p {
  color: var(--muted);
  margin: 15px 0 23px;
  font-size: 10px;
  line-height: 1.6;
}

.youtube-channel-strip {
  background: #edf6ef;
  border: 1px solid #b9cfc0;
  grid-template-columns: 43px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 11px;
  margin: 19px 0 16px;
  padding: 12px;
  display: grid;
}

.youtube-channel-avatar {
  color: #fff;
  background: #e6372f;
  justify-content: center;
  align-items: center;
  width: 41px;
  height: 41px;
  display: inline-flex;
}

.youtube-channel-strip p {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
  display: flex;
}

.youtube-channel-strip small {
  color: var(--green);
  font-size: 7px;
  font-weight: 800;
}

.youtube-channel-strip strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.youtube-channel-strip em {
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
}

.youtube-channel-strip .icon-button {
  background: #f7fcf8;
  border-color: #a9c5b3;
  width: 40px;
  height: 40px;
}

.youtube-link-form {
  border: 1px solid var(--line-dark);
  background: #fffdf8;
  padding: 17px;
}

.youtube-link-form label {
  margin-bottom: 13px;
  display: block;
}

.youtube-video-search {
  border: 1px solid var(--line-dark);
  background: #f8f4eb;
  border-bottom: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 13px 17px;
  display: grid;
}

.youtube-video-search label {
  margin: 0;
}

.youtube-video-search small {
  color: #a44137;
  grid-column: 1 / -1;
  font-size: 8px;
}

.youtube-empty-sync {
  border: 1px dashed var(--line-dark);
  color: var(--muted);
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.youtube-empty-sync > span {
  flex-direction: column;
  gap: 2px;
  font-size: 8px;
  line-height: 1.4;
  display: flex;
}

.youtube-empty-sync strong {
  color: var(--ink);
  font-size: 10px;
}

.youtube-connect-prompt {
  background: #fff1eb;
  border: 1px dashed #c8584d;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 13px;
  margin-top: 19px;
  padding: 18px;
  display: grid;
}

.youtube-connect-prompt > svg {
  color: #d9342b;
}

.youtube-connect-prompt > div {
  min-width: 0;
}

.youtube-connect-prompt strong {
  font-size: 12px;
}

.youtube-connect-prompt p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 9px;
  line-height: 1.55;
}

.youtube-connect-prompt .youtube-button {
  grid-column: 1 / -1;
}

.youtube-processing-note, .youtube-backup-ready-note, .manual-fallback-note {
  color: #6d5523;
  background: #fbf1d8;
  border-left: 3px solid #d0a347;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 12px;
  font-size: 8px;
  line-height: 1.5;
  display: flex;
}

.youtube-backup-ready-note {
  border-left-color: var(--green);
  color: #35614a;
  background: #e6f1e8;
}

.youtube-processing-note svg, .youtube-backup-ready-note svg, .manual-fallback-note svg {
  flex: none;
}

.youtube-processing-note span, .youtube-backup-ready-note span, .manual-fallback-note span {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.youtube-processing-note strong, .youtube-backup-ready-note strong, .manual-fallback-note strong {
  font-size: 10px;
}

.manual-publish {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}

.manual-publish summary {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.manual-publish[open] summary {
  color: var(--ink);
}

.manual-publish > p {
  color: var(--muted);
  margin: 9px 0 13px;
  font-size: 8px;
  line-height: 1.55;
}

.manual-publish form {
  border: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 14px;
}

.manual-publish .secondary-button {
  width: 100%;
}

.published-note {
  border-left: 3px solid var(--green);
  color: var(--green);
  background: #e2eee6;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 11px;
  display: grid;
}

.published-note > span {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.published-note strong {
  color: #245743;
  font-size: 10px;
}

.published-note span {
  font-size: 8px;
}

.published-note a {
  color: #245743;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 700;
  display: flex;
}

.backup-panel {
  border-top-color: var(--coral);
}

.backup-drive {
  text-align: center;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 22px;
  display: flex;
}

.backup-drive svg {
  color: var(--coral-dark);
}

.backup-drive span {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: .11em;
  margin-top: 10px;
  font-size: 7px;
}

.backup-drive strong {
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: -.05em;
  margin-top: 4px;
  font-size: 27px;
  font-weight: 580;
}

.backup-drive small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 8px;
}

.backup-flow {
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  margin-bottom: 19px;
  display: grid;
}

.backup-flow span {
  min-width: 55px;
  color: var(--muted);
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 7px;
  display: flex;
}

.backup-flow span i {
  border: 1px solid var(--line-dark);
  width: 24px;
  height: 24px;
  font-family: var(--font-geist-mono), monospace;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 8px;
  font-style: normal;
  display: inline-flex;
}

.backup-flow span.complete {
  color: var(--green);
}

.backup-flow span.complete i {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.backup-flow b {
  background: var(--line-dark);
  height: 1px;
  margin-bottom: 13px;
}

.backup-button {
  width: 100%;
}

.backup-warning {
  color: var(--coral-dark);
  justify-content: center;
  gap: 5px;
  margin: 9px 0 0;
  font-size: 8px;
  display: flex;
}

.backup-history {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 17px;
}

.backup-history h3 {
  margin: 0 0 10px;
  font-size: 11px;
}

.backup-history h3 span {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  margin-left: 4px;
  font-size: 8px;
}

.backup-record {
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  display: grid;
}

.backup-status {
  color: var(--muted);
  align-items: center;
  gap: 5px;
  font-size: 8px;
  display: inline-flex;
}

.backup-status.complete, .backup-status.completed, .backup-status.success {
  color: var(--green);
}

.backup-record p {
  flex-direction: column;
  gap: 2px;
  margin: 0;
  display: flex;
  overflow: hidden;
}

.backup-record strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.backup-record small {
  color: var(--muted);
  font-size: 7px;
}

.codex-layout {
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.25fr);
  gap: 25px;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
}

.codex-hero {
  background: var(--ink);
  color: #fff;
  min-height: 520px;
  padding: 31px;
  position: relative;
  overflow: hidden;
}

.codex-grid-art {
  background: linear-gradient(90deg, #3a3a36 1px, #0000 1px) 0 0 / 25px 25px, linear-gradient(#3a3a36 1px, #0000 1px) 0 0 / 25px 25px;
  border: 1px solid #5f5e57;
  width: 150px;
  height: 150px;
  margin-bottom: 58px;
  position: relative;
}

.codex-grid-art span {
  color: var(--coral);
  font-family: var(--font-geist-mono), monospace;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  font-weight: 500;
  display: flex;
  position: absolute;
  inset: 0;
}

.codex-grid-art i {
  background: var(--coral);
  width: 7px;
  height: 7px;
  position: absolute;
}

.codex-grid-art i:first-of-type {
  top: -4px;
  left: -4px;
}

.codex-grid-art i:nth-of-type(2) {
  top: -4px;
  right: -4px;
}

.codex-grid-art i:nth-of-type(3) {
  bottom: -4px;
  right: -4px;
}

.codex-hero h2 {
  margin-top: 9px;
  font-size: 34px;
  line-height: 1.2;
}

.codex-hero > p {
  color: #aaa79e;
  max-width: 360px;
  margin: 0 0 25px;
  font-size: 11px;
  line-height: 1.75;
}

.codex-status-panel {
  border-top-color: var(--ink);
}

.codex-status-head {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  display: grid;
}

.codex-logo {
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  display: inline-flex;
}

.codex-status-head > div {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.codex-status-head > div span {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
}

.codex-status-head h3 {
  margin: 0;
  font-size: 14px;
}

.codex-status-head > b {
  color: var(--green);
  align-items: center;
  gap: 6px;
  font-size: 8px;
  display: flex;
}

.codex-status-head > b.error {
  color: var(--coral-dark);
}

.codex-status-head > b.error i {
  background: var(--coral-dark);
}

.codex-status-panel dl {
  margin: 18px 0 22px;
}

.codex-status-panel dl > div {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 46px;
  display: grid;
}

.codex-status-panel dt {
  color: var(--muted);
  font-size: 9px;
}

.codex-status-panel dd {
  font-family: var(--font-geist-mono), monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 9px;
  overflow: hidden;
}

.codex-live-note {
  border-left: 3px solid var(--green);
  color: #35614a;
  background: #e6f1e8;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 13px;
  display: flex;
}

.codex-live-note svg {
  flex: none;
  margin-top: 1px;
}

.codex-live-note span {
  flex-direction: column;
  gap: 3px;
  font-size: 8px;
  line-height: 1.55;
  display: flex;
}

.codex-live-note strong {
  color: #244e39;
  font-size: 10px;
}

.context-manifest {
  border: 1px solid var(--line-dark);
  background: var(--paper-deep);
  padding: 16px;
}

.context-manifest h4 {
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  font-size: 11px;
  display: flex;
}

.context-manifest ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.context-manifest li {
  color: var(--muted);
  align-items: flex-start;
  gap: 6px;
  font-size: 8px;
  line-height: 1.4;
  display: flex;
}

.context-manifest li svg {
  color: var(--green);
  flex: none;
}

.loading-screen {
  background: var(--paper);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  display: flex;
}

.loading-logo {
  border: 2px solid var(--ink);
  gap: 6px;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  padding: 12px;
}

.loading-logo span {
  background: var(--ink);
  height: 4px;
  display: block;
}

.loading-logo span:nth-child(2) {
  background: var(--coral);
  width: 68%;
}

.loading-screen p {
  margin: 0 0 21px;
  font-size: 16px;
  font-weight: 800;
}

.loading-screen > span {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  margin-top: 8px;
  font-size: 8px;
}

.login-screen {
  background: var(--paper);
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  min-height: 100vh;
  display: grid;
}

.login-intro {
  background: linear-gradient(90deg, #ffffff12 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(#ffffff0f 1px, transparent 1px) 0 0 / 60px 60px,
    var(--ink);
  color: #fffaf0;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-intro:after {
  border: 40px solid var(--coral);
  opacity: .94;
  content: "";
  border-radius: 50%;
  width: 310px;
  height: 310px;
  position: absolute;
  bottom: -100px;
  right: -90px;
}

.login-brand {
  align-items: center;
  gap: 13px;
  display: flex;
}

.login-mark {
  border: 1px solid #fffaf0;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 9px;
}

.login-mark i, .mini-mark i {
  background: #fffaf0;
  height: 3px;
  display: block;
}

.login-mark i:nth-child(2), .mini-mark i:nth-child(2) {
  background: var(--coral);
  width: 68%;
}

.login-brand > div {
  flex-direction: column;
  display: flex;
}

.login-brand strong {
  letter-spacing: -.04em;
  font-size: 21px;
  font-weight: 830;
}

.login-brand span {
  color: #888780;
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: .18em;
  font-size: 9px;
}

.login-copy {
  z-index: 2;
  margin: auto 0;
  position: relative;
}

.login-copy h1 {
  letter-spacing: -.075em;
  margin: 12px 0 18px;
  font-size: clamp(45px, 6vw, 82px);
  font-weight: 850;
  line-height: 1.1;
}

.login-copy p {
  color: #aaa79f;
  font-size: clamp(12px, 1.3vw, 16px);
  line-height: 1.75;
}

.login-tape {
  z-index: 1;
  background: var(--coral);
  width: 360px;
  color: var(--ink);
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: .14em;
  text-align: center;
  padding: 8px 0;
  font-size: 8px;
  font-weight: 750;
  position: absolute;
  top: 22%;
  right: -80px;
  transform: rotate(34deg);
}

.login-feature-grid {
  z-index: 2;
  border-top: 1px solid #50504a;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
  position: relative;
}

.login-feature-grid > div {
  border-right: 1px solid #50504a;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 18px 14px 3px;
  display: flex;
}

.login-feature-grid > div:first-child {
  padding-left: 0;
}

.login-feature-grid > div:last-child {
  border-right: 0;
}

.login-feature-grid svg {
  color: var(--coral);
  margin-bottom: 8px;
}

.login-feature-grid strong {
  font-size: 10px;
}

.login-feature-grid span {
  color: #85837c;
  font-size: 8px;
}

.login-panel {
  border-left: 1px solid var(--ink);
  background: repeating-linear-gradient(0deg, transparent 0, transparent 31px, #20201e0b 32px),
    var(--paper);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 38px;
  display: flex;
}

.login-form {
  border: 1px solid var(--ink);
  border-top: 6px solid var(--coral);
  background: var(--paper-light);
  width: 100%;
  max-width: 390px;
  box-shadow: 7px 7px 0 var(--ink);
  padding: 34px;
  position: relative;
}

.login-number {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  position: absolute;
  top: 16px;
  right: 18px;
}

.login-form > svg {
  margin-bottom: 17px;
}

.login-form h2 {
  letter-spacing: -.05em;
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 830;
}

.login-form > p {
  color: var(--muted);
  margin: 0 0 25px;
  font-size: 11px;
}

.login-button {
  width: 100%;
  margin-top: 14px;
}

.login-arrow {
  transform: rotate(180deg);
}

.login-error {
  border-left: 3px solid var(--coral-dark);
  color: #8b3225;
  background: #ffe7df;
  align-items: flex-start;
  gap: 8px;
  margin: -8px 0 17px;
  padding: 10px;
  font-size: 9px;
  line-height: 1.45;
  display: flex;
}

.secure-note {
  color: var(--muted);
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 19px;
  font-size: 8px;
  display: flex;
}

.modal-backdrop {
  z-index: 100;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #141412b8;
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.modal {
  border: 1px solid var(--ink);
  border-top: 6px solid var(--coral);
  background: var(--paper-light);
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  box-shadow: 8px 8px 0 var(--ink);
  overflow-y: auto;
}

.modal-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 83px;
  padding: 18px 22px;
  display: flex;
}

.modal-header h2 {
  letter-spacing: -.05em;
  margin: 3px 0 0;
  font-size: 25px;
  font-weight: 830;
}

.modal form {
  padding: 22px;
}

.modal-note {
  background: var(--paper-deep);
  color: var(--muted);
  align-items: center;
  gap: 8px;
  padding: 11px;
  font-size: 9px;
  display: flex;
}

.modal-note svg {
  color: var(--coral-dark);
}

.modal-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-top: 19px;
  display: flex;
}

.guidelines-modal {
  border-top-color: var(--green);
  width: min(980px, 100%);
}

.guidelines-modal-header {
  gap: 13px;
}

.guidelines-modal-header > div:first-child {
  min-width: 0;
}

.guidelines-modal-state {
  border: 1px solid var(--line-dark);
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 8px;
  font-size: 8px;
  font-weight: 750;
  display: inline-flex;
}

.guidelines-modal-state i {
  background: #858178;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.guidelines-modal-state.ready {
  color: var(--green);
  border-color: #91bda3;
}

.guidelines-modal-state.ready i {
  background: #55b98b;
  box-shadow: 0 0 0 3px #55b98b1f;
}

.guidelines-modal-content {
  padding: 20px;
}

.guidelines-modal-content .security-alert > button {
  color: inherit;
  background: none;
  margin-left: auto;
  padding: 2px 0;
  font-size: 8px;
  font-weight: 750;
  text-decoration: underline;
}

.guidelines-intro {
  border: 1px solid #a7bdb3;
  border-left: 4px solid var(--green);
  background: #f1f8f4;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 15px;
  display: grid;
}

.guidelines-intro > span {
  background: var(--green);
  color: #fff;
  justify-content: center;
  align-items: center;
  width: 41px;
  height: 41px;
  display: inline-flex;
}

.guidelines-intro strong {
  margin-bottom: 3px;
  font-size: 12px;
  display: block;
}

.guidelines-intro p {
  color: var(--muted);
  margin: 0;
  font-size: 8px;
  line-height: 1.5;
}

.guideline-tabs {
  border: 1px solid var(--ink);
  border-bottom: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
}

.guideline-tabs button {
  border-right: 1px solid var(--ink);
  background: var(--paper-deep);
  min-height: 62px;
  color: var(--muted);
  text-align: left;
  grid-template-columns: minmax(0, 1fr) 9px;
  align-content: center;
  gap: 3px 7px;
  padding: 9px 12px;
  display: grid;
  position: relative;
}

.guideline-tabs button:last-child {
  border-right: 0;
}

.guideline-tabs button:after {
  content: "";
  background: none;
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.guideline-tabs button.selected {
  color: var(--ink);
  background: #fffdf8;
}

.guideline-tabs button.selected:after {
  background: var(--green);
}

.guideline-tabs button > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 780;
  overflow: hidden;
}

.guideline-tabs button > small {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
  grid-column: 1;
  font-size: 7px;
  overflow: hidden;
}

.guideline-tabs button > i {
  background: #aaa59b;
  border-radius: 50%;
  grid-area: 1 / 2 / 3;
  align-self: center;
  width: 8px;
  height: 8px;
}

.guideline-tabs button.active > i {
  background: #55b98b;
  box-shadow: 0 0 0 3px #55b98b24;
}

.guidelines-loading {
  border: 1px solid var(--ink);
  min-height: 430px;
  color: var(--muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 11px;
  font-size: 10px;
  display: flex;
}

.guideline-editor {
  border: 1px solid var(--ink);
  background: #fffdf8;
}

.guideline-editor-heading {
  border-bottom: 1px solid var(--line);
  background: #f4efe594;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: -22px -22px 20px;
  padding: 17px 20px;
  display: grid;
}

.guideline-editor-heading h3 {
  letter-spacing: -.035em;
  margin: 3px 0 2px;
  font-size: 18px;
}

.guideline-editor-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 8px;
}

.guideline-active-toggle {
  border: 1px solid var(--line-dark);
  cursor: pointer;
  background: #fffdf8;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 205px;
  margin: 0;
  padding: 9px 10px;
  display: grid;
  position: relative;
}

.guideline-active-toggle > input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.guideline-toggle-track {
  background: #c6c1b7;
  border: 1px solid #8d887f;
  border-radius: 20px;
  width: 36px;
  height: 20px;
  margin: 0;
  transition: background .14s, border-color .14s;
  display: block;
  position: relative;
}

.guideline-toggle-track i {
  background: #fff;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  transition: transform .14s;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 2px #0003;
}

.guideline-active-toggle > input:checked + .guideline-toggle-track {
  border-color: var(--green);
  background: var(--green);
}

.guideline-active-toggle > input:checked + .guideline-toggle-track i {
  transform: translateX(16px);
}

.guideline-active-toggle > input:focus-visible + .guideline-toggle-track {
  outline-offset: 2px;
  outline: 3px solid #ff624752;
}

.guideline-toggle-copy {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
  display: flex;
}

.guideline-toggle-copy strong {
  font-size: 9px;
}

.guideline-toggle-copy small {
  color: var(--muted);
  font-size: 7px;
}

.guideline-meta-fields {
  grid-template-columns: minmax(0, 1.5fr) minmax(170px, .65fr);
}

.guideline-content-field {
  display: block;
  margin-bottom: 0 !important;
}

.guideline-content-field > small {
  color: var(--muted);
  margin: -3px 0 8px;
  font-size: 8px;
  display: block;
}

.guideline-content-field textarea {
  min-height: 360px;
  font-family: var(--font-geist-mono), monospace;
  background: #fffefa;
  font-size: 10px;
  line-height: 1.65;
}

.guideline-editor-actions {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 17px;
  padding-top: 15px;
  display: flex;
}

.guideline-editor-actions > span {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  font-size: 8px;
  line-height: 1.45;
  display: flex;
}

.guideline-editor-actions > span svg {
  color: var(--green);
  flex: none;
}

.guideline-editor-actions .primary-button {
  min-width: 170px;
}

.security-modal {
  width: min(840px, 100%);
}

.youtube-modal {
  border-top-color: #e6372f;
  width: min(940px, 100%);
}

.youtube-modal-header {
  gap: 13px;
}

.youtube-modal-header > div:first-child {
  min-width: 0;
}

.youtube-modal-state {
  border: 1px solid var(--line-dark);
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 8px;
  font-size: 8px;
  font-weight: 750;
  display: inline-flex;
}

.youtube-modal-state i {
  background: #858178;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.youtube-modal-state.configured {
  color: #806121;
  border-color: #d4b56f;
}

.youtube-modal-state.configured i {
  background: #d0a347;
}

.youtube-modal-state.connected {
  color: var(--green);
  border-color: #91bda3;
}

.youtube-modal-state.connected i {
  background: #55b98b;
  box-shadow: 0 0 0 3px #55b98b1f;
}

.youtube-modal-content {
  padding: 20px;
}

.youtube-modal-content .security-alert > button {
  color: inherit;
  background: none;
  margin-left: auto;
  padding: 2px 0;
  font-size: 8px;
  font-weight: 750;
  text-decoration: underline;
}

.youtube-modal-loading {
  min-height: 260px;
  color: var(--muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  display: flex;
}

.youtube-connected-view {
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 15px;
  display: grid;
}

.youtube-channel-card, .youtube-recent-panel, .youtube-credentials-card {
  border: 1px solid var(--ink);
  background: #fffdf8;
}

.youtube-channel-card {
  border-top: 4px solid #e6372f;
  overflow: hidden;
}

.youtube-channel-main {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 57px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 17px;
  display: grid;
}

.youtube-large-avatar {
  color: #fff;
  background: #e6372f;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  display: inline-flex;
  overflow: hidden;
}

.youtube-large-avatar .remote-image, .youtube-video-thumb .remote-image {
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.youtube-channel-main > div {
  min-width: 0;
}

.youtube-channel-main small {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
}

.youtube-channel-main h3 {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 4px 0 3px;
  font-size: 16px;
  overflow: hidden;
}

.youtube-channel-main p {
  color: var(--muted);
  margin: 0;
  font-size: 7px;
}

.youtube-channel-main > svg {
  color: var(--green);
}

.youtube-stat-grid {
  grid-template-columns: repeat(2, 1fr);
  display: grid;
}

.youtube-stat-grid > div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 74px;
  display: flex;
}

.youtube-stat-grid > div:nth-child(2n) {
  border-right: 0;
}

.youtube-stat-grid > div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.youtube-stat-grid span {
  color: var(--muted);
  font-size: 8px;
}

.youtube-stat-grid strong {
  font-family: var(--font-geist-mono), monospace;
  font-size: 21px;
  font-weight: 560;
}

.youtube-channel-actions {
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 15px;
  display: grid;
}

.youtube-channel-actions .secondary-button {
  width: 100%;
}

.youtube-recent-panel {
  border-top: 4px solid var(--ink);
  min-width: 0;
}

.youtube-section-head {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 13px 15px;
  display: flex;
}

.youtube-section-head h3 {
  margin: 3px 0 0;
  font-size: 15px;
}

.youtube-section-head > b {
  border: 1px solid var(--line-dark);
  min-width: 27px;
  height: 27px;
  font-family: var(--font-geist-mono), monospace;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  display: inline-flex;
}

.youtube-recent-list {
  max-height: 384px;
  overflow-y: auto;
}

.youtube-recent-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 61px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 8px 11px;
  display: grid;
}

.youtube-recent-row:last-child {
  border-bottom: 0;
}

.youtube-video-thumb {
  background: var(--paper-deep);
  width: 61px;
  height: 44px;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  display: inline-flex;
  overflow: hidden;
}

.youtube-recent-row > div {
  min-width: 0;
}

.youtube-recent-row strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  display: block;
  overflow: hidden;
}

.youtube-recent-row p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 7px;
}

.youtube-recent-row p span.public {
  color: var(--green);
  font-weight: 750;
}

.youtube-recent-row > em {
  color: var(--green);
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  font-size: 7px;
  font-style: normal;
  display: inline-flex;
}

.youtube-recent-row > em.unlinked {
  color: #9a772c;
}

.youtube-recent-row > a {
  color: var(--muted);
  display: inline-flex;
}

.youtube-list-empty {
  min-height: 240px;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  display: flex;
}

.youtube-list-empty strong {
  color: var(--ink);
  font-size: 11px;
}

.youtube-list-empty p {
  max-width: 260px;
  margin: 0;
  font-size: 8px;
  line-height: 1.5;
}

.youtube-disconnect-zone {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 2px;
  display: flex;
}

.youtube-disconnect-zone > div {
  background: #fff0ea;
  border: 1px solid #d6aaa3;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 11px 13px;
  display: flex;
}

.youtube-disconnect-zone > div > span {
  color: #7d4d45;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  font-size: 8px;
  display: flex;
}

.youtube-disconnect-zone > div strong {
  color: #762d24;
  font-size: 10px;
}

.text-button.muted {
  color: var(--muted);
  -webkit-text-decoration-color: var(--line-dark);
  text-decoration-color: var(--line-dark);
}

.danger-button {
  color: #fff;
  white-space: nowrap;
  background: #b93a30;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  font-size: 9px;
  font-weight: 750;
  display: inline-flex;
}

.youtube-setup-view {
  margin-bottom: 14px;
}

.youtube-setup-intro {
  background: #fff0ea;
  border: 1px solid #c95e53;
  grid-template-columns: 61px minmax(0, 1fr);
  gap: 16px;
  padding: 21px;
  display: grid;
}

.youtube-setup-intro > span {
  color: #fff;
  background: #e6372f;
  justify-content: center;
  align-items: center;
  width: 59px;
  height: 59px;
  display: inline-flex;
}

.youtube-setup-intro small {
  color: #a63a31;
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
}

.youtube-setup-intro h3 {
  margin: 5px 0 7px;
  font-size: 18px;
}

.youtube-setup-intro p {
  color: #73554e;
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
}

.youtube-connect-step {
  border: 1px solid var(--line-dark);
  background: #fffdf8;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 15px;
  display: grid;
}

.step-number {
  border: 1px solid var(--ink);
  width: 39px;
  height: 39px;
  font-family: var(--font-geist-mono), monospace;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  display: inline-flex;
}

.youtube-connect-step strong {
  font-size: 11px;
}

.youtube-connect-step p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 8px;
}

.youtube-connect-step .youtube-button {
  width: auto;
  min-width: 190px;
}

.youtube-credentials-card {
  border-top: 4px solid var(--ink);
  margin-top: 14px;
}

.youtube-credentials-card > p {
  color: var(--muted);
  margin: 0;
  padding: 14px 16px 0;
  font-size: 9px;
  line-height: 1.6;
}

.youtube-config-warning {
  color: #6d5523;
  background: #fbf1d8;
  border-left: 3px solid #d0a347;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 16px 0;
  padding: 10px 11px;
  font-size: 8px;
  line-height: 1.5;
  display: flex;
}

.youtube-config-warning svg {
  flex: none;
}

.youtube-credentials-card form {
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto;
  align-items: end;
  gap: 12px;
  padding: 15px 16px 17px;
  display: grid;
}

.youtube-credentials-card form label {
  margin: 0;
}

.youtube-credentials-card form .ink-button {
  min-width: 150px;
}

.callback-url-box {
  background: var(--paper-deep);
  margin: 13px 16px 0;
  padding: 11px;
}

.callback-url-box.setup-callback {
  border: 1px solid var(--line-dark);
  background: #fffdf8;
  margin: 12px 0 0;
}

.callback-url-box > span {
  color: var(--muted);
  margin-bottom: 7px;
  font-size: 8px;
  font-weight: 700;
  display: block;
}

.callback-url-box > div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  display: grid;
}

.callback-url-box code {
  border: 1px solid var(--line);
  font-family: var(--font-geist-mono), monospace;
  white-space: nowrap;
  background: #fffdf8;
  padding: 9px 10px;
  font-size: 8px;
  overflow-x: auto;
}

.callback-url-box button {
  background: var(--ink);
  color: #fff;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 8px;
  display: inline-flex;
}

.security-content {
  padding: 22px;
}

.security-alert {
  border-left: 4px solid;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
  padding: 11px 13px;
  font-size: 10px;
  line-height: 1.55;
  display: flex;
}

.security-alert.error {
  border-color: var(--coral-dark);
  color: #8b3225;
  background: #ffe7df;
}

.security-alert.success {
  border-color: var(--green);
  color: #285f37;
  background: #e9f4e9;
}

.security-grid {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 14px;
  display: grid;
}

.security-card {
  border: 1px solid var(--ink);
  background: #fffdf8;
  min-width: 0;
  padding: 19px;
}

.security-card.password-card {
  border-top: 4px solid var(--ink);
}

.security-card.token-card {
  border-top: 4px solid var(--coral);
}

.security-card-head {
  align-items: center;
  gap: 11px;
  display: flex;
}

.security-card-head > span {
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  flex: none;
  justify-content: center;
  align-items: center;
  width: 39px;
  height: 39px;
  display: inline-flex;
}

.token-card .security-card-head > span {
  border-color: var(--coral-dark);
  color: var(--coral-dark);
  background: #ffe2d9;
}

.security-card-head small {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: .1em;
  margin-bottom: 2px;
  font-size: 7px;
  display: block;
}

.security-card-head h3 {
  letter-spacing: -.04em;
  margin: 0;
  font-size: 18px;
  font-weight: 820;
}

.security-card > p {
  min-height: 35px;
  color: var(--muted);
  margin: 13px 0 17px;
  font-size: 9px;
  line-height: 1.6;
}

.security-card form {
  padding: 0;
}

.security-card form label {
  margin-bottom: 12px;
  display: block;
}

.security-card form label > span, .token-result > label {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 700;
  display: block;
}

.security-submit {
  width: 100%;
  min-height: 43px;
  box-shadow: none;
  justify-content: center;
  margin-top: 3px;
  font-size: 10px;
}

.token-flow {
  background: var(--paper-deep);
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  grid-template-columns: auto 14px auto 14px auto;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 13px;
  padding: 9px 7px;
  font-size: 7px;
  display: grid;
}

.token-flow svg {
  color: var(--coral-dark);
}

.token-result {
  border: 1px dashed var(--coral-dark);
  background: #fff7f2;
  margin-top: 14px;
  padding: 12px;
}

.token-result textarea {
  resize: none;
  min-height: 72px;
  font-family: var(--font-geist-mono), monospace;
  word-break: break-all;
  background: #fffdf8;
  font-size: 9px;
  line-height: 1.45;
}

.token-copy {
  justify-content: center;
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
}

.token-warning {
  border-top: 1px solid var(--line);
  color: #755426;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  display: flex;
}

.token-warning > svg {
  flex: none;
  margin-top: 1px;
}

.token-warning p {
  margin: 0;
}

.token-warning strong {
  margin-bottom: 3px;
  font-size: 9px;
  display: block;
}

.token-warning span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
  display: block;
}

.security-footnote {
  color: var(--muted);
  align-items: flex-start;
  gap: 7px;
  margin: 14px 0 0;
  font-size: 8px;
  line-height: 1.6;
  display: flex;
}

.security-footnote svg {
  color: var(--green);
  flex: none;
  margin-top: 1px;
}

.security-footnote code {
  color: var(--ink);
  font-size: 8px;
}

.toast {
  z-index: 120;
  border: 1px solid var(--ink);
  border-left: 5px solid var(--green);
  min-height: 48px;
  box-shadow: 4px 4px 0 var(--ink);
  background: #fffdf7;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 650;
  animation: .18s both toast-in;
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 24px;
}

.toast svg {
  color: var(--green);
}

.sidebar-scrim {
  display: none;
}

@media (max-width: 1250px) {
  :root {
    --sidebar-width: 224px;
  }

  .kanban {
    grid-template-columns: repeat(5, 225px);
  }

  .board-page {
    scrollbar-color: var(--line-dark) transparent;
    padding-bottom: 12px;
    overflow-x: auto;
  }

  .board-page .page-heading, .board-page .board-legend {
    max-width: calc(100vw - var(--sidebar-width) - clamp(44px, 6vw, 92px));
    position: sticky;
    left: 0;
  }

  .board-legend em {
    display: block;
  }

  .focus-row {
    grid-template-columns: 20px 4px minmax(120px, 1fr) auto 98px 18px;
    gap: 9px;
  }

  .status-chip {
    padding-inline: 6px;
  }
}

@media (max-width: 1050px) {
  .metric {
    padding-inline: 14px;
  }

  .metric strong {
    font-size: 39px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .focus-panel {
    grid-area: auto / 1 / auto / -1;
  }

  .storage-panel {
    grid-area: auto / 1;
  }

  .pipeline-panel {
    grid-area: auto / 2;
  }

  .activity-panel {
    grid-area: auto / 1 / auto / -1;
  }

  .script-workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .idea-workspace {
    grid-template-columns: 310px minmax(0, 1fr);
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(270px, .7fr);
  }

  .brief-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-meta div:nth-child(2) {
    border-right: 0;
  }

  .brief-meta div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .assets-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .video-gallery {
    grid-template-columns: 1fr;
  }

  .asset-row {
    grid-template-columns: 40px minmax(120px, 1fr) minmax(130px, .8fr) auto;
  }

  .login-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-feature-grid > div:nth-child(2) {
    border-right: 0;
  }

  .login-feature-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid #50504a;
  }

  .login-feature-grid > div:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --sidebar-width: 250px;
  }

  body {
    background: linear-gradient(90deg, #20201e05 1px, transparent 1px) 0 0 / 36px 36px,
      linear-gradient(#20201e04 1px, transparent 1px) 0 0 / 36px 36px,
      var(--paper);
  }

  .studio-sidebar {
    width: min(290px, 84vw);
    transition: transform .19s;
    transform: translateX(-105%);
  }

  .studio-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 12px 0 35px #00000047;
  }

  .sidebar-close {
    display: inline-flex;
  }

  .sidebar-scrim {
    z-index: 45;
    background: #0000006b;
    display: block;
    position: fixed;
    inset: 0;
  }

  .studio-main {
    width: 100%;
    margin-left: 0;
  }

  .topbar {
    height: 60px;
    padding: 0 15px;
  }

  .mobile-brand {
    align-items: center;
    gap: 9px;
    display: flex;
  }

  .mobile-brand .menu-button {
    border: 0;
    width: 40px;
    height: 40px;
    margin-left: -5px;
  }

  .mini-mark {
    border: 1px solid var(--ink);
    gap: 3px;
    width: 25px;
    height: 25px;
    padding: 5px;
  }

  .mini-mark i {
    background: var(--ink);
    height: 2px;
  }

  .mobile-brand strong {
    letter-spacing: -.04em;
    font-size: 14px;
    font-weight: 820;
  }

  .breadcrumbs {
    display: none;
  }

  .top-actions .primary-button {
    min-height: 39px;
    box-shadow: 2px 2px 0 var(--ink);
    padding: 0 12px;
  }

  .refresh-button {
    width: 40px;
    height: 40px;
  }

  .workspace {
    min-height: calc(100vh - 60px);
    padding: 25px 17px 96px;
  }

  .api-error {
    margin: 10px 17px 0;
  }

  .page-heading {
    margin-bottom: 24px;
  }

  .page-heading h1, .project-heading h1 {
    font-size: clamp(31px, 8vw, 45px);
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .focus-panel, .storage-panel, .pipeline-panel, .activity-panel {
    grid-area: auto;
  }

  .mobile-nav {
    z-index: 40;
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 5px 4px env(safe-area-inset-bottom);
    border-top: 1px solid var(--ink);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: #faf7f0f5;
    grid-template-columns: repeat(4, 1fr);
    display: grid;
    position: fixed;
    inset: auto 0 0;
  }

  .mobile-nav button {
    min-height: 56px;
    color: var(--muted);
    background: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 8px;
    display: flex;
    position: relative;
  }

  .mobile-nav button.active {
    color: var(--ink);
  }

  .mobile-nav button.active:before {
    background: var(--coral);
    content: "";
    width: 30px;
    height: 3px;
    position: absolute;
    top: -6px;
  }

  .board-page .page-heading, .board-page .board-legend {
    max-width: calc(100vw - 34px);
  }

  .script-workspace, .idea-workspace {
    grid-template-columns: 1fr;
  }

  .generator-panel {
    position: static;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .preview-panel {
    grid-column: 1 / -1;
  }

  .assets-layout {
    grid-template-columns: 1fr;
  }

  .asset-upload-panel {
    position: static;
  }

  .video-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instructions-layout {
    grid-template-columns: 1fr;
  }

  .instructions-note {
    min-height: auto;
  }

  .instructions-note h2 {
    margin-top: 26px;
  }

  .incident-card {
    grid-template-columns: 55px minmax(0, 1fr);
  }

  .incident-meta {
    flex-direction: row;
    grid-column: 2;
    align-items: center;
  }

  .publish-layout, .codex-layout {
    grid-template-columns: 1fr;
  }

  .codex-hero {
    min-height: auto;
  }

  .codex-grid-art {
    margin-bottom: 37px;
  }

  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: 43vh;
    padding: 28px;
  }

  .login-copy {
    margin: 70px 0;
  }

  .login-copy h1 {
    font-size: clamp(40px, 10vw, 66px);
  }

  .login-feature-grid {
    display: none;
  }

  .login-intro:after {
    border-width: 28px;
    width: 220px;
    height: 220px;
  }

  .login-panel {
    border-top: 1px solid var(--ink);
    border-left: 0;
    min-height: 57vh;
    padding: 38px 22px 60px;
  }

  .login-form {
    max-width: 470px;
  }

  .toast {
    justify-content: center;
    bottom: 82px;
    left: 17px;
    right: 17px;
  }

  .youtube-connected-view {
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  }

  .youtube-credentials-card form {
    grid-template-columns: 1fr 1fr;
  }

  .youtube-credentials-card form .ink-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .guideline-content-field textarea {
    min-height: 330px;
  }
}

@media (max-width: 620px) {
  .desktop-break, .top-actions .refresh-button, .top-actions .security-button, .top-actions .primary-button span {
    display: none;
  }

  .top-actions .primary-button {
    width: 40px;
    padding: 0;
  }

  .workspace {
    padding: 22px 14px 94px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading > .primary-button, .page-heading > .secondary-button {
    width: 44px;
    min-width: 44px;
    box-shadow: 2px 2px 0 var(--ink);
    padding: 0;
    font-size: 0;
  }

  .page-heading h1 {
    margin-top: 6px;
  }

  .dashboard-heading p {
    max-width: 260px;
  }

  .metric {
    min-height: 112px;
    padding: 15px 12px 12px;
  }

  .metric strong {
    font-size: 35px;
  }

  .metric > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .metric > div > span {
    order: 2;
    padding: 0;
  }

  .metric p {
    margin-top: 7px;
  }

  .focus-list {
    padding: 0 10px;
  }

  .focus-row {
    grid-template-columns: 4px minmax(0, 1fr) auto 18px;
    gap: 8px;
    min-height: 76px;
  }

  .focus-order, .focus-due {
    display: none;
  }

  .focus-main strong {
    white-space: normal;
    line-height: 1.35;
  }

  .status-chip {
    font-size: 8px;
  }

  .activity-panel .activity-list {
    grid-template-columns: 1fr;
  }

  .activity-panel .activity-item:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .heading-actions {
    align-items: flex-end;
  }

  .heading-actions .search-field {
    width: min(54vw, 210px);
  }

  .heading-actions .primary-button {
    width: 44px;
    box-shadow: 2px 2px 0 var(--ink);
    padding: 0;
    font-size: 0;
  }

  .board-legend > span:nth-child(2) {
    display: none;
  }

  .board-legend em {
    font-size: 7px;
  }

  .script-toolbar {
    align-items: center;
  }

  .script-toolbar label {
    width: 100%;
  }

  .script-toolbar .text-button {
    display: none;
  }

  .script-library-tabs > button {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 64px;
    padding: 9px;
  }

  .script-library-tabs small {
    display: none;
  }

  .script-library-tabs strong {
    font-size: 10px;
  }

  .script-library-tabs b {
    min-width: 22px;
    height: 22px;
    font-size: 8px;
  }

  .generator-panel {
    box-shadow: 3px 3px 0 var(--ink);
    padding: 23px 18px 20px;
  }

  .collection-head h2 {
    font-size: 20px;
  }

  .script-card-head {
    grid-template-columns: 38px minmax(0, 1fr) auto 17px;
    gap: 7px;
    padding: 0 10px;
  }

  .script-idea-head {
    grid-template-columns: 34px minmax(0, 1fr) auto 17px;
  }

  .script-idea-head .idea-format-badge {
    display: none;
  }

  .script-card-body {
    padding: 0 10px 12px 48px;
  }

  .script-idea-body {
    padding-left: 44px;
  }

  .script-card-body pre {
    padding: 14px;
    font-size: 10px;
  }

  .idea-collection-head {
    align-items: center;
  }

  .idea-collection-head .secondary-button {
    min-height: 40px;
    padding-inline: 11px;
  }

  .idea-filter {
    margin-inline: -2px;
  }

  .idea-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .idea-status-control {
    width: 100%;
  }

  .idea-action-buttons {
    grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
    display: grid;
  }

  .idea-action-buttons > button {
    width: 100%;
  }

  .converted-note {
    grid-column: 1 / -1;
  }

  .project-heading {
    padding-bottom: 18px;
  }

  .project-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

  .project-state-block {
    justify-content: space-between;
    width: 100%;
  }

  .project-tabs {
    margin-inline: -14px;
    padding-left: 14px;
    top: 60px;
  }

  .project-tabs button {
    min-height: 47px;
    padding: 0 13px;
    font-size: 9px;
  }

  .project-content {
    padding-top: 16px;
  }

  .brief-copy {
    padding-inline: 16px;
  }

  .brief-meta {
    margin-inline: 14px;
  }

  .overview-rail {
    display: flex;
  }

  .preview-empty {
    min-height: 220px;
  }

  .video-gallery {
    grid-template-columns: 1fr;
  }

  .asset-upload-panel {
    padding: 18px;
  }

  .asset-row {
    grid-template-columns: 40px minmax(0, 1fr) 36px;
  }

  .asset-row audio, .asset-row img {
    grid-column: 2 / -1;
    width: 100%;
  }

  .instructions-note, .instructions-form {
    padding: 20px;
  }

  .instructions-note h2 {
    font-size: 26px;
  }

  .incident-header {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .incident-symbol {
    width: 46px;
    height: 46px;
  }

  .incident-header > .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .form-row.two, .form-row.three {
    grid-template-columns: 1fr;
  }

  .incident-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .incident-index {
    padding: 0;
  }

  .incident-meta {
    grid-column: 1;
  }

  .incident-actions {
    grid-template-columns: 1fr;
  }

  .publish-form-panel, .backup-panel, .codex-status-panel {
    padding: 18px;
  }

  .published-note {
    grid-template-columns: 22px 1fr;
  }

  .published-note a {
    grid-column: 2;
  }

  .backup-flow span {
    min-width: 44px;
  }

  .codex-hero {
    padding: 23px;
  }

  .codex-grid-art {
    width: 120px;
    height: 120px;
  }

  .codex-hero h2 {
    font-size: 29px;
  }

  .codex-status-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .codex-status-head > b {
    grid-column: 2;
  }

  .codex-status-panel dl > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .context-manifest ul {
    grid-template-columns: 1fr;
  }

  .youtube-empty-sync {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .youtube-video-search {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .youtube-video-search small {
    grid-column: 1;
  }

  .youtube-empty-sync .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .youtube-channel-strip {
    grid-template-columns: 39px minmax(0, 1fr) 38px;
    padding: 10px;
  }

  .youtube-channel-avatar {
    width: 38px;
    height: 38px;
  }

  .api-error {
    grid-template-columns: auto minmax(0, 1fr);
    margin-inline: 14px;
  }

  .api-error button {
    grid-column: 2;
    justify-self: start;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 94vh;
    box-shadow: none;
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
  }

  .modal-header {
    min-height: 72px;
    padding: 14px 17px;
  }

  .modal form {
    padding: 17px;
  }

  .guidelines-modal-header {
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
  }

  .guidelines-modal-header .guidelines-modal-state {
    grid-area: 2 / 1;
    width: fit-content;
    margin-left: 0;
  }

  .guidelines-modal-header > .icon-button {
    grid-area: 1 / 2 / 3;
  }

  .guidelines-modal-content {
    padding: 13px;
  }

  .guidelines-intro {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 11px;
  }

  .guidelines-intro > span {
    width: 36px;
    height: 36px;
  }

  .guideline-tabs {
    grid-template-columns: repeat(4, minmax(88px, 1fr));
    overflow-x: auto;
  }

  .guideline-tabs button {
    min-height: 58px;
    padding: 8px 9px;
  }

  .guidelines-modal .guideline-editor {
    padding: 14px;
  }

  .guideline-editor-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: -14px -14px 15px;
    padding: 14px;
  }

  .guideline-active-toggle {
    width: 100%;
    min-width: 0;
  }

  .guideline-meta-fields {
    grid-template-columns: 1fr;
  }

  .guideline-content-field textarea {
    min-height: 42vh;
    font-size: 9px;
  }

  .guideline-editor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .guideline-editor-actions .primary-button {
    width: 100%;
  }

  .youtube-modal-header {
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
  }

  .youtube-modal-header .youtube-modal-state {
    grid-area: 2 / 1;
    width: fit-content;
    margin-left: 0;
  }

  .youtube-modal-header > .icon-button {
    grid-area: 1 / 2 / 3;
  }

  .youtube-modal-content {
    padding: 13px;
  }

  .youtube-connected-view {
    grid-template-columns: 1fr;
  }

  .youtube-disconnect-zone {
    grid-column: 1;
  }

  .youtube-disconnect-zone > div {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .youtube-disconnect-zone > div > span {
    flex-basis: 100%;
  }

  .youtube-recent-list {
    max-height: 320px;
  }

  .youtube-recent-row {
    grid-template-columns: 55px minmax(0, 1fr) 21px;
    padding-inline: 9px;
  }

  .youtube-video-thumb {
    width: 55px;
    height: 40px;
  }

  .youtube-recent-row > em {
    display: none;
  }

  .youtube-setup-intro {
    grid-template-columns: 51px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .youtube-setup-intro > span {
    width: 49px;
    height: 49px;
  }

  .youtube-setup-intro h3 {
    font-size: 15px;
  }

  .youtube-connect-step {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .youtube-connect-step .youtube-button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .youtube-credentials-card form {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .youtube-credentials-card form .ink-button {
    grid-column: 1;
  }

  .callback-url-box {
    margin-inline: 14px;
  }

  .callback-url-box > div {
    grid-template-columns: 1fr;
  }

  .callback-url-box button {
    justify-content: center;
  }

  .security-content {
    padding: 14px;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-card {
    padding: 17px;
  }

  .security-card > p {
    min-height: 0;
  }

  .security-card form {
    padding: 0;
  }

  .security-footnote {
    padding: 0 3px 4px;
  }

  .login-intro {
    min-height: 38vh;
    padding: 24px 22px;
  }

  .login-copy {
    margin: 52px 0 28px;
  }

  .login-copy h1 {
    margin-top: 8px;
    font-size: 38px;
  }

  .login-copy p {
    font-size: 11px;
  }

  .login-tape {
    top: 24%;
    right: -115px;
  }

  .login-panel {
    min-height: 62vh;
    padding: 34px 15px 50px;
  }

  .login-form {
    box-shadow: 5px 5px 0 var(--ink);
    padding: 27px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/