:root {
  color-scheme: light;
  --cream: #fff8ec;
  --ink: #1b1d4d;
  --muted: #62647d;
  --yellow: #ffd23f;
  --yellow-soft: #fff2ba;
  --pink: #ff7ab6;
  --pink-strong: #f84297;
  --pink-soft: #ffe0ef;
  --mint: #3fdcb0;
  --mint-soft: #d3faec;
  --blue: #3b6bff;
  --blue-soft: #b9dfff;
  --line: #dce3ed;
  --white: #fffefb;
  --radius: 16px;
  --shadow: 4px 4px 0 var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; }
body { min-width: 0; margin: 0; color: var(--ink); background: var(--cream); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: var(--blue); text-underline-offset: 4px; }
button, a, input, textarea, select, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--blue); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.4; }
h1 { font-size: clamp(25px, 2.65vw, 39px); font-weight: 900; letter-spacing: -.04em; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 800; }
small { font-size: 12px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--yellow); border: 2px solid var(--ink); }
.skip-link:focus { top: 10px; }
.muted { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 2px solid var(--ink); border-radius: 13px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 800; line-height: 1.45; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; text-align: center; }
.button:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button.primary { background: var(--blue); color: white; }
.button.secondary { background: var(--white); }
.button.small { min-height: 44px; padding: 8px 14px; font-size: 13px; }
.button.full-width { width: 100%; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; padding: 6px 0; background: transparent; font-weight: 800; color: #1455e3; text-decoration: underline; text-underline-offset: 5px; text-align: left; }
.card { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.chip, .eyebrow { display: inline-block; width: fit-content; border: 2px solid var(--ink); border-radius: 10px; padding: 5px 14px; line-height: 1.5; font-weight: 800; }
.eyebrow { box-shadow: 2px 2px 0 var(--blue); max-width: 100%; }
.blue { background: var(--blue-soft); }
.mint { background: var(--mint-soft); }
.pink { background: var(--pink-soft); }
.yellow { background: var(--yellow); }
.notice { padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: 10px; background: #f1f3ff; font-size: 16px; line-height: 1.7; }
.notice.error { color: #8b1244; background: #ffe8ef; border-color: #a32052; }
.notice.warning { background: var(--yellow-soft); }
.notice.success { background: var(--mint-soft); }
.notice.info { background: #e6f1ff; }
.notifications { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.notifications:not(:empty) { box-shadow: var(--shadow); border-radius: 10px; }
.initial-loading { min-height: 100vh; display: flex; gap: 20px; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.test-environment-banner { padding: 9px 16px; border-bottom: 2px solid var(--ink); background: var(--yellow-soft); color: var(--ink); text-align: center; font-size: 13px; font-weight: 800; line-height: 1.7; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 900; white-space: nowrap; }
.brand-mark { display: inline-flex; flex-shrink: 0; width: 44px; height: 46px; align-items: center; justify-content: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 2px 2px 0 var(--ink); font-size: 29px; font-weight: 900; line-height: 1; }
.app-shell { min-height: calc(100dvh - var(--test-banner-height, 0px)); display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: calc(100dvh - var(--test-banner-height, 0px)); display: flex; flex-direction: column; padding: 26px 16px 20px; border-right: 2px solid var(--ink); background: var(--cream); z-index: 20; }
.sidebar .brand { font-size: 22px; gap: 10px; margin: 0 0 38px 4px; }
.main-nav { display: flex; flex-direction: column; gap: 12px; }
.nav-button { width: 100%; min-height: 60px; border: 2px solid transparent; border-radius: 13px; padding: 10px 14px; background: transparent; text-align: left; font-size: 20px; }
.nav-content { display: flex; align-items: center; gap: 14px; font-weight: 800; }
.nav-button.active { border-color: var(--ink); background: var(--mint-soft); box-shadow: 3px 3px 0 var(--ink); }
.nav-button:hover { background: #fff2d4; }
.nav-button.active:hover { background: var(--mint-soft); }
.nav-mark { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 34px; height: 36px; border: 2px solid var(--ink); border-radius: 9px; font-weight: 900; line-height: 1; }
.nav-workspace { background: var(--yellow); }
.nav-artworks { background: var(--pink-soft); }
.nav-drafts { background: var(--blue-soft); }
.nav-credits { background: var(--mint-soft); }
.nav-admin { background: var(--yellow-soft); }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.quota-card { border: 2px dashed #9997a5; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; font-size: 12px; }
.credit-badge { font-size: 22px; font-weight: 900; }
.quota-card small { color: var(--muted); }
.sidebar-profile { display: flex; align-items: center; gap: 10px; }
.profile-avatar { width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); font-weight: 800; }
.sidebar-profile small { display: block; color: var(--muted); }
.sidebar-profile .text-button { margin-left: auto; font-size: 12px; }
.app-body { min-width: 0; background-color: var(--cream); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 26px 26px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; padding: 13px 32px; border-bottom: 2px solid var(--ink); background: var(--cream); }
.breadcrumb { font-size: 16px; color: #4f5275; }
.header-save { min-height: 44px; font-size: 15px; padding: 8px 18px; }
.mobile-brand { display: none; }
.main-content { padding: 30px 32px 24px; max-width: 1600px; margin: 0 auto; }
.workspace-title { display: flex; align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 26px; }
.workspace-title .eyebrow { font-size: 17px; }
.step-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0 0 30px; gap: 5px; }
.step-track li { min-width: 0; position: relative; }
.step-button { position: relative; z-index: 1; min-height: 47px; width: 100%; border: 2px solid #8488a5; border-radius: 11px; padding: 8px 4px; background: #edf0ff; color: #787c9a; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.step-button.current { color: var(--ink); background: var(--pink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.step-button.done { color: var(--ink); background: var(--mint-soft); border-color: var(--ink); }
.step-track .step-button { padding-right: 8px; }
.step-track li:not(:last-child) .step-button::after { content: ''; position: absolute; right: -6px; top: calc(50% - 7px); width: 12px; height: 12px; background: inherit; border-top: 2px solid #8488a5; border-right: 2px solid #8488a5; border-radius: 2px; transform: rotate(45deg); }
.step-track li:not(:last-child) .step-button.current::after, .step-track li:not(:last-child) .step-button.done::after { border-color: var(--ink); }
.step-number { font-size: 14px; }
.step-name { font-weight: 800; }
.workspace-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .44fr); align-items: start; gap: 22px; }
.step-card { overflow: hidden; background: var(--pink-soft); }
.step-card-heading { display: flex; align-items: flex-start; gap: 10px; background: var(--pink-strong); color: white; padding: 16px 22px; }
.step-card-heading h2 { font-size: clamp(19px, 1.8vw, 28px); }
.step-index { font-size: clamp(20px, 1.8vw, 28px); font-weight: 900; line-height: 1.4; }
.step-card-body { padding: 20px 24px 23px; display: flex; flex-direction: column; gap: 19px; }
.step-intro { font-size: 16px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 17px; font-weight: 800; }
.required { color: #8b1244; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 11px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); font-size: 18px; font-weight: 500; line-height: 1.65; }
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: #77798b; font-size: 16px; }
.field [readonly] { background: #fff9ed; color: #4d506b; }
.field [aria-invalid="true"] { border-color: #c12a64; outline: 2px solid #c12a64; outline-offset: 2px; }
.field-hint { color: #62647d; font-size: 16px; line-height: 1.65; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.workspace-aside { display: flex; flex-direction: column; gap: 20px; padding-top: 5px; }
.thinking-card { padding: 19px 20px 22px; background: #fff4c9; }
.aside-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.aside-heading .chip { font-size: 19px; padding: 5px 14px; }
.idea-symbol { display: inline-grid; place-items: center; width: 36px; height: 41px; border: 2px solid var(--ink); border-radius: 50% 50% 40% 40%; background: var(--yellow); font-size: 27px; font-weight: 900; transform: rotate(9deg); }
.thinking-card p { font-size: 17px; font-weight: 700; line-height: 1.85; }
.thinking-card > .aside-heading { min-height: 44px; margin-bottom: 0; cursor: pointer; list-style: none; }
.thinking-card > .aside-heading::-webkit-details-marker { display: none; }
.thinking-card > .aside-heading::after { content: '⌄'; font-size: 24px; font-weight: 900; line-height: 1; }
.thinking-card[open] > .aside-heading { margin-bottom: 13px; }
.thinking-card[open] > .aside-heading::after { content: '⌃'; }
.theme-card { padding: 17px 19px 20px; background: var(--mint-soft); }
.theme-card h3 { margin-bottom: 13px; background: #9cecd8; font-size: 18px; }
.theme-card p { padding: 12px 14px; border: 2px solid var(--ink); border-radius: 11px; background: var(--white); font-size: 16px; font-weight: 700; }
.rule-note { padding: 0 6px; font-size: 12px; color: #62647d; }
.rule-note strong { color: #464965; }
.rule-note p { margin-top: 5px; }
.workspace-status:empty { display: none; }
.workspace-status { margin: 0 0 14px; }
.workspace-status > .button { margin-top: 10px; }
.save-status { font-size: 12px; color: #62647d; }
.save-status.saved { color: #205f4d; }
.workspace-actions { display: flex; justify-content: space-between; gap: 14px; width: calc((100% - 22px) / 1.44); margin-top: 22px; }
.workspace-actions .button { font-size: 16px; }
.workspace-lock { text-align: center; margin: 24px 0 0; font-size: 14px; color: #565a7d; }
.mobile-step-heading { display: none; }
.preset-question { padding: 12px 14px; border-left: 4px solid #ce2577; background: #fff4f9; font-size: 16px; font-weight: 700; }
.self-check { display: flex; flex-direction: column; gap: 8px; padding: 17px; border: 2px solid var(--ink); border-radius: 12px; background: #fff9ef; }
.self-check h3 { margin-bottom: 5px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; cursor: pointer; font-size: 14px; line-height: 1.8; padding: 6px 0; }
.check-label input { flex-shrink: 0; width: 20px; height: 20px; margin: 3px 0; accent-color: var(--blue); }
.prompt-preview { display: flex; flex-direction: column; gap: 13px; border-top: 1px solid #d6aec5; padding-top: 20px; }
.generation-balance { border: 2px solid var(--ink); background: var(--yellow-soft); border-radius: 12px; padding: 14px; display: flex; justify-content: space-around; gap: 12px; flex-wrap: wrap; }
.generation-balance strong { font-size: 22px; }
.generation-submit { font-size: 17px; min-height: 52px; }
.generated-artwork { border: 2px solid var(--ink); border-radius: 12px; background: var(--white); overflow: hidden; }
.generated-artwork img { width: 100%; max-height: 540px; object-fit: contain; }
.generated-artwork figcaption { padding: 11px 14px; font-size: 13px; }
.job-progress { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.progress-dot { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); animation: breathe 1s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity: .3; } }
.listing-content { padding-bottom: 60px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(24px, 2.1vw, 32px); margin-top: 14px; }
.view-content { display: flex; flex-direction: column; gap: 24px; }
.empty-state { border: 2px dashed #8e91ab; border-radius: 16px; padding: 48px 24px; background: #fffcf5; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty-state p { max-width: 440px; color: var(--muted); }
.empty-mark { border: 2px solid var(--ink); background: var(--pink-soft); border-radius: 12px; width: 54px; height: 54px; display: grid; place-items: center; font-size: 28px; font-weight: 900; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-7deg); margin-bottom: 5px; }
.draft-list { display: flex; flex-direction: column; gap: 20px; }
.draft-card { display: flex; align-items: center; gap: 20px; padding: 20px 24px; }
.draft-number { width: 48px; height: 52px; flex-shrink: 0; display: grid; place-items: center; background: var(--blue-soft); border: 2px solid var(--ink); border-radius: 10px; font-size: 27px; font-weight: 800; }
.draft-info { flex: 1; }
.draft-info h2 { font-size: 19px; }
.draft-info p { font-size: 13px; margin: 5px 0; }
.artwork-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.artwork-card { overflow: hidden; }
.artwork-preview { display: block; width: 100%; padding: 0; border: 0; background: #edf1fb; }
.artwork-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.artwork-card-body { padding: 16px; }
.artwork-card-body h2 { font-size: 18px; }
.artwork-card-body p { font-size: 12px; margin: 8px 0 14px; }
.artwork-card-body .button-row { gap: 8px; }
.artwork-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.artwork-image-wrap { position: sticky; top: 0; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #edf1fb; }
.artwork-image { width: 100%; max-height: 560px; object-fit: contain; }
.artwork-editor { display: flex; flex-direction: column; gap: 20px; }
.step-card .artwork-detail { grid-template-columns: 1fr; }
.credit-summary { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) 2fr; gap: 20px; }
.stat-card { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 22px; border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); font-weight: 800; }
.stat-card strong { font-size: 32px; line-height: 1.3; }
.credit-explainer { padding: 18px 20px; }
.credit-explainer p { margin-top: 7px; font-size: 13px; }
.ledger-list { overflow: hidden; }
.ledger-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid #d7d8df; }
.ledger-entry:last-child { border-bottom: 0; }
.ledger-entry p { font-size: 13px; margin: 4px 0; }
.ledger-entry small { color: var(--muted); }
.ledger-value { text-align: right; flex-shrink: 0; }
.ledger-value strong { display: block; font-size: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.admin-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.section-card { padding: 24px; min-width: 0; }
.section-card > h2, .section-heading { margin-bottom: 20px; }
.settings-form { display: flex; flex-direction: column; gap: 20px; }
.pending-list { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.pending-job { padding-top: 18px; border-top: 1px solid #ceced8; }
.pending-job p { font-size: 13px; margin: 8px 0; }
.pending-job .button-row { margin-top: 15px; }
.pending-job small { color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; text-align: left; }
th, td { padding: 13px 12px; border-bottom: 1px solid #d8d9e1; vertical-align: top; }
th { font-weight: 800; background: #edf1ff; white-space: nowrap; }
td small { display: block; color: var(--muted); margin-top: 4px; }
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 24px; border: 2px solid var(--ink); border-radius: 16px; color: var(--ink); background: var(--cream); box-shadow: 7px 7px 0 var(--ink); overflow: auto; }
.modal.wide { width: min(1000px, calc(100vw - 32px)); }
.modal::backdrop { background: rgb(27 29 77 / .42); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.modal-heading h2 { font-size: 21px; }
.modal form { display: flex; flex-direction: column; gap: 18px; }
.modal .button-row { margin-top: 18px; }
.drawer-steps { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; gap: 12px; }
.drawer-steps li { position: relative; }
.drawer-steps .step-button { justify-content: flex-start; gap: 16px; padding: 12px 18px; font-size: 16px; }
.auth-page { min-height: calc(100dvh - var(--test-banner-height, 0px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 440px); align-items: start; gap: 60px; padding: 48px max(40px, calc((100vw - 1180px) / 2)); background-color: var(--cream); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.auth-story { min-height: calc(100dvh - 96px - var(--test-banner-height, 0px)); display: flex; flex-direction: column; }
.auth-story .brand { margin-bottom: 54px; font-size: 27px; }
.auth-story-content { margin: auto 0; padding: 10px 0 40px; }
.auth-story-content h1 { font-size: clamp(34px, 3.9vw, 54px); margin: 24px 0; }
.auth-story-content > p { font-size: 18px; max-width: 440px; font-weight: 700; }
.auth-step-chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.auth-step-chips .chip { transform: rotate(-3deg); }
.auth-step-chips .chip:nth-child(2) { transform: rotate(3deg); }
.auth-card { padding: 28px; margin-top: 44px; background: var(--pink-soft); }
.auth-card > h2 { margin: 22px 0 10px; font-size: 23px; }
.auth-card > p { font-size: 13px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-tabs .button { font-size: 14px; padding: 8px 12px; }
.tab-active { background: var(--yellow); }
.form-error:empty { display: none; }
@media (min-width: 1450px) {
  .sidebar { padding-left: 20px; padding-right: 20px; }
  .app-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .main-content { padding: 36px 40px; }
  .workspace-columns { grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; }
  .workspace-actions { width: calc(100% - 336px); }
}
@media (max-width: 1170px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar .brand { font-size: 19px; gap: 8px; }
  .sidebar .brand-mark { width: 38px; height: 41px; font-size: 25px; }
  .nav-button { font-size: 16px; padding: 10px; }
  .nav-content { gap: 11px; }
  .main-content { padding: 26px 24px; }
  .workspace-columns { grid-template-columns: minmax(0, 1fr) 225px; gap: 18px; }
  .workspace-actions { width: calc(100% - 243px); }
  .step-card-body { padding: 18px; }
  .step-card-heading { padding: 16px 18px; }
  .thinking-card, .theme-card { padding: 16px; }
  .thinking-card p { font-size: 15px; }
  .step-button { font-size: 12px; gap: 3px; }
  .step-number { display: none; }
  .artwork-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .credit-summary { grid-template-columns: 1fr 1fr; }
  .credit-explainer { grid-column: 1 / -1; }
}
@media (max-width: 940px) {
  .app-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .sidebar .brand { font-size: 17px; }
  .sidebar .brand-mark { width: 32px; height: 36px; font-size: 23px; border-radius: 9px; }
  .nav-button { font-size: 14px; }
  .nav-mark { width: 30px; height: 32px; }
  .workspace-columns { grid-template-columns: 1fr; }
  .workspace-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .rule-note { grid-column: 1 / -1; }
  .workspace-actions { width: 100%; }
  .step-name { font-size: 11px; }
  .auth-page { grid-template-columns: 1fr 380px; gap: 32px; padding: 32px; }
  .auth-story-content h1 { font-size: 36px; }
  .auth-story-content > p { font-size: 16px; }
  .auth-story .eyebrow { font-size: 12px; }
  .auth-card { padding: 23px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 72px; padding: 12px 16px; gap: 12px; }
  .breadcrumb { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .mobile-brand .brand-mark { width: 36px; height: 40px; font-size: 26px; border-radius: 10px; }
  .mobile-brand-title { font-size: 21px; font-weight: 900; white-space: nowrap; }
  .menu-button { border: 0; background: transparent; padding: 4px; min-width: 40px; min-height: 44px; font-size: 29px; line-height: 1; }
  .header-save { padding: 7px 12px; font-size: 14px; min-height: 44px; white-space: nowrap; border-radius: 11px; }
  .main-content { padding: 16px 16px 24px; }
  .workspace { padding-bottom: 86px; }
  .mobile-step-heading { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 6px; }
  .mobile-step-heading strong { display: flex; flex-direction: column; font-size: 22px; font-weight: 900; }
  .mobile-credit-summary { color: #565a7d; font-size: 13px; font-weight: 700; line-height: 1.4; }
  .mobile-step-heading .text-button { font-size: 16px; }
  .workspace-title { margin-top: 0; margin-bottom: 12px; }
  .workspace-title h1 { display: none; }
  .workspace-title .eyebrow { font-size: 16px; padding: 8px 13px; }
  .step-track { margin-bottom: 4px; gap: 3px; }
  .step-track .step-name { display: none; }
  .step-track .step-number { display: block; font-size: 16px; }
  .step-track .step-button { border-radius: 9px; min-height: 44px; padding: 6px 0; }
  .workspace { display: flex; flex-direction: column; }
  .workspace > .step-track { order: -1; }
  .workspace > .mobile-step-heading { order: -2; }
  .workspace-columns { gap: 22px; }
  .step-card-heading { padding: 16px 18px; gap: 8px; }
  .step-card-heading h2 { font-size: 22px; }
  .step-index { display: none; }
  .step-card-body { padding: 18px; gap: 21px; }
  .step-intro, .field label { font-size: 16px; }
  .field input, .field textarea, .field select { font-size: 16px; padding: 11px 12px; }
  .field textarea { min-height: 112px; }
  .workspace-aside { display: flex; gap: 20px; }
  .thinking-card { padding: 16px 18px; }
  .thinking-card[open] .aside-heading { margin-bottom: 8px; }
  .thinking-card p { font-size: 16px; }
  .idea-symbol { width: 29px; height: 33px; font-size: 23px; }
  .theme-card { padding: 16px 18px; }
  .rule-note { padding: 0 4px; }
  .workspace-actions { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; width: 100%; margin: 0; padding: 14px 16px max(14px, env(safe-area-inset-bottom)); border-top: 2px solid var(--ink); background: var(--cream); gap: 12px; }
  .workspace-actions .button { min-height: 49px; padding: 10px 14px; font-size: 16px; }
  .workspace-actions .button:first-child { flex: 0 0 30%; }
  .workspace-actions .button:last-child { flex: 1; }
  .workspace-lock { margin-top: 24px; font-size: 13px; }
  .keyboard-open .workspace-actions { position: static; margin-top: 22px; border: 0; padding: 0; }
  .keyboard-open .workspace { padding-bottom: 16px; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 17px; margin-bottom: 23px; }
  .page-heading h1 { font-size: 25px; }
  .listing-content { padding-bottom: 35px; }
  .draft-card { padding: 17px; gap: 14px; flex-wrap: wrap; }
  .draft-info { min-width: calc(100% - 70px); }
  .draft-card > .button { width: 100%; }
  .draft-number { width: 43px; height: 47px; }
  .artwork-grid { gap: 20px; }
  .artwork-card-body { padding: 13px; }
  .artwork-card-body .button-row { flex-direction: column; align-items: stretch; }
  .artwork-detail { grid-template-columns: 1fr; }
  .artwork-image-wrap { position: static; }
  .credit-summary { gap: 16px; }
  .stat-card { padding: 16px; }
  .stat-card strong { font-size: 29px; }
  .admin-stats { gap: 12px; }
  .admin-stats .stat-card { padding: 14px 10px; font-size: 12px; }
  .admin-stats .stat-card strong { font-size: 22px; }
  .section-card { padding: 18px; }
  .ledger-entry { padding: 16px; gap: 12px; }
  .modal { padding: 20px; max-height: calc(100dvh - 32px); }
  .mobile-nav { display: flex; flex-direction: column; gap: 12px; }
  .mobile-nav .nav-button { font-size: 18px; }
  .mobile-nav > p { margin-top: 12px; }
  .auth-page { display: flex; flex-direction: column; gap: 0; padding: 24px 18px 36px; }
  .auth-story { min-height: auto; width: 100%; }
  .auth-story .brand { font-size: 24px; margin-bottom: 27px; }
  .auth-story-content { padding: 0; }
  .auth-story-content h1 { font-size: 36px; margin: 18px 0 14px; }
  .auth-story-content > p { font-size: 15px; }
  .auth-story > .muted { display: none; }
  .auth-step-chips { margin-top: 18px; gap: 10px; }
  .auth-step-chips .chip { padding: 4px 10px; font-size: 13px; }
  .auth-card { width: 100%; margin-top: 28px; padding: 22px; }
  .auth-tabs .button { min-height: 44px; }
}
@media (max-width: 390px) {
  .topbar { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .mobile-brand { gap: 7px; }
  .mobile-brand-title { font-size: 18px; }
  .mobile-brand .brand-mark { width: 31px; height: 36px; font-size: 23px; }
  .menu-button { font-size: 25px; min-width: 44px; padding: 2px; }
  .header-save { font-size: 12px; padding: 7px 9px; }
  .main-content { padding-left: 12px; padding-right: 12px; }
  .mobile-step-heading strong { font-size: 20px; }
  .step-card-heading h2 { font-size: 21px; }
  .step-card-heading, .step-card-body { padding-left: 16px; padding-right: 16px; }
  .field-pair { gap: 12px; }
  .artwork-grid { grid-template-columns: 1fr; }
  .workspace-actions { padding-left: 12px; padding-right: 12px; gap: 10px; }
  .workspace-actions .button { font-size: 14px; padding: 10px 8px; }
  .self-check { padding: 13px; }
  .modal { padding: 18px; }
  .modal-heading h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
