
/* v3 · cute pastel theme: original mascot decorations (inspired mood, not official character art) */
:root{--bg:#fffaf8;--card:#ffffff;--dark:#4e5b73;--ink:#514a5f;--muted:#8d8699;--border:#efe6f2;--green:#8b7cf6;--mint:#f7dff4;--lightmint:#fff4fb;--danger:#d06a72;--shadow:0 14px 42px rgba(124,111,181,.08)}
body{background:linear-gradient(180deg,#fffafc 0%,#fff8ef 100%);color:var(--ink)}
a{color:#8372ec}.topbar{background:rgba(255,255,255,.92);backdrop-filter:blur(10px)}
.brand{gap:12px;position:relative}.brandmark{background:linear-gradient(135deg,#b69bff,#7fd4ff);color:#fff6ff;box-shadow:0 8px 20px rgba(126,123,230,.18)}
.brand-name{font-size:22px;letter-spacing:-1.2px}.brand-period{display:none}.brand-tag{color:#a287aa;border-left-color:#eadcf1}.brand-buddies{display:flex;gap:8px;margin-left:4px}
.main-title{margin-top:6px;font-size:22px;font-weight:800;letter-spacing:-1px;color:#8573e8}
.sidebar{background:linear-gradient(180deg,#fffdfd 0%,#fff8fb 100%)}.side-intro h1 em{color:#8c79f5}
.nav-item.active{background:#f7efff;border-color:#ead8ff;color:#765ee5}.nav-item.active .nav-num{color:#765ee5}.mini-count{background:#f3e6ff;color:#7a5be2}
.active-learner,.user-control{background:#fffafc;border-color:#eadff3}.profile-dot{background:#ffb7d6}.level-chip{background:#f3ecff;color:#7a59e0}
.page-heading,.page-heading.compact{background:linear-gradient(135deg,#fff7fd 0%,#fff6ee 100%);border:1px solid #f0e8f5;border-radius:24px;padding:22px 24px;box-shadow:var(--shadow)}
.page-heading{min-height:248px}.page-heading.compact{min-height:182px}.green-dot{color:#ff9cc7}
.panel,.table-wrap,.quiz-card,.result-panel,.session-panel,.history-panel,.compare-panel,.analytics-panel{border-color:#eee5f2;box-shadow:0 12px 28px rgba(163,142,196,.06)}
.small-panel{background:linear-gradient(180deg,#fef3ff 0%,#fff8f1 100%)}.button.primary{background:linear-gradient(135deg,#9b87ff,#6cbcff)}.button.dark{background:linear-gradient(135deg,#8b79ef,#f39bc7)}.button.outlined{color:#6f61d7;border-color:#dbd3f0}
.dropzone{background:#fffcff;border-color:#e0c9ef}.dropzone:hover,.dropzone.dragover{background:#fff3fc;border-color:#bf9cf1}
.message{color:#6a56d7;background:#f3eeff}.message.error{color:#a04537;background:#fff0eb}.flow-explainer b{color:#8f79f7}.notice{background:#fff7fd;border:1px solid #f1e3f1}
.brand-buddies .buddy,.side-mascots .hero-mascot,.hero-scene .hero-mascot{position:relative;display:inline-block}
.buddy{width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 5px 12px rgba(156,145,203,.17);background-repeat:no-repeat;background-image:radial-gradient(circle at 35% 48%,#5e5475 0 1.2px,transparent 1.4px),radial-gradient(circle at 64% 48%,#5e5475 0 1.2px,transparent 1.4px),radial-gradient(ellipse at 50% 61%,#f3a0b6 0 4px,transparent 4px),radial-gradient(ellipse at 50% 58%,#5f556f 0 0.9px,transparent 1.1px)}
.buddy::before,.buddy::after,.hero-mascot::before,.hero-mascot::after{content:"";position:absolute;background:inherit}
.buddy::before{width:10px;height:10px;border-radius:10px 10px 2px 2px;left:2px;top:-3px;transform:rotate(-14deg)}.buddy::after{width:10px;height:10px;border-radius:10px 10px 2px 2px;right:2px;top:-3px;transform:rotate(14deg)}
.buddy-momo{background-color:#cfefff}.buddy-usa{background-color:#f7dbff}.buddy-kuma{background-color:#ffe4bb}.buddy-usa::before,.buddy-usa::after{width:7px;height:13px;border-radius:7px 7px 3px 3px;top:-8px}.buddy-kuma::before,.buddy-kuma::after{width:9px;height:9px;border-radius:50%;top:-2px}
.side-mascots{display:flex;gap:10px;margin:14px 0 8px}.hero-scene{position:absolute;right:18px;top:28px;display:flex;gap:14px;align-items:flex-end}
.hero-mascot{width:72px;height:72px;border-radius:50%;box-shadow:0 16px 28px rgba(174,151,207,.16);background-repeat:no-repeat;background-image:radial-gradient(circle at 34% 46%,#4d4968 0 2px,transparent 2.5px),radial-gradient(circle at 63% 46%,#4d4968 0 2px,transparent 2.5px),radial-gradient(ellipse at 50% 60%,#f7a7b8 0 7px,transparent 7px),radial-gradient(ellipse at 50% 57%,#5f556f 0 1.3px,transparent 1.8px)}
.hero-mascot.large{width:86px;height:86px}.hero-mascot::before{left:10px;top:-9px;width:24px;height:22px;border-radius:20px 20px 4px 4px;transform:rotate(-16deg)}.hero-mascot::after{right:10px;top:-9px;width:24px;height:22px;border-radius:20px 20px 4px 4px;transform:rotate(16deg)}
.hero-momo{background-color:#d4f1ff;background-image:radial-gradient(circle at 34% 46%,#4d4968 0 2px,transparent 2.5px),radial-gradient(circle at 63% 46%,#4d4968 0 2px,transparent 2.5px),radial-gradient(ellipse at 50% 60%,#f7a7b8 0 7px,transparent 7px),radial-gradient(ellipse at 50% 57%,#5f556f 0 1.3px,transparent 1.8px),radial-gradient(circle at 50% 34%,#eaf8ff 0,#d4f1ff 70%,#c4e8fb 100%)}
.hero-usa{background-color:#f4defe;background-image:radial-gradient(circle at 34% 46%,#4d4968 0 2px,transparent 2.5px),radial-gradient(circle at 63% 46%,#4d4968 0 2px,transparent 2.5px),radial-gradient(ellipse at 50% 60%,#f7a7b8 0 7px,transparent 7px),radial-gradient(ellipse at 50% 57%,#5f556f 0 1.3px,transparent 1.8px),radial-gradient(circle at 50% 34%,#fff4ff 0,#f4defe 72%,#ecd1fb 100%)}
.hero-kuma{background-color:#ffe5bf;background-image:radial-gradient(circle at 34% 46%,#4d4968 0 2px,transparent 2.5px),radial-gradient(circle at 63% 46%,#4d4968 0 2px,transparent 2.5px),radial-gradient(ellipse at 50% 60%,#f7a7b8 0 7px,transparent 7px),radial-gradient(ellipse at 50% 57%,#5f556f 0 1.3px,transparent 1.8px),radial-gradient(circle at 50% 34%,#fff4df 0,#ffe5bf 72%,#fed7a5 100%)}
.hero-usa::before,.hero-usa::after{width:18px;height:32px;border-radius:20px 20px 8px 8px;top:-16px}.hero-kuma::before,.hero-kuma::after{width:22px;height:22px;border-radius:50%;top:-4px}
.side-intro,.main-head,.page-heading{position:relative}.main::before{content:"";position:fixed;right:-80px;top:110px;width:240px;height:240px;background:radial-gradient(circle,#ffe7f3 0,rgba(255,231,243,0) 70%);pointer-events:none;z-index:-1}.main::after{content:"";position:fixed;left:-80px;bottom:-20px;width:220px;height:220px;background:radial-gradient(circle,#e8f4ff 0,rgba(232,244,255,0) 72%);pointer-events:none;z-index:-1}
@media(max-width:900px){.brand-buddies{display:none}.hero-scene{opacity:.85;right:8px;gap:8px}.hero-mascot.large{width:64px;height:64px}}@media(max-width:730px){.main-title{font-size:16px;margin-top:2px}.page-heading,.page-heading.compact{padding:18px 18px 22px;border-radius:18px}.hero-scene{top:72px;right:8px}.hero-mascot.large{width:56px;height:56px}.side-mascots{display:none}}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root{--bg:#f6f7f3;--card:#fff;--dark:#1d2c27;--ink:#1b2b26;--muted:#7a8981;--border:#e5eae2;--green:#216f56;--mint:#dcf3e4;--lightmint:#f3fbf3;--danger:#b83c39;--shadow:0 12px 44px rgba(29,54,39,.035)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.65 'DM Sans','Noto Sans KR','Noto Sans JP',sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}a{color:var(--green)}[hidden]{display:none!important}.topbar{height:82px;background:rgba(255,255,255,.87);display:flex;justify-content:space-between;align-items:center;padding:0 44px;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:11px}.brandmark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#214f40;color:#ddf4cd;font:700 21px 'Noto Sans JP'}.brand-name{font-size:24px;letter-spacing:-1.6px;font-weight:800}.brand-period{color:#77bb83}.brand-tag{font-size:11px;color:#8a998f;border-left:1px solid #d8dfd6;padding-left:12px;margin-left:5px}.top-actions{display:flex;align-items:center;gap:17px}.api-status{font-size:12px;color:#8a958f;white-space:nowrap}.status-dot{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#d0ab5c}.api-status.ready .status-dot{background:#62ac74}.api-status.offline .status-dot{background:#bc8b6a}.ghost{border:0;background:transparent;color:var(--green);font-weight:700}.tiny{font-size:12px}.shell{display:grid;grid-template-columns:278px minmax(0,1fr);min-height:calc(100vh - 82px);max-width:1700px;margin:0 auto}.sidebar{display:flex;flex-direction:column;background:#fafbf8;border-right:1px solid var(--border);min-height:calc(100vh - 82px);padding:45px 20px 24px}.side-intro{padding:2px 13px 36px}.eyebrow,.section-label,.mini-label{color:#8a9a90;font-weight:800;letter-spacing:2px;font-size:10px}.side-intro h1{font-size:29px;line-height:1.4;letter-spacing:-1.2px;margin:14px 0 10px}.side-intro em{font-style:normal;color:var(--green)}.side-intro p{font-size:12px;color:var(--muted);line-height:1.9}.nav{display:grid;gap:9px}.nav-item{width:100%;border:1px solid transparent;background:transparent;display:flex;align-items:center;text-align:left;gap:14px;border-radius:13px;color:#64766d;padding:14px 13px;font-size:14px;font-weight:700;line-height:1.45}.nav-item:hover{background:#f0f4ee}.nav-item.active{background:#e8f1e9;border-color:#d5e9d8;color:#1b674d}.nav-num{font-size:12px;color:#aab7ad;font-weight:800}.nav-item.active .nav-num{color:#2b855f}.nav-item small{display:block;color:#9aa99e;font-size:10px;font-weight:500;margin-top:4px}.mini-count{margin-left:auto;border-radius:100px;background:#d5e9da;color:#26775a;font-size:11px;padding:0 7px}.sidebar-bottom{margin-top:auto;padding:32px 14px 0;border-top:1px solid var(--border)}.partners{display:grid;gap:13px;margin-top:21px}.partner{display:flex;gap:10px;align-items:center;font-size:12px;color:#697870}.tier{padding:4px 7px;border-radius:6px;font-size:10px}.tier.N5{background:#e1eedf;color:#2a6a48}.tier.N4{background:#e4e8f8;color:#5965a3}.sidebar-bottom p{font-size:11px;margin-top:24px;color:#acb5aa}.main{min-width:0;padding:28px 54px 90px}.main-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:29px}.level-switch{display:flex;gap:4px;padding:4px;border:1px solid #e0e7df;background:white;border-radius:12px}.level-switch button{padding:9px 13px;border:0;border-radius:9px;background:transparent;font-size:13px;font-weight:800;color:#6c8073}.level-switch button span{font-size:10px;font-weight:500;margin-left:4px}.level-switch button.selected{background:#225d49;color:white;box-shadow:0 2px 8px rgba(0,0,0,.08)}.view{max-width:1240px}.page-heading{display:flex;justify-content:space-between;min-height:236px;position:relative;overflow:hidden}.page-heading h2{font-size:clamp(31px,3.5vw,48px);letter-spacing:-2.8px;line-height:1.32;font-weight:800;margin:18px 0 12px}.page-heading p{font-size:13px;color:#86948a}.green-dot{color:#4bad79}.jp-deco{color:#dbece1;font:800 clamp(62px,9vw,136px) 'Noto Sans JP';letter-spacing:-8px;position:absolute;right:0;top:8px;z-index:-1}.jp-deco span{display:block;font-size:31px;letter-spacing:12px;text-align:right;padding-right:18px;color:#cbe0d3}.page-heading.compact{min-height:170px}.page-heading.compact h2{font-size:38px}.upload-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:19px}.panel{border:1px solid var(--border);border-radius:17px;background:var(--card);box-shadow:var(--shadow);overflow:hidden}.panel-header{min-height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 23px;border-bottom:1px solid #edf0eb}.panel-header>div{display:flex;align-items:center;gap:10px}.panel-header strong{font-size:14px}.panel-icon{color:var(--green);font-size:24px;line-height:1}.chip{font-size:10px;letter-spacing:.1px;color:#678578;background:#eaf4ec;padding:5px 10px;border-radius:30px;font-weight:700}.upload-panel{min-height:410px}.dropzone{margin:20px 22px 0;min-height:259px;background:#fbfdf9;border:1.7px dashed #b6d6c1;border-radius:13px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;transition:.18s}.dropzone:hover,.dropzone.dragover{background:#eef9ee;border-color:#5ba57b}.dropzone strong{font-size:14px}.dropzone p{font-size:12px;color:#8b9b8f;margin:5px 0 11px}.file-note{font-size:10px;color:#afbab1}.upload-illustration{width:100px;height:88px;position:relative;margin-bottom:12px}.doc-card{position:absolute;width:49px;height:62px;border-radius:8px;border:1px solid #b7d4c1;display:grid;place-items:center}.doc-card.back{background:#e5f3e8;color:#83b096;font-size:25px;left:13px;top:4px;transform:rotate(-16deg)}.doc-card.front{left:36px;top:11px;background:white;transform:rotate(8deg);display:flex;flex-direction:column;gap:6px;padding-top:9px;box-shadow:0 5px 18px rgba(40,98,62,.08)}.doc-card.front span{font-size:19px;color:#287256;font-family:'Noto Sans JP'}.doc-card.front i{width:28px;height:3px;background:#d7e5d8;border-radius:3px}.doc-card.front i:last-child{width:20px}.upload-plus{position:absolute;right:0;bottom:0;width:27px;height:27px;border-radius:50%;background:#2e8c66;color:white;display:grid;place-items:center;font-size:19px;font-weight:700;border:2px solid white}.previews{display:flex;gap:9px;flex-wrap:wrap;padding:0 22px;margin-top:12px}.preview{position:relative;width:69px;height:77px;border:1px solid var(--border);border-radius:9px;overflow:hidden;background:#f5f5f5}.preview img{width:100%;height:100%;object-fit:cover}.remove-image{position:absolute;right:2px;top:2px;background:#17241bbd;color:#fff;border:0;border-radius:100%;font-size:13px;line-height:18px;width:20px;height:20px}.panel-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:72px;padding:10px 23px}.panel-footer>span{color:#9da9a1;font-size:11px}.button{border:0;border-radius:10px;padding:11px 18px;font-weight:800;font-size:12px;transition:.16s}.button:not(:disabled):hover{transform:translateY(-1px)}.button span{margin-left:10px}.button.primary{background:#216f56;color:white}.button.dark{background:#233b30;color:white}.button.outlined{background:white;color:#355948;border:1px solid #cbdcd0}.button.wide{width:100%;min-height:46px}.right-column{display:grid;gap:17px}.small-panel{background:#e7f1e5}.small-panel .panel-header{border-color:#d8e8d8}.sparkle{font-size:24px;color:#39815c}.quick-content{padding:21px 24px 24px}.quick-content h3,.share-panel h3{font-size:26px;letter-spacing:-1.5px;line-height:1.42;margin:6px 0}.quick-content p,.tip-panel p{font-size:12px;color:#7b8b80;line-height:1.75;margin:9px 0 18px}.quick-content button{margin-top:3px}.tip-panel{padding-bottom:17px}.tip-panel p{margin:15px 22px 10px}.tip-panel textarea{resize:vertical;min-height:90px;width:calc(100% - 44px);margin:0 22px;border:1px solid var(--border);border-radius:9px;padding:10px;font-size:11px;background:#fcfefb;outline-color:#a4d2b0}.text-button{border:0;background:none;color:#2a865f;font-weight:800;font-size:11px;padding:12px 22px;text-align:left}.text-button span{padding-left:8px}.flow-explainer{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:30px;padding:16px 6px;color:#9fab9e;font-size:11px;letter-spacing:1px}.flow-explainer>span{font-weight:800;font-size:10px}.flow-explainer div{display:flex;align-items:center;flex-wrap:wrap;gap:11px;color:#64766b;letter-spacing:0}.flow-explainer b{color:#318263}.flow-explainer div span{color:#cad3c9}.message{font-size:12px;color:#255d49;background:#eaf6e9;padding:12px 18px;border-radius:9px;margin:0 22px 17px}.message.error{color:#a04537;background:#fff0eb}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.toolbar-info{font-size:13px;color:#658573;font-weight:700}.toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.table-wrap{background:#fff;border:1px solid var(--border);border-radius:16px;overflow:auto;min-height:160px}.words-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.words-table th{background:#f9fbf7;font-size:11px;color:#8b9c90;padding:16px 12px}.words-table th:first-child,.words-table td:first-child{padding-left:20px}.words-table td{border-top:1px solid #ecf0eb;padding:9px 5px}.words-table td input{width:100%;min-width:95px;border:1px solid transparent;background:transparent;border-radius:7px;padding:9px 7px;color:#314a3d;outline:0;font-size:12px}.words-table td:first-child input{font:700 15px 'Noto Sans JP';min-width:110px}.words-table td input:focus{border-color:#96bea3;background:#fafef9}.words-table td:nth-child(4) input{min-width:200px}.row-delete{border:0;background:#fff2ee;color:#b87c73;border-radius:8px;width:26px;height:26px}.empty-state{padding:45px;text-align:center;color:#a4b0a6;font-size:12px}.notice{margin-top:16px;padding:12px 15px;border-radius:10px;background:#e9f0e9;color:#6a8572;font-size:11px}.quiz-setup{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(275px,.85fr);gap:18px}.settings-panel{padding-bottom:23px}.settings-panel .panel-header{margin-bottom:6px}.setting-row{margin:21px 24px}.setting-row label,.setting-title{font-size:12px;color:#587263;font-weight:800;display:block;margin-bottom:10px}.setting-row>input{width:100%;border:1px solid var(--border);outline-color:#91c3a0;border-radius:9px;padding:11px 12px;background:#fbfdfb}.choice-row{display:flex;gap:8px}.choice-row button{flex:1;border:1px solid var(--border);background:#fff;padding:10px 6px;border-radius:9px;color:#687d6d;font-size:12px;font-weight:700}.choice-row button.selected{background:#e7f4e9;color:#1f704d;border-color:#94caa5}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check-grid label{display:flex;align-items:center;gap:8px;color:#5c7668;font-weight:500;margin:0;font-size:12px}.check-grid input{accent-color:#267a5a}.settings-panel>.button{width:calc(100% - 48px);margin:12px 24px 0}.share-panel{padding-bottom:20px}.share-panel h3{margin:27px 24px 9px}.share-panel p{font-size:12px;color:#8b9b90;margin:0 24px 20px;line-height:1.8}.share-panel>.button{width:calc(100% - 48px);margin:0 24px}.share-panel>.text-button{display:block;margin:12px 2px 0}.json-import{font-size:11px;color:#2a865f;font-weight:800;margin:7px 24px;display:block;cursor:pointer}.share-panel .message{margin-top:11px}.quiz-playing{max-width:710px;margin:0 auto}.quiz-top{display:flex;justify-content:space-between;font-size:12px;color:#719081;font-weight:800;letter-spacing:1.5px}.progress-track{height:7px;border-radius:100px;overflow:hidden;background:#deebdf;margin:12px 0 22px}.progress-track div{height:100%;width:0;background:#368a65;transition:width .2s}.quiz-card{border:1px solid var(--border);border-radius:18px;background:white;padding:39px 40px;box-shadow:var(--shadow)}.question-tag{display:inline-block;color:#378361;background:#eff9ec;padding:5px 10px;font-size:10px;letter-spacing:1px;font-weight:800;border-radius:6px}.quiz-card h3{font-size:25px;white-space:pre-wrap;line-height:1.65;letter-spacing:-.7px;min-height:99px;font-family:'Noto Sans JP','Noto Sans KR',sans-serif;margin:23px 0}.answer-options{display:grid;grid-template-columns:1fr 1fr;gap:11px}.answer-option{display:flex;align-items:center;gap:12px;min-height:72px;padding:13px 18px;border:1px solid #e4eae2;background:#fff;border-radius:11px;color:#4a5e51;text-align:left;font-size:14px;font-weight:700}.answer-option:hover:not(:disabled){border-color:#70b18a;background:#f5fcf4}.answer-option .option-letter{font-size:11px;color:#92a397;border:1px solid #dce7db;border-radius:6px;width:27px;height:27px;display:grid;place-items:center;flex-shrink:0}.answer-option.correct{border-color:#4ca176;background:#eaf7ed;color:#1b6847}.answer-option.wrong{border-color:#cf8070;background:#fff1ee;color:#a94939}.answer-option:disabled{opacity:1}.answer-feedback{margin-top:23px;padding:15px;background:#eef6ed;border-radius:10px;font-size:13px}.answer-feedback.bad{background:#fff1ed}.answer-feedback strong{display:block;margin-bottom:5px}.quiz-playing #nextQuestion{display:block;margin:22px 0 0 auto;min-width:130px}.result-panel{max-width:580px;margin:10px auto;text-align:center;border:1px solid var(--border);background:white;border-radius:18px;padding:48px 24px}.result-emoji{width:75px;height:75px;border-radius:18px;background:#e1f3e6;color:#317955;display:grid;place-items:center;margin:0 auto 22px;font:800 38px 'Noto Sans JP'}.result-panel h3{font-size:31px;letter-spacing:-1.2px;margin:10px 0}.result-panel p{color:#87978b;font-size:13px}.result-stat{display:flex;align-items:center;justify-content:center;gap:42px;padding:23px;margin:25px 0;background:#f7faf5;border-radius:13px}.result-stat span{display:block;font-size:12px;color:#8fa095}.result-stat strong{display:block;font-size:29px;color:#2d7354}.result-buttons{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:18px}.stat-card{background:white;border:1px solid var(--border);border-radius:14px;padding:21px 23px}.stat-card span{font-size:11px;color:#839787}.stat-card strong{font-size:31px;display:block;color:#286d51;margin-top:3px}.history-panel .panel-footer{border-top:1px solid var(--border)}.mistake-line{display:grid;grid-template-columns:1.1fr 1fr 1.4fr auto;align-items:center;gap:8px;border-top:1px solid #edf1eb;padding:14px 24px;font-size:12px}.mistake-line:first-child{border-top:none}.mistake-line .jp{font-size:17px;font-family:'Noto Sans JP';font-weight:800}.mistake-line .times{color:#b16e5d;font-size:11px}.history-empty{padding:45px 25px;text-align:center;color:#8b9d90;font-size:13px}.subtle{color:#9caaa0}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#203d2c;color:white;border-radius:12px;padding:13px 23px;font-size:13px;font-weight:700;box-shadow:0 10px 34px #0002;z-index:5}dialog{width:min(480px,94vw);border:1px solid var(--border);border-radius:19px;padding:29px;color:var(--ink);box-shadow:0 25px 90px #0002}dialog::backdrop{background:#1d3026a1}.modal-heading{display:flex;justify-content:space-between;align-items:center}.modal-heading h3{margin:0;font-size:24px}dialog li{font-size:13px;margin:11px 0;color:#506557}dialog p{font-size:12px;color:#84968a;margin:22px 0}.icon-button{background:none;border:0;color:#8b988e;font-size:26px}
@media(max-width:1100px){.shell{grid-template-columns:226px 1fr}.main{padding:27px 28px 65px}.sidebar{padding:37px 12px 20px}.side-intro h1{font-size:24px}.upload-grid{grid-template-columns:1fr}.right-column{grid-template-columns:1fr 1fr}.quick-content h3{font-size:22px}.jp-deco{opacity:.4}}@media(max-width:730px){.topbar{height:65px;padding:0 18px}.brand-tag{display:none}.brand-name{font-size:20px}.shell{display:block}.sidebar{min-height:0;padding:13px 15px;background:transparent;border-right:0;border-bottom:1px solid var(--border)}.side-intro,.sidebar-bottom{display:none}.nav{display:flex;gap:5px;overflow-x:auto}.nav-item{padding:10px 9px;flex:1;min-width:0;justify-content:center}.nav-item small,.nav-num,.mini-count{display:none}.nav-item span:nth-child(2){white-space:nowrap;font-size:11px}.main{padding:22px 17px 60px}.main-head .eyebrow{font-size:8px;letter-spacing:1px}.level-switch button{font-size:11px;padding:7px 9px}.level-switch button span{display:none}.page-heading{min-height:200px}.page-heading h2{font-size:32px;letter-spacing:-1.6px}.page-heading p{font-size:12px}.jp-deco{font-size:80px;right:-28px;top:29px;opacity:.25}.right-column,.quiz-setup{grid-template-columns:1fr}.toolbar{display:block}.toolbar-actions{margin-top:11px}.toolbar .button{padding:9px 11px;font-size:11px}.check-grid{grid-template-columns:1fr 1fr}.quiz-card{padding:24px 20px}.quiz-card h3{font-size:21px}.answer-options{grid-template-columns:1fr}.answer-option{min-height:57px}.stat-grid{gap:8px}.stat-card{padding:14px 12px}.stat-card strong{font-size:24px}.mistake-line{grid-template-columns:1fr 1fr;gap:5px;padding:13px}.main-head{margin-bottom:22px}.page-heading.compact h2{font-size:30px}.panel-footer{padding:12px}.flow-explainer{display:none}}@media(max-width:420px){.api-status{display:none}.brand-name{font-size:19px}.topbar{padding:0 12px}.nav-item{padding:9px 5px}.nav-item span:nth-child(2){font-size:10px}.upload-panel .panel-footer{align-items:flex-start;flex-direction:column}.result-stat{gap:20px}}

/* v2 · person-based learning workspace */
.user-control{display:flex;align-items:center;gap:8px;padding:5px 7px 5px 13px;background:#f5f9f3;border:1px solid #dfebe0;border-radius:12px}
.user-control label{font-size:11px;font-weight:800;color:#718b7b}
.user-control select{min-width:135px;max-width:205px;border:0;background:transparent;outline-color:#6ab189;padding:6px 4px;color:#2b5441;font-size:13px;font-weight:800}
.profile-add{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:8px;background:#d8ebda;color:#246c4d;font-size:20px;line-height:1}
.profile-list{display:grid;gap:7px;margin-top:17px}
.profile-entry{display:flex;align-items:center;gap:9px;text-align:left;width:100%;padding:9px 10px;border-radius:11px;border:1px solid transparent;background:transparent;color:#456454}
.profile-entry.selected{background:#e5f1e6;border-color:#cce3d0}
.profile-avatar{display:grid;place-items:center;flex-shrink:0;width:35px;height:35px;border-radius:11px;background:#d4ead9;color:#247254;font-size:14px;font-weight:800}
.profile-summary{display:flex;flex-direction:column;min-width:0;flex:1}
.profile-summary strong{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.profile-summary small{color:#92a598;font-size:10px;white-space:nowrap}
.profile-current{font-size:11px;color:#4aa471}
.side-add{width:100%;margin-top:9px;background:none;border:1px dashed #abc9b4;border-radius:9px;padding:9px;font-size:11px;font-weight:700;color:#377b5b}
.active-learner{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px 13px;color:#285c42}
.active-learner strong{font-size:13px}
.profile-dot{height:9px;width:9px;display:inline-block;flex-shrink:0;border-radius:100%;background:#5eaf76}
.level-chip{display:inline-block;border-radius:6px;background:#e3f0e4;color:#327454;font-size:10px;font-weight:800;letter-spacing:.3px;padding:3px 7px}
.selected-profile-banner{display:flex;align-items:center;gap:9px;border:1px solid #dfece0;border-radius:10px;background:#f7fcf6;padding:8px 12px}
.selected-profile-banner strong{font-size:14px}.selected-profile-banner button{margin-left:auto;padding:4px 7px}
.profile-dialog{width:min(620px,95vw)}
.profile-entries{display:grid;gap:10px;max-height:280px;overflow:auto;margin:20px 0}
.profile-edit-row{display:flex;align-items:center;gap:8px;padding:9px;border:1px solid #e4ece4;border-radius:11px}
.profile-edit-row input,.profile-edit-row select,.profile-dialog form input,.profile-dialog form select{min-width:0;border:1px solid #dbe5dc;border-radius:8px;background:#fbfefa;padding:9px 10px;outline-color:#58a07a}
.profile-edit-row input{flex:1}.profile-edit-row select{width:76px}.profile-edit-row .button{padding:9px 12px}
.profile-edit-row .icon-button{font-size:19px}.delete-profile{color:#aa6f6a}
.profile-dialog form{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:9px;border-top:1px solid #edf1ea;padding-top:20px}
.profile-dialog form label{font-size:11px;font-weight:700;color:#82988b;grid-row:1}
.profile-dialog form input,.profile-dialog form select{grid-row:2}
.profile-dialog form button{grid-column:1/-1;margin-top:5px}
.profile-dialog .form-note{margin:11px 0 0}
.dashboard-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.dashboard-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.dashboard-actions .text-button{padding:9px}
.file-label{display:inline-flex;align-items:center;cursor:pointer}
.dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.dashboard-stats .stat-card{min-width:0}
.stat-card small{display:block;color:#9aa99d;font-size:11px;margin-top:5px}
.dashboard-duo{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:16px;margin:18px 0}
.analytics-panel{min-height:270px}
.score-trend{padding:18px 22px 12px;min-height:195px;display:flex;flex-direction:column;justify-content:center}
.score-trend svg{width:100%;max-height:205px}
.chart-label{fill:#246b50;font-size:14px;font-weight:800}
.chart-bottom{fill:#98a99b;font-size:11px}
.chart-caption{text-align:center;font-size:11px;color:#9aa79b;margin-top:-7px}
.empty-analytics{font-size:12px;color:#9eada2;text-align:center;padding:65px 10px}
.kind-stats{padding:16px 24px}
.kind-line{margin:11px 0 18px}.kind-line>div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}
.kind-line strong{font-size:12px}.kind-line span{font-size:11px;color:#8f9f92}
.kind-track,.rate-bar{height:7px;border-radius:100px;overflow:hidden;background:#e8efe8}
.kind-track i,.rate-bar i{display:block;height:100%;background:#52a477;border-radius:100px}
.session-panel{margin-bottom:18px}
.session-table-wrap{overflow-x:auto}
.session-table{width:100%;border-collapse:collapse;text-align:left;min-width:470px}
.session-table th{padding:13px 24px;background:#fbfcf9;color:#92a194;font-size:11px}
.session-table td{padding:14px 24px;border-top:1px solid #edf1eb;font-size:12px;color:#536e5e}
.session-table td:first-child{font-weight:700}.session-table .rate-bar{min-width:50px;max-width:130px}
.good-rate{color:#23744e}.low-rate{color:#af6855}.table-empty{text-align:center;padding:35px 12px!important;color:#9caba0!important;font-weight:400!important}
.compare-panel{margin-top:18px}
.learner-comparison{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:12px;padding:18px 22px}
.compare-person{display:flex;gap:10px;align-items:center;background:#fafcf9;border:1px solid #e7ede6;border-radius:12px;padding:14px 12px;text-align:left}
.compare-person.is-current{background:#ebf7eb;border-color:#a9d7b6}
.compare-name{display:flex;flex-direction:column;min-width:0;flex:1}.compare-name strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compare-name small,.compare-rate small{display:block;font-size:10px;color:#95a497;font-weight:500}
.compare-rate{font-weight:800;font-size:19px;color:#287153;text-align:right;white-space:nowrap}
.dashboard-note{color:#929f93;font-size:11px;line-height:1.85;margin:14px 0}
@media(max-width:1100px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-duo{grid-template-columns:1fr}.user-control select{min-width:100px;max-width:150px}}
@media(max-width:730px){.topbar{gap:10px}.top-actions{gap:7px}.user-control{padding:4px}.user-control label{display:none}.user-control select{min-width:82px;max-width:125px;font-size:11px}.profile-add{width:26px;height:26px}.main-head .active-learner{padding:7px 8px}.main-head .active-learner strong{font-size:11px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stats .stat-card{padding:15px}.profile-edit-row{flex-wrap:wrap}.profile-edit-row input{flex-basis:42%}.profile-dialog form{grid-template-columns:minmax(0,1fr) 90px}}
@media(max-width:420px){.topbar{padding:0 10px}.top-actions{gap:4px}.user-control select{max-width:98px}.main-head .eyebrow{max-width:45%;word-break:break-word}.dashboard-stats .stat-card strong{font-size:25px}.dashboard-actions .button{padding:9px 11px}}

@media(max-width:730px){
.session-table{min-width:0}.session-table thead{display:none}.session-table tbody{display:block}.session-table tbody tr{display:block;padding:12px 18px;border-bottom:1px solid #edf1eb}
.session-table tbody td{border:0;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:7px 0;font-size:12px}
.session-table tbody td::before{content:attr(data-label);font-size:11px;color:#9aa99c;font-weight:500}
.session-table tbody td.table-empty{display:block;text-align:center}.session-table tbody td.table-empty::before{display:none}
.session-table tbody .rate-bar{width:90px;flex-shrink:0}
}


/* v4 mascot stickers · personal-use fan theme */
:root{--bg:#fff9fc;--card:#fff;--dark:#51456f;--ink:#514966;--muted:#8c8499;--border:#eee2f5;--green:#856bc9;--mint:#f9e9f9;--lightmint:#fff5fd;--shadow:0 11px 30px rgba(117,91,151,.075)}
body{background:#fffafc;color:var(--ink)}
.topbar{background:#fffdfef5;border-bottom:1px solid #f1e3f4}
.brand{gap:8px}.brandmark-image{height:49px;width:49px;border:0;background:#ffedfb;box-shadow:none;border-radius:17px;overflow:hidden;padding:0;flex-shrink:0;display:flex;justify-content:center;align-items:center}
.brandmark-image img{width:100%;height:100%;object-fit:contain}.brand-name{font-size:clamp(17px,1.65vw,23px);letter-spacing:-1.2px;white-space:nowrap;color:#675192}
.brand-tag{font-size:10px}.brand-buddies{gap:0;align-items:center;margin-left:7px}.brand-buddies img{width:31px;height:39px;object-fit:contain;margin-left:-5px;filter:drop-shadow(0 4px 3px #c6b6d04f)}
.sidebar{background:linear-gradient(#fffafd,#fff5fb)}
.side-intro{padding-bottom:27px}.side-intro h1{margin:12px 0 9px}.side-mascots{margin:12px -5px 6px;gap:0;justify-content:center;align-items:end;height:70px}
.side-mascots img{max-width:28%;width:58px;height:72px;object-fit:contain;filter:drop-shadow(0 4px 2px #9d7dbb22)}.side-mascots img:first-child{transform:rotate(-12deg)}.side-mascots img:last-child{transform:rotate(10deg)}
.main-title{color:#8c70d2}
.page-heading,.page-heading.compact{background:linear-gradient(105deg,#fff0fc 0%,#fff8fb 58%,#fff0e4 100%);border-color:#f6dff0}
.page-heading:not(.compact){padding-right:33%}.page-heading h2{position:relative;z-index:2}.page-heading p{position:relative;z-index:2}
.hero-scene{display:flex;position:absolute;right:18px;top:auto;bottom:8px;align-items:end;gap:0;width:36%;max-width:390px;height:200px;justify-content:center}
.hero-scene img{width:27%;height:150px;object-fit:contain;filter:drop-shadow(0 7px 4px #74558c2a)}
.hero-scene img:nth-child(1){width:34%;height:188px;transform:rotate(-10deg);z-index:3}
.hero-scene img:nth-child(2){height:150px;transform:translateX(-4px) rotate(4deg);z-index:2}
.hero-scene img:nth-child(3){height:154px;transform:translateX(-9px) rotate(-6deg);z-index:2}
.hero-scene img:nth-child(4){height:160px;transform:translateX(-14px) rotate(9deg);z-index:1}
.heading-sticker{position:absolute;right:40px;bottom:0;width:108px;height:150px;object-fit:contain;filter:drop-shadow(0 6px 3px #7c5a9921)}
.page-heading.compact{padding-right:165px}
.quick-content{position:relative;overflow:hidden}.quick-sticker{position:absolute;top:8px;right:9px;width:72px;height:72px;object-fit:contain;transform:rotate(10deg);filter:drop-shadow(0 4px 4px #c3a9bb33)}.quick-content h3{position:relative;z-index:1}
.nav-item.active{color:#7961c3;background:#f4eafa;border-color:#ead9ef}.nav-item.active .nav-num{color:#9a73d2}
.button.primary{background:#8d73cb;color:#fff}.button.dark{background:#564c82;color:#fff}.button.outlined{border-color:#ddd0eb;color:#7157b2}
.chip,.mini-count{background:#f5eafb;color:#856cbd}.level-chip{background:#f7ecff;color:#8263b2}
.profile-entry.selected,.compare-person.is-current{background:#f6edfa;border-color:#e6d6ee}.profile-avatar{background:#f2e5ff;color:#8062b3}.profile-dot{background:#f6aed0}
.user-control{background:#fff8fc;border-color:#e9dcf1}.profile-add{background:#f6e7ff;color:#8a67bd}
.upload-panel .panel-header,.small-panel .panel-header{border-color:#f5e5ee}
.dropzone{background:#fffbff;border-color:#e2c8e9}.dropzone:hover,.dropzone.dragover{background:#fff2fc;border-color:#bc9cdd}
.panel,.table-wrap{border-color:#eee2f2}.small-panel{background:linear-gradient(#fff4ff,#fff9f1)}
.result-sticker{width:105px;height:115px;display:flex;align-items:center;justify-content:center;position:relative;margin-inline:auto}.result-sticker img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 4px #7b5a8833)}.result-sticker span{position:absolute;bottom:-12px;right:-6px;color:#886bb5;font-size:22px;font-weight:800;transform:rotate(9deg)}
@media(max-width:1100px){.brand-tag,.brand-buddies{display:none}.page-heading:not(.compact){padding-right:39%}.hero-scene{width:41%;right:6px}}
@media(max-width:730px){.brandmark-image{height:34px;width:34px;border-radius:12px}.brand-name{font-size:clamp(14px,3.5vw,19px)}.page-heading:not(.compact){min-height:278px;padding-right:17px;padding-bottom:130px}.page-heading h2{font-size:29px;max-width:100%}.page-heading p{font-size:11px;max-width:92%}.hero-scene{height:126px;max-width:330px;width:90%;left:5%;right:auto;bottom:0}.hero-scene img{height:100px}.hero-scene img:nth-child(1){height:128px}.hero-scene img:nth-child(2),.hero-scene img:nth-child(3){height:100px}.hero-scene img:nth-child(4){height:107px}.page-heading.compact{padding-right:96px;min-height:170px}.page-heading.compact h2{font-size:28px}.heading-sticker{right:6px;width:88px;height:113px}.main-title{font-size:13px}}
@media(max-width:430px){.topbar{gap:5px}.brand{gap:5px}.brandmark-image{width:30px;height:30px}.brand-name{font-size:13px;letter-spacing:-.7px}.main-head .eyebrow{display:none}.main-title{font-size:13px}.page-heading.compact h2{font-size:25px}.quick-sticker{width:60px;height:60px}}

/* v5 sky-blue study theme */
:root{--bg:#f1faff;--card:#fff;--dark:#285574;--ink:#274c66;--muted:#6d91a8;--border:#d9ecf7;--green:#2789c3;--mint:#e4f6ff;--lightmint:#f4fcff;--shadow:0 12px 34px rgba(55,137,189,.09)}
html{background:#f1faff}body{background:linear-gradient(180deg,#e8f7ff 0,#f3fbff 45%,#ffffff 100%);color:var(--ink)}
.topbar{background:rgba(255,255,255,.94);border-bottom-color:#daedf8}
.brand-name{color:#2387be}.brandmark-image{background:#dff4ff}.brand-tag{color:#7cb2cc;border-left-color:#d7ebf7}
.brand-buddies img{width:28px;height:35px;object-fit:contain;margin-left:-3px}
.sidebar{background:linear-gradient(#f5fcff,#e5f6ff);border-color:#d5eaf6}
.side-intro h1 em,.main-title{color:#2d9fce}
.nav-item,.profile-entry{color:#608aa4}.nav-item:hover{background:#e9f7ff}
.nav-item.active{color:#166a9d;background:#dcf2ff;border-color:#c2e4f8}.nav-item.active .nav-num{color:#2087bd}
.user-control,.active-learner{background:#f2faff;border-color:#d4eafa}
.profile-add,.profile-avatar{background:#d8f1ff;color:#228ac4}.profile-dot{background:#5bb5e2}.level-chip{color:#2383b6;background:#e5f6ff}
.page-heading,.page-heading.compact{background:linear-gradient(110deg,#dff4ff 0%,#eefaff 70%,#f8fcff 100%);border-color:#c7e8f9;box-shadow:0 9px 25px rgba(64,163,219,.08)}
.green-dot,.chip,.mini-count{color:#208bc5}.chip,.mini-count{background:#e1f3ff}
.panel,.table-wrap,.quiz-card,.result-panel,.session-panel,.history-panel,.compare-panel,.analytics-panel{border-color:#d7ecf7}
.small-panel{background:linear-gradient(#e7f7ff,#f8fcff)}.button.primary{background:#258cc5;color:white}.button.dark{background:#266c99;color:#fff}.button.outlined{border-color:#bcdff1;color:#277ea8}
.dropzone{background:#f6fcff;border-color:#93c9e8}.dropzone:hover,.dropzone.dragover{background:#e9f7ff;border-color:#409ace}
.message{color:#156ea2;background:#e4f5ff}.notice{background:#eef9ff;border-color:#cdeaf9}.flow-explainer b{color:#2995c8}
.profile-entry.selected,.compare-person.is-current{background:#def3ff;border-color:#b8e1f7}
.quick-content{min-height:193px}
.sky-story{border-radius:22px;margin:0 0 23px;overflow:hidden;border:1px solid #c4e8fa;box-shadow:0 13px 32px rgba(64,153,205,.11);background:#d8f1ff;height:270px}
.sky-story img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 64%}
.cast-gallery{padding:22px 23px 17px;margin-bottom:26px;background:rgba(255,255,255,.89);border:1px solid #d7ebf7;border-radius:21px;box-shadow:0 12px 30px #67a5c31a}
.cast-intro{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cast-intro h3{font-size:21px;letter-spacing:-1px;margin:5px 0 0;line-height:1.4}
.cast-count{font-size:11px;border-radius:99px;padding:7px 10px;color:#247aa4;background:#e2f5ff;font-weight:800;white-space:nowrap}
.cast-group{margin-top:18px}.cast-group h4{margin:0 0 11px;color:#5f90aa;font-size:12px;font-weight:800}
.cast-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
.cast-person{min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;background:#f3faff;padding:9px 5px 10px;border:1px solid #e0f0f9;border-radius:14px}
.cast-image{height:69px;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:11px;background:#e6f6ff}
.cast-image img{width:100%;height:100%;object-fit:contain}
.cast-person strong{font-size:11px;margin-top:4px;color:#31627b;line-height:1.35;word-break:keep-all}
.cast-person small{font-size:9px;color:#83a6ba;line-height:1.2;word-break:keep-all}
.heading-friends{position:absolute;right:25px;bottom:1px;display:flex;align-items:end;gap:1px;height:145px}
.heading-friends img{height:112px;width:80px;object-fit:contain}.heading-friends img:last-child{height:97px;width:71px}
.page-heading.compact:has(.heading-friends){padding-right:175px}
@media(max-width:1200px){.cast-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cast-image{height:88px}}
@media(max-width:730px){.sky-story{height:190px;margin-bottom:15px;border-radius:16px}.cast-gallery{padding:16px 12px}.cast-intro h3{font-size:18px}.cast-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.cast-person{padding:6px 3px 8px}.cast-image{height:68px}.cast-person strong{font-size:10px}.cast-person small{font-size:8px}.heading-friends{right:2px;height:109px}.heading-friends img{width:54px;height:96px}.heading-friends img:last-child{width:50px;height:83px}.page-heading.compact:has(.heading-friends){padding-right:110px}.brand-buddies{display:none}}
@media(max-width:390px){.cast-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cast-intro{align-items:start}.cast-count{font-size:9px}}

/* v6: exact user-provided Pajama Party and Armor reference images */
.sky-story.reference-story {height:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;padding:17px;background:linear-gradient(130deg,#d9f3ff,#eefaff);align-items:stretch}
.reference-story .reference-card {min-width:0;padding:14px;border-radius:17px;background:rgba(255,255,255,.91);border:1px solid #d1e9f5;box-shadow:0 5px 15px rgba(63,128,163,.07);display:flex;flex-direction:column;align-items:center;gap:8px}
.reference-story .reference-label {width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px}
.reference-story .reference-label span {font-size:10px;font-weight:800;letter-spacing:1.1px;color:#83adc5}
.reference-story .reference-label strong {font-size:13px;white-space:nowrap;color:#34738f}
.reference-story .reference-card img {height:228px;max-width:100%;width:100%;object-fit:contain;object-position:center;background:#fff;border-radius:10px}
.reference-note {display:inline-block;font-size:10px;color:#4c96b8;background:#e1f5ff;padding:3px 9px;border-radius:20px;font-weight:700;margin-left:8px;vertical-align:middle}
.cast-group:has(.reference-note) .cast-image {background:#f8fcff;border:1px solid #d7effa}
.cast-group:has(.reference-note) .cast-image img {padding:3px}
@media(max-width:730px){.sky-story.reference-story{grid-template-columns:1fr;gap:12px;padding:12px}.reference-story .reference-card{padding:11px}.reference-story .reference-card img{height:200px}.reference-note{font-size:9px}}


/* v7: two selectable visual themes, mascots as gentle page decoration */
:root,html[data-theme="momonga"]{
  color-scheme:light;
  --bg:#f5fbff;--card:#ffffff;--dark:#195f88;--ink:#28536e;--muted:#718fa2;
  --border:#d5e9f7;--green:#228fbd;--mint:#e0f4ff;--lightmint:#effaff;
  --shadow:0 13px 32px rgba(51,134,181,.085);
  --bg-top:#f5fbff;--bg-bottom:#eaf7ff;--topbar-bg:#ffffffed;
  --sidebar-start:#edf9ff;--sidebar-end:#f9fcff;
  --primary:#288ec1;--primary-strong:#1d719f;--primary-alt:#72c6e9;
  --accent-soft:#e5f5ff;--accent-border:#cbe6f7;--card-glow:rgba(103,197,238,.15);
  --hero-start:#d7f1ff;--hero-end:#f2fbff;--hero-dots:#9ed9f3;
  --text-muted:#6b96a9;--highlight:#59bbec;--badge-bg:#e3f3ff;--badge-ink:#237a9e;
}
html[data-theme="usagi"]{
  --bg:#fdf8f1;--card:#fffefb;--dark:#754a2f;--ink:#634d3a;--muted:#98806b;
  --border:#ebdcc8;--green:#986137;--mint:#f3e6d4;--lightmint:#fff5e9;
  --shadow:0 13px 32px rgba(139,91,55,.09);
  --bg-top:#fffbf6;--bg-bottom:#f5e8d6;--topbar-bg:#fffaf3f0;
  --sidebar-start:#fff1df;--sidebar-end:#fffbf6;
  --primary:#9d683e;--primary-strong:#765032;--primary-alt:#d9a86e;
  --accent-soft:#f8e8d3;--accent-border:#ead4b7;--card-glow:rgba(196,144,94,.16);
  --hero-start:#efd1a9;--hero-end:#fff4e2;--hero-dots:#e0ac70;
  --text-muted:#967658;--highlight:#c1854b;--badge-bg:#f4e4ce;--badge-ink:#855932;
}
body{background:linear-gradient(145deg,var(--bg-top),var(--bg-bottom)) fixed;color:var(--ink);transition:background .25s,color .25s}
.topbar{background:var(--topbar-bg);border-color:var(--border);gap:12px;padding:0 24px}
.brand-name{color:var(--primary-strong);font-size:clamp(16px,1.53vw,22px)}
.brand-tag{color:var(--text-muted);border-color:var(--border);margin-left:0;padding-left:10px}
.brandmark-image{background:var(--accent-soft);border:1px solid var(--accent-border);width:47px;height:47px;border-radius:16px}
.brandmark-image img{max-height:45px;object-fit:contain}
.top-actions{gap:11px;flex-wrap:nowrap}
.theme-switch{display:flex;gap:4px;padding:4px;border:1px solid var(--accent-border);background:var(--accent-soft);border-radius:999px;flex-shrink:0}
.theme-switch button{padding:8px 11px;border:0;background:transparent;border-radius:999px;white-space:nowrap;color:var(--text-muted);font-size:12px;font-weight:800;min-height:33px;line-height:1.3}
.theme-switch button[aria-pressed="true"]{color:#fff;background:var(--primary);box-shadow:0 3px 9px rgba(45,79,105,.13)}
.theme-icon{font-size:13px;margin-right:4px}
.theme-switch button:focus-visible,.user-control select:focus-visible,.nav-item:focus-visible{outline:3px solid var(--highlight);outline-offset:2px}
.sidebar{background:linear-gradient(175deg,var(--sidebar-start),var(--sidebar-end));border-color:var(--border)}
.side-intro{padding-top:0}
.side-intro h1{font-size:25px;color:var(--ink);margin-top:14px}
.side-intro h1 em{color:var(--primary)}
.eyebrow,.section-label,.mini-label{color:var(--text-muted)}
.side-illustration{height:130px;position:relative;margin:20px 0 6px;isolation:isolate}
.side-illustration:before{content:"";position:absolute;left:7%;bottom:0;width:82%;height:92px;background:radial-gradient(circle,var(--accent-soft),transparent 76%);border-radius:50%;z-index:-1}
.side-illustration>img{position:absolute;object-fit:contain;filter:drop-shadow(0 7px 4px rgba(63,102,133,.15))}
.side-illustration>img:first-of-type{height:126px;width:120px;left:56px;bottom:0;z-index:3}
.side-illustration>.side-friend{height:72px;width:69px;left:0;bottom:0;transform:rotate(-8deg);z-index:2}
.side-illustration>.side-helper{height:92px;width:56px;right:0;bottom:-6px;transform:rotate(9deg);opacity:.77;z-index:1}
.cloud-ornament{position:absolute;width:27px;height:10px;border-radius:25px;background:var(--hero-dots);opacity:.45}
.cloud-a{top:13px;left:12px;transform:rotate(-20deg)}.cloud-b{top:35px;right:9px;transform:rotate(17deg)}
.nav-item{color:var(--ink)}.nav-item:hover{background:var(--accent-soft)}
.nav-item.active{background:var(--accent-soft);border-color:var(--accent-border);color:var(--primary-strong)}
.nav-item.active .nav-num{color:var(--primary)}.mini-count{background:var(--badge-bg);color:var(--badge-ink)}
.user-control,.active-learner,.selected-profile-banner{background:var(--card);border-color:var(--accent-border);color:var(--ink)}
.user-control label,.user-control select,.active-learner strong{color:var(--ink)}
.profile-add{background:var(--accent-soft);color:var(--primary)}
.profile-entry.selected,.compare-person.is-current{background:var(--accent-soft);border-color:var(--accent-border)}
.profile-avatar{background:var(--accent-soft);color:var(--primary)}
.profile-dot{background:var(--highlight)}.level-chip{background:var(--badge-bg);color:var(--badge-ink)}
.main{position:relative}
.main-head{margin-bottom:22px}
.main-title{color:var(--primary-strong);font-size:20px}
.page-heading,.page-heading.compact{background:linear-gradient(110deg,var(--hero-start) 0%,var(--hero-end) 84%);border:1px solid var(--accent-border);box-shadow:var(--shadow);isolation:isolate}
.page-heading .section-label{position:relative;z-index:2}
.page-heading:not(.compact){padding-right:35%;min-height:260px}
.page-heading p{max-width:410px;color:var(--text-muted)}
.page-heading h2{font-size:clamp(29px,3.2vw,43px);letter-spacing:-2.2px}
.green-dot{color:var(--highlight)}
.hero-scene{width:42%;height:100%;right:8px;bottom:0;max-width:410px;pointer-events:none;position:absolute;overflow:hidden}
.hero-scene img{position:absolute;width:auto;object-fit:contain;filter:drop-shadow(0 8px 7px rgba(48,101,142,.13));z-index:2}
.hero-scene .hero-leader{height:205px;max-width:56%;right:22%;bottom:0;transform:rotate(5deg);z-index:4}
.hero-scene .hero-friend-one{height:132px;max-width:32%;right:0;bottom:0;transform:rotate(10deg);z-index:3}
.hero-scene .hero-friend-two{height:110px;max-width:29%;left:2%;bottom:0;transform:rotate(-9deg);z-index:3}
.hero-cloud{position:absolute;display:block;background:#fff9;border-radius:60% 60% 30% 30%;bottom:-12px;height:75px}
.hero-cloud-a{left:0;width:63%}.hero-cloud-b{right:0;width:75%;height:90px;opacity:.6}
.sparkle{position:absolute;color:var(--highlight);z-index:2;font-size:25px}
.sparkle-one{top:18px;right:43%}.sparkle-two{top:60px;left:14%;font-size:15px}
.tiny-friends-ribbon{height:78px;margin:-12px 10px 17px;position:relative;display:flex;align-items:center;justify-content:space-between;padding:0 25px 0 24px;border-radius:0 0 20px 20px;background:linear-gradient(95deg,var(--accent-soft),transparent 85%);border:1px solid var(--accent-border);border-top:0;overflow:hidden}
.ribbon-scribble{font-weight:800;color:var(--primary);letter-spacing:1px;font-size:12px;white-space:nowrap}
.ribbon-friends{display:flex;align-items:end;justify-content:flex-end;height:75px;gap:0;opacity:.70;pointer-events:none}
.ribbon-friends img{width:41px;height:69px;object-fit:contain;margin-left:-7px;filter:drop-shadow(0 4px 3px rgba(60,100,115,.13))}
.ribbon-friends img:nth-last-child(-n+3){height:72px;width:32px;margin-left:2px}
.panel,.table-wrap,.quiz-card,.result-panel,.session-panel,.history-panel,.compare-panel,.analytics-panel{border-color:var(--border);box-shadow:var(--shadow);background:var(--card)}
.panel{position:relative}
.panel-header{border-bottom-color:var(--border)}.panel-icon,.sparkle{color:var(--primary)}.chip{background:var(--badge-bg);color:var(--badge-ink)}
.small-panel{background:linear-gradient(135deg,var(--accent-soft),var(--card));}
.dropzone{background:var(--card);border-color:var(--accent-border)}.dropzone:hover,.dropzone.dragover{background:var(--lightmint);border-color:var(--primary-alt)}
.button.primary{background:linear-gradient(125deg,var(--primary),var(--primary-alt));color:white}
.button.dark{background:var(--primary-strong);color:white}
.button.outlined{color:var(--primary-strong);border-color:var(--accent-border);background:var(--card)}
.text-button,.ghost{color:var(--primary)}
.notice,.message{background:var(--accent-soft);border-color:var(--accent-border);color:var(--ink)}
.flow-explainer b{color:var(--primary)}
.quick-content{position:relative;z-index:1;overflow:hidden}.quick-sticker{height:91px;width:85px;right:6px;top:5px;position:absolute;opacity:.80;object-fit:contain}
.corner-sticker{position:absolute;right:8px;top:54px;width:51px;height:59px;object-fit:contain;z-index:1;opacity:.67;pointer-events:none}
.tip-panel{overflow:hidden}.corner-peeker{position:absolute;bottom:-18px;right:-5px;height:65px;width:68px;object-fit:contain;opacity:.42;transform:rotate(-13deg);pointer-events:none}
.share-panel{position:relative}.share-peeker{position:absolute;right:-13px;top:45px;width:80px;height:80px;object-fit:contain;opacity:.50;transform:rotate(10deg);pointer-events:none}
.heading-art{position:absolute;right:17px;bottom:0;height:128px;display:flex;align-items:end;opacity:.83;pointer-events:none}
.heading-art img{height:118px;width:85px;object-fit:contain;filter:drop-shadow(0 6px 3px rgba(83,111,126,.08))}
.heading-art img:last-child{height:92px;width:70px;margin-left:-11px}
.page-heading.compact:has(.heading-art){padding-right:190px}
.quiz-card{position:relative;overflow:hidden}.quiz-peeker{position:absolute;right:4px;top:-13px;height:88px;width:85px;object-fit:contain;opacity:.34;pointer-events:none}
.quiz-card h3,.answer-options{position:relative;z-index:1}
.result-panel{position:relative}.result-sticker img{object-fit:contain}
.compare-panel{position:relative;overflow:hidden}.compare-peeker{position:absolute;right:15px;top:-23px;height:79px;width:54px;object-fit:contain;opacity:.36;pointer-events:none}
.kind-track,.rate-bar,.progress-track{background:var(--accent-soft)}
.kind-track i,.rate-bar i,.progress-track>div{background:var(--primary)}
.stat-card,.compare-person,.profile-edit-row{border-color:var(--border);background:var(--card)}
.selected-profile-banner{background:var(--accent-soft)}
.main::before,.main::after{opacity:.40}
html[data-theme="momonga"] .main::before{background:radial-gradient(circle,#bde9ff 0,transparent 72%)}
html[data-theme="usagi"] .main::before{background:radial-gradient(circle,#efd6b5 0,transparent 72%)}
html[data-theme="usagi"] .main::after{background:radial-gradient(circle,#eedfc9 0,transparent 72%)}
@media(max-width:1180px){.brand-tag{display:none}.top-actions{gap:7px}.topbar{padding:0 17px}.theme-switch button{padding:7px 9px}.brand-name{font-size:17px}}
@media(max-width:920px){.brand-name{font-size:15px;letter-spacing:-.7px}.brandmark-image{width:38px;height:38px}.api-status{display:none}.theme-switch{padding:3px}.theme-switch button{font-size:11px}.page-heading:not(.compact){padding-right:40%}.hero-scene .hero-leader{height:180px}.ribbon-friends img{width:34px}}
@media(max-width:730px){
  .topbar{height:auto;min-height:112px;flex-wrap:wrap;gap:4px;padding:9px 15px;align-content:center}
  .topbar .brand{width:100%;min-height:36px}.topbar .top-actions{width:100%;justify-content:space-between;gap:6px}
  .brand-name{font-size:17px}.brandmark-image{width:38px;height:38px}
  .theme-switch{flex-shrink:0}.theme-switch button{padding:7px 9px}.theme-icon{font-size:12px;margin-right:1px}
  .user-control select{max-width:115px;min-width:76px}
  .shell{min-height:calc(100vh - 112px)}
  .page-heading:not(.compact){min-height:222px;padding:19px 31% 20px 18px}
  .page-heading h2{font-size:clamp(23px,6vw,29px);letter-spacing:-1.3px}
  .page-heading p{font-size:11px}.hero-scene{width:44%;right:0;opacity:1}
  .hero-scene .hero-leader{height:139px;right:14%}.hero-scene .hero-friend-one{height:77px;right:-3%}.hero-scene .hero-friend-two{height:75px;left:-4%}
  .tiny-friends-ribbon{height:63px;padding:0 10px;margin:-12px 4px 16px}
  .ribbon-scribble{font-size:10px}.ribbon-friends{height:62px}
  .ribbon-friends img{height:56px;width:31px;margin-left:-8px}
  .ribbon-friends img:nth-last-child(-n+3){width:24px;height:59px}
  .page-heading.compact:has(.heading-art){padding-right:109px}
  .heading-art{height:88px;right:0}.heading-art img{height:85px;width:60px}.heading-art img:last-child{height:65px;width:44px}
  .main-title{font-size:15px}.main{padding-top:21px}.side-illustration{display:none}
}
@media(max-width:430px){
  .brand-name{font-size:15px}.topbar{padding:8px 10px}
  .top-actions #openHelp{font-size:10px}.theme-switch button{font-size:10px;padding:7px 7px}
  .page-heading:not(.compact){padding-right:29%;min-height:229px}.hero-scene{width:40%}
  .hero-scene .hero-leader{height:123px;right:7%}.hero-scene .hero-friend-one{height:67px}.hero-scene .hero-friend-two{height:57px}
  .ribbon-friends img{height:49px;width:27px;margin-left:-10px}.ribbon-friends img:nth-last-child(-n+3){height:48px;width:21px}
  .ribbon-scribble{font-size:9px}.page-heading h2{font-size:22px}
}

/* v7 finishing details */
html{background:var(--bg-top)}
html[data-theme="usagi"] body{background:linear-gradient(155deg,#fffaf1 0%,#f8eddc 65%,#f0ddc4 100%) fixed}
html[data-theme="momonga"] body{background:linear-gradient(155deg,#f8fdff 0%,#e9f7ff 65%,#e1f2ff 100%) fixed}
.ribbon-friends img,.side-illustration .side-friend,.side-illustration .side-helper,.corner-sticker,.corner-peeker,.share-peeker,.compare-peeker{
  -webkit-mask-image:radial-gradient(ellipse 76% 78% at 50% 50%,#000 48%,transparent 92%);
  mask-image:radial-gradient(ellipse 76% 78% at 50% 50%,#000 48%,transparent 92%);
}
.ribbon-friends{opacity:.62}
.main-hero .hero-scene img{max-height:90%}
.page-heading.compact .heading-art{z-index:0}
.good-rate,.compare-rate{color:var(--primary-strong)}
.chart-label{fill:var(--primary)}
.chart-bottom,.chart-caption{fill:var(--text-muted);color:var(--text-muted)}
.side-add{border-color:var(--accent-border);color:var(--primary)}
.profile-entry,.profile-summary small,.nav-item small{color:var(--text-muted)}
.table-wrap .words-table th,.session-table th{background:var(--accent-soft);color:var(--text-muted)}
.session-table td{border-top-color:var(--border);color:var(--ink)}
.dashboard-head .chip{background:var(--accent-soft)}
/* ensure decorative art never captures clicks */
.hero-scene,.tiny-friends-ribbon .ribbon-friends,.heading-art,.quiz-peeker{pointer-events:none}
@media(max-width:430px){.user-control{padding:4px 2px 4px 5px}.user-control select{min-width:62px;max-width:82px}.profile-add{width:24px;height:24px;font-size:17px}}

/* Mobile: keep mascot artwork clear of the upload instructions. */
@media(max-width:730px){
  .main-hero .hero-copy p{max-width:57%;font-size:10px;line-height:1.65;}
  .main-hero .hero-scene{width:43%;}
}
@media(max-width:430px){
  .main-hero .hero-copy p{max-width:54%;}
  .main-hero .hero-scene{width:43%;right:-3px}
}

@media(max-width:730px){
  .main-hero .hero-scene{left:auto;right:0;top:auto;bottom:0;height:155px;width:46%;}
}
@media(max-width:430px){
  .main-hero .hero-scene{left:auto;right:0;top:auto;bottom:0;height:145px;width:43%;}
  .main-hero .hero-scene .hero-leader{height:108px;}
}

@media(max-width:730px){.main-hero .hero-scene{left:55% !important;right:auto !important;top:auto !important;bottom:0 !important;}}
@media(max-width:430px){.main-hero .hero-scene{left:55% !important;right:auto !important;top:auto !important;bottom:0 !important;}}


/* v8 | transparent sticker system and theme-aware typography */
:root{--card-radius:20px}
.brand-name,.main-title{transition:color .18s ease}
.brand-name{font-weight:850;letter-spacing:-.8px}
.main-hero{overflow:hidden}
.main-hero::after{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 8% 20%,rgba(255,255,255,.65) 0 2px,transparent 3px),radial-gradient(circle at 45% 82%,rgba(255,255,255,.55) 0 3px,transparent 4px);background-size:110px 90px;pointer-events:none;z-index:-1}
/* All PNG decorations have built-in alpha; old vignette masks would incorrectly crop them. */
.ribbon-friends img,.side-illustration .side-friend,.side-illustration .side-helper,.corner-sticker,.corner-peeker,.share-peeker,.compare-peeker{-webkit-mask-image:none!important;mask-image:none!important}
.hero-scene{isolation:isolate}.hero-scene .hero-small{width:65px;height:68px;object-fit:contain;position:absolute;opacity:.87;filter:drop-shadow(0 4px 3px rgba(35,80,100,.12));z-index:2}
.hero-small-a{bottom:5px;left:20%}.hero-small-b{bottom:6px;right:3%}
.hero-scene .hero-leader{z-index:5}.hero-scene .hero-friend-one{right:2%;z-index:4}.hero-scene .hero-friend-two{left:2%;z-index:3}
/* Daily encouragement: text and illustration are distinct columns, no overlap. */
.tiny-friends-ribbon{margin:-11px 10px 22px;height:110px;padding:12px 22px 12px 17px;gap:15px;position:relative;overflow:hidden;border-radius:0 0 23px 23px;background:linear-gradient(96deg,var(--card) 0%,var(--accent-soft) 50%,var(--hero-start) 100%);border:1px solid var(--accent-border);border-top:0;box-shadow:0 10px 24px rgba(55,125,156,.06)}
.daily-note-copy{display:flex;align-items:center;gap:12px;position:relative;z-index:2;flex:0 0 auto;max-width:44%;min-width:260px}
.daily-leader{height:70px;width:77px;object-fit:contain;filter:drop-shadow(0 5px 3px rgba(55,124,157,.18));transform:rotate(-8deg);flex-shrink:0}
.daily-note-text{display:flex;flex-direction:column;gap:2px;white-space:nowrap}
.daily-note-text strong{color:var(--primary-strong);font-size:clamp(16px,1.6vw,23px);font-weight:850;letter-spacing:-.9px}
.daily-note-text span{font-size:12px;color:var(--text-muted)}
.daily-spark{position:absolute;right:-30px;top:1px;color:var(--primary-alt);font-size:22px}
.ribbon-friends{display:flex;align-items:flex-end;justify-content:flex-end;gap:18px;flex:1;min-width:0;height:98px;opacity:.95}
.ribbon-pajamas,.ribbon-armors{display:flex;align-items:flex-end;justify-content:flex-end;gap:1px;height:100%;min-width:0;overflow:visible}
.ribbon-pajamas{padding-top:14px}.ribbon-pajamas img{height:77px;width:58px;margin-left:-9px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(50,80,100,.12))}
.ribbon-pajamas img:nth-child(2),.ribbon-pajamas img:nth-child(3){height:89px;width:67px;margin-left:-7px}
.ribbon-armors img{height:93px;width:47px;margin-left:-4px;object-fit:contain;filter:drop-shadow(0 4px 3px rgba(50,80,100,.12))}
.ribbon-armors img:last-child{height:99px}
.small-panel,.tip-panel,.share-panel,.settings-panel,.history-panel{position:relative}
.mini-helper{position:absolute;right:12px;bottom:16px;max-width:46px;max-height:105px;object-fit:contain;pointer-events:none;opacity:.48;z-index:0}
.small-panel .quick-content{position:relative;z-index:1}.small-panel .quick-content p{max-width:78%}
.tip-back-sticker{position:absolute;right:7px;bottom:14px;width:51px;height:75px;object-fit:contain;pointer-events:none;opacity:.36}
.settings-peeker{position:absolute;right:13px;bottom:6px;height:84px;width:72px;object-fit:contain;pointer-events:none;opacity:.24}
.history-peeker{position:absolute;right:12px;top:61px;height:68px;width:46px;object-fit:contain;pointer-events:none;opacity:.28}
.heading-art{opacity:.94;gap:0}.heading-art img{filter:drop-shadow(0 4px 3px rgba(42,89,109,.10))}
.heading-art .heading-mini{height:72px;width:59px;margin-left:-20px;opacity:.92}
.page-heading.compact:has(.heading-art){padding-right:200px}
.corner-sticker{width:69px;height:75px;right:9px;top:54px;opacity:.28}
.share-peeker{right:-4px;opacity:.46}
.compare-peeker{opacity:.56}
.side-illustration>.side-friend{width:67px;height:70px}.side-illustration>.side-helper{height:106px;width:45px}
/* Main portrait figures only; background supporting cast should not obscure labels or controls. */
.page-heading.compact>div:first-child,.quiz-setup .setting-row,.daily-note-copy{position:relative;z-index:2}
@media(max-width:1200px){.tiny-friends-ribbon{padding-inline:12px;gap:8px}.daily-note-copy{min-width:220px}.ribbon-friends{gap:6px}.ribbon-pajamas img{width:45px}.ribbon-pajamas img:nth-child(2),.ribbon-pajamas img:nth-child(3){width:49px}.ribbon-armors img{width:39px}}
@media(max-width:920px){.ribbon-armors img{width:27px;height:83px}.ribbon-pajamas img{width:35px;height:66px}.ribbon-pajamas img:nth-child(2),.ribbon-pajamas img:nth-child(3){width:41px;height:75px}.daily-note-copy{min-width:190px}.daily-leader{height:65px;width:68px}.daily-note-text span{font-size:10px}.ribbon-friends{gap:5px}}
@media(max-width:730px){
  .topbar{min-height:112px}
  .main-title{font-size:clamp(12px,3vw,16px)}
  .brand-name{font-size:clamp(14px,3.7vw,17px)}
  .tiny-friends-ribbon{height:94px;margin:-8px 2px 17px;padding:8px 9px;gap:3px}
  .daily-note-copy{min-width:0;max-width:60%;gap:3px;flex:1 1 58%}
  .daily-leader{width:54px;height:55px}
  .daily-note-text strong{font-size:clamp(12px,3.6vw,18px)}
  .daily-note-text span{font-size:9px;white-space:normal;line-height:1.3}
  .daily-spark{display:none}
  .ribbon-friends{flex:0 1 40%;gap:2px;height:80px;overflow:visible}
  .ribbon-pajamas{height:71px;overflow:visible}
  .ribbon-pajamas img{height:51px;width:23px;margin-left:-5px}
  .ribbon-pajamas img:nth-child(2),.ribbon-pajamas img:nth-child(3){height:61px;width:26px;margin-left:-6px}
  .ribbon-armors img{width:15px;height:68px;margin-left:-2px}
  .ribbon-armors img:last-child{height:70px}
  .hero-scene .hero-small{width:38px;height:43px}
  .page-heading.compact:has(.heading-art){padding-right:116px}
  .heading-art{height:89px;right:0}.heading-art img{width:50px;height:80px}.heading-art img:last-child{height:59px;width:33px;margin-left:-13px}
  .heading-art .heading-mini{height:49px;width:34px;margin-left:-15px}
}
@media(max-width:390px){
 .daily-leader{width:41px;height:49px}
 .daily-note-copy{max-width:56%}.daily-note-text strong{font-size:12px}
 .ribbon-friends{flex-basis:44%}.ribbon-pajamas img{height:43px;width:20px}.ribbon-pajamas img:nth-child(2),.ribbon-pajamas img:nth-child(3){height:50px;width:22px}
 .ribbon-armors img{height:55px;width:13px}
 .main-title{font-size:12px}
}
@media(prefers-reduced-motion:reduce){body{transition:none}.brand-name,.main-title{transition:none}}

/* v9: dedicated two-theme daily-note artwork. Keep this section uncluttered. */
.tiny-friends-ribbon {
  height:150px!important; margin:-11px 10px 24px!important; padding:20px 31px!important;
  position:relative; display:flex; align-items:center; overflow:hidden; isolation:isolate;
  border-radius:0 0 24px 24px; border:1px solid var(--accent-border); border-top:0;
  background:linear-gradient(105deg,#fff 0%,var(--card) 37%,var(--hero-start) 100%);
  box-shadow:0 14px 30px rgba(50,111,151,.065);
}
.tiny-friends-ribbon::before{content:'';position:absolute;width:180px;height:180px;left:35%;top:-115px;border:1px solid var(--accent-border);border-radius:50%;opacity:.65}
.tiny-friends-ribbon::after{content:'';position:absolute;width:280px;height:120px;right:9%;bottom:-102px;background:var(--accent-soft);border-radius:50%;filter:blur(17px);opacity:.78;z-index:-1}
.daily-note-copy{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:0 0 auto;gap:7px;min-width:0;max-width:none;width:56%;z-index:3}
.daily-kicker{display:inline-flex;align-items:center;gap:7px;padding:5px 11px 5px 9px;border-radius:100px;border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--primary-strong);font-size:10px;font-weight:800;letter-spacing:.7px;line-height:1.3;white-space:nowrap}
.daily-kicker-dot{width:7px;height:7px;background:var(--primary-alt);border-radius:50%;box-shadow:0 0 0 3px rgba(100,185,225,.12)}
.daily-note-text{display:flex;flex-direction:column;gap:3px;white-space:normal}
.daily-note-text strong{color:var(--primary-strong);font-size:clamp(22px,2.35vw,30px);font-weight:850;letter-spacing:-1.4px;line-height:1.35;white-space:nowrap}
.daily-note-text>span{color:var(--text-muted);font-size:13px;letter-spacing:-.3px;line-height:1.4;white-space:normal}
.daily-mark{color:var(--primary-alt)}
.daily-visual{position:absolute;width:48%;height:100%;right:0;bottom:0;z-index:1;pointer-events:none;overflow:hidden}
.daily-glow{position:absolute;inset:10% 5% 8% 0;background:radial-gradient(ellipse at 60% 48%,var(--accent-soft),transparent 74%);filter:blur(12px)}
.daily-artwork{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;object-position:center 49%;opacity:.99;filter:saturate(.93);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 20%,#000 95%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0%,#000 20%,#000 95%,transparent 100%)}
.daily-tiny-star{position:absolute;color:var(--primary-alt);z-index:2;pointer-events:none}
.daily-tiny-star-one{right:47%;top:18%;font-size:16px;opacity:.7}
.daily-tiny-star-two{right:7%;top:9%;font-size:21px;opacity:.55}
html[data-theme="usagi"] .tiny-friends-ribbon{background:linear-gradient(105deg,#fffdf9 0%,#fcf6ed 45%,#f0dcc1 100%);box-shadow:0 14px 30px rgba(132,95,52,.07)}
html[data-theme="usagi"] .daily-kicker-dot{box-shadow:0 0 0 3px rgba(204,156,100,.14)}
@media(max-width:900px){.daily-note-copy{width:60%}.daily-visual{width:49%}.daily-note-text strong{font-size:23px}}
@media(max-width:730px){
  .tiny-friends-ribbon{height:116px!important;padding:13px 13px!important;margin:-7px 3px 17px!important;border-radius:0 0 19px 19px}
  .daily-note-copy{width:62%;gap:6px}
  .daily-kicker{font-size:8px;letter-spacing:0;padding:3px 7px;gap:5px}
  .daily-kicker-dot{width:5px;height:5px}
  .daily-note-text strong{font-size:clamp(16px,4.4vw,21px);letter-spacing:-.8px}
  .daily-note-text>span{font-size:10px;max-width:210px}
  .daily-visual{right:-5px;width:47%;height:100%}
  .daily-artwork{object-position:30% center;-webkit-mask-image:linear-gradient(90deg,transparent,#000 20%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 20%,#000 94%,transparent)}
  .daily-tiny-star-one{right:42%;font-size:11px}.daily-tiny-star-two{right:8%;font-size:14px}
}
@media(max-width:390px){
  .tiny-friends-ribbon{padding:11px 10px!important}
  .daily-note-copy{width:64%}.daily-kicker{font-size:7px}
  .daily-note-text strong{font-size:16px}.daily-note-text>span{font-size:9px}
  .daily-visual{width:43%;right:-6px}
}
@media(prefers-reduced-motion:reduce){.daily-artwork{transition:none}}

/* v10: reserve real layout space for every sticker group. */
html[data-theme="momonga"] .usagi-only{display:none!important}
.main-hero.page-heading:not(.compact){display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:24px;padding:30px;min-height:270px}
.main-hero .hero-copy{min-width:0}
.main-hero .hero-copy p{max-width:none;font-size:13px;line-height:1.8}
.main-hero .hero-scene{position:static;inset:auto!important;display:flex;align-items:flex-end;justify-content:center;gap:12px;width:100%;max-width:none;height:210px;overflow:visible;opacity:1}
.main-hero .hero-scene img{position:static;inset:auto;flex:1 1 0;min-width:0;width:0;max-width:none;height:150px;max-height:none;margin:0;transform:none;object-fit:contain;opacity:1}
.main-hero .hero-scene .hero-leader{height:205px;flex:1.3 1 0;max-width:none}
.side-illustration{display:flex;align-items:flex-end;justify-content:center;gap:9px;height:115px;margin:20px 0 12px}
.side-illustration>img,.side-illustration>img:first-of-type{position:static;inset:auto;transform:none;width:calc((100% - 18px)/3);height:105px;max-width:65px;object-fit:contain;opacity:1}
.side-illustration:before{display:none}
.side-intro{padding-bottom:25px}
.tiny-friends-ribbon{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:22px;height:auto!important;min-height:150px;margin:14px 0 24px!important;padding:20px 26px!important;border:1px solid var(--accent-border);border-radius:22px}
.tiny-friends-ribbon::before,.tiny-friends-ribbon::after{display:none}
.daily-note-copy{width:auto;max-width:none;min-width:0;flex:auto}
.daily-note-text strong{white-space:normal;font-size:26px}
.daily-note-text>span{font-size:12px;max-width:none}
.daily-kicker{white-space:normal;font-size:9px}
.daily-visual.sticker-scene{position:static;inset:auto;display:flex;align-items:flex-end;justify-content:center;gap:12px;width:100%;height:115px;overflow:visible}
.daily-visual .daily-sticker{position:static;flex:1 1 0;min-width:0;width:0;height:105px;max-width:110px;object-fit:contain;filter:drop-shadow(0 5px 4px rgba(48,101,142,.12))}
.page-heading.compact:has(.heading-art){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:24px;margin-bottom:24px;min-height:170px}
.page-heading.compact>div:first-child{min-width:0}
.page-heading.compact h2{font-size:clamp(25px,2.7vw,36px);overflow-wrap:anywhere}
.page-heading.compact p{max-width:none}
.page-heading.compact .heading-art{position:static;inset:auto;display:flex;align-items:flex-end;gap:10px;height:115px;opacity:1}
.page-heading.compact .heading-art img,.page-heading.compact .heading-art img:last-child{width:65px;height:105px;margin:0;transform:none;object-fit:contain}
.page-heading.compact .pajama-party{gap:6px}
.page-heading.compact .pajama-party img{width:50px;height:90px}
.page-heading.compact .quiz-heading-art img{width:92px;height:110px}
.quick-content p,.small-panel .quick-content p{max-width:none}
.share-friends{display:flex;align-items:flex-end;justify-content:flex-end;gap:16px;padding:10px 24px 0;pointer-events:none}
.share-friends img{width:64px;height:76px;object-fit:contain;filter:drop-shadow(0 4px 3px rgba(48,101,142,.10))}
.quiz-card .quiz-peeker{position:static;float:none;display:block;width:72px;height:80px;object-fit:contain;opacity:1;margin:0 auto 18px}
.quiz-card{overflow:visible}
.result-sticker span{position:static;font-size:18px;transform:none}
.topbar{height:auto;min-height:82px;flex-wrap:wrap;gap:12px;padding-block:12px}
.top-actions{flex-wrap:wrap}
.main-head{flex-wrap:wrap}
.active-learner{max-width:100%}
.active-learner strong{overflow-wrap:anywhere;min-width:0}
.panel-header{gap:10px}
.panel-header strong{min-width:0}
.dashboard-actions,.result-buttons{flex-wrap:wrap}
@media(max-width:1100px){
 .main-hero.page-heading:not(.compact){grid-template-columns:1fr;gap:8px;padding:24px}
 .main-hero .hero-scene{height:165px;max-width:360px;justify-self:center}
 .main-hero .hero-scene .hero-leader{height:160px}
 .main-hero .hero-scene img{height:125px}
 .page-heading.compact:has(.heading-art){grid-template-columns:1fr;gap:10px}
 .page-heading.compact .heading-art{justify-content:flex-end;height:90px}
 .page-heading.compact .heading-art img,.page-heading.compact .heading-art img:last-child{height:85px;width:58px}
 .tiny-friends-ribbon{gap:14px;padding:18px!important;grid-template-columns:minmax(0,1fr) minmax(0,.7fr)}
 .daily-note-text strong{font-size:23px}
 .daily-visual.sticker-scene{gap:6px}
}
@media(max-width:730px){
 .side-illustration{display:none}
 .main-hero.page-heading:not(.compact){min-height:0;padding:22px 20px;gap:16px}
 .main-hero .hero-copy p{font-size:12px;max-width:none}
 .main-hero .hero-scene{width:100%;max-width:300px;height:140px}
 .main-hero .hero-scene .hero-leader{height:138px}
 .main-hero .hero-scene img{height:105px}
 .main-hero h2{font-size:30px}
 .tiny-friends-ribbon{grid-template-columns:1fr;gap:14px;min-height:0;margin:12px 0 20px!important;padding:20px!important;border-radius:19px}
 .daily-note-copy{width:100%;max-width:none}
 .daily-note-text strong{font-size:23px}
 .daily-note-text>span{font-size:12px}
 .daily-kicker{font-size:9px}
 .daily-visual.sticker-scene{height:90px;max-width:250px;justify-self:end;gap:12px}
 .daily-visual .daily-sticker{height:85px;max-width:85px}
 .page-heading.compact:has(.heading-art){padding:20px;gap:10px}
 .page-heading.compact h2{font-size:26px}
 .page-heading.compact .pajama-party{justify-content:space-between;gap:8px}
 .page-heading.compact .pajama-party img{width:calc((100% - 24px)/4);max-width:60px;height:80px}
 .top-actions{row-gap:8px}
 .main-head .eyebrow{max-width:none}
 .quiz-card .quiz-peeker{height:65px;width:60px;margin-bottom:16px}
 .selected-profile-banner{flex-wrap:wrap}
}

/* Keep the complete, repaired four-member illustration together. */
.page-heading.compact .pajama-party{width:220px;height:100px;max-width:100%;gap:0;justify-content:center}
.page-heading.compact .pajama-party img,.page-heading.compact .pajama-party img:last-child{width:100%;max-width:none;height:100%;object-fit:contain;margin:0}
@media(max-width:730px){.page-heading.compact .pajama-party{width:220px;height:90px;justify-self:end}.page-heading.compact .pajama-party img,.page-heading.compact .pajama-party img:last-child{width:100%;max-width:none;height:100%}}
@media(max-width:1100px){.quiz-setup,.right-column{grid-template-columns:minmax(0,1fr)}}
@media(max-width:730px){
 .result-stat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}
 .result-stat>div{min-width:0}
 .result-stat strong{font-size:clamp(17px,5vw,25px);overflow-wrap:anywhere}
 .result-stat span{font-size:11px;overflow-wrap:anywhere}
}

/* Cast revision: a quiet walking group below the study panels. */
.side-illustration.sidebar-trio{height:98px;gap:8px}
.side-illustration.sidebar-trio>img,.side-illustration.sidebar-trio>img:first-of-type{height:90px;width:30%;max-width:65px}
.rest-stop{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 28px 0;margin-top:20px}
.rest-copy{display:flex;flex-direction:column;gap:8px;color:var(--text-muted);font-size:13px}
.rest-cast{display:flex;align-items:flex-end;gap:20px;flex-shrink:0}
.rest-cast img{width:76px;height:84px;object-fit:contain}
.armor-walk{display:flex;align-items:flex-end;justify-content:flex-end;gap:24px;padding:12px 36px 20px;pointer-events:none}
.armor-walk img{width:46px;height:124px;object-fit:contain;flex-shrink:0}
.armor-walk img:nth-child(2){height:132px}
@media(max-width:730px){.rest-stop{padding:16px 4px 0;gap:12px}.rest-copy{font-size:11px}.rest-cast{gap:10px}.rest-cast img{width:55px;height:65px}.armor-walk{justify-content:center;gap:24px;padding:18px 12px}.armor-walk img{width:35px;height:94px}.armor-walk img:nth-child(2){height:100px}}

/* Complete groups with independent space; no individual crops. */
.cast-footer{display:flex;align-items:center;justify-content:space-between;gap:36px;padding:24px 28px;margin-top:8px}
.home-pajamas{flex:1;min-width:0;max-width:320px}
.home-pajamas img{display:block;width:100%;height:120px;object-fit:contain}
.cast-footer .armor-walk{flex:0 1 240px;min-width:0;padding:0;display:block}
.cast-footer .armor-walk img{display:block;width:100%;height:180px;object-fit:contain}
@media(max-width:730px){.cast-footer{flex-direction:column;gap:22px;padding:20px 12px}.home-pajamas{width:100%;max-width:280px}.home-pajamas img{height:100px}.cast-footer .armor-walk{flex:auto;width:200px}.cast-footer .armor-walk img{height:155px}}

/* Characters belong to study moments, not a separate footer display. */
.tiny-friends-ribbon{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
.daily-visual.daily-cheer{position:static;inset:auto;width:100%;height:auto;min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px;overflow:visible;padding:4px 0;pointer-events:none}
.daily-cheer img{display:block;width:min(100%,280px);height:95px;object-fit:contain}
.cheer-note{font-size:11px;color:var(--primary-strong);line-height:1.5;letter-spacing:-.2px}
.upload-guide-scene{display:grid;grid-template-columns:minmax(0,1fr) 130px;align-items:center;gap:16px;margin:0 22px 18px;padding:14px 16px;border-radius:16px;background:var(--accent-soft)}
.scene-kicker{font-size:12px;font-weight:700;color:var(--primary-strong)}
.upload-guide-scene p{font-size:11px;line-height:1.7;color:var(--text-muted);margin:7px 0 0}
.upload-guide-scene img{width:130px;height:112px;object-fit:contain;pointer-events:none}
.sidebar-break{margin:12px 20px 22px;padding:18px 12px 0;border-top:1px solid var(--accent-border)}
.break-caption>span{font-size:10px;letter-spacing:2px;color:var(--primary-strong)}
.break-caption p{font-size:12px;line-height:1.8;color:var(--text-muted);margin:8px 0 0}
.break-friends{display:flex;justify-content:flex-end;gap:12px;margin-top:6px}
.break-friends img{width:64px;height:70px;object-fit:contain;pointer-events:none}
@media(max-width:730px){.tiny-friends-ribbon{grid-template-columns:1fr}.daily-visual.daily-cheer{align-items:flex-start;border-top:1px solid var(--accent-border);padding-top:14px}.daily-cheer img{width:230px;max-width:100%;height:80px;align-self:center}.upload-guide-scene{grid-template-columns:minmax(0,1fr) 90px;gap:10px;margin:0 12px 14px;padding:12px}.upload-guide-scene img{width:90px;height:94px}.upload-guide-scene p{font-size:10px}.sidebar-break{display:flex;align-items:center;justify-content:space-between;margin:8px 16px 14px;padding:12px 0 0;gap:12px}.break-caption p{font-size:11px;margin:4px 0 0}.break-friends{margin:0}.break-friends img{width:46px;height:52px}}

/* All 15 selected characters remain present on the home view in either theme. */
.mentor-note{display:flex;align-items:center;gap:14px;margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid var(--accent-border)}
.mentor-note img{width:72px;height:78px;object-fit:contain;flex-shrink:0}
.mentor-note span{font-size:12px;line-height:1.7;color:var(--primary-strong)}
.book-friends{display:flex;align-items:center;gap:10px;padding:16px 22px 0}
.book-friends img{width:48px;height:62px;object-fit:contain;flex-shrink:0}
.book-friends span{font-size:11px;color:var(--text-muted);line-height:1.6}
@media(max-width:730px){.side-illustration.sidebar-trio{display:flex!important;height:74px;max-width:230px;margin:10px auto;gap:18px}.side-illustration.sidebar-trio>img,.side-illustration.sidebar-trio>img:first-of-type{height:70px;width:55px}.sidebar .side-intro{display:block!important}.sidebar .side-intro h1,.sidebar .side-intro>p,.sidebar .side-intro>.eyebrow{display:none}.sidebar .side-intro{padding:0}.mentor-note img{width:60px;height:65px}.book-friends{padding:14px 18px 0}.book-friends img{width:42px;height:54px}}
