/* v58.64 — compact live Level + battery HUD. Color tokens work in both themes. */
.mastery-launcher-metrics{display:inline-flex;align-items:center;flex-wrap:wrap;gap:7px;direction:ltr}
.mastery-mini-level,.mastery-mini-battery,.mastery-companion-level-chip,.mastery-companion-energy-chip{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;border-radius:99px;font-variant-numeric:tabular-nums;line-height:1.15;font-weight:900}
.mastery-mini-level{background:#f4d991;color:#583c19;padding:6px 9px;font-size:.72rem;border:1px solid #e1b75e}
.mastery-mini-battery{background:#d9fae8;color:#145c44;padding:6px 9px;font-size:.72rem;border:1px solid #8dd5ae}
.mastery-mini-battery.is-low,.mastery-companion-energy-chip.is-low{background:#ffe2cc;color:#8c3e20;border-color:#edb07e}
.mastery-mini-battery [data-energy-meter],.mastery-companion-energy-chip [data-energy-meter]{display:block;width:25px;height:5px;background:#0002;border-radius:99px;overflow:hidden}
.mastery-mini-battery [data-energy-meter]>i,.mastery-companion-energy-chip [data-energy-meter]>i{display:block;width:100%;height:100%;border-radius:inherit;background:#17aa6d;transition:width .4s ease}
.mastery-mini-battery.is-low [data-energy-meter]>i,.mastery-companion-energy-chip.is-low [data-energy-meter]>i{background:#d97345}
.mastery-report-jump{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center}
.mastery-report-fab{gap:8px;flex-wrap:nowrap;max-width:calc(100vw - 28px)}
.mastery-report-fab .mastery-mini-level{padding:5px 7px;font-size:.68rem}
.mastery-report-fab .mastery-mini-battery{padding:5px 8px;font-size:.68rem}
.mastery-report-fab .mastery-launcher-metrics{gap:4px}
.mastery-report-fab>.mastery-fab-cup{font-size:18px}
.mastery-companion-hud{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:2px auto 8px;direction:ltr}
.mastery-companion-level-chip{padding:7px 12px;background:linear-gradient(120deg,#fff3cb,#ffe1a0);color:#6a4613;border:1px solid #dcb369;box-shadow:0 3px 12px #d0983229;font-size:.79rem}
.mastery-companion-energy-chip{padding:7px 12px;background:linear-gradient(120deg,#d8fbee,#baefda);color:#0d6347;border:1px solid #84d4b2;box-shadow:0 3px 12px #13a4741c;font-size:.79rem}
html[data-theme="dark"] .mastery-mini-level,html[data-theme="dark"] .mastery-companion-level-chip{background:linear-gradient(120deg,#625032,#7e612f);border-color:#b59a5d;color:#ffe7ab}
html[data-theme="dark"] .mastery-mini-battery,html[data-theme="dark"] .mastery-companion-energy-chip{background:linear-gradient(120deg,#205c4e,#235748);border-color:#468f78;color:#d7fff0}
html[data-theme="dark"] .mastery-mini-battery.is-low,html[data-theme="dark"] .mastery-companion-energy-chip.is-low{background:#60382f;border-color:#ae7257;color:#ffe5d1}
.mastery-energy-confirm{width:min(470px,calc(100vw - 26px));max-height:calc(100dvh - 26px);border:1px solid var(--border,#abc9c0);border-radius:24px;background:var(--surface,#fff);color:var(--text,#143d34);padding:0;box-shadow:0 24px 90px #061e1955;overflow:auto}
.mastery-energy-confirm::backdrop{background:#092923ba;backdrop-filter:blur(5px)}
.mastery-energy-confirm-content{padding:clamp(19px,3vw,30px);display:grid;gap:12px;text-align:center}
.mastery-energy-confirm-symbol{display:grid;place-items:center;width:64px;height:64px;margin:auto;border-radius:23px;background:linear-gradient(140deg,#19b37b,#146c58);color:white;font-size:30px;box-shadow:0 9px 30px #16a27850}
.mastery-energy-confirm-kicker{font-size:.73rem;color:var(--muted,#657a73);font-weight:800}
.mastery-energy-confirm h2{font-size:1.28rem;margin:0;color:inherit}
.mastery-energy-confirm p{margin:0;color:var(--muted,#596e68);line-height:1.9;font-size:.88rem}
.mastery-energy-confirm-summary{display:flex;align-items:center;justify-content:space-between;border-radius:15px;background:var(--surface-subtle,#edf7f2);padding:13px 16px;gap:10px;font-size:.86rem}
.mastery-energy-confirm-summary strong{font-size:1.15rem;color:var(--brand,#15875f)}
.mastery-energy-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mastery-energy-confirm-actions button{font:inherit;font-weight:850;min-height:46px;border-radius:13px;border:1px solid var(--border,#c0d5cd);background:var(--surface-subtle,#f2f5f3);color:var(--text,#103e31);cursor:pointer}
.mastery-energy-confirm-actions .mastery-energy-confirm-accept{background:var(--brand,#138b60);color:#fff;border-color:transparent}
.mastery-energy-confirm small{font-size:.71rem;line-height:1.7;color:var(--muted,#697e76)}
.mastery-energy-confirm button:focus-visible{outline:3px solid var(--brand,#14946c);outline-offset:3px}
.mastery-world-layout-options{display:grid;gap:10px;margin:14px 0}.mastery-world-layout-options label{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--border,#d6e1db);border-radius:12px;background:var(--surface-subtle,#f6faf8)}
.mastery-world-layout-options input{accent-color:var(--brand,#16835d)}
@media(max-width:700px){.mastery-report-fab{padding:8px 10px;gap:5px;font-size:.72rem}.mastery-report-fab .mastery-fab-cup{display:none}.mastery-report-fab>[data-mastery-badge-count]{display:none}.mastery-launcher-metrics{gap:4px}.mastery-mini-battery [data-energy-meter]{display:none}.mastery-companion-hud{gap:6px;margin:0 auto 5px}.mastery-companion-energy-chip,.mastery-companion-level-chip{padding:5px 9px;font-size:.72rem}}
@media(max-height:540px){.mastery-companion-hud{margin:0}.mastery-companion-energy-chip,.mastery-companion-level-chip{padding:3px 8px;font-size:.68rem}}
@media(prefers-reduced-motion:reduce){.mastery-mini-battery [data-energy-meter]>i,.mastery-companion-energy-chip [data-energy-meter]>i{transition:none}}

.mastery-companion-rating-chip{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin:0;white-space:nowrap;max-width:100%;padding:7px 12px;border:1px solid var(--border,#b9dbc8);border-radius:99px;background:var(--surface-subtle,#e9f6ee);color:var(--text,#174e3c);font-size:.72rem;font-weight:800;direction:rtl;box-shadow:0 3px 10px #12533c10}
.mastery-companion-rating-chip b{font-variant-numeric:tabular-nums;color:var(--brand,#157e5c);font-size:.82rem}
html[data-theme="dark"] .mastery-companion-rating-chip{background:#1a483b;border-color:#468773;color:#e1ffed}
@media(max-width:700px){.mastery-companion-rating-chip{font-size:.67rem;padding:5px 8px;margin-bottom:0}}

/* v58.66 — the report shortcut is a compact action, never a stretched card. */
.mastery-shell .mastery-report-jump{width:max-content;max-width:min(100%,380px);flex:0 0 auto;flex-wrap:nowrap;gap:8px;padding:9px 13px;min-height:46px;box-sizing:border-box}
.mastery-shell .mastery-report-jump .mastery-launcher-title{white-space:nowrap;flex-shrink:0}
.mastery-shell .mastery-report-jump .mastery-launcher-metrics{flex-wrap:nowrap;min-width:0}
.mastery-shell .mastery-report-fab{width:max-content;max-width:min(calc(100vw - 20px),330px);min-width:0;flex-shrink:0}
@media(max-width:420px){.mastery-shell .mastery-report-jump{max-width:100%;gap:4px;padding:8px 9px;font-size:.72rem}.mastery-shell .mastery-report-jump .mastery-launcher-metrics{gap:3px}.mastery-shell .mastery-report-jump .mastery-mini-level,.mastery-shell .mastery-report-jump .mastery-mini-battery{padding:4px 6px;font-size:.66rem}.mastery-shell .mastery-report-fab{max-width:calc(100vw - 14px)}}
@media(max-width:340px){.mastery-shell .mastery-report-jump [data-energy-meter],.mastery-shell .mastery-report-fab .mastery-fab-cup{display:none}}
