/* Admin tabs, customer inbox, customer file sheet, contact form, site notice.
   Flat mobile style: mint selected tab, minimal borders. */

/* ---------- tab bar ---------- */
.admin-tabs { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; background: var(--card-bg); border-radius: 14px; position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.admin-tab { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.admin-tab-ico { font-size: 1.15rem; line-height: 1; display: inline-flex; }
.admin-tab-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.admin-tab.active { background: var(--accent); color: #fff; }
.admin-tab-badge { position: absolute; top: 3px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: .68rem; line-height: 18px; text-align: center; font-weight: 800; }
.admin-tab-badge[hidden], .admin-pane[hidden] { display: none; }

/* ---------- overview / attention ---------- */
.admin-attention-list { display: flex; flex-direction: column; gap: 6px; }
.admin-attention-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: rgba(34,201,163,.1); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.admin-attention-ico { font-size: 1.2rem; }
.admin-attention-text { flex: 1; font-weight: 600; }
.admin-attention-go { color: var(--muted); font-size: 1.3rem; }
.admin-all-clear { margin: 0; padding: 10px 2px; color: var(--muted); font-weight: 600; }

/* ---------- chips ---------- */
.admin-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.admin-chip { padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(0,0,0,.05); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.admin-chip small { opacity: .7; margin-left: 2px; }
.admin-chip.active { background: var(--accent); color: #fff; }

/* ---------- inputs ---------- */
.admin-input, .admin-textarea, .admin-role-select-lg { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid rgba(0,0,0,.12); border-radius: 10px; background: var(--card-bg); color: var(--text); font: inherit; }
.admin-textarea { min-height: 96px; resize: vertical; }

/* ---------- compact customer row ---------- */
.admin-user-row { align-items: center; gap: 10px; }
.admin-user-row .admin-user-info { flex: 1; min-width: 0; }
.admin-user-row .admin-user-info .w { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-row .admin-user-info .d { overflow: hidden; text-overflow: ellipsis; }
.admin-user-email.unverified { color: #c97a00; }
.admin-link-btn { border: 0; background: transparent; color: var(--accent-dark); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 4px; }
.admin-code-text { word-break: keep-all; overflow-wrap: normal; white-space: nowrap; }

/* ---------- inbox ---------- */
.admin-inbox-list { display: flex; flex-direction: column; }
.admin-ticket-row { width: 100%; border: 0; border-bottom: 1px solid rgba(0,0,0,.06); background: transparent; color: var(--text); font: inherit; text-align: left; display: flex; gap: 10px; padding: 12px 4px; border-bottom: 1px solid rgba(0,0,0,.06); cursor: pointer; }
.admin-ticket-row.is-unread .admin-ticket-main b { font-weight: 800; }
.admin-ticket-row.is-unread::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #e5484d; flex: none; }
.admin-ticket-main { flex: 1; min-width: 0; }
.admin-ticket-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .78rem; }
.admin-ticket-preview { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-ticket-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-compose { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.admin-compose-modes { display: flex; gap: 6px; }
.admin-canned { display: flex; flex-wrap: wrap; gap: 6px; }
.support-badge, .email-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(0,0,0,.06); color: var(--text); }
.support-badge.open { background: #fde7e7; color: #b42318; }
.support-badge.pending { background: #fff1d6; color: #9a6200; }
.support-badge.resolved { background: #dcf6ec; color: #0e7a5f; }

/* ---------- thread (shared with My Account) ---------- */
.support-list { display: flex; flex-direction: column; }
.support-row { display: flex; align-items: center; gap: 8px; padding: 12px 4px; border-bottom: 1px solid rgba(0,0,0,.06); cursor: pointer; background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font: inherit; color: var(--text); }
.support-row.is-unread b { font-weight: 800; }
.support-row-main { flex: 1; min-width: 0; }
.support-back { border: 0; background: transparent; color: var(--accent-dark); font: inherit; font-weight: 700; cursor: pointer; padding: 4px 0; }
.support-thread { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.support-thread-title { font-weight: 800; margin: 4px 0; }
.support-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; background: rgba(0,0,0,.05); align-self: flex-start; }
.support-msg.from-team { background: rgba(34,201,163,.15); align-self: flex-end; }
.support-msg.is-note { background: #fff6cf; align-self: stretch; max-width: 100%; border: 1px dashed #d9b800; }
.support-msg-who { font-size: .72rem; color: var(--muted); margin-bottom: 2px; font-weight: 700; }
.support-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
body.has-support-unread #auth-toggle::after, body.has-support-unread #contact-open-btn::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: #e5484d; vertical-align: middle; }

/* ---------- customer file sheet ---------- */
.admin-sheet-overlay { align-items: flex-end; }
.admin-sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 16px; box-sizing: border-box; position: relative; text-align: left; }
.admin-sheet-close { position: absolute; top: 10px; right: 12px; border: 0; background: rgba(0,0,0,.06); width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.admin-sheet-name { font-size: 1.15rem; font-weight: 800; margin: 0 40px 8px 0; }
.admin-sheet-h { margin: 16px 0 6px; font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.admin-sheet-facts { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.admin-sheet-row { display: flex; justify-content: space-between; gap: 10px; }
.admin-sheet-row .k { color: var(--muted); }
.admin-sheet-tickets { display: flex; flex-direction: column; gap: 4px; }
.admin-danger-h { color: #b42318; }
.admin-danger-btn { color: #b42318; border-color: #f2b8b5; }
.admin-warn { color: #9a6200; font-size: .85rem; }

/* ---------- contact form + banner ---------- */
.contact-card { text-align: left; max-width: 440px; width: calc(100% - 32px); }
.contact-lead { margin: 0 0 10px; color: var(--muted); }
.contact-card label { display: block; margin: 10px 0 4px; font-weight: 700; font-size: .85rem; }
.contact-card input[type=email], .contact-card select, .contact-card textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid rgba(0,0,0,.12); border-radius: 10px; font: inherit; background: var(--card-bg); color: var(--text); }
.contact-card textarea { min-height: 110px; resize: vertical; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.contact-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.site-notice { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #fff4cc; color: #5f4b00; font-size: .9rem; font-weight: 600; }
.site-notice[hidden] { display: none; }
.site-notice-text { flex: 1; }
.site-notice-close { border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; color: inherit; }

/* ---------- footer + auth help link ---------- */
#app-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
.footer-link { border: 0; background: transparent; color: var(--accent-dark); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 8px; text-decoration: underline; }
.auth-help { margin: 10px 0 0; text-align: center; }
.pw-rules li { white-space: nowrap; }

/* ---------- FAQ / help ---------- */
.faq-card { text-align: left; max-width: 480px; width: calc(100% - 32px); max-height: 86vh; display: flex; flex-direction: column; }
.faq-body { overflow-y: auto; flex: 1; min-height: 0; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,.07); }
.faq-item summary { cursor: pointer; padding: 12px 4px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-dark); font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 4px 12px; color: var(--text); line-height: 1.5; }
.faq-foot { margin: 14px 0 4px; text-align: center; font-size: .8rem; color: var(--muted); }
.faq-contact-link { border: 0; background: transparent; padding: 0; font: inherit; font-size: .8rem; color: var(--accent-dark); text-decoration: underline; cursor: pointer; }
.acct-tabs { margin: 4px 0 10px; }

/* =====================================================================
   Customers tab: compact account cards + flat Manage window
   (loaded after style.css, so these win on equal specificity)
   ===================================================================== */

/* The list is part of the page now — no inner scrollbox — so the search /
   sort row above and the cards below share the same right edge. */
#admin-users-grid { max-height: none; overflow: visible; padding-right: 0; gap: 10px; }

/* Sort dropdown: rounded rectangle, not a pill, no shadow */
#admin-users-sort { border-radius: 10px; box-shadow: none; }

/* Card */
#admin-users-grid .wordlist-item.admin-user-row.adm-user { padding: 10px 12px; gap: 8px; border-radius: 14px; box-shadow: none; }
.adm-user-info { gap: 4px; }
.adm-user-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.adm-user-name { font-size: 1rem; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }

/* Role / email-status badges: flat tinted labels (not pills) */
.adm-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 800; line-height: 1.4; white-space: nowrap; background: #e7eeeb; color: #4b5f58; }
.adm-badge[data-role="paid"] { background: #ffe9a8; color: #7a4a00; }
.adm-badge[data-role="admin"] { background: #17463c; color: #7ff0cf; }
.adm-badge.adm-ver.ok { background: #d6f5e8; color: #0b6b57; }
.adm-badge.adm-ver.wait { background: #fde7c4; color: #8a4a00; }

/* Manage: small rounded square, top-right of the card */
.adm-manage-btn { margin-left: auto; flex: none; padding: 6px 12px; border: 1.5px solid var(--accent-dark); border-radius: 8px; background: #fff; color: var(--accent-dark); font: inherit; font-size: .82rem; font-weight: 800; box-shadow: none; cursor: pointer; }
.adm-manage-btn:hover { background: #e9f8f3; }
.adm-manage-btn:active { transform: translateY(1px); }

.adm-email-line { font-size: .86rem; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.adm-email-line.adm-none { color: var(--muted); }

.adm-pending { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-radius: 10px; background: #e8faf3; }
.adm-pending-text { font-size: .82rem; font-weight: 800; color: #0a7d63; }
.adm-pending-btns { display: flex; gap: 6px; }
.adm-sq-btn { padding: 5px 10px; border: 0; border-radius: 8px; font: inherit; font-size: .8rem; font-weight: 800; box-shadow: none; cursor: pointer; }
.adm-sq-go { background: var(--accent); color: #fff; }
.adm-sq-no { background: #fde4e1; color: #b42318; }

/* ---- Manage window: flat rounded-rectangle buttons, no shadows, room at the edges ---- */
.admin-sheet .pill, .admin-sheet button.pill, .admin-sheet .pill.small { border-radius: 10px; box-shadow: none !important; --pill-shadow: transparent; }
.admin-sheet .admin-sheet-danger .admin-danger-btn { box-shadow: none !important; }
.admin-sheet select.admin-role-select, .admin-sheet .admin-sheet-line select { border-radius: 10px; box-shadow: none; }
.admin-sheet .adm-badge { vertical-align: middle; }
.admin-sheet .admin-sheet-list .admin-sheet-line { padding: 8px 16px; }
.admin-sheet .admin-sheet-list .admin-sheet-sec > summary { padding: 8px 16px; }
.admin-sheet .ass-body { padding: 0 16px 14px; }

/* ---- Sort dropdown that opens inside the User Accounts box ---- */
[data-admin-pane="customers"] > .card { position: relative; min-height: 320px; }
.adm-dd { position: relative; display: inline-block; }
.adm-dd-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.adm-dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--accent-dark); border-radius: 10px; background: #fff; color: var(--accent-dark); font-family: var(--font-heading); font-size: .78rem; font-weight: 700; box-shadow: none; cursor: pointer; white-space: nowrap; }
.adm-dd-btn::after { content: "▾"; font-size: .8em; }
.adm-dd-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 4px; list-style: none; min-width: 100%; border: 1.5px solid var(--accent-dark); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(11, 107, 87, .18); }
.adm-dd-menu[hidden] { display: none; }
.adm-dd-menu li { padding: 8px 12px; border-radius: 8px; font-size: .85rem; font-weight: 700; white-space: nowrap; cursor: pointer; color: var(--text); }
.adm-dd-menu li:hover { background: #e9f8f3; }
.adm-dd-menu li.on { background: var(--accent); color: #fff; }

/* ---- Manage window: Role dropdown and Apply are the same height ---- */
.admin-sheet #admin-sheet-role, .admin-sheet #admin-sheet-role-apply { height: 36px; box-sizing: border-box; margin: 0; }
.admin-sheet #admin-sheet-role { padding-top: 0; padding-bottom: 0; line-height: 1; }
.admin-sheet #admin-sheet-role-apply { padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }

/* =====================================================================
   One card style for the whole site — the look of the Overview cards:
   thin accent border, 20px corners, soft flat "ledge" shadow.
   (Loaded last; !important beats the older per-view card overrides.)
   ===================================================================== */
html body :is(.card, .adm-card, .auth-card, .notice-card, .upgrade-card, .dash-card, .mission-card, .qz-start-card, .sp-start-card, .tg-start-card, .tg-over-card, .qz-result-card, .sp-report-card),
html body :is(#view-admincodes, #view-addword, #view-myaccount, #view-quiz, #view-spelling, #view-flashcards, #view-wordlist) .card {
  border: 1px solid var(--outline) !important;
  border-radius: 20px !important;
  box-shadow: 0 3px 0 rgba(11, 107, 87, .12) !important;
}

/* =====================================================================
   Flat controls: no "ledge" shadows on pill buttons; flag language button
   ===================================================================== */

/* Header: login, language, theme */
html body :is(.auth-toggle, #auth-toggle, .lang-toggle, .theme-toggle) { box-shadow: none !important; }
html body .lang-toggle { border: 0 !important; background: transparent !important; padding: 2px 4px; display: inline-flex; align-items: center; line-height: 0; }
html body .lang-toggle .flag-svg { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
html body .lang-toggle:active { transform: translateY(1px); }

/* Top navigation: Learn / Play pop-up menus — no frame, shadow or item borders */
html body .tab-dropdown, html body .tab-dropdown * { border: 0 !important; box-shadow: none !important; }

/* My Progress / My Koala tab pills */
html body :is(#view-stats, #view-koala) .stats-tab, html body :is(#view-stats, #view-koala) .stats-tabs { border: 0 !important; box-shadow: none !important; }

/* Add Word, My added words, Admin: every pill/button/dropdown flat */
html body :is(#view-addword, #view-admincodes) :is(button, .pill, .edit-btn, .retry-btn, .delete-btn, select, .admin-chip, .admin-tab) { box-shadow: none !important; }

/* Home cards + menu tiles + My Progress cards use the same card edge */
html body :is(.review-card, .photo-promo, .landing-tile) {
  border: 1px solid var(--outline) !important;
  border-radius: 20px !important;
  box-shadow: 0 3px 0 rgba(11, 107, 87, .12) !important;
}

/* "Review N words" button on the recommendation card: small, centred, flat */
html body #view-stats .dash-rec .dash-rec-btn {
  display: block; width: auto; min-width: 0; min-height: 0; height: auto; margin: 12px auto 0; padding: 4px 14px;
  font-size: .78rem; line-height: 1.4; border: 0 !important; box-shadow: none !important; transform: none;
}

/* =====================================================================
   Round 2 adjustments
   ===================================================================== */

/* Language dropdown: flag + caret button, borderless menu below it */
html body .lang-toggle { gap: 4px; max-width: none; padding: 2px 4px; }
.lang-caret { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); }
.lang-menu { position: absolute; z-index: 40; padding: 4px; background: #fff; border: 0; border-radius: 8px; box-shadow: 0 4px 14px rgba(10, 60, 50, .12); }
.lang-menu[hidden] { display: none; }
.lang-menu-item { display: flex; align-items: center; justify-content: center; padding: 4px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; line-height: 0; }
.lang-menu-item:hover { background: #e9f8f3; }
.lang-menu-item .flag-svg { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
@media (max-width: 480px) { html body .lang-toggle .flag-svg { width: 26px; height: 17px; } }

/* Home: yellow cards get a yellow-family edge instead of mint */
html body :is(.review-card, .photo-promo) { border-color: #e8bd4f !important; box-shadow: 0 3px 0 rgba(232, 189, 79, .45) !important; }

/* Top navigation pop-ups: mint frame back on the menu itself; items stay flat */
html body .tab-dropdown { border: 1px solid var(--outline) !important; }

/* Account pop-up: Level label + dropdown aligned, full level names visible */
.auth-menu { min-width: 230px; }
.auth-menu label.auth-koala-level { justify-content: space-between; gap: 10px; }
.auth-menu .auth-koala-level select { flex: 1 1 auto; width: auto; min-width: 140px; height: 30px; padding: 0 26px 0 12px; line-height: 28px; text-align: left; text-align-last: left; text-overflow: clip; border-radius: 10px; box-shadow: none; }

/* My Koala: no card borders or shadows (equipped / try-on rings stay) */
html body #view-koala > .card,
html body #view-koala :is(.koala-studio-top, .koala-next, .koala-hero, .koala-subbox, .koala-trophy-wall, .koala-stage, .koala-streak-chip, .koala-studio-coins, .koala-next-pic, .koala-hero-streak, .koala-reason-card, .koala-subd-card),
html body #view-koala .koala-item:not(.is-equipped):not(.is-trying) {
  border: 0 !important;
  box-shadow: none !important;
}

/* Add Word: no outlines on any button (dashed drop zone is not a button) */
html body #view-addword :is(button, .pill, .edit-btn, .retry-btn, .delete-btn) { border: 0 !important; }

/* ===== Round 3: more borders/shadows removed ===== */
html body .select-all-toggle,
html body #custom-word-mgmt-select,
html body .level-bulk-select,
html body #view-addword .my-added-words-header-actions :is(button,select,label) { border: 0 !important; box-shadow: none !important; }
html body :is(.wordlist-item, #wordlist-grid .wordlist-item, #view-flashcards .wordlist-item, #view-addword .wordlist-item):not(.admin-user-row) { border: 0 !important; box-shadow: none !important; }
html body .wordlist-item .delete-btn { background: #ffb3b3 !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
html body .wordlist-item :is(.edit-btn,.retry-btn) { border: 0 !important; box-shadow: none !important; }
html body #view-stats :is(.dash-sum,.dash-cat,.dash-badge-card,.dash-card:not(.dash-rec)) { border: 0 !important; box-shadow: none !important; }
html body #view-stats .dash-rec { border: 1px solid #e8bd4f !important; box-shadow: none !important; }


/* =====================================================================
   Round 4
   1. ONE soft "drop" shadow (the Today's Mission card's) on every big card
   2. Home cards / Add Word paid-member cards: no outline
   3. My Koala: visible category buttons in ONE scrollable row
   ===================================================================== */
:root { --card-drop: 0 3px 0 rgba(11, 107, 87, .12); }

html:root body :is(#view-landing,#view-quiz,#view-spelling,#view-flashcards,#view-wordlist,#view-addword,#view-typegame,#view-timestable,#view-stats,#view-koala,#view-myaccount,#view-admincodes) :is(.card,.adm-card,.mission-card,.review-card,.photo-promo,.landing-tile,.dash-card,.dash-rec,.dash-cat,.dash-sum,.dash-badge-card,.koala-hero,.koala-next,.koala-wallet,.koala-earn,.koala-balance,.koala-trophy-wall,.koala-studio-preview,.sp-start-card,.tg-start-card,.qz-result-card,.sp-report-card,.tg-over-card),
html:root body :is(.card,.adm-card,.mission-card,.review-card,.photo-promo,.landing-tile,.dash-card,.dash-rec,.dash-cat,.dash-sum,.dash-badge-card,.koala-hero,.koala-next,.koala-wallet,.koala-earn,.koala-balance,.koala-trophy-wall,.koala-studio-preview,.sp-start-card,.tg-start-card,.qz-result-card,.sp-report-card,.tg-over-card) {
  box-shadow: var(--card-drop) !important;
}

/* Home: Today's Mission, the two yellow cards and every menu tile lose their outline */
html:root body :is(.mission-card, .review-card, .photo-promo, .landing-tile),
html:root body :is(#view-landing,#view-quiz,#view-spelling,#view-flashcards,#view-wordlist,#view-addword,#view-typegame,#view-timestable,#view-stats,#view-koala,#view-myaccount,#view-admincodes) :is(.mission-card, .review-card, .photo-promo, .landing-tile),
html:root body #view-stats .dash-rec {
  border: 0 !important;
}

/* Add Word > Paid members' words: word cards without the mint outline */
html:root body #paid-words-grid .pw-row,
html:root body #view-addword .pw-row { border: 0 !important; }
html:root:not([data-theme="dark"]) body #paid-words-grid .pw-row { background: #f3faf7; }

/* My Koala: category buttons you have not picked are white so they show on the pale background */
html:root body #view-koala .koala-cat {
  background: #fff; color: var(--accent-dark); border: 0 !important;
  box-shadow: 0 1px 3px rgba(10, 60, 50, .22) !important;
}
html:root body #view-koala .koala-cat.on {
  background: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(20, 160, 130, .35) !important;
}
html:root[data-theme="dark"] body #view-koala .koala-cat { background: #24372f; color: #6ff0cf; box-shadow: none !important; }
html:root[data-theme="dark"] body #view-koala .koala-cat.on { background: var(--accent); color: #04281f; }

/* My Koala: the categories sit in a single row (swipe / arrows / mouse wheel) instead of 2-5 wrapped rows */
#view-koala .koala-cats-wrap { position: relative; margin: 0 0 6px; }
html body #view-koala .koala-cats-wrap .koala-cats {
  display: flex; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important;
  gap: 6px; padding: 5px 2px 7px; scroll-behavior: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
html body #view-koala .koala-cats-wrap .koala-cats::-webkit-scrollbar { display: none; }
html body #view-koala .koala-cats-wrap .koala-cat { flex: 0 0 auto; white-space: nowrap; min-height: 40px; }
#view-koala .koala-cats-wrap.can-right .koala-cats {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
}
#view-koala .koala-cats-wrap.can-left .koala-cats {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 34px); mask-image: linear-gradient(90deg, transparent, #000 34px);
}
#view-koala .koala-cats-wrap.can-left.can-right .koala-cats {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 34px), transparent);
}
html body #view-koala .koala-cats-nav {
  position: absolute; top: 50%; transform: translateY(-55%); z-index: 3; width: 32px; height: 32px; padding: 0;
  display: flex; align-items: center; justify-content: center; border: 0 !important; border-radius: 50%;
  background: #fff; color: var(--accent-dark); font-size: 1.4rem; font-weight: 800; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 5px rgba(10, 60, 50, .35) !important;
}
html body #view-koala .koala-cats-nav[hidden] { display: none; }
html body #view-koala .koala-cats-nav.prev { left: -4px; }
html body #view-koala .koala-cats-nav.next { right: -4px; }
html[data-theme="dark"] body #view-koala .koala-cats-nav { background: #24372f; color: #6ff0cf; }

/* Coin history: "Show more" button (the list itself never gets a scrollbar) */
html body #view-koala .koala-history-more { display: block; margin: 10px auto 0; border: 0 !important; box-shadow: none !important; }


/* =====================================================================
   Round 5
   - not-a-button cards carry no shadow (tricky-words card, My Koala level card, wallet)
   - Coins: wallet stat buttons, Coin history as one card with tile rows, wider "show more"
   - Badges: one merged summary card, badge cards = the other big cards
   - leaf icon glow, tricky-words card layout, "More stats" chart cards, Premium Insights unfold
   ===================================================================== */
html:root body #view-stats .dash-rec,
html:root body #view-koala :is(.koala-hero, .koala-hero-streak, .koala-wallet) { box-shadow: none !important; }

/* Coin wallet: the three small boxes are 3-D buttons */
html:root body #view-koala .koala-wallet-stat {
  border: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 3px 0 rgba(122, 82, 0, .28); transition: transform .12s ease, box-shadow .12s ease;
}
html:root body #view-koala .koala-wallet-stat:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(122, 82, 0, .28); }
html:root body #view-koala .koala-wallet-stat:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(122, 82, 0, .28); }
html:root body #view-koala .koala-wallet-stat:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }

/* Coin history = one card, rows look like the "Earn more Coins" tiles */
html:root body #view-koala .koala-history-card { margin: 0 0 16px; }
html:root body #view-koala .koala-history-card .koala-note { margin: 8px 0 2px; }
html:root body #view-koala .koala-history-card .koala-history { gap: 10px; margin-top: 8px; }
html:root body #view-koala .koala-history-card .koala-history li {
  background: #e9f6f1; border: 0; border-radius: 14px; padding: 10px 12px;
}
html:root[data-theme="dark"] body #view-koala .koala-history-card .koala-history li { background: #1b2b25; }
html body #view-koala .koala-history-card .koala-history-more {
  display: block; width: 100%; max-width: none; min-height: 46px; margin: 14px 0 2px; padding: 12px 18px;
  border: 0 !important; border-radius: 14px; box-shadow: none !important;
  background: #ffe7a8; color: #7a4b00; font-size: .95rem; font-weight: 800;
}
html body #view-koala .koala-history-card .koala-history-more:active { transform: scale(.98); }
html:root[data-theme="dark"] body #view-koala .koala-history-card .koala-history-more { background: #4a3a14; color: #ffd978; }

/* Badges: merged summary card */
.badge-overview {
  display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 16px;
  background: #fff; border-radius: 20px; box-shadow: var(--card-drop);
}
.badge-overview-ico { flex: 0 0 auto; width: 66px; height: 66px; display: grid; place-items: center; font-size: 2.5rem; background: #fff1c9; border-radius: 20px; }
.badge-overview-main { flex: 1; min-width: 0; }
.badge-overview-count { display: flex; align-items: baseline; gap: 6px; line-height: 1.1; }
.badge-overview-count b { font-family: var(--font-heading); font-size: 2rem; color: var(--accent-dark); }
.badge-overview-count span { font-size: 1.05rem; font-weight: 700; color: var(--muted); }
html body .badge-overview .badge-summary { margin: 4px 0 8px; }
html body .badge-overview .badge-meter { margin: 0 0 8px; }
html body .badge-overview .badge-hint { margin: 0; }
html:root[data-theme="dark"] .badge-overview { background: #172420; }
html:root[data-theme="dark"] .badge-overview-ico { background: #3a3220; }

/* Badge cards use the same edge as every other big card */
html:root body :is(#view-koala, #view-stats) .badge-card { border: 0 !important; box-shadow: var(--card-drop) !important; }

/* Leaf (replaces the flame) */
html body .koala-flame { filter: drop-shadow(0 0 6px rgba(46, 204, 160, .55)); }
html body .koala-flame:not(.on) { filter: grayscale(.9); }

/* My Progress > tricky-words / next-up card: compact, big square button at the right, chips fill the rows */
html:root body #view-stats .dash-rec {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text side" "words words";
  column-gap: 14px; row-gap: 8px; align-items: start; padding: 12px 14px;
}
html:root body #view-stats .dash-rec .dash-rec-text { grid-area: text; min-width: 0; }
html:root body #view-stats .dash-rec .dash-rec-side { grid-area: side; display: flex; flex-direction: column; align-items: center; gap: 6px; }
html:root body #view-stats .dash-rec .dash-rec-words { grid-area: words; margin: 0; }
html:root body #view-stats .dash-rec .dash-rec-koala { position: static; width: 46px; height: 46px; margin: 0; }
html:root body #view-stats .dash-rec .dash-title { margin: 2px 0 2px; font-size: 1.15rem; }
html:root body #view-stats .dash-rec .dash-reason { margin: 0; font-size: .9rem; }
html:root body #view-stats .dash-rec .dash-rec-today { display: block; text-align: left !important; margin: 3px 0 0; padding: 0; font-size: .8rem; opacity: .85; }
html:root body #view-stats .dash-rec .dash-rec-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: clamp(76px, 22vw, 92px); height: clamp(76px, 22vw, 92px); min-width: 0; min-height: 0; margin: 0; padding: 6px;
  border: 0 !important; border-radius: 22px; background: #fff; color: var(--accent-dark);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .14) !important; cursor: pointer; font-family: var(--font-heading); line-height: 1.15; text-align: center;
}
html:root body #view-stats .dash-rec .dash-rec-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .14) !important; }
html:root body #view-stats .dash-rec .dash-rec-btn-ico { font-size: 1.5rem; }
html:root body #view-stats .dash-rec .dash-rec-btn-txt { font-size: .74rem; font-weight: 800; }
html:root body #view-stats .dash-rec .dash-rec-words-label { display: block; margin: 0 0 6px; font-size: .78rem; font-weight: 800; }
html:root body #view-stats .dash-rec .dash-rec-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
html:root body #view-stats .dash-rec .dash-rec-chips li {
  flex: 1 1 auto; min-width: 72px; text-align: center; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); font-weight: 700; font-size: .88rem;
}
html:root body #view-stats .dash-rec .dash-rec-chips li.more { flex: 0 0 auto; min-width: 0; background: rgba(255, 255, 255, .5); }

/* My Progress > More stats: cards show their chart, no outline/shadow, not clickable */
html:root body #view-stats #stats-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
html:root body #view-stats .stat-card {
  display: block; text-align: left; cursor: default; padding: 14px; border: 0 !important; box-shadow: none !important; background: #fff;
}
html:root body #view-stats .stat-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
html:root body #view-stats .stat-card-nums .num { margin: 0; }
html:root body #view-stats .stat-card .chart-title { margin: 8px 0 4px; }
html:root body #view-stats .stat-card .chart-svg { display: block; width: 100%; height: auto; }
html:root[data-theme="dark"] body #view-stats .stat-card { background: #172420; }

/* Premium Insights: tap to unfold the details */
html:root body #stats-insights-card { cursor: pointer; }
html:root body #stats-insights-card .premium-gate-overlay { display: none !important; }
html:root body #stats-insights-card.premium-gate > * { pointer-events: auto; opacity: 1; }
html:root body #stats-insights-card.premium-gate > .insights-sample { opacity: .6; }
.insights-hint { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .82rem; font-weight: 800; color: var(--accent-dark); }
.insights-chev { display: inline-block; transition: transform .4s ease; }
#stats-insights-card.is-open .insights-chev { transform: rotate(180deg); }
.insights-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2, .8, .2, 1); }
#stats-insights-card.is-open .insights-detail { grid-template-rows: 1fr; }
.insights-detail-inner { overflow: hidden; min-height: 0; }
.insights-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.insights-steps li {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #eef9f5;
  opacity: 0; transform: translateY(16px) scale(.97);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .9, .3, 1.25);
}
#stats-insights-card.is-open .insights-steps li { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .06s); }
.insights-steps b { display: block; font-family: var(--font-heading); font-size: .98rem; }
.insights-steps p { margin: 2px 0 0; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.insights-step-ico { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.6rem; background: #fff; border-radius: 12px; }
#stats-insights-card.is-open .insights-step-ico { animation: ins-pop .6s calc(.2s + var(--i) * .06s) both; }
@keyframes ins-pop { 0% { transform: scale(.4) rotate(-14deg); } 60% { transform: scale(1.18) rotate(6deg); } 100% { transform: none; } }
.insights-cta { margin: 12px auto 2px; display: block; opacity: 0; transition: opacity .4s ease .65s; }
#stats-insights-card.is-open .insights-cta { opacity: 1; }
#stats-insights-card:not(.premium-gate) .insights-cta { display: none; }
#stats-insights-card.is-open .insights-sample-bars i { transform-origin: bottom; animation: ins-grow .8s ease both; }
#stats-insights-card.is-open .insights-sample-bars i:nth-child(2) { animation-delay: .08s; } #stats-insights-card.is-open .insights-sample-bars i:nth-child(3) { animation-delay: .16s; }
#stats-insights-card.is-open .insights-sample-bars i:nth-child(4) { animation-delay: .24s; } #stats-insights-card.is-open .insights-sample-bars i:nth-child(5) { animation-delay: .32s; }
#stats-insights-card.is-open .insights-sample-bars i:nth-child(6) { animation-delay: .4s; } #stats-insights-card.is-open .insights-sample-bars i:nth-child(7) { animation-delay: .48s; }
@keyframes ins-grow { from { transform: scaleY(.08); } to { transform: scaleY(1); } }
html:root[data-theme="dark"] .insights-steps li { background: #1b2b25; }
html:root[data-theme="dark"] .insights-step-ico { background: #0f1815; }
@media (prefers-reduced-motion: reduce) {
  .insights-detail, .insights-steps li, .insights-cta, .insights-chev { transition: none !important; }
  #stats-insights-card.is-open :is(.insights-step-ico, .insights-sample-bars i) { animation: none !important; }
}

/* Round 6: plain stat boxes flat */
html:root body #view-stats #stats-grid .stat-box { border: 0 !important; box-shadow: none !important; background: #fff; }

/* Round 6: admin page - no mint outlines; shadows kept; nested cards tinted so they read apart from the white parent */
html:root body :is(#view-admincodes, .admin-sheet) :is(.card, .adm-card, .admin-attention-card, .admin-email-details, .admin-email-log, .admin-email-test, .admin-koala-table, .admin-sheet-tile, .admin-sheet-emailrow, .admin-role-select) {
  border: 0 !important;
}
html:root body #view-admincodes :is(.card, .adm-card, .admin-attention-card, .admin-email-details, .admin-email-log, .admin-email-test) {
  box-shadow: var(--card-drop) !important; background: #fff;
}
/* inner tiles: tinted, flat */
html:root body #view-admincodes :is(.wordlist-item, .admin-ticket-row, .admin-koala-table-row, .admin-email-log-row, .admin-email-details .aed-row, .admin-koala-chip, .adm-pending),
html:root body .admin-sheet :is(.admin-sheet-tile, .admin-sheet-emailrow) {
  border: 0 !important; box-shadow: none !important; background: #eef6f2 !important;
}
html:root body .admin-sheet .admin-sheet-tile.is-hot { background: #fff1e0 !important; }
html:root body #view-admincodes .adm-user .admin-user-actions { border-top-color: rgba(11,107,87,.12) !important; }
html:root[data-theme="dark"] body #view-admincodes :is(.wordlist-item, .admin-ticket-row, .admin-koala-table-row, .admin-email-log-row, .admin-email-details .aed-row, .admin-koala-chip, .adm-pending),
html:root[data-theme="dark"] body .admin-sheet :is(.admin-sheet-tile, .admin-sheet-emailrow) { background: #243730 !important; }
html:root[data-theme="dark"] body .admin-sheet .admin-sheet-tile.is-hot { background: #3a2c1c !important; }

/* Round 7: breathing room above the gray level card (Coins + Badges tabs) */
html:root body #view-koala .koala-hero { margin-top: 22px !important; }

/* Round 8: tricky-words card, even more compact */
html:root body #view-stats .dash-rec { padding: 10px 12px; row-gap: 6px; column-gap: 12px; align-items: center; }
html:root body #view-stats .dash-rec .dash-eyebrow, html:root body #view-stats .dash-rec .dash-rec-koala { display: none !important; }
html:root body #view-stats .dash-rec .dash-rec-side { gap: 0; }
html:root body #view-stats .dash-rec .dash-rec-btn {
  width: 72px; height: 72px; gap: 3px; border-radius: 20px; padding: 4px;
  background: #22c9a4; color: #fff; box-shadow: 0 3px 0 #139c7d !important;
}
html:root body #view-stats .dash-rec .dash-rec-btn:active { box-shadow: 0 1px 0 #139c7d !important; }
html:root body #view-stats .dash-rec .dash-rec-btn-ico { display: grid; place-items: center; line-height: 0; }
html:root body #view-stats .dash-rec .dash-rec-btn-txt { color: #fff; font-size: .72rem; }
html:root body #view-stats .dash-rec .dash-rec-words-label { margin: 0 0 4px; }
html:root body #view-stats .dash-rec .dash-rec-chips { gap: 5px; }
html:root body #view-stats .dash-rec .dash-rec-chips li {
  flex: 0 0 auto !important; min-width: 0 !important; padding: 3px 10px; font-size: .84rem; line-height: 1.35;
  box-shadow: none !important;
}

/* Round 9: My Progress > Mistakes / Parent tabs, compact badge summary */
/* Round 11: Mistakes — underline English/Math tabs + sticky bottom action bar */
html:root body #stats-panel-wrong .wrong-subtabs {
  display: flex; gap: 20px; margin: 0 0 12px; padding: 0; border-radius: 0; background: transparent; box-shadow: none;
  border-bottom: 2px solid #d3f0e5;
}
html:root body #stats-panel-wrong .wrong-subtab {
  flex: 0 0 auto; position: relative; min-height: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important;
  color: #5f736b !important; font-weight: 800; font-size: .95rem; padding: 6px 2px 9px; justify-content: flex-start; display: inline-flex; align-items: center; gap: 6px;
}
html:root body #stats-panel-wrong .wrong-subtab.on { color: #0b6b57 !important; background: transparent !important; }
html:root body #stats-panel-wrong .wrong-subtab.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: #22c9a4;
}
html:root body #stats-panel-wrong .wrong-subtab-count {
  display: inline-grid; place-items: center; background: #d3f0e5; color: #0b6b57; border-radius: 99px; padding: 0 8px; min-width: 28px; height: 26px;
  font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; line-height: 1;
}
html:root body #stats-panel-wrong .wrong-subtab.on .wrong-subtab-count { background: #22c9a4; color: #fff; }
/* bottom action bar (sticky inside the page scroll) */
/* the card clips its sun decoration with overflow:hidden, which would trap sticky; clip does not */
html:root body .scene-card:has(#stats-panel-wrong) { overflow: clip !important; }
html:root body #stats-panel-wrong .wrong-list { margin-bottom: 8px; }
html:root body #stats-panel-wrong .wrong-actions {
  position: sticky; bottom: 8px; z-index: 5; display: flex; gap: 8px; margin: 12px 0 0; padding: 10px 12px;
  background: #bfeadb; border: 2px solid #22c9a4; border-radius: 18px; box-shadow: 0 -4px 16px rgba(10, 60, 50, .10);
}
@media (max-width: 560px) {
  html:root body #stats-panel-wrong .wrong-actions { bottom: 72px; }
}
html:root body #stats-panel-wrong .wrong-actions .pill {
  flex: 1 1 0; min-height: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 0 !important; font-size: .95rem; line-height: 1;
  box-shadow: 0 3px 0 rgba(11, 107, 87, .22) !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
html:root body #stats-panel-wrong .wrong-actions .pill.accent { background: #22c9a4; color: #fff; box-shadow: 0 3px 0 #139c7d !important; }
html:root body #stats-panel-wrong .wrong-actions .pill:not(.accent) { background: #fff; color: #0b6b57; box-shadow: 0 3px 0 rgba(11, 107, 87, .22) !important; }
html:root body #stats-panel-wrong .wrong-actions .pill:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(11, 107, 87, .25) !important; }
html:root body #stats-panel-wrong .wrong-actions svg { width: 18px; height: 18px; }
html:root[data-theme="dark"] body #stats-panel-wrong .wrong-actions { background: #24453b; border-color: #22c9a4; }
html:root[data-theme="dark"] body #stats-panel-wrong .wrong-actions .pill:not(.accent) { background: #24372f; color: #6ff0cf; }
/* Top tab: long/short label; short label (no count) on narrow screens */
html:root body .stats-tab .stats-tab-short { display: none; }
@media (max-width: 560px) {
  html:root body .stats-tab .stats-tab-long { display: none; }
  html:root body .stats-tab .stats-tab-short { display: inline; }
  html:root body .stats-tab[data-stats-tab="wrong"] .stats-tab-count { display: none !important; }
}
/* word cards: no outline, everything on one line */
html:root body #stats-panel-wrong .wrong-item { border: 0 !important; box-shadow: none !important; background: #fff; padding: 8px 10px 8px 14px; min-height: 0; }
html:root body #stats-panel-wrong .wrong-main { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; }
html:root body #stats-panel-wrong .wrong-main > * { display: inline; margin: 0; }
html:root body #stats-panel-wrong .wrong-word { flex: 0 0 auto; }
html:root body #stats-panel-wrong .wrong-def { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html:root body #stats-panel-wrong .wrong-meta { flex: 0 0 auto; margin-left: auto; }
html:root body #stats-panel-wrong .wrong-speak { border: 0 !important; box-shadow: none !important; }
html:root body #stats-panel-wrong .wrong-remove {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0 !important; box-shadow: none !important;
  border-radius: 50%; background: #ff9a9a !important; color: #fff !important;
}
html:root body #stats-panel-wrong .wrong-remove:active { background: #ff7f7f !important; }
html:root[data-theme="dark"] body #stats-panel-wrong .wrong-item { background: #1b2b25; }
html:root[data-theme="dark"] body #stats-panel-wrong .wrong-subtab { color: #93aaa1 !important; }
html:root[data-theme="dark"] body #stats-panel-wrong .wrong-subtab.on { color: #6ff0cf !important; }

/* Parent tab: nothing outlined; tiles are buttons with the standard soft shadow */
html:root body #stats-panel-parent :is(.pr-range, .pr-tile, .pr-tips li, .pr-tricky li, .pr-actions .pill, .pr-share-menu, .pr-share-item) {
  border: 0 !important; box-shadow: none !important;
}
html:root body #stats-panel-parent .pr-range { background: rgba(255, 255, 255, .7); }
html:root body #stats-panel-parent .pr-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
html:root body #stats-panel-parent .pr-tiles .pr-tile {
  font: inherit; color: inherit; text-align: center; cursor: pointer; background: #fff; border-radius: 18px; padding: 12px 6px;
  box-shadow: var(--card-drop) !important; transition: transform .12s ease, box-shadow .12s ease;
}
html:root body #stats-panel-parent .pr-tiles .pr-tile:hover { transform: translateY(-2px); }
html:root body #stats-panel-parent .pr-tiles .pr-tile:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(11, 107, 87, .12) !important; }
html:root body #stats-panel-parent .pr-tile:focus-visible { outline: 3px solid #22c9a4; outline-offset: 2px; }
html:root body #stats-panel-parent .pr-tips li { background: #fff7dc; }
html:root body #stats-panel-parent .pr-tricky li { background: #fff; }
@media (max-width: 640px) {
  html:root body #stats-panel-parent .pr-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  html:root body #stats-panel-parent .pr-tiles > .pr-tile { grid-column: span 2; min-height: 0; }
  html:root body #stats-panel-parent .pr-tiles > .pr-tile:nth-child(n+4) { grid-column: span 3; min-height: 0; }
}
/* activity lines: bold title, thick coloured bar */
html:root body #stats-panel-parent .pr-acts { display: grid; gap: 8px; margin: 6px 0 14px; }
html:root body #stats-panel-parent .pr-act { background: #fff; border-radius: 14px; padding: 9px 12px 10px; --c: #22c9a4; }
html:root body #stats-panel-parent .pr-act:nth-child(2) { --c: #f0a020; }
html:root body #stats-panel-parent .pr-act:nth-child(3) { --c: #5b83f0; }
html:root body #stats-panel-parent .pr-act:nth-child(4) { --c: #f06a5b; }
html:root body #stats-panel-parent .pr-act:nth-child(5) { --c: #9b6cf0; }
html:root body #stats-panel-parent .pr-act-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
html:root body #stats-panel-parent .pr-act-name { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; color: #17463c; }
html:root body #stats-panel-parent .pr-act-num { font-weight: 800; font-size: .92rem; color: var(--c); }
html:root body #stats-panel-parent .pr-act-bar { height: 14px; border-radius: 999px; background: #e3eee9; overflow: hidden; }
html:root body #stats-panel-parent .pr-act-bar i { display: block; height: 100%; border-radius: 999px; background: var(--c); transition: width .5s ease; }
html:root body #stats-panel-parent .pr-act.is-empty .pr-act-name, html:root body #stats-panel-parent .pr-act.is-empty .pr-act-num { color: var(--muted); }
html:root[data-theme="dark"] body #stats-panel-parent :is(.pr-tile, .pr-act, .pr-tricky li) { background: #1b2b25; }
html:root[data-theme="dark"] body #stats-panel-parent .pr-act-name { color: #e5f4ee; }
html:root[data-theme="dark"] body #stats-panel-parent .pr-act-bar { background: #2b3f37; }
html:root[data-theme="dark"] body #stats-panel-parent .pr-tips li { background: #3a3220; }
/* copy / share: short, flat */
html:root body #stats-panel-parent .pr-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
html:root body #stats-panel-parent .pr-actions .pill { min-height: 34px; height: 34px; padding: 0 16px; border-radius: 12px; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
html:root body #stats-panel-parent .pr-actions .pill:not(.accent) { background: #fff; color: #0b6b57; }

/* Koala badges: compact summary, flat */
html:root body :is(#view-koala, #view-stats) .badge-overview { box-shadow: none !important; border: 0 !important; padding: 10px 14px; gap: 12px; margin: 0 0 10px; }
.badge-overview-ico { width: 46px; height: 46px; font-size: 1.8rem; border-radius: 14px; }
.badge-overview-count b { font-size: 1.5rem; }
.badge-overview-count span { font-size: .95rem; }
html body .badge-overview .badge-summary { margin: 2px 0 6px; font-size: .9rem; }
html body .badge-overview .badge-meter { margin: 0 0 4px; }
html body .badge-overview .badge-hint { font-size: .76rem; margin: 0; }

html:root body :is(#view-koala, #view-stats) .badge-overview .badge-overview-count { display: none; }
html:root body :is(#view-koala, #view-stats) .badge-overview .badge-hint { color: var(--muted); font-weight: 600; }

/* Round 10 ------------------------------------------------------------ */
/* Home: no tinted tiles; touch devices never keep a "hovered" fill after a tap */
html:root:not([data-theme="dark"]):not([data-theme="ivory"]) body .landing-tile.landing-tile-highlight { background: #fff !important; }
html:root:not([data-theme="dark"]):not([data-theme="ivory"]) body .landing-tile.landing-tile-highlight .landing-tile-icon { background: var(--bg) !important; border-color: var(--outline) !important; }
@media (hover: none) {
  html:root body .landing-tile:hover { transform: none; background: #fff; }
  html:root:not([data-theme="dark"]) body .landing-tile:hover .landing-tile-icon { background: var(--bg); border-color: var(--outline); }
  html:root body .landing-tile:hover .landing-tile-title { color: var(--text); }
  html:root body .landing-tile:hover .landing-tile-desc { color: var(--muted); }
}

/* Stat popups: icon + title + value on a single line */
.stat-sheet-head { display: block; padding-right: 48px; margin-bottom: 4px; }
.stat-sheet-head > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.stat-sheet-head { display: flex; align-items: center; gap: 8px; }
.stat-sheet-ico { font-size: 1.35rem; line-height: 1; flex: 0 0 auto; }
.stat-sheet-head > div { flex: 1; min-width: 0; }
.stat-sheet-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--accent-dark); }
.stat-sheet-big { display: inline-flex; align-items: baseline; gap: 5px; margin-left: auto; white-space: nowrap; }
.stat-sheet-big b { font-size: 1.25rem; color: var(--accent-dark); }
.stat-sheet-big span { font-size: .84rem; font-weight: 700; color: var(--muted); }

/* Parent tab: date chip (calendar icon + period) */
html:root body #stats-panel-parent button.pr-range {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font: inherit; font-weight: 800; font-size: .88rem;
  color: var(--accent-dark); background: #fff; cursor: pointer; border: 0 !important; box-shadow: none !important;
}
html:root body #stats-panel-parent button.pr-range:hover { background: #f2fbf8; }
html:root body #stats-panel-parent button.pr-range:active { transform: translateY(1px); }
.pr-range-ico { flex: 0 0 auto; }
.pr-range-caret { font-size: .7rem; opacity: .7; }

/* Tips: white cards so they read on the yellow panel */
html:root body #stats-panel-parent .pr-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html:root body #stats-panel-parent .pr-tips li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 11px 14px; line-height: 1.4; color: #223; font-weight: 600; }
.pr-tip-ico { flex: 0 0 auto; }
html:root[data-theme="dark"] body #stats-panel-parent .pr-tips li { background: #1b2b25; color: #e5f4ee; }

/* Popups */
.pr-modal-backdrop { z-index: 2200; }
.pr-modal { padding-top: 18px; }
.pr-modal-head { display: flex; align-items: center; gap: 8px; margin: 0 40px 10px 0; }
.pr-modal-head h3 { margin: 0; font-family: var(--font-heading); font-size: 1.1rem; color: var(--accent-dark); }
.pr-modal-ico { font-size: 1.3rem; }
.pr-modal-text { margin: 4px 0 12px; line-height: 1.5; }
.pr-modal-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.pr-modal-btns .pill { min-height: 38px; padding: 0 18px; border-radius: 12px; border: 0 !important; font-size: .9rem; background: #e8f3ee; color: #0b6b57; box-shadow: none !important; }
.pr-modal-btns .pill.accent { background: #22c9a4; color: #fff; box-shadow: 0 3px 0 #139c7d !important; }
.pr-modal-btns .pill:disabled { opacity: .6; }
.pr-modal-q { margin: 12px 0 0; font-weight: 800; font-size: 1rem; }
.pr-modal-msg { margin: 8px 0 0; color: #d6453f; font-weight: 700; font-size: .88rem; }
.pr-modal-done { text-align: center; padding: 8px 0 0; }
.pr-modal-done-ico { font-size: 2.6rem; }
.pr-modal-done h3 { margin: 6px 0; font-family: var(--font-heading); color: var(--accent-dark); }
.pr-modal-done .pr-modal-btns { justify-content: center; }
/* Send-report preview */
.pr-mail-card { background: #f1faf6; border-radius: 16px; padding: 12px 14px; }
.pr-mail-range { font-weight: 800; color: var(--accent-dark); margin-bottom: 8px; }
.pr-mail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.pr-mail-stats b { display: block; font-family: var(--font-heading); font-size: 1.15rem; color: var(--accent-dark); }
.pr-mail-stats span { font-size: .7rem; color: var(--muted); line-height: 1.2; display: block; }
.pr-mail-modes { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px dashed rgba(11, 107, 87, .25); display: grid; gap: 3px; font-size: .88rem; }
.pr-mail-modes li { display: flex; justify-content: space-between; }
.pr-mail-tricky { margin-top: 8px; font-size: .86rem; } .pr-mail-tricky span { font-weight: 800; color: var(--accent-dark); }
.pr-mail-to { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; padding: 10px 14px; background: #f6f6f8; border-radius: 12px; font-size: .92rem; }
.pr-mail-to span { color: var(--muted); font-weight: 700; flex: 0 0 auto; } .pr-mail-to b { overflow-wrap: anywhere; }
/* Share sheet */
.pr-share-preview { margin: 0 0 14px; padding: 10px 12px; max-height: 120px; overflow: auto; background: #f6f9f8; border-radius: 12px; font: inherit; font-size: .8rem; white-space: pre-wrap; color: var(--muted); }
.pr-share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.pr-share-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: .76rem; font-weight: 700; color: var(--text); text-decoration: none; cursor: pointer; }
.pr-share-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; transition: transform .12s ease; }
.pr-share-opt:hover .pr-share-ico { transform: translateY(-2px); }
.pr-share-opt:active .pr-share-ico { transform: scale(.94); }
/* Calendar */
.pr-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pr-presets button { border: 0; background: #e8f3ee; color: #0b6b57; font: inherit; font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.pr-presets button:hover { background: #d3f0e5; }
.pr-cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 6px; }
.pr-cal-nav b { font-family: var(--font-heading); }
.pr-cal-nav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #eef5f2; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--text); }
.pr-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.pr-cal-wd { text-align: center; font-size: .74rem; font-weight: 800; color: var(--muted); padding: 4px 0; }
.pr-cal-day { position: relative; height: 38px; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .92rem; color: var(--text); cursor: pointer; border-radius: 0; }
.pr-cal-day.in { background: #d3f0e5; }
.pr-cal-day.start, .pr-cal-day.end { background: #22c9a4; color: #fff; }
.pr-cal-day.start { border-radius: 999px 0 0 999px; } .pr-cal-day.end { border-radius: 0 999px 999px 0; }
.pr-cal-day.start.end { border-radius: 999px; }
.pr-cal-day.today:not(.start):not(.end) { color: #0b6b57; text-decoration: underline; }
.pr-cal-day.has::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #f0a020; }
.pr-cal-day.start.has::after, .pr-cal-day.end.has::after { background: #fff; }
.pr-cal-day.is-future { opacity: .3; cursor: default; }
.pr-cal-sel { margin: 10px 0 0; text-align: center; font-weight: 800; color: var(--accent-dark); font-size: .9rem; }
html:root[data-theme="dark"] .pr-mail-card, html:root[data-theme="dark"] .pr-share-preview, html:root[data-theme="dark"] .pr-mail-to { background: #1b2b25; }
html:root[data-theme="dark"] .pr-cal-day.in { background: #24453b; }

/* Round 12: overview review button, account page */
html:root body #view-stats .dash-rec .dash-rec-btn-ico { font-size: 0; line-height: 0; }
html:root body #view-stats .dash-rec .dash-rec-btn-txt { font-size: .92rem; font-weight: 800; color: #0b6b57; }
html:root body #view-stats .dash-rec .dash-rec-btn { gap: 6px; }

html:root body #view-myaccount .card { border: 0 !important; box-shadow: var(--card-drop, 0 3px 0 rgba(11, 107, 87, .12)) !important; }
html:root body #view-myaccount .pill,
html:root body #view-myaccount button.pill { border: 0 !important; box-shadow: none !important; }
html:root body #view-myaccount .pill:not(.accent):not(.primary),
html:root body #view-myaccount .pill.neutral { background: #22c9a4 !important; color: #fff !important; }
html:root body #view-myaccount .admin-chip { border: 0 !important; box-shadow: none !important; }
html:root body #view-myaccount .stat-box { border: 0 !important; box-shadow: none !important; background: #e4f6ef !important; }
html:root[data-theme="dark"] body #view-myaccount .stat-box { background: #24372f !important; }

/* Round 13: send-report popup */
.pr-modal-send .pr-modal-head { flex-wrap: wrap; row-gap: 4px; }
.pr-auto { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .82rem; font-weight: 800; color: #0b6b57; cursor: pointer; }
.pr-auto input { width: 20px; height: 20px; accent-color: #22c9a4; margin: 0; cursor: pointer; }
.pr-auto-msg { margin: 0 0 8px; font-size: .8rem; color: #0b6b57; }
.pr-mail-stats { grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pr-mail-stats b { font-size: 1.05rem; }
.pr-mail-tricky span { margin-right: 14px; }
.pr-modal-send .pr-modal-q { margin-top: 2.4em; }
.pr-modal-send .pr-modal-btns .pill.accent { box-shadow: none !important; }

/* Round 13: coin wallet header on one line: coin, title, total */
html:root body #view-koala .koala-wallet-top > div { display: flex; align-items: center; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; min-width: 0; }
html:root body #view-koala .koala-wallet-val { font-size: 2rem; }
html:root body #view-koala .koala-wallet-lbl { font-size: 1.05rem; }

/* Round 14: the send-report window closes with Cancel only */
.pr-modal-send > .stat-sheet-close { display: none; }
.pr-modal-send .pr-modal-head { margin-right: 0; }

/* Round 15: "My added words" header (Option F) — Edit mode, Select All + Delete row */
html:root body #my-added-words-card .my-added-words-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; }
html:root body #my-added-words-card .my-added-words-header-actions { display: flex; flex-wrap: wrap; gap: 8px; width: auto; margin-left: auto; justify-content: flex-end; }
html:root body #my-added-words-card .my-added-words-header-actions > :is(#custom-word-mgmt-select, #custom-export-btn, #custom-upload-btn) { width: auto; height: 36px; min-height: 36px; }
html:root body #my-added-words-card #custom-edit-toggle {
  height: 36px; min-height: 36px; padding: 0 18px; border: 0 !important; border-radius: 12px; box-shadow: none !important;
  background: #22c9a4 !important; color: #fff !important; font-weight: 800; font-size: .9rem; width: auto;
}
html:root body #my-added-words-card #custom-edit-toggle.is-done { background: #d3f0e5 !important; color: #0b6b57 !important; }
html:root body #my-added-words-card .cw-select-row { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; }
html:root body #my-added-words-card .cw-select-row[hidden] { display: none; }
html:root body #my-added-words-card .cw-select-row :is(.select-all-toggle, #custom-delete-selected-btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; min-height: 36px; padding: 0 14px; margin: 0;
  border: 0 !important; border-radius: 999px; box-shadow: none !important; font-family: inherit; font-size: .88rem; font-weight: 800; line-height: 1; width: auto; white-space: nowrap;
}
html:root body #my-added-words-card .cw-select-row .select-all-toggle { background: #d3f0e5; color: #0b6b57; }
html:root body #my-added-words-card .cw-select-row .select-all-toggle input { width: 18px; height: 18px; margin: 0; }
html:root body #my-added-words-card .cw-select-row #custom-delete-selected-btn { background: #ffd9d9; color: #b84b4b; }
html:root body #my-added-words-card .cw-select-row #custom-delete-selected-btn:disabled { opacity: .55; }
html:root body #my-added-words-card .cw-select-row #custom-delete-selected-btn.error:not(:disabled) { background: #ff8f8f; color: #fff; }
html:root body #my-added-words-card .cw-select-count { margin-left: auto; font-size: .85rem; font-weight: 800; color: #0b6b57; }
html:root[data-theme="dark"] body #my-added-words-card .cw-select-row .select-all-toggle { background: #24453b; color: #6ff0cf; }
html:root[data-theme="dark"] body #my-added-words-card #custom-edit-toggle.is-done { background: #24453b !important; color: #6ff0cf !important; }
html:root[data-theme="dark"] body #my-added-words-card .cw-select-count { color: #6ff0cf; }
html:root body #my-added-words-card .my-added-words-header > h3 { flex: 1 1 170px; width: auto; min-width: 0; margin: 0; }
html:root body #my-added-words-card .my-added-words-header-actions { flex: 0 1 auto; }

/* Round 16: admin pages */
/* coin "Recent adjustments": no outline, each row a tinted card */
html:root body #view-admincodes #admin-koala-recent { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
html:root body #view-admincodes #admin-koala-recent .admin-koala-log-row {
  border: 0 !important; box-shadow: none !important; background: #eef6f2 !important; border-radius: 14px; padding: 12px 14px; margin: 0;
}
html:root[data-theme="dark"] body #view-admincodes #admin-koala-recent .admin-koala-log-row { background: #243730 !important; }
/* sign-up codes: the row wraps on phones instead of being cut off, no sideways scrollbar */
html:root body #admin-codes-grid { overflow: visible; }
html:root body #admin-codes-grid .wordlist-item { flex-wrap: wrap; row-gap: 8px; min-width: 0; overflow: visible; }
html:root body #admin-codes-grid .wordlist-item-main { flex: 1 1 200px; min-width: 0; }
html:root body #admin-codes-grid .wordlist-item > div:last-child { margin-left: auto; }
@media (max-width: 520px) {
  html:root body #admin-codes-grid .admin-code-text { font-size: .9rem; letter-spacing: 0; }
}
/* recent emails: show the whole list instead of a clipped scroll box */
html:root body #view-admincodes .admin-email-log { max-height: none; overflow: visible; display: grid; gap: 8px; border: 0 !important; background: transparent !important; box-shadow: none !important; }
html:root body #view-admincodes .admin-email-log-row { border-radius: 12px; border-bottom: 0; }
html:root body #view-admincodes .admin-email-log-row:nth-child(even) { background: #eef6f2 !important; }

/* Round 18: admin Settings tab - email system tidy (flat tiles, no nested card, readable log) */
html:root body #view-admincodes #admin-email-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0; margin: 0 0 18px; overflow: visible; border-radius: 0; }
html:root body #view-admincodes #admin-email-details .aed-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 14px; border-radius: 14px; border: 0; font-size: .78rem; grid-column: span 2; }
html:root body #view-admincodes #admin-email-details .aed-row:nth-child(n+4) { grid-column: span 1; }
html:root body #view-admincodes #admin-email-details .aed-row b { white-space: normal; overflow-wrap: anywhere; font-size: .95rem; }
html:root body #view-admincodes #admin-email-test-form { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0; margin: 0 0 6px; }
html:root body #view-admincodes #admin-email-test-form input { max-width: none; }
html:root body #view-admincodes .admin-email-log-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when st" "to st"; gap: 2px 10px; align-items: center; padding: 10px 14px; }
html:root body #view-admincodes .admin-email-log-row > span:nth-child(1) { grid-area: when; color: var(--muted); font-size: .74rem; }
html:root body #view-admincodes .admin-email-log-row > .to { grid-area: to; font-weight: 600; word-break: normal; overflow-wrap: anywhere; }
html:root body #view-admincodes .admin-email-log-row > :is(.st-sent, .st-failed) { grid-area: st; font-size: 1.1rem; }
html:root body #view-admincodes .admin-email-log-row .err { grid-column: 1 / -1; grid-area: auto; }
html:root body #view-admincodes .admin-email-log-row:nth-child(even) { background: #eef6f2 !important; }

/* Round 19: mobile - code + Copy/Delete on one line */
@media (max-width: 520px) {
  html:root body #admin-codes-grid .wordlist-item { flex-wrap: nowrap; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; }
  html:root body #admin-codes-grid .wordlist-item-main { flex: 1 1 auto; min-width: 0; }
  html:root body #admin-codes-grid .admin-code-text { font-size: .8rem; letter-spacing: 0; white-space: nowrap; }
  html:root body #admin-codes-grid .wordlist-item > div:last-child { margin-left: 0; flex: 0 0 auto; }
  html:root body #admin-codes-grid .wordlist-item > div:last-child > div { gap: 4px !important; flex-wrap: nowrap; }
  html:root body #admin-codes-grid .wordlist-item button { padding: 7px 10px; font-size: .78rem; white-space: nowrap; min-height: 0; }
}

/* Round 20: mobile - compact coin log cards (2 lines: date/user/amount, reason/status) */
@media (max-width: 640px) {
  html:root body #view-admincodes #admin-koala-recent .admin-koala-log-row { grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-areas: "date user amount" "reason reason status"; gap: 2px 10px; padding: 9px 14px; }
  html:root body #view-admincodes #admin-koala-recent .admin-koala-log-date { grid-area: date; }
  html:root body #view-admincodes #admin-koala-recent .admin-koala-log-user { grid-area: user; }
  html:root body #view-admincodes #admin-koala-recent .admin-koala-log-amount { grid-area: amount; justify-self: end; }
  html:root body #view-admincodes #admin-koala-recent .admin-koala-log-reason { grid-area: reason; grid-column: auto; }
  html:root body #view-admincodes #admin-koala-recent .admin-koala-log-status { grid-area: status; grid-column: auto; justify-self: end; }
}

/* Round 21: desktop - coins tab column headers line up with the rows (fixed column widths shared by head + rows) */
@media (min-width: 901px) {
  html:root body #view-admincodes :is(.admin-koala-table-head, .admin-koala-table-row) { grid-template-columns: minmax(120px, 1fr) 110px 310px 160px; column-gap: 12px; }
  html:root body #view-admincodes .admin-koala-table-head { padding: 0 14px 6px; }
  html:root body #view-admincodes .admin-koala-table-row { padding: 6px 14px; }
}
@media (min-width: 641px) {
  html:root body #view-admincodes :is(.admin-koala-log-head, #admin-koala-recent .admin-koala-log-row) { grid-template-columns: 76px minmax(90px, 1fr) 110px minmax(100px, 1.3fr) 90px; column-gap: 12px; }
  html:root body #view-admincodes .admin-koala-log-head { padding: 0 14px; }
  html:root body #view-admincodes #admin-koala-recent .admin-koala-log-status { justify-self: start; }
}
@media (min-width: 901px) { html:root body #view-admincodes .admin-koala-table-head > span:last-child { text-align: right; } }

/* Round 22: login / sign-up modal - flat buttons, no cut-off on big screens, amber sign-up colour, plan rows */
html:root body #auth-overlay .auth-card { max-height: calc(100dvh - 32px); overflow-y: auto; max-width: 400px; }
html:root body #auth-overlay :is(button.pill, .plan-card, .auth-link) { border: 0 !important; box-shadow: none !important; --pill-shadow: transparent; }
html:root body #auth-overlay button.pill.neutral { background: #eef6f2; color: var(--text); }
html:root[data-theme="dark"] body #auth-overlay button.pill.neutral { background: #243730; color: #e8f3ee; }
/* sign-up uses a warm amber, clearly different from the mint Log In button */
html:root body #auth-overlay button.pill.primary { background: #ffbf47; color: #4a3000; }
html:root body #auth-overlay button.pill.primary:hover { background: #ffb324; }
html:root body #auth-overlay button.pill.primary:disabled { opacity: .6; }
/* plan picker: two full-width rows, title never wraps */
html:root body #auth-overlay .plan-picker { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
html:root body #auth-overlay .plan-card { display: grid; grid-template-columns: minmax(0, 1fr) 22px; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #eef6f2; }
html:root body #auth-overlay .plan-card strong { grid-column: 1; font-size: .95rem; white-space: nowrap; }
html:root body #auth-overlay .plan-card span { grid-column: 1; font-size: .78rem; }
html:root body #auth-overlay .plan-card::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #b9d8cd; }
html:root body #auth-overlay .plan-card.is-active { background: #d6f3e7; box-shadow: none !important; }
html:root body #auth-overlay .plan-card.is-active::after { background: var(--accent-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: none; }
html:root body #auth-overlay #signup-plan-premium-btn { background: #fff4d6; }
html:root body #auth-overlay #signup-plan-premium-btn::after { box-shadow: inset 0 0 0 2px #f0cf86; }
html:root body #auth-overlay #signup-plan-premium-btn.is-active { background: #ffe9a8; }
html:root body #auth-overlay #signup-plan-premium-btn.is-active::after { background-color: #e39a00; }
html:root[data-theme="dark"] body #auth-overlay .plan-card { background: #243730; }
html:root[data-theme="dark"] body #auth-overlay .plan-card.is-active { background: #2f5a49; }
html:root[data-theme="dark"] body #auth-overlay #signup-plan-premium-btn { background: #3a3220; }
html:root[data-theme="dark"] body #auth-overlay #signup-plan-premium-btn.is-active { background: #5a4818; }

/* Round 23: login / sign-up modal, layout G (brand panel left, form right; stacks on phones) */
html:root body #auth-overlay .auth-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); max-width: 600px; padding: 0; overflow: hidden; }
html:root body #auth-overlay .auth-main { padding: 22px 22px 20px; overflow-y: auto; max-height: calc(100dvh - 32px); min-width: 0; }
html:root body #auth-overlay .auth-main > h2 { display: none; }
html:root body #auth-overlay .auth-brand { background: #d6f3e7; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
html:root body #auth-overlay .auth-brand-logo { width: 92px; height: 92px; }
html:root body #auth-overlay .auth-brand-name { margin: 0; font-family: var(--font-heading); font-size: 1.1rem; line-height: 1.2; color: #23403a; }
html:root body #auth-overlay .auth-brand-tag { margin: 0; font-size: .8rem; line-height: 1.5; color: #5f7d75; white-space: pre-line; }
html:root body #auth-overlay .auth-brand-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
html:root body #auth-overlay .auth-brand-pills span { background: #fff; color: #0e9c7d; border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 700; }
html:root[data-theme="dark"] body #auth-overlay .auth-brand { background: #254a3d; }
html:root[data-theme="dark"] body #auth-overlay .auth-brand-name { color: #e6f3ee; }
html:root[data-theme="dark"] body #auth-overlay .auth-brand-tag { color: #93b0a8; }
html:root[data-theme="dark"] body #auth-overlay .auth-brand-pills span { background: #1d302a; color: #8fe3c8; }
@media (max-width: 640px) {
  html:root body #auth-overlay .auth-card { grid-template-columns: minmax(0, 1fr); max-width: 400px; max-height: calc(100dvh - 32px); overflow-y: auto; }
  html:root body #auth-overlay .auth-main { max-height: none; overflow: visible; padding: 16px 18px 20px; }
  /* sign-up and recovery screens are long: keep the brand strip compact */
  html:root body #auth-overlay .auth-card:not(:has(#login-form:not([hidden]))) .auth-brand { flex-direction: row; justify-content: flex-start; padding: 12px 18px; gap: 12px; }
  html:root body #auth-overlay .auth-card:not(:has(#login-form:not([hidden]))) :is(.auth-brand-tag, .auth-brand-pills) { display: none; }
  html:root body #auth-overlay .auth-card:not(:has(#login-form:not([hidden]))) .auth-brand-logo { width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  html:root body #auth-overlay .auth-card { max-width: none; max-height: 90dvh; border-radius: 22px 22px 0 0; }
}

/* Round 24: sign-up marketing - Premium benefits (left panel on desktop, under the plan cards on phones) */
html:root body #auth-overlay .auth-perks { display: none; width: 100%; text-align: left; }
html:root body #auth-overlay .auth-card:has(#signup-form:not([hidden])) .auth-brand { justify-content: flex-start; padding-top: 28px; background: linear-gradient(180deg, #d6f3e7, #fff1c8 100%); }
html:root body #auth-overlay .auth-card:has(#signup-form:not([hidden])) :is(.auth-brand-tag, .auth-brand-pills) { display: none; }
html:root body #auth-overlay .auth-card:has(#signup-form:not([hidden])) .auth-perks { display: block; margin-top: 4px; }
html:root body #auth-overlay .auth-perks-badge { display: inline-block; background: #ffbf47; color: #4a3000; font-family: var(--font-heading); font-weight: 700; font-size: .95rem; border-radius: 999px; padding: 6px 14px; }
html:root body #auth-overlay .auth-perks-sub { margin: 8px 0 10px; font-size: .8rem; color: #5f7d75; font-weight: 600; }
html:root body #auth-overlay :is(.auth-perks ul, ul.plan-perks) { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html:root body #auth-overlay :is(.auth-perks, .plan-perks) li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.85); border-radius: 14px; padding: 8px 10px; font-size: .84rem; font-weight: 700; line-height: 1.3; color: #23403a; }
html:root body #auth-overlay :is(.auth-perks, .plan-perks) li i { font-style: normal; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #ffe9a8; font-size: 1.05rem; }
html:root body #auth-overlay ul.plan-perks { display: none; }
html:root body #auth-overlay :is(.auth-perks ul) { display: grid; }
@media (max-width: 640px) {
  html:root body #auth-overlay .auth-card:has(#signup-form:not([hidden])) .auth-perks { display: none; }
  html:root body #auth-overlay .auth-card:has(#signup-form:not([hidden])) .auth-brand { background: #d6f3e7; }
  html:root body #auth-overlay #signup-form:has(#signup-plan-premium-btn.is-active) ul.plan-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 8px; padding: 10px; background: #fff4d6; border-radius: 16px; }
  html:root body #auth-overlay .plan-perks li { background: #fff; padding: 6px 8px; font-size: .74rem; gap: 7px; }
  html:root body #auth-overlay .plan-perks li i { width: 26px; height: 26px; font-size: .9rem; }
}
html:root[data-theme="dark"] body #auth-overlay .auth-card:has(#signup-form:not([hidden])) .auth-brand { background: linear-gradient(180deg, #254a3d, #4a3c18); }
html:root[data-theme="dark"] body #auth-overlay .auth-perks-sub { color: #b9d2c9; }
html:root[data-theme="dark"] body #auth-overlay :is(.auth-perks, .plan-perks) li { background: rgba(0,0,0,.25); color: #e6f3ee; }
html:root[data-theme="dark"] body #auth-overlay :is(.auth-perks, .plan-perks) li i { background: #5a4818; }
@media (max-width: 640px) { html:root[data-theme="dark"] body #auth-overlay #signup-form:has(#signup-plan-premium-btn.is-active) .plan-perks { background: #3a3220; } }

/* Round 25: perks panel - centred badge with space below the title, icons without circles */
html:root body #auth-overlay .auth-perks { text-align: center; }
html:root body #auth-overlay .auth-card:has(#signup-form:not([hidden])) .auth-perks { margin-top: 30px; }
html:root body #auth-overlay :is(.auth-perks, .plan-perks) li { text-align: left; }
html:root body #auth-overlay :is(.auth-perks, .plan-perks) li i { background: none !important; width: 30px; height: 30px; font-size: 1.45rem; border-radius: 0; }
html:root body #auth-overlay .plan-perks li i { width: 26px; height: 26px; font-size: 1.2rem; }
html:root body #auth-overlay :is(.auth-perks, .plan-perks) li i svg { width: 28px; height: 18px; }

/* Round 26: home screen - flat pills (no outline or shadow), header login button matches the popup's mint Login button */
html:root body :is(#auth-toggle, #level-badge, #streak-chip, #view-landing .mission-go, #promo-btn, .sp-start-btn) { border: 0 !important; box-shadow: none !important; --pill-shadow: transparent; }
html:root body #auth-toggle { background: var(--accent); color: #fff; font-family: var(--font-heading); font-weight: 700; padding: 8px 18px; font-size: .85rem; }
html:root body #auth-toggle.auth-toggle-active { background: #d6f3e7; color: #0b6b57; }
html:root body #auth-toggle.auth-toggle-admin { background: #0b6b57; color: #fff; }
html:root body :is(#level-badge, #streak-chip) { background: #d6f3e7; color: #0b6b57; }
html:root[data-theme="dark"] body #auth-toggle.auth-toggle-active { background: #254a3d; color: #8fe3c8; }
html:root[data-theme="dark"] body :is(#level-badge, #streak-chip) { background: #254a3d; color: #8fe3c8; }

/* Round 27: top navigation (capsule trough) and the phone bottom bar, same colours, no outlines or shadows */
html:root body nav.tabs { background: #d6f3e7; border-radius: 999px; padding: 5px; gap: 2px; overflow-x: auto; }
html:root body nav.tabs button { border: 0 !important; box-shadow: none !important; background: transparent; color: #0b6b57; padding: 8px 14px; font-size: .8rem; transform: none; }
html:root body nav.tabs button:hover { background: rgba(34, 201, 163, .18); transform: none; }
html:root body :is(nav.tabs button.active, nav.tabs button.tab-btn-highlight.active, nav.tabs button[data-view="admincodes"].active, .tab-group-trigger.has-active) { background: var(--accent); color: #fff; }
html:root body .tab-group-trigger { gap: 4px; }
html:root body .tab-dropdown { border: 0 !important; background: #d6f3e7; border-radius: 18px; padding: 6px; }
html:root body .tab-dropdown-item { background: transparent; color: #0b6b57; border: 0 !important; box-shadow: none !important; transform: none; padding: 8px 14px; }
html:root body .tab-dropdown-item:hover { background: var(--accent); color: #fff; transform: none; }
html:root[data-theme="dark"] body nav.tabs, html:root[data-theme="dark"] body .tab-dropdown { background: #254a3d; }
html:root[data-theme="dark"] body nav.tabs button, html:root[data-theme="dark"] body .tab-dropdown-item { color: #8fe3c8; }
html:root[data-theme="dark"] body :is(nav.tabs button.active, nav.tabs button.tab-btn-highlight.active, .tab-group-trigger.has-active) { background: var(--accent); color: #06382d; }
@media (max-width: 480px) {
  html:root body .bottom-tabs { background: #d6f3e7; border-top: 0; border-radius: 22px 22px 0 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 2px; }
  html:root body .bottom-tab-btn { color: #0b6b57; border-radius: 16px; }
  html:root body :is(.bottom-tab-btn.active, .bottom-tab-btn.has-active, .bottom-tab-btn-highlight.active, .bottom-tab-btn-highlight.has-active) { background: var(--accent); color: #fff; box-shadow: none; }
  html:root body .bottom-tab-badge { border: 0; box-shadow: none; }
  html:root[data-theme="dark"] body .bottom-tabs { background: #254a3d; }
  html:root[data-theme="dark"] body .bottom-tab-btn { color: #8fe3c8; }
  html:root[data-theme="dark"] body :is(.bottom-tab-btn.active, .bottom-tab-btn.has-active, .bottom-tab-btn-highlight.active, .bottom-tab-btn-highlight.has-active) { background: var(--accent); color: #06382d; }
}
@media (max-width: 480px) {
  html:root body .mode-tabs:not([hidden]) { background: #d6f3e7; border: 0; padding: 5px; }
  html:root body .mode-tab { color: #0b6b57; }
  html:root body .mode-tab.active { background: var(--accent); color: #fff; box-shadow: none; }
  html:root[data-theme="dark"] body .mode-tabs:not([hidden]) { background: #254a3d; }
  html:root[data-theme="dark"] body .mode-tab { color: #8fe3c8; }
  html:root[data-theme="dark"] body .mode-tab.active { color: #06382d; }
}

/* Round 28: level prompt (blinking badge), My Account level picker, header login colour, review Start button */
html:root body #level-badge.level-badge-prompt { background: #ffbf47; color: #4a3000; animation: level-prompt-blink 1.1s ease-in-out infinite; }
@keyframes level-prompt-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { html:root body #level-badge.level-badge-prompt { animation: none; } }
/* a signed-in account with no level saved still sees the prompt (the rest of the stat bar stays hidden) */
body.signed-in.level-needed .stat-bar { display: flex; justify-content: center; align-items: center; }
body.signed-in.level-needed .stat-bar #streak-chip { display: none; }
html:root body .acct-level-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 6px; }
html:root body .acct-level-choice { border: 0 !important; box-shadow: none !important; background: #eef6f2; border-radius: 16px; padding: 12px 14px; text-align: left; cursor: pointer; display: grid; gap: 2px; font: inherit; color: var(--text); }
html:root body .acct-level-choice strong { font-family: var(--font-heading); font-size: .95rem; }
html:root body .acct-level-choice span { font-size: .75rem; color: var(--muted); }
html:root body .acct-level-choice.is-active { background: var(--accent); color: #fff; }
html:root body .acct-level-choice.is-active span { color: rgba(255, 255, 255, .9); }
html:root[data-theme="dark"] body .acct-level-choice { background: #243730; }
html:root[data-theme="dark"] body .acct-level-choice.is-active { background: var(--accent); color: #06382d; }
html:root body #auth-toggle.auth-toggle-active { background: #0e9c7d; color: #fff; }
html:root body #auth-toggle.auth-toggle-admin { background: #0b4f41; color: #fff; }
html:root[data-theme="dark"] body #auth-toggle.auth-toggle-active { background: #1fb28a; color: #06382d; }
html:root body #review-card-btn { border: 0 !important; box-shadow: none !important; --pill-shadow: transparent; }

/* Round 29: level dropdown (replaces the popup), bigger readable badge, kid-friendly hero line */
html:root body .level-dd { position: relative; display: inline-block; }
html:root body #level-badge { font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; font-weight: 800; font-size: 1rem; padding: 9px 20px; letter-spacing: -.01em; }
html:root body .level-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 60; min-width: 260px; max-width: calc(100vw - 32px); background: #fff; border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 4px; text-align: left; font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
html:root body .level-menu[hidden] { display: none; }
html:root body .level-menu-item { display: flex; flex-direction: column; gap: 2px; width: 100%; border: 0 !important; box-shadow: none !important; background: transparent; color: #0b6b57; padding: 11px 16px; border-radius: 12px; cursor: pointer; font: inherit; text-align: left; }
html:root body .level-menu-item strong { font-size: 1.08rem; font-weight: 800; }
html:root body .level-menu-item span { font-size: .92rem; font-weight: 500; color: #4d6b62; }
html:root body .level-menu-item:hover, html:root body .level-menu-item:focus-visible { background: #d6f3e7; outline: 0; }
html:root body .level-menu-item.is-active { background: var(--accent); color: #fff; }
html:root body .level-menu-item.is-active span { color: #e8fff8; }
html:root[data-theme="dark"] body .level-menu { background: #1b3329; }
html:root[data-theme="dark"] body .level-menu-item { color: #8fe3c8; }
html:root[data-theme="dark"] body .level-menu-item span { color: #9bbdb0; }
html:root[data-theme="dark"] body .level-menu-item:hover, html:root[data-theme="dark"] body .level-menu-item:focus-visible { background: #254a3d; }
html:root[data-theme="dark"] body .level-menu-item.is-active { background: var(--accent); color: #06382d; }
html:root[data-theme="ivory"] body .level-menu { background: #fffaf0; }
html:root body .hero-sub { font-family: var(--font-heading); font-size: clamp(1.1rem, 4.6vw, 1.45rem); font-weight: 700; line-height: 1.35; max-width: 460px; color: var(--accent-dark); text-wrap: balance; }
html:root[lang="ko"] body .hero-sub { font-family: "Jua", var(--font-heading), "Malgun Gothic", sans-serif; font-weight: 400; font-size: clamp(1.15rem, 4.8vw, 1.55rem); }

/* Round 30: review Start buttons: mint pill, label left, white play disc right; flat (no outline or shadow) in all three places */
html:root:root:root:root:root body #stats-panel-wrong .wrong-actions { background: #d6f3e7; border: 0; box-shadow: none; }
html:root[data-theme="dark"]:root:root:root body #stats-panel-wrong .wrong-actions { background: #254a3d; border: 0; }
html:root:root:root:root:root body #wrong-study-btn { background: #fff; color: #0b6b57; border: 0 !important; box-shadow: none !important; border-radius: 999px; transform: none; }
html:root[data-theme="dark"]:root:root:root body #wrong-study-btn { background: #1b3329; color: #8fe3c8; }
html:root:root:root:root:root body #wrong-review-btn,
html:root:root:root:root:root body #review-card-btn,
html:root:root:root:root:root body #view-stats .dash-rec button.dash-rec-btn { display: inline-flex !important; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; background: #22c9a3 !important; color: #fff !important; border: 0 !important; box-shadow: none !important; border-radius: 999px !important; padding: 6px 6px 6px 20px !important; width: auto; height: auto; min-height: 46px !important; font-family: var(--font-heading); font-weight: 700; transform: none; cursor: pointer; }
html:root:root:root:root:root body #wrong-review-btn:active,
html:root:root:root:root:root body #review-card-btn:active,
html:root:root:root:root:root body #view-stats .dash-rec button.dash-rec-btn:active { transform: scale(.97); box-shadow: none !important; }
html:root:root:root:root:root body #wrong-review-btn .go-disc,
html:root:root:root:root:root body #review-card-btn .go-disc { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #0e9c7d; display: grid; place-items: center; flex: none; }
html:root:root:root:root:root body :is(#wrong-review-btn, #review-card-btn) .go-disc svg { width: 16px; height: 16px; }
html:root:root:root:root:root body #wrong-review-btn { flex: none; justify-content: flex-start; gap: 14px; }
html:root:root:root:root:root body #review-card-btn { font-size: .92rem; min-height: 40px !important; padding: 5px 5px 5px 16px !important; gap: 10px; flex: none; }
html:root:root:root:root:root body #review-card-btn .go-disc { width: 30px; height: 30px; }
html:root:root:root:root:root body #view-stats .dash-rec button.dash-rec-btn { margin: 12px auto 0; font-size: .92rem; min-height: 40px !important; padding: 5px 5px 5px 16px !important; }
html:root:root:root:root:root body #view-stats .dash-rec button.dash-rec-btn .dash-rec-btn-ico { display: grid; place-items: center; line-height: 0; flex: none; }
html:root:root:root:root:root body #view-stats .dash-rec button.dash-rec-btn .dash-rec-svg { width: 30px; height: 30px; }
html:root:root:root:root:root body #view-stats .dash-rec button.dash-rec-btn .dash-rec-btn-txt { order: -1; color: #fff; font-size: .92rem; font-weight: 700; }
html:root:root:root:root:root body #view-stats .dash-rec .dash-rec-side { align-items: center; }

/* Round 31: home tiles - hover keeps the text readable; lock/star badges: no outline, a bit bigger */
@media (hover: hover) {
  html:root:root:not([data-theme="dark"]):not([data-theme="ivory"]) body .landing-tile.landing-tile-highlight:hover { background: var(--accent) !important; }
  html:root:root:not([data-theme="dark"]):not([data-theme="ivory"]) body .landing-tile.landing-tile-highlight:hover .landing-tile-icon { background: #fff !important; border-color: #fff !important; }
  html:root:root body .landing-tile.landing-tile-highlight:hover :is(.landing-tile-title, .landing-tile-desc) { color: #fff; }
}
html:root:root body .landing-tile-badge { border: 0 !important; box-shadow: none !important; width: 26px; height: 26px; font-size: 1rem; top: 7px; right: 7px; }

/* Round 32: mission retry, earn-more button, review coins line */
html:root body .mission-retry { display: block; margin: 10px auto 0; border: 0 !important; box-shadow: none !important; background: var(--accent); color: #fff; font-family: var(--font-heading); font-weight: 700; padding: 9px 20px; font-size: .95rem; }
html:root body .mission-retry[hidden] { display: none; }
html:root body .koala-earn-more { border: 0 !important; box-shadow: none !important; background: var(--accent); color: #fff; white-space: nowrap; }
html:root body .review-coins { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 8px; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: #0b6b57; }
html:root[data-theme="dark"] body .review-coins { color: #8fe3c8; }

/* Round 33: the floating action bar hugs its two buttons (about half the old width) and sits centred */
html:root:root:root:root:root body #stats-panel-wrong .wrong-actions { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 999px; }
html:root:root:root:root:root body #stats-panel-wrong .wrong-actions .pill { flex: none; padding: 0 20px; }
html:root:root:root:root:root body #stats-panel-wrong .wrong-actions #wrong-review-btn { padding: 5px 5px 5px 20px !important; }

/* Round 34: quiz result screen - flat, roomy card; mint primary pill; no outlines or shadows */
html:root:root body .qz-result-card { border: 0 !important; box-shadow: none !important; background: rgba(255, 255, 255, .93); border-radius: 24px; width: min(100%, 440px); margin: 8px auto; padding: 22px 18px 20px; gap: 14px; }
html:root[data-theme="dark"]:root body .qz-result-card { background: rgba(27, 51, 41, .85); }
html:root:root body .qz-missed-chip { border: 0 !important; box-shadow: none !important; background: #d6f3e7; color: #0b6b57; }
html:root:root body .qz-missed-chip-more { background: transparent; }
html:root:root body .qz-coin-chip { border: 0 !important; box-shadow: none !important; background: #fff1c4; }
html:root:root body .qz-gift-icon-btn { border: 0 !important; box-shadow: none !important; }
html:root:root body .qz-result-primary { background: #22c9a3 !important; color: #fff !important; border: 0 !important; box-shadow: none !important; border-radius: 999px; padding: 13px 28px; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; transform: none; }
html:root:root body .qz-result-primary:active { transform: scale(.97); box-shadow: none !important; }
html:root:root body .qz-result-link { border: 0 !important; box-shadow: none !important; background: #eef6f2; color: #0b6b57; border-radius: 999px; padding: 8px 16px; }
html:root[data-theme="dark"]:root body .qz-result-link { background: #254a3d; color: #8fe3c8; }
html:root:root body #view-quiz .card.scene-card { border: 0 !important; box-shadow: none !important; }

/* Round 35: hero line in a warm colour of its own; retry button uses a big white cycle icon */
html:root body .hero-sub { color: #e8742a; }
html:root[data-theme="dark"] body .hero-sub { color: #ffb86b; }
html:root[data-theme="ivory"] body .hero-sub { color: #c85f1a; }
html:root body .mission-retry { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; }
html:root body .mission-retry[hidden] { display: none; }
html:root body .mission-retry .retry-ico { width: 24px; height: 24px; flex: none; }

/* Round 36: quiz report = Spelling report layout */
html body .qz-report { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }
html body #view-quiz .qz-report .sp-report-card { width: min(100%, 520px); margin: 0 auto; box-sizing: border-box; }
html body .qz-report[data-state="perfect"] .sp-report-koala .sk-svg { animation: sp-koala-jump 1.1s cubic-bezier(0.3, 0.7, 0.4, 1) infinite; }
html body .qz-report[data-state="some"] .sp-report-koala .sk-svg { animation: sp-koala-jump 0.85s cubic-bezier(0.3, 0.7, 0.4, 1) 3; }
html body .qz-report .qz-report-btn { flex: 1 1 0; min-width: 0; white-space: nowrap; background: #e3f6ef; color: #0e9c7d; border: 2px solid #9fd8c6; box-shadow: 0 2px 0 #9fd8c6; border-radius: 999px; font-family: var(--font-heading); font-weight: 800; font-size: .85rem; padding: 6px 8px; }
html body .qz-report .qz-report-btn:active { transform: translateY(2px); box-shadow: none; }
html body .qz-report .sp-report-stats { flex-wrap: wrap; align-items: center; }
html body .qz-report .qz-coin-tag { display: inline-flex; align-items: center; gap: 4px; }
html body .qz-report .qz-report-more { text-align: center; margin: 0; }
html body #view-quiz .qz-report { width: 100%; }
html body #view-quiz .qz-report .sp-report-card { width: min(100%, 520px); }
html body #view-quiz .qz-report .sp-report-restart { background: linear-gradient(180deg, #ffe066, #ffab1a) !important; color: #5a3000 !important; border: 0 !important; box-shadow: 0 4px 0 #c27400, 0 7px 12px rgba(194, 116, 0, .3) !important; border-radius: 999px; padding: 8px 20px; font-size: 1.05rem; font-family: var(--font-heading); font-weight: 800; }
html body #view-quiz .qz-report .sp-report-restart:active { transform: translateY(3px); box-shadow: 0 1px 0 #c27400 !important; }

/* Round 37: flat play screens, capsule add-modes, start cards as wide as the nav bar with the My Koala backdrop */
html:root:root body #view-quiz .sp-start-card,

html:root:root body #view-spelling .sp-start-card,

html:root:root body #view-flashcards .sp-start-card,

html:root:root body #view-typegame .tg-start-card,

html:root:root body #view-timestable .tg-start-card { width: min(100%, var(--nav-w, 594px)) !important; max-width: none !important; border: 0 !important; box-shadow: none !important; background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27150%27%20height=%27150%27%3E%3Cg%20opacity=%27.9%27%3E%3Cellipse%20cx=%2728%27%20cy=%2732%27%20rx=%2713%27%20ry=%276%27%20transform=%27rotate%28-35%2028%2032%29%27%20fill=%27%233fb984%27%20opacity=%27.16%27/%3E%3Cellipse%20cx=%27112%27%20cy=%2796%27%20rx=%2713%27%20ry=%276%27%20transform=%27rotate%2830%20112%2096%29%27%20fill=%27%233fb984%27%20opacity=%27.16%27/%3E%3Cpolygon%20points=%27100%2C20%20103%2C28%20112%2C28%20105%2C33%20108%2C42%20100%2C37%2092%2C42%2095%2C33%2088%2C28%2097%2C28%27%20fill=%27%23f6c343%27%20opacity=%27.3%27/%3E%3Cpolygon%20points=%2740%2C108%2042%2C114%2049%2C114%2043%2C118%2045%2C125%2040%2C121%2035%2C125%2037%2C118%2031%2C114%2038%2C114%27%20fill=%27%23f6c343%27%20opacity=%27.25%27/%3E%3Ccircle%20cx=%2770%27%20cy=%2760%27%20r=%273%27%20fill=%27%23ffffff%27%20opacity=%27.7%27/%3E%3Ccircle%20cx=%27136%27%20cy=%2750%27%20r=%272.5%27%20fill=%27%23ffffff%27%20opacity=%27.7%27/%3E%3Ccircle%20cx=%2714%27%20cy=%2788%27%20r=%272.5%27%20fill=%27%23ffffff%27%20opacity=%27.7%27/%3E%3C/g%3E%3C/svg%3E") 0 0 / 150px 150px, radial-gradient(circle at 10% 6%, rgba(255, 226, 140, .55) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(168, 230, 207, .65) 0 80px, transparent 81px), linear-gradient(180deg, #d9f6ea 0%, #eefaea 55%, #fff3cf 100%) !important; box-sizing: border-box; }
html[data-theme="dark"]:root:root body #view-quiz .sp-start-card,

html[data-theme="dark"]:root:root body #view-spelling .sp-start-card,

html[data-theme="dark"]:root:root body #view-flashcards .sp-start-card,

html[data-theme="dark"]:root:root body #view-typegame .tg-start-card,

html[data-theme="dark"]:root:root body #view-timestable .tg-start-card { background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27150%27%20height=%27150%27%3E%3Cg%20opacity=%27.9%27%3E%3Cellipse%20cx=%2728%27%20cy=%2732%27%20rx=%2713%27%20ry=%276%27%20transform=%27rotate%28-35%2028%2032%29%27%20fill=%27%233fb984%27%20opacity=%27.16%27/%3E%3Cellipse%20cx=%27112%27%20cy=%2796%27%20rx=%2713%27%20ry=%276%27%20transform=%27rotate%2830%20112%2096%29%27%20fill=%27%233fb984%27%20opacity=%27.16%27/%3E%3Cpolygon%20points=%27100%2C20%20103%2C28%20112%2C28%20105%2C33%20108%2C42%20100%2C37%2092%2C42%2095%2C33%2088%2C28%2097%2C28%27%20fill=%27%23f6c343%27%20opacity=%27.3%27/%3E%3Cpolygon%20points=%2740%2C108%2042%2C114%2049%2C114%2043%2C118%2045%2C125%2040%2C121%2035%2C125%2037%2C118%2031%2C114%2038%2C114%27%20fill=%27%23f6c343%27%20opacity=%27.25%27/%3E%3Ccircle%20cx=%2770%27%20cy=%2760%27%20r=%273%27%20fill=%27%23ffffff%27%20opacity=%27.7%27/%3E%3Ccircle%20cx=%27136%27%20cy=%2750%27%20r=%272.5%27%20fill=%27%23ffffff%27%20opacity=%27.7%27/%3E%3Ccircle%20cx=%2714%27%20cy=%2788%27%20r=%272.5%27%20fill=%27%23ffffff%27%20opacity=%27.7%27/%3E%3C/g%3E%3C/svg%3E") 0 0 / 150px 150px, radial-gradient(circle at 10% 6%, rgba(81,72,46,0.55) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(45,80,67,0.65) 0 80px, transparent 81px), linear-gradient(180deg, #1c3229 0%, #1c2917 55%, #332d1d 100%) !important; }
html[data-theme="ivory"]:root:root body #view-quiz .sp-start-card,

html[data-theme="ivory"]:root:root body #view-spelling .sp-start-card,

html[data-theme="ivory"]:root:root body #view-flashcards .sp-start-card,

html[data-theme="ivory"]:root:root body #view-typegame .tg-start-card,

html[data-theme="ivory"]:root:root body #view-timestable .tg-start-card { background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27150%27%20height=%27150%27%3E%3Cg%20opacity=%27.9%27%3E%3Cellipse%20cx=%2728%27%20cy=%2732%27%20rx=%2713%27%20ry=%276%27%20transform=%27rotate%28-35%2028%2032%29%27%20fill=%27%233fb984%27%20opacity=%27.16%27/%3E%3Cellipse%20cx=%27112%27%20cy=%2796%27%20rx=%2713%27%20ry=%276%27%20transform=%27rotate%2830%20112%2096%29%27%20fill=%27%233fb984%27%20opacity=%27.16%27/%3E%3Cpolygon%20points=%27100%2C20%20103%2C28%20112%2C28%20105%2C33%20108%2C42%20100%2C37%2092%2C42%2095%2C33%2088%2C28%2097%2C28%27%20fill=%27%23f6c343%27%20opacity=%27.3%27/%3E%3Cpolygon%20points=%2740%2C108%2042%2C114%2049%2C114%2043%2C118%2045%2C125%2040%2C121%2035%2C125%2037%2C118%2031%2C114%2038%2C114%27%20fill=%27%23f6c343%27%20opacity=%27.25%27/%3E%3Ccircle%20cx=%2770%27%20cy=%2760%27%20r=%273%27%20fill=%27%23ffffff%27%20opacity=%27.7%27/%3E%3Ccircle%20cx=%27136%27%20cy=%2750%27%20r=%272.5%27%20fill=%27%23ffffff%27%20opacity=%27.7%27/%3E%3Ccircle%20cx=%2714%27%20cy=%2788%27%20r=%272.5%27%20fill=%27%23ffffff%27%20opacity=%27.7%27/%3E%3C/g%3E%3C/svg%3E") 0 0 / 150px 150px, radial-gradient(circle at 10% 6%, rgba(255, 226, 140, .55) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(168, 230, 207, .65) 0 80px, transparent 81px), linear-gradient(180deg, #eee7d6 0%, #f5f0e5 55%, #fff3cf 100%) !important; }
html:root:root body :is(#view-quiz, #view-spelling, #view-flashcards) .sp-start-card .sp-start-panel { background: #e4f7f0; border: 3px solid #fff !important; box-shadow: 0 0 0 2px #8fe3c6 !important; border-radius: 1.5rem; }
html[data-theme="dark"]:root:root body :is(#view-quiz, #view-spelling, #view-flashcards) .sp-start-card .sp-start-panel { background: #192d26 !important; border-color: #151e1c !important; }
html[data-theme="ivory"]:root:root body :is(#view-quiz, #view-spelling, #view-flashcards) .sp-start-card .sp-start-panel { background: #f2ecdf !important; border-color: #fdfaf4 !important; }
/* Flashcards: no frame on the scene card; Next only after the card was flipped */
html:root:root body #view-flashcards > .card.scene-card, html:root:root body #view-quiz > .card.scene-card, html:root:root body #view-spelling > .card.scene-card { border: 0 !important; box-shadow: none !important; }
html:root:root body #flash-next.is-await-flip { visibility: hidden; pointer-events: none; }
/* My flashcards: flat card, capsule add-mode tabs, small flat add button */
html:root:root body #my-deck-card { border: 0 !important; box-shadow: none !important; }
html:root:root body #my-deck-card .add-mode-toggle { display: flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: #d4efe4; border-radius: 999px; }
html:root:root body #my-deck-card .add-mode-toggle button { flex: 1 1 0; min-width: 0; min-height: 2.6rem; padding: 4px 6px; font-size: 0.85rem; font-weight: 800; background: transparent !important; color: #0b8a6e; border: 0 !important; box-shadow: none !important; border-radius: 999px; font-family: var(--font-heading); }
html:root:root body #my-deck-card .add-mode-toggle button.accent { background: var(--accent) !important; color: #fff; }
html[data-theme="dark"]:root:root body #my-deck-card .add-mode-toggle { background: #254a3d; }
html[data-theme="dark"]:root:root body #my-deck-card .add-mode-toggle button:not(.accent) { color: #8fe0c5; }
html:root:root body #my-deck-card #my-deck-form .form-actions { justify-content: flex-start; }
html:root:root body #my-deck-card #my-deck-save-btn { width: 25%; min-width: 108px; min-height: 44px; font-size: 0.95rem; padding: 6px 10px; border: 0 !important; box-shadow: none !important; align-self: flex-start; margin-right: auto; }
/* Quiz play: flat option buttons with the home-card shadow; flat footer buttons */
html:root:root body #quiz-options .option-btn, html:root:root body #quiz-options .qz-opt { border: 0 !important; box-shadow: 0 2px 12px rgba(10, 60, 50, .08) !important; }
html:root:root body #quiz-practice .quiz-footer :is(.sfx-toggle, .qz-end-btn), html:root:root body #spelling-practice .sp-footer :is(.sfx-toggle, .sp-finish-btn) { border: 0 !important; box-shadow: none !important; }
/* Spelling play: score pill removed (leaves count the correct answers); sound button on the far left */
html:root:root body #spelling-practice .sp-footer #spelling-score { display: none !important; }
html:root:root body #spelling-practice .sp-footer .sfx-toggle { margin-left: 0 !important; margin-right: auto; order: -1; }
html:root:root body #spelling-practice .sp-footer { justify-content: space-between; }
/* leaves: unlit = faint ghost, lit = bright green, one per correct answer */
html:root:root body #spelling-practice .sp-leaf { opacity: 0.32; filter: grayscale(0.6); transform: rotate(var(--r, 0deg)) scale(0.9); animation: none; }
html:root:root body #spelling-practice .sp-leaf.eaten { opacity: 1; filter: none; transform: rotate(var(--r, 0deg)) scale(1.05); }
html:root:root body #spelling-practice .sp-leaf.eaten.miss { opacity: 1; filter: none; }

/* Round 38: start buttons = mockup 15 (mint-to-lime gradient pill, arrow disc, soft glow) */
html:root:root:root:root:root:root body button:is(#flash-start-btn, #quiz-start-btn, #spelling-start-btn, #typegame-start-btn, #timestable-start-btn).pill.accent.pill.accent.pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, #22c9a3 0%, #6ee0a8 100%) !important; color: #fff !important; border: 0 !important; border-radius: 999px; padding: 8px 10px 8px 30px; min-height: 0; width: auto; max-width: none; margin-top: 6px; filter: none; font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; text-shadow: none; box-shadow: 0 6px 16px rgba(34, 201, 163, .35) !important; animation: none; }
html:root:root:root:root:root:root body button:is(#flash-start-btn, #quiz-start-btn, #spelling-start-btn, #typegame-start-btn, #timestable-start-btn).pill.accent.pill.accent.pill::before { content: none !important; }
html:root:root:root:root:root:root body button:is(#flash-start-btn, #quiz-start-btn, #spelling-start-btn, #typegame-start-btn, #timestable-start-btn).pill.accent.pill.accent.pill::after { content: ""; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background-color: rgba(255, 255, 255, .28); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 20px; filter: none; -webkit-mask: none; }
html:root:root:root:root:root:root body button:is(#flash-start-btn, #quiz-start-btn, #spelling-start-btn, #typegame-start-btn, #timestable-start-btn).pill.accent.pill.accent.pill:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
html:root:root:root:root:root:root body button:is(#flash-start-btn, #quiz-start-btn, #spelling-start-btn, #typegame-start-btn, #timestable-start-btn).pill.accent.pill.accent.pill:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 3px 8px rgba(34, 201, 163, .3) !important; }
html:root:root:root:root:root:root body button:is(#flash-start-btn, #quiz-start-btn, #spelling-start-btn, #typegame-start-btn, #timestable-start-btn).pill.accent.pill.accent.pill:disabled { filter: grayscale(.5); opacity: .6; }

/* Round 39: every other big yellow button (Play again / restart, Check, sign-up CTAs) = the start-button look */
html:root:root:root:root:root:root body button:is(.new-quiz-btn, #signup-submit-btn, #signup-pay-btn).pill.pill.pill, html:root:root:root:root:root:root body #spelling-practice #spelling-check.sp-check-btn { background: linear-gradient(135deg, #22c9a3 0%, #6ee0a8 100%) !important; color: #fff !important; border: 0 !important; border-radius: 999px; box-shadow: 0 6px 16px rgba(34, 201, 163, .35) !important; text-shadow: none; font-family: var(--font-heading); font-weight: 700; animation: none; filter: none; }
html:root:root:root:root:root:root body button:is(.new-quiz-btn, #signup-submit-btn, #signup-pay-btn).pill.pill.pill:hover:not(:disabled), html:root:root:root:root:root:root body #spelling-practice #spelling-check.sp-check-btn:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
html:root:root:root:root:root:root body button:is(.new-quiz-btn, #signup-submit-btn, #signup-pay-btn).pill.pill.pill:active:not(:disabled), html:root:root:root:root:root:root body #spelling-practice #spelling-check.sp-check-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 3px 8px rgba(34, 201, 163, .3) !important; }
html:root:root:root:root:root:root body button:is(.new-quiz-btn, #signup-submit-btn, #signup-pay-btn).pill.pill.pill:disabled, html:root:root:root:root:root:root body #spelling-practice #spelling-check.sp-check-btn:disabled { filter: grayscale(.5); opacity: .6; box-shadow: none !important; }
html:root:root:root:root:root:root body button:is(.new-quiz-btn, #signup-submit-btn, #signup-pay-btn).pill.pill.pill :is(svg, .retry-ico), html:root:root:root:root:root:root body button:is(.new-quiz-btn, #signup-submit-btn, #signup-pay-btn).pill.pill.pill span { color: #fff; }
/* Check button label while "Checked" keeps readable text */
html:root:root:root:root:root:root body #spelling-practice #spelling-check.sp-check-btn .sp-lbl { color: #fff; text-shadow: none; }
/* login button: always fully visible on phones */
html:root:root body #auth-toggle:not(.auth-toggle-active):not(.auth-toggle-admin) { max-width: none !important; overflow: visible !important; text-overflow: clip !important; white-space: nowrap; flex: 0 0 auto; padding: 8px 14px; font-size: .8rem; }
html:root:root body #auth-toggle.auth-toggle-active, html:root:root body #auth-toggle.auth-toggle-admin { max-width: 46vw !important; }

/* Round 40: guest sign-up nudge on report screens, trial notes */
html:root body .guest-coin-teaser { margin: 10px auto 2px; max-width: 420px; text-align: center; font-family: var(--font-heading); font-weight: 700; font-size: .92rem; color: #0b6b57; background: #fff7e0; border-radius: 16px; padding: 10px 14px; line-height: 1.5; }
html:root body .guest-coin-teaser[hidden] { display: none; }
html:root body .guest-coin-teaser .guest-signup-btn { margin-left: 6px; background: #22c9a3 !important; color: #fff !important; border: 0 !important; box-shadow: none !important; padding: 5px 14px; }
html:root body .manual-trial-note, html:root body .wrong-trial-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #fff7e0; color: #7a5200; font-weight: 700; line-height: 1.45; }
html:root body .manual-trial-note[hidden] { display: none; }
html[data-theme="dark"]:root body .guest-coin-teaser, html[data-theme="dark"]:root body .manual-trial-note, html[data-theme="dark"]:root body .wrong-trial-note { background: #3a3220; color: #f6dc9a; }

/* Round 41: sign-up notice inside the auth window; static (non-floating) wrong-notebook unlock button */
html:root body .auth-notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #e3f7ef; color: #0b6b57; font-family: var(--font-heading); font-weight: 700; font-size: .92rem; line-height: 1.5; text-align: center; }
html:root body .auth-notice[hidden] { display: none; }
html[data-theme="dark"]:root body .auth-notice { background: #24453b; color: #8fe3c8; }
html[data-theme="ivory"]:root body .auth-notice { background: #f3ead2; color: #6b4e12; }
html:root:root:root:root:root:root body #stats-panel-wrong .wrong-actions.wrong-actions-static { position: static !important; width: auto !important; margin: 14px 0 4px !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
html:root:root:root:root:root:root body #stats-panel-wrong .wrong-actions.wrong-actions-static .wrong-unlock-btn {
  flex: none; min-height: 48px !important; height: 48px !important; padding: 0 26px !important; border-radius: 999px !important; border: 0 !important; gap: 8px; font-size: 1rem; font-weight: 800; letter-spacing: .01em;
  color: #fff !important; background: linear-gradient(135deg, #22c9a3 0%, #6ee0a8 100%) !important; box-shadow: 0 6px 16px rgba(34, 201, 163, .30) !important; transform: none;
}
html:root:root:root:root:root:root body #stats-panel-wrong .wrong-actions.wrong-actions-static .wrong-unlock-btn:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(34, 201, 163, .30) !important; }
html:root:root:root:root:root:root body #stats-panel-wrong .wrong-actions.wrong-actions-static .wrong-unlock-btn .wt-lock { width: 18px; height: 18px; flex: none; }

/* Round 42: each start screen gets its own playful backdrop (mint base + pastel pattern) */
html:root:root:root body #view-quiz .sp-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.72'%3E%3Ccircle cx='38' cy='38' r='12' fill='%23ffd45e' opacity='0.6'/%3E%3Crect x='33' y='49' width='10' height='7' rx='2' fill='%23f0b429' opacity='.55'/%3E%3Cpath d='M38 14v-6M18 24l-5-3M58 24l5-3' stroke='%23f0b429' stroke-width='3' stroke-linecap='round' opacity='.5'/%3E%3Ctext x='140' y='70' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='40' text-anchor='middle' fill='%236fbdf0' opacity='0.5' transform='rotate%2814 140 70%29'%3E%3F%3C/text%3E%3Ctext x='78' y='160' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='30' text-anchor='middle' fill='%23a995ee' opacity='0.5' transform='rotate%28-14 78 160%29'%3E%3F%3C/text%3E%3Ccircle cx='160' cy='150' r='13' fill='%237fdcb7' opacity='0.7'/%3E%3Cpath d='M153 150l5 5 9-10' stroke='%23fff' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='.95'/%3E%3Cpath d='M110 104Q110 112 118 112Q110 112 110 120Q110 112 102 112Q110 112 110 104Z' fill='%23ff9eb8' opacity='0.6'/%3E%3Cpath d='M20 114Q20 120 26 120Q20 120 20 126Q20 120 14 120Q20 120 20 114Z' fill='%23ffd45e' opacity='0.65'/%3E%3Cpath d='M176 27Q176 34 183 34Q176 34 176 41Q176 34 169 34Q176 34 176 27Z' fill='%23fff' opacity='0.9'/%3E%3Ccircle cx='96' cy='26' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='190' cy='100' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='30' cy='188' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(255,226,140,.5) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(190,176,245,.40) 0 80px, transparent 81px), linear-gradient(180deg, #d6f4ea 0%, #e3f0fb 100%) !important; box-sizing: border-box; }
html:root:root:root body #view-spelling .sp-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.72'%3E%3Cg transform='rotate%28-8 31.0 33.0%29'%3E%3Crect x='14' y='19' width='34' height='34' rx='8' fill='%23ffdca8' opacity='0.7'/%3E%3Crect x='14' y='16' width='34' height='34' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Ctext x='31' y='42' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='24' text-anchor='middle' fill='%23f08c3e' opacity='0.9' transform='rotate%28-8 31 42%29'%3EA%3C/text%3E%3Cg transform='rotate%289 129.0 79.0%29'%3E%3Crect x='112' y='65' width='34' height='34' rx='8' fill='%23bfe3f8' opacity='0.7'/%3E%3Crect x='112' y='62' width='34' height='34' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Ctext x='129' y='88' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='24' text-anchor='middle' fill='%233fa6e3' opacity='0.9' transform='rotate%289 129 88%29'%3EB%3C/text%3E%3Cg transform='rotate%28-6 69.0 145.0%29'%3E%3Crect x='52' y='131' width='34' height='34' rx='8' fill='%23ffc6d6' opacity='0.7'/%3E%3Crect x='52' y='128' width='34' height='34' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Ctext x='69' y='154' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='24' text-anchor='middle' fill='%23e0648f' opacity='0.9' transform='rotate%28-6 69 154%29'%3EC%3C/text%3E%3Cg transform='rotate%2842 160 150%29'%3E%3Crect x='140' y='144' width='44' height='12' rx='2' fill='%23ffd45e' opacity='.75'/%3E%3Cpath d='M184 144l12 6-12 6z' fill='%23f6dcc0' opacity='.9'/%3E%3Cpath d='M192 148l4 2-4 2z' fill='%236b5a4a' opacity='.7'/%3E%3Crect x='134' y='144' width='8' height='12' rx='2' fill='%23ff9eb8' opacity='.8'/%3E%3C/g%3E%3Cellipse cx='170' cy='36' rx='14' ry='6' transform='rotate%28-30 170 36%29' fill='%2352c79a' opacity='.35'/%3E%3Cpath d='M100 22Q100 28 106 28Q100 28 100 34Q100 28 94 28Q100 28 100 22Z' fill='%23ffd45e' opacity='0.7'/%3E%3Cpath d='M20 95Q20 100 25 100Q20 100 20 105Q20 100 15 100Q20 100 20 95Z' fill='%23fff' opacity='0.9'/%3E%3Ccircle cx='186' cy='92' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='120' cy='176' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='34' cy='186' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(255,205,150,.5) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(168,230,207,.65) 0 80px, transparent 81px), linear-gradient(180deg, #d6f4ea 0%, #fff3cc 100%) !important; box-sizing: border-box; }
html:root:root:root body #view-flashcards .sp-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.72'%3E%3Cg transform='rotate%28-12 39.0 42.0%29'%3E%3Crect x='16' y='29' width='46' height='32' rx='8' fill='%23ffc9b0' opacity='0.7'/%3E%3Crect x='16' y='26' width='46' height='32' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Cpath d='M26 36h24M26 44h14' stroke='%23ff9a76' stroke-width='3' stroke-linecap='round' opacity='.6' transform='rotate%28-12 39 42%29'/%3E%3Cg transform='rotate%2810 141.0 62.0%29'%3E%3Crect x='118' y='49' width='46' height='32' rx='8' fill='%23f5c96a' opacity='0.7'/%3E%3Crect x='118' y='46' width='46' height='32' rx='8' fill='%23ffe6a6' opacity='0.85'/%3E%3C/g%3E%3Ccircle cx='141' cy='62' r='7' fill='%23fff' opacity='.85' transform='rotate%2810 141 62%29'/%3E%3Cpath d='M82 120.1C67.6 110.2 75.7 102.1 82 109.3C88.3 102.1 96.4 110.2 82 120.1Z' fill='%23ff9ab8' opacity='0.65'/%3E%3Cpath d='M172 156.3C160.8 148.6 167.1 142.3 172 147.9C176.9 142.3 183.2 148.6 172 156.3Z' fill='%23ff9ab8' opacity='0.55'/%3E%3Cpath d='M26 155.4C16.4 148.8 21.8 143.4 26 148.2C30.2 143.4 35.6 148.8 26 155.4Z' fill='%23c9b6f5' opacity='0.7'/%3E%3Cg opacity='.75'%3E%3Ccircle cx='72' cy='170' r='9' fill='%23fff'/%3E%3Ccircle cx='86' cy='164' r='12' fill='%23fff'/%3E%3Ccircle cx='101' cy='171' r='8' fill='%23fff'/%3E%3Crect x='64' y='170' width='45' height='9' rx='4' fill='%23fff'/%3E%3C/g%3E%3Cpath d='M110 14Q110 20 116 20Q110 20 110 26Q110 20 104 20Q110 20 110 14Z' fill='%23ffd45e' opacity='0.7'/%3E%3Cpath d='M186 99Q186 104 191 104Q186 104 186 109Q186 104 181 104Q186 104 186 99Z' fill='%23fff' opacity='0.9'/%3E%3Ccircle cx='10' cy='96' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='150' cy='128' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='190' cy='196' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(255,170,190,.42) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(168,230,207,.65) 0 80px, transparent 81px), linear-gradient(180deg, #d6f4ea 0%, #ffe6dc 100%) !important; box-sizing: border-box; }
html:root:root:root body #view-typegame .tg-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.72'%3E%3Cg transform='rotate%28-6 31.0 35.0%29'%3E%3Crect x='14' y='21' width='34' height='34' rx='8' fill='%23a9d6f0' opacity='0.85'/%3E%3Crect x='14' y='18' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='31.0' y='41.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%233fa6e3' opacity='0.85' transform='rotate%28-6 31.0 41.8%29'%3EK%3C/text%3E%3Cg transform='rotate%288 133.0 69.0%29'%3E%3Crect x='116' y='55' width='34' height='34' rx='8' fill='%23ffc0d2' opacity='0.85'/%3E%3Crect x='116' y='52' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='133.0' y='75.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%23e0648f' opacity='0.85' transform='rotate%288 133.0 75.8%29'%3EO%3C/text%3E%3Cg transform='rotate%28-4 71.0 137.0%29'%3E%3Crect x='54' y='123' width='34' height='34' rx='8' fill='%23ffd6a0' opacity='0.85'/%3E%3Crect x='54' y='120' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='71.0' y='143.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%23f08c3e' opacity='0.85' transform='rotate%28-4 71.0 143.8%29'%3EA%3C/text%3E%3Cg transform='rotate%286 167.0 155.0%29'%3E%3Crect x='150' y='141' width='34' height='34' rx='8' fill='%23a8e8d0' opacity='0.85'/%3E%3Crect x='150' y='138' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='167.0' y='161.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%232fb98d' opacity='0.85' transform='rotate%286 167.0 161.8%29'%3ES%3C/text%3E%3Cpath d='M70 30h24M100 30h8M20 96h20M46 96h6' stroke='%237cc6f0' stroke-width='4' stroke-linecap='round' opacity='.45'/%3E%3Cpath d='M176 18Q176 24 182 24Q176 24 176 30Q176 24 170 24Q176 24 176 18Z' fill='%23ffd45e' opacity='0.75'/%3E%3Cpath d='M100 96Q100 102 106 102Q100 102 100 108Q100 102 94 102Q100 102 100 96Z' fill='%23fff' opacity='0.9'/%3E%3Cpath d='M20 165Q20 170 25 170Q20 170 20 175Q20 170 15 170Q20 170 20 165Z' fill='%23b7a6f0' opacity='0.7'/%3E%3Ccircle cx='190' cy='110' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='120' cy='186' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(255,226,140,.45) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(180,225,255,.65) 0 80px, transparent 81px), linear-gradient(180deg, #d2f2f0 0%, #d8ebfb 100%) !important; box-sizing: border-box; }
html:root:root:root body #view-timestable .tg-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.72'%3E%3Ctext x='34' y='56' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='46' text-anchor='middle' fill='%23ff9a76' opacity='0.55' transform='rotate%28-8 34 56%29'%3E%C3%97%3C/text%3E%3Ctext x='126' y='58' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='38' text-anchor='middle' fill='%238d7be0' opacity='0.45' transform='rotate%2810 126 58%29'%3E7%3C/text%3E%3Ctext x='70' y='150' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='44' text-anchor='middle' fill='%234fb4ea' opacity='0.55' transform='rotate%286 70 150%29'%3E%C3%B7%3C/text%3E%3Ctext x='158' y='150' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='44' text-anchor='middle' fill='%23f4bd2f' opacity='0.65' transform='rotate%28-6 158 150%29'%3E%2B%3C/text%3E%3Ctext x='22' y='170' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='32' text-anchor='middle' fill='%2346cf9d' opacity='0.55' transform='rotate%280 22 170%29'%3E=%3C/text%3E%3Ctext x='120' y='112' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='26' text-anchor='middle' fill='%23ff9ab8' opacity='0.55' transform='rotate%28-12 120 112%29'%3E3%3C/text%3E%3Cpath d='M176 34Q176 40 182 40Q176 40 176 46Q176 40 170 40Q176 40 176 34Z' fill='%23fff' opacity='0.9'/%3E%3Cpath d='M94 17Q94 22 99 22Q94 22 94 27Q94 22 89 22Q94 22 94 17Z' fill='%23ffd45e' opacity='0.7'/%3E%3Ccircle cx='190' cy='100' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='50' cy='100' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='150' cy='190' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(255,226,140,.5) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(168,200,255,.5) 0 80px, transparent 81px), linear-gradient(180deg, #d6f4ea 0%, #e9e3fb 100%) !important; box-sizing: border-box; }
html[data-theme="dark"]:root:root:root body #view-quiz .sp-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.38'%3E%3Ccircle cx='38' cy='38' r='12' fill='%23ffd45e' opacity='0.6'/%3E%3Crect x='33' y='49' width='10' height='7' rx='2' fill='%23f0b429' opacity='.55'/%3E%3Cpath d='M38 14v-6M18 24l-5-3M58 24l5-3' stroke='%23f0b429' stroke-width='3' stroke-linecap='round' opacity='.5'/%3E%3Ctext x='140' y='70' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='40' text-anchor='middle' fill='%236fbdf0' opacity='0.5' transform='rotate%2814 140 70%29'%3E%3F%3C/text%3E%3Ctext x='78' y='160' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='30' text-anchor='middle' fill='%23a995ee' opacity='0.5' transform='rotate%28-14 78 160%29'%3E%3F%3C/text%3E%3Ccircle cx='160' cy='150' r='13' fill='%237fdcb7' opacity='0.7'/%3E%3Cpath d='M153 150l5 5 9-10' stroke='%23fff' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='.95'/%3E%3Cpath d='M110 104Q110 112 118 112Q110 112 110 120Q110 112 102 112Q110 112 110 104Z' fill='%23ff9eb8' opacity='0.6'/%3E%3Cpath d='M20 114Q20 120 26 120Q20 120 20 126Q20 120 14 120Q20 120 20 114Z' fill='%23ffd45e' opacity='0.65'/%3E%3Cpath d='M176 27Q176 34 183 34Q176 34 176 41Q176 34 169 34Q176 34 176 27Z' fill='%23fff' opacity='0.9'/%3E%3Ccircle cx='96' cy='26' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='190' cy='100' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='30' cy='188' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(246,195,67,.10) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(150,130,230,.14) 0 80px, transparent 81px), linear-gradient(180deg, #18302b 0%, #1c2b3a 100%) !important; box-sizing: border-box; }
html[data-theme="dark"]:root:root:root body #view-quiz .sp-start-card::before { content: none; }
html[data-theme="dark"]:root:root:root body #view-spelling .sp-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.38'%3E%3Cg transform='rotate%28-8 31.0 33.0%29'%3E%3Crect x='14' y='19' width='34' height='34' rx='8' fill='%23ffdca8' opacity='0.7'/%3E%3Crect x='14' y='16' width='34' height='34' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Ctext x='31' y='42' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='24' text-anchor='middle' fill='%23f08c3e' opacity='0.9' transform='rotate%28-8 31 42%29'%3EA%3C/text%3E%3Cg transform='rotate%289 129.0 79.0%29'%3E%3Crect x='112' y='65' width='34' height='34' rx='8' fill='%23bfe3f8' opacity='0.7'/%3E%3Crect x='112' y='62' width='34' height='34' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Ctext x='129' y='88' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='24' text-anchor='middle' fill='%233fa6e3' opacity='0.9' transform='rotate%289 129 88%29'%3EB%3C/text%3E%3Cg transform='rotate%28-6 69.0 145.0%29'%3E%3Crect x='52' y='131' width='34' height='34' rx='8' fill='%23ffc6d6' opacity='0.7'/%3E%3Crect x='52' y='128' width='34' height='34' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Ctext x='69' y='154' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='24' text-anchor='middle' fill='%23e0648f' opacity='0.9' transform='rotate%28-6 69 154%29'%3EC%3C/text%3E%3Cg transform='rotate%2842 160 150%29'%3E%3Crect x='140' y='144' width='44' height='12' rx='2' fill='%23ffd45e' opacity='.75'/%3E%3Cpath d='M184 144l12 6-12 6z' fill='%23f6dcc0' opacity='.9'/%3E%3Cpath d='M192 148l4 2-4 2z' fill='%236b5a4a' opacity='.7'/%3E%3Crect x='134' y='144' width='8' height='12' rx='2' fill='%23ff9eb8' opacity='.8'/%3E%3C/g%3E%3Cellipse cx='170' cy='36' rx='14' ry='6' transform='rotate%28-30 170 36%29' fill='%2352c79a' opacity='.35'/%3E%3Cpath d='M100 22Q100 28 106 28Q100 28 100 34Q100 28 94 28Q100 28 100 22Z' fill='%23ffd45e' opacity='0.7'/%3E%3Cpath d='M20 95Q20 100 25 100Q20 100 20 105Q20 100 15 100Q20 100 20 95Z' fill='%23fff' opacity='0.9'/%3E%3Ccircle cx='186' cy='92' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='120' cy='176' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='34' cy='186' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(246,195,67,.12) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(63,185,132,.12) 0 80px, transparent 81px), linear-gradient(180deg, #18302b 0%, #2e2b1c 100%) !important; box-sizing: border-box; }
html[data-theme="dark"]:root:root:root body #view-spelling .sp-start-card::before { content: none; }
html[data-theme="dark"]:root:root:root body #view-flashcards .sp-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.38'%3E%3Cg transform='rotate%28-12 39.0 42.0%29'%3E%3Crect x='16' y='29' width='46' height='32' rx='8' fill='%23ffc9b0' opacity='0.7'/%3E%3Crect x='16' y='26' width='46' height='32' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Cpath d='M26 36h24M26 44h14' stroke='%23ff9a76' stroke-width='3' stroke-linecap='round' opacity='.6' transform='rotate%28-12 39 42%29'/%3E%3Cg transform='rotate%2810 141.0 62.0%29'%3E%3Crect x='118' y='49' width='46' height='32' rx='8' fill='%23f5c96a' opacity='0.7'/%3E%3Crect x='118' y='46' width='46' height='32' rx='8' fill='%23ffe6a6' opacity='0.85'/%3E%3C/g%3E%3Ccircle cx='141' cy='62' r='7' fill='%23fff' opacity='.85' transform='rotate%2810 141 62%29'/%3E%3Cpath d='M82 120.1C67.6 110.2 75.7 102.1 82 109.3C88.3 102.1 96.4 110.2 82 120.1Z' fill='%23ff9ab8' opacity='0.65'/%3E%3Cpath d='M172 156.3C160.8 148.6 167.1 142.3 172 147.9C176.9 142.3 183.2 148.6 172 156.3Z' fill='%23ff9ab8' opacity='0.55'/%3E%3Cpath d='M26 155.4C16.4 148.8 21.8 143.4 26 148.2C30.2 143.4 35.6 148.8 26 155.4Z' fill='%23c9b6f5' opacity='0.7'/%3E%3Cg opacity='.75'%3E%3Ccircle cx='72' cy='170' r='9' fill='%23fff'/%3E%3Ccircle cx='86' cy='164' r='12' fill='%23fff'/%3E%3Ccircle cx='101' cy='171' r='8' fill='%23fff'/%3E%3Crect x='64' y='170' width='45' height='9' rx='4' fill='%23fff'/%3E%3C/g%3E%3Cpath d='M110 14Q110 20 116 20Q110 20 110 26Q110 20 104 20Q110 20 110 14Z' fill='%23ffd45e' opacity='0.7'/%3E%3Cpath d='M186 99Q186 104 191 104Q186 104 186 109Q186 104 181 104Q186 104 186 99Z' fill='%23fff' opacity='0.9'/%3E%3Ccircle cx='10' cy='96' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='150' cy='128' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='190' cy='196' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(255,150,170,.12) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(63,185,132,.12) 0 80px, transparent 81px), linear-gradient(180deg, #18302b 0%, #2f2327 100%) !important; box-sizing: border-box; }
html[data-theme="dark"]:root:root:root body #view-flashcards .sp-start-card::before { content: none; }
html[data-theme="dark"]:root:root:root body #view-typegame .tg-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.38'%3E%3Cg transform='rotate%28-6 31.0 35.0%29'%3E%3Crect x='14' y='21' width='34' height='34' rx='8' fill='%23a9d6f0' opacity='0.85'/%3E%3Crect x='14' y='18' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='31.0' y='41.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%233fa6e3' opacity='0.85' transform='rotate%28-6 31.0 41.8%29'%3EK%3C/text%3E%3Cg transform='rotate%288 133.0 69.0%29'%3E%3Crect x='116' y='55' width='34' height='34' rx='8' fill='%23ffc0d2' opacity='0.85'/%3E%3Crect x='116' y='52' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='133.0' y='75.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%23e0648f' opacity='0.85' transform='rotate%288 133.0 75.8%29'%3EO%3C/text%3E%3Cg transform='rotate%28-4 71.0 137.0%29'%3E%3Crect x='54' y='123' width='34' height='34' rx='8' fill='%23ffd6a0' opacity='0.85'/%3E%3Crect x='54' y='120' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='71.0' y='143.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%23f08c3e' opacity='0.85' transform='rotate%28-4 71.0 143.8%29'%3EA%3C/text%3E%3Cg transform='rotate%286 167.0 155.0%29'%3E%3Crect x='150' y='141' width='34' height='34' rx='8' fill='%23a8e8d0' opacity='0.85'/%3E%3Crect x='150' y='138' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='167.0' y='161.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%232fb98d' opacity='0.85' transform='rotate%286 167.0 161.8%29'%3ES%3C/text%3E%3Cpath d='M70 30h24M100 30h8M20 96h20M46 96h6' stroke='%237cc6f0' stroke-width='4' stroke-linecap='round' opacity='.45'/%3E%3Cpath d='M176 18Q176 24 182 24Q176 24 176 30Q176 24 170 24Q176 24 176 18Z' fill='%23ffd45e' opacity='0.75'/%3E%3Cpath d='M100 96Q100 102 106 102Q100 102 100 108Q100 102 94 102Q100 102 100 96Z' fill='%23fff' opacity='0.9'/%3E%3Cpath d='M20 165Q20 170 25 170Q20 170 20 175Q20 170 15 170Q20 170 20 165Z' fill='%23b7a6f0' opacity='0.7'/%3E%3Ccircle cx='190' cy='110' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='120' cy='186' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(246,195,67,.10) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(110,190,240,.16) 0 80px, transparent 81px), linear-gradient(180deg, #17302f 0%, #1a2c3e 100%) !important; box-sizing: border-box; }
html[data-theme="dark"]:root:root:root body #view-typegame .tg-start-card::before { content: none; }
html[data-theme="dark"]:root:root:root body #view-timestable .tg-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.38'%3E%3Ctext x='34' y='56' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='46' text-anchor='middle' fill='%23ff9a76' opacity='0.55' transform='rotate%28-8 34 56%29'%3E%C3%97%3C/text%3E%3Ctext x='126' y='58' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='38' text-anchor='middle' fill='%238d7be0' opacity='0.45' transform='rotate%2810 126 58%29'%3E7%3C/text%3E%3Ctext x='70' y='150' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='44' text-anchor='middle' fill='%234fb4ea' opacity='0.55' transform='rotate%286 70 150%29'%3E%C3%B7%3C/text%3E%3Ctext x='158' y='150' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='44' text-anchor='middle' fill='%23f4bd2f' opacity='0.65' transform='rotate%28-6 158 150%29'%3E%2B%3C/text%3E%3Ctext x='22' y='170' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='32' text-anchor='middle' fill='%2346cf9d' opacity='0.55' transform='rotate%280 22 170%29'%3E=%3C/text%3E%3Ctext x='120' y='112' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='26' text-anchor='middle' fill='%23ff9ab8' opacity='0.55' transform='rotate%28-12 120 112%29'%3E3%3C/text%3E%3Cpath d='M176 34Q176 40 182 40Q176 40 176 46Q176 40 170 40Q176 40 176 34Z' fill='%23fff' opacity='0.9'/%3E%3Cpath d='M94 17Q94 22 99 22Q94 22 94 27Q94 22 89 22Q94 22 94 17Z' fill='%23ffd45e' opacity='0.7'/%3E%3Ccircle cx='190' cy='100' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='50' cy='100' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='150' cy='190' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(246,195,67,.10) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(120,150,240,.16) 0 80px, transparent 81px), linear-gradient(180deg, #18302b 0%, #252340 100%) !important; box-sizing: border-box; }
html[data-theme="dark"]:root:root:root body #view-timestable .tg-start-card::before { content: none; }
html[data-theme="ivory"]:root:root:root body #view-quiz .sp-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.85'%3E%3Ccircle cx='38' cy='38' r='12' fill='%23ffd45e' opacity='0.6'/%3E%3Crect x='33' y='49' width='10' height='7' rx='2' fill='%23f0b429' opacity='.55'/%3E%3Cpath d='M38 14v-6M18 24l-5-3M58 24l5-3' stroke='%23f0b429' stroke-width='3' stroke-linecap='round' opacity='.5'/%3E%3Ctext x='140' y='70' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='40' text-anchor='middle' fill='%236fbdf0' opacity='0.5' transform='rotate%2814 140 70%29'%3E%3F%3C/text%3E%3Ctext x='78' y='160' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='30' text-anchor='middle' fill='%23a995ee' opacity='0.5' transform='rotate%28-14 78 160%29'%3E%3F%3C/text%3E%3Ccircle cx='160' cy='150' r='13' fill='%237fdcb7' opacity='0.7'/%3E%3Cpath d='M153 150l5 5 9-10' stroke='%23fff' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='.95'/%3E%3Cpath d='M110 104Q110 112 118 112Q110 112 110 120Q110 112 102 112Q110 112 110 104Z' fill='%23ff9eb8' opacity='0.6'/%3E%3Cpath d='M20 114Q20 120 26 120Q20 120 20 126Q20 120 14 120Q20 120 20 114Z' fill='%23ffd45e' opacity='0.65'/%3E%3Cpath d='M176 27Q176 34 183 34Q176 34 176 41Q176 34 169 34Q176 34 176 27Z' fill='%23fff' opacity='0.9'/%3E%3Ccircle cx='96' cy='26' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='190' cy='100' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='30' cy='188' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(255,226,140,.45) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(190,176,245,.30) 0 80px, transparent 81px), linear-gradient(180deg, #f3eedf 0%, #e9eef0 100%) !important; box-sizing: border-box; }
html[data-theme="ivory"]:root:root:root body #view-spelling .sp-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.85'%3E%3Cg transform='rotate%28-8 31.0 33.0%29'%3E%3Crect x='14' y='19' width='34' height='34' rx='8' fill='%23ffdca8' opacity='0.7'/%3E%3Crect x='14' y='16' width='34' height='34' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Ctext x='31' y='42' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='24' text-anchor='middle' fill='%23f08c3e' opacity='0.9' transform='rotate%28-8 31 42%29'%3EA%3C/text%3E%3Cg transform='rotate%289 129.0 79.0%29'%3E%3Crect x='112' y='65' width='34' height='34' rx='8' fill='%23bfe3f8' opacity='0.7'/%3E%3Crect x='112' y='62' width='34' height='34' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Ctext x='129' y='88' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='24' text-anchor='middle' fill='%233fa6e3' opacity='0.9' transform='rotate%289 129 88%29'%3EB%3C/text%3E%3Cg transform='rotate%28-6 69.0 145.0%29'%3E%3Crect x='52' y='131' width='34' height='34' rx='8' fill='%23ffc6d6' opacity='0.7'/%3E%3Crect x='52' y='128' width='34' height='34' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Ctext x='69' y='154' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='24' text-anchor='middle' fill='%23e0648f' opacity='0.9' transform='rotate%28-6 69 154%29'%3EC%3C/text%3E%3Cg transform='rotate%2842 160 150%29'%3E%3Crect x='140' y='144' width='44' height='12' rx='2' fill='%23ffd45e' opacity='.75'/%3E%3Cpath d='M184 144l12 6-12 6z' fill='%23f6dcc0' opacity='.9'/%3E%3Cpath d='M192 148l4 2-4 2z' fill='%236b5a4a' opacity='.7'/%3E%3Crect x='134' y='144' width='8' height='12' rx='2' fill='%23ff9eb8' opacity='.8'/%3E%3C/g%3E%3Cellipse cx='170' cy='36' rx='14' ry='6' transform='rotate%28-30 170 36%29' fill='%2352c79a' opacity='.35'/%3E%3Cpath d='M100 22Q100 28 106 28Q100 28 100 34Q100 28 94 28Q100 28 100 22Z' fill='%23ffd45e' opacity='0.7'/%3E%3Cpath d='M20 95Q20 100 25 100Q20 100 20 105Q20 100 15 100Q20 100 20 95Z' fill='%23fff' opacity='0.9'/%3E%3Ccircle cx='186' cy='92' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='120' cy='176' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='34' cy='186' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(255,205,150,.4) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(168,230,207,.4) 0 80px, transparent 81px), linear-gradient(180deg, #f3eedf 0%, #f8efcf 100%) !important; box-sizing: border-box; }
html[data-theme="ivory"]:root:root:root body #view-flashcards .sp-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.85'%3E%3Cg transform='rotate%28-12 39.0 42.0%29'%3E%3Crect x='16' y='29' width='46' height='32' rx='8' fill='%23ffc9b0' opacity='0.7'/%3E%3Crect x='16' y='26' width='46' height='32' rx='8' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3Cpath d='M26 36h24M26 44h14' stroke='%23ff9a76' stroke-width='3' stroke-linecap='round' opacity='.6' transform='rotate%28-12 39 42%29'/%3E%3Cg transform='rotate%2810 141.0 62.0%29'%3E%3Crect x='118' y='49' width='46' height='32' rx='8' fill='%23f5c96a' opacity='0.7'/%3E%3Crect x='118' y='46' width='46' height='32' rx='8' fill='%23ffe6a6' opacity='0.85'/%3E%3C/g%3E%3Ccircle cx='141' cy='62' r='7' fill='%23fff' opacity='.85' transform='rotate%2810 141 62%29'/%3E%3Cpath d='M82 120.1C67.6 110.2 75.7 102.1 82 109.3C88.3 102.1 96.4 110.2 82 120.1Z' fill='%23ff9ab8' opacity='0.65'/%3E%3Cpath d='M172 156.3C160.8 148.6 167.1 142.3 172 147.9C176.9 142.3 183.2 148.6 172 156.3Z' fill='%23ff9ab8' opacity='0.55'/%3E%3Cpath d='M26 155.4C16.4 148.8 21.8 143.4 26 148.2C30.2 143.4 35.6 148.8 26 155.4Z' fill='%23c9b6f5' opacity='0.7'/%3E%3Cg opacity='.75'%3E%3Ccircle cx='72' cy='170' r='9' fill='%23fff'/%3E%3Ccircle cx='86' cy='164' r='12' fill='%23fff'/%3E%3Ccircle cx='101' cy='171' r='8' fill='%23fff'/%3E%3Crect x='64' y='170' width='45' height='9' rx='4' fill='%23fff'/%3E%3C/g%3E%3Cpath d='M110 14Q110 20 116 20Q110 20 110 26Q110 20 104 20Q110 20 110 14Z' fill='%23ffd45e' opacity='0.7'/%3E%3Cpath d='M186 99Q186 104 191 104Q186 104 186 109Q186 104 181 104Q186 104 186 99Z' fill='%23fff' opacity='0.9'/%3E%3Ccircle cx='10' cy='96' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='150' cy='128' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='190' cy='196' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(255,170,190,.35) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(168,230,207,.4) 0 80px, transparent 81px), linear-gradient(180deg, #f3eedf 0%, #f7e5d9 100%) !important; box-sizing: border-box; }
html[data-theme="ivory"]:root:root:root body #view-typegame .tg-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.85'%3E%3Cg transform='rotate%28-6 31.0 35.0%29'%3E%3Crect x='14' y='21' width='34' height='34' rx='8' fill='%23a9d6f0' opacity='0.85'/%3E%3Crect x='14' y='18' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='31.0' y='41.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%233fa6e3' opacity='0.85' transform='rotate%28-6 31.0 41.8%29'%3EK%3C/text%3E%3Cg transform='rotate%288 133.0 69.0%29'%3E%3Crect x='116' y='55' width='34' height='34' rx='8' fill='%23ffc0d2' opacity='0.85'/%3E%3Crect x='116' y='52' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='133.0' y='75.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%23e0648f' opacity='0.85' transform='rotate%288 133.0 75.8%29'%3EO%3C/text%3E%3Cg transform='rotate%28-4 71.0 137.0%29'%3E%3Crect x='54' y='123' width='34' height='34' rx='8' fill='%23ffd6a0' opacity='0.85'/%3E%3Crect x='54' y='120' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='71.0' y='143.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%23f08c3e' opacity='0.85' transform='rotate%28-4 71.0 143.8%29'%3EA%3C/text%3E%3Cg transform='rotate%286 167.0 155.0%29'%3E%3Crect x='150' y='141' width='34' height='34' rx='8' fill='%23a8e8d0' opacity='0.85'/%3E%3Crect x='150' y='138' width='34' height='34' rx='8' fill='%23fff' opacity='0.85'/%3E%3C/g%3E%3Ctext x='167.0' y='161.8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='18.700000000000003' text-anchor='middle' fill='%232fb98d' opacity='0.85' transform='rotate%286 167.0 161.8%29'%3ES%3C/text%3E%3Cpath d='M70 30h24M100 30h8M20 96h20M46 96h6' stroke='%237cc6f0' stroke-width='4' stroke-linecap='round' opacity='.45'/%3E%3Cpath d='M176 18Q176 24 182 24Q176 24 176 30Q176 24 170 24Q176 24 176 18Z' fill='%23ffd45e' opacity='0.75'/%3E%3Cpath d='M100 96Q100 102 106 102Q100 102 100 108Q100 102 94 102Q100 102 100 96Z' fill='%23fff' opacity='0.9'/%3E%3Cpath d='M20 165Q20 170 25 170Q20 170 20 175Q20 170 15 170Q20 170 20 165Z' fill='%23b7a6f0' opacity='0.7'/%3E%3Ccircle cx='190' cy='110' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='120' cy='186' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(255,226,140,.4) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(180,225,255,.4) 0 80px, transparent 81px), linear-gradient(180deg, #eef0e0 0%, #e3eef0 100%) !important; box-sizing: border-box; }
html[data-theme="ivory"]:root:root:root body #view-timestable .tg-start-card { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='.85'%3E%3Ctext x='34' y='56' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='46' text-anchor='middle' fill='%23ff9a76' opacity='0.55' transform='rotate%28-8 34 56%29'%3E%C3%97%3C/text%3E%3Ctext x='126' y='58' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='38' text-anchor='middle' fill='%238d7be0' opacity='0.45' transform='rotate%2810 126 58%29'%3E7%3C/text%3E%3Ctext x='70' y='150' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='44' text-anchor='middle' fill='%234fb4ea' opacity='0.55' transform='rotate%286 70 150%29'%3E%C3%B7%3C/text%3E%3Ctext x='158' y='150' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='44' text-anchor='middle' fill='%23f4bd2f' opacity='0.65' transform='rotate%28-6 158 150%29'%3E%2B%3C/text%3E%3Ctext x='22' y='170' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='32' text-anchor='middle' fill='%2346cf9d' opacity='0.55' transform='rotate%280 22 170%29'%3E=%3C/text%3E%3Ctext x='120' y='112' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='26' text-anchor='middle' fill='%23ff9ab8' opacity='0.55' transform='rotate%28-12 120 112%29'%3E3%3C/text%3E%3Cpath d='M176 34Q176 40 182 40Q176 40 176 46Q176 40 170 40Q176 40 176 34Z' fill='%23fff' opacity='0.9'/%3E%3Cpath d='M94 17Q94 22 99 22Q94 22 94 27Q94 22 89 22Q94 22 94 17Z' fill='%23ffd45e' opacity='0.7'/%3E%3Ccircle cx='190' cy='100' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='50' cy='100' r='3' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='150' cy='190' r='3' fill='%23fff' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 200px, radial-gradient(circle at 10% 6%, rgba(255,226,140,.4) 0 70px, transparent 71px), radial-gradient(circle at 94% 20%, rgba(168,200,255,.35) 0 80px, transparent 81px), linear-gradient(180deg, #f3eedf 0%, #ebe6f3 100%) !important; box-sizing: border-box; }

/* Round 43 base: copies of the login-window rules for #upgrade-overlay */
html:root body #upgrade-overlay .auth-card { max-height: calc(100dvh - 32px); overflow-y: auto; max-width: 400px; }
html:root body #upgrade-overlay button.pill.neutral { background: #eef6f2; color: var(--text); }
html:root[data-theme="dark"] body #upgrade-overlay button.pill.neutral { background: #243730; color: #e8f3ee; }
/* sign-up uses a warm amber, clearly different from the mint Log In button */
html:root body #upgrade-overlay button.pill.primary { background: #ffbf47; color: #4a3000; }
html:root body #upgrade-overlay button.pill.primary:hover { background: #ffb324; }
html:root body #upgrade-overlay button.pill.primary:disabled { opacity: .6; }
/* Round 23: login / sign-up modal, layout G (brand panel left, form right; stacks on phones) */
html:root body #upgrade-overlay .auth-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); max-width: 600px; padding: 0; overflow: hidden; }
html:root body #upgrade-overlay .auth-main { padding: 22px 22px 20px; overflow-y: auto; max-height: calc(100dvh - 32px); min-width: 0; }
html:root body #upgrade-overlay .auth-brand { background: #d6f3e7; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
html:root body #upgrade-overlay .auth-brand-logo { width: 92px; height: 92px; }
html:root body #upgrade-overlay .auth-brand-name { margin: 0; font-family: var(--font-heading); font-size: 1.1rem; line-height: 1.2; color: #23403a; }
html:root body #upgrade-overlay .auth-brand-tag { margin: 0; font-size: .8rem; line-height: 1.5; color: #5f7d75; white-space: pre-line; }
html:root body #upgrade-overlay .auth-brand-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
html:root body #upgrade-overlay .auth-brand-pills span { background: #fff; color: #0e9c7d; border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 700; }
html:root[data-theme="dark"] body #upgrade-overlay .auth-brand { background: #254a3d; }
html:root[data-theme="dark"] body #upgrade-overlay .auth-brand-name { color: #e6f3ee; }
html:root[data-theme="dark"] body #upgrade-overlay .auth-brand-tag { color: #93b0a8; }
html:root[data-theme="dark"] body #upgrade-overlay .auth-brand-pills span { background: #1d302a; color: #8fe3c8; }
@media (max-width: 640px) {
  html:root body #upgrade-overlay .auth-card { grid-template-columns: minmax(0, 1fr); max-width: 400px; max-height: calc(100dvh - 32px); overflow-y: auto; }
  html:root body #upgrade-overlay .auth-main { max-height: none; overflow: visible; padding: 16px 18px 20px; }
}
@media (max-width: 480px) {
  html:root body #upgrade-overlay .auth-card { max-width: none; max-height: 90dvh; border-radius: 22px 22px 0 0; }
}
/* Round 24: sign-up marketing - Premium benefits (left panel on desktop, under the plan cards on phones) */
html:root body #upgrade-overlay .auth-perks { display: none; width: 100%; text-align: left; }
html:root body #upgrade-overlay .auth-perks-badge { display: inline-block; background: #ffbf47; color: #4a3000; font-family: var(--font-heading); font-weight: 700; font-size: .95rem; border-radius: 999px; padding: 6px 14px; }
html:root body #upgrade-overlay .auth-perks-sub { margin: 8px 0 10px; font-size: .8rem; color: #5f7d75; font-weight: 600; }
html:root body #upgrade-overlay :is(.auth-perks ul) { display: grid; }
html:root[data-theme="dark"] body #upgrade-overlay .auth-perks-sub { color: #b9d2c9; }
/* Round 25: perks panel - centred badge with space below the title, icons without circles */
html:root body #upgrade-overlay .auth-perks { text-align: center; }
/* Round 43: Upgrade-to-Premium window uses the same brand-panel layout as the login window */
html:root body #upgrade-overlay .auth-perks { display: block; margin-top: 4px; }
html:root body #upgrade-overlay .auth-main > h2 { display: block; margin: 0 0 8px; font-family: var(--font-heading); font-size: 1.25rem; color: #0b6b57; }
html:root[data-theme="dark"] body #upgrade-overlay .auth-main > h2 { color: #8fe3c8; }
html:root body #upgrade-overlay .auth-brand { background: linear-gradient(180deg, #d6f3e7, #fff1c8 100%); justify-content: flex-start; padding-top: 28px; }
html:root[data-theme="dark"] body #upgrade-overlay .auth-brand { background: linear-gradient(180deg, #254a3d, #4a3c18); }
html:root body #upgrade-overlay .auth-card > .auth-main > .auth-hint:first-of-type, html:root body #upgrade-overlay .auth-main > .auth-hint { font-size: .86rem; line-height: 1.5; color: var(--text); opacity: .85; margin: 0 0 8px; text-align: left; }
html:root body #upgrade-overlay #upgrade-pay-btn { width: 100%; margin: 10px 0 4px; min-height: 46px; border-radius: 999px; background: #ffbf47; color: #4a3000; font-weight: 800; }
html:root body #upgrade-overlay #upgrade-request-btn { width: 100%; border-radius: 999px; }
html:root body #upgrade-overlay .auth-actions .pill { border-radius: 999px; }
html:root body #upgrade-overlay .auth-form label { margin-top: 10px; font-weight: 700; }
html:root body #upgrade-overlay .auth-form input { width: 100%; }
@media (max-width: 640px) {
  html:root body #upgrade-overlay .auth-brand { flex-direction: row; justify-content: flex-start; padding: 12px 18px; gap: 12px; }
  html:root body #upgrade-overlay .auth-brand .auth-perks { display: none; }
  html:root body #upgrade-overlay .auth-brand-logo { width: 44px; height: 44px; }
}

html:root body #upgrade-overlay :is(button.pill, .auth-link) { border: 0 !important; box-shadow: none !important; --pill-shadow: transparent; }
html:root body #upgrade-overlay .auth-perks { text-align: center; }
html:root body #upgrade-overlay .auth-perks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html:root body #upgrade-overlay .auth-perks li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.85); border-radius: 14px; padding: 8px 10px; font-size: .84rem; font-weight: 700; line-height: 1.3; color: #23403a; text-align: left; }
html:root body #upgrade-overlay .auth-perks li i { font-style: normal; flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: none !important; font-size: 1.45rem; border-radius: 0; }
html:root body #upgrade-overlay .auth-perks li i svg { width: 28px; height: 18px; }
html:root[data-theme="dark"] body #upgrade-overlay .auth-perks li { background: rgba(0,0,0,.25); color: #e6f3ee; }

/* Round 44: more air between the icon and the text on the Upgrade window's benefit cards */
html:root:root body #upgrade-overlay .auth-perks li { gap: 16px; padding: 8px 12px; }
html:root:root body #upgrade-overlay .auth-perks li i { width: 34px; height: 30px; }

/* Round 45: child profiles */
html:root body .children-list { display: grid; gap: 8px; margin: 10px 0; }
html:root body .children-list[hidden], html:root body .children-locked[hidden], html:root body #children-add-btn[hidden] { display: none; }
html:root body .child-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #eef6f2; }
html:root body .child-row.is-active { background: #d6f3e7; }
html:root body .child-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0 !important; box-shadow: none !important; background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
html:root body .child-name { flex: 1 1 auto; min-width: 0; height: 40px; border: 0 !important; border-radius: 12px; background: #fff; padding: 0 12px; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text); box-shadow: none !important; }
html:root body .child-now { flex: none; font-size: .78rem; font-weight: 800; color: #0b6b57; padding: 0 6px; }
html:root body .child-switch { flex: none; min-height: 38px; padding: 0 16px; }
html:root body .child-del { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0 !important; box-shadow: none !important; background: transparent; color: #b86a6a; font-size: 1rem; cursor: pointer; }
html:root body .child-del:hover { background: #fde4e4; }
html:root body .children-locked { padding: 10px 12px; border-radius: 14px; background: #fff7e0; color: #7a5200; font-weight: 700; line-height: 1.45; }
html:root body .children-locked p { margin: 0 0 8px; }
html:root body .progress-child { margin: 4px 0 0; font-family: var(--font-heading); font-weight: 800; font-size: .9rem; color: #0b6b57; }
html:root body .progress-child[hidden] { display: none; }
html:root body #auth-menu-child-btn { display: flex; align-items: center; gap: 10px; }
html:root body #auth-menu-child-btn[hidden] { display: none; }
html:root body #auth-menu-child-btn .auth-menu-child-ico { font-size: 1.15rem; width: 22px; text-align: center; stroke: none; fill: none; }
html:root body .child-picker-card { max-width: 340px; }
html:root body .child-picker-list { display: grid; gap: 8px; margin: 10px 0 14px; }
html:root body .child-pick { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; border: 0 !important; box-shadow: none !important; background: #eef6f2; cursor: pointer; text-align: left; font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--text); }
html:root body .child-pick.is-active { background: #bfeadb; }
html:root body .child-pick-ico { font-size: 1.9rem; line-height: 1; }
html[data-theme="dark"]:root body .child-row { background: #243730; }
html[data-theme="dark"]:root body .child-row.is-active { background: #2f5a49; }
html[data-theme="dark"]:root body .child-avatar, html[data-theme="dark"]:root body .child-name { background: #1d302a; color: #e6f3ee; }
html[data-theme="dark"]:root body .child-now, html[data-theme="dark"]:root body .progress-child { color: #8fe3c8; }
html[data-theme="dark"]:root body .children-locked { background: #3a3220; color: #f6dc9a; }
html[data-theme="dark"]:root body .child-pick { background: #243730; color: #e6f3ee; }
html[data-theme="dark"]:root body .child-pick.is-active { background: #2f5a49; }

/* Round 41: start buttons scale with the fluid root size (rem, not px) so the label and arrow disc
   always fit: label + disc sit as one centred group, the disc hugging the right end. */
html:root:root:root:root:root:root:root:root body button:is(#flash-start-btn, #quiz-start-btn, #spelling-start-btn, #typegame-start-btn, #timestable-start-btn).pill.accent.pill.accent.pill {
  width: auto !important; min-width: min(100%, 14.3rem) !important; max-width: 100% !important; min-height: 3.6rem !important;
  padding: 0.5rem 0.55rem 0.5rem 1.7rem !important; gap: 0.75rem !important; font-size: 1.2rem !important; white-space: nowrap; line-height: 1.15;
}
html:root:root:root:root:root:root:root:root body button:is(#flash-start-btn, #quiz-start-btn, #spelling-start-btn, #typegame-start-btn, #timestable-start-btn).pill.accent.pill.accent.pill::after {
  width: 2.5rem !important; height: 2.5rem !important; background-size: 1.3rem !important; margin-left: 0;
}
@media (max-width: 360px) {
  html:root:root:root:root:root:root:root:root body button:is(#flash-start-btn, #quiz-start-btn, #spelling-start-btn, #typegame-start-btn, #timestable-start-btn).pill.accent.pill.accent.pill { font-size: 1.08rem !important; padding-left: 1.3rem !important; }
}

/* Round 41b: segmented option buttons never spill their label — they may wrap onto a second line
   and their row may wrap, at any window width. */
html:root:root:root:root body :is(.qz-seg-btn, #flash-source-mine, .qz-pick .qz-seg-btn) { white-space: normal !important; overflow-wrap: break-word; word-break: keep-all; line-height: 1.15; text-align: center; box-sizing: border-box; }
@media (max-width: 400px) { html:root:root:root:root body :is(#typegame-start-overlay, #timestable-start-overlay) .qz-seg-btn { font-size: 0.7rem !important; padding-left: 6px !important; padding-right: 6px !important; letter-spacing: -0.01em; } }
html:root:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #spelling-start-screen, #typegame-start-overlay, #timestable-start-overlay) .qz-seg { flex-wrap: wrap !important; }

/* Round 41c: narrow phones — steps row and the settings summary line never get cut off. */
html:root:root:root:root body .fs-steps { flex-wrap: wrap !important; justify-content: center !important; row-gap: 0.15rem; max-width: 100%; }
@media (max-width: 400px) {
  html:root:root:root:root body .fs-steps { font-size: 0.72rem !important; gap: 0.1rem !important; padding-left: 0 !important; padding-right: 0 !important; }
  html:root:root:root:root body .fs-steps .sp-step b { font-size: 1.1em !important; }
  html:root:root:root:root body .fs-steps .sp-step { padding-left: 0.3rem !important; padding-right: 0.3rem !important; }
  html:root:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #timestable-start-overlay) .fs-settings-now,
  html:root:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #typegame-start-overlay) .fs-settings-now,
  html:root:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #spelling-start-screen) .fs-settings-now { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.25; }
  html:root:root:root:root body :is(#typegame-start-overlay, #timestable-start-overlay) .qz-seg-btn { font-size: 0.76rem !important; }
}
@media (max-width: 400px) {
  html:root:root:root:root body .fs-steps .sp-step-arrow { margin: 0 !important; padding: 0 !important; width: 0.9rem; text-align: center; }
  html:root:root:root:root body .fs-steps .sp-step b { font-size: 1.25em !important; }
}
html:root:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #spelling-start-screen) .fs-count { word-break: keep-all; text-wrap: pretty; }

/* Round 41d: flashcard "Still learning / I know this" — label and count stay on one line and the two buttons match. */
html:root:root:root:root body :is(#flash-dont-know, #flash-know) { display: inline-flex !important; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: nowrap; white-space: nowrap; min-height: 3.2rem; padding-left: 0.9rem !important; padding-right: 0.9rem !important; font-size: clamp(0.85rem, 0.95rem, 1.05rem); }
@media (max-width: 400px) { html:root:root:root:root body :is(#flash-dont-know, #flash-know) { font-size: 0.8rem !important; gap: 0.3rem; padding-left: 0.5rem !important; padding-right: 0.5rem !important; } }

/* Round 41e: Korean text breaks between words, never in the middle of one (long words still wrap if they must). */
html:root[lang="ko"] body :is(p, h1, h2, h3, h4, li, label, summary, span, button, a, div) { word-break: keep-all; overflow-wrap: break-word; }

/* Round 42: home menu tiles get a soft mint outline (a shade deeper than the page's light mint) so neighbouring cards read as separate. */
html:root:root:root:root:not([data-theme="dark"]) body #view-landing .landing-tile { border: 2px solid #a9dccb !important; }
html:root:root:root:root:not([data-theme="dark"]) body #view-landing .landing-tile:hover { border-color: #6cc9ad !important; }
html:root:root:root:root[data-theme="dark"] body #view-landing .landing-tile { border: 2px solid rgba(110, 224, 168, 0.28) !important; }

/* Premium members tab: selection toolbar (Select All / Delete / Add) + card checkbox */
html:root body #my-added-words-card .pw-select-row { flex-wrap: wrap; margin: 12px 0 8px; }
html:root body #my-added-words-card .pw-select-row :is(#paid-delete-selected-btn, #paid-add-selected-btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-height: 36px; padding: 0 14px; margin: 0;
  border: 0 !important; border-radius: 999px; box-shadow: none !important; font-family: inherit; font-size: .88rem; font-weight: 800; line-height: 1; width: auto; white-space: nowrap;
}
html:root body #my-added-words-card .pw-select-row #paid-delete-selected-btn { background: #ffd9d9; color: #b84b4b; }
html:root body #my-added-words-card .pw-select-row #paid-add-selected-btn { background: #d9e8ff; color: #2f5fb3; }
html:root body #my-added-words-card .pw-select-row :is(#paid-delete-selected-btn, #paid-add-selected-btn):disabled { opacity: .55; }
html:root body #my-added-words-card .pw-select-row #paid-delete-selected-btn.error:not(:disabled) { background: #ff8f8f; color: #fff; }
html:root body #my-added-words-card .pw-select-row #paid-add-selected-btn.accent:not(:disabled) { background: #3f7be0; color: #fff; }
.pw-row .pw-select { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; cursor: pointer; accent-color: var(--accent-dark); }
@media (max-width: 520px) {
  html:root body #my-added-words-card .pw-select-row .cw-select-count { flex-basis: 100%; margin-left: 0; }
}

/* ===== My added words: bulk edit bar (English level / Korean level / part of speech) =====
   Flat mint strip, no border; only the Apply button is a real button. */
html:root body #my-added-words-card .cw-bulk-edit { margin: 6px 0 10px; padding: 10px 12px; border-radius: 14px; background: #eafaf4; }
html:root body #my-added-words-card .cw-bulk-edit[hidden] { display: none; }
html:root body #my-added-words-card .cw-bulk-edit-title { font-size: .88rem; font-weight: 800; color: #0b6b57; margin-bottom: 8px; }
html:root body #my-added-words-card .cw-bulk-edit-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
html:root body #my-added-words-card .cw-bulk-edit-field { display: flex; flex-direction: column; gap: 3px; font-size: .74rem; font-weight: 700; color: #4d7a6c; min-width: 0; }
html:root body #my-added-words-card .cw-bulk-edit-field .level-bulk-select { width: auto; max-width: 100%; min-height: 36px; font-size: .85rem; }
html:root body #my-added-words-card #cw-bulk-apply-btn { min-height: 36px; padding: 0 18px; border: 0 !important; box-shadow: none !important; }
html:root body #my-added-words-card #cw-bulk-apply-btn:disabled { opacity: .5; }
html:root[data-theme="dark"] body #my-added-words-card .cw-bulk-edit { background: #1d3a31; }
html:root[data-theme="dark"] body #my-added-words-card .cw-bulk-edit-title { color: #6ff0cf; }
html:root[data-theme="dark"] body #my-added-words-card .cw-bulk-edit-field { color: #9fd9c8; }
@media (max-width: 520px) {
  html:root body #my-added-words-card .cw-bulk-edit-fields { display: grid; grid-template-columns: 1fr 1fr; }
  html:root body #my-added-words-card .cw-bulk-edit-field .level-bulk-select { width: 100%; }
  html:root body #my-added-words-card #cw-bulk-apply-btn { grid-column: 1 / -1; }
}

/* ===== Multiple words: preview table (full-width card under the two add cards) ===== */
html:root body #bulk-preview-card { border: 0 !important; }
html:root body #bulk-preview-card .bp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; }
html:root body #bulk-preview-card .bp-head h3 { margin: 0; }
html:root body #bulk-preview-card .bp-head p { margin: 0; flex: 1 1 260px; }
html:root body #bulk-preview-card .bp-select-all { margin: 4px 0 8px; }
html:root body #bulk-preview-card .bp-table { display: flex; flex-direction: column; gap: 6px; }
html:root body #bulk-preview-card .bp-row { display: grid; align-items: center; gap: 8px 10px; padding: 8px 10px; border-radius: 12px; background: #f4fbf8;
  grid-template-columns: 28px minmax(90px, .9fr) minmax(110px, 1.6fr) minmax(90px, 1.1fr) 104px 112px 120px; }
html:root body #bulk-preview-card .bp-head-row { background: transparent; padding-top: 0; padding-bottom: 0; font-size: .74rem; font-weight: 800; color: #4d7a6c; }
html:root body #bulk-preview-card .bp-row.is-existing { background: #fff6e0; }
html:root body #bulk-preview-card .bp-row.is-locked { opacity: .6; }
html:root body #bulk-preview-card .bp-cell { min-width: 0; }
html:root body #bulk-preview-card .bp-tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent-dark); }
html:root body #bulk-preview-card .bp-wordcell { display: flex; flex-direction: column; gap: 2px; }
html:root body #bulk-preview-card .bp-word { font-weight: 800; font-size: 1rem; word-break: break-word; }
html:root body #bulk-preview-card .bp-tag { font-size: .72rem; font-weight: 700; color: #0b6b57; background: none; border: 0; padding: 0; }
html:root body #bulk-preview-card .bp-tag.is-warn { color: #b8741a; }
html:root body #bulk-preview-card .bp-tag[hidden] { display: none; }
html:root body #bulk-preview-card .bp-input,
html:root body #bulk-preview-card .bp-select { width: 100%; min-height: 36px; box-sizing: border-box; font-size: .88rem; border: 0 !important; box-shadow: none !important; border-radius: 10px; background: #fff; padding: 4px 8px; }
html:root body #bulk-preview-card .bp-cell::before { content: none; }
html:root[data-theme="dark"] body #bulk-preview-card .bp-row { background: #1d3a31; }
html:root[data-theme="dark"] body #bulk-preview-card .bp-head-row { background: transparent; color: #9fd9c8; }
html:root[data-theme="dark"] body #bulk-preview-card .bp-row.is-existing { background: #4a3b1a; }
html:root[data-theme="dark"] body #bulk-preview-card .bp-input,
html:root[data-theme="dark"] body #bulk-preview-card .bp-select { background: #12261f; color: inherit; }
/* Phones / narrow cards: each row becomes a small stacked card with labelled fields. */
@media (max-width: 980px) {
  html:root body #bulk-preview-card .bp-head-row { display: none; }
  html:root body #bulk-preview-card .bp-row { grid-template-columns: 28px 1fr 1fr; padding: 10px; }
  html:root body #bulk-preview-card .bp-wordcell { grid-column: 2 / -1; }
  html:root body #bulk-preview-card .bp-inputcell { grid-column: 1 / -1; }
  html:root body #bulk-preview-card .bp-cell[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 800; color: #4d7a6c; margin-bottom: 2px; }
  html:root body #bulk-preview-card .bp-selectcell { grid-column: 1 / -1; }
}

/* Flash for a word that was just added or edited in "My added words". */
@keyframes cwJustAdded { 0% { background-color: #bff3df; } 100% { background-color: transparent; } }
html:root body #my-added-words-card .wordlist-item.just-added { animation: cwJustAdded 2.6s ease-out 1; }

/* ===== Pill sizing pass: bulk edit bar + preview toolbar match the My words buttons (36px, fully round, 0.88rem bold) ===== */
html:root body #my-added-words-card .cw-bulk-edit .cw-bulk-edit-field .level-bulk-select {
  height: 36px; min-height: 36px; box-sizing: border-box; padding: 0 28px; border-radius: 999px;
  font-family: inherit; font-size: .88rem; font-weight: 800; line-height: 1; width: auto;
  text-align: center; text-align-last: center; -moz-text-align-last: center;
}
html:root body #my-added-words-card .cw-bulk-edit .cw-bulk-edit-field .level-bulk-select option { text-align: center; }
html:root body #my-added-words-card .cw-bulk-edit #cw-bulk-apply-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; min-height: 36px; box-sizing: border-box;
  padding: 0 22px; border-radius: 999px; font-family: inherit; font-size: .88rem; font-weight: 800; line-height: 1; width: auto; white-space: nowrap; margin: 0;
}
html:root body #bulk-preview-card .bp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 8px; }
html:root body #bulk-preview-card .bp-toolbar .bp-select-all { margin: 0; }
html:root body #bulk-preview-card .bp-toolbar #bulk-preview-save-top-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; min-height: 36px; box-sizing: border-box;
  padding: 0 18px; border: 0 !important; border-radius: 999px; font-family: inherit; font-size: .88rem; font-weight: 800; line-height: 1; width: auto; white-space: nowrap; margin: 0;
}
@media (max-width: 520px) {
  html:root body #my-added-words-card .cw-bulk-edit .cw-bulk-edit-field .level-bulk-select { width: 100%; }
}
/* Vertical centring of the select text: no top/bottom padding, line-height = height. */
html:root body #my-added-words-card .cw-bulk-edit .cw-bulk-edit-field .level-bulk-select { padding-top: 0; padding-bottom: 0; line-height: 34px; }

/* ===== Settings summary line: left-aligned ===== */
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #timestable-start-overlay) .fs-settings-now,
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #typegame-start-overlay) .fs-settings-now,
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #spelling-start-screen) .fs-settings-now { text-align: left !important; justify-self: start; }
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #timestable-start-overlay) .fs-settings-now > span,
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #typegame-start-overlay) .fs-settings-now > span,
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #spelling-start-screen) .fs-settings-now > span { display: block; text-align: left !important; }

/* ===== Flashcards "Cards per round": always one line ===== */
html:root:root:root body #flash-round-seg { display: flex !important; flex-wrap: nowrap !important; gap: 4px; }
html:root:root:root body #flash-round-seg .qz-seg-btn { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; white-space: nowrap !important; }

/* ===== Practice scope line (All words / My words only) ===== */
html:root:root body .scope-seg { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; }
html:root:root body .scope-seg .qz-seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
html:root:root body .scope-seg .qz-seg-btn small { font-size: .74em; font-weight: 600; opacity: .85; }
html:root:root body .scope-pick .scope-note[hidden] { display: none; }
html:root:root body .scope-pick .scope-note { text-align: center; margin: 6px 0 0; }
html:root body .tg-start-card .scope-pick { width: 100%; max-width: 420px; margin: 4px auto 6px; }

/* scope seg: equal columns, one line label+count */
html:root:root:root body .scope-seg { display: grid !important; grid-template-columns: 1fr 1fr !important; }
html:root:root:root body .scope-seg .qz-seg-btn { flex-wrap: nowrap !important; white-space: nowrap !important; padding-left: 6px; padding-right: 6px; }
html:root:root:root body .scope-seg .qz-seg-btn small { display: inline; }
/* typing game start card: readable title, clear selected state */
html:root:root:root body .tg-start-card .scope-pick .qz-pick-title { color: #0f5c4d; text-shadow: 0 1px 0 #fff; text-align: center; }
html:root:root:root body .tg-start-card .scope-seg { background: rgba(255,255,255,.7); border-radius: 999px; padding: 4px; }
html:root:root:root body .tg-start-card .scope-seg .qz-seg-btn { background: transparent; box-shadow: none; color: #0f6b57; border: 0; }
html:root:root:root body .tg-start-card .scope-seg .qz-seg-btn.on { background: #22c9a3; color: #fff; box-shadow: 0 2px 6px rgba(34,201,163,.35); }
html:root:root:root body .tg-start-card .scope-note { color: #0f5c4d; font-size: .8rem; }

/* ===== Quiz settings: every row on one line ===== */
html:root:root:root body #quiz-start-screen #quiz-settings-body .qz-seg:not(.scope-seg) { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 4px; padding: 4px !important; flex-wrap: nowrap !important; }
html:root:root:root body #quiz-start-screen #quiz-settings-body .qz-seg:not(.scope-seg) .qz-seg-btn { min-width: 0; width: auto; padding: 0 2px; white-space: nowrap !important; font-size: .85rem; }
html:root:root:root body #quiz-start-screen #quiz-round-seg .qz-seg-btn { font-size: .84rem; padding: 0 1px; }
html:root:root:root body #quiz-start-screen .qz-pick-title { white-space: nowrap; }
/* mode buttons: bigger emoji icons */
html:root:root:root body #quiz-mode-seg .qz-seg-btn::before { font-size: 1.45em; line-height: 1; margin-right: 6px; vertical-align: -0.12em; }
html:root:root:root body #quiz-mode-seg .qz-seg-btn[data-mode="relaxed"]::before { content: "🐢"; }
html:root:root:root body #quiz-mode-seg .qz-seg-btn[data-mode="time"]::before { content: "⏱"; }
html:root:root:root body #quiz-start-screen #quiz-settings-now > span { white-space: normal; }
html:root:root body .qz-seg-btn .rs-lock { font-style: normal; font-size: .62em; margin-left: 1px; }
html:root:root:root body #quiz-mode-seg .qz-seg-btn[data-mode="relaxed"]::before,
html:root:root:root body #quiz-mode-seg .qz-seg-btn.on[data-mode="relaxed"]::before { content: "🐢" !important; display: inline !important; }
html:root:root:root body #quiz-mode-seg .qz-seg-btn.on[data-mode="time"]::before { content: "⏱" !important; display: inline !important; }
html:root:root:root body #quiz-start-screen #quiz-category-seg .qz-seg-btn { font-size: .8rem; }

/* ===== v175: scope row, one-line summaries, spelling level row, no helper notes ===== */
html:root:root:root body .scope-pick .scope-note,
html:root:root:root body #quiz-mode-note { display: none !important; }
html:root:root:root body .scope-pick .scope-seg { flex: 1 1 auto; width: auto; min-width: 0; }
html:root:root:root body .scope-pick .scope-seg .qz-seg-btn,
html:root:root:root body #quiz-start-screen .scope-seg .qz-seg-btn,
html:root:root:root body #timestable-start-overlay .scope-seg .qz-seg-btn,
html:root:root:root body #typegame-start-overlay .scope-seg .qz-seg-btn,
html:root:root:root body #spelling-start-screen .scope-seg .qz-seg-btn,
html:root:root:root body #flash-start-screen .scope-seg .qz-seg-btn { white-space: nowrap !important; flex-wrap: nowrap !important; width: auto; padding: 0 8px; }
html:root:root:root body .scope-seg .qz-seg-btn small { white-space: nowrap; }
/* summary: always one line */
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #timestable-start-overlay) .fs-settings-now,
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #typegame-start-overlay) .fs-settings-now,
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #spelling-start-screen) .fs-settings-now,
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #timestable-start-overlay) .fs-settings-now > span,
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #typegame-start-overlay) .fs-settings-now > span,
html:root:root:root body :is(#flash-start-screen, #quiz-start-screen, #spelling-start-screen) .fs-settings-now > span { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* spelling difficulty row = quiz difficulty row */
html:root:root:root body #spelling-start-screen #spelling-level-seg { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 4px; padding: 4px !important; flex-wrap: nowrap !important; }
html:root:root:root body #spelling-start-screen #spelling-level-seg .qz-seg-btn { min-width: 0; width: auto; padding: 0 2px; white-space: nowrap !important; font-size: .85rem; }
html:root:root:root body #spelling-start-screen #spelling-round-seg { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 4px; padding: 4px !important; flex-wrap: nowrap !important; }
html:root:root:root body #spelling-start-screen #spelling-round-seg .qz-seg-btn { min-width: 0; width: auto; padding: 0 1px; white-space: nowrap !important; font-size: .84rem; }

/* ===== Typing game start card: settings dropdown ===== */
html:root:root:root body #timestable-start-overlay .tg-start-card,
html:root:root:root body #typegame-start-overlay .tg-start-card { gap: 10px; }
html:root:root:root body #timestable-start-overlay #typegame-settings,
html:root:root:root body #typegame-start-overlay #typegame-settings { width: min(100%, 420px); margin: 0 auto; }
html:root:root:root body #typegame-start-overlay #typegame-level-seg,
html:root:root:root body #typegame-start-overlay #typegame-mode-seg { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 4px; padding: 4px !important; flex-wrap: nowrap !important; }
html:root:root:root body #typegame-start-overlay #typegame-level-seg .qz-seg-btn,
html:root:root:root body #typegame-start-overlay #typegame-mode-seg .qz-seg-btn { min-width: 0; width: auto; padding: 0 2px; white-space: nowrap !important; font-size: .85rem; }
html:root:root:root body #timestable-start-overlay .fs-settings-now,
html:root:root:root body #typegame-start-overlay .fs-settings-now,
html:root:root:root body #timestable-start-overlay .fs-settings-now > span,
html:root:root:root body #typegame-start-overlay .fs-settings-now > span { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html:root:root:root body #timestable-start-overlay .tg-start-chips:not(:has(.tg-start-best:not([hidden]))),
html:root:root:root body #typegame-start-overlay .tg-start-chips:not(:has(.tg-start-best:not([hidden]))) { display: none; }

/* ===== Times table start card: settings dropdown ===== */
html:root:root:root body #timestable-start-overlay .tg-start-card { gap: 10px; }
html:root:root:root body #timestable-start-overlay #timestable-settings { width: min(100%, 420px); margin: 0 auto; }
html:root:root:root body #timestable-start-overlay .tt-pick-tables { align-items: flex-start; }
html:root:root:root body #timestable-start-overlay #timestable-start-panel { position: static !important; display: block !important; flex: 1 1 0; min-width: 0; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html:root:root:root body #timestable-start-overlay #timestable-start-panel .tt-range-grid { grid-template-columns: repeat(auto-fill, minmax(2.2rem, 1fr)); gap: 6px; }
html:root:root:root body #timestable-start-overlay #timestable-start-panel .tt-chip { min-height: 34px; border-radius: 999px; border: 0; background: #d5efe4; font-size: .85rem; }
html:root:root:root body #timestable-start-overlay #timestable-start-panel .tt-chip.on { background: #22c9a3; color: #fff; }
html:root:root:root body #timestable-start-overlay #timestable-start-panel .tt-range-quick button { min-height: 34px; border: 0; background: #d5efe4; font-size: .85rem; }
html:root:root:root body #timestable-start-overlay #timestable-start-panel .tt-range-quick button.on { background: #22c9a3; color: #fff; }
html:root:root:root body #timestable-start-overlay #timestable-mode-seg { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 4px; padding: 4px !important; flex-wrap: nowrap !important; }
html:root:root:root body #timestable-start-overlay #timestable-mode-seg .qz-seg-btn { min-width: 0; width: auto; padding: 0 2px; white-space: nowrap !important; font-size: .85rem; }
html:root:root:root body #timestable-start-overlay .fs-settings-now { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html:root:root:root body #timestable-start-overlay .tg-start-chips:not(:has(.tg-start-best:not([hidden]))) { display: none; }

/* Round 26: My Account - the Premium upgrade now lives inside the account card, with a flat amber "Join Premium" button */
html:root body #view-myaccount .acct-upgrade { margin-top: 16px; padding: 16px; border-radius: 18px; background: #f3faf7; }
html:root body #view-myaccount .acct-upgrade[hidden] { display: none; }
html:root body #view-myaccount .acct-upgrade-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
html:root body #view-myaccount .acct-upgrade-head h4 { margin: 0; font-family: var(--font-heading); font-size: 1.08rem; color: var(--text); }
html:root body #view-myaccount .acct-upgrade .upgrade-hero { background: #fff; border: 0 !important; box-shadow: none !important; margin: 0 0 4px; }
html:root body #view-myaccount .acct-upgrade .upgrade-card-actions { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; }
html:root body #view-myaccount .acct-upgrade .upgrade-card-actions .pill { width: 100%; min-height: 46px; padding: 0 10px; border: 0 !important; box-shadow: none !important; white-space: nowrap; font-size: 1rem; font-weight: 800; justify-content: center; }
html:root body #view-myaccount .acct-upgrade .acct-join-btn { background: #ffb324; color: #4a3000; }
html:root body #view-myaccount .acct-upgrade .acct-join-btn::before { content: "\2605"; margin-right: 6px; color: #fff; text-shadow: 0 1px 0 rgba(139, 84, 0, .35); }
html:root body #view-myaccount .acct-upgrade .acct-join-btn:hover { background: #ffa400; }
html:root body #view-myaccount .acct-upgrade .acct-join-btn:active { transform: translateY(1px); }
html:root body #view-myaccount .acct-upgrade .pill.neutral { background: #dcefe7; color: #0b6b57; }
html:root body #view-myaccount .acct-upgrade .pill.neutral:hover { background: #cde8dd; }
html:root[data-theme="dark"] body #view-myaccount .acct-upgrade { background: #1f2f29; }
html:root[data-theme="dark"] body #view-myaccount .acct-upgrade .upgrade-hero { background: #243730; }
html:root[data-theme="dark"] body #view-myaccount .acct-upgrade .pill.neutral { background: #2c453b; color: #8fe3c8; }

/* Round 26: Premium payment popup - same look as the login / sign-up popup (mint brand panel + flat rows, amber highlight, no blue) */
.pay-overlay { position: fixed; inset: 0; background: rgba(20, 28, 55, 0.55); display: flex; align-items: center; justify-content: center; z-index: 1200; padding: 16px; }
.pay-overlay[hidden] { display: none; }
.pay-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); width: 100%; max-width: 680px; max-height: calc(100dvh - 32px); overflow: hidden; background: #fff; border: 1px solid var(--outline); border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.pay-brand { background: #d6f3e7; padding: 20px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.pay-brand-logo { width: 92px; height: 92px; }
.pay-brand-name { margin: 0; font-family: var(--font-heading); font-size: 1.1rem; line-height: 1.2; color: #23403a; }
.pay-brand-tag { margin: 0; font-size: .8rem; line-height: 1.5; color: #5f7d75; white-space: pre-line; }
.pay-main { padding: 20px 22px 16px; overflow-x: hidden; overflow-y: auto; min-width: 0; text-align: left; }
.pay-title { margin: 0 0 8px; font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.25; color: #23403a; text-align: left; white-space: nowrap; }
.pay-message { margin: 0 0 16px; font-size: .86rem; line-height: 1.5; color: var(--text); opacity: .85; }
.pay-plans { display: grid; gap: 8px; margin-bottom: 8px; }
.pay-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; border: 0; border-radius: 16px; background: #eef6f2; color: var(--text); font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; text-align: left; }
.pay-plan:hover:not(:disabled) { background: #dcefe7; }
.pay-plan:disabled { opacity: .6; cursor: default; }
.pay-plan-name { font-family: var(--font-heading); font-size: 1.02rem; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pay-plan-price { font-size: .95rem; white-space: nowrap; }
.pay-plan-tag { font-style: normal; font-family: inherit; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: #fff; color: #b36b00; white-space: nowrap; }
.pay-cancel { display: block; width: 100%; padding: 10px 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; text-align: center; white-space: nowrap; }
.pay-cancel:hover { color: var(--text); text-decoration: underline; }
.pay-secure { margin: 6px 0 0; font-size: .76rem; line-height: 1.5; color: var(--muted); text-align: center; }
.pay-secure::before { content: "\1F512\00a0"; }
html[data-theme="dark"] .pay-card { background: #1d302a; }
html[data-theme="dark"] .pay-brand { background: #254a3d; }
html[data-theme="dark"] .pay-brand-name, html[data-theme="dark"] .pay-title { color: #e6f3ee; }
html[data-theme="dark"] .pay-brand-tag { color: #93b0a8; }
html[data-theme="dark"] .pay-plan { background: #243730; color: #e8f3ee; }
html[data-theme="dark"] .pay-plan:hover:not(:disabled) { background: #2c453b; }
@media (max-width: 640px) {
  .pay-card { grid-template-columns: minmax(0, 1fr); max-width: 400px; overflow-y: auto; }
  .pay-brand { flex-direction: row; justify-content: flex-start; padding: 12px 18px; gap: 12px; }
  .pay-brand-tag { display: none; }
  .pay-brand-logo { width: 44px; height: 44px; }
  .pay-main { overflow: visible; padding: 16px 18px 20px; }
  .pay-plan { padding: 0 12px; }
}
@media (max-width: 480px) {
  .pay-overlay { align-items: flex-end; padding: 0; }
  .pay-card { max-width: none; max-height: 90dvh; border-radius: 22px 22px 0 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheet-slide-up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
  .pay-title { font-size: 1.1rem; }
}
html:root:root body #view-myaccount .acct-upgrade .acct-join-btn { background: #ffb324 !important; color: #4a3000 !important; }
html:root:root body #view-myaccount .acct-upgrade .acct-join-btn:hover { background: #ffa400 !important; }
html:root:root body #view-myaccount .acct-upgrade .pill.neutral { background: #dcefe7 !important; color: #0b6b57 !important; }
html:root:root[data-theme="dark"] body #view-myaccount .acct-upgrade .pill.neutral { background: #2c453b !important; color: #8fe3c8 !important; }

/* Round 27: payment popup - radio rows (Monthly first, selected by default, yellow highlight) + a Pay button */
.pay-plan { position: relative; }
.pay-plan-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #b9d8cd; }
.pay-plan-name { flex: 1 1 auto; min-width: 0; }
.pay-plan.is-on { background: #ffe9a8; color: #4a3000; }
.pay-plan.is-on:hover:not(:disabled) { background: #ffe29a; }
.pay-plan.is-on .pay-plan-radio { background: #e39a00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: none; }
.pay-plan:focus-visible { outline: 3px solid #e39a00; outline-offset: 2px; }
.pay-go { display: block; width: 100%; min-height: 48px; margin-top: 4px; border: 0; border-radius: 16px; background: var(--accent); color: #fff; font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.pay-go:hover:not(:disabled) { background: var(--accent-dark); }
.pay-go:disabled { opacity: .6; cursor: default; }
html[data-theme="dark"] .pay-plan-radio { background: #1d302a; box-shadow: inset 0 0 0 2px #4f7a6b; }
html[data-theme="dark"] .pay-plan.is-on { background: #5a4818; color: #fff3cf; }
html[data-theme="dark"] .pay-plan.is-on:hover:not(:disabled) { background: #6a551c; }

/* Round 27: My Account - email, role and join date on one line */
html:root body #view-myaccount #my-account-status.acct-oneline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-bottom: 8px; }
html:root body #view-myaccount .acct-oneline .stat-box { grid-column: auto; padding: 8px 10px; min-width: 0; text-align: left; }
html:root body #view-myaccount .acct-oneline .stat-box .num { font-size: .95rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; overflow-wrap: normal; }
html:root body #view-myaccount .acct-oneline .stat-box .lbl { font-size: .72rem; white-space: nowrap; }
@media (max-width: 400px) { html:root body #view-myaccount .acct-oneline .stat-box { padding: 8px 8px; } html:root body #view-myaccount .acct-oneline .stat-box .num { font-size: .88rem; } }
html:root body #view-myaccount .acct-upg-line { margin: 0 0 4px; font-size: .82rem; font-weight: 700; color: #8a5a00; }
html:root body #view-myaccount .acct-upg-line[hidden] { display: none; }

/* Round 27: the "are you sure?" popup must sit above the admin customer sheet (both are kid-modal overlays) */
html:root body #kid-confirm-overlay { z-index: 1400; }

/* Round 28: free members' menu row, and the "switch to free" / "close account" popups in the login-popup style */
html:root body #auth-menu-premium-btn { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #8a5a00; }
html:root body #auth-menu-premium-btn[hidden] { display: none; }
html:root body #auth-menu-premium-btn .auth-menu-ico { fill: #ffc93c; stroke: #d99a00; }
html:root[data-theme="dark"] body #auth-menu-premium-btn { color: #ffd77a; }
.pay-title-wrap { white-space: normal; }
.pay-go + .pay-danger, .pay-go + .pay-cancel { margin-top: 8px; }
.pay-danger { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 16px; background: #ffe3e3; color: #b42318; font-family: var(--font-heading); font-size: 1rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.pay-danger:hover:not(:disabled) { background: #ffd1d1; }
.pay-danger:disabled { opacity: .6; cursor: default; }
html[data-theme="dark"] .pay-danger { background: #4a2626; color: #ffb4ab; }
html[data-theme="dark"] .pay-danger:hover:not(:disabled) { background: #5a2d2d; }
.pay-field { margin: 0 0 14px; text-align: left; }
.pay-field label { display: block; margin: 0 0 6px; font-size: .84rem; font-weight: 700; color: var(--text); }
.pay-field input { width: 100%; box-sizing: border-box; }
.pay-brand-name + .pay-brand-tag { margin-top: -4px; }

/* Koala House switches (System tab) — the site's flat tab rail (mint bar, only the chosen one filled; same as My Progress / My Koala tabs) */
.admin-house-now { margin: 4px 0 10px; font-weight: 700; }
.admin-house-choices { display: flex; flex-wrap: nowrap; gap: 4px; padding: 4px; background: #e1f3ec; border-radius: 16px; }
.admin-house-choice { flex: 1 1 0; min-width: 0; border: 0; box-shadow: none; background: transparent; color: var(--accent-dark, #0f7a62); border-radius: 12px; padding: 10px 4px; font: inherit; font-size: .82rem; font-weight: 800; text-align: center; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-house-choice.on { background: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(20, 160, 130, .35); }
.admin-house-choice:not(.on):active { background: rgba(46, 204, 160, .25); }
html[data-theme="dark"] .admin-house-choices { background: #1b2b25; }
html[data-theme="dark"] .admin-house-choice { color: #6ff0cf; }
html[data-theme="dark"] .admin-house-choice.on { color: #04281f; }
.admin-house-hint { margin: 6px 2px 12px; }
.admin-house-hint.is-stop { color: #d64545; font-weight: 700; opacity: 1; }
.auth-hint.admin-house-warn { color: #b8620a; font-weight: 700; }
.admin-house-lbl { display: block; margin: 6px 0 4px; font-weight: 700; font-size: 14px; }
.admin-house-move { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.08); }
.admin-house-move .admin-house-now { margin: 0; }
