:root {
  --ink: #07131f;
  --navy: #0b2233;
  --navy-soft: #12334a;
  --navy-fog: #dcebf0;
  --teal: #16c6b2;
  --teal-deep: #0b8d88;
  --cyan: #96efeb;
  --paper: #f3f8f7;
  --surface: #ffffff;
  --surface-soft: #f8fbfb;
  --line: #d9e8e7;
  --line-strong: #bdd8d7;
  --text: #152733;
  --muted: #64767c;
  --muted-dark: #475d66;
  --amber: #e5aa54;
  --amber-soft: #fff4df;
  --coral: #d96f5a;
  --coral-soft: #fff0eb;
  --purple: #8874c7;
  --shadow-sm: 0 5px 18px rgba(11, 34, 51, .06);
  --shadow-md: 0 18px 50px rgba(11, 34, 51, .10);
  --shadow-lg: 0 28px 72px rgba(7, 19, 31, .17);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --sidebar-width: 248px;
  font-family: "Aptos", "Noto Sans TC", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); color: var(--text); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(22, 198, 178, .55); outline-offset: 3px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 14px; top: 12px; z-index: 100; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: var(--teal); color: var(--ink); font-weight: 800; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

/* App shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex: 0 0 var(--sidebar-width); flex-direction: column; min-height: 100vh; height: 100vh; padding: 24px 16px 18px; background: linear-gradient(160deg, #07131f 0%, #0b2233 55%, #0a2e3c 100%); color: #e7f6f4; overflow-y: auto; z-index: 30; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; padding: 0 9px; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; width: 27px; height: 28px; padding: 3px; border: 1px solid rgba(150, 239, 235, .55); border-radius: 8px 8px 10px 3px; transform: rotate(-8deg); }
.brand-mark span { display: block; width: 4px; border-radius: 4px; background: var(--cyan); }
.brand-mark span:nth-child(1) { height: 10px; opacity: .55; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 22px; background: var(--teal); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { color: #f7fffe; font-size: 17px; letter-spacing: .08em; }
.brand-copy small { color: rgba(231, 246, 244, .55); font-size: 9px; letter-spacing: .16em; }
.workspace-switcher { display: grid; gap: 7px; margin: 32px 4px 24px; padding: 14px 14px 13px; border: 1px solid rgba(150, 239, 235, .15); border-radius: 12px; background: rgba(255, 255, 255, .055); }
.workspace-switcher > strong { color: #f4fffd; font-size: 13px; font-weight: 650; }
.micro-label, .nav-section-label, .section-eyebrow, .eyebrow { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.sidebar .micro-label, .sidebar .nav-section-label { color: rgba(231, 246, 244, .45); }
.workspace-meta { display: inline-flex; align-items: center; gap: 7px; color: rgba(231, 246, 244, .72); font-size: 11px; }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #8aa3ab; box-shadow: 0 0 0 3px rgba(138, 163, 171, .12); }
.status-dot-amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(229, 170, 84, .14); }
.primary-nav { display: grid; gap: 4px; }
.nav-section-label { margin: 0 10px 8px; }
.nav-section-spaced { margin-top: 18px; }
.nav-item { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: rgba(231, 246, 244, .66); font-size: 13px; text-align: left; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.nav-item:hover { border-color: rgba(150, 239, 235, .15); background: rgba(255, 255, 255, .06); color: #fff; transform: translateX(2px); }
.nav-item.is-current { border-color: rgba(150, 239, 235, .23); background: linear-gradient(90deg, rgba(22, 198, 178, .19), rgba(22, 198, 178, .04)); color: #fff; box-shadow: inset 3px 0 0 var(--teal); }
.nav-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(231, 246, 244, .18); border-radius: 6px; color: var(--cyan); font-size: 13px; line-height: 1; }
.nav-state { min-width: 28px; color: var(--teal); font-size: 10px; text-align: right; }
.sidebar-bottom { display: grid; gap: 12px; margin-top: auto; padding-top: 24px; }
.guardrail-card { display: flex; align-items: center; gap: 9px; padding: 11px 10px; border: 1px solid rgba(150, 239, 235, .17); border-radius: 12px; background: rgba(22, 198, 178, .08); }
.guardrail-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--teal); color: var(--ink); font-size: 14px; font-weight: 900; }
.guardrail-card div { display: grid; gap: 3px; }
.guardrail-card strong { color: #eafffd; font-size: 11px; }
.guardrail-card small { color: rgba(231, 246, 244, .5); font-size: 10px; }
.sidebar-tech-link { padding: 3px 9px; border: 0; background: transparent; color: rgba(231, 246, 244, .54); font-size: 11px; text-align: left; }
.sidebar-tech-link:hover { color: var(--cyan); }
.sidebar-tech-link span { color: var(--teal); }

.app-main { flex: 1 1 auto; min-width: 0; }
.topbar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(243, 248, 247, .92); backdrop-filter: blur(16px); z-index: 20; }
.topbar-leading, .breadcrumb, .top-context, .context-status { display: flex; align-items: center; }
.breadcrumb { gap: 9px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--text); font-weight: 700; }
.breadcrumb-slash { color: #a6b8ba; }
.top-context { gap: 11px; color: var(--muted); font-size: 11px; }
.context-status { gap: 7px; }
.context-owner-label { color: #9baeb1; }
.top-context strong { color: var(--text); font-size: 11px; }
.context-divider { width: 1px; height: 20px; background: var(--line-strong); }
.top-owner-action { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--teal-deep); font-size: 11px; font-weight: 800; }
.top-owner-action:hover { border-color: var(--teal); background: #effcf9; }
.mobile-menu-button { display: none; width: 34px; height: 34px; margin-right: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 17px; }
.content-wrap { width: min(100% - 64px, 1440px); margin: 0 auto; padding: 34px 0 64px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--teal-deep); }
.page-heading h1 { margin: 0; color: var(--ink); font-family: "Aptos Display", "Noto Sans TC", sans-serif; font-size: clamp(30px, 4vw, 44px); font-weight: 720; letter-spacing: -.055em; line-height: 1.05; }
.page-subtitle { max-width: 610px; margin: 9px 0 0; color: var(--muted-dark); font-size: 14px; line-height: 1.7; }
.state-card { display: grid; gap: 7px; width: min(310px, 100%); padding: 15px 16px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: #ecf8f6; box-shadow: var(--shadow-sm); }
.state-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.state-badge { padding: 4px 7px; border-radius: var(--radius-pill); background: rgba(22, 198, 178, .15); color: var(--teal-deep); font-size: 10px; font-weight: 800; }
.state-card > strong { color: var(--navy); font-size: 17px; font-weight: 750; }
.state-card > small { min-height: 30px; color: var(--muted-dark); font-size: 11px; line-height: 1.45; }
.progress-meter { height: 4px; overflow: hidden; border-radius: var(--radius-pill); background: rgba(11, 141, 136, .12); }
.progress-meter span { display: block; width: 10%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--cyan)); transition: width .3s ease; }
.workflow-strip { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 0; margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.workflow-strip li { position: relative; display: grid; gap: 7px; padding: 12px 10px 0 0; border-top: 3px solid transparent; color: #8a9b9e; font-size: 11px; line-height: 1.25; }
.workflow-strip li + li { padding-left: 13px; }
.workflow-strip li span { color: #a5b8b9; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.workflow-strip li.is-active { border-top-color: var(--teal); color: var(--navy); font-weight: 750; }
.workflow-strip li.is-active span { color: var(--teal-deep); }
.workflow-strip li.is-done { border-top-color: #83cfc7; color: var(--teal-deep); }
.workflow-strip li.is-done span { color: #83cfc7; }

/* Shared components */
.app-view { animation: view-in .22s ease both; }
@keyframes view-in { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.surface-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-heading, .section-title-row, .creative-focus-top, .technical-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-heading h2, .section-title-row h2, .creative-focus-top h2, .technical-heading h2 { margin: 4px 0 0; color: var(--ink); font-family: "Aptos Display", "Noto Sans TC", sans-serif; font-size: 19px; font-weight: 720; letter-spacing: -.035em; line-height: 1.2; }
.panel-status { align-self: flex-start; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.section-eyebrow { display: block; color: var(--teal-deep); }
.section-note { padding-top: 16px; color: var(--muted); font-size: 11px; }
.signal-label { display: inline-flex; align-items: center; gap: 7px; color: var(--teal-deep); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.signal-label i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(22, 198, 178, .13); }
.signal-label-warm { color: #ad6b20; }
.signal-label-warm i { background: var(--amber); box-shadow: 0 0 0 4px rgba(229, 170, 84, .16); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 800; line-height: 1; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(11, 34, 51, .10); }
.button span { font-size: 15px; }
.button-primary { border-color: var(--teal); background: var(--teal); color: var(--ink); }
.button-primary:hover:not(:disabled) { background: #2dd3c0; }
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--teal-deep); }
.button-secondary:hover:not(:disabled) { border-color: var(--teal); background: #effcf9; }
.button-quiet { border-color: transparent; background: transparent; color: var(--muted-dark); }
.button-quiet:hover:not(:disabled) { border-color: var(--line); background: var(--surface-soft); color: var(--teal-deep); }
.button-danger { border-color: #ebbaa9; background: var(--coral-soft); color: #a04838; }
.button-danger:hover:not(:disabled) { border-color: var(--coral); background: #ffe5dc; }
.button:disabled, button:disabled { cursor: not-allowed; opacity: .46; transform: none !important; box-shadow: none !important; }
.button-row, .welcome-actions, .connection-actions, .control-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.text-link { padding: 2px 0; border: 0; background: transparent; color: var(--teal-deep); font-size: 11px; font-weight: 800; }
.text-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; color: var(--muted-dark); font-size: 11px; font-weight: 750; }
input, textarea, select { width: 100%; min-height: 40px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfd; color: var(--text); font-size: 12px; line-height: 1.45; }
textarea { min-height: 94px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a1b1b3; }
input:hover, textarea:hover, select:hover { border-color: #a9cecb; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(22, 198, 178, .11); outline: none; }
.span-2 { grid-column: span 2; }
.check { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 8px; font-weight: 650; }
.check input { width: 17px; min-height: 17px; accent-color: var(--teal-deep); }
.locked { position: relative; overflow: hidden; }
.locked::after { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(243, 248, 247, .56); color: var(--muted-dark); content: "完成上一步後解鎖"; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: center; backdrop-filter: blur(1px); z-index: 3; }
.locked > * { opacity: .62; }
.locked::after + * { opacity: 1; }
.connection-panel:not(.locked) > *, .plan-panel:not(.locked) > *, .stage-panel:not(.locked) > *, .paused-panel:not(.locked) > * { opacity: 1; }

/* Overview */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.overview-main { display: grid; gap: 25px; min-width: 0; }
.welcome-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; min-height: 304px; padding: 30px 32px; overflow: hidden; border: 0; background: linear-gradient(128deg, #0b2538 0%, #0d3448 61%, #0b5a5d 100%); color: #f2fffd; box-shadow: var(--shadow-md); }
.welcome-panel::before { position: absolute; inset: 0; background: radial-gradient(circle at 95% 10%, rgba(150, 239, 235, .18), transparent 32%), linear-gradient(135deg, transparent 62%, rgba(22, 198, 178, .09)); content: ""; pointer-events: none; }
.welcome-copy { position: relative; z-index: 1; align-self: center; max-width: 620px; }
.welcome-panel .signal-label { color: var(--cyan); }
.welcome-copy h2 { max-width: 14ch; margin: 13px 0 13px; color: #f6fffe; font-family: "Aptos Display", "Noto Sans TC", sans-serif; font-size: clamp(26px, 4vw, 42px); font-weight: 720; letter-spacing: -.065em; line-height: 1.08; }
.welcome-copy p { max-width: 560px; margin: 0; color: rgba(242, 255, 253, .72); font-size: 13px; line-height: 1.75; }
.welcome-actions { margin-top: 25px; }
.welcome-panel .button-primary { background: var(--cyan); }
.welcome-panel .button-primary:hover:not(:disabled) { background: #c6fffa; }
.welcome-panel .button-quiet { color: rgba(242, 255, 253, .72); }
.welcome-panel .button-quiet:hover:not(:disabled) { border-color: rgba(150, 239, 235, .28); background: rgba(255,255,255,.07); color: #fff; }
.welcome-orbit { position: relative; min-height: 235px; align-self: stretch; z-index: 1; }
.orbit-core { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 112px; height: 112px; transform: translate(-50%, -50%); border: 1px solid rgba(150, 239, 235, .72); border-radius: 38% 62% 50% 50%; background: rgba(7, 19, 31, .43); box-shadow: 0 0 0 17px rgba(150, 239, 235, .06), 0 0 0 38px rgba(150, 239, 235, .035); }
.orbit-core span { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.orbit-core strong { color: #fff; font-family: "Aptos Display", sans-serif; font-size: 37px; letter-spacing: -.08em; }
.orbit-line { position: absolute; display: block; border: 1px solid rgba(150, 239, 235, .22); border-radius: 50%; transform: rotate(-24deg); }
.orbit-line-a { inset: 24px 9px 22px 18px; }
.orbit-line-b { inset: 48px -7px 44px 31px; transform: rotate(41deg); }
.orbit-line-c { inset: 7px 37px 13px 43px; transform: rotate(68deg); }
.orbit-node { position: absolute; display: inline-grid; place-items: center; min-width: 43px; height: 24px; padding: 0 7px; border: 1px solid rgba(150, 239, 235, .37); border-radius: var(--radius-pill); background: rgba(7, 19, 31, .54); color: var(--cyan); font-size: 10px; }
.node-a { top: 12px; right: 27px; }
.node-b { bottom: 17px; left: 2px; }
.node-c { right: 1px; bottom: 56px; }
.scenario-section { padding-top: 4px; }
.scenario-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.scenario-tile { display: grid; align-content: start; gap: 9px; min-height: 133px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.scenario-tile:hover { border-color: var(--line-strong); background: var(--surface); transform: translateY(-2px); }
.scenario-tile.is-selected { border-color: rgba(22, 198, 178, .48); background: #eaf9f6; box-shadow: inset 3px 0 0 var(--teal); }
.scenario-number { color: var(--teal-deep); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.scenario-tile strong { font-size: 12px; line-height: 1.35; }
.scenario-tile small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.activity-section { padding: 21px 22px 10px; }
.activity-list { display: grid; gap: 0; margin-top: 12px; }
.activity-item { display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); }
.activity-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; font-size: 13px; font-weight: 800; }
.activity-mark.is-teal { background: #e2f8f4; color: var(--teal-deep); }
.activity-mark.is-muted { background: #f0f4f4; color: #8ba0a2; }
.activity-item strong { font-size: 12px; }
.activity-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.activity-item time { color: #9cacaf; font-size: 10px; white-space: nowrap; }
.auth-panel { padding: 21px 22px; }
.auth-form { margin-top: 16px; }
.auth-form > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.session-row { display: grid; grid-template-columns: 34px minmax(90px, 1fr) 1px minmax(110px, 1fr) minmax(130px, 190px) auto auto; align-items: center; gap: 12px; margin-top: 18px; }
.session-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--navy); color: var(--cyan); font-weight: 850; }
.session-row > div:not(.session-avatar) { display: grid; gap: 4px; }
.session-row strong { font-size: 12px; }
.session-separator { width: 1px; height: 30px; background: var(--line); }
.stepup-input { font-size: 10px; }
.stepup-input input { min-height: 35px; }
.readiness-column { display: grid; gap: 14px; }
.readiness-panel { padding: 21px 19px 16px; }
.readiness-count { color: var(--teal-deep); font-family: "Aptos Display", sans-serif; font-size: 22px; font-weight: 750; letter-spacing: -.05em; }
.panel-lede { margin: 13px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.readiness-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.readiness-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: center; min-height: 53px; border-top: 1px solid var(--line); }
.readiness-list li > div { display: grid; gap: 3px; }
.readiness-list strong { font-size: 11px; }
.readiness-list small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.check-icon { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #b8c9c9; border-radius: 50%; color: #94a5a6; font-size: 11px; }
.readiness-list li.is-ready .check-icon { border-color: var(--teal); background: var(--teal); color: var(--ink); font-weight: 900; }
.readiness-list li.is-ready small { color: var(--teal-deep); }
.readiness-list li.is-warn .check-icon { border-color: var(--amber); background: var(--amber-soft); color: #ad6b20; }
.readiness-footer { display: flex; align-items: center; gap: 7px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.boundary-note { display: flex; gap: 10px; padding: 15px; border: 1px solid #ecd8ad; border-radius: 14px; background: var(--amber-soft); color: #7f5a25; }
.boundary-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 900; }
.boundary-note strong { display: block; font-size: 11px; }
.boundary-note p { margin: 4px 0 0; font-size: 10px; line-height: 1.5; }

/* Workflow views */
.view-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 20px; padding: 4px 2px 4px; }
.view-intro > div:first-child { max-width: 720px; }
.view-intro h2 { margin: 10px 0 9px; color: var(--ink); font-family: "Aptos Display", "Noto Sans TC", sans-serif; font-size: clamp(25px, 3.2vw, 36px); font-weight: 720; letter-spacing: -.06em; line-height: 1.1; }
.view-intro p { max-width: 670px; margin: 0; color: var(--muted-dark); font-size: 13px; line-height: 1.7; }
.view-intro.compact { padding-top: 0; }
.view-step-badge, .step-callout { display: grid; gap: 6px; min-width: 150px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: #eaf8f5; color: var(--teal-deep); }
.view-step-badge span, .step-callout span { color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.view-step-badge strong, .step-callout strong { color: var(--navy); font-size: 13px; }
.view-step-badge small, .step-callout small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.view-step-badge.warm { border-color: #ecd8ad; background: var(--amber-soft); }
.view-step-badge.warm span { color: #b87a2d; }
.view-step-badge.teal { border-color: #b8e3dc; background: #e7f9f5; }
.view-step-badge.accent { border-color: #d3c9f0; background: #f1edff; }
.view-step-badge.accent span { color: var(--purple); }
.intake-panel { padding: 24px; }
.intake-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 27px; margin-top: 22px; }
.intake-lede { max-width: 610px; margin: 0 0 15px; color: var(--muted-dark); font-size: 13px; line-height: 1.7; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.summary-grid > div { min-height: 65px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.summary-grid dt { color: var(--muted); font-size: 10px; }
.summary-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--text); font-size: 11px; line-height: 1.45; }
.intake-next { display: grid; gap: 6px; margin-top: 17px; padding: 14px; border-left: 3px solid var(--teal); background: #effaf8; }
.intake-next strong { font-size: 12px; }
.intake-next .text-link { justify-self: start; }
.intake-visual { display: grid; align-content: start; gap: 12px; }
.document-card { position: relative; min-height: 190px; padding: 20px 17px; overflow: hidden; border: 1px solid #9bc9c6; border-radius: 12px; background: linear-gradient(142deg, #effcf9, #ccece9); box-shadow: 10px 12px 0 rgba(22, 198, 178, .10); }
.document-card::after { position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border: 1px solid rgba(11, 141, 136, .19); border-radius: 50%; content: ""; }
.document-topline { display: block; margin-bottom: 29px; color: var(--teal-deep); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.document-card > strong { display: block; max-width: 110px; color: var(--navy); font-family: "Aptos Display", sans-serif; font-size: 22px; line-height: 1.05; }
.document-lines { display: grid; gap: 7px; width: 90px; margin-top: 20px; }
.document-lines i { display: block; height: 4px; border-radius: 3px; background: rgba(11, 141, 136, .23); }
.document-lines i:nth-child(2) { width: 74%; }.document-lines i:nth-child(3) { width: 88%; }.document-lines i:nth-child(4) { width: 57%; }
.document-stamp { position: absolute; right: 12px; bottom: 16px; display: grid; place-items: center; width: 52px; height: 52px; border: 1px dashed var(--teal-deep); border-radius: 50%; color: var(--teal-deep); font-size: 8px; font-weight: 850; letter-spacing: .05em; line-height: 1.15; text-align: center; transform: rotate(12deg); }
.technical-disclosure { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.technical-disclosure summary { cursor: pointer; color: var(--teal-deep); font-weight: 800; }
.technical-disclosure label { margin-top: 13px; }
.technical-disclosure textarea { min-height: 120px; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.technical-note { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.three-up-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 14px; }
.mini-card { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.mini-number { color: var(--teal-deep); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.mini-card strong { font-size: 12px; }
.mini-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.connection-panel, .readiness-checklist, .plan-panel, .preview-panel, .stage-panel, .paused-panel { padding: 24px; }
.connection-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 23px 0 18px; }
.entity-card { display: flex; align-items: center; gap: 12px; min-height: 95px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.entity-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--cyan); font-size: 15px; font-weight: 850; }
.entity-card > div { display: grid; gap: 4px; min-width: 0; }
.entity-card strong { overflow-wrap: anywhere; font-size: 13px; }
.entity-card small { overflow-wrap: anywhere; color: var(--muted); font: 10px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.connection-boundary { display: flex; gap: 10px; margin-top: 20px; padding: 13px 14px; border: 1px solid #ecd8ad; border-radius: 11px; background: var(--amber-soft); color: #805a27; }
.connection-boundary p { margin: 0; font-size: 11px; line-height: 1.55; }
.readiness-checklist { margin-top: 14px; }
.checklist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.checklist-grid > div { display: grid; gap: 6px; min-height: 92px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.checklist-grid span { color: var(--teal-deep); font-size: 10px; font-weight: 850; }.checklist-grid strong { font-size: 11px; }.checklist-grid small { color: var(--muted); font-size: 10px; line-height: 1.35; }

/* Plan and creative */
.workspace-tabs { display: flex; gap: 3px; margin: -2px -2px 24px; padding: 4px; border-bottom: 1px solid var(--line); }
.workspace-tab { min-height: 34px; padding: 0 13px; border: 0; border-radius: 7px 7px 0 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.workspace-tab:hover { background: var(--surface-soft); color: var(--teal-deep); }.workspace-tab.is-active { background: #e9f8f5; color: var(--teal-deep); box-shadow: inset 0 -2px 0 var(--teal); }
.plan-subview { animation: view-in .18s ease both; }.plan-facts-grid { margin-top: 22px; }
.plan-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.save-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }.save-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.studio-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0 16px; padding: 15px 16px; border: 1px solid #c9daf0; border-radius: 12px; background: #f2f6fd; }
.studio-banner strong { color: #29466d; font-size: 12px; }.studio-banner p { max-width: 620px; margin: 5px 0 0; color: #5c7090; font-size: 11px; line-height: 1.5; }.studio-spark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: #d8e7fc; color: #496a9a; font-size: 18px; }
.media-uploader { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border: 1px dashed #a9cecb; border-radius: 12px; background: #fbfefd; }.media-uploader > div:first-child { display: grid; gap: 4px; }.media-uploader strong { font-size: 12px; }.media-uploader small { color: var(--muted); font-size: 10px; }.upload-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.upload-controls input[type="file"] { max-width: 210px; min-height: 36px; padding: 7px; background: var(--surface); font-size: 10px; }.upload-status { color: var(--muted); font-size: 10px; white-space: nowrap; }.media-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }.media-chip { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }.media-chip img { width: 42px; height: 42px; flex: 0 0 42px; object-fit: cover; border-radius: 6px; }.media-chip strong { display: block; overflow: hidden; max-width: 135px; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.media-chip span { color: var(--muted); font-size: 9px; line-height: 1.35; }.variant-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 24px 0 10px; color: var(--muted); font-size: 10px; }.variant-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.variant { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfd; }.variant:has(input[type="checkbox"]:checked) { border-color: #9ad8d1; background: #f2fcfa; box-shadow: inset 0 0 0 1px rgba(22, 198, 178, .08); }.variant-index { display: inline-grid; place-items: center; width: 29px; height: 24px; margin-bottom: 11px; border-radius: 7px; background: var(--navy); color: var(--cyan); font-size: 10px; font-weight: 850; }.variant-fields { display: grid; gap: 9px; }.variant-fields label { font-size: 10px; }.variant-fields input, .variant-fields textarea, .variant-fields select { min-height: 34px; padding: 8px; font-size: 10px; }.variant-fields textarea { min-height: 78px; }.variant-toggle { display: flex; grid-column: 1 / -1; grid-template-columns: none; flex-direction: row; align-items: center; gap: 7px; color: var(--teal-deep); font-weight: 800; }.variant-toggle input { width: 15px; min-height: 15px; accent-color: var(--teal); }.variant-fields .wide { grid-column: 1 / -1; }.planner-panel { margin-top: 13px; }.planner-heading, .review-heading { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }.planner-note { color: var(--muted); font-size: 10px; line-height: 1.5; }.planner-candidates { display: grid; gap: 10px; }.planner-candidate { padding: 11px; border: 1px solid var(--line); border-radius: 10px; }.planner-candidate img { width: 100%; max-width: 130px; max-height: 130px; object-fit: cover; border-radius: 8px; }.planner-apply { min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--teal-deep); font-size: 10px; font-weight: 800; }
.creative-focus { padding: 25px; }.creative-focus-top { align-items: center; }.creative-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 21px; }.creative-principles > div { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }.creative-principles span { color: var(--teal-deep); font-size: 10px; font-weight: 850; letter-spacing: .1em; }.creative-principles strong { font-size: 12px; }.creative-principles small { color: var(--muted); font-size: 10px; line-height: 1.4; }.creative-empty { display: grid; justify-items: center; gap: 8px; margin-top: 17px; padding: 50px 20px; border: 1px dashed #bcd6d4; border-radius: 15px; background: #f5fbfa; text-align: center; }.empty-orbit { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid #a9cecb; border-radius: 50%; background: #e3f8f4; color: var(--teal-deep); font-size: 20px; }.creative-empty h3 { margin: 4px 0 0; font-size: 15px; }.creative-empty p { max-width: 330px; margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }

/* Preview, stage, readback, ready */
.preview-panel { min-height: 360px; }.empty-state, .ready-empty { display: grid; justify-items: center; gap: 9px; padding: 62px 20px; text-align: center; }.empty-icon { display: grid; place-items: center; width: 51px; height: 51px; border: 1px solid #b8d9d5; border-radius: 16px; background: #eaf9f6; color: var(--teal-deep); font-size: 22px; }.empty-state strong, .ready-empty h3 { margin-top: 4px; font-size: 15px; }.empty-state p, .ready-empty p { max-width: 390px; margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }.preview { margin-top: 20px; }.preview-title { margin-bottom: 14px; color: var(--teal-deep); font-size: 12px; }.preview-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 13px; }.preview-summary > div { display: grid; gap: 4px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }.preview-summary span, .preview-fields dt { color: var(--muted); font-size: 10px; }.preview-summary strong { overflow-wrap: anywhere; font-size: 11px; line-height: 1.35; }.preview-summary code, .preview-fields code { overflow-wrap: anywhere; color: var(--muted-dark); font: 9px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; }.preview-variants, .review-variants { display: grid; gap: 11px; }.preview-variant { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfd; }.preview-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; }.preview-variant img { width: 100%; max-height: 190px; object-fit: cover; border-radius: 9px; background: #edf3f3; }.preview-kicker { margin-bottom: 7px; color: var(--teal-deep); font-size: 10px; font-weight: 850; letter-spacing: .08em; }.preview-variant h3 { margin: 0 0 6px; font-size: 15px; }.preview-variant p { margin: 0; color: var(--muted-dark); font-size: 11px; line-height: 1.6; white-space: pre-wrap; }.preview-fields { display: grid; gap: 7px; margin: 12px 0 0; }.preview-fields > div { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 8px; }.preview-fields dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 10px; line-height: 1.45; }.facts-warning { padding: 10px 12px; border-left: 3px solid var(--amber); background: var(--amber-soft); color: #835c25; font-size: 11px; }
.approval-lane { display: grid; grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1fr) 35px minmax(0, 1fr); align-items: center; margin: 25px 0; }.approval-step { display: grid; gap: 6px; min-height: 93px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }.approval-step > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #dce8e9; color: var(--muted-dark); font-size: 10px; font-weight: 850; }.approval-step strong { font-size: 12px; }.approval-step small { color: var(--muted); font-size: 10px; line-height: 1.3; }.approval-step.is-current { border-color: #a8dad4; background: #effaf8; }.approval-step.is-current > span { background: var(--teal); color: var(--ink); }.approval-step.is-deferred { border-color: #ecd8ad; background: #fffaf0; }.approval-step.is-deferred > span { background: var(--amber); color: #5f4316; }.approval-connector { height: 1px; background: var(--line-strong); }.stage-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }.stage-actions > div:first-child { display: grid; gap: 5px; }.stage-actions strong { font-size: 12px; }.stage-actions p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.review-panel, .operation-panel { margin-top: 17px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fbfefd; }.review-heading { align-items: center; margin-bottom: 12px; }.review-heading strong { color: var(--teal-deep); }.review-heading span { color: var(--muted); font-size: 10px; }.operation-panel > strong { color: var(--teal-deep); font-size: 12px; }.operation-actions { display: flex; align-items: center; gap: 10px; margin-top: 13px; }.operation-actions span { color: var(--muted); font-size: 10px; }.deferred-banner { display: flex; gap: 10px; margin-top: 17px; padding: 14px; border: 1px dashed #dfbf7d; border-radius: 11px; background: var(--amber-soft); color: #805a27; }.deferred-banner strong { display: block; font-size: 11px; }.deferred-banner p { margin: 4px 0 0; font-size: 10px; line-height: 1.5; }.status-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 15px; color: var(--muted); font-size: 10px; }.status-legend span { display: inline-flex; align-items: center; gap: 6px; }.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9caeaf; }.legend-dot.paused { background: #44b8a7; }.legend-dot.sent { background: #5d88ca; }.legend-dot.review { background: var(--amber); }.legend-dot.unknown { background: var(--purple); }.graph-panel { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--muted-dark); font-size: 11px; line-height: 1.6; }.graph-panel strong { color: var(--navy); font-size: 13px; }.graph-panel pre, .ready-readback pre, .operation-panel pre { margin: 12px 0 0; max-height: 250px; overflow: auto; padding: 10px; border-radius: 8px; background: #f0f5f5; color: var(--muted-dark); font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }.control-actions { margin-top: 15px; }.boundary-footnote { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.paused-next { display: flex; align-items: center; gap: 13px; margin-top: 14px; padding: 16px 19px; }.next-marker { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #e7f9f5; color: var(--teal-deep); font-weight: 900; }.paused-next > div { display: grid; gap: 4px; flex: 1; }.paused-next h3 { margin: 0; font-size: 12px; }.paused-next p { margin: 0; color: var(--muted); font-size: 10px; }.final-ready-card { padding: 28px; border-color: #e2bd72; background: #fffdf7; box-shadow: var(--shadow-md); }.final-ready-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.final-ready-head h2 { margin: 6px 0 0; color: #6e4a16; font-family: "Aptos Display", "Noto Sans TC", sans-serif; font-size: clamp(29px, 4.2vw, 45px); font-weight: 750; letter-spacing: -.065em; }.ready-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: var(--amber); color: #543a11; font-size: 25px; font-weight: 900; }.ready-intro { margin-top: 19px; padding: 14px 16px; border-left: 4px solid var(--amber); background: var(--amber-soft); color: #6f4e1c; }.ready-intro strong { font-size: 13px; }.ready-intro p { margin: 5px 0 0; font-size: 11px; line-height: 1.55; }.ready-summary { margin-top: 17px; }.ready-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }.ready-grid > div { display: grid; gap: 4px; min-width: 0; padding: 11px; border: 1px solid #ead9b1; border-radius: 10px; background: #fff; }.ready-grid span { color: #947644; font-size: 10px; }.ready-grid strong { overflow-wrap: anywhere; color: #604819; font-size: 10px; line-height: 1.45; }.ready-readback { margin-top: 13px; padding: 13px; border: 1px solid #e6d2a4; border-radius: 10px; background: #fff; color: #6c552a; font-size: 11px; line-height: 1.5; }.ready-warning { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 5px 9px; margin-top: 18px; padding: 15px; border: 1px solid #b9553e; border-radius: 9px; background: #9b4b39; color: #fff; }.ready-warning span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-weight: 900; grid-row: span 2; }.ready-warning strong { font-size: 14px; letter-spacing: .02em; }.ready-warning small { color: rgba(255,255,255,.76); font-size: 10px; }.final-decision { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 55px; margin-top: 15px; padding: 0 17px; border: 1px solid #b78c42; border-radius: 10px; background: #f0dda9; color: #594114; font-size: 13px; font-weight: 850; }.final-decision:hover { border-color: #88601f; background: #ead19a; }.button-caption { margin: 8px 0 0; color: #92794c; font-size: 10px; text-align: center; }.performance-empty { display: grid; justify-items: center; gap: 11px; min-height: 420px; padding: 60px 20px; text-align: center; }.performance-empty h2 { margin: 2px 0 0; font-family: "Aptos Display", "Noto Sans TC", sans-serif; font-size: 27px; letter-spacing: -.05em; }.performance-empty p { max-width: 510px; margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }.performance-radar { position: relative; display: grid; place-items: center; width: 130px; height: 90px; margin-bottom: 3px; overflow: hidden; border-bottom: 1px solid #a6c8c5; }.performance-radar::before, .performance-radar::after { position: absolute; bottom: 0; left: 50%; border: 1px solid #cce1df; border-bottom: 0; border-radius: 80px 80px 0 0; content: ""; transform: translateX(-50%); }.performance-radar::before { width: 115px; height: 57px; }.performance-radar::after { width: 75px; height: 37px; }.performance-radar span { position: absolute; bottom: 25px; left: 50%; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }.performance-radar span:nth-child(1) { margin-left: -41px; bottom: 28px; }.performance-radar span:nth-child(2) { margin-left: 28px; bottom: 42px; }.performance-radar span:nth-child(3) { margin-left: 4px; bottom: 57px; }.performance-radar b { position: relative; z-index: 1; margin-top: 38px; color: var(--muted); font-size: 19px; }

/* Technical details and modal */
.technical-area { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-strong); }.technical-heading { align-items: center; margin-bottom: 13px; }.technical-heading h2 { color: var(--muted-dark); font-size: 16px; }.technical-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }.technical-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 10px; }.machine-state { display: grid; gap: 5px; margin: 10px 0 14px; padding: 11px; border-radius: 9px; background: var(--ink); }.machine-state strong { color: var(--cyan); font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }.machine-state small { color: rgba(231, 246, 244, .68); font-size: 10px; line-height: 1.4; }.technical-card details summary { cursor: pointer; color: var(--teal-deep); font-weight: 800; }.state-catalog-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }.state-catalog-list span { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); color: var(--muted); font: 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }.console-card { padding: 0; overflow: hidden; }.console-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; background: var(--navy); color: #d9f3f0; font-size: 11px; }.text-btn { border: 0; background: transparent; color: var(--cyan); font-size: 10px; font-weight: 800; }.console-card pre { min-height: 120px; max-height: 300px; margin: 0; padding: 13px; overflow: auto; background: #07131f; color: #c4e2de; font: 10px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 19, 31, .62); backdrop-filter: blur(7px); z-index: 80; }.review-modal { position: relative; width: min(100%, 520px); padding: 27px; border: 1px solid #ead6a4; border-radius: 20px; background: #fffdf7; box-shadow: var(--shadow-lg); }.modal-close { position: absolute; top: 13px; right: 14px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #e6d5af; border-radius: 50%; background: transparent; color: #8d6d37; font-size: 20px; line-height: 1; }.review-modal h2 { margin: 12px 0 8px; color: #634615; font-family: "Aptos Display", "Noto Sans TC", sans-serif; font-size: 28px; letter-spacing: -.05em; }.review-modal > p { margin: 0; color: #75613f; font-size: 12px; line-height: 1.7; }.modal-checks { display: grid; gap: 8px; margin: 20px 0; }.modal-checks > div { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 2px 8px; padding: 11px 12px; border: 1px solid #ebdfc3; border-radius: 10px; background: #fff; }.modal-checks span { display: grid; place-items: center; width: 20px; height: 20px; grid-row: span 2; border-radius: 50%; background: #e8f7f3; color: var(--teal-deep); font-weight: 900; }.modal-checks > div:last-child span { background: var(--amber-soft); color: #9c661e; }.modal-checks strong { color: #634615; font-size: 11px; }.modal-checks small { color: #937e5b; font-size: 10px; }.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

/* Responsive / mobile */
@media (max-width: 1180px) {
  :root { --sidebar-width: 224px; }
  .content-wrap { width: min(100% - 42px, 1180px); }
  .topbar { padding-inline: 24px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr) 285px; gap: 17px; }
  .scenario-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.scenario-tile:last-child { grid-column: span 2; }.welcome-panel { grid-template-columns: minmax(0, 1fr) 205px; padding-inline: 25px; }.variant-list { grid-template-columns: 1fr; }.media-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mobile-menu-button { display: inline-grid; place-items: center; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(82vw, 292px); transform: translateX(-102%); box-shadow: var(--shadow-lg); transition: transform .2s ease; }.sidebar.sidebar-open { transform: translateX(0); }.app-main { width: 100%; }.topbar { min-height: 62px; padding-inline: 17px; }.top-context { gap: 7px; }.context-owner-label, .context-divider { display: none; }.content-wrap { width: min(100% - 28px, 700px); padding-top: 25px; }.page-heading { align-items: stretch; flex-direction: column; gap: 16px; }.state-card { width: 100%; }.workflow-strip { display: flex; margin-right: -14px; padding-right: 14px; overflow-x: auto; scrollbar-width: thin; }.workflow-strip li { min-width: 125px; }.overview-grid { grid-template-columns: 1fr; }.readiness-column { order: 2; }.welcome-panel { grid-template-columns: 1fr; }.welcome-orbit { min-height: 150px; max-width: 340px; margin: -4px auto -15px; }.scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.scenario-tile:last-child { grid-column: auto; }.session-row { grid-template-columns: 34px minmax(0, 1fr) minmax(120px, 1fr); }.session-separator { display: none; }.session-row .stepup-input { grid-column: 2 / -1; }.session-row #stepup-btn { grid-column: 2; }.intake-layout { grid-template-columns: 1fr; }.intake-visual { grid-template-columns: 1fr 1fr; align-items: start; }.connection-cards { grid-template-columns: 1fr; }.checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.creative-principles { grid-template-columns: 1fr; }.media-uploader, .stage-actions, .paused-next { align-items: stretch; flex-direction: column; }.upload-controls { justify-content: flex-start; }.approval-lane { grid-template-columns: 1fr; gap: 7px; }.approval-connector { width: 1px; height: 17px; margin-left: 13px; }.approval-step { min-height: auto; }.preview-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.ready-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.technical-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .top-context .context-status span { display: none; }.top-owner-action { padding-inline: 8px; }.page-heading h1 { font-size: 31px; }.page-subtitle { font-size: 12px; }.welcome-panel { padding: 22px 20px; }.welcome-copy h2 { font-size: 29px; }.welcome-actions, .welcome-actions .button { width: 100%; }.welcome-actions { align-items: stretch; flex-direction: column; }.welcome-actions .button { min-height: 43px; }.scenario-grid, .three-up-cards, .checklist-grid, .summary-grid, .preview-summary, .ready-grid { grid-template-columns: 1fr; }.scenario-tile { min-height: auto; }.activity-section, .auth-panel, .intake-panel, .connection-panel, .readiness-checklist, .plan-panel, .preview-panel, .stage-panel, .paused-panel, .creative-focus, .final-ready-card { padding: 18px 16px; }.panel-heading, .section-title-row, .creative-focus-top { flex-direction: column; gap: 8px; }.section-note { padding-top: 0; }.view-intro { flex-direction: column; gap: 15px; }.view-intro h2 { font-size: 28px; }.view-step-badge, .step-callout { width: 100%; min-width: 0; }.intake-visual { grid-template-columns: 1fr; }.document-card { min-height: 150px; }.form-grid.two { grid-template-columns: 1fr; }.span-2 { grid-column: span 1; }.plan-footer { align-items: stretch; flex-direction: column; }.plan-footer .button-row, .plan-footer .button { width: 100%; }.plan-footer .button-row { flex-direction: column-reverse; }.workspace-tabs { overflow-x: auto; }.workspace-tab { flex: 0 0 auto; }.upload-controls { align-items: stretch; flex-direction: column; }.upload-controls input[type="file"], .upload-controls .button { max-width: none; width: 100%; }.media-list { grid-template-columns: 1fr; }.variant-fields { grid-template-columns: 1fr; }.variant-fields .wide { grid-column: 1; }.preview-grid { grid-template-columns: 1fr; }.preview-variant img { max-height: 210px; }.stage-actions .button-row, .stage-actions .button, .control-actions .button, .paused-next .button, .modal-actions .button { width: 100%; }.control-actions { align-items: stretch; flex-direction: column; }.ready-warning strong { font-size: 12px; }.final-ready-head h2 { font-size: 34px; }.review-modal { padding: 22px 18px; }.modal-actions { align-items: stretch; flex-direction: column-reverse; }.modal-actions .button { min-height: 43px; }.technical-area { margin-top: 23px; }.technical-heading { align-items: flex-start; }.technical-heading h2 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Generated state surfaces from the accepted workbench controller. */
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--teal); border-radius: 8px; background: var(--teal); color: var(--ink); font-size: 11px; font-weight: 800; }
.primary:hover { background: #2dd3c0; }
.operation-lede, .graph-lede { margin: 7px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.operation-facts, .graph-identity { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px 12px; margin: 10px 0 12px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.operation-facts span, .graph-identity span { color: var(--muted); font-size: 10px; }.operation-facts strong, .graph-identity strong { overflow-wrap: anywhere; color: var(--text); font-size: 10px; }
.readback-rows { display: grid; gap: 7px; margin: 12px 0; }.readback-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid #b8e2da; border-radius: 8px; background: #f0fbf8; }.readback-row span { color: var(--muted); font-size: 10px; }.readback-row strong { color: var(--teal-deep); font-size: 11px; }.readback-row small { color: var(--muted); font-size: 9px; }
.creative-compare-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }.creative-compare-head > div { display: grid; gap: 5px; }.creative-compare-head strong { color: var(--navy); font-size: 14px; }.creative-compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }.creative-card { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfd; }.creative-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }.creative-card-head span { display: inline-grid; place-items: center; width: 27px; height: 23px; border-radius: 7px; background: var(--navy); color: var(--cyan); font-size: 10px; font-weight: 850; }.creative-card-head strong { color: var(--teal-deep); font-size: 9px; }.creative-preview { position: relative; aspect-ratio: 1.13 / 1; overflow: hidden; border-radius: 9px; background: #dfeceb; }.creative-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }.creative-image-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12px; }.creative-cta { position: absolute; right: 7px; bottom: 7px; padding: 5px 7px; border-radius: 5px; background: rgba(7, 19, 31, .74); color: #fff; font-size: 9px; font-weight: 800; }.creative-copy { display: grid; gap: 7px; padding: 10px 2px 8px; }.creative-copy h3 { margin: 0; overflow-wrap: anywhere; color: var(--navy); font-size: 13px; }.creative-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted-dark); font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }.creative-copy dl { display: grid; gap: 5px; margin: 0; }.creative-copy dl div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; }.creative-copy dt { color: var(--muted); font-size: 9px; }.creative-copy dd { overflow: hidden; margin: 0; color: var(--muted-dark); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }.creative-validation { padding-top: 8px; border-top: 1px solid var(--line); color: var(--teal-deep); font-size: 9px; }.creative-validation span { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 4px; border-radius: 50%; background: var(--teal); color: var(--ink); font-weight: 900; }
@media (max-width: 860px) { .media-uploader, .stage-actions, .paused-next { align-items: stretch; flex-direction: column; } }
@media (max-width: 540px) { .creative-compare-head { align-items: stretch; flex-direction: column; }.creative-compare-grid { grid-template-columns: 1fr; }.readback-row { grid-template-columns: 55px 1fr; }.readback-row small { grid-column: 2; }.operation-facts, .graph-identity { grid-template-columns: auto minmax(0, 1fr); } }

/* Production-shaped access boundary: the customer surface never falls through to local identity. */
.formal-auth-boundary { display: grid; place-items: center; min-height: 100vh; padding: 32px 20px; background: radial-gradient(circle at 18% 10%, rgba(169, 222, 215, .28), transparent 32%), linear-gradient(135deg, #f4efe6 0%, #e7f1ee 48%, #f6eee1 100%); color: var(--ink); text-align: center; }
.formal-auth-boundary > * { max-width: 570px; }
.formal-auth-boundary .boundary-symbol { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 18px; border: 1px solid rgba(17, 68, 72, .35); border-radius: 22px; background: rgba(255, 255, 255, .55); color: var(--teal-deep); font-size: 34px; box-shadow: 0 13px 30px rgba(17, 68, 72, .12); }
.formal-auth-boundary h1 { margin: 6px 0 12px; color: var(--ink); font-family: "Aptos Display", "Noto Sans TC", sans-serif; font-size: clamp(34px, 7vw, 58px); letter-spacing: -.07em; }
.formal-auth-boundary > p:not(.eyebrow):not(.boundary-footnote) { margin: 0 auto; color: var(--muted-dark); font-size: 14px; line-height: 1.8; }
.formal-auth-boundary .boundary-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.formal-auth-boundary .boundary-footnote { margin: 24px auto 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
body[data-auth-state="pending"] .app-shell, body[data-auth-state="locked"] .app-shell { display: none; }
body[data-auth-state="ready"] .formal-auth-boundary { display: none; }
body[data-auth-state="ready"] .app-shell { display: grid; }
@media (max-width: 540px) { .formal-auth-boundary { min-height: 100svh; padding: 24px 18px; }.formal-auth-boundary .boundary-actions, .formal-auth-boundary .boundary-actions .button { width: 100%; }.formal-auth-boundary .boundary-actions { align-items: stretch; flex-direction: column; } }

/* Brief-backed visual language: campaign handoff in B, restrained ledger boundary in C. */
.campaign-object-panel { background-image: linear-gradient(105deg, rgba(255, 255, 255, .90), rgba(237, 247, 243, .80)), url("/ads/app/assets/ads-handoff-paper-texture-r001.png"); background-size: cover; background-position: center; }
.stage-panel, .unknown-ledger { background-image: linear-gradient(105deg, rgba(247, 253, 249, .90), rgba(232, 242, 237, .82)), url("/ads/app/assets/ads-authority-ledger-field-r001.png"); background-size: cover; background-position: center; }
.creative-reference-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 14px; text-align: left; }
.creative-reference-heading h3 { margin: 4px 0 5px; color: var(--navy); font-size: 16px; }
.creative-reference-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.creative-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.creative-reference-grid figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.creative-reference-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.creative-reference-grid figcaption { padding: 8px 9px 9px; color: var(--muted-dark); font-size: 10px; line-height: 1.35; }
.creative-reference-note { margin: 13px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.55; text-align: left; }
@media (max-width: 720px) { .creative-reference-grid { grid-template-columns: 1fr; }.creative-reference-grid figure { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: stretch; }.creative-reference-grid img { width: 96px; height: 120px; }.creative-reference-grid figcaption { display: flex; align-items: center; padding: 12px; } }

/* ADS-FULL-UI-EXPANSION-R001: Direction B campaign stage with Direction C authority ledger. */
:root {
  --paper: #f4efe6;
  --paper-deep: #e7dfd1;
  --ink: #12212a;
  --ink-soft: #31434c;
  --stage-blue: #2b73d1;
  --stage-blue-deep: #174b91;
  --lime: #c6e649;
  --coral: #e56a5d;
  --ledger: #dde8df;
  --ledger-deep: #b6cdbd;
  --line-b: rgba(18, 33, 42, .22);
  --shadow-stage: 8px 9px 0 rgba(18, 33, 42, .08);
}

html { background: var(--paper); }
body.ads-app {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}
body.ads-app::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(244, 239, 230, .78), rgba(244, 239, 230, .92)), url("/ads/app/assets/ads-handoff-paper-texture-r001.png") center / cover;
  content: "";
  pointer-events: none;
}
.app-shell { display: block; min-height: 100vh; }
.sidebar {
  position: relative;
  top: auto;
  left: auto;
  height: auto !important;
  min-height: 78px !important;
  flex: none;
  overflow: visible;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 12px clamp(16px, 3vw, 46px);
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 5px 0 rgba(18, 33, 42, .12);
  transform: none;
  transition: none;
}
.brand-lockup { min-width: max-content; color: #fff; }
.brand-mark span { background: var(--lime); }
.brand-mark span:nth-child(2) { background: var(--stage-blue); }
.brand-mark span:nth-child(3) { background: var(--coral); }
.brand-copy strong { letter-spacing: .08em; }
.brand-copy small { color: rgba(255, 255, 255, .68); letter-spacing: .18em; }
.workspace-switcher, .sidebar-bottom { display: none; }
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  margin: 0 18px;
}
.nav-section-label { display: none; }
.nav-section-spaced { display: none; }
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
}
.nav-item:hover { border-color: rgba(198, 230, 73, .65); color: #fff; }
.nav-item.is-current { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.nav-icon { display: inline-grid; place-items: center; color: var(--lime); font-size: 15px; }
.nav-item.is-current .nav-icon { color: var(--ink); }
.nav-state { color: inherit; font: 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; opacity: .68; }
.app-main { width: 100%; min-width: 0; }
.topbar {
  min-height: 62px;
  padding: 0 clamp(16px, 3vw, 46px);
  border-bottom: 1px solid var(--line-b);
  background: rgba(244, 239, 230, .86);
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.topbar-leading { gap: 14px; }
.mobile-menu-button { display: none !important; }
.breadcrumb { color: var(--ink-soft); }
.breadcrumb strong { color: var(--ink); }
.breadcrumb-slash { color: var(--coral); }
.top-context { color: var(--ink-soft); }
.context-status { color: var(--ink-soft); }
.context-owner-label { color: var(--ink-soft); }
.context-divider { background: var(--line-b); }
.top-owner-action { border-color: var(--ink); background: var(--ink); color: #fff; }
.top-owner-action:hover { border-color: var(--stage-blue); background: var(--stage-blue); }
.content-wrap {
  width: min(100% - 40px, 1260px);
  padding-top: clamp(25px, 4vw, 48px);
  padding-bottom: 70px;
}
.page-heading { margin-bottom: 22px; }
.eyebrow, .section-eyebrow, .micro-label { color: var(--stage-blue-deep); letter-spacing: .16em; }
.page-heading h1, .view-intro h2, .welcome-copy h2, .panel-heading h2, .section-title-row h2 { color: var(--ink); }
.page-heading h1, .welcome-copy h2, .view-intro h2 { letter-spacing: -.045em; }
.page-subtitle { color: var(--ink-soft); }
.state-card {
  min-width: 245px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(18, 33, 42, .12);
}
.state-card-top span:first-child, .state-card small { color: rgba(18, 33, 42, .72); }
.state-badge { color: var(--stage-blue-deep); }
.progress-meter { background: rgba(18, 33, 42, .16); }
.progress-meter span { background: var(--stage-blue); }
.workflow-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 26px;
  padding: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-b);
  background: rgba(255, 255, 255, .36);
}
.workflow-strip::before { position: absolute; top: -2px; left: 0; width: var(--rail-progress, 10%); height: 2px; background: var(--stage-blue); content: ""; }
.workflow-strip li { min-width: 0; padding: 12px 12px 11px; border-right: 1px solid var(--line-b); color: rgba(18, 33, 42, .55); font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.workflow-strip li:last-child { border-right: 0; }
.workflow-strip li span { display: block; margin-bottom: 4px; color: var(--coral); font: 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.workflow-strip li.is-active { background: var(--stage-blue); color: #fff; }
.workflow-strip li.is-active span { color: var(--lime); }
.workflow-strip li.is-done { color: var(--ink); }
.surface-panel, .mini-card, .scenario-tile, .boundary-note {
  border-color: var(--line-b);
  border-radius: 3px;
  box-shadow: none;
}
.surface-panel { background: rgba(255, 255, 255, .68); }
.welcome-panel {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr);
  min-height: 340px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-stage);
}
.welcome-panel::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  z-index: -1;
  width: 360px;
  height: 260px;
  border: 24px solid rgba(43, 115, 209, .12);
  border-radius: 50%;
  content: "";
  transform: rotate(-15deg);
}
.welcome-copy { align-self: center; max-width: 690px; }
.welcome-copy h2 { max-width: 12ch; font-size: clamp(34px, 5vw, 65px); line-height: .98; }
.welcome-copy p { max-width: 650px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.signal-label { color: var(--stage-blue-deep); }
.signal-label i { background: var(--coral); }
.welcome-actions { margin-top: 25px; }
.button { min-height: 40px; border-radius: 2px; font-size: 11px; letter-spacing: .02em; }
.button-primary { border-color: var(--stage-blue); background: var(--stage-blue); color: #fff; }
.button-primary:hover { border-color: var(--stage-blue-deep); background: var(--stage-blue-deep); }
.button-secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--stage-blue); background: rgba(43, 115, 209, .08); color: var(--stage-blue-deep); }
.button-quiet { border-color: var(--line-b); color: var(--ink-soft); }
.button-danger { border-color: var(--coral); background: var(--coral); color: #fff; }
.welcome-orbit { display: none; }
.campaign-object-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--ink);
  background: rgba(221, 232, 223, .72);
}
.campaign-object-head, .creative-focus-top, .panel-heading, .section-title-row { align-items: flex-start; }
.campaign-object-head { display: flex; justify-content: space-between; gap: 18px; }
.campaign-object-head h2 { margin: 5px 0 0; color: var(--ink); font-size: 22px; letter-spacing: -.03em; }
.stage-chip { padding: 6px 8px; border: 1px solid var(--stage-blue); color: var(--stage-blue-deep); font: 9px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }
.campaign-object-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 18px; border-top: 1px solid var(--line-b); }
.campaign-object-grid > div { display: grid; gap: 5px; min-width: 0; padding: 14px 13px 5px 0; border-right: 1px solid var(--line-b); }
.campaign-object-grid > div:not(:first-child) { padding-left: 13px; }
.campaign-object-grid > div:last-child { border-right: 0; }
.object-label { color: var(--coral); font: 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.campaign-object-grid strong { overflow-wrap: anywhere; color: var(--ink); font-size: 15px; }
.campaign-object-grid small { color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.scenario-section { margin-top: 32px; }
.section-note { color: var(--ink-soft); }
.scenario-tile { background: rgba(255, 255, 255, .42); }
.scenario-tile.is-selected { border-color: var(--stage-blue); background: var(--stage-blue); color: #fff; box-shadow: 5px 5px 0 rgba(43, 115, 209, .14); }
.scenario-number, .mini-number { color: var(--coral); }
.scenario-tile.is-selected .scenario-number { color: var(--lime); }
.activity-section { margin-top: 24px; background: rgba(255, 255, 255, .54); }
.readiness-panel { border: 1px solid var(--ink); background: var(--ledger); }
.readiness-panel::before { background: var(--coral); }
.readiness-list li.is-ready { background: rgba(198, 230, 73, .24); }
.readiness-footer { color: var(--ink-soft); }
.boundary-note {
  position: relative;
  overflow: hidden;
  border-color: var(--coral);
  background: rgba(229, 106, 93, .09);
}
.boundary-note::before, .connection-boundary::before, .deferred-banner::before { background: var(--coral); }
.boundary-note strong, .deferred-banner strong { color: var(--ink); }
.boundary-note p, .deferred-banner p { color: var(--ink-soft); }
.auth-panel, .intake-panel, .connection-panel, .readiness-checklist, .plan-panel, .preview-panel, .stage-panel, .paused-panel, .creative-focus, .final-ready-card { background: rgba(255, 255, 255, .72); }
.view-intro { margin-bottom: 22px; }
.view-intro h2 { font-size: clamp(29px, 4vw, 48px); }
.view-intro p { max-width: 680px; color: var(--ink-soft); line-height: 1.75; }
.view-step-badge, .step-callout { border-color: var(--ink); border-radius: 2px; background: var(--lime); color: var(--ink); }
.view-step-badge.warm { border-color: var(--coral); background: rgba(229, 106, 93, .12); }
.view-step-badge.teal { border-color: var(--ledger-deep); background: var(--ledger); }
.view-step-badge.unknown { border-color: var(--coral); background: var(--coral); color: #fff; }
.connection-panel, .stage-panel, .unknown-ledger, .paused-panel, .final-ready-card { position: relative; overflow: hidden; }
.connection-panel::after, .stage-panel::after, .unknown-ledger::after, .paused-panel::after, .final-ready-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  background: var(--coral);
  content: "";
}
.connection-panel.ready::after, .paused-panel.ready::after, .final-ready-card.ready::after { background: var(--lime); }
.connection-boundary, .deferred-banner { border-color: var(--coral); background: rgba(229, 106, 93, .09); }
.meta-truth-grid { display: grid; gap: 8px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line-b); }
.truth-row { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border-left: 3px solid var(--stage-blue); background: rgba(255, 255, 255, .62); }
.truth-row.verified { border-left-color: #5c9d70; }
.truth-row.pending { border-left-color: var(--coral); }
.truth-row.boundary { border-left-color: var(--ink); }
.truth-mark { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 900; }
.truth-row.verified .truth-mark { background: #5c9d70; color: #fff; }
.truth-row.pending .truth-mark { background: var(--coral); color: #fff; }
.truth-row strong { display: block; color: var(--ink); font-size: 11px; }
.truth-row small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.truth-row b { color: var(--stage-blue-deep); font: 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }
.truth-row.pending b { color: #a43f35; }
.truth-row.boundary b { color: var(--ink); }
.workspace-tabs { border-bottom-color: var(--ink); }
.workspace-tab { color: var(--ink-soft); }
.workspace-tab.is-active { border-bottom-color: var(--stage-blue); color: var(--stage-blue-deep); }
.studio-banner { border-color: var(--stage-blue); background: rgba(43, 115, 209, .08); }
.studio-spark { color: var(--coral); }
.media-uploader { border-color: var(--line-b); background: var(--ledger); }
.creative-focus { border: 1px solid var(--ink); }
.creative-focus-top { border-bottom-color: var(--line-b); }
.creative-principles > div { border-color: var(--line-b); background: rgba(221, 232, 223, .45); }
.creative-principles span { color: var(--coral); }
.creative-empty { min-height: 0; }
.creative-compare-head strong { color: var(--ink); }
.creative-compare-grid { gap: 15px; }
.creative-card { padding: 0; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); overflow: hidden; }
.creative-card-head { margin: 0; padding: 10px 12px; background: var(--ink); }
.creative-card-head span { width: auto; height: auto; padding: 4px 6px; border-radius: 0; background: var(--lime); color: var(--ink); }
.creative-card-head strong { color: var(--lime); }
.creative-preview { aspect-ratio: 4 / 5; border-radius: 0; background: var(--paper-deep); }
.creative-cta { right: 10px; bottom: 10px; border: 1px solid var(--lime); border-radius: 1px; background: var(--ink); color: var(--lime); }
.creative-copy { padding: 14px 13px 12px; }
.creative-copy h3 { color: var(--ink); }
.creative-copy p, .creative-copy dd { color: var(--ink-soft); }
.creative-validation { padding: 10px 13px 13px; border-top-color: var(--line-b); color: #4e875f; }
.creative-validation span { background: #5c9d70; color: #fff; }
.preview-panel, .stage-panel, .paused-panel, .final-ready-card { border-color: var(--ink); }
.preview-variant { border-color: var(--line-b); background: var(--paper); }
.preview-variant img { aspect-ratio: 4 / 5; object-fit: cover; }
.approval-lane { position: relative; }
.approval-step { border-color: var(--line-b); background: rgba(221, 232, 223, .54); }
.approval-step.is-current { border-color: var(--stage-blue); background: rgba(43, 115, 209, .11); }
.approval-step.is-current > span { background: var(--stage-blue); color: #fff; }
.approval-step.is-deferred { border-color: var(--coral); background: rgba(229, 106, 93, .08); }
.approval-step.is-deferred > span { background: var(--coral); color: #fff; }
.approval-connector { background: var(--ink); }
.stage-actions, .control-actions, .paused-next { border-top-color: var(--line-b); }
.stage-actions > div > strong, .paused-next h3 { color: var(--ink); }
.review-panel { border-color: var(--stage-blue); background: rgba(43, 115, 209, .06); }
.operation-panel { border-color: var(--coral); background: rgba(229, 106, 93, .06); }
.operation-facts, .graph-identity { border-color: var(--line-b); border-radius: 2px; background: var(--ledger); }
.readback-row { border-color: var(--ledger-deep); border-radius: 2px; background: rgba(221, 232, 223, .7); }
.readback-row strong { color: #4e875f; }
.status-legend { color: var(--ink-soft); }
.legend-dot.paused { background: var(--stage-blue); }
.legend-dot.sent { background: var(--lime); }
.legend-dot.review { background: var(--coral); }
.legend-dot.unknown { background: var(--ink); }
.paused-next { border: 1px solid var(--ink); background: var(--ledger); }
.next-marker { color: var(--stage-blue); }
.unknown-ledger { border: 1px solid var(--ink); background: var(--ledger); }
.unknown-ledger::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 100%;
  background: repeating-linear-gradient(135deg, var(--coral) 0 9px, transparent 9px 18px);
  content: "";
}
.unknown-ledger .panel-heading { padding-left: 16px; }
.panel-status-unknown { border-color: var(--coral); background: rgba(229, 106, 93, .12); color: #9d4138; }
.unknown-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .8fr); gap: 22px; align-items: start; margin-top: 20px; padding: 20px 0 20px 16px; border-top: 1px solid var(--line-b); border-bottom: 1px solid var(--line-b); }
.unknown-copy { display: flex; gap: 15px; align-items: flex-start; }
.unknown-emblem { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; border: 2px solid var(--coral); color: var(--coral); font-size: 28px; font-weight: 900; }
.unknown-copy strong { color: var(--ink); font-size: 18px; }
.unknown-copy p { max-width: 580px; margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.unknown-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; margin: 0; padding: 13px; border: 1px solid var(--line-b); background: rgba(255, 255, 255, .56); }
.unknown-facts div { display: contents; }
.unknown-facts dt { color: var(--coral); font: 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.unknown-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font: 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.reconcile-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin: 20px 0 0 16px; }
.reconcile-step { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line-b); background: rgba(255, 255, 255, .45); }
.reconcile-step.is-current { border-color: var(--coral); background: rgba(229, 106, 93, .09); }
.reconcile-step > span { color: var(--coral); font: 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.reconcile-step strong { color: var(--ink); font-size: 11px; }
.reconcile-step small { color: var(--ink-soft); font-size: 9px; }
.reconcile-arrow { color: var(--coral); font-size: 22px; }
.unknown-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 19px 0 0 16px; }
.unknown-actions span { color: var(--ink-soft); font-size: 10px; }
.final-ready-card { border: 2px solid var(--ink); background: var(--ledger); box-shadow: var(--shadow-stage); }
.final-ready-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: var(--coral);
  content: "";
}
.final-ready-head { padding-top: 8px; }
.final-ready-head h2 { color: var(--ink); font-size: clamp(31px, 5vw, 56px); letter-spacing: -.05em; }
.ready-mark { border-color: var(--ink); background: var(--lime); color: var(--ink); }
.ready-intro { border-color: var(--ledger-deep); background: rgba(255, 255, 255, .55); }
.ready-intro strong { color: var(--ink); }
.ready-intro p { color: var(--ink-soft); }
.ready-warning { border-color: var(--coral); border-radius: 2px; background: var(--coral); }
.final-decision { border-color: var(--ink); border-radius: 2px; background: var(--ink); color: var(--lime); }
.final-decision:hover { border-color: var(--stage-blue-deep); background: var(--stage-blue-deep); color: #fff; }
.button-caption { color: var(--ink-soft); }
.performance-empty { border-color: var(--ink); background: rgba(255, 255, 255, .68); }
.performance-empty h2 { color: var(--ink); }
.performance-empty p { color: var(--ink-soft); }
.performance-radar { border-bottom-color: var(--stage-blue); }
.technical-area { border-top-color: var(--ink); }
.technical-card { border-color: var(--line-b); border-radius: 2px; background: rgba(255, 255, 255, .55); }
.machine-state { background: var(--ink); }
.modal-backdrop { background: rgba(18, 33, 42, .72); }
.review-modal { border-color: var(--coral); border-radius: 2px; background: var(--paper); }
.review-modal h2 { color: var(--ink); }
.review-modal > p, .modal-checks small { color: var(--ink-soft); }
.modal-checks > div { border-color: var(--line-b); border-radius: 2px; background: rgba(255, 255, 255, .72); }
.modal-checks strong { color: var(--ink); }
.modal-checks span { background: var(--lime); color: var(--ink); }
.modal-checks > div:last-child span { background: var(--coral); color: #fff; }

@media (max-width: 1080px) {
  .sidebar { grid-template-columns: auto minmax(0, 1fr); }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: 10px 0 0; overflow-x: auto; padding-bottom: 2px; }
  .campaign-object-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-object-grid > div:nth-child(2) { border-right: 0; }
  .campaign-object-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line-b); }
  .campaign-object-grid > div:nth-child(3) { padding-left: 0; }
  .campaign-object-grid > div:nth-child(4) { padding-left: 13px; }
}
@media (max-width: 860px) {
  .sidebar { min-height: 70px; padding: 10px 14px; }
  .primary-nav { gap: 2px; margin-top: 8px; }
  .nav-item { min-height: 32px; padding: 0 8px; font-size: 10px; }
  .nav-item .nav-state { display: none; }
  .content-wrap { width: min(100% - 28px, 720px); }
  .topbar { padding-inline: 14px; }
  .workflow-strip { display: flex; width: 100%; margin-right: 0; padding-right: 0; box-sizing: border-box; overflow-x: auto; }
  .workflow-strip li { flex: 0 0 132px; }
  .welcome-panel { grid-template-columns: 1fr; min-height: auto; }
  .welcome-copy h2 { max-width: 15ch; }
  .campaign-object-head { flex-direction: column; }
  .campaign-object-grid { grid-template-columns: 1fr 1fr; }
  .campaign-object-grid > div, .campaign-object-grid > div:nth-child(n + 3) { padding-left: 0; }
  .campaign-object-grid > div:nth-child(2), .campaign-object-grid > div:nth-child(4) { padding-left: 12px; }
  .campaign-object-grid > div:nth-child(2) { border-right: 0; }
  .campaign-object-grid > div:nth-child(3), .campaign-object-grid > div:nth-child(4) { border-top: 1px solid var(--line-b); }
  .truth-row { grid-template-columns: 25px minmax(0, 1fr); }
  .truth-row b { grid-column: 2; }
  .unknown-grid { grid-template-columns: 1fr; }
  .reconcile-steps { grid-template-columns: 1fr; gap: 7px; }
  .reconcile-arrow { padding-left: 14px; transform: rotate(90deg); }
  .unknown-actions { align-items: stretch; flex-direction: column; }
  .unknown-actions .button { width: 100%; }
}
@media (max-width: 540px) {
  .brand-copy small { display: none; }
  .top-context .context-status span { display: none; }
  .content-wrap { width: min(100% - 20px, 720px); padding-top: 22px; }
  .page-heading h1 { font-size: 33px; }
  .welcome-panel { padding: 22px 18px; }
  .welcome-copy h2 { font-size: 35px; }
  .campaign-object-panel { padding: 16px; }
  .campaign-object-grid { grid-template-columns: 1fr; }
  .campaign-object-grid > div, .campaign-object-grid > div:nth-child(2), .campaign-object-grid > div:nth-child(3), .campaign-object-grid > div:nth-child(4) { padding: 11px 0; border-right: 0; border-top: 1px solid var(--line-b); }
  .campaign-object-grid > div:first-child { border-top: 0; }
  .stage-chip { white-space: normal; }
  .meta-truth-grid { margin-top: 14px; }
  .truth-row { padding: 10px; }
  .creative-compare-grid { grid-template-columns: 1fr; }
  .creative-preview { aspect-ratio: 4 / 5; }
  .unknown-ledger { padding: 18px 16px; }
  .unknown-grid, .reconcile-steps, .unknown-actions { margin-left: 0; }
  .unknown-grid { padding-left: 0; }
  .unknown-ledger::before { width: 5px; }
  .final-ready-head h2 { font-size: 39px; }
  .final-ready-card { padding: 21px 17px; }
  .final-ready-card::before { height: 5px; }
}
