/* A working canvas, not a second landing page. Scoped to the studio only. */
.workspace-shell {
  --workspace-bg: var(--paper, #0c0e12);
  --workspace-surface: var(--white, #14171d);
  --workspace-elevated: #1b2028;
  --workspace-line: var(--line, #29303a);
  --workspace-ink: var(--ink, #f3f4f6);
  --workspace-muted: var(--muted, #9ca4b3);
  --workspace-lime: var(--accent, #c8ef7f);
  width: calc(100% - 48px);
  max-width: 1920px;
  padding-bottom: 60px;
  color: var(--workspace-ink);
}
.workspace-shell [hidden] { display: none !important; }
.workspace-shell .workspace-heading { padding: 24px 0 18px; gap: 20px; }
.workspace-shell .workspace-heading > div:first-child { display: flex; align-items: center; gap: 16px; min-width: 0; }
.workspace-shell .workspace-heading .eyebrow { font-size: 10px; margin: 0; padding-right: 16px; border-right: 1px solid var(--workspace-line); white-space: nowrap; }
.workspace-shell .workspace-heading h1 { font-size: 24px; line-height: 1.3; letter-spacing: -.045em; margin: 0; white-space: nowrap; }
.workspace-shell .workspace-heading-actions { gap: 16px; flex-shrink: 0; }
.workspace-shell .save-status { font-size: 12px; gap: 7px; }
.workspace-shell .workspace-subnav { position: sticky; top: 0; z-index: 12; min-height: 64px; margin-bottom: 0; padding: 0 2px; background: var(--workspace-bg); border-bottom: 1px solid var(--workspace-line); align-items: center; }
.workspace-shell .workspace-tabs { gap: 24px; }
.workspace-shell .workspace-tabs button { min-height: 64px; padding: 18px 0; font-size: 14px; }
.workspace-shell .workspace-tabs button.active { color: var(--workspace-lime); border-color: var(--workspace-lime); }
.workspace-shell .workspace-wallet { gap: 8px; font-size: 13px; flex-wrap: nowrap; }
.workspace-shell .workspace-wallet strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.workspace-shell .workspace-wallet [data-dialog], .workspace-shell .workspace-wallet a { margin-left: 6px; padding: 9px 13px; min-height: 40px; display: inline-flex; align-items: center; border: 1px solid var(--workspace-line); border-radius: 8px; font-size: 13px; }
.workspace-shell .workspace-usage { margin: 0 0 20px; border-bottom: 1px solid var(--workspace-line); }
.workspace-shell .workspace-usage > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 12px; color: var(--workspace-muted); list-style: none; }
.workspace-shell .workspace-usage summary::-webkit-details-marker, .workspace-shell .workspace-template-drawer > summary::-webkit-details-marker { display: none; }
.workspace-shell .workspace-usage-cost { display: inline-flex; align-items: center; gap: 8px; color: var(--workspace-ink); }
.workspace-shell .workspace-usage .icon { width: 15px; height: 15px; color: var(--workspace-lime); }
.workspace-shell .workspace-usage summary i { font-style: normal; display: inline-block; margin-left: 6px; }
.workspace-shell .workspace-usage[open] summary i { transform: rotate(180deg); }
.workspace-shell .workspace-usage-content { padding-bottom: 16px; }
.workspace-shell .studio-trial-summary { margin: 0; padding: 15px 18px; background: var(--workspace-surface); border-color: var(--workspace-line); border-radius: 10px; gap: 5px; }
.workspace-shell .studio-trial-summary strong { color: var(--workspace-ink); }
.workspace-shell .studio-trial-summary span { color: var(--workspace-muted); }
.workspace-shell .workspace-limit-note { margin: 8px 0 0; font-size: 12px; }
.workspace-shell .studio-resume { padding: 16px 18px; margin-bottom: 18px; background: var(--workspace-surface); border-color: var(--workspace-line); border-radius: 12px; }
.workspace-shell .studio-resume > header { margin-bottom: 12px; align-items: center; }
.workspace-shell .studio-resume h2 { font-size: 14px; }
.workspace-shell .studio-resume > header p { display: none; }
.workspace-shell .studio-resume > header > a { min-height: 32px; font-size: 12px; }
.workspace-shell .recent-projects { gap: 10px; }
.workspace-shell .recent-project { min-width: 0; min-height: 62px; padding: 10px 12px; }
.workspace-shell .recent-project strong { font-size: 13px; }
.workspace-shell .recent-project small { font-size: 12px; }
.workspace-shell .local-draft-notice { padding: 14px 18px; margin-bottom: 18px; border-radius: 12px; }
.workspace-shell .local-draft-notice h2 { font-size: 14px; }
.workspace-shell .toon-studio-grid { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.workspace-shell .story-sidebar { position: sticky; top: 82px; min-width: 0; padding: 22px; border-radius: 14px; background: var(--workspace-surface); border-color: var(--workspace-line); box-shadow: none; }
.workspace-shell .sidebar-title { margin: 5px 0 20px; }
.workspace-shell .sidebar-title h2 { font-size: 16px; letter-spacing: -.025em; }
.workspace-shell .sidebar-step { width: 27px; height: 27px; border-radius: 7px; font-size: 11px; background: var(--workspace-elevated); color: var(--workspace-lime); }
.workspace-shell .sidebar-decoration { color: var(--workspace-muted); }
.workspace-shell .field-label { font-size: 13px; margin-top: 18px; }
.workspace-shell .text-input { border-radius: 9px; padding: 12px 13px; }
.workspace-shell .story-input { min-height: 200px; height: 230px; font-size: 14px; line-height: 1.8; }
.workspace-shell .story-count { font-size: 11px; bottom: 10px; }
.workspace-shell .input-hint, .workspace-shell .control-note, .workspace-shell .provider-note { font-size: 12px; line-height: 1.7; }
.workspace-shell #story-title-hint { margin-bottom: 4px; }
.workspace-shell .example-section { display: none; }
.workspace-shell #draft-story, .workspace-shell #edit-story { margin-top: 18px; min-height: 48px; border-radius: 9px; font-size: 14px; }
.workspace-shell .studio-settings { border-color: var(--workspace-line); margin-top: 18px; }
.workspace-shell .studio-settings > summary { min-height: 46px; }
.workspace-shell .studio-settings > summary strong { font-size: 14px; }
.workspace-shell .studio-settings > summary small { color: var(--workspace-muted); font-size: 12px; }
.workspace-shell .studio-settings .toon-style-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-shell .studio-settings .toon-style-card { padding: 8px; border-radius: 9px; }
.workspace-shell .catalog-style-card > strong { font-size: 13px; }
.workspace-shell .catalog-style-card > span:last-child { font-size: 12px; }
.workspace-shell .style-sample-caption { font-size: 10px !important; padding: 4px !important; }
.workspace-shell .character-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.workspace-shell .character-avatar { width: 60px; height: 60px; }
.workspace-shell .character-card strong { font-size: 12px; overflow-wrap: anywhere; }
.workspace-shell .character-add-link { min-height: 44px; padding: 10px 0; font-size: 13px; }
.workspace-shell .workspace-template-drawer { padding: 0; border: 1px solid var(--workspace-line); border-radius: 10px; margin: 0 0 22px; background: transparent; }
.workspace-shell .workspace-template-drawer > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; min-height: 64px; list-style: none; cursor: pointer; }
.workspace-shell .workspace-template-drawer summary strong { display: block; font-size: 13px; line-height: 1.5; }
.workspace-shell .workspace-template-drawer summary small { display: block; font-size: 11px; color: var(--workspace-muted); margin-top: 3px; }
.workspace-shell .workspace-drawer-plus { font-size: 23px; font-weight: 400; color: var(--workspace-muted); }
.workspace-shell .workspace-template-drawer[open] .workspace-drawer-plus { transform: rotate(45deg); }
.workspace-shell .workspace-template-content { padding: 0 14px 14px; border-top: 1px solid var(--workspace-line); }
.workspace-shell .workspace-template-content > header { padding-top: 14px; display: flex; align-items: start; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.workspace-shell .workspace-template-content .eyebrow, .workspace-shell .workspace-template-content header p:last-child { display: none; }
.workspace-shell .workspace-template-content h2 { font-size: 13px; line-height: 1.6; letter-spacing: -.025em; margin: 0; }
.workspace-shell #write-without-template { flex-shrink: 0; min-height: 32px; font-size: 12px; }
.workspace-shell .story-purpose-options { display: flex; gap: 5px; }
.workspace-shell .story-purpose-options button { flex: 1; min-width: 0; padding: 9px 5px; min-height: 42px; border-radius: 7px; text-align: center; justify-content: center; }
.workspace-shell .story-purpose-options strong { font-size: 12px; line-height: 1.5; word-break: normal; }
.workspace-shell .story-purpose-options span { display: none; }
.workspace-shell .starter-template-list { grid-template-columns: 1fr; margin-top: 10px; gap: 7px; }
.workspace-shell .starter-template { padding: 10px 11px; min-height: 64px; border-radius: 8px; }
.workspace-shell .starter-template strong { font-size: 13px; }
.workspace-shell .starter-template small { font-size: 11px; }
.workspace-shell .starter-template-arrow { font-size: 16px; }
.workspace-shell.has-active-project .project-story-brief:not([hidden]) { display: block; }
.workspace-shell.has-active-project:not(.story-details-open) .story-form-details { display: none; }
.workspace-shell .project-story-brief p { font-size: 12px; line-height: 1.7; margin: 0 0 8px; color: var(--workspace-muted); }
.workspace-shell .project-story-brief h2 { font-size: 20px; line-height: 1.55; letter-spacing: -.035em; overflow-wrap: anywhere; margin: 0; }
.workspace-shell .project-story-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 16px; }
.workspace-shell .project-story-actions button { font-size: 12px; min-height: 44px; color: var(--workspace-muted); text-decoration: underline; text-underline-offset: 4px; }
.workspace-shell.story-details-open .story-form-details { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--workspace-line); }
.workspace-shell.story-details-open .story-form-details .sidebar-title { display: none; }
.workspace-shell .toon-stage { border-radius: 14px; padding: 0 22px 22px; background: var(--workspace-surface); border-color: var(--workspace-line); overflow: visible; }
.workspace-shell .stage-toolbar { position: sticky; top: 64px; z-index: 9; min-height: 70px; padding: 14px 0; background: var(--workspace-surface); border-bottom: 1px solid var(--workspace-line); border-radius: 14px 14px 0 0; }
.workspace-shell .stage-steps { gap: 10px; }
.workspace-shell .stage-step { min-height: 40px; font-size: 13px; gap: 8px; }
.workspace-shell .stage-step i { font-size: 11px; width: 25px; height: 25px; border-color: var(--workspace-line); }
.workspace-shell .stage-step.active { color: var(--workspace-lime); }
.workspace-shell .stage-step.active i { background: var(--workspace-lime); color: #171d10; }
.workspace-shell .project-status { font-size: 12px; padding: 6px 10px; background: var(--workspace-elevated); color: var(--workspace-muted); }
.workspace-shell .toon-empty { display: flex; flex-direction: column; padding: 48px 24px 30px; min-height: 640px; gap: 28px; }
.workspace-shell .empty-comic-copy { text-align: center; max-width: 540px; margin: 0; }
.workspace-shell .workspace-canvas-label { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--workspace-muted); }
.workspace-shell .workspace-canvas-label > span { color: var(--workspace-lime); font-size: 20px; }
.workspace-shell .empty-comic-copy h2 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.045em; margin-top: 14px; line-height: 1.45; color: var(--workspace-ink); }
.workspace-shell .empty-comic-copy > p { font-size: 14px; line-height: 1.8; color: var(--workspace-muted); max-width: 420px; margin: 14px auto 0; }
.workspace-shell .workspace-canvas-steps { padding: 0; margin: 24px 0 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.workspace-shell .workspace-canvas-steps li { display: inline-flex; align-items: center; gap: 6px; color: var(--workspace-muted); font-size: 12px; }
.workspace-shell .workspace-canvas-steps li > span { color: var(--workspace-lime); font-size: 10px; font-variant-numeric: tabular-nums; }
.workspace-shell .workspace-canvas-examples { width: min(540px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; padding-top: 10px; }
.workspace-shell .workspace-canvas-examples figure { min-width: 0; margin: 0; border: 1px solid #ffffff1f; border-radius: 9px; overflow: hidden; background: var(--workspace-elevated); box-shadow: 0 12px 25px #0003; }
.workspace-shell .workspace-canvas-examples figure:first-child { transform: translateY(9px) rotate(-4deg); }
.workspace-shell .workspace-canvas-examples figure:last-child { transform: translateY(9px) rotate(4deg); }
.workspace-shell .workspace-canvas-examples img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.workspace-shell .workspace-canvas-examples figcaption { display: flex; justify-content: space-between; gap: 5px; padding: 10px; color: var(--workspace-muted); font-size: 10px; white-space: nowrap; }
.workspace-shell .workspace-canvas-examples figcaption span { color: var(--workspace-ink); font-variant-numeric: tabular-nums; }
.workspace-shell .sample-tag { font-size: 11px; color: var(--workspace-muted); border-color: var(--workspace-line); padding: 6px 9px; }
.workspace-shell .editor-heading { padding: 24px 0 16px; }
.workspace-shell .editor-heading h2 { font-size: 24px; font-weight: 700; line-height: 1.45; }
.workspace-shell .editor-heading p:last-child { font-size: 13px; max-width: 660px; margin-top: 8px; }
.workspace-shell .script-actions { position: sticky; top: 134px; z-index: 8; margin: 0 0 20px; padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--workspace-line); background: var(--workspace-surface); justify-content: flex-start; gap: 8px; }
.workspace-shell .script-actions > .button { border-radius: 8px; min-height: 44px; padding: 10px 14px; font-size: 13px; }
.workspace-shell .script-actions > p { text-align: left; }
.workspace-shell .generation-credit-estimate { padding: 10px 13px; margin-top: 3px; gap: 4px 12px; border-radius: 8px; }
.workspace-shell .generation-credit-estimate > strong { font-size: 13px; }
.workspace-shell .generation-credit-estimate > small { font-size: 11px; }
.workspace-shell .comic-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.workspace-shell .comic-panel-card { border-radius: 11px; background: var(--workspace-bg); border-color: var(--workspace-line); }
.workspace-shell .panel-card-heading { padding: 13px 15px; background: var(--workspace-elevated); border-bottom: 1px solid var(--workspace-line); }
.workspace-shell .panel-card-heading strong { font-size: 12px; letter-spacing: .04em; }
.workspace-shell .panel-script-fields, .workspace-shell .panel-result-fields { padding: 0 15px 15px; }
.workspace-shell .panel-script-fields .text-input, .workspace-shell .panel-result-fields textarea { font-size: 14px; line-height: 1.8; }
.workspace-shell .panel-script-fields .field-label, .workspace-shell .panel-result-fields .field-label { font-size: 12px; margin-top: 15px; }
.workspace-shell .panel-script-fields textarea[name=scene] { min-height: 130px; }
.workspace-shell .panel-script-fields textarea[name=dialogue] { min-height: 92px; }
.workspace-shell .panel-actions { gap: 8px; flex-wrap: wrap; }
.workspace-shell .panel-actions button { min-height: 42px; font-size: 12px; padding: 9px 10px; border-radius: 7px; }
.workspace-shell .panel-edit-button, .workspace-shell .panel-actions button { background: var(--workspace-elevated); border-color: var(--workspace-line); color: var(--workspace-lime); }
.workspace-shell .panel-edit-button:hover:not(:disabled), .workspace-shell .panel-actions button:hover:not(:disabled) { background: #293524; border-color: #597343; }
.workspace-shell .panel-actions .icon { width: 14px; height: 14px; }
.workspace-shell .panel-art { aspect-ratio: 4 / 5; }
.workspace-shell .toon-progress { min-height: 600px; }
.workspace-shell .toon-progress > p { font-size: 14px; max-width: 460px; }
.workspace-shell .toon-export, .workspace-shell .toon-publication, .workspace-shell .episode-continuation { border-radius: 12px; }
.workspace-shell .download-actions > .button { border-radius: 9px; font-size: 14px; }
.workspace-shell .character-library-view { padding-top: 26px; }
.workspace-shell .character-library-intro { max-width: 850px; margin-bottom: 24px; }
.workspace-shell .character-library-intro h2 { font-size: 30px; }
.workspace-shell .character-library-layout { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 28px; }
.workspace-shell .character-form { padding: 24px; border-radius: 14px; }
.workspace-shell .saved-character-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.workspace-shell .saved-character-card { min-width: 0; }
@media (min-width: 1700px) {
  .workspace-shell .toon-studio-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 24px; }
  .workspace-shell .comic-panel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1150px) {
  .workspace-shell { width: calc(100% - 36px); }
  .workspace-shell .workspace-heading .eyebrow { display: none; }
  .workspace-shell .toon-studio-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 14px; }
  .workspace-shell .story-sidebar { padding: 18px; }
  .workspace-shell .toon-stage { padding: 0 18px 18px; }
  .workspace-shell .stage-steps { gap: 6px; }
  .workspace-shell .stage-step { gap: 6px; font-size: 12px; }
  .workspace-shell .stage-steps > span { display: none; }
  .workspace-shell .project-status { font-size: 11px; }
  .workspace-shell .comic-panel-grid { grid-template-columns: 1fr; }
  .workspace-shell .toon-empty { padding-inline: 10px; }
  .workspace-shell .workspace-canvas-examples { gap: 8px; }
  .workspace-shell .workspace-canvas-examples figcaption { padding: 7px; font-size: 9px; }
  .workspace-shell .workspace-canvas-examples figcaption > span { display: none; }
}
@media (max-width: 850px) {
  .workspace-shell { width: calc(100% - 32px); }
  .workspace-shell .workspace-heading { padding: 22px 0 14px; flex-wrap: wrap; }
  .workspace-shell .workspace-heading h1 { font-size: 23px; }
  .workspace-shell .workspace-heading-actions { flex-direction: row; gap: 10px; align-items: center; padding: 0; flex-wrap: wrap; }
  .workspace-shell .workspace-heading-actions .save-status { display: none; }
  .workspace-shell .workspace-account-link { font-size: 12px; }
  .workspace-shell .workspace-heading .button-small { min-height: 40px; font-size: 12px; }
  .workspace-shell .workspace-subnav { min-height: 60px; gap: 10px; flex-wrap: nowrap; align-items: center; }
  .workspace-shell .workspace-tabs { gap: 18px; flex-shrink: 0; }
  .workspace-shell .workspace-tabs button { min-height: 60px; font-size: 13px; }
  .workspace-shell .workspace-wallet { gap: 5px; font-size: 12px; }
  .workspace-shell .workspace-wallet strong { font-size: 15px; }
  .workspace-shell .workspace-wallet [data-dialog], .workspace-shell .workspace-wallet a { padding: 8px 10px; font-size: 12px; margin-left: 4px; }
  .workspace-shell .workspace-usage { margin-bottom: 16px; }
  .workspace-shell .workspace-usage > summary { gap: 12px; font-size: 11px; }
  .workspace-shell .toon-studio-grid { grid-template-columns: 1fr; gap: 18px; }
  .workspace-shell .story-sidebar { position: static; padding: 22px; }
  .workspace-shell .story-input { height: 190px; min-height: 160px; }
  .workspace-shell .toon-stage { padding: 0 18px 18px; }
  .workspace-shell .stage-toolbar { position: static; min-height: 68px; flex-wrap: nowrap; gap: 8px; }
  .workspace-shell .stage-steps { gap: 10px; flex-wrap: nowrap; }
  .workspace-shell .stage-step { gap: 6px; font-size: 12px; }
  .workspace-shell .stage-step i { width: 23px; height: 23px; font-size: 11px; }
  .workspace-shell .script-actions { position: static; padding: 8px 0 16px; margin: 0 0 16px; }
  .workspace-shell .script-actions > .button { flex: 1 1 auto; min-height: 46px; white-space: normal; }
  .workspace-shell .comic-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .workspace-shell .toon-empty { padding: 35px 12px 25px; min-height: 530px; gap: 24px; }
  .workspace-shell .empty-comic-copy h2 { font-size: 28px; }
  .workspace-shell .workspace-canvas-examples { max-width: 430px; }
  .workspace-shell .workspace-canvas-examples figcaption { padding: 8px; font-size: 10px; }
  .workspace-shell .workspace-canvas-examples figcaption > span { display: inline; }
  .workspace-shell .toon-progress { min-height: 480px; }
  .workspace-shell .character-library-layout { grid-template-columns: 1fr; }
  .workspace-shell .character-library-intro h2 { font-size: 26px; }
}
@media (max-width: 580px) {
  .workspace-shell { width: calc(100% - 24px); padding-bottom: 35px; }
  .workspace-shell .workspace-heading { gap: 12px; }
  .workspace-shell .workspace-heading h1 { font-size: 21px; }
  .workspace-shell .workspace-heading-actions { gap: 8px; }
  .workspace-shell .workspace-heading .button-small { padding: 9px 11px; }
  .workspace-shell .workspace-account-link { display: none; }
  .workspace-shell .workspace-tabs { gap: 15px; }
  .workspace-shell .workspace-wallet > span:not(.credit-symbol) { display: none; }
  .workspace-shell .workspace-wallet { gap: 5px; }
  .workspace-shell .workspace-wallet .credit-symbol { display: none; }
  .workspace-shell .workspace-usage > summary { flex-wrap: wrap; justify-content: flex-start; gap: 3px 15px; padding: 10px 1px; min-height: 64px; }
  .workspace-shell .workspace-usage summary > span:last-child { font-size: 11px; }
  .workspace-shell .workspace-usage-cost { font-size: 12px; }
  .workspace-shell .story-sidebar { padding: 18px; }
  .workspace-shell .story-input, .workspace-shell .text-input, .workspace-shell .panel-script-fields .text-input, .workspace-shell .panel-result-fields textarea { font-size: 16px; }
  .workspace-shell .workspace-template-drawer { margin-bottom: 20px; }
  .workspace-shell .studio-settings .toon-style-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-shell .toon-stage { padding: 0 14px 16px; }
  .workspace-shell .stage-toolbar { flex-wrap: wrap; gap: 0 8px; padding: 10px 0; min-height: 62px; }
  .workspace-shell .stage-steps { gap: 9px; }
  .workspace-shell .stage-step { font-size: 12px; min-height: 38px; gap: 5px; }
  .workspace-shell .project-status { font-size: 10px; margin-left: auto; padding: 5px 7px; }
  .workspace-shell .comic-panel-grid { grid-template-columns: 1fr; gap: 16px; }
  .workspace-shell .editor-heading h2 { font-size: 22px; }
  .workspace-shell .editor-heading p:last-child { font-size: 13px; }
  .workspace-shell .panel-actions button { min-height: 44px; font-size: 13px; }
  .workspace-shell .toon-empty { padding: 30px 5px 24px; min-height: 470px; gap: 20px; }
  .workspace-shell .empty-comic-copy h2 { font-size: 24px; }
  .workspace-shell .empty-comic-copy > p { font-size: 13px; }
  .workspace-shell .workspace-canvas-steps { gap: 8px 12px; margin-top: 19px; }
  .workspace-shell .workspace-canvas-steps li { font-size: 11px; }
  .workspace-shell .workspace-canvas-examples { gap: 8px; max-width: 370px; }
  .workspace-shell .workspace-canvas-examples figcaption { justify-content: center; font-size: 9px; padding: 7px 3px; }
  .workspace-shell .workspace-canvas-examples figcaption > span { display: none; }
  .workspace-shell .sample-tag { font-size: 10px; padding: 5px 7px; }
  .workspace-shell .local-draft-notice { padding: 15px; }
  .workspace-shell .local-draft-notice > div:last-child { padding-left: 0; }
  .workspace-shell .recent-projects { grid-template-columns: 1fr; }
  .workspace-shell .studio-resume { padding: 14px; }
  .workspace-shell .saved-character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .workspace-shell .character-form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-shell *, .workspace-shell *::before, .workspace-shell *::after { scroll-behavior: auto; }
}

/* Story choices stay beside the draft, directing choices beside each panel. */
.workspace-shell .narrative-choices { border: 0; padding: 0; margin: 18px 0 20px; min-width: 0; }
.workspace-shell .narrative-choices legend { font-size: 13px; font-weight: 650; margin-bottom: 10px; }
.workspace-shell .narrative-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.workspace-shell .narrative-options label { position: relative; cursor: pointer; min-width: 0; }
.workspace-shell .narrative-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.workspace-shell .narrative-options label > span { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--workspace-line); border-radius: 9px; padding: 11px 10px; height: 100%; background: var(--workspace-bg); }
.workspace-shell .narrative-options strong { font-size: 12px; line-height: 1.45; }
.workspace-shell .narrative-options small { color: var(--workspace-muted); font-size: 10px; line-height: 1.5; }
.workspace-shell .narrative-options input:checked + span { border-color: var(--workspace-lime); background: #26341d; }
.workspace-shell .narrative-options input:checked + span strong { color: var(--workspace-lime); }
.workspace-shell .narrative-options input:focus-visible + span { outline: 2px solid var(--workspace-lime); outline-offset: 3px; }
.workspace-shell .narrative-options input:disabled + span { opacity: .65; cursor: default; }
.workspace-shell .panel-direction { border: 0; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--workspace-line); min-width: 0; }
.workspace-shell .panel-direction legend { font-size: 12px; color: var(--workspace-ink); font-weight: 650; margin-bottom: 10px; }
.workspace-shell .panel-direction-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.workspace-shell .panel-direction-grid label { display: flex; flex-direction: column; min-width: 0; gap: 5px; font-size: 11px; color: var(--workspace-muted); }
.workspace-shell .panel-direction-grid label:last-child { grid-column: 1 / -1; }
.workspace-shell .panel-direction-grid select.text-input { min-height: 40px; width: 100%; margin: 0; padding: 9px 8px; font-size: 12px; text-overflow: ellipsis; }
.workspace-shell .panel-direction-grid select:disabled { opacity: .58; cursor: default; }
.workspace-shell .panel-direction-hint, .workspace-shell .panel-silent-hint { font-size: 11px; line-height: 1.7; color: var(--workspace-muted); margin: 10px 0 0; }
.workspace-shell .panel-silent-hint { color: var(--workspace-lime); }
.workspace-shell .panel-direction-review { padding: 14px 16px; margin: 0 0 18px; border: 1px solid #52633f; border-radius: 10px; background: #1c251b; font-size: 12px; line-height: 1.7; }
.workspace-shell .panel-direction-review strong { color: var(--workspace-lime); font-size: 12px; }
.workspace-shell .panel-direction-review ul { margin: 6px 0; padding-left: 18px; }
.workspace-shell .panel-direction-review p { color: var(--workspace-muted); margin: 6px 0 0; font-size: 11px; }
@media (max-width: 580px) {
  .workspace-shell .narrative-options strong { font-size: 13px; }
  .workspace-shell .narrative-options small { font-size: 11px; }
  .workspace-shell .panel-direction-grid select.text-input { font-size: 16px; min-height: 44px; }
}
