/* Final platform components share the editorial tokens defined in mobile.css. */
#modal .unlock-template-name{font-size:15px;line-height:1.6;color:#6b6070;margin:8px 0 0}
#modal .unlock-benefits{display:grid;gap:16px;list-style:none;margin:24px 0;padding:0;background:none;border:0}
#modal .unlock-benefits li{display:flex;gap:11px;align-items:flex-start;margin:0;padding:0;list-style:none;background:none;border:0;font-size:14px;line-height:1.7;color:#443b4b}
#modal .unlock-benefits li:before,#modal .unlock-benefits li:after{content:none!important;display:none!important}
#modal .unlock-benefits .icon{width:19px;height:19px;flex:0 0 19px;margin-top:2px;color:#75529e}
#modal .unlock-benefits li>span{min-width:0}
#modal .unlock-confirm{display:flex;justify-content:center;width:100%;min-height:48px;margin-top:20px;font-size:15px;border-radius:9px}
#toast{width:max-content;max-width:calc(100vw - 32px);line-height:1.65;text-align:center;border-radius:8px;background:#302934}
.shell .brand-mark,.menu-drawer .drawer-brand .brand-mark{background:#f7edda;border:1px solid #e1d1af;border-radius:9px;overflow:hidden;box-shadow:inset 0 1px 0 #fffaf0}
.shell .brand-cat,.menu-drawer .brand-cat{display:block;width:100%;height:100%;object-fit:contain;fill:unset;stroke:unset;pointer-events:none}
.shell .avatar:has(.brand-cat){background:#f6ecd9;border-color:#dccbb0;overflow:hidden}
.shell .avatar>.brand-cat{padding:3px}
.shell .mobile-brand>.brand-cat{width:30px;height:30px;flex:0 0 30px;padding:0}
.shell .app-mobile-head .header-actions>.avatar:has(.brand-cat):before{background:#f6ecd9;border-color:#dccbb0}
.shell .app-mobile-head .header-actions>.avatar>.brand-cat{width:32px;height:32px;padding:2px}
.shell .profile-avatar:has(.brand-cat){background:#f7eddb;border-color:#ded0b8;overflow:hidden;padding:5px}
/* Cover choice is optional and uses the same 4:5 frame as the feed. */
.shell .cover-control{position:relative;margin:20px 0 0;padding:19px;border:1px solid #ddd4ca;border-radius:10px;background:#fffdf8;color:var(--ink)}
.shell .cover-control h3{font-size:16px;line-height:1.5;font-weight:650;letter-spacing:-.02em;margin:0 0 7px}
.shell .cover-help{font-size:12px;line-height:1.75;color:#7c6c84;margin:7px 0 13px;overflow-wrap:anywhere}
.shell .cover-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0}
.shell .cover-options>label{display:flex;align-items:center;gap:9px;min-width:0;min-height:70px;padding:11px 12px;border:1px solid #ddd2e1;border-radius:8px;background:#faf7fc;cursor:pointer;transition:border-color .15s,background .15s}
.shell .cover-options>label:has(input:checked){border-color:#a68abc;background:#f0e8f7;box-shadow:inset 0 1px 0 #fff}
.shell .cover-options input[type=radio]{width:17px;height:17px;flex:0 0 17px;margin:0;padding:0;accent-color:var(--accent)}
.shell .cover-options label>span{display:block;min-width:0;font-size:13px;font-weight:600;line-height:1.5;color:#604b70}
.shell .cover-options small{display:block;font-size:11px;font-weight:400;line-height:1.6;color:#8b7794;margin-top:3px}
.shell .cover-upload{position:relative;display:flex;flex-direction:column;align-items:flex-start;margin:14px 0 17px;padding:15px;border:1px dashed #bdaaC9;border-radius:8px;background:#f8f3fb}
.shell .cover-upload>.btn{display:inline-flex;min-height:44px;padding:10px 15px;font-size:13px;background:#fffdfb;border-color:#cfbddf;color:#76538f;cursor:pointer}
.shell .cover-upload input[type=file]{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;clip-path:inset(50%);padding:0;border:0}
.shell .cover-upload:focus-within>.btn{outline:3px solid var(--ui-ring);outline-offset:3px}
.shell .cover-upload .cover-help{margin:10px 0 0}
.shell .cover-preview{position:relative;width:132px;height:auto;min-height:0;aspect-ratio:4/5;container-type:inline-size;overflow:hidden;border:1px solid #ded3e3;border-radius:8px;margin:17px auto 0;background:#e9e0ef;box-shadow:inset 0 1px 0 #fff9,0 1px 0 #e1d7e7,0 5px 11px #4d355e09}
.shell .cover-preview-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.shell .cover-preview-text{position:absolute;inset:0;padding:11%;display:flex;flex-direction:column;justify-content:space-between;background:#e7dced;color:#593e6c}
.shell .cover-preview-text>small{font-size:10px;font-weight:500;line-height:1.3}
.shell .cover-preview-text>strong{font-size:12cqw;line-height:1.3;font-weight:700;overflow-wrap:anywhere;letter-spacing:-.02em}
.shell .cover-preview-text>span{font-size:10px;line-height:1.45;border:0;padding:0}
.shell .cover-status{margin:12px 0 0;text-align:center;font-size:12px;color:#7c618c}
.shell .cover-control [hidden]{display:none!important}
.shell .cover-control[aria-busy=true] .cover-preview{opacity:.6}
.shell .cover-control[aria-busy=true] .cover-status:before{content:"";display:inline-block;width:11px;height:11px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-1px;margin-right:7px;animation:cst-busy-turn .75s linear infinite}
.unlock-benefits{display:grid;gap:12px;margin:20px 0;padding:17px 18px;list-style:none;background:#f3edf8;border:1px solid #e0d3e9;border-radius:9px}
.unlock-benefits>li,.unlock-benefits>div{display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.65;color:#6d567c;margin:0}
.unlock-benefits>li:not(:has(.icon)):before{content:"";display:block;flex:0 0 12px;width:12px;height:7px;border-left:1.8px solid #87639f;border-bottom:1.8px solid #87639f;transform:rotate(-45deg);margin-top:6px}
.unlock-benefits .icon{width:17px;height:17px;color:#8867a0;margin-top:3px}
.unlock-benefits strong{font-weight:600;color:#533969}
.unlock-template-name{font-size:16px;line-height:1.6;font-weight:600;color:#644377}
.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 .cover-control{padding:16px;margin-top:17px;border-radius:9px}
  .shell .cover-options{gap:8px}
  .shell .cover-options>label{align-items:flex-start;gap:7px;min-height:77px;padding:11px 9px}
  .shell .cover-options input[type=radio]{margin-top:2px;width:16px;height:16px;flex-basis:16px}
  .shell .cover-options label>span{font-size:12px}
  .shell .cover-options small{font-size:11px}
  .shell .cover-preview{width:120px}
  .unlock-benefits{padding:15px;gap:11px}
  .unlock-benefits>li,.unlock-benefits>div{font-size:13px}
  .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 .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}}
.shell .panel,.shell .metric,.shell .rp-group,.shell .rp-record-link,.shell .me-energy,.shell .me-menu{box-shadow:inset 0 1px 0 #fffefb,0 2px 0 #e7dfd6,0 7px 17px #33244006}
@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,.shell .cover-control[aria-busy=true] .cover-status:before{animation:none!important;transition:none!important}.quiz-shell button:active:not(:disabled),.shell .me-report-entry:active,.shell .discovery-card .card-actions>.btn:active:not(:disabled):not([aria-busy=true]){transform:none;filter:none}}

/* Edited reports keep the original scored charts in an optional reading panel. */
.report-original-details{padding:20px;border:1px solid color-mix(in srgb,currentColor 20%,transparent);border-radius:12px}
.report-original-details>summary{font-size:17px;font-weight:700;line-height:1.5;cursor:pointer;min-height:44px;display:list-item}
.report-original-details[open]>summary{margin-bottom:12px}
.report-original-content{min-width:0;overflow-wrap:anywhere}
.report-original-content [class$="-report-actions"],.report-original-content .platform-entry,.report-original-content [data-history-save],.report-original-content [data-history-copy]{display:none!important}
.quiz-editorial-note{padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.6;background:color-mix(in srgb,currentColor 7%,transparent);opacity:.8}
.quiz-shell .quiz-home-creation{display:flex;justify-content:center;margin-top:22px;padding:12px 0 8px}
.quiz-shell .quiz-home-creation>a{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 20px;border:1px solid color-mix(in srgb,currentColor 22%,transparent);border-radius:8px;color:inherit;background:transparent;font-size:13px;font-weight:500;line-height:1.5;text-decoration:none}
.quiz-shell .quiz-home-creation>a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(hover:hover) and (pointer:fine){.quiz-shell .quiz-home-creation>a:hover{background:color-mix(in srgb,currentColor 6%,transparent)}}
.quiz-shell .quiz-home-creation>a:active{background:color-mix(in srgb,currentColor 9%,transparent)}

/* Editorial recommendation values are explicitly labelled, separate from real unlock counts. */
.shell .template-editorial-value{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:3px 5px;font-size:11px;line-height:1.6;color:#7b5d99;margin:0 0 12px;}
.shell .template-editorial-value b{font-weight:650;}
.shell .template-editorial-value small{font-size:9px;color:#8b8191;}
