/* One creative space, two distinct working environments. */
body[data-space] {
  --space-accent: #8c5962;
  --space-accent-soft: #f2e8eb;
  --space-surface: #fff;
  --space-border: #e4e4e9;
  --space-muted: #686871;
  overflow-x: clip;
}
body[data-space] button, body[data-space] a { touch-action: manipulation; }
body[data-space] :focus-visible { outline: 3px solid #ad92d9; outline-offset: 4px; }
body[data-space] .main { width: 100%; }
body[data-space] .sidebar { padding-top: 25px; }
body[data-space] .sidebar-brand-row { margin-bottom: 22px; }
body[data-space] .brand { min-height: 44px; }
body[data-space] .nav-group-label { color: #686871; font-size: 12px; letter-spacing: .02em; }
body[data-space] .nav-button { transition: color .16s, background .16s, box-shadow .16s; }
body[data-space] .nav-button:hover { background: #ffffffc9; color: #36363e; }
body[data-space] .topbar-title { color: #686871; }
body[data-space] .entry-card { box-shadow: 0 3px 7px #22222c02; }
body[data-space] .entry-card:hover { border-color: #d8d3dc; box-shadow: 0 12px 26px #22222c08; }
body[data-space] .entry-card p, body[data-space] .template-text p { line-height: 1.6; }
body[data-space] .template-card:hover { box-shadow: 0 10px 24px #22222c08; }
body[data-space] .template-card .template-art img { transition: transform .35s ease; }
body[data-space] .template-card:hover .template-art img { transform: scale(1.035); }

/* The switch lives beside navigation, so a change of tools feels intentional. */
.space-switcher { position: relative; margin: 0 0 17px; }
.space-switch-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 69px; padding: 12px; border: 1px solid #e1dde3; border-radius: 15px; background: #fafafc; text-align: left; box-shadow: 0 2px 4px #22222c02; transition: border-color .16s, background .16s; }
.space-switch-trigger:hover, .space-switch-trigger[aria-expanded="true"] { border-color: #cfc3d4; background: white; }
.space-switch-trigger>svg:first-child { width: 22px; height: 22px; color: var(--space-accent); }
.space-switch-trigger>svg:last-child { margin-left: auto; color: #8c8c98; width: 16px; height: 16px; }
.space-label { display: grid; gap: 4px; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.space-switch-trigger .space-label { flex: 1; }
.space-label strong { font-size: inherit; font-weight: 600; }
.space-label small { display: block; overflow: hidden; color: #7d7d86; font-size: 12px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.space-menu { position: absolute; z-index: 45; top: calc(100% + 9px); left: 0; width: 302px; padding: 8px; border: 1px solid #e2dfe7; border-radius: 19px; background: #fffffff5; box-shadow: 0 16px 50px #2822371c, 0 3px 8px #28223708; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.space-menu>p, .space-menu-title { padding: 9px 10px 11px; color: #77717e; font-size: 12px; font-weight: 500; }
dialog .space-menu { position: relative; inset: auto; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.space-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 13px 12px; border: 1px solid transparent; border-radius: 13px; text-align: left; }
.space-choice>svg:first-child { width: 39px; height: 39px; padding: 9px; border-radius: 11px; background: #f0e9ee; color: #976270; }
.space-choice>span { flex: 1; min-width: 0; }
.space-choice strong { display: block; color: #29262f; font-size: 14px; font-weight: 600; line-height: 1.5; }
.space-choice small, .space-choice p { display: block; color: #77717e; font-size: 12px; font-weight: 400; line-height: 1.65; margin-top: 4px; }
.space-choice>svg:last-child:not(:first-child) { color: #8d69b3; }
.space-choice:last-child>svg:first-child { background: #ece7f7; color: #8464b3; }
.space-choice:hover { background: #f7f5fa; }
.space-choice.is-active, .space-choice.selected, .space-choice[aria-pressed="true"], .space-choice[aria-current="true"] { background: #f4eff9; border-color: #e6dbf0; }
.space-top-controls { display: flex; align-items: center; gap: 10px; min-width: 0; }
.space-top-switch { display: none; }
.model-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 13px; border: 1px solid #dfdfe7; border-radius: 12px; background: #ffffffa8; color: #65636f; font-size: 12px; font-weight: 500; white-space: nowrap; transition: border-color .16s, background .16s; }
.model-trigger>svg { width: 16px; height: 16px; }
.model-trigger:hover { background: white; border-color: #cfc9da; }
.model-trigger small, .model-trigger .model-provider-name { color: #8e8998; font-size: 12px; font-weight: 400; }

/* Shared channel selector: capabilities are explicit, connection status is honest. */
dialog.model-modal { max-width: 700px; max-height: calc(100dvh - 48px); padding: 30px; }
dialog.model-modal[open] { display: flex; flex-direction: column; overflow: hidden; }
.model-modal .model-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.model-modal .modal-heading, .model-modal .modal-footer { flex-shrink: 0; }
.model-modal .modal-heading { margin-bottom: 10px; }
.model-modal .modal-footer { margin-top: 20px; }
.model-modal .modal-copy, .model-description { color: var(--space-muted); font-size: 14px; line-height: 1.8; }
.model-channel-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 22px 0 18px; }
.model-channel { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; min-height: 132px; padding: 18px; border: 1px solid #e3e0e8; border-radius: 17px; text-align: left; background: #faf9fc; transition: border-color .16s, background .16s; }
.model-channel:hover { background: #f5f1fa; border-color: #d3c6e2; }
.model-channel.is-active, .model-channel.selected, .model-channel[aria-pressed="true"] { border-color: #ac8dca; background: #f6f0fc; box-shadow: inset 0 0 0 1px #ac8dca20; }
.model-channel strong { font-size: 16px; font-weight: 600; color: inherit; }
.model-channel small, .model-channel p, .model-channel>span { color: var(--space-muted); font-size: 12px; line-height: 1.7; }
.model-channel>svg { width: 22px; height: 22px; color: #8b68ae; }
.model-capabilities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.model-capabilities span, .model-capabilities small { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; background: #ece7f2; border-radius: 7px; color: #70588b; font-size: 12px; line-height: 1.5; }
.model-capabilities>button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid #e3dce9; border-radius: 11px; color: #81718f; background: #f7f3fa; font-size: 13px; }
.model-capabilities>button:hover { border-color: #c3aed4; }
.model-capabilities>button.is-active, .model-capabilities>button.selected, .model-capabilities>button[aria-pressed="true"] { border-color: #b59bca; background: #ece2f5; color: #684580; font-weight: 550; }
.model-choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; width: 100%; padding: 12px 14px; margin-top: 8px; text-align: left; border: 1px solid #e7e4ec; border-radius: 12px; background: #faf9fc; font-size: 14px; }
.model-choice>span { min-width: 0; }
.model-choice>small, .model-choice>svg { flex-shrink: 0; }
.model-choice strong { font-size: 14px; font-weight: 550; }
.model-choice strong { overflow-wrap: anywhere; }
.model-choice small { color: var(--space-muted); font-size: 12px; }
.model-choice .model-purpose { display: block; margin-top: 5px; line-height: 1.65; font-size: 11px; }
.model-choice.is-active, .model-choice.selected, .model-choice[aria-pressed="true"] { border-color: #b49acd; background: #f5effa; }
.model-note { margin-top: 18px; padding: 14px 15px; border-radius: 13px; color: #746781; background: #f5f1f8; font-size: 12px; line-height: 1.8; }
.model-note a { color: #7c5e9d; text-decoration: underline; text-underline-offset: 3px; }
.model-status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border-radius: 7px; color: #7c688e; background: #eee7f4; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.model-status:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* Liantian film studio. Graphite equipment, cool glass, warm light. */
body[data-space="drama"] {
  --ink: #f0f1f4; --muted: #a0a5b2; --accent: #c4cafa; --accent-soft: #2e324b;
  --paper: #0d1016; --white: #1a1f29; --line: #343b4c;
  --space-accent: #c4cafa; --space-accent-soft: #2d324a; --space-surface: #1a1f29;
  --space-border: #343b4c; --space-muted: #a0a7b6;
  background: #0d1016; color: var(--ink); color-scheme: dark;
}
body[data-space="drama"] :focus-visible { outline-color: #c4cdf8; }
body[data-space="drama"] .skip-link { color: #252933; background: #f1eae1; }
body[data-space="drama"] .app-shell { background: radial-gradient(ellipse at 78% -8%,#475a8c1c,transparent 44%),#0d1016; }
body[data-space="drama"] .sidebar { width: 208px; background: #12151d; border-color: #292e3b; padding-top: 24px; }
body[data-space="drama"] .main-shell { margin-left: 208px; }
body[data-space="drama"] .sidebar-brand-row { margin-bottom: 21px; }
body[data-space="drama"] .brand strong { color: #f1eff4; }
body[data-space="drama"] .brand img { filter: drop-shadow(0 3px 11px #c0a8e00e); }
body[data-space="drama"] .nav-group-label { color: #898da1; padding-top: 22px; }
body[data-space="drama"] .sidebar nav { gap: 4px; }
body[data-space="drama"] .nav-button { min-height: 44px; color: #a2a7b8; border-radius: 10px; font-size: 14px; }
body[data-space="drama"] .nav-button:hover { background: #232937; color: #e8e8f2; }
body[data-space="drama"] .nav-button.active { background: linear-gradient(110deg,#323b59,#252d42); color: #e5e4ff; box-shadow: inset 0 0 0 1px #acb9ef32,0 0 17px #879be310; }
body[data-space="drama"] .nav-button.active svg { color: #c6c3f5; }
body[data-space="drama"] .sidebar-bottom button { color: #949aac; }
body[data-space="drama"] .sidebar-bottom button:last-child { border-color: #2d3240; }
body[data-space="drama"] .topbar { height: 65px; background: #10131bdb; border-color: #292f3c; }
body[data-space="drama"] .topbar-title { color: #959aae; }
body[data-space="drama"] .main { padding-top: 29px; padding-bottom: 40px; max-width: 1460px; }
body[data-space="drama"] .header-back { color: #c1c5ef; }
body[data-space="drama"] .icon-button { color: #a7aec0; }
body[data-space="drama"] .icon-button:hover { background: #2d3445; color: #e4e6f4; }
body[data-space="drama"] .demo-chip { color: #aaaec1; background: #292e3e; }
body[data-space="drama"] .space-switch-trigger { min-height: 64px; padding: 12px 10px; gap: 8px; background: #1e2430; border-color: #3b4155; border-radius: 12px; box-shadow: none; }
body[data-space="drama"] .space-switch-trigger:hover { background: #2a3043; border-color: #797b9e; }
body[data-space="drama"] .space-label small { color: #aab1c7; font-size: 11px; letter-spacing: -.02em; white-space: normal; text-overflow: clip; overflow: visible; line-height: 1.55; }
body[data-space="drama"] .space-menu { background: #202434f7; border-color: #4b4e6a; box-shadow: 0 18px 54px #0008; }
body[data-space="drama"] dialog .space-menu { background: none; border: 0; box-shadow: none; }
body[data-space="drama"] .space-menu>p, body[data-space="drama"] .space-menu-title { color: #aaa8c0; }
body[data-space="drama"] .space-choice strong { color: #eeeaf6; }
body[data-space="drama"] .space-choice small, body[data-space="drama"] .space-choice p { color: #b6b2c8; }
body[data-space="drama"] .space-choice:hover { background: #343348; }
body[data-space="drama"] .space-choice>svg:first-child { background: #3c3139; color: #d4b2bd; }
body[data-space="drama"] .space-choice:last-child>svg:first-child { background: #39364f; color: #d1c6f1; }
body[data-space="drama"] .space-choice>svg:last-child { color: #bfb6e6; }
body[data-space="drama"] .space-choice.is-active, body[data-space="drama"] .space-choice[aria-pressed="true"] { background: #363249; border-color: #716286; }
body[data-space="drama"] .model-trigger { background: #252b3a; color: #d6d7ed; border-color: #43485e; border-radius: 10px; }
body[data-space="drama"] .model-trigger:hover { background: #34394d; border-color: #7a7b9b; }
body[data-space="drama"] .model-trigger small, body[data-space="drama"] .model-trigger .model-provider-name { color: #aaabc6; }
body[data-space="drama"] dialog { background: #1c2230; color: #f0eff7; box-shadow: 0 30px 110px #0009; border: 1px solid #42485f; border-radius: 20px; }
body[data-space="drama"] dialog::backdrop { background: #070812b5; }
body[data-space="drama"] .nav-drawer { background: #171c28; border-radius: 0 20px 20px 0; }
body[data-space="drama"] .modal-heading>.icon-button { background: #303548; }
body[data-space="drama"] .modal-copy { color: #b6b6ca; }
body[data-space="drama"] .model-channel, body[data-space="drama"] .model-choice { background: #282e3f; border-color: #464c65; }
body[data-space="drama"] .model-channel:hover { background: #33394f; border-color: #747995; }
body[data-space="drama"] .model-channel>svg { color: #bebce9; }
body[data-space="drama"] .model-channel.is-active, body[data-space="drama"] .model-channel[aria-pressed="true"], body[data-space="drama"] .model-choice.is-active, body[data-space="drama"] .model-choice[aria-pressed="true"] { border-color: #b4abd7; background: #3b3c56; }
body[data-space="drama"] .model-capabilities span, body[data-space="drama"] .model-capabilities small, body[data-space="drama"] .model-status { background: #44415b; color: #d5cbea; }
body[data-space="drama"] .model-capabilities>button { background: #303348; border-color: #50536f; color: #beb9d5; }
body[data-space="drama"] .model-capabilities>button:hover { border-color: #aaa1c6; }
body[data-space="drama"] .model-capabilities>button.is-active, body[data-space="drama"] .model-capabilities>button[aria-pressed="true"] { background: #504a6a; border-color: #b4a9ce; color: #ede7f5; }
body[data-space="drama"] .model-note { color: #c1b8d0; background: #302e43; border: 1px solid #4c4761; }
body[data-space="drama"] .model-note a { color: #d8c9eb; }
body[data-space="drama"] .btn-dark { background: #efebe5; color: #252a35; }
body[data-space="drama"] .btn-dark:hover { background: #fffaf3; }
body[data-space="drama"] .btn-light { background: #34384c; color: #e1dbed; }
body[data-space="drama"] .btn-light:hover { background: #45465f; }
body[data-space="drama"] .btn-danger { background: #422b39; color: #f0b5c8; }
body[data-space="drama"] .mascot-video { background: #252b3c; }
body[data-space="drama"] .toast { background: #ece6f0; color: #383344; box-shadow: 0 8px 30px #0005; }
body[data-space="drama"] .status-label { color: #bab2ca; background: #343049; }
body[data-space="drama"] .plan-list>div { border-color: #48415b; }
body[data-space="drama"] .help-steps { color: #cec4dc; }

/* A cinematic world, with a real production console attached to it. */
.studio-home { width: 100%; margin: 0 auto; }
.cinema-stage { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 565px; padding: 0 24px 23px; overflow: hidden; border: 1px solid #4f526b; border-radius: 25px; background: #202738; box-shadow: 0 12px 40px #0002; }
.cinema-stage-art, .cinema-stage-overlay, .cinema-stage-grain { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cinema-stage-art { object-fit: cover; object-position: 65% 50%; }
.cinema-stage-overlay { background: linear-gradient(90deg,#0f1424d9,transparent 78%),linear-gradient(0deg,#111827f2 0,#141b2c5c 43%,#10142635); }
.cinema-stage-grain { opacity: .18; background-image: radial-gradient(#dce3ff48 .6px,transparent .6px); background-size: 4px 4px; mask-image: linear-gradient(#0008,transparent 65%); -webkit-mask-image: linear-gradient(#0008,transparent 65%); }
.cinema-stage:before { content: ''; position: absolute; z-index: -1; inset: 22px 21px 24px; pointer-events: none; background: linear-gradient(#b7c9ff66,#b7c9ff66) left top/18px 1px no-repeat,linear-gradient(#b7c9ff66,#b7c9ff66) left top/1px 18px no-repeat,linear-gradient(#b7c9ff66,#b7c9ff66) right top/18px 1px no-repeat,linear-gradient(#b7c9ff66,#b7c9ff66) right top/1px 18px no-repeat; }
.cinema-stage-topline { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 25px 15px 0; color: #c7cbe2; font-size: 9px; font-weight: 500; letter-spacing: .14em; line-height: 1.6; }
.cinema-stage-topline>span { display: inline-flex; align-items: center; gap: 8px; }
.cinema-stage-topline>span:first-child:before { content: ''; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #dfc4a6; box-shadow: 0 0 12px #dfc4a64d; }
.cinema-stage-copy { position: relative; padding: 40px 20px 29px; }
.cinema-stage-copy>.drama-eyebrow, .cinema-stage-copy>.studio-kicker { display: block; margin: 0 0 15px; color: #c7c4de; font-size: 12px; letter-spacing: .18em; line-height: 1.7; }
.cinema-stage-title { max-width: 630px; color: #f8f3f0; font-size: clamp(38px,3.7vw,53px); font-weight: 600; line-height: 1.18; letter-spacing: -.045em; text-wrap: balance; text-shadow: 0 3px 26px #080b1666; }
.cinema-stage-title>span { color: #cfcbef; }
.cinema-stage-description { max-width: 490px; margin-top: 19px; color: #c0c2d3; font-size: 14px; line-height: 1.85; text-shadow: 0 2px 16px #090e1b; }
.cinema-stage-brand-note { display: block; margin-top: 16px; color: #a6abc2; font-size: 10px; line-height: 1.7; }
.cinema-stage-composer { position: relative; width: 100%; max-width: none; margin-top: auto; }
.studio-composer { position: relative; width: 100%; margin: 0; padding: 10px 12px 11px; text-align: left; border: 1px solid #737b9f80; border-radius: 16px; background: #161c2ae8; box-shadow: 0 12px 38px #060b1b3b,inset 0 1px #dbe2ff0c; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); transition: border-color .18s, box-shadow .18s; }
.studio-composer:focus-within { border-color: #b7bce6; box-shadow: 0 12px 38px #060b1b3b,0 0 0 3px #b7bce610; }
.studio-intents { display: flex; align-items: center; gap: 3px; width: fit-content; max-width: 100%; padding: 3px; margin-bottom: 4px; border: 1px solid #49516b; border-radius: 10px; background: #1117258a; }
.studio-intent { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding: 9px 14px; border: 1px solid transparent; border-radius: 7px; color: #a9b1ca; font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; transition: background .16s, color .16s; }
.studio-intent>span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.studio-intent>svg { width: 15px; height: 15px; }
.studio-intent.is-active { color: #eeeafb; background: #41435f; border-color: #77759b; box-shadow: 0 2px 6px #080b144d; }
.studio-intent:hover:not(.is-active) { color: #d7d9ed; background: #303750; }
.studio-prompt { display: block; width: 100%; height: 73px; min-height: 73px; max-height: 240px; resize: vertical; margin: 0; padding: 11px 12px 7px; border: 0; border-radius: 10px; outline: 0; background: transparent; color: #f0edf5; font-size: 16px; font-weight: 400; line-height: 1.8; box-shadow: none; }
.studio-prompt:focus { border: 0; box-shadow: none; }
.studio-prompt:focus-visible { outline: 0 !important; }
.studio-prompt::placeholder { color: #a0a8c0; }
.studio-composer-error { margin: 4px 12px 10px; padding: 10px 12px; border: 1px solid #875369; border-radius: 9px; background: #422c3c; color: #f0bacf; font-size: 12px; line-height: 1.8; }
.studio-composer-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 15px; min-height: 20px; padding: 0 12px 7px; }
.studio-draft-status, .studio-prompt-count { color: #b4bbd0; font-size: 12px; font-weight: 400; line-height: 1.7; }
.studio-draft-status[data-status="error"] { color: #ecadc8; }
.studio-draft-status[data-status="saved"] { color: #c5c2db; }
.studio-prompt-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.studio-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 7px 2px 0; border-top: 1px solid #49516d; }
.studio-model-chip { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: calc(100% - 155px); min-height: 44px; padding: 6px 10px; border: 1px solid transparent; border-radius: 9px; text-align: left; color: #c4cae1; font-size: 12px; line-height: 1.5; }
.studio-model-chip:hover { border-color: #666e90; background: #343c56; }
.studio-model-chip>svg:first-child { width: 17px; height: 17px; color: #c1bde7; }
.studio-model-chip>span { display: grid; gap: 1px; min-width: 0; }
.studio-model-chip strong { overflow: hidden; color: #dbd8eb; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.studio-model-chip small { overflow: hidden; color: #a4a8c3; font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.studio-model-chip>svg:last-child { width: 12px; height: 12px; color: #999fc1; }
.studio-start { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 10px 20px; border: 1px solid #fff9f2; border-radius: 10px; background: #eee9e2; color: #292c38; font-size: 13px; font-weight: 600; line-height: 1.5; transition: background .16s, box-shadow .16s; }
.studio-start:hover { background: #fffaf1; box-shadow: 0 0 20px #f1d7bd15; }
.studio-start:active { background: #d9d6d5; }
.studio-start>svg { width: 17px; height: 17px; }
.studio-composer-footnote { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 11px; }
.studio-composer-note { margin-top: 9px; color: #a5abc1; font-size: 12px; text-align: left; line-height: 1.8; }
.studio-composer-footnote>.studio-draft-recovery { min-height: 44px; color: #e8b4ca; font-size: 12px; }
.studio-kicker { color: #b6b5d0; font-size: 10px; font-weight: 500; letter-spacing: .15em; line-height: 1.7; }
.studio-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.studio-section-heading h2 { color: #e5e3ef; font-size: 21px; font-weight: 550; letter-spacing: -.025em; line-height: 1.5; }
.studio-section-heading p { margin-top: 6px; color: #9ea4ba; font-size: 12px; line-height: 1.7; }
.studio-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 4px; color: #b6b8d7; font-size: 12px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
.studio-text-button:hover { color: #e7def2; }
.studio-text-button>svg { width: 14px; height: 14px; }
.cinema-tools { margin-top: 35px; }
.cinema-tools-label, .engine-bay-label { flex-shrink: 0; color: #8187a1; font-size: 10px; font-weight: 500; letter-spacing: .13em; line-height: 1.7; }
.cinema-tool-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.cinema-tool-card { position: relative; min-width: 0; padding: 0; overflow: hidden; text-align: left; border: 1px solid #303747; border-radius: 16px; background: #191e29; transition: border-color .18s, transform .18s; }
.cinema-tool-card:hover { transform: translateY(-2px); border-color: #8a86ad; }
.cinema-tool-art { position: relative; width: 100%; height: 76px; overflow: hidden; border-bottom: 1px solid #303645; background: radial-gradient(ellipse at 65% 100%,#55546a30,transparent 70%),#222838; }
.cinema-tool-art:after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,#20263680,transparent 65%); }
.cinema-tool-art>span { position: absolute; display: block; }
.cinema-tool-art.is-story>span:nth-child(1) { left: calc(50% - 45px); top: 23px; width: 58px; height: 74px; transform: rotate(-12deg); border: 1px solid #a4a1b2; border-radius: 5px; background: #555b6b; }
.cinema-tool-art.is-story>span:nth-child(2) { left: calc(50% - 23px); top: 15px; width: 60px; height: 81px; transform: rotate(7deg); border: 1px solid #c4bfc4; border-radius: 5px; background: #d9d5d1; box-shadow: 0 6px 15px #080b1a45; }
.cinema-tool-art.is-story>span:nth-child(3) { left: calc(50% - 10px); top: 34px; width: 32px; height: 38px; transform: rotate(7deg); background: repeating-linear-gradient(transparent 0,transparent 7px,#8e899977 7px,#8e899977 8px); }
.cinema-tool-art.is-story>span:nth-child(4) { left: calc(50% - 8px); top: 25px; width: 23px; height: 3px; transform: rotate(7deg); background: #8d7c8e; }
.cinema-tool-art.is-character { background-color: #252735; }
.cinema-tool-art.is-character>span:nth-child(1) { left: calc(50% - 40px); top: 21px; width: 30px; height: 30px; border: 1px solid #d0c1d9; border-radius: 50%; background: #6d617d; box-shadow: 0 0 0 6px #b8a7ca08; }
.cinema-tool-art.is-character>span:nth-child(2) { left: calc(50% - 53px); top: 58px; width: 54px; height: 40px; border: 1px solid #b7a4c2; border-radius: 25px 25px 0 0; background: #5a506f; }
.cinema-tool-art.is-character>span:nth-child(3) { left: calc(50% + 16px); top: 28px; width: 25px; height: 25px; border: 1px solid #a6b9d5; border-radius: 50%; background: #4e5c79; }
.cinema-tool-art.is-character>span:nth-child(4) { left: calc(50% + 5px); top: 60px; width: 49px; height: 37px; border: 1px solid #8fa5c6; border-radius: 23px 23px 0 0; background: #3e4e6c; }
.cinema-tool-art.is-board>span:nth-child(-n+3) { top: 22px; width: 26%; height: 53px; border: 1px solid #9da7c1; border-radius: 4px; background: linear-gradient(145deg,transparent 54%,#7488b333 55%),linear-gradient(35deg,#53638359,transparent 65%); }
.cinema-tool-art.is-board>span:nth-child(1) { left: 7%; }
.cinema-tool-art.is-board>span:nth-child(2) { left: 37%; border-color: #d3c1b2; }
.cinema-tool-art.is-board>span:nth-child(3) { left: 67%; }
.cinema-tool-art.is-board>span:nth-child(4) { left: 7%; right: 7%; bottom: 10px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg,#889cc36b 0,#889cc36b 8px,transparent 8px,transparent 12px); }
.cinema-tool-art.is-delivery { background-color: #292a33; }
.cinema-tool-art.is-delivery>span:nth-child(1) { left: calc(50% - 42px); top: 34px; width: 84px; height: 59px; border: 1px solid #b5b4c4; border-radius: 5px; background: #3c4153; }
.cinema-tool-art.is-delivery>span:nth-child(2) { left: calc(50% - 42px); top: 20px; width: 84px; height: 16px; border: 1px solid #b5b4c4; border-radius: 3px; transform: rotate(-8deg); transform-origin: 4px 100%; background: repeating-linear-gradient(125deg,#b9b3ba 0,#b9b3ba 10px,#45465b 10px,#45465b 20px); }
.cinema-tool-art.is-delivery>span:nth-child(3) { left: calc(50% - 28px); top: 53px; width: 56px; height: 1px; background: #a09bb377; box-shadow: 0 10px #a09bb377,0 20px #a09bb377; }
.cinema-tool-art.is-delivery>span:nth-child(4) { left: calc(50% - 28px); top: 42px; width: 22px; height: 3px; background: #d7c0a4; }
.cinema-tool-copy { padding: 14px 16px; }
.cinema-tool-copy h3 { color: #e9e4f2; font-size: 15px; font-weight: 550; line-height: 1.5; }
.cinema-tool-copy p { max-width: 150px; margin-top: 5px; color: #a5a8bf; font-size: 12px; line-height: 1.8; }
.cinema-tool-card>svg:last-child { position: absolute; right: 15px; bottom: 20px; width: 15px; height: 15px; color: #a7a4c8; }
.engine-bay { margin-top: 36px; }
.engine-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.engine-card { min-width: 0; padding: 17px; text-align: left; border: 1px solid #303747; border-radius: 12px; background: #151a25; transition: border-color .16s, background .16s; }
.engine-card:hover { border-color: #8a82a9; background: #292b42; }
.engine-task { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: #c8c7df; font-size: 12px; line-height: 1.6; }
.engine-task>svg { width: 16px; height: 16px; color: #b8b5df; }
.engine-task>svg:last-child:not(:first-child) { width: 13px; height: 13px; margin-left: auto; color: #8e91b1; }
.engine-model { display: block; overflow: hidden; color: #e0d9ed; font-size: 13px; font-weight: 500; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }
.engine-channel { display: block; margin-top: 4px; color: #a6a8c4; font-size: 12px; line-height: 1.7; }
.engine-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; color: #c7b69d; font-size: 12px; line-height: 1.6; }
.engine-status:before { content: ''; width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: #bfa68b; }

.studio-recent { margin-top: 36px; }
.studio-project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.studio-project-card { min-width: 0; border: 1px solid #30333a; border-radius: 16px; overflow: hidden; background: #1a1b1f; transition: border-color .16s, background .16s; }
.studio-project-card:hover { border-color: #707688; background: #24262b; }
.studio-project-open { position: relative; display: block; width: 100%; height: 100%; padding: 18px; text-align: left; }
.studio-project-visual { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.studio-cover-index { color: #71788a; font-size: 9px; font-weight: 500; letter-spacing: .12em; line-height: 1.7; }
.studio-cover-stage { color: #9297a5; font-size: 11px; line-height: 1.7; }
.studio-project-symbol { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 45px; height: 49px; overflow: hidden; border: 1px solid #595e6c; border-radius: 10px; color: #a5a9b5; background: linear-gradient(135deg,#3a3d46,#282a30); }
.studio-project-symbol>span { position: absolute; display: block; width: 21px; height: 1px; left: 11px; background: #adb1bc; opacity: .65; }
.studio-project-symbol>span:nth-child(1) { top: 16px; width: 16px; }
.studio-project-symbol>span:nth-child(2) { top: 23px; }
.studio-project-symbol>span:nth-child(3) { top: 30px; width: 13px; }
.studio-project-text { flex: 1; min-width: 0; }
.studio-project-text h3 { overflow: hidden; color: #e2e3e7; font-size: 14px; font-weight: 550; line-height: 1.65; text-overflow: ellipsis; white-space: nowrap; }
.studio-project-text p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; color: #a7adbd; font-size: 13px; line-height: 1.8; }
.studio-project-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 11px; width: 100%; color: #a0a7b8; font-size: 12px; line-height: 1.7; padding-top: 11px; border-top: 1px solid #393c45; }
.studio-project-open>svg:last-child { width: 15px; height: 15px; margin-left: auto; color: #9095a4; }
.studio-project-arrow { display: grid; place-items: center; position: absolute; top: 31px; right: 18px; color: #a0a4b1; }
.studio-project-arrow>svg { width: 15px; height: 15px; }
.studio-project-visual>.studio-cover-index { margin-right: 23px; }
.studio-empty-workspace { position: relative; display: flex; align-items: center; gap: 27px; min-height: 150px; padding: 27px 29px; overflow: hidden; border: 1px dashed #3b3e48; border-radius: 18px; background: linear-gradient(110deg,#1b1c20,#17181c); }
.studio-empty-copy { flex: 1; min-width: 0; }
.studio-empty-copy h3 { color: #d0d3d9; font-size: 16px; font-weight: 500; line-height: 1.6; }
.studio-empty-copy p { margin-top: 8px; max-width: 320px; color: #8c92a1; font-size: 13px; line-height: 1.85; }
.studio-empty-symbol { position: relative; width: 100px; height: 79px; flex-shrink: 0; opacity: .8; }
.studio-empty-symbol:before { content: ''; position: absolute; left: 14px; top: 11px; width: 65px; height: 43px; border: 1px solid #6f7688; border-radius: 8px; transform: rotate(-5deg); background: #2a2c331f; }
.studio-empty-symbol:after { content: ''; position: absolute; left: 3px; right: 3px; bottom: 11px; height: 19px; border: 1px solid #4e525f; border-radius: 50%; transform: rotate(-6deg); }
.studio-empty-symbol>span:nth-child(1) { position: absolute; left: 37px; top: 24px; width: 17px; height: 17px; border: 1px solid #959ba9; border-radius: 50%; }
.studio-empty-symbol>span:nth-child(2) { position: absolute; left: 46px; top: 54px; width: 1px; height: 13px; background: #818798; }
.studio-empty-symbol>span:nth-child(3) { position: absolute; left: 80px; top: 23px; width: 13px; height: 25px; border: 1px solid #5a5f6d; border-radius: 4px; transform: skewY(-22deg); }

/* The workbench continues the same restrained studio surface system. */
.drama-home, .drama-workbench { min-width: 0; }
.drama-page-heading, .drama-workbench-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.drama-page-heading h1, .drama-workbench-heading h1 { color: #e8eaed; font-size: 29px; font-weight: 600; letter-spacing: -.035em; line-height: 1.4; overflow-wrap: anywhere; }
.drama-page-heading p, .drama-workbench-heading p { margin-top: 9px; color: #a8aebb; font-size: 14px; line-height: 1.8; }
.drama-eyebrow { display: block; margin-bottom: 10px; color: #8f94a3; font-size: 10px; font-weight: 500; letter-spacing: .15em; line-height: 1.7; }
.drama-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; color: #aeb2bd; font-size: 13px; font-weight: 500; line-height: 1.6; transition: background .16s, border-color .16s; }
.drama-button.is-primary { color: #222429; background: #d0d3d9; border-color: #e1e3e7; }
.drama-button.is-primary:hover { color: #202127; background: #e5e6ea; }
.drama-button.is-secondary { color: #c7cad2; border-color: #474b57; background: #2e3139; }
.drama-button.is-secondary:hover { border-color: #7d8394; background: #3b3e48; }
.drama-button.is-quiet { color: #acb0bb; padding-left: 8px; padding-right: 8px; }
.drama-button.is-quiet:hover { color: #dee0e4; background: #d1d4da08; }
.drama-save-status { color: #9398a6; font-size: 12px; line-height: 1.7; }
.drama-save-status[data-status="error"] { color: #e9abb6; }
.drama-save-status[data-status="saved"] { color: #b4b8c2; }
.drama-workbench-save { display: flex; align-items: center; gap: 12px; }
.drama-workbench-save .drama-button { min-height: 44px; padding: 9px 12px; font-size: 12px; }
.drama-back-link { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; margin: -12px 0 4px -4px; padding: 0 4px; color: #a3a7b3; font-size: 12px; }
.drama-back-link>svg { transform: rotate(180deg); }
.drama-stage-tabs { display: flex; align-items: center; gap: 4px; margin: 0 0 21px; padding: 5px; border: 1px solid #363941; border-radius: 12px; background: #1b1c20; overflow-x: auto; scrollbar-width: none; }
.drama-stage-tabs::-webkit-scrollbar { display: none; }
.drama-stage-tab { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1 0 auto; min-height: 44px; padding: 9px 13px; border: 1px solid transparent; border-radius: 8px; color: #969caa; font-size: 12px; white-space: nowrap; }
.drama-stage-tab.is-active { color: #e7e8ec; border-color: #676d7e; background: #3e424c; }
.drama-stage-tab:hover:not(.is-active) { background: #2f3239; color: #ccced5; }
.drama-stage-tab>span:first-child, .drama-stage-tab small { font-size: 10px; opacity: .65; }
.drama-workbench-grid { display: grid; grid-template-columns: minmax(0,1fr) 258px; align-items: start; gap: 20px; }
.drama-editor-panel, .drama-context-panel { min-width: 0; padding: 25px; border: 1px solid #363a43; border-radius: 17px; background: #1a1e20; }
.drama-context-panel { position: sticky; top: 88px; padding: 20px; background: #191d1f; }
.drama-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.drama-panel-heading h2, .drama-context-panel h2 { color: #dee0e4; font-size: 16px; font-weight: 550; line-height: 1.6; }
.drama-panel-heading p { margin-top: 6px; color: #9398a7; font-size: 12px; line-height: 1.8; }
.drama-panel-heading>span { color: #a2a6b2; font-size: 12px; }
.drama-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border: 1px solid #4e5360; border-radius: 6px; background: #30333a; color: #bcc0c9; font-size: 11px; font-weight: 400; line-height: 1.5; }
.drama-field { display: block; min-width: 0; margin-top: 22px; }
.drama-field:first-child { margin-top: 0; }
.drama-field>label, label.drama-field { color: #d4d6db; font-size: 13px; font-weight: 500; line-height: 1.7; }
.drama-field label small { margin-left: 5px; color: #9398a7; font-size: 12px; font-weight: 400; }
.drama-field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.drama-field-row .drama-field { margin-top: 22px; }
.drama-input, .drama-select, .drama-textarea { width: 100%; padding: 12px 13px; border: 1px solid #484c57; border-radius: 10px; background: #242a2d; color: #e5e6e9; font-size: 16px; line-height: 1.7; transition: border-color .16s, box-shadow .16s; }
.drama-input::placeholder, .drama-textarea::placeholder { color: #a4acbf; opacity: 1; }
.drama-input:focus, .drama-select:focus, .drama-textarea:focus { border-color: #bec1c9; box-shadow: 0 0 0 3px #bec1c90f; }
.drama-input[aria-invalid="true"], .drama-textarea[aria-invalid="true"] { border-color: #da9ead; }
.drama-textarea { min-height: 155px; resize: vertical; line-height: 1.9; }
.drama-field-help { margin-top: 8px; color: #999eac; font-size: 12px; font-weight: 400; line-height: 1.8; }
.drama-stage-note { margin-top: 22px; color: #8e93a2; font-size: 12px; line-height: 1.9; }
.drama-stage-note>svg { width: 14px; margin-right: 4px; }
.drama-context-panel>p, .drama-context-panel>small { display: block; margin-top: 12px; color: #969ba9; font-size: 12px; line-height: 1.9; }
.drama-context-panel .drama-button { width: 100%; margin-top: 15px; font-size: 12px; }
.drama-context-panel>h3 { color: #d0d3d9; font-size: 17px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.drama-context-cover { display: grid; place-content: center; justify-items: center; gap: 14px; width: 100%; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 17px; border: 1px solid #4d525e; border-radius: 11px; background: linear-gradient(140deg,#33363f,#2a2d34); color: #a3a8b4; }
.drama-context-cover span { font-size: 11px; }
.drama-context-synopsis { display: -webkit-box !important; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.drama-context-panel>.studio-project-symbol { margin-bottom: 17px; }
.drama-outline { display: grid; gap: 11px; margin-top: 18px; }
.drama-outline-item { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #444852; border-radius: 10px; background: #24272d; }
.drama-outline-item>span { color: #a3a7b3; font-size: 11px; line-height: 1.9; font-variant-numeric: tabular-nums; }
.drama-outline-item>div { min-width: 0; }
.drama-outline-item strong { color: #ced0d6; font-size: 13px; font-weight: 500; line-height: 1.6; }
.drama-outline-item p { color: #9ea3af; font-size: 12px; line-height: 1.9; margin-top: 7px; white-space: pre-line; }
.drama-inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; margin: 20px 0 21px; }
.drama-inline-actions>.drama-field-help { margin: 0; }
.drama-character-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 20px; }
.drama-character-card { min-width: 0; padding: 18px; border: 1px solid #424650; border-radius: 13px; background: #232a2d; }
.drama-character-card>.drama-panel-heading { margin-bottom: 12px; }
.drama-character-card>.drama-panel-heading>.drama-button { min-height: 44px; margin: -8px -5px -8px 0; }
.drama-character-avatar { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #707789; border-radius: 10px; background: #434752; color: #c8cbd2; font-size: 15px; font-weight: 500; }
.drama-character-card h3 { color: #cfd1d7; font-size: 15px; font-weight: 500; }
.drama-character-card p { margin-top: 8px; color: #999eab; font-size: 12px; line-height: 1.9; }
.drama-character-card .drama-field { margin-top: 14px; }
.drama-character-card .drama-field label { font-size: 12px; }
.drama-character-card .drama-textarea { min-height: 118px; }
.drama-shot-list { display: grid; gap: 15px; }
.drama-shot-card { min-width: 0; padding: 18px; border: 1px solid #424650; border-radius: 13px; background: #232a2d; }
.drama-shot-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.drama-shot-heading h3, .drama-shot-heading strong { color: #dadbe0; font-size: 14px; font-weight: 500; line-height: 1.6; }
.drama-shot-heading>.drama-button { margin-left: auto; min-height: 44px; padding: 7px; }
.drama-shot-number { display: grid; place-items: center; min-width: 74px; min-height: 29px; flex-shrink: 0; padding: 5px 10px; border: 1px solid #707688; border-radius: 8px; background: #41454f; color: #c5c8cf; font-size: 11px; line-height: 1.5; }
.drama-shot-fields { display: grid; gap: 14px; }
.drama-shot-fields .drama-field, .drama-shot-fields .drama-field-row>.drama-field { margin: 0; }
.drama-shot-fields .drama-field label { font-size: 12px; }
.drama-shot-fields .drama-textarea { min-height: 100px; }
.drama-export-card { padding: 23px; margin-top: 16px; border: 1px solid #4c515e; border-radius: 14px; background: #25282e; }
.drama-export-card:first-child { margin-top: 0; }
.drama-export-card>svg { color: #bcc0c9; margin-bottom: 17px; }
.drama-export-card h2, .drama-export-card h3 { color: #dbdce1; font-size: 17px; font-weight: 550; line-height: 1.6; }
.drama-export-card p { color: #a0a4b0; margin-top: 10px; font-size: 13px; line-height: 1.9; white-space: pre-line; }
.drama-export-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.drama-export-checklist { display: grid; gap: 10px; padding: 18px 0; margin-top: 17px; border-top: 1px solid #5a5f6e; border-bottom: 1px solid #5a5f6e; }
.drama-export-checklist>span { display: flex; align-items: center; gap: 9px; color: #9fa3b0; font-size: 13px; line-height: 1.6; }
.drama-export-checklist>span>svg { color: #878d9d; }
.drama-export-checklist>span>small { margin-left: auto; color: #8f94a3; font-size: 11px; }
.drama-export-checklist>span.is-ready { color: #d8dadf; }
.drama-export-checklist>span.is-ready>svg, .drama-export-checklist>span.is-ready>small { color: #bcc0c9; }
.drama-notice { display: flex; align-items: flex-start; gap: 8px; padding: 12px 13px; margin: 18px 0; color: #adb1bc; border: 1px solid #464a56; border-radius: 10px; background: #272930; font-size: 12px; line-height: 1.9; }
.drama-notice>svg { margin-top: 4px; width: 15px; height: 15px; flex-shrink: 0; }
.drama-notice a { color: #d2d5db; text-decoration: underline; text-underline-offset: 3px; }
.drama-step-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 21px; border-top: 1px solid #474b56; }
.drama-step-actions>span, .drama-step-actions>small { margin-right: auto; color: #9ea3b0; font-size: 12px; }
.drama-step-actions .is-primary { margin-left: auto; }
.drama-search { display: flex; align-items: center; gap: 9px; width: 285px; max-width: 100%; padding: 0 13px; margin-bottom: 20px; border: 1px solid #484c58; border-radius: 10px; background: #232a2d; color: #9ba0ae; }
.drama-search input { padding: 12px 0; border: 0; background: transparent; box-shadow: none; }
.drama-project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.drama-project-card { min-width: 0; border: 1px solid #3f434e; border-radius: 14px; overflow: hidden; background: #202227; }
.drama-project-card>.studio-project-symbol { margin: 21px 21px 0; }
.drama-project-cover { display: grid; place-content: center; width: 100%; height: 105px; padding: 0; color: #a2a6b2; background: #2a2c33; }
.drama-project-body { padding: 20px; min-width: 0; }
.drama-project-body h2 button { min-height: 44px; text-align: left; padding: 0; color: #dfe1e5; font-size: 17px; font-weight: 550; line-height: 1.6; }
.drama-project-body>p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #9ca1ae; font-size: 13px; line-height: 1.8; margin-top: 4px; }
.drama-project-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px; color: #9095a4; font-size: 12px; line-height: 1.8; margin-top: 12px; }
.drama-project-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #4b4f5b; }
.drama-project-actions .drama-button:first-child { flex: 1; }
.drama-project-actions>span { color: #bbbfc8; font-size: 12px; line-height: 1.6; }
.drama-empty { grid-column: 1/-1; padding: 55px 25px; text-align: center; border: 1px solid #3f424c; border-radius: 17px; background: #1d1f24; }
.drama-empty>svg { color: #aaaeba; margin-bottom: 18px; }
.drama-empty h2, .drama-empty h3 { color: #d5d7dc; font-size: 20px; font-weight: 500; }
.drama-empty p { margin: 12px auto 23px; max-width: 370px; color: #969caa; font-size: 13px; line-height: 1.9; }

/* Production materials give each stage a distinct purpose. */
.drama-button.is-primary { color: #282d39; background: #ede7df; border-color: #fff7ee; }
.drama-button.is-primary:hover { color: #242a34; background: #fff9f0; }
.drama-button.is-secondary { color: #d0d1e6; border-color: #515b75; background: #30384d; }
.drama-button.is-secondary:hover { border-color: #9296b5; background: #424a63; }
.drama-button.is-quiet { color: #b5bbd4; }
.drama-button.is-quiet:hover { color: #ece6f3; background: #c5c8ee0a; }
.drama-stage-tab.is-active { color: #e9e6f8; border-color: #7e7d9d; background: #44435e; }
.drama-tag { border-color: #5f637e; background: #333b53; color: #c2c7e0; }
.screenplay-paper { padding: 0; overflow: hidden; color: #30313b; border-color: #777588; background: #eae5dc; box-shadow: 0 14px 38px #05081429; color-scheme: light; }
.screenplay-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 25px 20px; border-bottom: 1px solid #c9c2b8; background: #e1dbd1; }
.screenplay-toolbar .drama-panel-heading { margin-bottom: 0; }
.screenplay-toolbar .drama-panel-heading h2 { color: #34343f; }
.screenplay-toolbar .drama-eyebrow { color: #7d7180; margin-bottom: 7px; }
.screenplay-toolbar>.drama-button { flex-shrink: 0; min-height: 44px; color: #62566d; border-color: #bdb2bd; background: #d8d0d6; font-size: 12px; }
.screenplay-project-settings { padding: 0 25px 23px; }
.screenplay-paper .drama-field>label { color: #55515d; font-size: 12px; }
.screenplay-paper .drama-input, .screenplay-paper .drama-select { color: #30323d; border-color: #c5bdb5; background: #f4efe7; }
.screenplay-paper .drama-input:focus, .screenplay-paper .drama-select:focus { border-color: #91859e; box-shadow: 0 0 0 3px #8d81a114; }
.screenplay-paper .drama-input::placeholder, .screenplay-paper .drama-textarea::placeholder { color: #6c626e; opacity: 1; }
.screenplay-story-settings { margin: 0 25px 20px; padding: 0 0 17px; border-top: 1px solid #c9c0b6; border-bottom: 1px solid #c9c0b6; }
.screenplay-story-settings>summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 7px 0; color: #63596c; font-size: 13px; font-weight: 500; }
.screenplay-story-settings>summary>svg { width: 15px; color: #8c7c94; }
.screenplay-story-settings>summary>span { margin-left: auto; color: #6e6170; font-size: 11px; font-weight: 400; }
.screenplay-story-settings[open]>summary>svg { transform: rotate(180deg); }
.screenplay-paper .drama-textarea { color: #373440; border-color: #c5bbb4; background: #f6f0e8; }
.screenplay-paper .drama-textarea:focus { border-color: #9f8fa6; box-shadow: 0 0 0 3px #9f8fa610; }
.screenplay-paper .drama-field-help, .screenplay-paper .drama-inline-actions>.drama-field-help { color: #6e6170; }
.screenplay-paper .drama-inline-actions .drama-button { border-color: #bcb0bd; background: #d9cfdb; color: #685a75; }
.screenplay-paper .drama-outline-item { border-color: #c8b8c9; background: #e4d9e5; }
.screenplay-paper .drama-outline-item strong { color: #5e4c69; }
.screenplay-paper .drama-outline-item p, .screenplay-paper .drama-outline-item>span { color: #695573; }
.screenplay-writing-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 2px 25px 12px; }
.screenplay-writing-heading>label { margin: 0; color: #544c5c; font-size: 13px; font-weight: 500; }
.screenplay-writing-heading>span { color: #6e6170; font-size: 11px; }
.screenplay-paper .screenplay-textarea { display: block; width: calc(100% - 50px); min-height: 570px; padding: 23px 23px 30px 30px; margin: 0 25px 24px; border-color: #d0c5ba; border-radius: 8px; background: linear-gradient(90deg,#b9a29e55,#b9a29e55) 19px 0/1px 100% no-repeat,#fcf7ed; color: #3c3740; font-family: 'SFMono-Regular','Menlo','PingFang SC',monospace; font-size: 15px; line-height: 2; }
.screenplay-paper>.drama-step-actions { margin: 0; padding: 18px 25px 23px; border-color: #c6bbb3; }
.screenplay-paper>.drama-step-actions>span { color: #6e6170; }
.screenplay-paper>.drama-field-help { padding: 0 25px 18px; }
.screenplay-paper>.drama-step-actions .is-primary { background: #41445c; color: #f1edf5; border-color: #555774; }
.character-workspace { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: 20px; }
.character-library { min-height: 390px; }
.character-cast { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.character-file { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: start; gap: 13px; min-width: 0; padding: 16px; border: 1px solid #424b63; border-radius: 12px; background: #202632; text-align: left; transition: border-color .16s, background .16s; }
.character-file:hover { background: #30364e; border-color: #9091b0; }
.character-file.is-selected { background: #3b3a53; border-color: #b7accf; box-shadow: inset 0 0 0 1px #b7accf30; }
.character-file-portrait { position: relative; display: grid; place-items: center; width: 44px; height: 50px; min-height: 50px; overflow: hidden; border: 1px solid #747a99; border-radius: 8px; background: radial-gradient(ellipse at 80% 0,#9c86ae40,transparent 65%),linear-gradient(155deg,#4b5672,#272e43); color: #e3d6ea; font-size: 22px; font-weight: 400; font-family: 'Songti SC',serif; }
.character-file-portrait:before { content: ''; position: absolute; inset: 4px; border: 1px solid #d7c9e224; border-radius: 4px; pointer-events: none; }
.character-file-copy { display: block; min-width: 0; padding: 0; }
.character-file-copy>strong { display: block; margin-top: 5px; color: #e5deef; font-size: 15px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.character-file-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; margin-top: 5px; color: #b5b5ca; font-size: 13px; line-height: 1.8; }
.character-file>svg:last-child { position: absolute; right: 13px; bottom: 16px; width: 12px; height: 12px; color: #b6acca; }
.character-file-copy h3 { color: #e5deef; font-size: 14px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.character-file-copy p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; color: #aaa7c1; font-size: 11px; line-height: 1.8; }
.character-file-role { display: inline-block; margin-top: 0; padding: 2px 6px; border: 1px solid #716780; border-radius: 5px; color: #c7b3d2; background: #51415f; font-size: 12px; line-height: 1.6; }
.character-file-copy>.character-file-role { margin-top: 0; }
.character-library .drama-empty>.character-file-portrait { width: 76px; min-height: 91px; margin: 0 auto 19px; font-size: 29px; }
.character-inspector { position: sticky; top: 88px; padding: 21px; }
.character-inspector-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.character-inspector-heading, .shot-inspector-heading { scroll-margin-top: 90px; }
.character-inspector-heading h2 { color: #e0d6ed; font-size: 16px; font-weight: 550; line-height: 1.6; }
.character-inspector .drama-field { margin-top: 19px; }
.character-inspector .drama-textarea { min-height: 110px; }
.director-desk { min-width: 0; }
.shot-board-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 20px; }
.shot-board-toolbar h2 { color: #e4dfef; font-size: 19px; font-weight: 550; line-height: 1.6; }
.shot-board-toolbar p { margin-top: 5px; color: #a1a5be; font-size: 12px; line-height: 1.8; }
.shot-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.shot-episode-control { display: block; flex-shrink: 0; min-width: 0; margin: 0; }
.shot-episode-select { width: auto; min-width: 112px; min-height: 44px; padding: 10px 12px; border: 1px solid #56607c; border-radius: 10px; color: #d6d7ed; background: #30394f; font-size: 16px; }
.shot-toolbar-actions .drama-button { padding-left: 12px; padding-right: 12px; font-size: 12px; }
.shot-board-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: start; gap: 20px; }
.shot-board-panel { min-width: 0; padding: 18px; border: 1px solid #3d465d; border-radius: 17px; background: #171e2c; }
.shot-board-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.shot-card { display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #45516e; border-radius: 12px; background: #202938; text-align: left; transition: border-color .16s, background .16s; }
.shot-card:hover { border-color: #8e99bc; }
.shot-card.is-selected { border-color: #c1b5da; box-shadow: 0 0 0 1px #c1b5da40; background: #34364e; }
.shot-card-media { position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden; border-bottom: 1px solid #4a536e; background: radial-gradient(ellipse at 50% 100%,#63759330,transparent 70%),#1b2538; }
.shot-frame-grid { position: absolute; top: 12%; bottom: 12%; left: 34%; right: 34%; border: 1px solid #7583a8; background: linear-gradient(145deg,#58658226,transparent 75%); }
.shot-frame-grid:before, .shot-frame-grid:after { content: ''; position: absolute; inset: 33.333% 0; border-top: 1px solid #7c8aaf2e; border-bottom: 1px solid #7c8aaf2e; }
.shot-frame-grid:after { inset: 0 33.333%; border: 0; border-left: 1px solid #7c8aaf2e; border-right: 1px solid #7c8aaf2e; }
.shot-frame-grid>span { position: absolute; display: block; width: 5px; height: 5px; background: #afb9d2; border-radius: 50%; opacity: .6; }
.shot-frame-grid>span:nth-child(1) { top: -3px; left: -3px; }
.shot-frame-grid>span:nth-child(2) { top: -3px; right: -3px; }
.shot-frame-grid>span:nth-child(3) { bottom: -3px; left: -3px; }
.shot-frame-number { position: absolute; top: 10px; left: 10px; color: #b3b9d0; font-size: 10px; letter-spacing: .06em; }
.shot-frame-format { position: absolute; top: 10px; right: 10px; color: #919fc0; font-size: 9px; line-height: 1.7; }
.shot-frame-status { position: absolute; bottom: 11px; left: 8px; right: 8px; color: #a4aec9; font-size: 10px; text-align: center; line-height: 1.7; }
.shot-card-info { display: block; padding: 16px; }
.shot-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shot-card-heading h3 { color: #e0def0; font-size: 14px; font-weight: 550; line-height: 1.6; }
.shot-card-heading>strong { color: #e0def0; font-size: 14px; font-weight: 550; line-height: 1.6; }
.shot-card-heading>span { color: #bab6d5; font-size: 12px; }
.shot-card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 50px; margin-top: 7px; color: #c5cada; font-size: 14px; line-height: 1.8; }
.shot-card-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.shot-card-chips>span { padding: 2px 6px; border: 1px solid #5b6481; border-radius: 5px; color: #b8c0db; background: #34415d; font-size: 12px; line-height: 1.6; }
.shot-inspector { position: sticky; top: 88px; min-width: 0; max-height: calc(100dvh - 110px); padding: 20px; overflow-y: auto; border: 1px solid #4b526c; border-radius: 17px; background: #242b3c; scrollbar-width: thin; scrollbar-color: #626682 transparent; }
.shot-inspector-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.shot-inspector-heading h2 { color: #e9e1f1; font-size: 16px; font-weight: 550; line-height: 1.6; }
.shot-inspector-heading>span { color: #b8b0d0; font-size: 11px; }
.shot-inspector .drama-field { margin-top: 18px; }
.shot-inspector .drama-field-row { gap: 12px; }
.shot-inspector .drama-field label { font-size: 12px; }
.shot-inspector .drama-textarea { min-height: 110px; }
.shot-action-row { display: flex; align-items: center; gap: 5px; margin-top: 19px; padding-top: 15px; border-top: 1px solid #505773; }
.shot-action-row .drama-button { flex: 1; gap: 4px; min-height: 44px; padding: 8px 3px; font-size: 11px; }
.shot-action-row .drama-button>svg { width: 13px; height: 13px; }
.shot-engine-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; margin-top: 16px; }
.shot-engine-actions>.drama-button { width: 100%; }
.shot-board-panel .drama-empty>.shot-card-media { width: 130px; height: 104px; aspect-ratio: auto; margin: 0 auto 22px; border: 1px solid #5b6789; border-radius: 9px; }
.shot-undo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 15px; border: 1px solid #77677e; border-radius: 11px; color: #d3bfd8; background: #382e43; font-size: 12px; line-height: 1.8; }
.shot-sequence { margin-top: 20px; padding: 19px; border: 1px solid #3f4964; border-radius: 16px; background: #1b2434; }
.shot-sequence-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.shot-sequence-head h3 { color: #d9d8ed; font-size: 13px; font-weight: 550; line-height: 1.6; }
.shot-sequence-head h3>span { margin-left: 7px; color: #9199b9; font-size: 11px; font-weight: 400; }
.shot-sequence-head>[data-over="true"] { color: #e3c09d; }
.shot-sequence-head>span, .shot-sequence-head>p { color: #aaaecb; font-size: 11px; line-height: 1.7; }
.shot-timeline { display: flex; align-items: stretch; gap: 5px; width: 100%; min-width: 0; padding: 0 0 5px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #59627e transparent; }
.shot-timeline-item { position: relative; flex: var(--shot-weight,1) 0 82px; min-width: 82px; max-width: 250px; padding: 16px 10px 11px; border: 1px solid #4e5e80; border-radius: 8px; color: #c2c9e2; background: #2d3d58; text-align: left; }
.shot-timeline-item:before { content: ''; position: absolute; top: 0; left: 8px; right: 8px; height: 4px; border-radius: 0 0 3px 3px; background: #657fab; }
.shot-timeline-item.is-selected { border-color: #c1b8de; background: #4a4261; color: #eee3f3; }
.shot-timeline-item.is-selected:before { background: #b9a9d0; }
.shot-timeline-item strong { display: block; font-size: 13px; font-weight: 550; line-height: 1.6; }
.shot-timeline-item span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.6; opacity: .9; }
.shot-timeline-empty { display: block; padding: 15px 0; color: #9fa6c4; font-size: 12px; line-height: 1.8; }

/* Resume real work before inviting another idea. */
.studio-resume { display: grid; grid-template-columns: minmax(0,1fr) 174px; align-items: center; gap: 32px; margin-bottom: 23px; padding: 29px 31px; border: 1px solid #41485a; border-left: 3px solid #c2bbdf; border-radius: 16px; background: #1b202c; }
.studio-resume-copy { min-width: 0; }
.studio-resume-kicker { display: block; margin-bottom: 9px; color: #c4bddd; font-size: 12px; font-weight: 500; line-height: 1.7; }
.studio-resume h1 { color: #f1edf6; font-size: clamp(25px,2.5vw,34px); font-weight: 600; line-height: 1.4; letter-spacing: -.03em; overflow-wrap: anywhere; }
.studio-resume-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 650px; margin-top: 10px; color: #b2b9cb; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.studio-resume-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px; margin-top: 14px; color: #a7aec0; font-size: 12px; line-height: 1.8; }
.studio-resume-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 15px; margin-top: 20px; }
.studio-resume-actions>.drama-button { min-height: 44px; }
.studio-resume-state { min-width: 0; padding: 5px 0 5px 27px; border-left: 1px solid #3e4557; }
.studio-resume-stage { display: grid; gap: 4px; }
.studio-resume-stage>span:first-child { color: #d0c5e7; font-size: 46px; font-weight: 400; line-height: 1.1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.studio-resume-stage>span:last-child { color: #c9c8d9; font-size: 13px; line-height: 1.8; }
.studio-resume-counts { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px; margin-top: 17px; color: #a4adbf; font-size: 12px; line-height: 1.8; }
.cinema-stage.is-compact { min-height: 420px; padding-bottom: 20px; }
.cinema-stage.is-compact .cinema-stage-topline { padding-top: 21px; }
.cinema-stage.is-compact .cinema-stage-copy { padding-top: 23px; padding-bottom: 23px; }
.cinema-stage.is-compact .cinema-stage-title { max-width: 540px; font-size: clamp(29px,2.9vw,40px); }
.cinema-stage.is-compact .cinema-stage-description { max-width: 480px; margin-top: 12px; font-size: 13px; }
.cinema-stage.is-compact .cinema-stage-brand-note { display: none; }
.studio-storage-note { margin: 29px 2px 0; color: #a3aabc; font-size: 12px; line-height: 1.85; }
.has-projects .cinema-tools, .has-projects .engine-bay { margin-top: 31px; }
.has-projects .studio-section-heading h2 { font-size: 19px; }
.has-projects .studio-section-heading p { font-size: 13px; }

/* Text plans use their content as the visual centre, until real media exists. */
.character-file-detail { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 9px; margin-top: 9px; color: #b8bdce; font-size: 13px; line-height: 1.8; }
.character-detail-label { color: #8f9bb4; font-size: 12px; white-space: nowrap; }
.character-file-detail>span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.character-file-detail:last-child { margin-bottom: 2px; }
.character-file>svg:last-child { top: 20px; bottom: auto; right: 14px; }
.character-file-copy { padding-right: 8px; }
.character-file-copy>strong { padding-right: 10px; }
.character-undo-bar { margin-top: 17px; }
.character-library .drama-empty>.character-file-portrait { width: 44px; height: 50px; min-height: 50px; font-size: 22px; }
.shot-card.is-text-plan { position: relative; min-height: 168px; }
.shot-card.is-text-plan.is-selected { border-left: 3px solid #c8b9e2; }
.shot-card-kicker { display: block; margin-bottom: 6px; color: #97a5bf; font-size: 12px; font-weight: 400; line-height: 1.7; }
.shot-card-dialogue { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 9px; padding-left: 9px; border-left: 2px solid #5b627a; color: #a9b0c6; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.shot-card-dialogue>span:first-child { margin-right: 7px; color: #8e9ab3; font-size: 12px; }
.shot-card-text { overflow-wrap: anywhere; }
.shot-empty-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 17px; border: 1px solid #58627d; border-radius: 10px; color: #b4bfda; background: #2a3346; }
.shot-empty-mark>svg { width: 23px; height: 23px; }
.shot-source-bridge { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 18px; padding: 14px 17px; border-left: 2px solid #797fa3; background: #1d2432; }
.shot-source-copy { flex: 1 1 270px; min-width: 0; }
.shot-source-route { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; color: #d2d6e5; font-size: 13px; font-weight: 500; line-height: 1.8; }
.shot-source-route>svg { width: 14px; height: 14px; color: #8f99b5; }
.shot-source-note { margin-top: 4px; color: #a4aec4; font-size: 12px; line-height: 1.85; }
.shot-source-bridge>.drama-button { min-height: 44px; flex-shrink: 0; }
.shot-episode-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 17px; margin: 0 0 17px; color: #b5bed3; font-size: 13px; line-height: 1.8; }
.shot-episode-summary>span { display: inline-flex; align-items: center; gap: 5px; }
.shot-episode-summary strong { color: #e0dfed; font-weight: 550; }

/* One idea, one entry point. The film world supports the act of writing. */
.is-simple-home { max-width: 1120px; margin: 0 auto; }
.is-simple-home .simple-stage { display: flex; align-items: center; justify-content: center; min-height: 430px; padding: 32px 32px 34px; border-color: #65749e; border-radius: 20px; box-shadow: inset 0 1px #d1ddff26,0 12px 38px #030a1c38,0 0 32px #6877c20c; }
.is-simple-home .simple-stage:before { display: none; }
.is-simple-home .cinema-stage-art { object-position: 65% 48%; }
.is-simple-home .cinema-stage-overlay { background: linear-gradient(90deg,#101727ab,#1118297a 55%,#1219297a),linear-gradient(0deg,#121a2bd9,transparent 85%); }
.is-simple-home .cinema-stage-grain { opacity: .08; }
.simple-stage-content { width: min(100%,760px); min-width: 0; margin: auto; }
.is-simple-home .cinema-stage-copy { position: static; padding: 0; text-align: center; }
.is-simple-home .cinema-stage-title { max-width: none; font-size: clamp(33px,3.1vw,43px); font-weight: 550; line-height: 1.3; letter-spacing: -.035em; text-shadow: 0 0 26px #bfc6ff40,0 2px 9px #050b1db3; }
.is-simple-home .cinema-stage-title>span { display: inline-block; color: #e4e7ff; }
.is-simple-home .cinema-stage-description { max-width: none; margin-top: 10px; color: #cbd2e5; font-size: 14px; line-height: 1.8; }
.is-simple-home .cinema-stage-brand-note { position: absolute; right: 18px; bottom: 9px; margin: 0; color: #aeb9d4; font-size: 11px; line-height: 1.7; }
.is-simple-home .cinema-stage-composer { margin-top: 22px; }
.is-simple-home .studio-composer { padding: 10px 14px; border-color: #7f8eb8; border-radius: 16px; background: #141d30ed; box-shadow: inset 0 1px #dce5ff17,0 8px 24px #080d1b38,0 0 26px #7e8ddd15; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-simple-home .studio-composer:focus-within { border-color: #bdceff; box-shadow: inset 0 1px #eef3ff24,0 0 0 3px #92aeff22,0 0 32px #9a8ff52a; }
.is-simple-home .studio-prompt { height: 104px; min-height: 104px; max-height: 340px; padding: 7px 9px 8px; font-size: 16px; line-height: 1.9; }
.is-simple-home .studio-composer-meta { padding: 0 9px 2px; }
.is-simple-home .studio-composer-footer { justify-content: flex-end; min-height: 46px; padding: 2px 4px 0; border-top: 0; }
.is-simple-home .studio-start { min-height: 44px; padding: 10px 22px; border-color: #f8fbff; border-radius: 10px; background: linear-gradient(135deg,#f9fbff,#e9e7fa 58%,#deecfa); color: #252e45; box-shadow: inset 0 1px #fff,0 2px 8px #040b1c2b,0 0 22px #b1adff29; font-size: 14px; }
.is-simple-home .studio-composer-footnote { justify-content: center; gap: 10px; padding: 0 9px; }
.is-simple-home .studio-composer-note { margin-top: 9px; color: #b7c0d5; font-size: 12px; text-align: center; }
.simple-recent { width: 100%; max-width: none; margin: 25px 0 0; }
.simple-recent .studio-section-heading { margin-bottom: 9px; }
.simple-recent .studio-section-heading h2 { color: #d8dce8; font-size: 18px; font-weight: 550; }
.studio-recent-list { border-top: 1px solid #343c4d; }
.studio-recent-row { display: flex; align-items: center; gap: 23px; width: 100%; min-height: 86px; padding: 18px 4px; border-bottom: 1px solid #303848; text-align: left; transition: background .16s; }
.studio-recent-row:hover { background: #c7c8ed05; }
.studio-recent-copy { display: grid; flex: 1; min-width: 0; gap: 5px; }
.studio-recent-copy>strong { overflow: hidden; color: #e3e3ee; font-size: 15px; font-weight: 500; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.studio-recent-copy>span { overflow: hidden; color: #a4aec4; font-size: 13px; line-height: 1.8; text-overflow: ellipsis; white-space: nowrap; }
.studio-recent-meta { display: grid; flex-shrink: 0; gap: 4px; color: #9eaac0; font-size: 12px; line-height: 1.8; }
.studio-recent-continue { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; min-height: 44px; color: #c6c1df; font-size: 13px; line-height: 1.6; }
.studio-recent-continue>svg { width: 15px; height: 15px; }

/* Editing stays direct. Optional controls are explicit disclosures, never another dashboard. */
.drama-model-shortcut { display: none; }
.is-simple-home .simple-stage:after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 14% 0,#797bed38,transparent 57%),radial-gradient(ellipse at 93% 76%,#56c7ec24,transparent 52%); }
.is-simple-home .studio-start:hover { background: linear-gradient(135deg,#fff,#f1edff 58%,#ebf7ff); box-shadow: inset 0 1px #fff,0 3px 11px #030a1d38,0 0 31px #afc3ff47; }
.is-simple-home .studio-start:active { background: #dce5fa; box-shadow: inset 0 1px 3px #8193b22e,0 0 16px #afc3ff24; }
.drama-workbench .drama-stage-tab.is-active { color: #f0edff; border-color: #9eadd4; background: linear-gradient(120deg,#3d4264,#303f56); box-shadow: inset 0 1px #e1e8ff1a,0 0 16px #8a9de918; }
.drama-workbench .character-file.is-selected { border-color: #bab5df; background: linear-gradient(130deg,#353c56,#30334b); box-shadow: inset 0 1px #e5dcff12,0 0 18px #9f98df14; }
.drama-workbench .shot-card.is-selected { border-color: #b7c7ef; background: linear-gradient(130deg,#323d58,#30364f); box-shadow: 0 0 0 1px #c1d0ff24,0 0 18px #819cf21a; }

.drama-workbench .drama-stage-tabs { padding: 4px; margin-bottom: 23px; border-color: #343b4b; background: #171d29; }
.drama-workbench .drama-stage-tab { min-height: 44px; gap: 8px; font-size: 14px; }
.drama-workbench .drama-stage-tab>svg { display: none; }
.drama-workbench .drama-stage-tab>span:first-child { font-size: 12px; }
.drama-workbench { width: 100%; max-width: 1120px; margin: 0 auto; }
.drama-workbench-heading>div:first-child { flex: 1; min-width: 0; }
.drama-workbench-save { flex-shrink: 0; }
.drama-workbench-grid.is-single-column { display: block; width: 100%; max-width: none; margin: 0; }
.is-single-column .screenplay-paper { border-color: #666775; border-radius: 14px; box-shadow: none; }
.is-single-column .screenplay-toolbar { padding: 22px 25px 17px; }
.is-single-column .screenplay-textarea { height: clamp(300px,46dvh,460px); min-height: 300px; margin-top: 18px; font-size: 16px; line-height: 2; resize: vertical; }
.is-single-column .screenplay-toolbar>.drama-script-count { flex-shrink: 0; color: #6e6170; font-size: 12px; line-height: 1.7; }
.is-single-column .screenplay-writing-heading { padding-top: 22px; }
.is-single-column .screenplay-writing-heading>span { font-size: 12px; }
.workspace-disclosure { min-width: 0; margin-top: 20px; padding: 0; border-top: 1px solid #495166; }
.workspace-disclosure>summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 50px; padding: 11px 0; color: #c5ccdf; font-size: 13px; font-weight: 500; line-height: 1.7; }
.workspace-disclosure>summary>span { min-width: 0; margin-left: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.workspace-disclosure>summary>svg { width: 15px; height: 15px; color: #a0abc5; transition: transform .16s; }
.workspace-disclosure[open]>summary>svg { transform: rotate(180deg); }
.workspace-disclosure-content { min-width: 0; padding: 3px 0 15px; }
.workspace-disclosure-content>.drama-field:first-child { margin-top: 0; }
.workspace-disclosure-content .drama-field-row:first-child>.drama-field { margin-top: 0; }
.workspace-disclosure-content>.drama-button { min-height: 44px; }
.screenplay-paper .workspace-disclosure { margin: 0 25px 4px; padding: 0; border-top: 1px solid #beb5ae; border-bottom: 0; }
.screenplay-paper .workspace-disclosure>summary { color: #5c5166; }
.screenplay-paper .workspace-disclosure>summary>svg { color: #796a83; }
.screenplay-paper .workspace-disclosure-content { padding-top: 4px; padding-bottom: 20px; }
.screenplay-paper .workspace-disclosure .drama-field-row>.drama-field { margin-top: 16px; }
.screenplay-paper .workspace-disclosure:last-child { margin-bottom: 14px; }
.character-more-settings .drama-textarea, .shot-more-settings .drama-textarea { min-height: 105px; }
.character-model-settings .drama-field-help, .shot-model-settings .drama-field-help { margin-top: 10px; }
.character-model-settings .drama-button, .shot-model-settings .drama-button { justify-content: flex-start; }
.shot-more-settings .shot-action-row { margin-top: 15px; padding-top: 12px; }
.shot-more-settings .shot-action-row .drama-button { font-size: 12px; }
.shot-card-chips>span { border-color: transparent; background: #263145; color: #aab6d0; }
.workspace-disclosure.shot-sequence { margin-top: 22px; padding: 0; border: 0; border-top: 1px solid #424c64; border-radius: 0; background: transparent; }
.workspace-disclosure.shot-sequence>.shot-sequence-head { margin-bottom: 0; padding: 12px 0; }
.workspace-disclosure.shot-sequence>.shot-sequence-head h3 { font-size: 14px; }
.workspace-disclosure.shot-sequence>.workspace-disclosure-content { padding-top: 7px; }

@media (min-width: 1500px) {
  .cinema-stage { min-height: 590px; }
  .cinema-stage-copy { padding-top: 47px; padding-bottom: 35px; }
  .shot-board-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1150px) {
  .space-switch-trigger { padding: 11px 9px; gap: 8px; }
  .space-label { font-size: 13px; }
  .space-label small { font-size: 11px; }
  body[data-space="drama"] .sidebar { width: 208px; padding-left: 14px; padding-right: 14px; }
  body[data-space="drama"] .main-shell { margin-left: 208px; }
  body[data-space="drama"] .brand { gap: 7px; padding-left: 4px; }
  body[data-space="drama"] .brand img { width: 36px; }
  body[data-space="drama"] .brand strong { font-size: 15px; }
  .cinema-stage { min-height: 550px; padding-left: 19px; padding-right: 19px; }
  .cinema-stage-copy { padding: 36px 14px 27px; }
  .cinema-stage-title { max-width: 480px; font-size: 42px; }
  .cinema-stage-description { max-width: 420px; font-size: 13px; }
  .cinema-tool-grid { gap: 11px; }
  .cinema-tool-copy { padding: 15px; }
  .cinema-tool-copy p { font-size: 11px; }
  .engine-grid { gap: 10px; }
  .engine-card { padding: 15px; }
  .studio-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .drama-workbench-grid { grid-template-columns: minmax(0,1fr) 235px; gap: 17px; }
  .drama-editor-panel { padding: 22px; }
  .drama-context-panel { padding: 18px; }
  .screenplay-paper { padding: 0; }
  .character-workspace { grid-template-columns: minmax(0,1fr) 295px; gap: 17px; }
  .character-cast { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .shot-board-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 17px; }
  .shot-inspector { padding: 18px; }
  .shot-board-panel { padding: 14px; }
  .shot-board-grid { gap: 12px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .cinema-stage-title { font-size: 39px; max-width: 450px; }
  .cinema-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cinema-tool-art { height: 70px; }
  .cinema-tool-copy { padding: 16px; }
  .engine-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .drama-workbench-grid { grid-template-columns: minmax(0,1fr); }
  .drama-context-panel { position: static; }
  .character-workspace { grid-template-columns: minmax(0,1fr) 260px; }
  .character-cast { grid-template-columns: minmax(0,1fr); }
  .character-inspector { padding: 16px; }
  .shot-board-layout { grid-template-columns: minmax(0,1fr) 260px; }
  .shot-inspector { padding: 16px; }
  .shot-board-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 900px) and (min-width: 761px) {
  .character-workspace { grid-template-columns: minmax(0,1fr); }
  .character-cast { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .character-inspector { position: static; }
  .shot-board-layout { grid-template-columns: minmax(0,1fr); }
  .shot-inspector { position: static; max-height: none; overflow: visible; }
  .shot-board-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 901px) {
  .inspector-back { display: none; }
}
@media (max-width: 760px) {
  body[data-space] .topbar { height: 65px; gap: 6px; padding: 0 16px; }
  body[data-space] .topbar-left { flex: 1; min-width: 0; gap: 4px; }
  body[data-space] .top-actions { gap: 4px; }
  body[data-space] .mobile-brand { display: flex; flex: 0 1 auto; min-width: 0; min-height: 44px; gap: 6px; white-space: nowrap; }
  body[data-space] .mobile-brand>img { flex-shrink: 0; }
  body[data-space] .mobile-brand>span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  body[data-space] .demo-chip { display: none; }
  body[data-space] .main { padding-top: 24px; }
  .space-top-controls { gap: 5px; }
  .space-top-switch { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 8px 9px; color: #67616f; font-size: 13px; font-weight: 550; white-space: nowrap; border-radius: 11px; }
  .space-top-switch>svg { width: 15px; height: 15px; }
  .space-top-switch:hover { background: #eae5ef; }
  .space-top-switch .space-label { font-size: 13px; }
  .space-top-switch .space-label small { display: none; }
  .model-trigger { gap: 5px; min-height: 44px; padding: 8px 10px; font-size: 12px; border-radius: 11px; }
  .model-trigger small, .model-trigger .model-provider-name { display: none; }
  .model-trigger svg { width: 15px; height: 15px; }
  .space-menu { width: min(302px,calc(100vw - 32px)); }
  .drawer-content .space-switcher { margin-bottom: 12px; }
  .drawer-content .space-menu { width: min(268px,calc(100vw - 82px)); }
  .drawer-content .space-switch-trigger { min-height: 64px; padding: 12px; }
  .drawer-content .space-label { font-size: 14px; }
  .drawer-content .space-label small { font-size: 12px; }
  dialog.model-modal { padding: 23px 20px; max-height: calc(100dvh - 32px); }
  .model-modal .modal-heading h2 { font-size: 21px; }
  .model-channel-grid { gap: 9px; margin-top: 18px; }
  .model-channel { min-height: 140px; padding: 14px; border-radius: 14px; }
  .model-channel strong { font-size: 14px; }
  .model-choice { flex-wrap: wrap; gap: 5px 10px; padding: 12px; }
  .model-note { padding: 12px; }
  body[data-space="drama"] .main-shell { margin-left: 0; }
  body[data-space="drama"] .header-back+.topbar-title { color: #b9bdd9; font-size: 13px; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body[data-space="drama"] .space-top-switch { color: #d3cfeb; }
  body[data-space="drama"] .space-top-switch:hover { background: #39374f; }
  body[data-space="drama"] .bottom-nav { grid-template-columns: repeat(3,minmax(0,1fr)); background: #1a1e2ced; border-color: #45465f; padding-left: 10px; padding-right: 10px; }
  body[data-space="drama"] .bottom-nav button { color: #a5a5c7; font-size: 12px; }
  body[data-space="drama"] .bottom-nav button.active { color: #d8c8ed; }
  body[data-space="drama"] input, body[data-space="drama"] select, body[data-space="drama"] textarea { font-size: 16px; }
  .cinema-stage { min-height: 555px; padding: 0 13px 15px; border-radius: 21px; }
  .cinema-stage-art { object-position: 61% 32%; }
  .cinema-stage-overlay { background: linear-gradient(90deg,#111526a3,transparent 95%),linear-gradient(0deg,#131c30 0,#18203975 55%,#181b2d50); }
  .cinema-stage:before { inset: 17px 15px; background-size: 14px 1px,1px 14px,14px 1px,1px 14px; }
  .cinema-stage-topline { padding: 20px 9px 0; gap: 10px; font-size: 7px; letter-spacing: .1em; }
  .cinema-stage-topline>span { gap: 5px; }
  .cinema-stage-topline>span:first-child:before { width: 4px; height: 4px; }
  .cinema-stage-copy { padding: 39px 10px 27px; }
  .cinema-stage-copy>.drama-eyebrow, .cinema-stage-copy>.studio-kicker { margin-bottom: 12px; font-size: 12px; letter-spacing: .12em; }
  .cinema-stage-title { max-width: 290px; font-size: 32px; line-height: 1.21; letter-spacing: -.035em; }
  .cinema-stage-description { max-width: 270px; margin-top: 15px; font-size: 12px; line-height: 1.85; }
  .cinema-stage-brand-note { margin-top: 13px; font-size: 9px; }
  .studio-composer { padding: 8px 8px 9px; border-radius: 13px; }
  .studio-intents { display: flex; width: 100%; padding: 3px; gap: 2px; border-radius: 9px; }
  .studio-intent { flex: 1; min-width: 0; min-height: 44px; padding: 8px 5px; gap: 4px; border-radius: 6px; font-size: 12px; }
  .studio-intent>svg { width: 13px; height: 13px; }
  .studio-prompt { height: 91px; min-height: 91px; max-height: 270px; padding: 11px 8px 7px; font-size: 16px; line-height: 1.8; }
  .studio-composer-meta { padding: 0 8px 7px; min-height: 20px; }
  .studio-draft-status, .studio-prompt-count { font-size: 12px; }
  .studio-composer-footer { min-height: 53px; padding: 7px 0 0; gap: 7px; }
  .studio-model-chip { max-width: calc(100% - 116px); min-height: 44px; gap: 5px; padding: 6px 5px; }
  .studio-model-chip strong { font-size: 12px; }
  .studio-model-chip small { font-size: 12px; max-width: 108px; }
  .studio-model-chip>svg:first-child { width: 14px; height: 14px; }
  .studio-model-chip>svg:last-child { width: 10px; height: 10px; }
  .studio-start { min-height: 44px; padding: 10px 12px; gap: 6px; border-radius: 8px; font-size: 12px; }
  .studio-start>svg { width: 14px; height: 14px; }
  .studio-composer-footnote { display: block; padding: 0 6px; }
  .studio-composer-note { margin-top: 8px; font-size: 12px; line-height: 1.8; }
  .studio-composer-error { margin-left: 7px; margin-right: 7px; font-size: 12px; }
  .studio-composer-footnote>.studio-draft-recovery { font-size: 11px; }
  .cinema-tools, .studio-recent, .engine-bay { margin-top: 29px; }
  .cinema-tools-label, .engine-bay-label { display: none; }
  .studio-section-heading { gap: 12px; margin-bottom: 15px; }
  .studio-section-heading>div { flex: 1; min-width: 0; }
  .studio-section-heading h2 { font-size: 20px; }
  .studio-section-heading p { font-size: 14px; margin-top: 5px; line-height: 1.8; }
  .studio-text-button { font-size: 12px; }
  .cinema-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .cinema-tool-art { height: 70px; }
  .cinema-tool-copy { padding: 14px; }
  .cinema-tool-copy h3 { font-size: 14px; }
  .cinema-tool-copy p { font-size: 11px; line-height: 1.75; max-width: 118px; }
  .cinema-tool-card>svg:last-child { width: 13px; right: 12px; bottom: 17px; }
  .engine-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .engine-card { padding: 15px; border-radius: 12px; }
  .engine-task { gap: 6px; margin-bottom: 12px; font-size: 11px; }
  .engine-model { font-size: 12px; }
  .engine-channel, .engine-status { font-size: 10px; }
  .studio-project-grid { grid-template-columns: 1fr; gap: 12px; }
  .studio-project-card { border-radius: 14px; }
  .studio-project-open { display: grid; grid-template-columns: 41px minmax(0,1fr) 14px; align-items: center; padding: 17px; gap: 12px; }
  .studio-project-visual { display: block; margin: 0; }
  .studio-project-visual>.studio-cover-index { display: none; }
  .studio-project-arrow { position: static; }
  .studio-project-symbol { width: 41px; height: 45px; border-radius: 9px; }
  .studio-project-symbol>span { left: 10px; }
  .studio-project-text h3 { font-size: 14px; }
  .studio-project-text p { font-size: 13px; }
  .studio-project-meta { font-size: 12px; }
  .studio-empty-workspace { display: grid; grid-template-columns: 65px minmax(0,1fr); gap: 17px 14px; min-height: 160px; padding: 21px 17px; border-radius: 15px; }
  .studio-empty-symbol { width: 80px; height: 72px; transform: scale(.75); transform-origin: left center; }
  .studio-empty-copy h3 { font-size: 14px; }
  .studio-empty-copy p { font-size: 12px; margin-top: 6px; }
  .studio-empty-workspace>.studio-text-button { grid-column: 2; justify-content: flex-start; width: fit-content; padding: 0; margin-top: -5px; }
  .drama-page-heading, .drama-workbench-heading { gap: 12px; margin-bottom: 21px; align-items: center; }
  .drama-page-heading h1, .drama-workbench-heading h1 { font-size: 26px; }
  .drama-page-heading p, .drama-workbench-heading p { font-size: 12px; }
  .drama-page-heading>.drama-button { flex-shrink: 0; min-height: 44px; padding: 10px 12px; font-size: 12px; }
  .drama-workbench { padding-bottom: 0; }
  .drama-workbench-heading>div:first-child { min-width: 0; flex: 1; }
  .drama-workbench-heading { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 10px; }
  .drama-workbench-heading h1 { font-size: 22px; line-height: 1.45; letter-spacing: -.02em; }
  .drama-workbench-save { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; gap: 12px; flex-shrink: 0; }
  .drama-workbench-save .drama-save-status { max-width: none; text-align: left; font-size: 12px; }
  .drama-back-link { margin-bottom: 0; }
  .drama-stage-tabs { gap: 3px; padding: 4px; margin-bottom: 18px; border-radius: 10px; }
  .drama-stage-tab { flex: 1 0 auto; min-height: 44px; gap: 5px; padding: 8px 10px; font-size: 12px; border-radius: 7px; }
  .drama-stage-tab>span:first-child, .drama-stage-tab small { display: none; }
  .drama-workbench-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .drama-editor-panel { padding: 21px 18px; border-radius: 15px; }
  .drama-context-panel { position: static; padding: 20px 18px; border-radius: 15px; }
  .drama-context-cover { max-height: 170px; aspect-ratio: 16/8; }
  .drama-panel-heading { margin-bottom: 20px; }
  .drama-panel-heading h2, .drama-context-panel h2 { font-size: 15px; }
  .drama-field { margin-top: 21px; }
  .drama-field-row { grid-template-columns: 1fr; gap: 0; }
  .drama-field>label, label.drama-field { font-size: 13px; }
  .drama-input, .drama-select, .drama-textarea { padding: 12px 13px; font-size: 16px; }
  .drama-textarea { min-height: 155px; }
  .drama-field-help, .drama-stage-note { font-size: 12px; }
  .drama-inline-actions { gap: 8px; margin-top: 18px; }
  .drama-inline-actions>.drama-field-help { font-size: 11px; }
  .drama-outline-item { padding: 13px; }
  .drama-export-card { padding: 20px 17px; border-radius: 12px; }
  .drama-export-card h2, .drama-export-card h3 { font-size: 16px; }
  .drama-export-card p { font-size: 12px; }
  .drama-export-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .drama-export-actions .drama-button { width: 100%; font-size: 12px; padding: 11px 9px; }
  .drama-step-actions { position: static; flex-wrap: wrap; margin-top: 22px; padding: 18px 0 0; border-top: 1px solid #474b56; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .drama-step-actions .drama-button { min-height: 48px; padding: 12px 17px; font-size: 14px; }
  .drama-step-actions .is-primary { flex: 1; }
  .drama-step-actions>span, .drama-step-actions>small { display: none; }
  .drama-step-actions .is-quiet { font-size: 12px; padding-left: 7px; padding-right: 7px; }
  .drama-search { width: 100%; }
  .drama-project-grid { grid-template-columns: 1fr; gap: 13px; }
  .drama-project-body { padding: 18px; }
  .drama-project-body h2 button { font-size: 16px; }
  .drama-project-actions { margin-top: 18px; padding-top: 15px; }
  .drama-empty { padding: 45px 22px; border-radius: 15px; }
  .drama-empty h2, .drama-empty h3 { font-size: 18px; }
  .drama-empty p { font-size: 12px; }
  .screenplay-paper { padding: 0; }
  .screenplay-toolbar { align-items: flex-start; padding: 21px 18px 18px; gap: 10px; }
  .screenplay-toolbar>.drama-button { font-size: 11px; padding-left: 9px; padding-right: 9px; }
  .screenplay-toolbar>.drama-button>svg { display: none; }
  .screenplay-project-settings { padding-left: 18px; padding-right: 18px; padding-bottom: 18px; }
  .screenplay-project-settings .drama-field-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .screenplay-project-settings .drama-field-row .drama-field { margin-top: 18px; }
  .screenplay-paper .drama-input, .screenplay-paper .drama-select { font-size: 16px; }
  .screenplay-story-settings { margin-left: 18px; margin-right: 18px; }
  .screenplay-writing-heading { padding-left: 18px; padding-right: 18px; }
  .screenplay-paper .screenplay-textarea { width: calc(100% - 36px); min-height: 490px; padding: 19px 17px 24px 26px; margin-left: 18px; margin-right: 18px; margin-bottom: 20px; font-size: 16px; background-position: 16px 0; }
  .screenplay-paper>.drama-step-actions { padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); border-color: #625c77; }
  .screenplay-paper>.drama-step-actions .is-primary { color: #2b2a36; background: #eee7df; border-color: #fff7ed; }
  .character-workspace { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .character-cast { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .character-library { min-height: 0; }
  .character-library>.drama-panel-heading { align-items: flex-start; }
  .character-library>.drama-panel-heading>div { flex: 1; min-width: 0; }
  .character-library>.drama-panel-heading>.drama-button { flex-shrink: 0; min-height: 44px; padding: 10px 12px; white-space: nowrap; }
  .character-file { padding: 16px; border-radius: 12px; }
  .character-file-portrait { width: 44px; height: 50px; min-height: 50px; font-size: 22px; }
  .character-file-copy { padding: 0; }
  .character-file-copy h3 { font-size: 15px; }
  .character-file-copy p { font-size: 13px; }
  .character-inspector { position: static; padding: 21px 18px; }
  .character-inspector-heading h2 { font-size: 15px; }
  .shot-board-toolbar { align-items: flex-start; margin-bottom: 17px; }
  .shot-board-toolbar h2 { font-size: 18px; }
  .shot-board-toolbar p { font-size: 12px; }
  .shot-toolbar-actions { gap: 6px; width: 100%; }
  .shot-episode-select { flex: 1; min-width: 84px; max-width: 115px; min-height: 44px; padding-left: 9px; padding-right: 9px; font-size: 16px; }
  .shot-toolbar-actions .drama-button { flex: 1; min-height: 44px; padding: 9px 7px; gap: 4px; font-size: 11px; }
  .shot-toolbar-actions .drama-button>svg { width: 14px; height: 14px; }
  .shot-board-layout { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .shot-board-panel { padding: 12px; border-radius: 14px; }
  .shot-board-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .shot-card { border-radius: 10px; }
  .shot-card-info { padding: 16px; }
  .shot-card-heading h3 { font-size: 14px; }
  .shot-card-heading>strong { font-size: 14px; }
  .shot-card-heading>span { font-size: 12px; }
  .shot-card-text { font-size: 14px; min-height: 0; }
  .shot-card-chips { gap: 4px; margin-top: 8px; }
  .shot-card-chips>span { font-size: 12px; padding: 2px 6px; }
  .shot-frame-number, .shot-frame-status { font-size: 8px; }
  .shot-frame-format { font-size: 8px; }
  .shot-inspector { position: static; max-height: none; padding: 21px 18px; overflow: visible; border-radius: 15px; }
  .shot-inspector .drama-field-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .shot-inspector .drama-field-row .drama-field { margin-top: 18px; }
  .shot-inspector-heading h2 { font-size: 15px; }
  .shot-action-row .drama-button { font-size: 11px; }
  .shot-sequence { padding: 17px 14px; border-radius: 14px; }
  .shot-sequence-head { align-items: flex-start; gap: 10px; margin-bottom: 14px; }
  .shot-sequence-head h3 { font-size: 12px; }
  .shot-sequence-head>span, .shot-sequence-head>p { max-width: 135px; text-align: right; font-size: 10px; }
  .shot-timeline-item { flex-basis: 82px; padding: 14px 9px 10px; }
  .shot-timeline-item strong { font-size: 13px; }
  .shot-timeline-item span { font-size: 12px; }
  .shot-undo-bar { padding: 10px 12px; font-size: 12px; }
}
@media (min-width: 541px) and (max-width: 760px) {
  .cinema-stage { min-height: 545px; padding-left: 18px; padding-right: 18px; }
  .cinema-stage-copy { padding-left: 16px; padding-right: 16px; }
  .cinema-stage-title { font-size: 39px; max-width: 420px; }
  .cinema-stage-description { max-width: 390px; }
  .cinema-tool-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .cinema-tool-copy { padding: 12px; }
  .cinema-tool-copy h3 { font-size: 12px; }
  .cinema-tool-copy p { font-size: 10px; }
  .cinema-tool-card>svg:last-child { display: none; }
  .studio-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .studio-empty-workspace { grid-template-columns: 80px minmax(0,1fr); padding: 24px; }
  .studio-empty-symbol { transform: scale(.9); }
  .character-cast { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shot-board-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 380px) {
  body[data-space] .main { padding-left: 16px; padding-right: 16px; }
  body[data-space="commerce"] .category-tabs { margin-right: -16px; padding-right: 16px; }
  body[data-space] .topbar { padding-left: 12px; padding-right: 12px; }
  body[data-space] .topbar-left { gap: 0; }
  body[data-space] .topbar .header-back { font-size: 12px; }
  body[data-space] .header-back+.topbar-title { display: none; }
  .space-top-switch { font-size: 12px; padding-left: 7px; padding-right: 7px; }
  .model-trigger { padding-left: 8px; padding-right: 8px; }
  .model-trigger>svg { display: none; }
  .cinema-stage { min-height: 550px; padding-left: 10px; padding-right: 10px; }
  .cinema-stage-title { font-size: 29px; }
  .cinema-stage-description { max-width: 235px; font-size: 12px; }
  .cinema-stage-copy { padding-left: 9px; padding-right: 9px; }
  .cinema-stage-topline { font-size: 6px; letter-spacing: .07em; }
  .studio-composer { padding-left: 7px; padding-right: 7px; }
  .studio-intent { font-size: 12px; padding-left: 5px; padding-right: 5px; }
  .studio-intent>svg { display: none; }
  .studio-prompt { min-height: 95px; height: 95px; font-size: 16px; }
  .studio-model-chip { max-width: calc(100% - 105px); gap: 4px; padding-left: 4px; padding-right: 4px; }
  .studio-model-chip>svg:first-child { display: none; }
  .studio-model-chip strong { font-size: 12px; }
  .studio-model-chip small { max-width: 104px; font-size: 12px; }
  .studio-start { font-size: 11px; padding-left: 10px; padding-right: 10px; }
  .cinema-tool-copy { padding: 13px 12px; }
  .cinema-tool-copy h3 { font-size: 13px; }
  .cinema-tool-copy p { font-size: 10px; max-width: 100px; }
  .engine-card { padding: 13px; }
  .studio-empty-workspace { grid-template-columns: 48px minmax(0,1fr); padding-left: 15px; padding-right: 15px; gap: 12px; }
  .studio-empty-symbol { transform: scale(.6); }
  .drama-stage-tab { font-size: 11px; padding-left: 9px; padding-right: 9px; }
  .drama-editor-panel { padding-left: 16px; padding-right: 16px; }
  .screenplay-paper { padding-left: 0; padding-right: 0; }
  .drama-step-actions { padding-left: 14px; padding-right: 14px; gap: 7px; }
  .drama-step-actions .drama-button { padding-left: 12px; padding-right: 12px; font-size: 13px; }
  .model-channel-grid { grid-template-columns: 1fr; }
  .model-channel { min-height: 0; padding: 15px; }
  .shot-board-panel { padding: 10px; }
  .shot-board-grid { gap: 8px; }
  .shot-card-info { padding: 14px; }
  .shot-card-heading h3 { font-size: 14px; }
  .shot-card-heading>strong { font-size: 14px; }
  .shot-toolbar-actions .drama-button>svg { display: none; }
  .character-file-portrait { min-height: 50px; }
}
@media (max-width: 360px) {
  body[data-space] .mobile-brand>span { display: none; }
  body[data-space] .mobile-brand { flex-shrink: 0; }
}
@media (max-width: 1150px) {
  .studio-resume { grid-template-columns: minmax(0,1fr) 130px; gap: 23px; padding: 25px; }
  .studio-resume-state { padding-left: 22px; }
  .cinema-stage.is-compact { min-height: 420px; }
  .cinema-stage.is-compact .cinema-stage-copy { padding-top: 20px; padding-bottom: 20px; }
}
@media (max-width: 900px) {
  .character-inspector-heading, .shot-inspector-heading { scroll-margin-top: 88px; }
}
@media (max-width: 760px) {
  .studio-resume { grid-template-columns: minmax(0,1fr); gap: 20px; margin-bottom: 18px; padding: 22px 20px; border-radius: 14px; }
  .studio-resume-kicker { margin-bottom: 8px; font-size: 12px; }
  .studio-resume h1 { font-size: 25px; line-height: 1.45; }
  .studio-resume-description { font-size: 14px; margin-top: 9px; }
  .studio-resume-meta { margin-top: 12px; font-size: 12px; gap: 4px 12px; }
  .studio-resume-actions { margin-top: 17px; gap: 8px; }
  .studio-resume-actions>.drama-button.is-primary { flex: 1; }
  .studio-resume-state { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px 20px; padding: 15px 0 0; border-left: 0; border-top: 1px solid #3e4557; }
  .studio-resume-stage { display: flex; align-items: baseline; gap: 10px; }
  .studio-resume-stage>span:first-child { font-size: 29px; }
  .studio-resume-stage>span:last-child { font-size: 13px; }
  .studio-resume-counts { margin-top: 0; gap: 6px 12px; font-size: 12px; }
  .cinema-stage.is-compact { min-height: 465px; padding-bottom: 15px; }
  .cinema-stage.is-compact .cinema-stage-topline { padding-top: 20px; font-size: 10px; }
  .cinema-stage.is-compact .cinema-stage-copy { padding-top: 24px; padding-bottom: 23px; }
  .cinema-stage.is-compact .cinema-stage-title { font-size: 30px; max-width: 290px; }
  .cinema-stage.is-compact .cinema-stage-description { margin-top: 11px; font-size: 13px; max-width: 280px; }
  .cinema-stage-description { font-size: 13px; }
  .cinema-stage-topline { font-size: 10px; }
  .cinema-stage-brand-note { font-size: 11px; }
  .studio-composer-meta { gap: 3px 8px; }
  .studio-start { font-size: 13px; }
  .studio-composer-footnote>.studio-draft-recovery { font-size: 12px; }
  .studio-composer-error { font-size: 13px; }
  .studio-storage-note { margin-top: 23px; font-size: 12px; }
  .cinema-tools, .studio-recent, .engine-bay { margin-top: 27px; }
  .studio-section-heading h2, .has-projects .studio-section-heading h2 { font-size: 19px; }
  .studio-section-heading p, .has-projects .studio-section-heading p { font-size: 13px; }
  .cinema-tool-copy p { font-size: 12px; }
  .engine-task { font-size: 12px; }
  .engine-channel, .engine-status { font-size: 12px; }
  .drama-page-heading p, .drama-workbench-heading p { font-size: 13px; }
  .character-file-summary { font-size: 13px; }
  .character-file-copy>strong { font-size: 15px; }
  .character-file-role { font-size: 12px; }
  .character-file-detail { font-size: 13px; }
  .character-detail-label { font-size: 12px; }
  .shot-card.is-text-plan { min-height: 0; }
  .shot-card-kicker, .shot-card-chips>span { font-size: 12px; }
  .shot-card-dialogue { font-size: 13px; }
  .shot-board-toolbar p, .shot-episode-summary { font-size: 13px; }
  .shot-source-bridge { gap: 12px; padding: 14px; }
  .shot-source-copy { flex-basis: 100%; }
  .shot-source-route { font-size: 13px; }
  .shot-source-note { font-size: 12px; }
  .shot-source-bridge>.drama-button { justify-content: flex-start; }
  .shot-action-row { flex-wrap: wrap; gap: 7px; }
  .shot-action-row .drama-button { flex-basis: calc(50% - 7px); font-size: 12px; }
  .shot-sequence-head { flex-wrap: wrap; }
  .shot-sequence-head h3 { font-size: 13px; }
  .shot-sequence-head>span, .shot-sequence-head>p { max-width: none; font-size: 12px; text-align: left; }
  .shot-undo-bar { flex-wrap: wrap; }
}
@media (min-width: 541px) and (max-width: 760px) {
  .cinema-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cinema-tool-copy h3 { font-size: 14px; }
  .cinema-tool-copy p { font-size: 12px; }
}
@media (max-width: 380px) {
  .studio-resume { padding: 20px 16px; }
  .studio-resume h1 { font-size: 24px; }
  .studio-resume-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .studio-resume-actions>.drama-button { width: 100%; }
  .studio-resume-actions>.drama-button.is-quiet { min-height: 44px; }
  .cinema-stage.is-compact .cinema-stage-title { font-size: 28px; }
  .cinema-stage-topline { font-size: 10px; letter-spacing: .06em; }
  .studio-start { padding-left: 10px; padding-right: 10px; font-size: 12px; }
  .studio-model-chip { max-width: calc(100% - 111px); }
  .studio-model-chip strong, .studio-model-chip small { font-size: 12px; }
  .cinema-tool-copy p { font-size: 12px; }
  .engine-grid { grid-template-columns: minmax(0,1fr); }
  .engine-card { padding: 15px; }
  .engine-model { font-size: 13px; }
  .engine-task { margin-bottom: 7px; }
  .engine-status { margin-top: 8px; }
  .character-file { grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding: 14px; }
  .character-file-portrait { width: 36px; height: 44px; min-height: 44px; font-size: 20px; }
  .character-file-detail { grid-template-columns: 25px minmax(0,1fr); gap: 8px; }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .is-simple-home .simple-stage { min-height: 420px; padding: 29px 26px 32px; }
  .studio-recent-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 18px; min-height: 96px; }
  .studio-recent-meta { display: flex; flex-wrap: wrap; grid-column: 1; grid-row: 2; gap: 4px 12px; }
  .studio-recent-continue { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 760px) {
  body[data-space="drama"] .main { padding-left: 16px; padding-right: 16px; padding-bottom: max(32px,env(safe-area-inset-bottom)); }
  body[data-space="drama"] .main.view-workspace { padding-bottom: 32px; }
  .drama-model-shortcut { display: inline-flex; }
  .is-simple-home .simple-stage { min-height: 395px; padding: 24px 18px; border-radius: 16px; }
  .is-simple-home .cinema-stage-art { object-position: 63% 38%; }
  .is-simple-home .cinema-stage-overlay { background: linear-gradient(90deg,#101727b8,#131a2a7a),linear-gradient(0deg,#121a2be8,transparent 90%); }
  .is-simple-home .cinema-stage-title { font-size: 29px; line-height: 1.35; letter-spacing: -.035em; text-wrap: balance; }
  .is-simple-home .cinema-stage-description { max-width: 270px; margin: 10px auto 0; font-size: 13px; }
  .is-simple-home .cinema-stage-brand-note { display: none; }
  .is-simple-home .cinema-stage-composer { margin-top: 18px; }
  .is-simple-home .studio-composer { padding: 9px 10px; border-radius: 13px; }
  .is-simple-home .studio-prompt { min-height: 104px; height: 104px; max-height: 320px; padding: 7px 6px; font-size: 16px; line-height: 1.85; }
  .is-simple-home .studio-composer-meta { padding: 0 6px 2px; flex-wrap: wrap; gap: 3px 8px; }
  .is-simple-home .studio-draft-status, .is-simple-home .studio-prompt-count { font-size: 12px; }
  .is-simple-home .studio-composer-footer { min-height: 46px; padding: 2px 3px 0; }
  .is-simple-home .studio-start { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  .is-simple-home .studio-composer-footnote { padding: 0 4px; }
  .is-simple-home .studio-composer-note { margin-top: 9px; font-size: 12px; }
  .simple-recent { margin-top: 23px; }
  .simple-recent .studio-section-heading { margin-bottom: 5px; }
  .simple-recent .studio-section-heading h2 { font-size: 18px; }
  .studio-recent-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; min-height: 100px; padding: 16px 2px; }
  .studio-recent-copy { gap: 4px; }
  .studio-recent-copy>strong { font-size: 15px; }
  .studio-recent-copy>span { font-size: 13px; }
  .studio-recent-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; grid-column: 1; grid-row: 2; font-size: 12px; }
  .studio-recent-continue { grid-column: 2; grid-row: 1 / 3; gap: 5px; font-size: 12px; }
  .drama-workbench .drama-stage-tabs { margin-bottom: 18px; }
  .drama-workbench .drama-stage-tab { flex: 1 1 0; min-width: 0; min-height: 44px; font-size: 14px; padding: 8px 7px; }
  .drama-workbench .drama-stage-tab>span:first-child { display: none; }
  .is-single-column .screenplay-toolbar { padding: 20px 18px 16px; }
  .is-single-column .screenplay-writing-heading { padding-top: 19px; }
  .is-single-column .screenplay-textarea { height: clamp(300px,40dvh,340px); min-height: 300px; font-size: 16px; }
  .workspace-disclosure { margin-top: 18px; }
  .workspace-disclosure>summary { min-height: 50px; font-size: 13px; }
  .workspace-disclosure-content { padding-bottom: 13px; }
  .screenplay-paper .workspace-disclosure { margin-left: 18px; margin-right: 18px; }
  .screenplay-paper .workspace-disclosure:last-child { margin-bottom: 12px; }
  .character-inspector .inspector-back, .shot-inspector .inspector-back { min-height: 44px; margin-top: 16px; }
  .workspace-disclosure.shot-sequence { padding: 0; border-radius: 0; }
}
@media (max-width: 380px) {
  .is-simple-home .simple-stage { min-height: 395px; padding: 20px 14px 22px; }
  .is-simple-home .cinema-stage-title { font-size: 28px; }
  .is-simple-home .cinema-stage-description { font-size: 13px; }
  .is-simple-home .studio-prompt { min-height: 96px; height: 96px; }
  .studio-recent-row { gap: 8px 10px; }
  .studio-recent-continue { gap: 4px; }
  .studio-recent-meta { gap: 4px 9px; }
  .is-single-column .screenplay-toolbar { padding-left: 16px; padding-right: 16px; }
  .screenplay-paper .workspace-disclosure { margin-left: 16px; margin-right: 16px; }
  .drama-workbench .drama-stage-tab { padding-left: 5px; padding-right: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-space] *, body[data-space] *:before, body[data-space] *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
