/* Semantic surfaces; mobile is a working environment, not a shrunk desktop. */
:root{--bg:#f1f0ec;--paper:#f8f7f3;--ink:#333431;--muted:#646560;--line:#d5d5cf;--surface-2:#e9e9e3;--input:#f5f4f0;--hover:#e7e7e1;--soft-accent:#eeebf3;--brand:#65528b;--accent:#65528b;--focus:#65528b;--success-ink:#28695d;--danger-ink:#a33e37;--detail-teal:#28736a;--detail-amber:#8c5b15;--detail-blue:#435d87;--on-brand:#faf8f4;--card-radius:12px;--control-radius:8px}
html[data-theme="dark"]{--bg:#232422;--paper:#2b2c29;--ink:#e3e2dc;--muted:#b6b7ae;--line:#4b4d46;--surface-2:#353731;--input:#30312d;--hover:#3b3d36;--soft-accent:#3d3746;--brand:#725d99;--accent:#c4b5df;--focus:#c4b5df;--success-ink:#9dcebb;--danger-ink:#e6aaa1;--detail-teal:#96cbbd;--detail-amber:#daba80;--detail-blue:#aabedb;--on-brand:#faf8f4}
body{background:var(--bg);color:var(--ink)}.button{min-height:40px;border-radius:var(--control-radius)}.button.primary{color:var(--on-brand)}.button.danger,.danger{color:var(--danger-ink)}.page{max-width:1680px;padding-top:28px}.heading .button{flex-shrink:0}.heading p{line-height:1.65}.field>span{text-transform:none;letter-spacing:normal;font-size:14px}.field input,.field select,.field textarea{font-size:16px;border-radius:var(--control-radius)}.field textarea::placeholder,.field input::placeholder{color:var(--muted);opacity:1}.start-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0 32px}.start-choice{display:flex;gap:20px;align-items:center;padding:28px;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:var(--card-radius)}.start-choice>svg{width:28px;height:28px;flex-shrink:0;color:var(--accent)}.start-choice span{flex:1}.start-choice strong{font-size:22px;display:block;margin-bottom:8px}.start-choice small{font-size:15px;line-height:1.6;color:var(--muted)}.start-choice:hover{border-color:var(--accent)}.overview-details>summary{font-size:18px;font-weight:600;cursor:pointer;padding:16px 0}.overview-details>.heading{display:none}.workflow-strip{gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}.workflow-strip button{border:0;border-radius:0;background:var(--paper)}.workflow-strip button+button{border-left:1px solid var(--line)}
.guided-layout{display:grid;grid-template-columns:minmax(0,740px) minmax(220px,320px);gap:32px;align-items:start}.guided-form{overflow:hidden}.guided-steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);padding:20px;gap:12px;border-bottom:1px solid var(--line);margin:0}.guided-steps li{font-size:13px;display:flex;align-items:center;gap:8px;color:var(--muted)}.guided-steps li[aria-current]{color:var(--ink);font-weight:700}.guided-steps li>span{width:28px;height:28px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;flex:none}.guided-steps li[aria-current]>span{background:var(--brand);color:var(--on-brand)}.guided-steps svg{width:16px;height:16px}.guided-body{padding:28px}.guided-body[hidden]{display:none}.guided-body h2{font-size:24px;margin-bottom:12px}.guided-body>p{margin-bottom:20px;color:var(--muted)}.guided-body textarea{min-height:130px}.guided-body details>summary,.catalog-toolbar summary,.profile-extra>summary{padding:14px 0;cursor:pointer;font-weight:600}.guided-body details>.fields{padding-top:12px}.guided-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.guided-actions .primary{min-width:130px}.guided-summary{padding:20px 0;color:var(--muted);font-size:14px;line-height:1.7}.guided-summary h2{font-size:16px;color:var(--ink)}.guided-summary p{margin:14px 0;overflow-wrap:anywhere}.guided-summary details{margin-top:24px}.guided-summary details summary{cursor:pointer}.draft-footer{border-top:1px solid var(--line);padding:12px 20px;display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.format-picks{border:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0;margin:16px 0 22px}.format-picks legend{margin-bottom:10px}.format-pick{border:1px solid var(--line);border-radius:10px;padding:14px;display:flex;align-items:center;gap:8px;cursor:pointer;flex-wrap:wrap}.format-pick svg{width:24px;height:24px}.format-pick:has(input:checked){border:2px solid var(--accent);padding:13px;background:var(--surface-2)}.format-pick input{accent-color:var(--brand)}.run-note{margin-top:20px;font-size:13px}.guided-results{margin-top:32px;scroll-margin-top:90px}.guided-results>p{margin:12px 0 20px;color:var(--muted)}
.format-illustration{height:130px;margin:-20px -20px 4px;position:relative;overflow:hidden;background:var(--surface-2);border-radius:12px 12px 0 0;color:var(--accent);display:grid;place-items:center}.art-frame{position:relative;z-index:1;transform:rotate(-8deg);display:block}.art-frame svg{width:62px;height:62px;stroke-width:1.2}.art-dot{width:86px;height:86px;border:1px solid currentColor;border-radius:50%;position:absolute;right:16%;bottom:-27px;opacity:.2}.art-line{height:1px;width:180px;transform:rotate(-28deg);background:currentColor;position:absolute;left:8%;top:25%;opacity:.25}.art-series .art-frame{transform:rotate(8deg)}.art-microdrama .art-frame{transform:rotate(-12deg)}.format-catalog h2{font-size:20px;line-height:1.35}.format-catalog details{margin-top:8px}.format-catalog details summary{cursor:pointer;font-weight:600;font-size:14px}.format-catalog details p{display:block;margin:12px 0;overflow:visible}.format-catalog details h3{font-size:15px}.catalog-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) minmax(260px,1fr);gap:24px;margin:24px 0}.catalog-toolbar>.field{margin:0}.catalog-toolbar .fields{grid-template-columns:1fr}.bulk-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:var(--paper);padding:12px 16px;margin:16px 0;border:1px solid var(--line);border-radius:8px}.bulk-toolbar label{display:flex;align-items:center;gap:8px}.bulk-toolbar small{width:100%;color:var(--muted)}.idea-selection{display:flex;padding:4px}.idea-selection input,.bulk-toolbar input{width:19px;height:19px;accent-color:var(--brand)}.toolbar .field{margin:0}.toolbar{align-items:flex-end}.toolbar>.chips{width:100%;flex-wrap:wrap}.idea-list .idea-card{grid-template-columns:170px minmax(120px,1fr) minmax(150px,1.3fr) 110px 135px}.idea-list .idea-card footer{padding:0}.profile-extra{margin:12px 0 24px}.profile-extra>summary{margin-bottom:12px}
.guide-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(460px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--line);border-radius:0;padding:28px;background:var(--paper);color:var(--ink);box-shadow:-12px 0 40px #0002;overflow:auto}.guide-drawer::backdrop{background:#0005}.guide-drawer header{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;margin-bottom:28px}.guide-drawer h2{font-size:24px}.guide-drawer h3{font-size:16px;margin-top:28px}.guide-drawer p{font-size:16px;line-height:1.8;margin:14px 0 26px}.guide-drawer .button svg{width:20px;height:20px}.mobile-bottom-nav{display:none}.mobile-more{display:grid;gap:12px}.mobile-more .button{justify-content:space-between}
@media(max-width:1100px){.guided-layout{grid-template-columns:minmax(0,1fr)}.guided-summary{display:none}.start-choice{padding:22px}.start-choice strong{font-size:19px}.idea-list .idea-card{display:flex}}
@media(max-width:760px){.sidebar>.nav,.sidebar>.secondary-nav{display:none!important}.start-options{grid-template-columns:1fr;gap:12px}.start-choice{padding:20px;gap:14px}.start-choice strong{font-size:20px}.page{padding:20px 16px calc(95px + env(safe-area-inset-bottom))}.topbar .top-right>.button[data-route=create]{display:none}.topbar .creator-context select{max-width:210px}.guided-body{padding:20px}.guided-steps{padding:16px 12px;gap:8px}.guided-steps li{font-size:11px;flex-direction:column;align-items:flex-start}.format-picks{gap:6px}.format-pick{padding:12px 8px;font-size:13px;display:grid;grid-template-columns:16px 1fr}.format-pick:has(input:checked){padding:11px 7px}.format-pick span{grid-column:1/-1}.guided-actions .button{min-height:46px}.catalog-toolbar{grid-template-columns:1fr;gap:8px}.mobile-bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:60;background:var(--paper);border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom));justify-content:space-around}.mobile-bottom-nav button{min-width:52px;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:4px;color:var(--muted);font-size:10px;border-radius:8px}.mobile-bottom-nav svg{width:21px;height:21px}.mobile-bottom-nav [aria-current]{color:var(--accent);background:var(--surface-2)}.guide-drawer{padding:24px 20px}.bulk-toolbar{gap:10px}.heading h1{font-size:27px}.workflow-strip strong{font-size:24px}.workflow-strip button{padding:12px}.format-illustration{height:115px}.draft-footer{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.development-disclosure{margin:14px 0}.development-disclosure>summary{font-weight:600;font-size:14px;cursor:pointer;padding:12px 0}.development-disclosure>p{font-size:15px;line-height:1.75;margin:10px 0}.development-disclosure .check{display:flex}.detail-grid>aside{order:initial}.detail-heading h1{font-size:30px}.detail-heading p{font-size:16px}

.library-refine{width:100%}.library-refine>summary{cursor:pointer;padding:12px 0;font-size:14px}.library-refine .fields{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.library-refine .fields{grid-template-columns:1fr}}

.shoot-details{margin:20px 0}.shoot-details>summary{padding:12px 0;cursor:pointer;font-weight:600}.shoot-checks input{min-width:22px;min-height:22px}.shoot-checks label{min-height:48px;align-items:flex-start}.shoot-dialog-head{line-height:1.6}

.next-action{display:flex;justify-content:space-between;align-items:center;gap:24px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:24px;margin:24px 0}.next-action small{color:var(--muted)}.next-action h2{font-size:20px;margin:8px 0}.next-action p{font-size:14px;color:var(--muted)}@media(max-width:760px){.next-action{align-items:flex-start;flex-direction:column;padding:20px}}

.catalog-toolbar{grid-template-columns:auto minmax(180px,1fr) auto}.catalog-list{grid-template-columns:1fr}.catalog-list .idea-card{display:grid;grid-template-columns:140px 1fr;gap:12px 24px}.catalog-list .format-illustration{grid-row:1/6;height:130px;margin:0}.catalog-list .idea-card h2,.catalog-list .idea-card p{margin:0}.catalog-list .idea-card footer{margin-top:0}@media(max-width:760px){.catalog-toolbar{grid-template-columns:1fr}.catalog-list .idea-card{grid-template-columns:1fr}.catalog-list .format-illustration{grid-row:auto;height:80px}}
.profile-question{font-size:22px;margin:18px 0}.profile-question-fields{display:grid;gap:18px}.profile-question-fields[hidden]{display:none}.profile-extra{margin:18px 0}.profile-extra>summary{padding:12px 0;cursor:pointer;font-weight:600}.profile-extra[open]{display:grid;gap:16px}#profile-form>.button{margin:8px 8px 0 0}

/* Secondary accents belong to small illustrations, never to whole work surfaces. */
.start-choice:nth-child(2)>svg,.art-short .art-frame{color:var(--detail-teal)}.art-series .art-frame{color:var(--detail-blue)}.art-microdrama .art-frame{color:var(--detail-amber)}

/* Bridge legacy components to the same neutral surface system. */
html[data-theme] .topbar{background:color-mix(in srgb,var(--paper) 96%,transparent)}
html[data-theme] .brand-mark{color:var(--ink);border-color:var(--ink)}
html[data-theme] a{color:var(--detail-blue)}
html[data-theme] select option{background:var(--input);color:var(--ink)}
html[data-theme] .concept-art{background:var(--surface-2);color:var(--detail-teal)}
html[data-theme] .concept-art.v1{background:var(--surface-2);color:var(--detail-amber)}
html[data-theme] .concept-art.v2{background:var(--surface-2);color:var(--detail-blue)}

.source-usage{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border)}
.source-usage .input-hint{flex-basis:100%;margin:0}

/* Keep library controls on intentional rows; never shrink search to fit filters. */
.ideas-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) minmax(190px,240px) auto;gap:16px;align-items:end}
.ideas-toolbar>.chips,.ideas-toolbar>.library-refine{grid-column:1/-1;min-width:0}
.ideas-toolbar>.chips{gap:8px}
.ideas-toolbar>.field{min-width:0;margin:0}
.ideas-toolbar input,.ideas-toolbar select{width:100%;max-width:none;min-width:0;min-height:44px;box-sizing:border-box}
.ideas-toolbar>.button{min-height:44px;white-space:nowrap}
.ideas-toolbar .library-refine .fields{gap:16px;align-items:end;padding-top:8px}
.ideas-toolbar .library-refine .field{min-width:0}
.page:has(.ideas-toolbar)>.heading{flex-direction:row;justify-content:flex-start;flex-wrap:wrap;gap:12px;align-items:center}
.page:has(.ideas-toolbar)>.heading>div:first-child{flex:1;min-width:120px}
@media(max-width:1000px){.ideas-toolbar{grid-template-columns:minmax(0,1fr) auto}.ideas-toolbar>.field:first-of-type{grid-column:1/-1}}
@media(max-width:760px){.ideas-toolbar{gap:12px}.ideas-toolbar .library-refine .fields{grid-template-columns:1fr}.ideas-toolbar>.chips{gap:6px}.ideas-toolbar .chip{min-height:40px}}

/* Text-free editorial covers; fixed geometry prevents layout shifts. */
.catalog-cover,.idea-cover{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:12px;overflow:hidden;margin-bottom:18px}
.idea-cover{background:var(--surface-2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:0;text-align:center;color:var(--muted)}
.idea-cover>span:not(.brand-mark){padding:12px;font-size:14px}.idea-cover img{width:100%;height:100%;object-fit:cover}
.catalog-list .catalog-cover{width:140px;max-width:100%}

/* Expanded filters occupy their own row, never stretch the layout switch. */
.catalog-toolbar{grid-template-columns:auto minmax(0,1fr);align-items:start}
.catalog-toolbar>.button{align-self:start}
.catalog-toolbar>details{grid-column:1/-1;min-width:0}
.catalog-toolbar>details>.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px}
.catalog-toolbar>details>summary{padding:10px 0}
@media(max-width:600px){.catalog-toolbar{grid-template-columns:1fr}.catalog-toolbar>details>.fields{grid-template-columns:1fr}}

.format-example { padding: 1rem; border-inline-start: 3px solid var(--primary); font-size: .95rem; }
.guided-summary dd { margin: .25rem 0 1rem; overflow-wrap: anywhere; }
