.coach-plan{margin:0 0 28px;border-left:4px solid #9aac7c}.coach-plan h2{margin:8px 0}.coach-duration{display:grid;gap:8px;font-size:.85rem;min-width:170px}.coach-plan-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:0;list-style:none;counter-reset:plan;margin:24px 0}.coach-plan-steps li{border-top:1px solid #dce2d3;padding-top:16px;counter-increment:plan}.coach-plan-steps li:before{content:'0' counter(plan);display:block;color:#738462;font-size:.8rem;margin-bottom:8px}.coach-plan-steps strong,.coach-plan-steps span{display:block}.coach-plan-steps span{font-size:.85rem;color:#687366;margin-top:5px}.coach-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:20px 0}.coach-tests{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.coach-tests .wide-card{margin:0}.coach-tests h2{margin:14px 0}.coach-tests p{line-height:1.7}.coach-review,.coach-mistakes{margin-bottom:24px}.coach-score-small{display:block;font-size:1.6rem;margin:20px 0}.coach-history>div{display:grid;grid-template-columns:1fr auto auto;gap:20px;align-items:center;padding:16px 0;border-bottom:1px solid #e4e7dc}.coach-skill-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.coach-skill-grid>div{padding:18px 0;border-top:1px solid #dce2d3}.coach-skill-grid span,.coach-skill-grid strong,.coach-skill-grid small{display:block}.coach-skill-grid strong{font-size:1.8rem;margin:8px 0}.coach-skill-grid small{color:#687366}.coach-mistake{border-top:1px solid #e4e7dc;padding:18px 0}.coach-mistake summary{cursor:pointer}.coach-mistake summary span{display:inline-block;font-size:.8rem;color:#687366}.coach-mistake summary strong{display:block;margin-top:8px;font-weight:500;white-space:pre-line}.coach-question-nav{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.coach-question-nav button{padding:10px;min-width:42px;min-height:44px}.coach-question-nav [aria-current]{background:#304c40;color:white}.coach-question h2,.coach-correction h3{white-space:pre-line;line-height:1.7;overflow-wrap:anywhere}.coach-question{min-height:300px}.coach-question input[type=text],#coach-answer{font-size:1.4rem}.coach-options{border:0;margin:24px 0;padding:0;display:grid;gap:12px}.coach-options legend{font-size:.85rem;margin-bottom:14px;color:#687366}.coach-options label{display:flex;align-items:center;gap:12px;padding:18px;background:#f6f7f1;border:1px solid #dce2d3;border-radius:8px;cursor:pointer}.coach-options label:has(input:checked){border-color:#304c40;background:#eaf0df}.coach-options input{width:20px;height:20px;accent-color:#304c40}.coach-correction{padding:22px;border:1px solid #dce2d3;border-left:4px solid #9aac7c;border-radius:8px;margin:18px 0}.coach-correction.is-wrong{border-left-color:#a76b44}.coach-correction>span{font-size:.8rem}.coach-result h1{font-size:3rem}.coach-result h1 small{font-size:1rem}.coach-result p,.coach-mistake p{line-height:1.7}.coach-exam .coach-actions{justify-content:space-between}.coach-plan .section-head{align-items:start}.coach-plan select{max-width:100%}.coach-question input,.coach-mistakes input{max-width:100%}.coach-plan button:focus-visible,.coach-tests button:focus-visible,.coach-exam button:focus-visible,.coach-options:focus-within{outline:3px solid #82985e;outline-offset:3px}
@media(max-width:760px){.coach-plan-steps,.coach-skill-grid{grid-template-columns:1fr 1fr}.coach-tests{grid-template-columns:1fr}.coach-history>div{grid-template-columns:1fr auto;gap:10px}.coach-history button{grid-column:1/-1}.coach-plan .section-head{flex-direction:column;gap:16px}.coach-plan-steps{gap:18px}.coach-question{padding:22px 18px}.coach-question h2{font-size:1.4rem}.coach-exam .section-head{align-items:start;flex-direction:column;gap:12px}.coach-actions button{min-height:44px}.flash-actions{flex-wrap:wrap}.coach-result h1{font-size:2.4rem}}

.ranking-table-scroll{overflow-x:auto;margin-top:22px}.ranking-table-scroll table{min-width:580px}.ranking-rules p{font-size:.88rem;line-height:1.7}.ranking-rules{margin-top:18px}.wide-card>summary{cursor:pointer;font-weight:600}.coach-question-nav button[aria-label*="đã trả lời"]{border-color:#7f936b}.coach-question-nav button[aria-label*="đã trả lời"]:not([aria-current]){background:#edf1e4}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.meteor-lobby-card{margin-bottom:24px;border-left:4px solid #c47342;background:linear-gradient(135deg,#fffefa 0%,#f7f5ec 100%)}
.meteor-tag{color:#b45c2b}
.meteor-lobby-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:20px 0}
.meteor-practice-controls{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center}
.meteor-practice-controls select{min-height:44px;padding:8px 12px}
.meteor-history-details{margin-top:18px;border-top:1px solid #e4e7dc;padding-top:14px}
.meteor-history-details>summary{cursor:pointer;font-weight:600;font-size:.9rem;color:#485541}
.meteor-arena{min-height:100svh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 20%,#1b2956 0%,#0b1128 58%,#060916 100%);color:#f6f7fb;position:relative;overflow:hidden}
.meteor-topbar{position:relative;z-index:5;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 24px 18px;background:rgba(9,14,34,.82);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.12)}
.meteor-top-left,.meteor-top-right{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.meteor-title{font-size:1.05rem;letter-spacing:-.2px;color:#fff}
.meteor-hearts{display:inline-flex;gap:4px;font-size:1.1rem}
.meteor-heart.lost{opacity:.35;filter:grayscale(1)}
.meteor-wave-count{font-size:.85rem;color:#b8c4e6;background:rgba(255,255,255,.1);padding:4px 10px;border-radius:999px}
.meteor-stat-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);font-size:.9rem;color:#fff}
.meteor-stat-pill.coin strong{color:#ffd666}
.meteor-stat-pill.combo.hot{background:rgba(255,107,43,.22);border-color:#ff8a47;color:#ffd0b0}
.meteor-top-btn{min-height:36px!important;padding:0 12px!important;font-size:.82rem!important;background:rgba(255,255,255,.12)!important;color:#f3f5fc!important;border:1px solid rgba(255,255,255,.2)!important}
.meteor-progress-track{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.12)}
.meteor-progress-track>span{display:block;height:100%;background:linear-gradient(90deg,#68d391,#ecc94b);transition:width .25s ease}
.meteor-sky{flex:1;position:relative;min-height:460px;overflow:hidden;background-image:radial-gradient(2px 2px at 15% 22%,#fff,transparent),radial-gradient(1.5px 1.5px at 38% 14%,#ffe9a8,transparent),radial-gradient(2px 2px at 72% 28%,#fff,transparent),radial-gradient(1.5px 1.5px at 86% 18%,#9ec5ff,transparent),radial-gradient(2px 2px at 24% 62%,#fff,transparent),radial-gradient(1.5px 1.5px at 64% 54%,#fff,transparent)}
.meteor-banner{position:relative;z-index:3;width:max-content;max-width:calc(100% - 32px);margin:14px auto 0;padding:8px 18px;border-radius:999px;font-size:.88rem;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);color:#e2e8f8;text-align:center}
.meteor-banner.hit{background:rgba(46,160,96,.28);border-color:#68d391;color:#d6ffea;font-weight:600}
.meteor-banner.miss{background:rgba(214,69,69,.32);border-color:#fc8181;color:#ffe2e2;font-weight:600}
.meteor-falling{position:absolute;left:var(--meteor-lane,50%);top:56px;transform:translate3d(-50%,var(--meteor-y,0px),0);display:flex;flex-direction:column;align-items:center;z-index:4;will-change:transform;contain:layout style}
.meteor-falling.meteor-hit-pop{transform:translate3d(-50%,var(--meteor-y,0px),0) scale(1.18);opacity:.25;filter:brightness(1.6);transition:transform .14s ease-out,opacity .14s ease-out;pointer-events:none}
.meteor-falling.meteor-miss-drop{transform:translate3d(-50%,var(--meteor-y,0px),0) scale(.92);opacity:.3;filter:grayscale(1);transition:transform .14s ease-out,opacity .14s ease-out;pointer-events:none}
.meteor-fireball{width:88px;height:88px;filter:drop-shadow(0 0 10px rgba(255,136,43,.6))}
.meteor-fireball svg{width:100%;height:100%}
.meteor-clue-card{margin-top:-6px;display:flex;align-items:center;gap:12px;padding:12px 18px;border-radius:14px;background:rgba(255,255,255,.96);color:#1d273b;box-shadow:0 6px 18px rgba(0,0,0,.3);min-width:220px;max-width:340px}
.meteor-audio-btn{width:38px;height:38px;border-radius:50%;background:#4f6ef7;color:#fff;display:grid;place-items:center;font-size:1rem;flex-shrink:0}
.meteor-clue-body{display:grid;gap:3px;text-align:left}
.meteor-day-tag{font-size:.7rem;text-transform:uppercase;letter-spacing:1px;color:#62708a;font-weight:600}
.meteor-vi{font-size:1.08rem;color:#152033;line-height:1.35}
.meteor-slots{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.95rem;letter-spacing:2px;color:#4f6ef7;font-weight:700}
.meteor-turret{position:absolute;inset:auto 0 0 0;height:96px;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
.meteor-turret-cannon{font-size:2.2rem;margin-bottom:-10px;z-index:2;filter:drop-shadow(0 0 8px rgba(104,211,255,.6))}
.meteor-planet-horizon{width:130%;height:74px;border-radius:50% 50% 0 0;background:linear-gradient(180deg,#5b6682 0%,#2d354a 60%,#1a2030 100%);border-top:3px solid rgba(180,204,255,.45);box-shadow:0 -6px 20px rgba(108,149,255,.2)}
.meteor-dock{position:relative;z-index:5;padding:16px 24px 22px;background:rgba(10,15,34,.92);border-top:1px solid rgba(255,255,255,.14);display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px}
.meteor-input-bar{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.96);padding:6px 8px 6px 16px;border-radius:999px;width:min(680px,100%);box-shadow:0 8px 28px rgba(0,0,0,.35)}
.meteor-kana-preview{font-size:.82rem;color:#3d5543;background:#e8f0dc;padding:5px 11px;border-radius:999px;white-space:nowrap;font-weight:600}
#meteor-input{flex:1;border:0;background:transparent;color:#1a2433;font-size:1.1rem;padding:8px 6px;outline:none;min-width:120px}
.meteor-fire-btn{border-radius:999px!important;min-height:40px!important;padding:0 20px!important}
.meteor-dock-actions{display:flex;gap:8px;flex-wrap:wrap}
.meteor-dock-actions button{background:rgba(255,255,255,.12)!important;color:#f4f6fc!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:999px!important;min-height:40px!important;padding:0 15px!important;font-size:.84rem!important}
.meteor-submit-retry{position:relative;z-index:5;max-width:440px;margin:60px auto;padding:24px;border-radius:12px;background:rgba(16,24,48,.92);border:1px solid rgba(255,255,255,.2);text-align:center}
.meteor-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.meteor-review-grid .coach-correction{margin:0}
@media(max-width:760px){.meteor-review-grid{grid-template-columns:1fr}.meteor-topbar{padding:12px 14px}.meteor-dock{padding:12px 14px}.meteor-input-bar{flex-wrap:wrap;border-radius:16px;padding:10px}.meteor-kana-preview{width:100%;text-align:center}}

/* Competition: primary actions first, supporting detail on demand. */
.competition-lobby{display:grid;gap:18px}
.competition-lobby .lobby-card{padding:28px 30px;margin:0;background:#fffefa}
.competition-lobby .meteor-lobby-card{border-left:3px solid #c47342;background:#fffefa}
.lobby-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}
.lobby-heading h2{margin:0;font-size:28px;line-height:1.2}
.lobby-heading p{margin:10px 0 0;color:#687366;font-size:14px}
.lobby-quota{font-size:13px;color:#687366;white-space:nowrap;padding-top:5px;font-variant-numeric:tabular-nums}
.lobby-actions{display:flex;flex-wrap:wrap;align-items:start;gap:10px;margin:22px 0 0}
.lobby-actions button,.lobby-practice>summary{min-height:44px;padding:11px 20px;font-size:14px}
.lobby-practice{max-width:100%}
.lobby-practice>summary{cursor:pointer;border:1px solid #dce2d3;border-radius:8px;list-style:none;font-weight:600}
.lobby-practice>summary:after{content:' +';margin-left:8px;color:#687366}
.lobby-practice[open]>summary:after{content:' −'}
.lobby-practice-body{display:grid;gap:12px;padding:18px 0 4px;max-width:300px}
.lobby-practice-body label,.lobby-practice-body small{font-size:13px;color:#687366}
.lobby-practice-body select{max-width:100%;min-height:44px}
.lobby-details{margin-top:18px;font-size:14px}
.lobby-details>summary,.lobby-archive>summary{cursor:pointer;color:#687366;min-height:44px;display:flex;align-items:center;gap:8px;width:fit-content;list-style:none}
.lobby-details>summary:before,.lobby-archive>summary:before{content:'+';font-size:17px}
.lobby-details[open]>summary:before,.lobby-archive[open]>summary:before{content:'−'}
.lobby-detail-body{border-top:1px solid #e4e7dc;padding-top:18px;margin-top:4px}
.lobby-detail-body h3{font-family:inherit;font-size:16px;margin:16px 0 8px}
.lobby-detail-body p{line-height:1.7}
.lobby-detail-body .ranking-rules{background:none;border:0;padding:0;margin:12px 0 18px}
.lobby-stat-line{padding:16px 0;border-block:1px solid #e4e7dc}
.lobby-archive{margin:12px 0 24px;font-size:13px}
.lobby-details summary:focus-visible,.lobby-practice summary:focus-visible,.lobby-archive summary:focus-visible{outline:3px solid #82985e;outline-offset:3px;border-radius:4px}
.meteor-falling{left:clamp(145px,var(--meteor-lane,50%),calc(100% - 145px));width:280px;max-width:calc(100% - 20px)}
.meteor-clue-card{min-width:0;width:100%;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.meteor-kana-preview{max-width:200px;overflow:hidden;text-overflow:ellipsis}
.meteor-arena button:focus-visible,.meteor-arena input:focus-visible{outline:3px solid #ffcc70;outline-offset:3px}
@media(max-width:600px){.competition-lobby .lobby-card{padding:22px 20px}.lobby-heading{flex-wrap:wrap;gap:12px}.lobby-heading h2{font-size:25px}.lobby-quota{padding:0}.lobby-actions button,.lobby-practice>summary{padding:10px 14px}.lobby-practice-body{max-width:250px}.meteor-sky{min-height:300px}.meteor-falling{width:250px;left:clamp(135px,var(--meteor-lane,50%),calc(100% - 135px))}.meteor-kana-preview{max-width:100%}}
@media(prefers-reduced-motion:reduce){.meteor-falling,.meteor-progress-track>span{transition:none}.meteor-fireball{filter:none}}

/* A compact, colorful snapshot of today's meteor records. */
.meteor-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 0}
.meteor-highlight{position:relative;padding:18px 20px;border:1px solid;border-radius:12px;overflow:hidden}
.meteor-highlight.record{background:linear-gradient(120deg,#fff5d9,#ffedbc);border-color:#edd48f;color:#79520d}
.meteor-highlight.streak{background:linear-gradient(120deg,#fff0e8,#ffdfcb);border-color:#efc1a8;color:#943e1a}
.meteor-highlight.accuracy{background:linear-gradient(120deg,#e7f5ed,#cfebde);border-color:#acd4bf;color:#245b43}
.meteor-highlight dt{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;line-height:1.4}
.meteor-highlight dt span{font-size:21px;line-height:1}
.meteor-highlight dd{margin:12px 0 0;font-size:34px;line-height:1.1;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.meteor-highlight dd small{font-size:14px;font-weight:500}
@media(max-width:600px){.meteor-highlights{gap:8px;margin-top:20px}.meteor-highlight{padding:14px 10px;border-radius:10px}.meteor-highlight dt{align-items:start;flex-direction:column;gap:8px;font-size:11px;min-height:58px}.meteor-highlight dt span{font-size:20px}.meteor-highlight dd{font-size:clamp(21px,6vw,30px);margin-top:8px}.meteor-highlight dd small{font-size:11px}}

/* Account controls and short-screen navigation. */
.sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bac6ac transparent;scrollbar-gutter:stable}
.sidebar>*{flex-shrink:0}
.account-trigger{width:100%;text-align:left;cursor:pointer;min-height:68px;padding-bottom:6px}
.account-trigger .avatar{flex-shrink:0;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.account-copy{min-width:0;flex:1}
.account-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-chevron{color:#7e8e70;font-size:16px}
.account-trigger:hover .avatar{box-shadow:0 0 0 4px #eaf0e0}
.account-trigger:focus-visible,.mobile-account:focus-visible{outline:3px solid #82985e;outline-offset:3px;border-radius:8px}
.account-menu{position:fixed;z-index:90;width:238px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;background:#fffefa;border:1px solid #dce2d3;border-radius:12px;padding:8px;box-shadow:0 12px 38px #293b3126}
.account-menu p{font-size:12px;color:#687366;margin:4px 8px 8px;padding:6px 0 12px;border-bottom:1px solid #e4e7dc;overflow-wrap:anywhere}
.account-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px 12px;border-radius:7px;text-align:left;font-size:14px}
.account-menu button:hover,.account-menu button:focus-visible{background:#eaf0df;outline:2px solid #82985e;outline-offset:-2px}
.mobile-account{display:none;border-radius:50%}
.profile-avatar-editor{display:flex;gap:22px;align-items:center;margin-bottom:20px}
.profile-avatar-editor .avatar{width:88px;height:88px;font-size:40px;overflow:hidden;flex-shrink:0}
.profile-avatar-editor h3{margin:0 0 6px;font-size:17px}
.profile-avatar-editor p{margin:0 0 12px;color:#687366;font-size:13px}
.profile-avatar-editor small{display:block;font-size:11px;color:#687366;margin-top:10px}
.profile-upload{position:relative;cursor:pointer;display:inline-flex;align-items:center;overflow:hidden}
.profile-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.profile-upload:focus-within{outline:3px solid #82985e;outline-offset:2px}
.profile-presets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px}
.profile-presets button{width:44px;height:44px;border-radius:50%;background:#f0f2e7;border:2px solid transparent;font-size:23px}
.profile-presets button[aria-pressed=true]{border-color:#537342;background:#e3edcf}
.profile-presets button:focus-visible{outline:3px solid #82985e;outline-offset:2px}
.profile-body .field{display:grid;gap:7px;margin-top:20px}
.profile-body .field small{font-size:12px;color:#687366}
.profile-body input[readonly]{background:#f0f2eb;color:#687366}
@media(max-width:680px){.sidebar{overflow:visible;scrollbar-gutter:auto}.sidebar .nav{overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain}.mobile-account{display:block}.profile-avatar-editor{align-items:start;gap:15px}.profile-avatar-editor .avatar{width:64px;height:64px;font-size:30px}.profile-avatar-editor .text-button{display:block;margin-top:10px}}
@media(min-width:681px) and (max-height:740px){.sidebar{padding-top:18px;padding-bottom:14px}.sidebar .brand{margin-bottom:16px}.sidebar .journey-note{display:none}.sidebar-bottom{padding-top:12px}.account-trigger{padding-top:14px}}

/* Compact 60-day N5 completion energy meter in top-right corner (1..10, Green to Red warning). */
.page-intro{align-items:flex-start}
.page-intro-right{display:flex;align-items:flex-start;gap:14px;flex-shrink:0}
.coach-energy-corner{position:relative;width:236px;background:#fffefa;border:1px solid #d6e2d0;border-left:3px solid #3c7c54;border-radius:10px;padding:9px 12px;box-shadow:0 2px 10px rgba(41,59,49,.04)}
.coach-energy-corner.zone-watch{border-color:#ead9bd;border-left-color:#d68329;background:#fffdf9}
.coach-energy-corner.zone-danger{border-color:#ebcccc;border-left-color:#c93b3b;background:#fffafa}
.coach-energy-summary{cursor:pointer;list-style:none;user-select:none}
.coach-energy-summary::-webkit-details-marker{display:none}
.coach-energy-summary:focus-visible{outline:2px solid #82985e;outline-offset:4px;border-radius:6px}
.coach-energy-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.coach-energy-title{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:#293b31}
.coach-energy-dot{width:7px;height:7px;border-radius:50%;background:#3c7c54;flex-shrink:0}
.coach-energy-corner.zone-watch .coach-energy-dot{background:#d68329}
.coach-energy-corner.zone-danger .coach-energy-dot{background:#c93b3b}
.coach-energy-pill{display:inline-flex;align-items:baseline;gap:1px;padding:1px 7px;border-radius:999px;font-variant-numeric:tabular-nums;background:#e8f3ec;color:#215437;font-size:11px;font-weight:700}
.coach-energy-corner.zone-watch .coach-energy-pill{background:#fcf0dc;color:#874c0c}
.coach-energy-corner.zone-danger .coach-energy-pill{background:#fbe8e8;color:#8f2121}
.coach-energy-pill strong{font-size:12px}
.coach-energy-pill small{font-size:10px;opacity:.8}
.coach-energy-meter{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;margin:7px 0 6px}
.coach-energy-cell{height:6px;border-radius:3px;background:#e6e9de;transition:background .15s ease}
.coach-energy-corner.zone-danger .coach-energy-cell.is-filled{background:#d64545}
.coach-energy-corner.zone-watch .coach-energy-cell.is-filled{background:#de8a28}
.coach-energy-corner.zone-good .coach-energy-cell.is-filled{background:#3c8c58}
.coach-energy-sub{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:10.5px;color:#687366}
.coach-energy-corner.zone-danger .coach-energy-sub>span:first-child{color:#a82e2e;font-weight:500}
.coach-energy-more{font-size:10px;color:#7a8474}
.coach-energy-more:after{content:' ▾'}
.coach-energy-corner[open] .coach-energy-more:after{content:' ▴'}
.coach-energy-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:45;width:328px;max-width:calc(100vw - 32px);background:#fffefa;border:1px solid #dce2d3;border-radius:12px;padding:14px 16px;box-shadow:0 14px 36px rgba(41,59,49,.16)}
.coach-energy-pop-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}
.coach-energy-tag{color:#2f6b47;font-size:9.5px}
.coach-energy-corner.zone-watch .coach-energy-tag{color:#b46514}
.coach-energy-corner.zone-danger .coach-energy-tag{color:#b82e2e}
.coach-energy-pop-head strong{font-size:13px;font-variant-numeric:tabular-nums}
.coach-energy-headline{font-size:12.5px;font-weight:600;line-height:1.45;color:#293b31;margin-bottom:4px}
.coach-energy-popover .help-text{font-size:11px;line-height:1.55;margin-bottom:10px}
.coach-energy-scale{display:flex;justify-content:space-between;gap:6px;font-size:10px;font-weight:600;padding:6px 8px;border-radius:6px;background:#f5f6ef;margin-bottom:10px}
.coach-energy-scale .scale-danger{color:#b82e2e}
.coach-energy-scale .scale-watch{color:#a85d10}
.coach-energy-scale .scale-good{color:#286840}
.coach-health-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.coach-health-grid>div{padding:8px 10px;border-radius:7px;background:#f8f9f3;border:1px solid #e6eadf}
.coach-health-grid span,.coach-health-grid strong,.coach-health-grid small{display:block}
.coach-health-grid span{font-size:10px;color:#687366;font-weight:600}
.coach-health-grid strong{font-size:13.5px;margin:2px 0;font-variant-numeric:tabular-nums}
.coach-health-grid small{font-size:10px;color:#687366;line-height:1.35}
@media(max-width:680px){.page-intro{flex-direction:column;align-items:stretch;gap:14px}.page-intro-right{justify-content:space-between;width:100%}.coach-energy-corner{flex:1;width:auto}.coach-energy-popover{left:0;right:auto;width:min(328px,calc(100vw - 40px))}}

/* Small, persistent music control; the player lives outside route renders. */
.music-trigger{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:var(--paper,#fffef8);color:#526548;cursor:pointer}
.music-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.music-trigger.is-playing{background:#e7eedc;color:#304c40;border-color:#a8b88e;box-shadow:0 0 0 3px #e7eedc66}
.study-header:has(.music-trigger){flex-wrap:wrap;gap:12px}
.music-trigger:focus-visible,.study-music-panel button:focus-visible,.music-info summary:focus-visible{outline:3px solid #8b9f70;outline-offset:3px}
.study-music-panel{position:fixed;z-index:90;width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:20px;background:#fffef8;border:1px solid #dce3d3;border-radius:16px;box-shadow:0 16px 45px #243b2929;color:#304438;font-size:14px}
.study-music-panel[hidden]{display:none}
.music-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.music-art{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:12px;background:#f1e4e1;color:#956c67;font-size:26px}
.music-heading strong{display:block;font-size:17px}.music-heading small{display:block;margin-top:3px;color:#67755f;font-size:12px}
.music-close{margin-left:auto;background:none;border:0;font-size:25px;line-height:1;padding:8px;color:#64735e;cursor:pointer}
.music-play{width:100%;min-height:44px;padding:10px;border:0;border-radius:8px;color:#fffef8;background:#304c40;font:inherit;font-weight:600;cursor:pointer}
.music-volume{display:block;margin-top:18px;font-size:13px}.music-volume output{float:right;color:#67755f;font-variant-numeric:tabular-nums}.music-volume input{display:block;width:100%;height:28px;margin:7px 0 0;accent-color:#526c46}
.music-status{font-size:12px;line-height:1.6;color:#67755f;margin:10px 0}.music-info{border-top:1px solid #e4e8dd;padding-top:10px;font-size:12px;line-height:1.65}.music-info summary{cursor:pointer;color:#526548}.music-info p{margin-bottom:0}
.music-selection{display:block;font-size:12px;margin-bottom:14px}.music-selection select{display:block;width:100%;margin-top:6px;padding:10px 8px;border:1px solid #dce3d3;border-radius:8px;background:#fffef8;color:#304438;font:inherit;font-size:13px;min-height:42px}
.music-auto{display:flex;align-items:center;gap:7px;margin-top:14px;font-size:12px;line-height:1.5}.music-auto input{width:16px;height:16px;accent-color:#526c46}.music-next{display:block;color:#67755f;font-size:11px;margin:5px 0 0 23px}
body[data-music-scene]{background-color:var(--scene-color);background-image:var(--scene-art);background-position:right top;background-size:cover;background-attachment:fixed}
body[data-music-scene="sakura"]{--scene-color:#faf4f1;--scene-art:url('/scenes/sakura.svg')}
body[data-music-scene="kagome"]{--scene-color:#f1f6ef;--scene-art:url('/scenes/kagome.svg')}
body[data-music-scene="toryanse"]{--scene-color:#f0f2f7;--scene-art:url('/scenes/toryanse.svg')}
body[data-music-scene] .shell,body[data-music-scene] .study-shell{background:transparent}
body[data-music-scene] .topbar,body[data-music-scene] .study-header{background:#fffef8e8}
@media(hover:none),(pointer:coarse){body[data-music-scene]{background-attachment:scroll}.meteor-topbar{backdrop-filter:none;background:rgba(9,14,34,.94)}.meteor-fireball,.meteor-turret-cannon{filter:none}.meteor-falling{will-change:transform;contain:layout style}}
@media(max-width:680px){body[data-music-scene]{background-size:auto 100dvh;background-attachment:scroll}.music-trigger{flex-basis:36px;width:36px;height:36px}.study-music-panel{padding:16px}}

/* One shared header for the page title, energy and utilities. */
.shell > .topbar{height:auto;min-height:110px;padding:0;display:block}
.topbar-inner{max-width:1400px;margin:0 auto;padding:18px 38px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.header-copy{min-width:0;flex:1}.header-copy .crumb{font-size:11px;margin-bottom:5px}
.header-intro h1{font:600 clamp(21px,2vw,29px)/1.25 var(--serif);letter-spacing:-.5px;margin:0;color:var(--ink,#293b31)}
.header-intro p{font-size:12px;color:var(--muted);line-height:1.5;margin:6px 0 0}
.topbar-inner .top-actions{flex-shrink:0;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.topbar-inner .coach-energy-corner{width:202px;flex:none;box-shadow:none;padding:7px 10px}
.topbar-inner .date{display:none}.shell>.main{padding-top:24px}
@media(max-width:1100px){.topbar-inner{padding:16px 26px;gap:18px}.header-intro h1{font-size:24px}.topbar-inner .top-actions{gap:8px}}
@media(max-width:760px){.topbar-inner{flex-wrap:wrap;gap:12px;padding:16px 20px}.topbar-inner>.mobile-brand{display:none}.header-copy{flex-basis:100%}.header-copy .crumb{display:flex}.header-intro h1{font-size:24px}.header-intro p{font-size:12px}.topbar-inner .top-actions{width:100%;justify-content:flex-end}.topbar-inner .coach-energy-corner{margin-right:auto;width:min(202px,calc(100% - 132px));min-width:135px}.topbar-inner .coach-energy-sub>span:first-child{display:none}.topbar-inner .coach-energy-popover{left:0;right:auto;width:min(328px,calc(100vw - 40px))}.shell>.main{padding-top:18px}}

.music-credit{font-size:11px;line-height:1.7;color:#586650;margin:-6px 0 16px}.music-credit a{text-decoration:underline;text-underline-offset:3px}.music-info ul{padding-left:18px}.music-info li{margin:7px 0}
