/* Final platform components share the editorial tokens defined in mobile.css. */
#toast{width:max-content;max-width:calc(100vw - 32px);line-height:1.65;text-align:center;border-radius:8px;background:#302934}
.shell .st-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:0;margin:0 0 24px;position:relative}
.shell .st-heading>div{min-width:0}
.shell .st-heading h1{display:block;font-size:31px;font-weight:700;line-height:1.4;letter-spacing:-.04em;color:var(--ink);margin:0}
.shell .st-heading .st-heading-mark{display:none}
.shell .st-heading p{font-size:14px;line-height:1.7;color:var(--muted);margin:8px 0 0}
.shell .st-heading-art{display:block;width:65px;height:74px;flex:0 0 65px;object-fit:contain;pointer-events:none;filter:none;color:var(--accent);fill:none;stroke:currentColor;stroke-width:1.2}
.shell img.st-heading-art{display:none}
.shell .studio-v2{--st-ink:var(--ink);--st-muted:var(--muted);--st-line:var(--line);--st-accent:var(--accent);--st-soft:var(--soft)}
.shell .studio-v2 .st-compose{background:var(--paper);border:1px solid #dcd5cc;border-radius:12px;box-shadow:none}
.shell .studio-v2 .st-topic-label{font-size:15px;color:var(--ink)}
.shell .studio-v2 .st-step{background:#eee8f6;color:#6e4899;border-radius:4px;font-family:inherit;font-size:11px}
.shell .studio-v2 #brief{background:#f9f7f2;border-color:#d7cfc5;border-radius:8px;color:var(--ink);font-size:16px}
.shell .studio-v2 #brief::placeholder{color:#8a817f}
.shell .studio-v2 #brief:focus{background:#fffefb;border-color:#926eae}
.shell .studio-v2 .st-inspiration{gap:8px}
.shell .studio-v2 .st-inspiration button{background:#f4f0e9;color:#69606b;border:1px solid #dfd8ce;border-radius:6px;font-size:12px;min-height:44px}
.shell .studio-v2 .st-inspiration button span{color:#78558e;font-size:16px}
.shell .studio-v2 .st-inspiration button>span,.shell .studio-v2 .st-setting-icon{display:none}
.shell .studio-v2 .st-numbers label>div,.shell .studio-v2 .st-numbers label:nth-child(2)>div{background:#fffefb;border:1px solid #dcd3c8;border-radius:7px}
.shell .studio-v2 .st-numbers input,.shell .studio-v2 .st-numbers label:nth-child(2) input{font-family:inherit;font-size:29px;font-weight:600;color:#3f3547;letter-spacing:-.03em}
.shell .studio-v2 .st-numbers label{font-size:13px;color:var(--ink)}
.shell .studio-v2 .st-numbers small,.shell .studio-v2 .st-submit p,.shell .studio-v2 .st-submit strong small{font-size:12px;color:var(--muted)}
.shell .studio-v2 .st-live-summary p{font-size:12px;color:#706573}
.shell .studio-v2 .st-status-dot{background:var(--accent)}
.shell .studio-v2 .st-submit{border-color:var(--line)}
.shell .studio-v2 .st-submit strong{color:#55405f;font-size:14px}
.shell .studio-v2 .st-submit button{border-radius:8px;min-height:48px;background:var(--accent);border-color:var(--accent);box-shadow:none;color:#fff;font-weight:600;letter-spacing:.01em}
.shell .studio-v2 .st-details{border-radius:9px;border-color:var(--line);background:var(--paper)}
.shell .studio-v2 .st-details summary{min-height:57px;font-size:14px;color:var(--ink)}
.shell .studio-v2 .st-details summary small,.shell .studio-v2 .st-settings-heading small{font-size:12px;color:#776b7b}
.shell .studio-v2 .st-setting-icon,.shell .studio-v2 .st-details:nth-of-type(2) .st-setting-icon,.shell .studio-v2 .st-details:nth-of-type(3) .st-setting-icon{background:#eeebe6;color:#786681;border-radius:5px}
.shell .studio-v2 .st-auto{background:#fffefb;border-color:#dcd5cc;border-radius:7px}
.shell .studio-v2 .st-auto:has(input:checked){background:#f3eef9;border-color:#beacd2}
.shell .studio-v2 .st-auto em{background:#e8dff2;color:#64468c;border-radius:4px;font-size:11px}
.shell .studio-v2 .st-auto small,.shell .studio-v2 .st-help{font-size:12px;color:var(--muted)}
.shell .studio-v2 .st-mode-card{background:var(--paper);border-color:var(--line);border-radius:7px}
.shell .studio-v2 .st-mode-card>small,.shell .studio-v2 .st-modes label:nth-child(2) .st-mode-card>small,.shell .studio-v2 .st-modes label:nth-child(3) .st-mode-card>small{background:#eeebe5;color:#786a7c;border-radius:4px;font-family:inherit}
.shell .studio-v2 .st-modes input:checked+span,.shell .studio-v2 .st-chips input:checked+span{background:#eee7f6;border-color:#bda6d5;color:#5f3f88}
.shell .studio-v2 .st-chips label>span{border-radius:6px;min-height:44px;color:#726577;background:var(--paper);border-color:#ddd4ce}
.shell .studio-v2 .st-aside{background:none;border:0;box-shadow:none}
.shell .studio-v2 .st-aside-card,.shell .studio-v2 .st-side-card{background:#efebe3;border-color:#dfd5c9;border-radius:9px;box-shadow:none}
.shell .studio-v2 .st-preview{background:#f2ece3;border-color:#ded5c9;border-radius:10px;box-shadow:none}
.shell .studio-v2 .st-preview:before,.shell .studio-v2 .st-preview:after{content:none;display:none}
.shell .studio-v2 .st-preview-orbit,.shell .studio-v2 .st-preview-top>span:last-child{display:none}
.shell .studio-v2 .st-preview{color:#49394f;padding:25px 22px}
.shell .studio-v2 .st-preview-top{font-size:12px;opacity:1;color:#7c6984;border-bottom:1px solid #cfc0d1;padding-bottom:14px}
.shell .studio-v2 .st-preview h2{display:block;font-size:30px;line-height:1.4;font-weight:650;letter-spacing:-.035em;margin:35px 0 29px;color:#49394f;overflow:visible;-webkit-line-clamp:unset}
.shell .studio-v2 .st-preview-meta{font-size:12px;border-color:#d7c9da;color:#74617d}
.shell .studio-v2 .st-preview-button{border-color:#d2c3dd;background:#fffdfa;border-radius:6px;color:#654881}
.shell .studio-v2 .st-preview>small{font-size:11px;color:#74617d;opacity:1}
.shell .studio-v2 .st-upload{background:#f8f5ef;border-color:#c9bacb;border-radius:7px}
.shell .studio-v2 .st-upload small{font-size:12px}
.shell .studio-v2 .st-upload input::file-selector-button{border-color:#cbb9dc;background:#eee7f5;color:#69498b;border-radius:6px}
.shell .st-time-note{font-size:12px;line-height:1.8;color:var(--muted);margin:14px 0 0;text-align:center}
.shell .job-patience{font-size:13px;line-height:1.8;color:#665971;background:#f0ebf5;border:1px solid #e1d7e9;border-radius:8px;padding:13px 15px}
.shell .job-patience a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.shell .job-status{background:var(--paper);border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:8px;box-shadow:none}
.shell .job-status h3{color:var(--ink)}
.shell .job-status p{color:var(--muted)}

/* A single report/bookmark drawing replaces decorative 3D objects. */
.shell .me-report-entry{position:relative;display:flex;align-items:center;gap:20px;margin:22px 0 18px;padding:24px;border:1px solid #d7cadf;border-left:3px solid var(--accent);border-radius:9px;background:#f1ecf7;color:var(--ink);box-shadow:none;text-decoration:none;transition:background .16s,transform .12s}
.shell .me-report-art{display:block;width:54px;height:63px;flex:0 0 54px;object-fit:contain;filter:none;pointer-events:none;color:#765693;fill:none;stroke:currentColor;stroke-width:1.2}
.shell img.me-report-art{display:none}
.shell .me-report-mark{display:grid;place-items:center;width:50px;height:56px;flex:0 0 50px;color:#765693}
.shell .me-report-mark>.icon{width:44px;height:48px;stroke-width:1.2}
.shell .empty-mark,.shell .rp-empty-mark{display:grid;place-items:center;width:56px;height:62px;margin:0 auto 22px;color:#79598f}
.shell .empty-mark>.icon,.shell .rp-empty-mark>.icon{width:48px;height:54px;stroke-width:1.2}
.shell .me-report-entry>div{display:grid;gap:6px;min-width:0}
.shell .me-report-entry small{font-size:12px;color:#7a6b83}
.shell .me-report-entry strong{font-size:25px;font-weight:700;line-height:1.3;color:#40304f;letter-spacing:-.02em}
.shell .me-report-entry span{font-size:13px;line-height:1.65;color:#726079}
.shell .me-report-entry>b{margin-left:auto;display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;color:#694886;background:transparent;border:1px solid #d4c4e1;border-radius:50%;font-size:18px;font-weight:400}
.shell .me-report-entry:active{transform:scale(.988)}
.shell .balance{background:#362d42;border:1px solid #4c3f5c;border-radius:10px;box-shadow:none}
.shell .balance:before,.shell .balance:after{content:none;display:none}
.shell .balance strong{font-family:inherit;color:#fff8ed}
.shell .balance .help{color:#d2c4d9}
.shell .credit-pack{border-color:var(--line);background:var(--paper);border-radius:8px;box-shadow:none}
.shell .metric label,.shell .metric small{color:var(--muted)}
.shell .metric:before,.shell .metric:after{content:none;display:none}
.shell .metrics .metric strong{color:var(--ink);font-size:32px;font-weight:650}
.shell table{font-size:13px}
.shell th{font-size:12px;background:#eeebe5;color:#706774}
.shell td{font-size:13px;color:#65566e;border-color:var(--line)}
.shell td strong{color:#44384f}
.shell .field>span{color:#63536e}
.shell .bar-chart i{background:#a78abf;border-radius:3px 3px 0 0}
.shell .bar-chart span{font-size:11px;color:#7b6985}
.shell .result-bar{font-size:13px;color:#786484}
.shell .result-bar i{background:#eae1f0}
.shell .result-bar b{background:#a489bc}
.shell .question-edit{background:var(--paper);border-color:var(--line);border-radius:8px}
.shell .report-edit{border-color:var(--line)}
.shell .empty>.icon{background:transparent;padding:0;box-sizing:border-box;border-radius:0;box-shadow:none}
.shell .theme-choice{border-radius:7px}
.shell .theme-choice.active{border-color:var(--accent)}

/* Report collections retain independent entries with neutral, readable typography. */
.shell .reports-library{--rp-ink:var(--ink);--rp-muted:var(--muted);--rp-line:var(--line);--rp-accent:var(--accent);--rp-soft:var(--soft)}
.shell .rp-back{color:#756779}
.shell .rp-heading{min-height:0;margin-bottom:20px;padding:8px 0 22px}
.shell .rp-eyebrow{color:#7e6c85;letter-spacing:.03em;font-size:12px}
.shell .rp-heading h1{font-size:33px;line-height:1.35;color:var(--ink);font-weight:700;letter-spacing:-.035em}
.shell .rp-heading p{color:var(--muted);font-size:14px}
.shell .rp-heading-art{display:block;width:66px;height:80px;margin:0 8px 0 0;filter:none;object-fit:contain;color:#79558d;fill:none;stroke:currentColor;stroke-width:1.1}
.shell img.rp-heading-art{display:none}
.shell .rp-local{background:var(--paper);border-color:var(--line);border-radius:8px}
.shell .rp-local p{color:var(--muted)}
.shell .rp-local button{color:var(--accent)}
.shell .rp-sync{background:#f0eaf7;border-color:#ddcfe8;border-radius:9px}
.shell .rp-sync-icon{background:#e5dcef;color:#78528f;border-radius:6px}
.shell .rp-sync strong{color:#53425f}
.shell .rp-sync p{color:#796b82}
.shell .rp-sync .rp-sync-button{border-color:#c9b3dd;color:var(--accent);background:#fffefb;border-radius:6px}
.shell .rp-group-grid{gap:24px 18px}
.shell .rp-group,.shell .rp-record,.shell .reports-library [data-tone]{--rp-card-ink:#78558d;--rp-card-soft:#ede6f4;--rp-card-line:#ddd3e3;--rp-card-glow:#f7f3fa}
.shell .rp-group{background:var(--paper);border-color:#dcd5cb;border-radius:9px;padding:22px;box-shadow:none}
.shell .rp-group-top{margin-bottom:16px}
.shell .rp-document{width:36px;height:43px;color:#78558d}
.shell .rp-document:before,.shell .rp-document:after,.shell .rp-document i{display:none}
.shell .rp-document>.icon{width:29px;height:29px;transform:none;stroke-width:1.3}
.shell .rp-group-count{background:#f0ede7;border-color:#e1d9d0;border-radius:5px;color:#746878;font-size:12px;font-weight:500}
.shell .rp-group h2{font-size:22px;color:#3a303f;line-height:1.5;font-weight:650}
.shell .rp-latest>span{font-size:12px;color:#8a7e8c}
.shell .rp-latest strong{color:#64556c;font-size:14px}
.shell .rp-group-foot{border-color:var(--line)}
.shell .rp-time{color:#7d707f;font-size:12px}
.shell .rp-timeline{padding-left:6px}
.shell .rp-record{border-color:#d7c9e0;padding-left:20px;padding-bottom:17px}
.shell .rp-record-link{background:var(--paper);border-color:var(--line);border-radius:9px;box-shadow:none;padding:22px}
.shell .rp-record-dot{background:var(--accent);box-shadow:0 0 0 4px var(--bg)}
.shell .rp-record h2{color:#3d3045;font-size:21px;font-weight:650}
.shell .rp-record p{color:#76667f;font-size:13px}
.shell .rp-record-arrow{background:#f0eaf6;color:#79548f}
.shell .rp-local-tag{background:#f4eff9;border-color:#dfd1e9;color:#795d8d;border-radius:4px}
.shell .rp-list-status,.shell .rp-list-end{color:#8a7b91;font-size:12px}
.shell .rp-pagination .rp-more{background:var(--paper);border-color:#d4c5df;color:var(--accent);border-radius:7px}
.shell .rp-empty{background:var(--paper);border-color:var(--line);border-radius:10px;padding:40px 24px}
.shell .rp-empty>img{display:none}
.shell .rp-empty>.icon,.shell .rp-empty-art{display:block;width:63px;height:75px;color:#78568f;fill:none;stroke:currentColor;stroke-width:1.2;margin:0 0 22px}
.shell .rp-empty h2,.shell .rp-empty h1{font-size:23px;font-weight:650;color:var(--ink)}
.shell .rp-empty p{font-size:14px;color:var(--muted)}

/* Persistent job status is a compact utility, not a decorative banner. */
#job-beacon{background:#fffefb;color:#54465f;border-color:#d7cdda;border-radius:9px;box-shadow:0 6px 24px #30233414}
#job-beacon .jb-mark{background:#eee6f5;color:#71518d;border:1px solid #d5c7e1;border-radius:6px}
#job-beacon .jb-copy strong{color:#4c3c59;font-size:13px}
#job-beacon .jb-copy small{color:#7c6d84;font-size:12px}
#job-beacon .jb-notice-compact{background:#f2edf6;border-color:#e2d8e9}
#job-beacon .jb-arrow,#job-beacon .jb-close{color:#826c90}
#job-beacon .jb-notice[data-job-state=completed] .jb-mark{background:#e8eee3;border-color:#c5d4bc;color:#527143}
#job-beacon .jb-notice[data-job-state=failed] .jb-mark,#job-beacon .jb-notice[data-job-state=cancelled] .jb-mark{background:#f4e6dc;border-color:#dfc9b8;color:#8d6745}

/* Dialogs and archived-report utility chrome keep their existing behavior. */
body:has(.shell) dialog:not(.menu-drawer){background:#fffefb;border:1px solid #d9d0c8;border-radius:12px;color:#302a35;box-shadow:0 20px 65px #30263324}
body:has(.shell) dialog::backdrop{background:#2f293749;backdrop-filter:none}
body:has(.shell) dialog p{color:#766b7e}
body:has(.shell) dialog h2{color:#392c44}
body:has(.shell) dialog .help,body:has(.shell) dialog .field>span{color:#786681}
body:has(.shell) dialog .input{border-color:#d9cddb;background:#fffdfa;color:#503a5f}
body:has(.shell) dialog .close-modal{color:#80638e;min-width:44px;min-height:44px}
body:has(.shell) dialog .btn.primary{background:#6941bb;border-color:#6941bb;color:white;box-shadow:none;border-radius:7px}
.report-archive-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;margin:0 0 20px;padding:10px 12px;border:1px solid currentColor;border-color:color-mix(in srgb,currentColor 18%,transparent);border-radius:8px;color:inherit;font-size:12px;opacity:.85}
.report-archive-bar>a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:inherit;text-decoration:none}
.report-archive-bar .icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.report-archive-bar time{font-size:11px;opacity:.8}
.quiz-shell button{touch-action:manipulation;transition:transform .12s,filter .16s,background-color .16s}
.quiz-shell button:active:not(:disabled){transform:scale(.98);filter:brightness(.96)}
.quiz-shell button:focus-visible,.report-archive-bar>a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.quiz-shell button:disabled{cursor:default;opacity:.6}
.quiz-shell button[aria-busy=true]{cursor:progress}
dialog[open]{animation:cst-dialog-enter .16s ease-out}
@keyframes cst-dialog-enter{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:780px){
  .shell .st-heading{min-height:0;margin:0 0 21px;gap:14px}
  .shell .st-heading h1{font-size:25px;line-height:1.4}
  .shell .st-heading p{font-size:13px;margin-top:5px}
  .shell .st-heading-art{width:45px;height:57px;flex-basis:45px}
  .shell .studio-v2 .st-compose{border-radius:10px}
  .shell .studio-v2 .st-details{border-radius:8px}
  .shell .studio-v2 .st-submit button{font-size:14px;border-radius:7px}
  .shell .studio-v2 .st-numbers input{font-size:27px}
  .shell .st-time-note{font-size:12px}
  .shell .me-report-entry{padding:20px 17px;gap:15px;margin:0 0 18px;border-radius:8px}
  .shell .me-report-art{width:44px;height:55px;flex-basis:44px}
  .shell .me-report-mark{width:44px;height:52px;flex-basis:44px}
  .shell .me-report-mark>.icon{width:39px;height:45px}
  .shell .me-report-entry strong{font-size:24px}
  .shell .me-report-entry small{font-size:11px}
  .shell .me-report-entry span{font-size:12px}
  .shell .me-report-entry>b{width:28px;height:28px;flex-basis:28px;font-size:16px}
  .shell .rp-heading{min-height:0;margin-bottom:15px;padding:8px 0 19px}
  .shell .rp-heading h1{font-size:29px}
  .shell .rp-heading-detail h1{font-size:25px}
  .shell .rp-heading p{font-size:13px}
  .shell .rp-heading-art{width:48px;height:63px;flex:0 0 48px;margin-right:1px}
  .shell .rp-group-grid{gap:24px 16px}
  .shell .rp-group{padding:17px 13px;border-radius:8px}
  .shell .rp-group h2{font-size:18px}
  .shell .rp-latest strong{font-size:13px}
  .shell .rp-latest>span{font-size:11px}
  .shell .rp-group-count{font-size:11px}
  .shell .rp-record{padding-left:15px;padding-bottom:14px}
  .shell .rp-record-link{padding:18px 14px;border-radius:8px}
  .shell .rp-record h2{font-size:19px}
  .shell .rp-record p{font-size:13px}
  .shell .rp-record-arrow{width:27px;height:27px}
  .shell .rp-empty{padding:34px 20px}
  .shell .rp-empty h2,.shell .rp-empty h1{font-size:20px}
  .shell .rp-empty p{font-size:13px}
  .shell .rp-empty>.icon,.shell .rp-empty-art{width:53px;height:63px;margin-bottom:20px}
  #job-beacon{border-radius:8px}
  #job-beacon .jb-copy strong{font-size:12px}
  #job-beacon .jb-copy small{font-size:11px}
  .report-archive-bar{margin-bottom:15px}
}
@media(max-width:360px){.shell .st-heading h1{font-size:23px}.shell .me-report-entry{gap:12px}.shell .me-report-art{width:36px;flex-basis:36px}.shell .me-report-entry strong{font-size:22px}.shell .rp-group{padding-left:10px;padding-right:10px}}
@media(hover:hover) and (pointer:fine){.shell .studio-v2 .st-submit button:hover{background:#5b35a6;box-shadow:none}.shell .me-report-entry:hover{background:#eae1f3}.shell .rp-group:hover{border-color:#bdaaC9;box-shadow:0 5px 15px #4a315c0b}.shell .rp-record-link:hover{background:#f8f4fb}.shell .rp-local button:hover{color:#563292}}
@media(prefers-reduced-motion:reduce){dialog[open],.quiz-shell button,.shell .me-report-entry{animation:none!important;transition:none!important}.quiz-shell button:active:not(:disabled),.shell .me-report-entry:active{transform:none;filter:none}}
