/*
 * Norm Studio editorial refresh.
 * Presentation only: no workflow, field, route, data, or behavior changes.
 */

.studio-theme-editorial {
    color-scheme: light;
    --ink: #17211b;
    --muted: #687068;
    --line: #d9ddd4;
    --red: #647b42;
    --gold: #718347;
    --paper: #f4f4ee;
    --surface: #fffef9;
    --surface-soft: #eceee5;
    --accent: #718347;
    margin: 0;
    background: var(--paper);
    background-image: none;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -.01em;
}

.studio-theme-editorial header {
    height: 86px;
    padding: 0 max(28px, calc((100vw - 1320px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(244, 244, 238, .94);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.studio-theme-editorial .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.05em;
}

.studio-theme-editorial .brand::before {
    content: "N↗";
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 9px;
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -.08em;
}

.studio-theme-editorial header nav { gap: 2px; }
.studio-theme-editorial header nav a,
.studio-theme-editorial .category-trigger {
    border-radius: 999px;
    color: #586058;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .01em;
}
.studio-theme-editorial header nav a:hover,
.studio-theme-editorial header nav a.active,
.studio-theme-editorial .nav-categories:hover .category-trigger,
.studio-theme-editorial .nav-categories:focus-within .category-trigger {
    background: #e6e8df;
    color: var(--ink);
}
.studio-theme-editorial .category-trigger::after { color: #7f877d; }
.studio-theme-editorial .category-menu {
    border-color: var(--line);
    background: rgba(255, 254, 249, .97);
    box-shadow: 0 24px 60px rgba(28, 39, 30, .12);
}
.studio-theme-editorial .category-menu a { color: #505950; }
.studio-theme-editorial .category-menu a:hover { background: var(--surface-soft); color: var(--ink); }

.studio-theme-editorial main {
    width: min(100%, 1368px);
    max-width: none;
    padding: 58px 32px 120px;
}

.studio-theme-editorial h1,
.studio-theme-editorial h2,
.studio-theme-editorial .segment,
.studio-theme-editorial .narration p {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -.045em;
}
.studio-theme-editorial h1 {
    max-width: 940px;
    font-size: clamp(46px, 7vw, 88px);
    font-weight: 760;
    line-height: .92;
}
.studio-theme-editorial h2 { font-weight: 760; }
.studio-theme-editorial .page-head {
    min-height: 240px;
    align-items: center;
    margin-bottom: 38px;
    padding: 18px 0 42px;
    border-bottom: 1px solid var(--line);
}
.studio-theme-editorial .page-head .muted {
    max-width: 650px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 17px;
}
.studio-theme-editorial .eyebrow,
.studio-theme-editorial .step {
    color: var(--accent);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .18em;
}

.studio-theme-editorial .panel,
.studio-theme-editorial .project-card,
.studio-theme-editorial .scene,
.studio-theme-editorial .narration,
.studio-theme-editorial .social-asset-card,
.studio-theme-editorial .character-reference-prompt {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: none;
}
.studio-theme-editorial .panel { padding: clamp(24px, 4vw, 46px); }

.studio-theme-editorial .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.studio-theme-editorial .project-card {
    min-height: 250px;
    padding: 26px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.studio-theme-editorial .project-card:hover {
    transform: translateY(-3px);
    border-color: #aeb9a2;
    box-shadow: 0 18px 42px rgba(35, 50, 38, .08);
}
.studio-theme-editorial .project-card h2 { margin-top: 22px; font-size: 27px; }
.studio-theme-editorial .project-card time { color: #81887e; }
.studio-theme-editorial .status {
    border-color: #ccd1c8;
    background: #f2f3ed;
    color: #626b62;
}
.studio-theme-editorial .status.complete { border-color: #b3c8b0; background: #edf5eb; color: #456445; }
.studio-theme-editorial .status.working { border-color: #d8c398; background: #fbf4e4; color: #7e6128; }
.studio-theme-editorial .status.failed { border-color: #e1aaa4; background: #fbecea; color: #98473f; }

.studio-theme-editorial .cinematic-entry-card {
    margin-bottom: 28px;
    border-color: #bdc8ad;
    background: #e7eadf;
    color: var(--ink);
    box-shadow: none;
}
.studio-theme-editorial .cinematic-entry-card:hover { border-color: var(--accent); background: #e0e5d5; }
.studio-theme-editorial .cinematic-entry-mark { background: var(--ink); color: var(--paper); }

.studio-theme-editorial input,
.studio-theme-editorial textarea,
.studio-theme-editorial select {
    border-color: #cfd4ca;
    background: #fff;
    color: var(--ink);
}
.studio-theme-editorial input::placeholder,
.studio-theme-editorial textarea::placeholder { color: #9a9f97; }
.studio-theme-editorial input:focus,
.studio-theme-editorial textarea:focus,
.studio-theme-editorial select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(113, 131, 71, .14);
}
.studio-theme-editorial label { color: #404840; }

.studio-theme-editorial .primary {
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--ink);
    color: #fffef9;
    box-shadow: none;
}
.studio-theme-editorial .primary:hover { background: #2b382f; }
.studio-theme-editorial .ghost,
.studio-theme-editorial .secondary {
    border: 1px solid #cbd1c7;
    border-radius: 8px;
    background: transparent;
    color: #3e483f;
}
.studio-theme-editorial .ghost:hover,
.studio-theme-editorial .secondary:hover { border-color: #9ca89a; background: #e8ebe3; color: var(--ink); }

.studio-theme-editorial .agent-grid { gap: 10px; }
.studio-theme-editorial .agent-option > span,
.studio-theme-editorial .visual-style-options label > span,
.studio-theme-editorial .handywoman-character-options label > span,
.studio-theme-editorial .duration-selector span,
.studio-theme-editorial .creative-mode-options label > span,
.studio-theme-editorial .self-scene-entry,
.studio-theme-editorial .battlefield-idea-list article {
    border-color: #d4d8cf;
    background: #f9f9f4;
    color: var(--ink);
}
.studio-theme-editorial .agent-option > span:hover,
.studio-theme-editorial .visual-style-options label > span:hover,
.studio-theme-editorial .duration-selector span:hover { border-color: #aeb8a6; background: #f0f2e9; }
.studio-theme-editorial .agent-option input:checked + span,
.studio-theme-editorial .visual-style-options input:checked + span,
.studio-theme-editorial .handywoman-character-options input:checked + span,
.studio-theme-editorial .duration-selector input:checked + span,
.studio-theme-editorial .creative-mode-options input:checked + span {
    border-color: var(--accent);
    background: #e8ecdf;
    box-shadow: inset 0 0 0 1px var(--accent);
}
.studio-theme-editorial .agent-option b,
.studio-theme-editorial .visual-style-options strong,
.studio-theme-editorial .handywoman-character-options strong,
.studio-theme-editorial .duration-selector strong { color: var(--ink); }
.studio-theme-editorial .agent-option small,
.studio-theme-editorial .visual-style-options small,
.studio-theme-editorial .handywoman-character-options small,
.studio-theme-editorial .duration-selector small { color: var(--muted); }

.studio-theme-editorial .phase {
    border-color: #d3d8cf;
    background: #f9f9f4;
}
.studio-theme-editorial .phase > span { color: #8d958b; }
.studio-theme-editorial .phase.complete { border-color: #9fb49d; background: #edf4ea; }
.studio-theme-editorial .phase.working { border-color: var(--accent); background: #eef1e7; }
.studio-theme-editorial .pipeline .phase:not(:last-child)::after { background: #c8cec4; }
.studio-theme-editorial .pipeline .phase:not(:last-child)::before { border-color: #8d968b; }

.studio-theme-editorial .notice,
.studio-theme-editorial .alert {
    border-color: #d7c391;
    background: #fbf3de;
    color: #6d5623;
}
.studio-theme-editorial .failure-explanation,
.studio-theme-editorial .failed-copy { background: #fff7f5; }
.studio-theme-editorial .failure-explanation-grid > div {
    border-color: #e8c8c3;
    background: #fff;
}
.studio-theme-editorial .failure-explanation-grid p { color: #655e5b; }

.studio-theme-editorial details,
.studio-theme-editorial .prompt-block { border-color: var(--line); }
.studio-theme-editorial summary,
.studio-theme-editorial .prompt-block h3,
.studio-theme-editorial .scene-number { color: var(--accent); }
.studio-theme-editorial .downloads a,
.studio-theme-editorial .prompt-copy {
    border-color: #cdd2c9;
    background: #f7f8f2;
    color: #4e584f;
}
.studio-theme-editorial .cost-badge,
.studio-theme-editorial .story-title-edit-toggle {
    border-color: var(--line);
    background: var(--surface);
    color: var(--muted);
}
.studio-theme-editorial .cost-badge strong { color: var(--ink); }
.studio-theme-editorial .project-delete-button { background: #fff5f3; }

.studio-theme-editorial .login-shell { min-height: calc(100vh - 220px); }
.studio-theme-editorial .login-art h1 { max-width: 760px; }
.studio-theme-editorial .login-art > p:last-child { color: var(--muted); }

@media (max-width: 1050px) {
    .studio-theme-editorial .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .studio-theme-editorial header { min-height: 74px; padding: 12px 18px; }
    .studio-theme-editorial main { padding: 34px 18px 80px; }
    .studio-theme-editorial .page-head { min-height: 0; align-items: flex-start; padding: 10px 0 32px; }
    .studio-theme-editorial .page-head .muted { font-size: 15px; }
    .studio-theme-editorial .project-grid { grid-template-columns: 1fr; }
    .studio-theme-editorial .project-card { min-height: 210px; }
}

/* Higgsfield-inspired production skin: dense, dark, and action-forward. */
.studio-theme-editorial {
    color-scheme: dark;
    --ink: #f3f5ef;
    --muted: #929791;
    --line: #2b2e2c;
    --red: #d8ff47;
    --gold: #d8ff47;
    --paper: #0c0e0d;
    --surface: #151716;
    --surface-soft: #1e211f;
    --accent: #d8ff47;
    background: #0c0e0d;
    background-image: radial-gradient(circle at 72% -10%, rgba(216,255,71,.07), transparent 28%);
}
.studio-theme-cinematic { --red:#d8ff47; --gold:#d8ff47; --line:#2b2e2c; }
.studio-theme-editorial header { border-color:#272a28; background:rgba(12,14,13,.94); }
.studio-theme-editorial .brand::before { background:var(--accent); color:#10120f; }
.studio-theme-editorial header nav a,
.studio-theme-editorial .category-trigger { color:#989d97; }
.studio-theme-editorial header nav a:hover,
.studio-theme-editorial header nav a.active,
.studio-theme-editorial .nav-categories:hover .category-trigger,
.studio-theme-editorial .nav-categories:focus-within .category-trigger { background:#202320; color:var(--ink); }
.studio-theme-editorial .category-trigger::after { color:#747a73; }
.studio-theme-editorial .category-menu { background:rgba(21,23,22,.98); box-shadow:0 24px 60px #0008; }
.studio-theme-editorial .category-menu a { color:#c0c4be; }
.studio-theme-editorial .category-menu a:hover { background:#202320; }
.studio-theme-editorial .panel,
.studio-theme-editorial .project-card,
.studio-theme-editorial .scene,
.studio-theme-editorial .narration,
.studio-theme-editorial .social-asset-card,
.studio-theme-editorial .character-reference-prompt { background:#151716; }
.studio-theme-editorial .project-card:hover { border-color:#59634d; box-shadow:0 18px 42px #0005; }
.studio-theme-editorial .project-card time { color:#747a73; }
.studio-theme-editorial .status { border-color:#3b403c; background:#202320; color:#a7ada6; }
.studio-theme-editorial .status.complete { border-color:#5f713a; background:#222b18; color:#d8ff47; }
.studio-theme-editorial .status.working { border-color:#8a7336; background:#2a2517; color:#edcc70; }
.studio-theme-editorial .status.failed { border-color:#743a35; background:#2b1817; color:#ff958a; }
.studio-theme-editorial .cinematic-entry-card { border-color:#454c3e; background:linear-gradient(110deg,#1c2118,#151716); }
.studio-theme-editorial .cinematic-entry-card:hover { border-color:var(--accent); background:#20271a; }
.studio-theme-editorial .cinematic-entry-mark { background:var(--accent); color:#10120f; }
.studio-theme-editorial input,
.studio-theme-editorial textarea,
.studio-theme-editorial select { border-color:#323633; background:#111312; color:var(--ink); }
.studio-theme-editorial input::placeholder,
.studio-theme-editorial textarea::placeholder { color:#6f756f; }
.studio-theme-editorial input:focus,
.studio-theme-editorial textarea:focus,
.studio-theme-editorial select:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(216,255,71,.12); }
.studio-theme-editorial label { color:#c5c9c3; }
.studio-theme-editorial .primary { border-color:var(--accent); background:var(--accent); color:#10120f; }
.studio-theme-editorial .primary:hover { background:#e5ff84; }
.studio-theme-editorial .ghost,
.studio-theme-editorial .secondary { border-color:#383c39; color:#c3c8c1; }
.studio-theme-editorial .ghost:hover,
.studio-theme-editorial .secondary:hover { border-color:#626961; background:#202320; color:var(--ink); }
.studio-theme-editorial .agent-option > span,
.studio-theme-editorial .visual-style-options label > span,
.studio-theme-editorial .handywoman-character-options label > span,
.studio-theme-editorial .duration-selector span,
.studio-theme-editorial .creative-mode-options label > span,
.studio-theme-editorial .self-scene-entry,
.studio-theme-editorial .battlefield-idea-list article { border-color:#2e322f; background:#111312; }
.studio-theme-editorial .agent-option > span:hover,
.studio-theme-editorial .visual-style-options label > span:hover,
.studio-theme-editorial .duration-selector span:hover { border-color:#59634d; background:#1a1d1a; }
.studio-theme-editorial .agent-option input:checked + span,
.studio-theme-editorial .visual-style-options input:checked + span,
.studio-theme-editorial .handywoman-character-options input:checked + span,
.studio-theme-editorial .duration-selector input:checked + span,
.studio-theme-editorial .creative-mode-options input:checked + span { border-color:var(--accent); background:#20271a; box-shadow:inset 0 0 0 1px var(--accent); }
.studio-theme-editorial .phase { border-color:#303431; background:#131514; }
.studio-theme-editorial .phase > span { color:#666c66; }
.studio-theme-editorial .phase.complete { border-color:#526432; background:#1b2315; }
.studio-theme-editorial .phase.working { border-color:var(--accent); background:#202719; }
.studio-theme-editorial .pipeline .phase:not(:last-child)::after { background:#363a37; }
.studio-theme-editorial .pipeline .phase:not(:last-child)::before { border-color:#6d746d; }
.studio-theme-editorial .notice,
.studio-theme-editorial .alert { border-color:#695b2e; background:#282314; color:#e1c66e; }
.studio-theme-editorial .failure-explanation,
.studio-theme-editorial .failed-copy { background:#211615; }
.studio-theme-editorial .failure-explanation-grid > div { border-color:#5a302d; background:#171313; }
.studio-theme-editorial .failure-explanation-grid p { color:#c4b9b6; }
.studio-theme-editorial .downloads a,
.studio-theme-editorial .prompt-copy { border-color:#343834; background:#121412; color:#aab0a9; }
.studio-theme-editorial .cost-badge,
.studio-theme-editorial .story-title-edit-toggle { background:#151716; }
.studio-theme-editorial .login { background:#151716; }

/* High-contrast black + electric lime finish. */
.studio-theme-editorial {
    --ink:#ffffff;
    --muted:#a7aaa8;
    --line:#303330;
    --paper:#050605;
    --surface:#101210;
    --surface-soft:#191c19;
    --accent:#d9ff43;
    --red:#d9ff43;
    --gold:#d9ff43;
    background:#050605;
    background-image:radial-gradient(circle at 62% -14%,rgba(217,255,67,.13),transparent 27%),linear-gradient(180deg,#070907 0,#050605 52%);
}
.studio-theme-editorial header { background:rgba(5,6,5,.94); border-color:#262926; }
.studio-theme-editorial .brand::before { background:#d9ff43; box-shadow:0 0 24px rgba(217,255,67,.18); }
.studio-theme-editorial .eyebrow,
.studio-theme-editorial .step,
.studio-theme-editorial summary,
.studio-theme-editorial .prompt-block h3,
.studio-theme-editorial .scene-number { color:#d9ff43; }
.studio-theme-editorial .panel,
.studio-theme-editorial .project-card,
.studio-theme-editorial .scene,
.studio-theme-editorial .narration,
.studio-theme-editorial .social-asset-card,
.studio-theme-editorial .character-reference-prompt { background:#101210; border-color:#2b2e2b; }
.studio-theme-editorial .project-card:hover { border-color:#d9ff43; box-shadow:0 0 0 1px rgba(217,255,67,.18),0 24px 55px #0009; }
.studio-theme-editorial .primary { background:#d9ff43; border-color:#d9ff43; color:#080a07; box-shadow:0 7px 24px rgba(217,255,67,.16); }
.studio-theme-editorial .primary:hover { background:#e7ff89; border-color:#e7ff89; }
.studio-theme-editorial input,
.studio-theme-editorial textarea,
.studio-theme-editorial select { background:#0a0c0a; border-color:#343734; color:#fff; }
.studio-theme-editorial input:focus,
.studio-theme-editorial textarea:focus,
.studio-theme-editorial select:focus { border-color:#d9ff43; box-shadow:0 0 0 3px rgba(217,255,67,.16); }
.studio-theme-editorial .agent-option > span,
.studio-theme-editorial .visual-style-options label > span,
.studio-theme-editorial .handywoman-character-options label > span,
.studio-theme-editorial .duration-selector span,
.studio-theme-editorial .creative-mode-options label > span,
.studio-theme-editorial .self-scene-entry,
.studio-theme-editorial .battlefield-idea-list article { background:#0c0e0c; border-color:#2e312e; }
.studio-theme-editorial .agent-option input:checked + span,
.studio-theme-editorial .visual-style-options input:checked + span,
.studio-theme-editorial .handywoman-character-options input:checked + span,
.studio-theme-editorial .duration-selector input:checked + span,
.studio-theme-editorial .creative-mode-options input:checked + span { background:#1b2113; border-color:#d9ff43; box-shadow:inset 0 0 0 1px #d9ff43,0 0 20px rgba(217,255,67,.07); }
.studio-theme-editorial .cinematic-entry-card { background:linear-gradient(110deg,#17200e,#0c0e0c); border-color:#4d5a32; }
.studio-theme-editorial .cinematic-entry-card:hover { background:#1a2212; border-color:#d9ff43; }
.studio-theme-editorial .status.complete { border-color:#718a32; background:#1a2111; color:#d9ff43; }
.studio-theme-cinematic { --red:#d9ff43; --gold:#d9ff43; }

.studio-signal-bar {
    position:relative;
    z-index:11;
    display:flex;
    min-height:42px;
    align-items:center;
    justify-content:center;
    gap:14px;
    padding:8px 24px;
    background:#d9ff43;
    color:#090b08;
    font-size:12px;
}
.studio-signal-bar > span { padding:3px 7px; border-radius:5px; background:#0a0c0a; color:#d9ff43; font-size:9px; font-weight:900; letter-spacing:.12em; }
.studio-signal-bar strong { font-weight:800; }
.studio-signal-bar a { color:#090b08; font-weight:850; text-decoration:none; }
.studio-signal-bar a:hover { text-decoration:underline; }
.studio-theme-cinematic .studio-signal-bar { background:#d9ff43; color:#090b08; }
.studio-theme-cinematic .cinematic-actions .primary {
    color:#080a07;
}
.studio-theme-cinematic {
    background:#050706;
    background-image:none;
}
.studio-theme-cinematic main { background:#050706; }
.studio-theme-cinematic .cinematic-hero {
    border-color:#343934;
    background:#090b0a;
    box-shadow:0 28px 90px #0009;
}
.studio-theme-cinematic .cinematic-stat,
.studio-theme-cinematic .studio-module,
.studio-theme-cinematic .idea-card,
.studio-theme-cinematic .cinematic-list > a,
.studio-theme-cinematic .cinematic-stage-track article,
.studio-theme-cinematic .panel,
.studio-theme-cinematic .visual-story-result > div,
.studio-theme-cinematic .stage-empty {
    border-color:#303430;
    background:#0d0f0e;
}
.studio-theme-cinematic .studio-module:hover:not(.is-planned),
.studio-theme-cinematic .cinematic-list > a:hover {
    border-color:#d9ff43;
    background:#111510;
}
.studio-theme-cinematic .cinematic-stage-track article.current {
    border-color:#d9ff43;
    background:#12170d;
}

.studio-theme-editorial .project-card { min-height:0; padding:0; overflow:hidden; }
.studio-theme-editorial .project-card-link { height:100%; }
.studio-theme-editorial .project-card-cover {
    position:relative;
    display:block;
    aspect-ratio:16/9;
    overflow:hidden;
    border-bottom:1px solid #292c29;
    background:#171a17;
}
.studio-theme-editorial .project-card-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.38)); pointer-events:none; }
.studio-theme-editorial .project-card-cover img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease,filter .35s ease; }
.studio-theme-editorial .project-card:hover .project-card-cover img { transform:scale(1.035); filter:saturate(1.08) contrast(1.04); }
.studio-theme-editorial .project-card-cover-placeholder { display:grid; place-items:center; background:radial-gradient(circle at 70% 10%,rgba(217,255,67,.18),transparent 35%),linear-gradient(135deg,#191d16,#0b0d0b); }
.studio-theme-editorial .project-card-cover-placeholder span { color:#d9ff43; font-size:clamp(26px,4vw,52px); font-weight:900; letter-spacing:-.07em; opacity:.85; }
.studio-theme-editorial .project-card-content { display:block; min-height:205px; padding:24px 26px 26px; }
.studio-theme-editorial .project-card h2 { margin-top:18px; }
.studio-theme-editorial .project-delete-form { z-index:2; }

.studio-theme-editorial .project-grid .project-card { min-height:260px; }
.studio-theme-editorial .project-grid .project-card-content { min-height:260px; padding:30px; }

@media(max-width:760px) {
    .studio-signal-bar { justify-content:space-between; padding:8px 16px; }
    .studio-signal-bar strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .studio-signal-bar > span { display:none; }
    .studio-theme-editorial .project-card-content { min-height:180px; padding:21px; }
}

/* Aptos type system and accessibility-oriented size increase. */
.studio-theme-editorial,
.studio-theme-cinematic {
    font-family:"Aptos","Aptos Display","Segoe UI",Arial,sans-serif;
    font-size:19px;
}
.studio-theme-editorial :where(button,input,textarea,select),
.studio-theme-cinematic :where(button,input,textarea,select) {
    font-family:inherit;
}
.studio-theme-editorial :where(h1,h2,h3,.brand,.segment,.narration p),
.studio-theme-cinematic :where(h1,h2,h3,.brand,.segment,.narration p) {
    font-family:"Aptos Display","Aptos","Segoe UI",Arial,sans-serif;
}
.studio-theme-editorial header nav a,
.studio-theme-editorial .category-trigger { font-size:15px; }
.studio-theme-editorial .brand { font-size:25px; }
.studio-theme-editorial .page-head .muted { font-size:21px; line-height:1.55; }
.studio-theme-editorial .eyebrow,
.studio-theme-editorial .step { font-size:13px; }
.studio-theme-editorial .project-card h2 { font-size:34px; line-height:1.08; }
.studio-theme-editorial .project-card .muted { font-size:17px; }
.studio-theme-editorial .project-card time { font-size:15px; }
.studio-theme-editorial .status { font-size:12px; }
.studio-theme-editorial label { font-size:16px; }
.studio-theme-editorial input,
.studio-theme-editorial textarea,
.studio-theme-editorial select { font-size:18px; line-height:1.5; }
.studio-theme-editorial .agent-option b,
.studio-theme-editorial .visual-style-options strong,
.studio-theme-editorial .handywoman-character-options strong,
.studio-theme-editorial .duration-selector strong { font-size:16px; }
.studio-theme-editorial .agent-option small,
.studio-theme-editorial .visual-style-options small,
.studio-theme-editorial .handywoman-character-options small,
.studio-theme-editorial .duration-selector small,
.studio-theme-editorial .muted,
.studio-theme-editorial small { font-size:14px; line-height:1.5; }
.studio-theme-editorial .primary,
.studio-theme-editorial .secondary,
.studio-theme-editorial .ghost { font-size:16px; }
.studio-theme-editorial .phase > b { font-size:16px; }
.studio-theme-editorial .phase small { font-size:12px; }
.studio-theme-editorial .prompt-block p,
.studio-theme-editorial details p,
.studio-theme-editorial .scene p { font-size:17px; line-height:1.65; }
.studio-theme-editorial .prompt-block h3 { font-size:17px; }
.studio-signal-bar { font-family:"Aptos","Segoe UI",Arial,sans-serif; font-size:15px; }

@media(max-width:760px) {
    .studio-theme-editorial,
    .studio-theme-cinematic { font-size:17px; }
    .studio-theme-editorial header nav a,
    .studio-theme-editorial .category-trigger { font-size:14px; }
    .studio-theme-editorial .brand { font-size:21px; }
    .studio-theme-editorial .project-card h2 { font-size:30px; }
    .studio-theme-editorial input,
    .studio-theme-editorial textarea,
    .studio-theme-editorial select { font-size:16px; }
}

/* Create workspace: larger type and roomier agent cards. */
.studio-theme-editorial .compact-story-form .agent-grid .agent-option > span {
    grid-template-columns:88px minmax(0,1fr);
    column-gap:19px;
    row-gap:8px;
    min-height:158px;
    padding:22px;
}
.studio-theme-editorial .compact-story-form .agent-option .agent-avatar-shell {
    width:88px;
    height:88px;
    border-radius:16px;
}
.studio-theme-editorial .compact-story-form .agent-avatar-shell i {
    font-family:"Aptos Display","Aptos","Segoe UI",Arial,sans-serif;
    font-size:31px;
    font-weight:700;
}
.studio-theme-editorial .compact-story-form .agent-option b {
    font-size:21px;
    line-height:1.2;
}
.studio-theme-editorial .compact-story-form .agent-option small {
    font-size:17px;
    line-height:1.48;
}
.studio-theme-editorial .cinematic-entry-card {
    min-height:126px;
    gap:20px;
    padding:25px 28px;
}
.studio-theme-editorial .cinematic-entry-card strong {
    font-family:"Aptos Display","Aptos","Segoe UI",Arial,sans-serif;
    font-size:29px;
    font-weight:750;
    letter-spacing:-.025em;
}
.studio-theme-editorial .cinematic-entry-card small {
    font-size:18px;
    line-height:1.5;
}
.studio-theme-editorial .cinematic-entry-mark { padding:8px 11px; font-size:11px; }
.studio-theme-editorial .cinematic-entry-arrow { font-size:34px; }
.studio-theme-editorial header nav a,
.studio-theme-editorial .category-trigger { font-size:17px; }
.studio-theme-editorial header .ghost { padding:11px 17px; font-size:17px; }

@media(max-width:1000px) {
    .studio-theme-editorial .compact-story-form .agent-grid { grid-template-columns:1fr; }
}
@media(max-width:760px) {
    .studio-theme-editorial .compact-story-form .agent-grid .agent-option > span {
        grid-template-columns:72px minmax(0,1fr);
        min-height:138px;
        padding:18px;
    }
    .studio-theme-editorial .compact-story-form .agent-option .agent-avatar-shell { width:72px; height:72px; }
    .studio-theme-editorial .compact-story-form .agent-option b { font-size:19px; }
    .studio-theme-editorial .compact-story-form .agent-option small { font-size:16px; }
    .studio-theme-editorial .cinematic-entry-card strong { font-size:23px; }
    .studio-theme-editorial .cinematic-entry-card small { font-size:16px; }
}

/* Uniform control copy, restrained selection, and a red-free status system. */
.studio-theme-editorial .compact-story-form :where(p,small,label,legend,.visual-style-label,.language-choice,.prompt-language-note),
.studio-theme-editorial .compact-story-form :where(input,textarea,select,button) {
    font-size:17px !important;
    line-height:1.5;
}
.studio-theme-editorial .compact-story-form .agent-option b { font-size:21px !important; }
.studio-theme-editorial .compact-story-form .agent-option input:checked + span,
.studio-theme-editorial .compact-story-form .visual-style-options input:checked + span,
.studio-theme-editorial .compact-story-form .handywoman-character-options input:checked + span,
.studio-theme-editorial .compact-story-form .duration-selector input:checked + span,
.studio-theme-editorial .compact-story-form .creative-mode-options input:checked + span {
    border-color:#d9ff43;
    background:#101210;
    box-shadow:inset 0 0 0 1px #d9ff43;
}
.studio-theme-editorial .language-switch-control input:checked + .language-switch-track {
    border-color:#d9ff43;
    background:#2a3216;
}
.studio-theme-editorial .language-switch-control input:focus-visible + .language-switch-track,
.studio-theme-editorial .visual-style-options input:focus-visible + span,
.studio-theme-editorial .handywoman-character-options input:focus-visible + span,
.studio-theme-editorial .duration-selector input:focus-visible + span {
    outline-color:#d9ff43;
}
.studio-theme-editorial .project-delete-button,
.studio-theme-editorial .idea-delete {
    border-color:#4a4e4a;
    background:#181a18;
    color:#c5c9c4;
}
.studio-theme-editorial .project-delete-button:hover,
.studio-theme-editorial .idea-delete:hover {
    border-color:#d9ff43;
    background:#20241b;
    color:#d9ff43;
}
.studio-theme-editorial .status.failed {
    border-color:#8b7530;
    background:#292514;
    color:#f3d66f;
}
.studio-theme-editorial .failed-copy,
.studio-theme-editorial .failure-explanation,
.studio-theme-editorial .idea-generation-error,
.studio-theme-editorial .qc-verdict.revise,
.studio-theme-editorial .qc-corrections {
    border-color:#76652f;
    background:#292514;
}
.studio-theme-editorial .failure-explanation-grid > div { border-color:#5e542e; background:#191810; }
.studio-theme-editorial .failure-explanation-grid h3,
.studio-theme-editorial .pablo-answer-error,
.studio-theme-editorial .qc-verdict.revise > span,
.studio-theme-editorial .qc-checks article.fail span,
.studio-theme-editorial .qc-shot-reviews article span.fail { color:#f3d66f; }
.studio-theme-editorial .pablo-message-user { border-color:#657838; background:#202817; color:#f1f4eb; }
.studio-theme-editorial .self-scene-remove { color:#b7bcb6; }
.studio-theme-editorial .self-scene-remove:hover { color:#d9ff43; }

.studio-theme-cinematic .status.failed,
.studio-theme-cinematic .qc-verdict.revise,
.studio-theme-cinematic .qc-corrections {
    border-color:#76652f;
    background:#292514;
    color:#f3d66f;
}
.studio-theme-cinematic :where(.qc-verdict.revise>span,.qc-checks article.fail span,.qc-shot-reviews article span.fail) { color:#f3d66f; }

/* Failure state: crisp neutral surface with amber information hierarchy. */
.studio-theme-editorial .failed-copy,
.studio-theme-editorial .failure-explanation {
    border-color:#72652f;
    background:linear-gradient(145deg,#15160f,#101210);
    box-shadow:0 20px 60px #0008;
}
.studio-theme-editorial .failure-explanation-grid > div {
    border-color:#4f4a2b;
    background:#0b0d0b;
}
.studio-theme-editorial .failure-explanation > .eyebrow { color:#d9ff43; }
.studio-theme-editorial .failure-explanation-grid h3 { color:#e6d271; }
.studio-theme-editorial .failure-explanation-grid p { color:#d3d6d0; }
.studio-theme-editorial .failure-explanation > p { color:#f3f5ef; }

/* Keep every production agent in one continuous row. */
.studio-theme-editorial .pipeline.pipeline {
    grid-template-columns: repeat(6, minmax(125px, 1fr));
    justify-content: stretch;
    gap: 20px;
    width: 100%;
    max-width: none;
}
.studio-theme-editorial .pipeline.pipeline-five {
    grid-template-columns: repeat(5, minmax(135px, 1fr));
}
.studio-theme-editorial .pipeline.pipeline-compact {
    grid-template-columns:repeat(3, minmax(160px, 1fr));
    max-width:900px;
    margin-left:auto;
    margin-right:auto;
}
.studio-theme-editorial .pipeline .phase:not(:last-child)::after { width:20px; }
.studio-theme-editorial .pipeline .phase:not(:last-child)::before { left:calc(100% + 13px); }

@media (max-width: 900px) {
    .studio-theme-editorial .pipeline.pipeline,
    .studio-theme-editorial .pipeline.pipeline-five {
        grid-template-columns: repeat(6, 150px);
        justify-content: start;
        gap: 16px;
        overflow-x: auto;
        padding: 0 0 14px;
        scroll-snap-type: x proximity;
    }
    .studio-theme-editorial .pipeline.pipeline-five { grid-template-columns:repeat(5, 150px); }
    .studio-theme-editorial .pipeline.pipeline-compact {
        grid-template-columns:repeat(3, 150px);
        max-width:none;
        margin-left:0;
        margin-right:0;
    }
    .studio-theme-editorial .pipeline .phase {
        min-height:150px;
        scroll-snap-align:start;
    }
    .studio-theme-editorial .pipeline .phase:not(:last-child)::after,
    .studio-theme-editorial .pipeline .phase:not(:last-child)::before { display:none; }
}

/* Failure styling: high-visibility pink badge and neutral gray explanation panel. */
.studio-theme-editorial .status.failed {
    border-color:#ff2b8a;
    background:#ff2b8a;
    color:#fff;
    box-shadow:0 0 22px #ff2b8a33;
}
.studio-theme-editorial .failed-copy,
.studio-theme-editorial .failure-explanation {
    border-color:#454a46;
    background:linear-gradient(145deg,#1d201e,#151716);
    box-shadow:0 20px 60px #0008;
}
.studio-theme-editorial .failure-explanation-grid > div {
    border-color:#414642;
    background:#101211;
}
.studio-theme-editorial .failure-explanation-grid h3 { color:#c7cbc7; }

/* More compact project library cards without reducing type size. */
.studio-theme-editorial .project-grid { gap:14px; }
.studio-theme-editorial .project-grid .project-card { min-height:195px; }
.studio-theme-editorial .project-grid .project-card-content {
    min-height:195px;
    padding:20px 22px;
}
.studio-theme-editorial .project-grid .project-card h2 {
    margin-top:12px;
    font-size:32px;
}
.studio-theme-editorial .project-grid .project-card .eyebrow { font-size:12px; }
.studio-theme-editorial .project-grid .project-card .muted { font-size:16px; }
.studio-theme-editorial .project-grid .project-card time {
    margin-top:18px;
    font-size:14px;
}
.studio-theme-editorial .project-grid .project-card .status { font-size:11px; }

@media (max-width:760px) {
    .studio-theme-editorial .project-grid .project-card,
    .studio-theme-editorial .project-grid .project-card-content { min-height:175px; }
    .studio-theme-editorial .project-grid .project-card-content { padding:18px; }
    .studio-theme-editorial .project-grid .project-card h2 { font-size:28px; }
}

/* Battlefield's compressed team reads as a live handoff, not a numbered checklist. */
.studio-theme-editorial .pipeline.pipeline-compact {
    gap:54px;
    max-width:980px;
    overflow:visible;
}
.studio-theme-editorial .pipeline-compact .phase {
    position:relative;
    min-height:260px;
    aspect-ratio:auto;
    padding:26px 22px 22px;
    overflow:visible;
    border-color:#3d4930;
    background:
        radial-gradient(circle at 50% 28%, rgba(217,255,67,.10), transparent 38%),
        linear-gradient(155deg,#171b15,#0d100e 72%);
    box-shadow:0 18px 44px #0007, inset 0 1px 0 #ffffff0a;
}
.studio-theme-editorial .pipeline-compact .phase.complete {
    border-color:#60772a;
    background:
        radial-gradient(circle at 50% 28%, rgba(217,255,67,.15), transparent 40%),
        linear-gradient(155deg,#1b2417,#0d110e 72%);
}
.studio-theme-editorial .pipeline-compact .phase.working {
    border-color:#d9ff43;
    box-shadow:0 0 0 1px #d9ff4340, 0 18px 50px #0008, 0 0 34px #d9ff4314;
}
.studio-theme-editorial .pipeline-compact .phase > b {
    max-width:215px;
    margin:16px auto 0;
    font-size:18px;
    line-height:1.22;
    text-wrap:balance;
}
.studio-theme-editorial .pipeline-compact .agent-bot-shell {
    display:grid;
    place-items:center;
    width:108px;
    height:108px;
    margin:0 auto;
    border:1px solid #526333;
    border-radius:34px;
    background:#090c0a;
    color:#d9ff43;
    box-shadow:inset 0 0 26px #d9ff430b, 0 10px 25px #0008;
    animation:agent-bob 3.4s ease-in-out infinite;
}
.studio-theme-editorial .pipeline-compact .phase:nth-child(2) .agent-bot-shell { animation-delay:-1.1s; }
.studio-theme-editorial .pipeline-compact .phase:nth-child(3) .agent-bot-shell { animation-delay:-2.2s; }
.studio-theme-editorial .pipeline-compact .agent-bot { width:82px; height:82px; overflow:visible; }
.studio-theme-editorial .pipeline-compact :where(.bot-antenna,.bot-ear,.bot-smile,.bot-tool-mark) {
    fill:none;
    stroke:currentColor;
    stroke-width:3;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.studio-theme-editorial .pipeline-compact .bot-head { fill:#151a17; stroke:#6d7a6f; stroke-width:2; }
.studio-theme-editorial .pipeline-compact .bot-eye,
.studio-theme-editorial .pipeline-compact .bot-signal { fill:currentColor; filter:drop-shadow(0 0 4px #d9ff43); }
.studio-theme-editorial .pipeline-compact .bot-tool { fill:#101510; stroke:currentColor; stroke-width:2; }
.studio-theme-editorial .pipeline-compact .bot-play { fill:currentColor; stroke:none; }
.studio-theme-editorial .pipeline-compact .bot-shield { fill:#101510; }
.studio-theme-editorial .pipeline-compact .agent-state {
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-top:14px;
    color:#aeb5ac;
    font-size:12px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}
.studio-theme-editorial .pipeline-compact .agent-state::before {
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:#6d746d;
}
.studio-theme-editorial .pipeline-compact .phase.complete .agent-state { color:#d9ff43; }
.studio-theme-editorial .pipeline-compact .phase.complete .agent-state::before { background:#d9ff43; box-shadow:0 0 9px #d9ff43; }
.studio-theme-editorial .pipeline-compact .phase.working .agent-state::before { background:#d9ff43; animation:agent-pulse 1.2s ease-in-out infinite; }
.studio-theme-editorial .pipeline-compact .phase:not(:last-child)::after {
    display:block;
    content:"";
    position:absolute;
    z-index:0;
    top:50%;
    left:100%;
    width:54px;
    height:1px;
    background:linear-gradient(90deg,#566334,#d9ff43aa,#566334);
    opacity:.85;
}
.studio-theme-editorial .pipeline-compact .phase:not(:last-child)::before { display:none; }
.studio-theme-editorial .pipeline-compact .agent-handoff {
    position:absolute;
    z-index:2;
    top:calc(50% - 5px);
    left:calc(100% + 1px);
    width:10px;
    height:10px;
    border:2px solid #d9ff43;
    border-radius:3px;
    background:#121710;
    box-shadow:0 0 12px #d9ff43;
    transform:rotate(45deg);
    animation:agent-handoff 2.8s ease-in-out infinite;
}
.studio-theme-editorial .pipeline-compact .phase:nth-child(2) .agent-handoff { animation-delay:-1.4s; }

@keyframes agent-bob {
    0%,100% { transform:translateY(0); }
    50% { transform:translateY(-6px); }
}
@keyframes agent-pulse {
    0%,100% { opacity:.45; box-shadow:0 0 3px #d9ff43; }
    50% { opacity:1; box-shadow:0 0 12px #d9ff43; }
}
@keyframes agent-handoff {
    0% { transform:translateX(0) rotate(45deg) scale(.72); opacity:0; }
    18% { opacity:1; }
    82% { opacity:1; }
    100% { transform:translateX(42px) rotate(225deg) scale(.72); opacity:0; }
}

@media (max-width:900px) {
    .studio-theme-editorial .pipeline.pipeline-compact { gap:16px; }
    .studio-theme-editorial .pipeline-compact .phase { min-height:230px; padding:22px 14px; }
    .studio-theme-editorial .pipeline-compact .agent-bot-shell { width:92px; height:92px; border-radius:28px; }
    .studio-theme-editorial .pipeline-compact .agent-bot { width:70px; height:70px; }
    .studio-theme-editorial .pipeline-compact .phase:not(:last-child)::after,
    .studio-theme-editorial .pipeline-compact .agent-handoff { display:none; }
}
@media (prefers-reduced-motion:reduce) {
    .studio-theme-editorial .pipeline-compact :where(.agent-bot-shell,.agent-handoff,.agent-state::before) { animation:none !important; }
}

/* Agent library typography: quieter titles and descriptions; avatars remain unchanged. */
.studio-theme-editorial .compact-story-form .agent-option b {
    font-size:17px !important;
    line-height:1.22;
}
.studio-theme-editorial .compact-story-form .agent-option small {
    font-size:14px !important;
    line-height:1.42;
}
@media (max-width:760px) {
    .studio-theme-editorial .compact-story-form .agent-option b { font-size:16px !important; }
    .studio-theme-editorial .compact-story-form .agent-option small { font-size:13px !important; }
}
