/* LearNesT — a warm, editorial family workspace. See DESIGN.md. */
:root {
  --bg: #f8f5ef;
  --surface: #fffdf9;
  --ink: #41372f;
  --muted: #796c60;
  --line: #e8dfd3;
  --accent: #99543c;
  --accent-hover: #80432f;
  --soft: #f4e5d9;
  --linen: #f0eade;
  --sage: #e9eee1;
  --sage-ink: #586747;
  --shadow: 0 4px 20px #66503b06;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-family: 'Avenir Next', 'Segoe UI', -apple-system, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 11px 17px; border-radius: 100px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .875rem; line-height: 1.4; font-weight: 500;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
button:hover, .button:hover { background: var(--linen); border-color: #cfc0ae; }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: var(--accent); color: #fffaf5; border-color: var(--accent); }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fffaf5; }
.subtle { background: transparent; }
.text-button { border: 0; background: transparent; padding: 7px 0; color: var(--accent); }
.icon-button { background: transparent; border: 0; padding: 5px 9px; font-size: 21px; min-width: 32px; }
input, textarea, select {
  border: 1px solid var(--line); padding: 12px 14px; border-radius: 11px;
  background: var(--surface); color: var(--ink); width: 100%; min-width: 0;
}
input::placeholder, textarea::placeholder { color: #938578; opacity: 1; }
textarea { resize: vertical; line-height: 1.8; }
:focus-visible { outline: 2px solid #a46143; outline-offset: 4px; }
input:focus, textarea:focus, select:focus { outline: 2px solid #b58161; outline-offset: 2px; }
label { display: block; font-size: .875rem; font-weight: 500; margin: 18px 0 8px; }
label input, label select, label textarea { margin-top: 8px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex-shrink: 0; }
input[type=file] { font-size: .8rem; padding: 8px 0; background: transparent; border: 0; }
input[type=file]::file-selector-button {
  border: 1px solid #d6c7b7; border-radius: 6px; padding: 7px 10px; margin-right: 10px;
  font: inherit; background: #fffaf3; color: var(--ink); cursor: pointer;
}
h1 { font: 400 clamp(30px,3.2vw,45px)/1.15 var(--serif); letter-spacing: -1.2px; margin: 10px 0 13px; text-wrap: balance; }
h1 em { font-weight: 400; color: var(--accent); }
h2 { font: 400 1.375rem/1.3 var(--serif); letter-spacing: -.35px; margin: 0; }
h3 { font-size: .875rem; font-weight: 600; margin: 0; }
p { line-height: 1.7; margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.row, .inline, .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row { justify-content: space-between; }
.actions { gap: 9px; }
.spaced { margin-top: 32px !important; }
.ui-icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topbar {
  min-height: 86px; display: flex; align-items: center; gap: 26px; padding: 0 34px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 12px; font: 400 30px/1 var(--serif); letter-spacing: -.9px; white-space: nowrap; }
.brandmark { display: inline-flex; align-items: center; justify-content: center; width: 41px; height: 41px; border-radius: 13px; background: #f4e3d2; color: var(--accent); }
.brandmark img { width: 100%; height: 100%; }
.workspace-label { font: 400 12px/1.4 'Avenir Next','Segoe UI',sans-serif; letter-spacing: .1px; color: var(--muted); margin-left: 13px; border-left: 1px solid var(--line); padding-left: 23px; }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 100px; padding: 0 15px; background: var(--bg); width: 290px; color: var(--muted); }
.search input { border: 0; background: transparent; padding: 11px 0; font-size: .8125rem; }
.search > span { display: flex; }
.search kbd { color: #8b7c6c; font: 12px system-ui; }
.account { position: relative; font-size: .8125rem; }
.account summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.avatar { border: 1px solid #e2cfb9; border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; background: #f3e6d3; color: #795a40; font-family: var(--serif); font-size: 17px; }
.account-menu { position: absolute; right: 0; top: 47px; z-index: 3; width: 185px; background: var(--surface); padding: 17px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 35px #4c392318; }
.account-menu > a { display: block; padding: 8px 0; }
.account-menu > .text-button { display: block; padding: 8px 0; width: 100%; text-align: left; }
.app-shell { display: grid; grid-template-columns: 234px minmax(0,1fr); min-height: calc(100vh - 86px); }
.sidebar { background: #f2ece2; border-right: 1px solid var(--line); padding: 29px 19px; display: flex; flex-direction: column; gap: 4px; }
.all-link, .subject-link { display: flex; gap: 12px; align-items: center; padding: 11px 13px; border-radius: 10px; font-size: .875rem; color: #766655; }
.all-link > span { display: flex; width: 21px; }
.all-link:hover, .subject-link:hover { background: #eae2d5; }
.active { background: #eaddcc; color: #79513a; }
.nav-caption { display: flex; align-items: center; justify-content: space-between; letter-spacing: 1.65px; color: #867462; font-size: .6875rem; font-weight: 600; margin: 26px 13px 10px; }
.subject-symbol { width: 28px; min-width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #896249; background: #e9dfcf; }
.subject-link[data-subject="English"] .subject-symbol { background: #e4e6d9; color: #657152; }
.subject-link[data-subject="Science"] .subject-symbol { background: #e2e4e3; color: #61716d; }
.topic-links { margin: 5px 0 14px 26px; border-left: 1px solid #d8cbbb; padding-left: 13px; }
.topic-links a { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.5; padding: 9px 6px; }
.topic-links a.current { color: var(--accent); font-weight: 600; }
.topic-links button { font-size: .8125rem; padding: 8px 6px; }
.sidebar-note { margin-top: auto; padding: 60px 14px 18px; color: #897765; font: italic 17px/1.5 var(--serif); }
.sidebar-note p { line-height: 1.55; }
.tiny-leaf { display: block; width: 28px; border-top: 1px solid #c9b08e; padding-top: 14px; color: #a07444; font-style: normal; font-size: 24px; }
main { padding: 34px 38px 65px; min-width: 0; max-width: 1480px; width: 100%; margin: 0 auto; align-self: start; }
.breadcrumb { font-size: .75rem; color: #8a7968; margin-bottom: 24px; line-height: 1.7; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 31px; }
.eyebrow { font-size: .6875rem; letter-spacing: 1.7px; color: #957552; font-weight: 500; }
.page-heading p { font-size: .875rem; }
.library-heading { padding: 12px 0 26px; border-bottom: 1px solid var(--line); }
.library-heading h1 { font-size: clamp(32px,3.7vw,50px); }
.resource-heading { margin-bottom: 24px; }
.resource-heading h1 { font-size: clamp(30px,3vw,41px); max-width: 840px; }
.badge { display: inline-block; font-size: .6875rem; background: var(--sage); color: var(--sage-ink); padding: 6px 10px; border-radius: 100px; white-space: nowrap; font-weight: 500; letter-spacing: .1px; }
.badge.neutral { background: #f0eae0; color: #796958; }
.count { display: inline-block; vertical-align: middle; background: #ece5d9; border-radius: 100px; padding: 3px 7px; min-width: 24px; text-align: center; font: 400 .75rem/1.4 'Avenir Next',sans-serif; color: var(--muted); margin-left: 6px; }
.section-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 23px 0 20px; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(285px,1fr)); gap: 24px; }
.resource-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 29px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.resource-card::before { content: ''; position: absolute; top: 0; left: 28px; right: 28px; height: 3px; background: #c99a79; border-radius: 0 0 8px 8px; }
.resource-card[data-subject="English"]::before { background: #9da984; }
.resource-card[data-subject="Science"]::before { background: #94a8a4; }
.resource-card:hover { border-color: #cbb7a1; box-shadow: 0 10px 30px #66503b0e; }
.card-topic { margin-top: 30px; font-size: .75rem; letter-spacing: .1px; }
.resource-card h2 { font-size: 1.7rem; line-height: 1.2; margin: 10px 0; }
.resource-description { font-size: .875rem; min-height: 46px; margin: 13px 0 29px; }
.resource-footer { border-top: 1px solid var(--line); padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .75rem; color: var(--muted); }
.preferred-label { color: #6c7254; }
.topic-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.topic-chips a, .topic-chips button { background: var(--surface); border: 1px solid var(--line); padding: 9px 15px; border-radius: 100px; font-size: .8125rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.tabs { display: flex; width: fit-content; max-width: 100%; gap: 5px; background: #eee7dc; padding: 5px; border: 1px solid #e9dfd1; border-radius: 100px; margin: 25px 0 29px; }
.tabs button { background: transparent; border: 1px solid transparent; border-radius: 100px; padding: 10px 19px; color: var(--muted); font-size: .8125rem; }
.tabs button.active { color: var(--accent); background: var(--surface); border-color: #e5d8c6; box-shadow: 0 2px 5px #6c55310a; }
.tabs button:hover { color: var(--ink); }
.tabs .count { background: #e5ddcf; font-size: .6875rem; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.14fr) minmax(315px,.86fr); gap: 25px; align-items: start; }
.prompt-panel > p { margin-top: 9px; }
.star { color: #8b9168; }
.prompt-editor { margin: 23px 0 15px; min-height: 335px; background: #fcfaf5; font-size: .9375rem; line-height: 1.85; padding: 20px; border-color: #e9dfd0; border-radius: 12px; }
.note-label { display: flex; gap: 7px; font-size: .8125rem; margin-top: 0; }
.note-label + input { font-size: .875rem; }
.reference-heading { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 27px 0 11px; }
.reference-item { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin: 9px 0; font-size: .8125rem; min-width: 0; background: #fcfaf5; }
.reference-item img { width: 30px; height: 40px; object-fit: contain; background: #f0eade; border: 1px solid var(--line); }
.reference-item > span { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.reference-item small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; margin-top: 3px; }
.file-drop { border: 1px dashed #d7c8b4; border-radius: 11px; padding: 14px 16px; font-size: .8125rem; display: flex; flex-direction: column; gap: 5px; font-weight: 400; background: #fcfaf5; }
.file-drop > span:first-child { color: var(--accent); font-weight: 500; }
.save-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.generation-box { border-top: 1px solid var(--line); margin-top: 27px; padding-top: 24px; }
.generate-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; }
.generate-form select { width: 136px; font-size: .8125rem; border-radius: 100px; }
.generate-form button { flex: 1; }
.generation-job { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.worksheets-panel { background: #fcfaf5; }
.worksheet-stage { margin: 23px 0 20px; background: #ece3d5; border: 1px solid #e5dac9; border-radius: 12px; padding: 26px; }
.worksheet-image { display: block; width: 100%; height: auto; max-height: 610px; object-fit: contain; box-shadow: 0 3px 6px #68503512,0 12px 26px #68503514; background: #fff; }
.worksheet-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.worksheet-choices a { border: 1px solid #dbd0c0; border-radius: 50%; min-width: 35px; height: 35px; display: grid; place-items: center; font-size: .75rem; }
.worksheet-choices .selected { background: var(--soft); border-color: #c99f81; color: var(--accent); }
.worksheet-title { margin-top: 20px; font-weight: 500; line-height: 1.6; }
.download-row { display: flex; gap: 23px; font-size: .8125rem; color: var(--accent); padding: 15px 0; }
.download-row a:hover { text-decoration: underline; }
.upload-button { width: 100%; margin-top: 17px; background: #f6f0e6; border-color: #e5d7c5; }
.empty-worksheet { text-align: center; padding: 58px 12px; }
.empty-worksheet h3 { font: 400 24px/1.3 var(--serif); margin: 22px 0 11px; }
.empty-symbol { display: inline-flex; align-items: center; justify-content: center; font-size: 32px; color: #99754e; background: #f0e4d1; border-radius: 50%; width: 65px; height: 65px; }
.empty-state { padding: 60px 25px; text-align: center; grid-column: 1/-1; }
.empty-state h2 { margin: 20px 0 12px; font-size: 27px; }
.empty-state .actions { justify-content: center; margin-top: 27px; }
.version-row { display: flex; align-items: start; gap: 19px; border-top: 1px solid var(--line); padding: 27px 0; }
.version-marker { height: 38px; min-width: 38px; border: 1px solid #dccbb4; border-radius: 50%; display: grid; place-items: center; font: 400 20px var(--serif); color: #946b46; background: #f6ecdc; }
.version-info { flex: 1; min-width: 0; }
.version-info > p { font-size: .875rem; }
.version-info > p.small { font-size: .8125rem; }
.version-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.version-actions form > button { width: 100%; }
.prompt-snippet { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.prompt-snippet summary { cursor: pointer; color: var(--accent); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.8; color: var(--ink); }
.print-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 25px; align-items: start; }
.print-stage { background: #ede4d6; border: 1px solid #dfd2be; border-radius: 16px; padding: 30px; }
.a4-sheet { background: white; aspect-ratio: 210/297; padding: 4.76%; box-shadow: 0 8px 26px #624c2e1c; display: flex; align-items: center; justify-content: center; max-width: 640px; margin: auto; }
.a4-sheet img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.print-controls > .button, .print-controls > button { width: 100%; margin: 10px 0; }
.print-controls label { margin: 21px 0; }
.form-panel { max-width: 780px; margin-top: 31px; padding: 30px; }
.form-panel input, .form-panel textarea, .form-panel select { display: block; margin-top: 8px; }
.form-panel label { margin-top: 22px; }
.form-panel .actions { margin-top: 28px; }
.errorlist, .error-text { color: #a34732; font-size: .875rem; }
.message { border: 1px solid #d5ddc5; background: #edf0e5; color: #52603f; border-radius: 12px; padding: 15px 18px; margin-bottom: 23px; font-size: .875rem; }
.message.error { border-color: #e8c7b8; background: #fae9de; color: #904b30; }
.auth-main { max-width: 565px; padding: 70px 25px; }
.login-panel { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 44px; box-shadow: 0 12px 50px #65503b09; }
.brandmark.large { width: 60px; height: 60px; border-radius: 19px; }
.login-panel h1 { font-size: 35px; margin-top: 28px; }
.login-panel form { text-align: left; margin-top: 29px; }
.login-panel form button { width: 100%; margin-top: 18px; }
.login-panel label { font-size: .875rem; }
.connection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 33px; }
.connection-grid h2 { margin-bottom: 18px; }
.connection-grid p { font-size: .875rem; }
.token-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.token-reveal { border: 1px solid #d1d9bd; background: #f0f3e8; padding: 18px; border-radius: 12px; margin-top: 23px; }
.token-reveal textarea { min-height: 95px; overflow-wrap: anywhere; font-size: .8125rem; }
.activity-row { font-size: .8125rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.activity-row small { display: block; color: var(--muted); margin-top: 5px; }
dialog { width: min(480px,calc(100% - 32px)); padding: 28px; border: 1px solid #ddcbb7; border-radius: 21px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 90px #48332330; }
dialog::backdrop { background: #43342460; backdrop-filter: blur(3px); }
dialog form > .primary { margin-top: 20px; }
dialog h2 { font-size: 1.6rem; }
dialog label { margin-top: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (min-width:1500px) { .workspace-grid { grid-template-columns:minmax(0,1.1fr) minmax(390px,.9fr); } .prompt-editor { min-height:365px; } }
@media (max-width:1100px) {
  .workspace-label { display:none; } .app-shell { grid-template-columns:200px minmax(0,1fr); }
  main { padding:28px 25px; } .sidebar { padding:27px 13px; }
  .workspace-grid { grid-template-columns:minmax(0,1fr) minmax(260px,.85fr); gap:18px; }
  .panel { padding:21px; } .worksheet-stage { padding:18px; } .print-layout { grid-template-columns:minmax(0,1fr) 205px; }
  .resource-heading h1 { font-size:34px; }
}
@media (max-width:880px) {
  .workspace-grid { grid-template-columns:1fr; } .worksheets-panel { max-width:650px; width:100%; }
  .worksheet-image { max-height:650px; } .connection-grid { grid-template-columns:1fr; }
  .topbar { padding:0 22px; } .search { width:240px; } .account summary>span:last-child { display:none; }
  .print-layout { grid-template-columns:1fr; } .print-controls { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
  .print-controls h2,.print-controls p { width:100%; } .print-controls>label { flex:1; }
  .print-controls>.button,.print-controls>button { width:auto; }
  .version-row { flex-wrap:wrap; } .version-actions { flex-direction:row; margin-left:57px; }
  .tabs { border-radius:15px; gap:1px; width:100%; } .tabs button { padding:10px 12px; border-radius:10px; flex:1; }
}
@media (max-width:600px) {
  .topbar { min-height:76px; flex-wrap:wrap; gap:14px; padding:16px 18px; }
  .brand { font-size:29px; } .brandmark { width:35px; height:35px; }
  .search { order:3; width:100%; } .account { margin-left:auto; }
  .app-shell { display:block; } .sidebar { border-right:0; border-bottom:1px solid var(--line); padding:10px 12px; display:block; }
  .sidebar>.all-link,.sidebar>.nav-caption,.sidebar-note,.topic-links { display:none; }
  .sidebar nav { display:flex; gap:5px; flex-wrap:wrap; } .subject-link { padding:8px 10px; gap:8px; }
  main { padding:25px 17px; } .breadcrumb { font-size:.75rem; margin-bottom:19px; }
  .page-heading { gap:18px; } .page-heading h1 { font-size:34px; } .page-heading>.button { width:100%; }
  .resource-heading>.actions { margin-top:0; } .resource-heading h1 { font-size:33px; }
  .library-heading { padding:5px 0 24px; } .resource-grid { grid-template-columns:1fr; }
  .resource-card { padding:25px; } .tabs { gap:0; margin-top:19px; padding:4px; }
  .tabs button { padding:10px 8px; font-size:.75rem; } .tabs .count { display:none; }
  .panel { padding:20px; border-radius:16px; } .prompt-editor { min-height:330px; padding:16px; }
  input,textarea,select { font-size:16px; } .version-actions { margin-left:0; }
  .version-marker { display:none; } .version-info { flex-basis:100%; } .print-stage { padding:15px; }
  .save-row>button { width:100%; } .sidebar .all-link.active { display:none; }
  .connection-grid { gap:18px; } .login-panel { padding:30px 22px; } .auth-main { padding:38px 17px; }
  .generate-form button { min-width:180px; } .reference-item { gap:8px; } .reference-heading .small { font-size:.75rem; }
}
@media (pointer:coarse) { button,.button,.subject-link,.all-link { min-height:44px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; } }
/* Worksheet output stays clean and white, independent of the workspace theme. */
@media print {
  @page { size:A4 portrait; margin:10mm; }
  body { background:#fff; }
  .topbar,.sidebar,.breadcrumb,.page-heading,.tabs,.message,dialog,#workspace,#history,.print-controls { display:none !important; }
  .app-shell { display:block; min-height:0; } main { padding:0; max-width:none; }
  #print { display:block !important; } .print-layout { display:block; }
  .print-stage { background:none; border:0; padding:0; }
  .a4-sheet { box-shadow:none; margin:0; padding:0; width:190mm; height:277mm; max-width:none; aspect-ratio:auto; break-inside:avoid; }
  .a4-sheet img { max-width:190mm; max-height:277mm; object-fit:contain; }
  a:after { content:none !important; }
}
/* Both visual editions share the same application. */
.storybook-art { display:none; }
.design-switch { display:flex; align-items:center; gap:3px; padding:4px; background:#eee7dc; border:1px solid #e4d9c9; border-radius:100px; }
.design-switch a { display:flex; align-items:center; gap:5px; padding:7px 10px; border-radius:100px; font-size:11px; white-space:nowrap; color:#796c60; }
.design-switch a::before { content:''; width:7px; height:7px; border-radius:50%; background:#b57855; }
.design-switch a[aria-current] { background:#fffdf9; color:#574539; box-shadow:0 1px 3px #644d3210; }
@media(max-width:1350px) { .workspace-label { display:none; } }
@media(max-width:880px) { .topbar { flex-wrap:wrap; gap:16px; padding:17px 22px; } .search { order:3; flex:1; width:auto; } .design-switch { margin-left:auto; } .account { margin-left:0; } }
@media(max-width:600px) { .topbar { gap:12px; padding:16px 18px; } .brand { font-size:27px; } .design-switch { order:4; margin:0; } .search { flex-basis:100%; } .account { margin-left:auto; } .design-switch a { padding:8px 11px; font-size:12px; } }
@media print { .design-switch,.storybook-art { display:none!important; } }

/* Illustrated subject marks, shared across the two current visual choices. */
.subject-art { width:30px; height:30px; stroke-width:1.6; }
.subject-symbol { width:36px; min-width:36px; height:36px; background:transparent!important; border:0!important; }
.subject-badge { display:inline-flex; align-items:center; gap:7px; }
.subject-badge .subject-art { width:24px; height:24px; }

/* Worksheet check, OAuth consent and reference upload */
.check-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; background: var(--surface); }
.check-box h3 { margin: 0; font-size: 1rem; }
.check-box.check-passed { border-color: var(--sage-ink); background: var(--sage); }
.check-box.check-review { border-color: #c98a3d; background: #fdf3e4; }
.check-box form { margin-top: 10px; }
.check-issues { margin: 8px 0; padding-left: 20px; font-size: .9rem; }
.check-issues li { margin: 4px 0; }
.check-issues li.serious strong { color: #a34732; }
.answer-key { columns: 2; font-size: .9rem; margin: 8px 0; }
.consent-panel { max-width: 520px; }
.consent-list, .setup-steps { text-align: left; padding-left: 20px; line-height: 1.6; }
.consent-panel .actions { justify-content: center; }
.generate-form select + select { margin-left: 6px; }
.prepare-option { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }

/* In progress (queued / running / checking): same status pill, Claude-orange background, gently pulsing.
   The .neutral selector outranks the Paper & play theme's grey pill rule, which loads later. */
.badge.badge-active, [data-design] .badge.badge-active, [data-design] .badge.neutral.badge-active { background: #d97757; color: #fff; border-color: #d97757; animation: badge-pulse 1.6s ease-in-out infinite; }
@keyframes badge-pulse { 50% { background: #eaa58c; border-color: #eaa58c; } }
@media (prefers-reduced-motion: reduce) { .badge.badge-active, [data-design] .badge.badge-active, [data-design] .badge.neutral.badge-active { animation: none; } }
