:root{--bg:#fbf7ef;--surface:#fffefa;--surface-2:#f4efe5;--ink:#292522;--muted:#746e69;--line:#eadfd4;--accent:#e72e26;--accent-dark:#b8201d;--accent-soft:#fde8e4;--pink:#f8d8e5;--peach:#ffd9ca;--mint:#d8eee4;--blue:#dceff8;--gold:#ffedaa;--danger:#b64037;--shadow:0 12px 34px rgba(59,37,25,.07);--radius:20px;--font:'Montserrat',Arial,sans-serif;--display:'Montserrat',Arial,sans-serif}
:root.dark{--bg:#202326;--surface:#292d30;--surface-2:#34393c;--ink:#f8f3eb;--muted:#c0b7ad;--line:#454b4d;--accent:#ff766b;--accent-dark:#ffaca4;--accent-soft:#4a3332;--pink:#4a3440;--peach:#513b33;--mint:#2e4940;--blue:#304650;--gold:#50462f;--danger:#ff9b91;--shadow:0 12px 34px rgba(0,0,0,.23)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font:14px var(--font)}body{min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed;transform:none!important}a{color:inherit;text-decoration:none}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)}.display{font-family:var(--display);letter-spacing:-.5px}.boot{min-height:100vh;display:grid;place-content:center;text-align:center;gap:12px}.brand-mark{width:48px;height:48px;border-radius:16px;background:var(--accent-soft);color:var(--accent-dark);display:grid;place-items:center;font-size:25px;font-weight:800;margin:auto}.boot-title{font:600 27px var(--display)}
/* Auth */
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);background:var(--surface)}.auth-story{padding:clamp(34px,7vw,92px);display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#eee8f6 0%,#f9eee9 55%,#f3e7e9 100%);color:#302b38;position:relative;overflow:hidden}.auth-story:after{content:"";position:absolute;width:420px;height:420px;border:1px solid #ffffffa8;border-radius:50%;right:-120px;bottom:-160px;box-shadow:0 0 0 45px #ffffff2a,0 0 0 90px #ffffff18}.story-brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:17px;position:relative;z-index:1}.story-brand .brand-mark{margin:0;background:#ffffffb5}.story-copy{max-width:560px;position:relative;z-index:1}.story-copy h1{font:600 clamp(38px,5.1vw,64px)/1.04 var(--display);margin:16px 0}.story-copy p{font-size:15px;line-height:1.8;color:#655f68;max-width:490px}.story-points{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:600px;position:relative;z-index:1}.story-point{padding:14px;background:#ffffff8a;border:1px solid #ffffffa8;border-radius:15px}.story-point strong{display:block;font-size:13px;margin-bottom:5px}.story-point span{font-size:11px;color:#746c76;line-height:1.5}.auth-panel{display:grid;place-items:center;padding:34px 26px}.auth-card{width:min(440px,100%)}.auth-card h2{font:600 34px var(--display);margin:10px 0 7px}.auth-card p{line-height:1.7}.auth-tabs{display:flex;padding:4px;background:var(--surface-2);border-radius:12px;margin:22px 0 18px}.auth-tabs button{flex:1;border:0;background:transparent;color:var(--muted);padding:10px;border-radius:9px;font-weight:700}.auth-tabs button.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
/* Fields / buttons */
.field{display:grid;gap:7px;margin:12px 0}.field label{font-size:12px;font-weight:700;color:var(--muted)}input,textarea,select{width:100%;min-width:0;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);outline:none}textarea{resize:vertical;min-height:88px}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent)}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);font-weight:700;transition:.16s}.btn:hover{border-color:var(--accent);transform:translateY(-1px)}.btn.primary{background:var(--accent);border-color:var(--accent);color:white}.btn.primary:hover{background:var(--accent-dark)}.btn.soft{background:var(--accent-soft);color:var(--accent-dark);border-color:transparent}.btn.danger{background:color-mix(in srgb,var(--danger) 12%,var(--surface));color:var(--danger);border-color:transparent}.btn.block{width:100%}.btn.small-btn{padding:7px 10px;font-size:12px}.btn.icon-btn{width:38px;height:38px;padding:0}.btn.ghost{background:transparent}.divider-label{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;margin:17px 0}.divider-label:before,.divider-label:after{content:"";height:1px;background:var(--line);flex:1}.auth-note{font-size:11px;color:var(--muted);line-height:1.6;margin-top:16px}
/* App shell */
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--surface);border-right:1px solid var(--line);padding:20px 14px;display:flex;flex-direction:column;z-index:30;overflow:auto}.brand{display:flex;align-items:center;gap:10px;padding:2px 10px 22px;font-size:18px;font-weight:800;letter-spacing:-.5px}.brand .brand-mark{width:36px;height:36px;border-radius:12px;margin:0;font-size:19px}.nav-group{margin:13px 0 5px;padding:0 12px;font-size:10px;font-weight:800;letter-spacing:1.25px;color:var(--muted)}.nav{display:grid;gap:3px}.nav button{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:var(--muted);padding:10px 12px;border-radius:11px;text-align:left;font-weight:600}.nav button:hover{background:var(--surface-2);color:var(--ink)}.nav button.active{background:var(--accent-soft);color:var(--accent-dark);font-weight:800}.nav .nav-symbol{width:20px;text-align:center;font-size:16px}.nav .nav-count{margin-left:auto;font-size:10px;padding:3px 7px;border-radius:20px;background:var(--pink);color:var(--ink)}.side-bottom{margin-top:auto;padding:12px 8px 0}.connection-card{background:var(--surface-2);padding:12px;border-radius:13px;font-size:11px;line-height:1.5;color:var(--muted)}.connection-status{display:flex;align-items:center;gap:7px;color:var(--ink);font-weight:700;margin-bottom:5px}.dot{width:7px;height:7px;border-radius:50%;background:#65a77b}.dot.off{background:#c69b54}.app-main{margin-left:248px;min-height:100vh}.topbar{height:76px;position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3vw,42px);gap:16px}.topbar-left{min-width:0}.topbar h1{font:600 22px var(--display);margin:2px 0}.top-actions{display:flex;align-items:center;gap:9px}.pill{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--surface);border-radius:30px;padding:8px 11px;font-size:11px;font-weight:800}.avatar{height:36px;width:36px;border-radius:50%;border:1px solid var(--line);background:var(--pink);color:var(--ink);display:grid;place-items:center;font-weight:800}.main-content{max-width:1480px;margin:0 auto;padding:26px clamp(18px,3vw,42px) 60px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}.page-head h2{font:600 28px var(--display);margin:4px 0}.page-head p{color:var(--muted);margin:0;line-height:1.6}.grid{display:grid;gap:15px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stat-card,.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);min-width:0}.stat-card{position:relative;overflow:hidden}.stat-card .stat-label{font-size:11px;color:var(--muted);font-weight:700}.stat-card .stat-number{font:600 30px var(--display);margin:8px 0 3px}.stat-card .stat-foot{font-size:11px;color:var(--muted)}.stat-accent{position:absolute;right:16px;top:15px;width:34px;height:34px;border-radius:11px;background:var(--accent-soft);display:grid;place-items:center;color:var(--accent-dark);font-size:16px}.two-col{grid-template-columns:1.25fr 1fr;margin-top:15px}.three-col{grid-template-columns:repeat(3,1fr)}.card h3{font:600 18px var(--display);margin:0 0 13px}.card h4{font-size:13px;margin:0 0 7px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.card-head h3{margin:0}.muted-line{color:var(--muted);font-size:11px;line-height:1.6}.progress{height:8px;background:var(--surface-2);border-radius:20px;overflow:hidden}.progress span{height:100%;display:block;background:var(--accent);border-radius:20px}.progress-row{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin:8px 0}.heatmap{display:grid;grid-template-columns:repeat(14,1fr);gap:5px;margin-top:17px}.heat-cell{aspect-ratio:1;border-radius:4px;background:var(--surface-2)}.heat-cell[data-v="1"]{background:#d9cde9}.heat-cell[data-v="2"]{background:#b9a6d4}.heat-cell[data-v="3"]{background:#927bb7}.heat-cell[data-v="4"]{background:#6e588f}.dark .heat-cell[data-v="1"]{background:#504363}.dark .heat-cell[data-v="2"]{background:#6e5a8e}.dark .heat-cell[data-v="3"]{background:#9a83bf}.dark .heat-cell[data-v="4"]{background:#c5a9ed}.bar-row{display:grid;grid-template-columns:88px 1fr 32px;align-items:center;gap:9px;margin:11px 0;font-size:11px}.bar-row .progress{height:9px}.empty{padding:34px 18px;text-align:center;color:var(--muted);line-height:1.7}.empty strong{display:block;color:var(--ink);font:600 20px var(--display);margin-bottom:5px}.toolbar{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.toolbar input{flex:1;min-width:190px}.toolbar select{width:auto;min-width:140px}.tabs{display:flex;gap:6px;flex-wrap:wrap;padding:5px;background:var(--surface-2);border-radius:12px;width:max-content;max-width:100%}.tabs button{border:0;background:transparent;padding:8px 11px;border-radius:9px;color:var(--muted);font-size:12px;font-weight:700}.tabs button.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:760px}.table th,.table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:middle}.table th{font-size:10px;color:var(--muted);letter-spacing:1px;text-transform:uppercase}.table tbody tr:hover{background:color-mix(in srgb,var(--surface-2) 55%,transparent)}.word-title{font-weight:800}.word-ipa{font-size:11px;color:var(--muted);margin-top:3px}.chip{display:inline-flex;align-items:center;padding:4px 8px;border-radius:30px;background:var(--surface-2);font-size:10px;font-weight:700;color:var(--muted);margin:2px}.chip.accent{background:var(--accent-soft);color:var(--accent-dark)}.chip.good{background:var(--mint);color:#4c7658}.chip.warn{background:var(--gold);color:#896c36}.chip.bad{background:var(--pink);color:var(--danger)}.deck-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.deck-card{min-height:168px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.deck-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.deck-color{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-dark)}.deck-card h3{font:600 19px var(--display);margin:13px 0 5px}.deck-card p{color:var(--muted);font-size:11px;line-height:1.6;margin:0}.deck-foot{display:flex;justify-content:space-between;align-items:center;margin-top:16px;font-size:11px;color:var(--muted)}.subdeck{margin:8px 0 0 16px;padding-left:13px;border-left:1px solid var(--line)}.session-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}.mode-card{padding:16px;border:1px solid var(--line);border-radius:15px;background:var(--surface);text-align:left;min-height:115px}.mode-card:hover{border-color:var(--accent);background:var(--accent-soft)}.mode-card strong{display:block;margin:9px 0 4px}.mode-card span{font-size:11px;color:var(--muted);line-height:1.5}.study-card{max-width:760px;margin:20px auto;padding:clamp(20px,4vw,34px);text-align:center}.study-word{font:600 clamp(34px,6vw,48px) var(--display);margin:30px 0 6px}.study-meaning{font-size:18px;line-height:1.6}.answer-list{display:grid;gap:9px;max-width:540px;margin:20px auto}.answer-option{padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-align:left;color:var(--ink)}.answer-option:hover{border-color:var(--accent);background:var(--accent-soft)}.answer-option.correct{border-color:#6eaa80;background:var(--mint)}.answer-option.incorrect{border-color:var(--danger);background:var(--pink)}.rating-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:20px}.rating-row .btn{min-width:82px}.feedback{max-width:560px;margin:16px auto;padding:12px 14px;border-radius:12px;text-align:left;background:var(--surface-2);line-height:1.65}.feedback.ok{background:var(--mint)}.feedback.no{background:var(--pink)}.match-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.match-option{padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-align:left;min-height:56px}.match-option.selected{border-color:var(--accent);background:var(--accent-soft)}.match-option.matched{opacity:.4;text-decoration:line-through}.session-progress{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.session-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:15px}.path-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.path-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:17px}.path-card h3{font:600 19px var(--display);margin:7px 0}.activity-bars{display:flex;align-items:flex-end;gap:8px;height:150px;padding:12px 2px 0;border-bottom:1px solid var(--line)}.activity-bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px}.activity-bar i{display:block;width:100%;max-width:24px;min-height:2px;border-radius:5px 5px 0 0;background:var(--accent)}.activity-bar span{font-size:9px;color:var(--muted)}.modal-backdrop{position:fixed;inset:0;background:#211d2c83;z-index:60;display:grid;place-items:center;padding:16px}.modal{background:var(--surface);border:1px solid var(--line);border-radius:18px;width:min(760px,100%);max-height:90vh;overflow:auto;padding:20px;box-shadow:0 24px 80px #0003}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.modal-head h3{font:600 23px var(--display);margin:0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px}.notice{padding:12px 14px;border-radius:12px;background:var(--accent-soft);color:var(--accent-dark);font-size:12px;line-height:1.6;margin:10px 0}.notice.warn{background:var(--gold);color:#85662f}.notice.success{background:var(--mint);color:#4b7556}.toast{position:fixed;right:18px;bottom:18px;z-index:100;background:var(--ink);color:var(--surface);padding:12px 16px;border-radius:12px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s;max-width:min(420px,calc(100vw - 36px));font-size:12px}.toast.show{opacity:1;transform:translateY(0)}.mobile-menu{display:none}.mobile-nav{display:none}.hidden{display:none!important}.skeleton{height:10px;border-radius:10px;background:var(--surface-2)}.settings-grid{grid-template-columns:1fr 1fr}.profile-avatar{width:66px;height:66px;border-radius:20px;background:var(--pink);display:grid;place-items:center;font:600 30px var(--display)}.admin-tag{font-size:9px;border-radius:5px;background:var(--gold);padding:3px 6px;color:#8c6f36;font-weight:800}
@media(max-width:1100px){.sidebar{width:220px}.app-main{margin-left:220px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.deck-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}}
@media(max-width:760px){.auth-shell{grid-template-columns:1fr}.auth-story{display:none}.auth-panel{min-height:100vh}.sidebar{display:none}.app-main{margin-left:0;padding-bottom:70px}.topbar{height:64px;padding:0 16px}.topbar h1{font-size:19px}.topbar .eyebrow{display:none}.main-content{padding:20px 14px 32px}.mobile-menu{display:inline-flex}.mobile-nav{display:flex;position:fixed;z-index:40;inset:auto 0 0;background:var(--surface);border-top:1px solid var(--line);padding:7px 5px max(7px,env(safe-area-inset-bottom));justify-content:space-around;gap:2px}.mobile-nav button{display:grid;justify-items:center;gap:3px;flex:1;border:0;background:transparent;color:var(--muted);font-size:9px;padding:5px 2px}.mobile-nav button.active{color:var(--accent-dark);font-weight:800}.mobile-nav b{font-size:17px;font-weight:500}.mobile-nav span{white-space:nowrap}.session-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.path-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.story-points{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.page-head .btn{width:100%}}
@media(max-width:430px){.stats-grid{gap:9px}.stat-card{padding:13px}.stat-card .stat-number{font-size:25px}.stat-accent{right:10px;top:10px;width:28px;height:28px}.deck-grid{grid-template-columns:1fr}.session-grid{grid-template-columns:1fr 1fr}.top-actions .pill:nth-child(2){display:none}.toolbar>*{min-width:0}.match-grid{gap:7px}.match-option{font-size:11px;padding:10px}}
.row-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.row-item:last-child{border-bottom:0}

/* Vocab Studio 2.2 — colorful, flat Bento system inspired by the supplied dashboard references. */
:root{
  --bg:#eaf4f8;--surface:#ffffff;--surface-2:#f2f7f8;--ink:#282b31;--muted:#737b82;--line:#e4ebee;
  --accent:#dd6f99;--accent-dark:#a83e68;--accent-soft:#f9e4ec;--pink:#fbe5e9;--peach:#ffeddc;--mint:#e4f2d3;--blue:#e3f1f8;--gold:#ffedaa;--danger:#cb5c4e;
  --shadow:0 10px 28px rgba(42,57,65,.075);--radius:22px;--font:'Montserrat',Arial,sans-serif;--display:'Montserrat',Arial,sans-serif;
}
:root.dark{--bg:#202326;--surface:#292d30;--surface-2:#34393c;--ink:#f8f3eb;--muted:#c0b7ad;--line:#454b4d;--accent:#ff766b;--accent-dark:#ffaca4;--accent-soft:#4a3332;--pink:#4a3440;--peach:#513b33;--mint:#2e4940;--blue:#304650;--gold:#50462f;--danger:#ff9b91;--shadow:0 12px 34px rgba(0,0,0,.23)}
  --bg:#1c2327;--surface:#252e33;--surface-2:#303a40;--ink:#f3f3ef;--muted:#b2bdc1;--line:#3d4a50;
  --accent:#ef8db1;--accent-dark:#f5b4cb;--accent-soft:#49313e;--pink:#49343a;--peach:#4b3c31;--mint:#334637;--blue:#2c414a;--gold:#51472c;--danger:#ff9584;
  --shadow:0 12px 30px rgba(0,0,0,.22);
}
html,body,button,input,select,textarea,*{font-family:'Montserrat',Arial,sans-serif!important}
body{background:var(--bg);color:var(--ink)}
.app-shell{background:var(--bg)}
.sidebar{background:#fff;border-right:0;box-shadow:4px 0 24px rgba(38,57,66,.035)}
.brand{font-family:'Montserrat',Arial,sans-serif;font-size:22px;letter-spacing:0;color:#34323a}
.brand-mark{background:#f9e3eb;color:#a83e68;border-radius:13px}
.nav-group{font-size:12px;letter-spacing:1.1px;color:#859096}
.nav button{border-radius:14px;padding:12px 13px;color:#59636a}
.nav button.active{background:#f5dce6;color:#983e63}
.nav button:hover{background:#edf4f5;color:#303940}
.app-main{background:var(--bg)}
.topbar{background:#fff;border-bottom:1px solid #e8eef0;backdrop-filter:none}
.topbar h1,.page-head h2{font-family:'Montserrat',Arial,sans-serif;font-weight:700;letter-spacing:0}
.topbar .eyebrow,.eyebrow{letter-spacing:1.15px;color:#8b8d8d}
.pill{background:#f5f8f7;border:0;color:#414c51}
.avatar{background:#f7dce7;color:#9c3e67;border:0}
.main-content{padding-top:22px}
.btn{border-radius:13px;font-weight:700}
.btn.primary{background:#d96b93;color:#fff;box-shadow:0 4px 10px rgba(190,75,117,.12)}
.btn.primary:hover{background:#c95782}
.btn.soft{background:#f9e4ec;color:#9f456b}
.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}
.card,.stat-card,.path-card,.modal{border:0;box-shadow:var(--shadow);border-radius:22px}
.card{background:var(--surface)}
.card h3,.card h4,.deck-card h3,.path-card h3{font-family:'Montserrat',Arial,sans-serif}
.progress{background:#e7edef;height:10px}
.progress span{background:#d96b93}
.heatmap{gap:6px}
.heat-cell{border-radius:7px;background:#eef2ef}
.heat-cell[data-v="1"]{background:#e4efd7}.heat-cell[data-v="2"]{background:#cbe7a8}.heat-cell[data-v="3"]{background:#9bd35e}.heat-cell[data-v="4"]{background:#70b83d}
.dark .heat-cell[data-v="1"]{background:#526b4a}.dark .heat-cell[data-v="2"]{background:#668d4c}.dark .heat-cell[data-v="3"]{background:#83b84d}.dark .heat-cell[data-v="4"]{background:#a2d55e}
/* Dashboard Bento composition */
.dashboard-bento{display:grid;gap:17px;background:#f1f8fb;border-radius:28px;padding:clamp(14px,2vw,24px)}
:root.dark .dashboard-bento{background:#222d32}
.dashboard-welcome{align-items:center;margin:0;padding:4px 2px 2px}
.dashboard-welcome h2{font-size:34px;margin:5px 0 3px}
.dashboard-welcome p{margin:0;color:#718087}
.dashboard-welcome-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.dashboard-welcome-tags span{padding:6px 11px;border-radius:99px;background:#fff;color:#637078;font-size:12px}
.dashboard-summary-strip{display:grid;grid-template-columns:minmax(145px,.7fr) minmax(200px,1fr) 130px;gap:20px;align-items:center;background:#fff;border-radius:22px;padding:18px 22px;box-shadow:var(--shadow)}
.summary-intro{display:grid;gap:3px}.summary-overline{font-size:10px;letter-spacing:1.2px;color:#899195;font-weight:700}.summary-intro strong{font-size:38px;color:#343d40;line-height:1.1}.summary-intro>span:last-child{font-size:12px;color:#7c8588}
.summary-progress small{display:block;color:#7d888d;font-size:11px;margin-top:8px}.summary-progress .progress span{background:#8bcf3d}
.summary-illustration{display:flex;justify-content:center;align-items:center;gap:8px}.summary-illustration span{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#e7f2d7;color:#5b9d36;font-weight:700;font-size:18px}.summary-illustration span:nth-child(2){background:#ffe9a8;color:#9c761a}.summary-illustration span:nth-child(3){background:#f9dfe8;color:#b54d79}
.dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dashboard-stats .stat-card{min-height:134px;border:0;box-shadow:none;padding:18px 20px;border-radius:21px;display:flex;flex-direction:column;justify-content:center}
.dashboard-stats .stat-card:nth-child(1){background:#e3f1d5}
.dashboard-stats .stat-card:nth-child(2){background:#ffe7a1}
.dashboard-stats .stat-card:nth-child(3){background:#ffddce}
.dashboard-stats .stat-card:nth-child(4){background:#f7dfe8}
.dashboard-stats .stat-card:nth-child(5){background:#e0eff7}
.dashboard-stats .stat-card:nth-child(6){background:#e9e2f4}
.dashboard-stats .stat-card:nth-child(7){background:#dcefe9}
.dashboard-stats .stat-card .stat-label{font-size:12px;color:#536068}
.dashboard-stats .stat-card .stat-number{font:700 32px 'Montserrat',Arial,sans-serif;color:#2d363a;margin:9px 0 4px}
.dashboard-stats .stat-card .stat-foot{font-size:11px;color:#626d70}
.dashboard-stats .stat-accent{position:static;order:-1;width:30px;height:30px;margin-bottom:8px;background:rgba(255,255,255,.64);color:#59656a;border-radius:10px}
.dashboard-main-grid,.dashboard-bottom-grid{margin-top:0;gap:14px}
.dashboard-activity-card,.dashboard-due-card{min-height:245px}
.dashboard-bento .row-item{border-bottom:1px solid #edf0ef}
.dashboard-bento .deck-color{background:#f8e1e9;color:#a84670;border-radius:12px}
.dashboard-bento .notice{background:#e7f2fa;color:#4b6978}
.dashboard-bento .notice.success{background:#e4f2d7;color:#4b7535}
/* Mode selector: colorful cards with flat, friendly colors. */
.study-launch-panel{padding:22px}
.session-grid{gap:13px}
.mode-card{position:relative;min-height:160px;border:0;border-radius:20px;padding:18px 18px 17px;background:#fff;box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s}
.mode-card:nth-child(1){background:#e2f0d4}.mode-card:nth-child(2){background:#ffe9a8}.mode-card:nth-child(3){background:#ffdfd2}.mode-card:nth-child(4){background:#f8e0e9}.mode-card:nth-child(5){background:#e0eff7}.mode-card:nth-child(6){background:#e9e2f4}
.mode-card:hover{transform:translateY(-3px);box-shadow:0 13px 26px rgba(42,57,65,.12);filter:none}
.mode-card .mode-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.72);color:#3d4d50;font-size:20px}
.mode-card .mode-number{position:absolute;right:16px;top:16px;color:#7b8282;font-size:11px}
.mode-card strong{font-size:19px;color:#30373a;margin:12px 0 5px}
.mode-card>span:last-of-type{font-size:12px;color:#596469}
.mode-card em{display:block;margin-top:11px;font-size:12px;font-style:normal;font-weight:700;color:#394a4e}
/* Dedicated, distraction-free study screens */
.app-shell.study-focus-mode .sidebar,.app-shell.study-focus-mode .topbar,.app-shell.study-focus-mode .mobile-nav{display:none!important}
.app-shell.study-focus-mode .app-main{margin-left:0;min-height:100vh;background:#eaf4f8}
.app-shell.study-focus-mode .main-content{max-width:1120px;min-height:100vh;margin:auto;padding:25px 24px 45px;display:flex;align-items:center}
.app-shell.study-focus-mode #page-content{width:100%}
.app-shell.study-focus-mode #page-content>:not(#study-area){display:none!important}
.study-focus-page{width:min(100%,940px);margin:0 auto}
.study-focus-top{display:flex;align-items:center;gap:16px;margin:0 auto 16px;max-width:900px}
.study-focus-heading{display:grid;gap:2px;flex:1}.study-focus-heading strong{font-size:20px;color:#30383c}.study-focus-counter{font-size:14px;font-weight:700;color:#69777c;background:#fff;padding:9px 14px;border-radius:99px}
.study-card{max-width:900px;margin:0 auto;padding:clamp(22px,4vw,42px);text-align:left;border-radius:27px;background:#fff;box-shadow:0 15px 38px rgba(48,65,75,.09)}
.study-session-progress{margin:13px 0 24px!important;height:9px}
.study-card .session-progress{font-size:13px;color:#647077}
.study-word-row,.mcq-question-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.study-card .study-word{font:700 clamp(39px,6vw,62px) 'Montserrat',Arial,sans-serif;color:#273239;margin:14px 0 4px;text-align:left}
.study-ipa{font-size:16px;color:#6d777d}
.study-audio-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}
.audio-pill{border:1px solid #e7d8de;background:#fff;color:#9d416a;border-radius:99px;padding:9px 15px;font-weight:700}
.audio-pill:hover,.audio-icon-btn:hover{background:#f8e6ed}
.flashcard-hint{margin:28px 0 5px;background:#edf5f6;color:#5d7074;border-radius:15px;padding:13px 16px;font-size:14px}
.flashcard-back{margin-top:10px;background:#edf6f3;border-radius:19px;padding:22px 24px;position:relative;color:#344b48}
.flashcard-back .study-meaning{font-size:23px;font-weight:700;color:#c54f80}
.flashcard-back p{font-size:16px;line-height:1.55}
.example-panel,.mcq-example{position:relative;margin-top:17px;background:#fff8e5;border-radius:16px;padding:17px 48px 16px 18px;color:#41484a}
.example-label{font-size:10px;font-weight:700;letter-spacing:1px;color:#9a7832}
.example-panel p,.mcq-example p{margin:7px 0 4px;line-height:1.55;font-size:16px}
.example-translation,.mcq-example small{color:#68747a;font-size:14px}
.audio-icon-btn{position:absolute;right:12px;top:14px;width:34px;height:34px;border-radius:50%;background:#fff;border:1px solid #eee0d8;color:#b64e78;font-size:18px}
.word-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.word-tag{background:#e7f0fa;border-radius:99px;padding:7px 11px;font-size:12px;color:#416389}
.study-card .rating-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:23px 0 9px}
.rating-button{min-height:88px;display:grid;grid-template-columns:22px 1fr;grid-template-rows:auto auto;align-content:center;justify-content:center;column-gap:6px;row-gap:4px;border:0;border-radius:17px;padding:12px 10px;text-align:center;box-shadow:none}
.rating-button .rating-key{grid-row:1 / span 2;align-self:center;justify-self:end;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.72);font-size:11px}
.rating-button b{font-size:17px}.rating-button small{font-size:12px;color:inherit;opacity:.82}
.rating-again{background:#f8dfe8;color:#a53b67}.rating-hard{background:#ffedcf;color:#98602f}.rating-good{background:#dff1ed;color:#287466}.rating-easy{background:#e7f1d8;color:#517f31}
.shortcut-hint{text-align:center;font-size:12px;color:#7c878b;margin-top:8px}.shortcut-hint kbd{padding:2px 7px;border-radius:5px;background:#eef2f2;border:1px solid #dce3e3;color:#45545a}
.mcq-question-head .study-word{margin-top:0}.mcq-instruction{font-size:16px;color:#657177;margin:15px 0}
.mcq-example{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff4d7;margin:12px 0 18px;padding-right:15px}
.mcq-example>div{min-width:0}.mcq-example .audio-icon-btn{position:static;flex:none}.mcq-example-empty{font-size:13px;color:#7d7770;padding:15px}
.answer-list{max-width:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:18px 0}
.answer-option{display:flex;align-items:center;gap:12px;min-height:64px;border:1px solid #e6ecec;border-radius:16px;background:#fff;padding:13px 15px;font-size:15px}
.option-letter{width:29px;height:29px;border-radius:10px;display:grid;place-items:center;background:#edf4f6;color:#52636b;font-weight:700;flex:none}
.answer-option.correct{background:#e4f2d6;border-color:#a7cc83;color:#375f2c}.answer-option.incorrect{background:#ffe5df;border-color:#f0a08c;color:#9d4639}
.answer-example{position:relative;margin-top:11px;padding:12px 46px 12px 13px;border-radius:12px;background:#fff8e7}.answer-example span{display:block;color:#777;margin-top:5px}.answer-example .audio-icon-btn{top:9px}
.typing-question{text-align:center;max-width:640px;margin:10px auto}.typing-question .study-meaning{display:block;font-size:24px;margin:12px 0}.typing-form{display:flex;gap:9px;margin:23px auto!important;max-width:520px}.typing-form input{flex:1;min-width:0;padding:14px 16px;border:1px solid #dce6e8;border-radius:14px;font-size:18px}.typing-retry-note{font-size:13px;color:#79858a}.feedback{border-radius:15px;padding:15px 17px}.feedback.ok{background:#e5f2d8;color:#385b2f}.feedback.no{background:#ffebe4;color:#984b3e}
.study-card-matching .match-grid{align-items:start}.match-column{display:grid;gap:9px}.match-column-title{font-size:11px;font-weight:700;letter-spacing:1px;color:#79858a;margin:3px 5px}.match-option{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e6ecee;border-radius:15px;background:#fff;min-height:57px;padding:13px 15px;font-size:15px}.match-option.selected{background:#fbe5ed;border-color:#df8cac;color:#994265}.match-option.matched{background:#e4f2d8;color:#54813b;text-decoration:none;opacity:.72}.match-audio-mark{color:#c85f88}
.study-completion{position:relative}.completion-card{text-align:center;max-width:760px;overflow:hidden}.completion-medal{width:74px;height:74px;margin:0 auto 13px;display:grid;place-items:center;border-radius:24px;background:#ffedaa;color:#936e1b;font-size:37px}.completion-card h2{font-size:32px;margin:10px 0;color:#374247}.completion-score{font-size:70px;font-weight:700;line-height:1.1;color:#d76391}.completion-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.completion-stats>div{display:grid;gap:6px;padding:14px 9px;border-radius:15px;background:#eaf3f7}.completion-stats>div:nth-child(2){background:#fff0d2}.completion-stats>div:nth-child(3){background:#e6f1d9}.completion-stats b{font-size:21px}.completion-stats span{font-size:12px;color:#68747a}.celebration-burst{display:flex;justify-content:center;gap:28px;margin-bottom:12px;color:#d96b93;font-size:24px}.study-exit-actions{margin-top:25px}
/* Keep dark mode readable without muting the colorful light theme. */
:root.dark .dashboard-bento{background:#26343a}.dark .dashboard-summary-strip,.dark .study-card,.dark .mode-card{background:#2b353a;color:var(--ink)}
:root.dark .dashboard-stats .stat-card:nth-child(1){background:#354b32}:root.dark .dashboard-stats .stat-card:nth-child(2){background:#51452a}:root.dark .dashboard-stats .stat-card:nth-child(3){background:#513b35}:root.dark .dashboard-stats .stat-card:nth-child(4){background:#4b3440}:root.dark .dashboard-stats .stat-card:nth-child(5){background:#304650}:root.dark .dashboard-stats .stat-card:nth-child(6){background:#433b51}:root.dark .dashboard-stats .stat-card:nth-child(7){background:#304a43}
:root.dark .dashboard-stats .stat-number,:root.dark .dashboard-stats .stat-label,:root.dark .dashboard-stats .stat-foot,:root.dark .summary-intro strong,:root.dark .study-focus-heading strong{color:#f2f3ef}
:root.dark .audio-pill,:root.dark .answer-option,:root.dark .match-option{background:#303a40;color:#f2f3ef;border-color:#48565c}
:root.dark .flashcard-back{background:#31433e;color:#ecf4ed}:root.dark .mcq-example,:root.dark .example-panel{background:#4a422f;color:#f5edda}:root.dark .flashcard-hint{background:#34454a;color:#d5e4e8}
@media(max-width:900px){.dashboard-summary-strip{grid-template-columns:1fr 1fr}.summary-illustration{display:none}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-bento{padding:12px;border-radius:20px}.dashboard-welcome h2{font-size:28px}.dashboard-summary-strip{grid-template-columns:1fr;padding:16px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stats .stat-card{min-height:120px;padding:14px}.app-shell.study-focus-mode .main-content{padding:14px 10px 24px;align-items:flex-start}.study-focus-page{padding-top:8px}.study-focus-top{gap:8px;flex-wrap:wrap}.study-focus-heading{min-width:130px}.study-card{padding:20px 15px;border-radius:20px}.study-word-row,.mcq-question-head{flex-direction:column}.study-audio-actions{margin-top:2px}.answer-list{grid-template-columns:1fr}.study-card .rating-row{grid-template-columns:repeat(2,minmax(0,1fr))}.match-grid{grid-template-columns:1fr 1fr}.typing-form{flex-direction:column}.completion-stats{grid-template-columns:1fr}.study-card .study-word{font-size:42px}}

/* 2.2 dashboard additions: preserve every existing panel and extend the bento metrics. */
.dashboard-stats .stat-card:nth-child(6){background:#e3ecdf}
.dashboard-stats .stat-card:nth-child(8){background:#dcecf0}
.dashboard-stats .stat-card:nth-child(9){background:#dff0dc}
.dashboard-stats .stat-card:nth-child(10){background:#ffded3}
.dashboard-proficiency{margin-top:0;padding:20px 22px;overflow:hidden}
.dashboard-proficiency .card-head{align-items:center}
.proficiency-table{display:grid;gap:7px;min-width:760px}
.proficiency-row{display:grid;grid-template-columns:minmax(145px,1.3fr) minmax(105px,.8fr) minmax(140px,1fr) minmax(100px,.8fr) minmax(85px,.65fr) minmax(75px,.6fr);align-items:center;gap:12px;padding:12px 15px;border-radius:15px;font-size:13px;color:#343d40}
.proficiency-header{padding:7px 15px;color:#758087;font-size:11px;background:transparent;font-weight:700}
.proficiency-data{min-height:58px}
.proficiency-data strong{font-weight:700;overflow-wrap:anywhere}
.row-tone-0{background:#fbe8e3}.row-tone-1{background:#fff0c6}.row-tone-2{background:#e7f1d9}.row-tone-3{background:#e4eff5}
.proficiency-progress{display:flex;align-items:center;gap:8px;min-width:0}
.proficiency-progress i{display:block;flex:1;min-width:35px;height:10px;background:#ffffffbd;border-radius:20px;overflow:hidden}
.proficiency-progress b{display:block;height:100%;border-radius:20px;background:#83c93a}
.proficiency-progress small{font-size:11px;color:#59686b;min-width:30px;text-align:right}
.proficiency-count{display:inline-grid;place-items:center;min-width:28px;width:max-content;padding:5px 9px;border-radius:99px;background:#fff;font-weight:700}
.proficiency-count.attention{color:#b45443;background:#ffe1d7}
.proficiency-count.mastered{color:#477d2f;background:#d7edbe}
:root.dark .proficiency-row{color:#f2f2ed}
:root.dark .proficiency-header{color:#c2c8c6}
:root.dark .row-tone-0{background:#493b38}:root.dark .row-tone-1{background:#4e452d}:root.dark .row-tone-2{background:#354637}:root.dark .row-tone-3{background:#32434a}
:root.dark .proficiency-count{background:#303a40;color:#f2f2ed}
:root.dark .proficiency-progress i{background:#ffffff22}:root.dark .proficiency-progress small{color:#d2d8d4}
:root.dark .proficiency-count.attention{background:#553a35;color:#ffb7a8}:root.dark .proficiency-count.mastered{background:#354a32;color:#c1e89a}
@media(max-width:1000px){.dashboard-proficiency{overflow-x:auto}}
@media(max-width:760px){.dashboard-proficiency{padding:16px 12px}.dashboard-proficiency .card-head{align-items:flex-start;flex-direction:column}.proficiency-table{min-width:700px}}

/* 2.3.1 inherited dark-mode completion: keep the full shell and focus screens on-theme. */
:root.dark .sidebar{background:var(--surface);border-right:1px solid var(--line);box-shadow:none}
:root.dark .brand{color:var(--ink)}
:root.dark .brand-mark{background:var(--accent-soft);color:var(--accent-dark)}
:root.dark .nav button{color:var(--muted)}
:root.dark .nav button.active{background:var(--accent-soft);color:var(--accent-dark)}
:root.dark .topbar{background:color-mix(in srgb,var(--bg) 92%,transparent);border-color:var(--line)}
:root.dark .pill{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
:root.dark .avatar{background:var(--accent-soft);color:var(--accent-dark)}
:root.dark .app-shell.study-focus-mode .app-main{background:var(--bg)}
:root.dark .study-focus-heading strong{color:var(--ink)}
:root.dark .study-focus-counter{background:var(--surface);color:var(--ink)}
:root.dark .study-card .study-word{color:var(--ink)}
:root.dark .dashboard-stats .stat-card:nth-child(8){background:#304650}
:root.dark .dashboard-stats .stat-card:nth-child(9){background:#354637}
:root.dark .dashboard-stats .stat-card:nth-child(10){background:#513b35}
:root.dark .dashboard-welcome-tags span{background:var(--surface-2);color:var(--ink)}
:root.dark .completion-card h2{color:var(--ink)}
:root.dark .completion-stats>div{background:var(--surface-2);color:var(--ink)}
:root.dark .completion-stats span{color:var(--muted)}
:root.dark .completion-medal{background:#51472c;color:#f7d981}
:root.dark .proficiency-progress b{background:#9bd35e}
/* The focus host is a flex item; make it fill the available width so the study card centers in the viewport. */
.app-shell.study-focus-mode #study-area{width:100%;min-width:0;}


/* 2.3.1 — Paper Sunshine-inspired identity: paper cream, tomato red, sky blue, blush, butter and mint. */
html,body,button,input,textarea,select{font-family:'Montserrat',Arial,sans-serif!important}
body{background:var(--bg);color:var(--ink)}
.brand-logo{width:46px;height:46px;object-fit:contain;border-radius:50%;background:#fffaf1;border:1px solid #f0d8cf;padding:2px;display:block;flex:none}
.brand-logo-sidebar{width:39px;height:39px}
.brand-logo-auth{width:72px;height:72px;margin:0 0 8px;background:#fffaf1;border:1px solid #f0d8cf;border-radius:50%;padding:3px}
.boot .brand-logo{width:76px;height:76px;margin:0 auto}
.brand{color:#292522;letter-spacing:0;font-family:'Montserrat',Arial,sans-serif}
.sidebar{background:#fffdf8;border-right-color:#eee3d8}
.nav button.active{background:#fde6e2;color:#c5221e}
.nav button:hover{background:#e8f4f9;color:#292522}
.nav .nav-count{background:#ffedaa;color:#574527}
.topbar{background:rgba(255,252,246,.92);border-bottom-color:#eadfd4}
.topbar h1,.page-head h2,.card h3,.deck-card h3,.path-card h3,.auth-card h2{font-family:'Montserrat',Arial,sans-serif!important;letter-spacing:0}
.btn.primary{background:#e72e26;border-color:#e72e26;color:#fff}
.btn.primary:hover{background:#c9221c;border-color:#c9221c}
.btn.soft,.chip.accent{background:#fde8e4;color:#ad2821}
input:focus,textarea:focus,select:focus{border-color:#e72e26;box-shadow:0 0 0 3px #e72e2618}
/* Bento dashboard: large, quiet white surfaces over a pale sky field. */
.dashboard-bento{background:#eaf5fa;border-radius:28px;padding:20px;box-shadow:inset 0 0 0 1px #dceef4}
.dashboard-welcome{background:#fffefa;border-radius:22px;padding:22px 24px;margin-bottom:14px}
.dashboard-welcome h2{color:#282522}
.dashboard-welcome .btn.primary{background:#e72e26}
.dashboard-welcome-tags span{background:#f8dce5;color:#692c3f}
.dashboard-summary-strip{background:#fff8ed;border:1px solid #f3e7d8;border-radius:22px}
.dashboard-summary-strip .summary-intro{background:#fce5df;border-radius:16px;padding:15px}
.dashboard-summary-strip .summary-intro strong{color:#d42d25}
.dashboard-summary-strip .summary-progress{background:#e2f1f8;border-radius:16px;padding:15px}
.dashboard-summary-strip .summary-illustration{background:#fce0e8;border-radius:18px}
.dashboard-stats .stat-card{border:0;border-radius:20px;box-shadow:none;min-height:134px}
.dashboard-stats .stat-card:nth-child(1){background:#d9f0b8;color:#31551f}
.dashboard-stats .stat-card:nth-child(2){background:#ffe28b;color:#59451b}
.dashboard-stats .stat-card:nth-child(3){background:#ffd4c4;color:#65362c}
.dashboard-stats .stat-card:nth-child(4){background:#f8d7e5;color:#693148}
.dashboard-stats .stat-card:nth-child(5){background:#dceff8;color:#2b5367}
.dashboard-stats .stat-card:nth-child(6){background:#e8e0f7;color:#50436d}
.dashboard-stats .stat-card:nth-child(7){background:#e94a3e;color:#fff}
.dashboard-stats .stat-card:nth-child(8){background:#d5eee3;color:#315b4a}
.dashboard-stats .stat-card:nth-child(9){background:#d8eafa;color:#33556c}
.dashboard-stats .stat-card:nth-child(10){background:#ffd9c8;color:#72382c}
.dashboard-stats .stat-card .stat-label,.dashboard-stats .stat-card .stat-foot{color:inherit;opacity:.78}
.dashboard-stats .stat-card .stat-number{color:inherit}
.dashboard-stats .stat-accent{background:#ffffffad;color:inherit}
.dashboard-main-grid>.card,.dashboard-bottom-grid>.card,.dashboard-proficiency{background:#fffefa;border:0;border-radius:22px;box-shadow:0 8px 24px #5d4a3710}
.row-tone-0{background:#ffe9e2}.row-tone-1{background:#fff0c6}.row-tone-2{background:#e3f1d8}.row-tone-3{background:#e1f0f8}
.deck-card:nth-child(4n+1){background:#fffefa}.deck-card:nth-child(4n+2){background:#fff0c6}.deck-card:nth-child(4n+3){background:#e2f0f8}.deck-card:nth-child(4n+4){background:#f8dce7}
.deck-color{background:#fce5df;color:#d52a23;font-weight:700}
.mode-card{background:#fffefa;border:1px solid #ede4d9;border-radius:20px;box-shadow:0 5px 16px #56452b0d}
.mode-card:nth-child(6n+1){background:#e2f1f8}.mode-card:nth-child(6n+2){background:#f9dce7}.mode-card:nth-child(6n+3){background:#fff0bd}.mode-card:nth-child(6n+4){background:#dff0e4}.mode-card:nth-child(6n+5){background:#ffe0d1}.mode-card:nth-child(6n+6){background:#e9e1f7}
.mode-card:hover{background:#fff6ee;border-color:#e72e26}
/* Study focus remains isolated but now sits on a pale-blue paper field, with warm white cards. */
.app-shell.study-focus-mode .app-main{background:#e8f4fa}
.app-shell.study-focus-mode .main-content{max-width:1180px}
.study-card{background:#fffefa;border:1px solid #eadfd4;box-shadow:0 16px 35px #59472c12}
.study-focus-heading strong{color:#292522}
.study-focus-counter{background:#fff0bd;color:#59451b}
.study-card .study-word{color:#292522}
.study-card .study-meaning,.flashcard-back .study-meaning{color:#d32d26}
.audio-pill{background:#fffefa;border-color:#f0c8c3;color:#b92721}
.audio-pill:hover,.audio-icon-btn:hover{background:#fde8e4}
.flashcard-hint{background:#e2f1f8;color:#35586a}
.flashcard-back{background:#e2f1e7;color:#315347}
.flashcard-back .study-meaning{color:#d02c25}
.example-panel,.mcq-example{background:#fff0bf;color:#40331e}
.example-label{color:#b14a27}
.example-translation,.mcq-example small{color:#5d6c72}
.word-tag{background:#dceef8;color:#315d76}
.rating-again{background:#f8d8e5;color:#a82e56}.rating-hard{background:#ffe9b5;color:#86501e}.rating-good{background:#d7eee7;color:#286f5a}.rating-easy{background:#dff0cf;color:#4c7728}
.mcq-instruction{color:#5f6467}
.mcq-example{border:1px solid #f0e4c8}
.answer-list{gap:12px}
.answer-option{position:relative;background:#fffefa;border:1px solid #e9e1d7;border-radius:17px;padding:14px 46px 14px 14px;box-shadow:0 4px 12px #58472a0a}
.answer-option:nth-child(4n+1) .option-letter{background:#fde0dc;color:#b72b25}
.answer-option:nth-child(4n+2) .option-letter{background:#dceef8;color:#315d76}
.answer-option:nth-child(4n+3) .option-letter{background:#fff0bd;color:#73531b}
.answer-option:nth-child(4n+4) .option-letter{background:#dff0df;color:#37673d}
.option-letter{width:34px;height:34px;border-radius:11px;font-size:16px}
.option-shortcut{position:absolute;right:12px;top:50%;transform:translateY(-50%);border:1px solid #eadfd4;border-radius:7px;padding:3px 7px;background:#fff9ef;color:#71665d;font-size:12px}
.answer-option.correct{background:#e1f2df;border-color:#92c77e;color:#315d31}
.answer-option.incorrect{background:#ffe4df;border-color:#ea9b8f;color:#9b3027}
.answer-reveal{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;color:#2d5144}
.answer-meaning{margin:4px 0 8px}
.answer-example{background:#fff1c9;padding:13px 48px 13px 14px;border-radius:14px}
.answer-example p{margin:6px 0;line-height:1.55}
.answer-example span{color:#5c6470}
.answer-example .audio-icon-btn{position:absolute}
.inline-audio{position:static;flex:none}
.translation-audio{margin-left:4px}
.typing-question{max-width:720px}
.typing-question .study-meaning{color:#d32d26}
.typing-help-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px;margin:18px auto 10px}
.typing-hint-output{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;min-height:46px;margin:8px auto 14px;padding:9px 12px;border-radius:14px;background:#fce7ed;color:#62424b;font-size:14px}
.hint-label{font-size:13px;color:#76545d}
.hint-letters{display:inline-flex;gap:6px}
.hint-letters i{display:grid;place-items:center;width:28px;height:32px;border-radius:8px;background:#fffefa;border:1px solid #f0c9d5;color:#b52631;font-style:normal;font-weight:700;font-size:17px}
.hint-letters i:nth-child(2){background:#dceef8;border-color:#c4e0ed;color:#315d76}
.hint-letters i:nth-child(3){background:#fff0bd;border-color:#f1dfa1;color:#71541c}
.typing-definition{font-size:14px;max-width:620px;margin:9px auto}
.typing-result{max-width:640px;margin:14px auto;text-align:left;background:#e2f2e7;color:#294d3d;border:1px solid #c6e6d0}
.typing-result-title{font-size:19px;font-weight:700;margin-bottom:10px}
.typing-result-definition{color:#53656a;line-height:1.6}
.typing-result-example{margin-top:14px;padding:14px;border-radius:14px;background:#fff0c5;color:#493c26}
.typing-result-example p{line-height:1.6;margin:8px 0}
.typing-result-translation{background:#e1f0f8;padding:10px 12px;border-radius:10px;color:#34586d}
.typing-ipa{color:#7a6c65;font-style:italic}
.feedback.ok{background:#e0f2df;color:#315b36}.feedback.no{background:#ffe4df;color:#913b31}
.match-option{background:#fffefa;border-color:#e8dfd6}
.match-option.selected{background:#f8dce7;border-color:#e37a9e;color:#7c2946}
.match-option.matched{background:#dcf0df;color:#3f713c}
.study-completion .completion-medal{background:#ffebaa;color:#b52a22}
.completion-score{color:#e12e27}
.study-exit-actions .btn.ghost{border-color:#eadfd4}
/* Dark palette follows the same brand rather than leaving isolated light panels. */
:root.dark .sidebar,:root.dark .topbar{background:var(--surface);border-color:var(--line)}
:root.dark .dashboard-bento{background:#293b42;box-shadow:none}
:root.dark .dashboard-welcome,:root.dark .dashboard-main-grid>.card,:root.dark .dashboard-bottom-grid>.card,:root.dark .dashboard-proficiency{background:var(--surface);color:var(--ink)}
:root.dark .dashboard-summary-strip{background:#34302c;border-color:var(--line)}
:root.dark .dashboard-summary-strip .summary-intro{background:#503b3a}:root.dark .dashboard-summary-strip .summary-progress{background:#30444e}
:root.dark .dashboard-stats .stat-card{color:#fff5e9}
:root.dark .dashboard-stats .stat-card:nth-child(1){background:#3d5733}:root.dark .dashboard-stats .stat-card:nth-child(2){background:#5a4a2c}:root.dark .dashboard-stats .stat-card:nth-child(3){background:#624337}:root.dark .dashboard-stats .stat-card:nth-child(4){background:#603b4b}:root.dark .dashboard-stats .stat-card:nth-child(5){background:#304d5d}:root.dark .dashboard-stats .stat-card:nth-child(6){background:#483e60}:root.dark .dashboard-stats .stat-card:nth-child(7){background:#8f302b}:root.dark .dashboard-stats .stat-card:nth-child(8){background:#31564a}:root.dark .dashboard-stats .stat-card:nth-child(9){background:#314c61}:root.dark .dashboard-stats .stat-card:nth-child(10){background:#674235}
:root.dark .app-shell.study-focus-mode .app-main{background:#26383f}
:root.dark .study-card,:root.dark .answer-option,:root.dark .match-option{background:var(--surface);color:var(--ink);border-color:var(--line)}
:root.dark .typing-hint-output{background:#493541;color:#f4e7ea}:root.dark .typing-result{background:#29473b;color:#eaf4ec}
:root.dark .typing-result-example,:root.dark .mcq-example,:root.dark .example-panel{background:#51472f;color:#fff2d2}
:root.dark .typing-result-translation{background:#304650;color:#e0f1f8}
:root.dark .option-shortcut{background:#333a3d;color:#f6eee5;border-color:#596064}
:root.dark .brand-logo{background:#fffaf1;border-color:#62554c}
@media(max-width:760px){.dashboard-bento{padding:12px}.dashboard-welcome{padding:16px}.dashboard-summary-strip{grid-template-columns:1fr}.dashboard-stats .stat-card{min-height:112px}.typing-help-row{gap:7px}.typing-help-row button{flex:1}.typing-form{flex-direction:column}.answer-list{grid-template-columns:1fr}.option-shortcut{right:10px}}

/* Align the welcome/login surface and activity heatmap with the paper-goods reference palette. */
.auth-story{background:linear-gradient(135deg,#dceff8 0%,#fff8ee 54%,#f8dce6 100%);color:#292522}
.auth-story .story-copy h1{color:#e72e26}
.auth-story .story-copy p{color:#5d6669}
.auth-story .story-point{background:#ffffffc9;border-color:#ffffff}
.auth-story .story-point strong{color:#342c29}
.auth-story .story-point span{color:#6c625d}
.auth-card .brand-logo-auth{box-shadow:0 5px 15px #6e55421a}
.heat-cell[data-v="1"]{background:#f8d8e5}.heat-cell[data-v="2"]{background:#ffe28b}.heat-cell[data-v="3"]{background:#9bdc64}.heat-cell[data-v="4"]{background:#58b84a}
:root.dark .heat-cell[data-v="1"]{background:#5d3a49}:root.dark .heat-cell[data-v="2"]{background:#67552c}:root.dark .heat-cell[data-v="3"]{background:#456c3b}:root.dark .heat-cell[data-v="4"]{background:#5a9148}

.mcq-shortcut-note{display:block;margin-top:6px;font-size:12px;color:#8b675c}
:root.dark .mcq-shortcut-note{color:#d7b8a9}

/* 2.3.1 Paper Sunshine palette: warm paper, tomato red, sky, butter, blush and mint. */
:root:not(.dark){
  --bg:#eaf5f8;
  --surface:#fffefa;
  --surface-2:#f8f2e9;
  --ink:#282522;
  --muted:#716a64;
  --line:#eadfd4;
  --accent:#e52e25;
  --accent-dark:#bd211b;
  --accent-soft:#ffe5e1;
  --pink:#f8d9e4;
  --peach:#ffd9ca;
  --mint:#d9eee4;
  --blue:#dceff8;
  --gold:#ffe49a;
  --danger:#bd4034;
  --shadow:0 10px 28px rgba(58,45,35,.075);
  --radius:22px;
}
html,body,button,input,textarea,select{font-family:'Montserrat',Arial,sans-serif!important}
.brand-logo{width:46px;height:46px;object-fit:contain;display:block;border-radius:50%;background:#fffefa;border:1px solid #f0e1d8;padding:2px;flex:none}
.brand-logo-sidebar{width:42px;height:42px}
.brand-logo-auth{width:76px;height:76px;border-radius:50%;padding:4px;background:#fffefa;border:1px solid #f0e1d8}
.brand-mark{background:#ffe9e1;color:#e52e25}
.nav button.active,.mobile-nav button.active{background:#ffe5e1;color:#bd211b}
.btn.primary{background:#e52e25;border-color:#e52e25;color:#fff}
.btn.primary:hover{background:#bd211b}
.btn.soft{background:#ffe5e1;color:#a9231d}
.pill.coin,.avatar{background:#fff0bd;color:#55401f}
.dashboard-bento{background:#e4f2f8}
.dashboard-welcome{background:#fffefa}
.dashboard-summary-strip{background:#fffefa;border-color:#f1e4d7}
.dashboard-summary-strip .summary-intro{background:#dceff8}
.dashboard-summary-strip .summary-progress{background:#ffe9a8}
.dashboard-stats .stat-card:nth-child(1){background:#8bd51d;color:#26351b}
.dashboard-stats .stat-card:nth-child(2){background:#ffc72f;color:#493817}
.dashboard-stats .stat-card:nth-child(3){background:#ff805a;color:#542b20}
.dashboard-stats .stat-card:nth-child(4){background:#f8d6e2;color:#623347}
.dashboard-stats .stat-card:nth-child(5){background:#dceff8;color:#31576a}
.dashboard-stats .stat-card:nth-child(6){background:#d8eee4;color:#315b4a}
.dashboard-stats .stat-card:nth-child(7){background:#e52e25;color:#fff8ef}
.dashboard-stats .stat-card:nth-child(8){background:#bce5d6;color:#315b4a}
.dashboard-stats .stat-card:nth-child(9){background:#bfe1f2;color:#31576a}
.dashboard-stats .stat-card:nth-child(10){background:#ffd9ca;color:#65382c}
.dashboard-stats .stat-card .stat-label,.dashboard-stats .stat-card .stat-foot{color:inherit;opacity:.82}
.dashboard-stats .stat-card .stat-number{color:inherit}
.dashboard-stats .stat-accent{background:#ffffffbd;color:inherit}
.dashboard-main-grid>.card,.dashboard-bottom-grid>.card,.dashboard-proficiency{background:#fffefa;border:0;border-radius:22px;box-shadow:0 8px 24px rgba(74,53,39,.07)}
.deck-card:nth-child(4n+1){background:#fffefa}
.deck-card:nth-child(4n+2){background:#ffe9a8}
.deck-card:nth-child(4n+3){background:#dceff8}
.deck-card:nth-child(4n+4){background:#f8d9e4}
.deck-color{background:#ffe5e1;color:#bd211b}
.mode-card{background:#fffefa;border:1px solid #eee3d7;box-shadow:0 5px 16px rgba(68,50,37,.06)}
.mode-card:nth-child(6n+1){background:#dceff8}
.mode-card:nth-child(6n+2){background:#f8d9e4}
.mode-card:nth-child(6n+3){background:#ffe9a8}
.mode-card:nth-child(6n+4){background:#d9eee4}
.mode-card:nth-child(6n+5){background:#ffd9ca}
.mode-card:nth-child(6n+6){background:#fffefa}
.mode-card:hover{border-color:#e52e25;filter:saturate(1.04)}
.app-shell.study-focus-mode .app-main{background:#eaf5f8}
.app-shell.study-focus-mode .main-content{max-width:1180px}
.study-card{background:#fffefa;border:1px solid #eee2d8;box-shadow:0 16px 35px rgba(65,47,34,.09)}
.study-focus-heading strong{color:#292522}
.study-focus-counter{background:#ffe9a8;color:#55401f}
.study-word{color:#282522}
.study-meaning{color:#bd3028}
.rating-again{background:#ffe3e2;color:#a9322c}
.rating-hard{background:#ffedc6;color:#79551c}
.rating-good{background:#d9eee4;color:#2d6a50}
.rating-easy{background:#e3f1d8;color:#3f6b2e}
.answer-option{background:#fffefa;border-color:#eadfd4}
.answer-option .option-letter{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#ffe5e1;color:#bd211b;font-weight:700;margin-right:10px}
.answer-option:nth-child(2) .option-letter{background:#dceff8;color:#31576a}
.answer-option:nth-child(3) .option-letter{background:#ffe9a8;color:#79551c}
.answer-option:nth-child(4) .option-letter{background:#d9eee4;color:#2d6a50}
.answer-option.correct{background:#d9eee4;border-color:#8fc6a6;color:#294d3d}
.answer-option.incorrect{background:#ffe3e2;border-color:#e99a91;color:#8f312a}
.option-shortcut{background:#f8f2e9;border:1px solid #eadfd4;color:#60534a;border-radius:7px;padding:2px 7px}
.mcq-example,.typing-result-example{background:#fff0bd;color:#493c26}
.example-panel{background:#dceff8;color:#31576a}
.typing-hint-output{background:#f8d9e4;color:#58384a}
.hint-letters i{background:#fffefa;border-color:#f0c9d5;color:#b52631}
.hint-letters i:nth-child(2){background:#dceff8;border-color:#c4e0ed;color:#315d76}
.hint-letters i:nth-child(3){background:#ffe9a8;border-color:#f1dfa1;color:#71541c}
.typing-result{background:#d9eee4;color:#294d3d;border-color:#c6e6d0}
.typing-result-example{background:#fff0bd;color:#493c26}
.typing-result-translation{background:#dceff8;color:#31576a}
.feedback.ok{background:#d9eee4;color:#315b36}
.feedback.no{background:#ffe3e2;color:#913b31}
.match-option{background:#fffefa;border-color:#eadfd4}
.match-option.selected{background:#dceff8;border-color:#82bbd5;color:#31576a}
.match-option.matched{background:#d9eee4;color:#3f713c}
.study-completion .completion-medal{background:#ffe49a;color:#bd211b}
.completion-score{color:#e52e25}
.auth-story{background:linear-gradient(135deg,#dceff8 0%,#fff9ef 53%,#f8d9e4 100%);color:#292522}
.auth-story .story-copy h1{color:#e52e25}
.auth-story .story-copy p{color:#5d6669}
.auth-story .story-point{background:#ffffffd9;border-color:#fff}
.auth-story .story-point strong{color:#342c29}
.auth-story .story-point span{color:#6c625d}
.heat-cell[data-v="1"]{background:#f8d9e4}
.heat-cell[data-v="2"]{background:#ffe28b}
.heat-cell[data-v="3"]{background:#9bdc64}
.heat-cell[data-v="4"]{background:#58b84a}
.mcq-shortcut-note{color:#a33a2c}
@media(max-width:760px){.dashboard-bento{padding:12px}.dashboard-welcome{padding:16px}.dashboard-summary-strip{grid-template-columns:1fr}.dashboard-stats .stat-card{min-height:112px}}
:root.dark .brand-logo{background:#fffaf1;border-color:#62554c}
:root.dark .app-shell.study-focus-mode .app-main{background:#202a2e}
:root.dark .study-card,:root.dark .answer-option,:root.dark .match-option{background:var(--surface);color:var(--ink);border-color:var(--line)}
:root.dark .dashboard-stats .stat-card:nth-child(1){background:#41632b}:root.dark .dashboard-stats .stat-card:nth-child(2){background:#70541f}:root.dark .dashboard-stats .stat-card:nth-child(3){background:#794633}:root.dark .dashboard-stats .stat-card:nth-child(4){background:#684257}:root.dark .dashboard-stats .stat-card:nth-child(5){background:#31566a}:root.dark .dashboard-stats .stat-card:nth-child(6){background:#315a48}:root.dark .dashboard-stats .stat-card:nth-child(7){background:#9b302a}:root.dark .dashboard-stats .stat-card:nth-child(8){background:#315b48}:root.dark .dashboard-stats .stat-card:nth-child(9){background:#31566a}:root.dark .dashboard-stats .stat-card:nth-child(10){background:#754331}
:root.dark .mcq-example,:root.dark .typing-result-example{background:#51472f;color:#fff2d2}
:root.dark .typing-result-translation{background:#304650;color:#e0f1f8}
:root.dark .typing-hint-output{background:#493541;color:#f4e7ea}
:root.dark .rating-again{background:#553b3a;color:#ffd7d3}:root.dark .rating-hard{background:#57482b;color:#ffe4a7}:root.dark .rating-good{background:#29483d;color:#c9ead9}:root.dark .rating-easy{background:#3c5232;color:#d8efc8}

/* 2.4.0 — Paper Sunshine ratio system: 45% cream / 20% tomato red / 35% pastel accents. */
:root:not(.dark){
  --bg:#F8F5EE;
  --surface:#FFFEFA;
  --surface-2:#F0ECE4;
  --ink:#252321;
  --muted:#625D57;
  --line:#E6DED2;
  --accent:#CF2928;
  --accent-dark:#A51D1C;
  --accent-soft:#F9E2DE;
  --pink:#F0C7CF;
  --peach:#FFD9CA;
  --mint:#DCEEDB;
  --blue:#D7EAF6;
  --gold:#F4E7B6;
  --danger:#B52225;
  --shadow:0 10px 28px rgba(53,42,30,.075);
  --radius:22px;
}
:root.dark{
  --bg:#242322;
  --surface:#302E2B;
  --surface-2:#3A3733;
  --ink:#FFF9F0;
  --muted:#D0C7BC;
  --line:#514B45;
  --accent:#F05A52;
  --accent-dark:#FFAAA1;
  --accent-soft:#50312E;
  --pink:#563B43;
  --peach:#594034;
  --mint:#344B3A;
  --blue:#344957;
  --gold:#51492E;
  --danger:#FF9A91;
  --shadow:0 12px 32px rgba(0,0,0,.24);
}
html,body,button,input,textarea,select{font-family:'Montserrat',Arial,sans-serif!important}
body{background:var(--bg)!important;color:var(--ink)!important}
button,input,textarea,select{font-family:'Montserrat',Arial,sans-serif!important}
.brand,.topbar h1,.page-head h2,.card h3,.deck-card h3,.path-card h3,.auth-card h2,.study-word,.flashcard-answer-meaning{font-family:'Montserrat',Arial,sans-serif!important;letter-spacing:-.035em}
.brand{font-weight:800;color:var(--ink)}
.sidebar{background:var(--surface)!important;border-right-color:var(--line)!important}
.topbar{background:color-mix(in srgb,var(--bg) 94%,transparent)!important;border-bottom-color:var(--line)!important}
.nav button.active{background:var(--accent)!important;color:#fff!important}
.nav button:hover{background:var(--blue)!important;color:#263D4A!important}
.nav .nav-count{background:var(--gold)!important;color:#4E4227!important}
.btn.primary,.dashboard-welcome .btn.primary{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}
.btn.primary:hover{background:var(--accent-dark)!important;border-color:var(--accent-dark)!important}
.btn.soft,.chip.accent{background:var(--accent-soft)!important;color:var(--accent-dark)!important}
input:focus,textarea:focus,select:focus{border-color:var(--accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)!important}
.dashboard-bento{background:var(--blue)!important;border-color:transparent!important}
.dashboard-welcome,.dashboard-main-grid>.card,.dashboard-bottom-grid>.card,.dashboard-proficiency{background:var(--surface)!important;color:var(--ink)!important}
.dashboard-summary-strip{background:var(--surface)!important;border-color:var(--line)!important}
.dashboard-summary-strip .summary-intro{background:var(--pink)!important;color:#39272B!important}
.dashboard-summary-strip .summary-progress{background:var(--blue)!important;color:#253D4A!important}
.dashboard-summary-strip .summary-intro strong{color:var(--accent-dark)!important}
.dashboard-stats .stat-card:nth-child(1){background:var(--surface)!important;color:var(--ink)!important}
.dashboard-stats .stat-card:nth-child(2){background:var(--accent)!important;color:#fff!important}
.dashboard-stats .stat-card:nth-child(3){background:var(--blue)!important;color:#264354!important}
.dashboard-stats .stat-card:nth-child(4){background:var(--pink)!important;color:#56343C!important}
.dashboard-stats .stat-card:nth-child(5){background:var(--gold)!important;color:#4E4227!important}
.dashboard-stats .stat-card:nth-child(6){background:var(--mint)!important;color:#2E4D38!important}
.dashboard-stats .stat-card:nth-child(7){background:var(--peach)!important;color:#603D31!important}
.dashboard-stats .stat-card:nth-child(8){background:#E6E0F4!important;color:#41385A!important}
.dashboard-stats .stat-card:nth-child(9){background:#D8E9E4!important;color:#284B43!important}
.dashboard-stats .stat-card:nth-child(10){background:#F6D8CF!important;color:#613630!important}
.dashboard-stats .stat-card .stat-label,.dashboard-stats .stat-card .stat-foot,.dashboard-stats .stat-card .stat-number{color:inherit!important;opacity:1}
.dashboard-stats .stat-accent{background:#fffefaad!important;color:inherit!important}
.deck-card:nth-child(4n+1){background:var(--surface)!important}
.deck-card:nth-child(4n+2){background:var(--gold)!important}
.deck-card:nth-child(4n+3){background:var(--blue)!important}
.deck-card:nth-child(4n+4){background:var(--pink)!important}
.deck-color{background:var(--accent-soft)!important;color:var(--accent-dark)!important}
.mode-card{background:var(--surface)!important;border-color:var(--line)!important;box-shadow:0 5px 16px rgba(45,36,28,.055)!important}
.mode-card:nth-child(6n+1){background:var(--blue)!important}
.mode-card:nth-child(6n+2){background:var(--pink)!important}
.mode-card:nth-child(6n+3){background:var(--gold)!important}
.mode-card:nth-child(6n+4){background:var(--mint)!important}
.mode-card:nth-child(6n+5){background:var(--peach)!important}
.mode-card:nth-child(6n+6){background:#E6E0F4!important}
.mode-card:hover{border-color:var(--accent)!important;filter:saturate(1.04)}
.progress span,.activity-bar i{background:var(--accent)!important}
.heat-cell[data-v="1"]{background:var(--pink)!important}
.heat-cell[data-v="2"]{background:var(--gold)!important}
.heat-cell[data-v="3"]{background:var(--mint)!important}
.heat-cell[data-v="4"]{background:#7DBB61!important}
.chip.good,.notice.success,.feedback.ok{background:var(--mint)!important;color:#244B31!important}
.chip.warn{background:var(--gold)!important;color:#55451F!important}
.chip.bad,.feedback.no{background:#FBE2DC!important;color:#8E2927!important}
.auth-story{background:linear-gradient(135deg,var(--blue) 0%,var(--surface) 47%,var(--pink) 100%)!important;color:var(--ink)!important}
.auth-story .story-copy h1{color:var(--accent)!important}
.auth-story .story-copy p{color:#504B46!important}
.auth-story .story-point{background:#fffefaD9!important;border-color:#fffefa!important}
.brand-logo{background:var(--surface)!important;border:1px solid var(--line)!important}
.toast{background:#292521!important;color:#fffaf3!important}

/* Redesigned Flashcard: a clean paper card with an actual 3D flip, not the earlier pastel block styling. */
.app-shell.study-focus-mode .app-main{background:var(--bg)!important}
.app-shell.study-focus-mode .main-content{max-width:1240px!important}
.study-card-flashcards{max-width:1040px!important;margin:18px auto!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;text-align:left!important}
.study-card-flashcards>.session-progress{padding:0 5px;color:var(--muted)!important}
.study-card-flashcards>.study-session-progress{margin:10px 0 18px}
.flashcard-frame{perspective:1400px;width:100%}
.flashcard-rotator{display:grid;grid-template-columns:minmax(0,1fr);transform-style:preserve-3d;transition:transform .72s cubic-bezier(.2,.72,.2,1);min-height:390px;will-change:transform}
.flashcard-rotator.is-flipped{transform:rotateY(180deg)}
.flashcard-face{grid-area:1/1;backface-visibility:hidden;-webkit-backface-visibility:hidden;min-width:0;min-height:390px;border-radius:28px;padding:clamp(24px,4.4vw,48px);border:1px solid var(--line);box-shadow:0 20px 54px rgba(50,38,29,.10);display:flex;flex-direction:column;position:relative;overflow:hidden}
.flashcard-front-face{background:var(--surface);border-top:7px solid var(--accent)}
.flashcard-back-face{background:linear-gradient(145deg,var(--surface) 0%,color-mix(in srgb,var(--blue) 46%,var(--surface)) 100%);transform:rotateY(180deg);border-top:7px solid var(--mint)}
.flashcard-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.flashcard-kicker{font-size:11px;letter-spacing:.13em;font-weight:800;color:var(--muted)}
.flashcard-level{display:inline-flex;align-items:center;justify-content:center;min-width:52px;padding:7px 12px;border-radius:99px;background:var(--gold);color:#544522;font-weight:800;font-size:11px}
.flashcard-word-block{margin:auto 0 24px;padding-top:28px}
.flashcard-front-face .study-word{font-size:clamp(42px,7vw,74px)!important;line-height:1.05!important;margin:0 0 13px!important;color:var(--ink)!important;font-weight:800!important;overflow-wrap:anywhere}
.flashcard-ipa{font-size:17px;color:var(--muted);font-weight:500}
.flashcard-audio-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.flashcard-audio-row .audio-pill,.flashcard-example-actions .audio-pill{background:var(--blue)!important;color:#263F50!important;border:1px solid #C5DEEC!important;border-radius:12px;padding:10px 15px;font-weight:700}
.flashcard-think{display:flex;align-items:center;gap:11px;padding:14px 16px;border-radius:15px;background:var(--gold);color:#4B4029;font-size:13px;font-weight:600}
.flashcard-think-icon{width:27px;height:27px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800;flex:none}
.flashcard-topic{position:absolute;right:clamp(24px,4.4vw,48px);bottom:clamp(24px,4.4vw,48px);max-width:30%;font-size:11px;color:var(--muted);text-align:right}
.flashcard-answer-meaning{font-size:clamp(25px,3.7vw,38px);line-height:1.2;color:var(--accent-dark);margin:20px 0 10px;font-weight:800;overflow-wrap:anywhere}
.flashcard-definition{font-size:16px;line-height:1.7;color:var(--ink);margin:0 0 15px}
.flashcard-example{background:var(--gold);border-radius:18px;padding:17px 18px;margin-top:6px;color:#302B23}
.flashcard-example p{font-size:15px;line-height:1.65;margin:8px 0;color:#302B23}
.flashcard-example-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.flashcard-example-actions .audio-pill-translation{background:var(--pink)!important;border-color:#E5B8C2!important;color:#59343D!important}
.flashcard-translation{border-top:1px solid rgba(75,60,40,.12);padding-top:10px;margin-top:12px!important;color:#514943!important;font-size:14px!important}
.flashcard-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.flashcard-tags span{padding:8px 12px;border-radius:99px;background:var(--pink);color:#583740;font-size:12px;font-weight:700}
.flashcard-synonyms{color:var(--muted);font-size:13px;margin:13px 0 0}
.flashcard-controls{display:flex;justify-content:center;margin:17px 0 0}
.flashcard-flip-button{min-width:190px;padding:13px 24px!important;border-radius:14px!important;font-weight:800!important;box-shadow:0 7px 18px rgba(207,41,40,.18)}
.flashcard-rating-area{width:100%}
.flashcard-rating-area .rating-row{margin:0 auto 8px!important;max-width:790px}
.flashcard-rating-area .rating-button{border:1px solid transparent;min-height:82px;border-radius:16px}
.flashcard-rating-area .rating-again{background:#F5D9DA!important;color:#812C2B!important}
.flashcard-rating-area .rating-hard{background:var(--gold)!important;color:#5D4B24!important}
.flashcard-rating-area .rating-good{background:var(--mint)!important;color:#2C573A!important}
.flashcard-rating-area .rating-easy{background:var(--blue)!important;color:#2C536B!important}
.study-card-flashcards .study-exit-actions{margin-top:22px}

/* Keep the other focused game screens visually consistent with the same brand system. */
.study-card:not(.study-card-flashcards){background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:0 18px 46px rgba(50,38,29,.09)!important;border-radius:26px!important}
.study-focus-top{color:var(--ink)}
.study-focus-heading strong{color:var(--ink)!important}
.study-focus-counter{background:var(--pink)!important;color:#59343D!important}
.study-card .study-word{color:var(--ink)!important;font-family:'Montserrat',Arial,sans-serif!important}
.study-card .study-meaning,.typing-question .study-meaning{color:var(--accent-dark)!important}
.audio-pill{background:var(--blue)!important;border:1px solid #C5DEEC!important;color:#263F50!important}
.audio-pill:hover,.audio-icon-btn:hover{background:var(--pink)!important}
.mcq-example,.example-panel,.typing-result-example{background:var(--gold)!important;color:#342E24!important}
.mcq-example p,.example-panel p,.typing-result-example p{color:#342E24!important}
.answer-option{background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}
.answer-option:nth-child(4n+1) .option-letter{background:var(--pink)!important;color:#623941!important}
.answer-option:nth-child(4n+2) .option-letter{background:var(--blue)!important;color:#294B60!important}
.answer-option:nth-child(4n+3) .option-letter{background:var(--gold)!important;color:#5B4A23!important}
.answer-option:nth-child(4n+4) .option-letter{background:var(--mint)!important;color:#2B5538!important}
.answer-option.correct{background:var(--mint)!important;border-color:#9BC8A1!important;color:#254C32!important}
.answer-option.incorrect{background:#F8DEDA!important;border-color:#E5A19A!important;color:#852D2A!important}
.option-shortcut{background:var(--surface-2)!important;color:var(--ink)!important;border-color:var(--line)!important}
.typing-hint-output{background:var(--pink)!important;color:#55333D!important}
.hint-letters i{background:var(--surface)!important;border-color:#E4C1C8!important;color:#6A343E!important}
.hint-letters i:nth-child(2){background:var(--blue)!important;border-color:#C5DEEC!important;color:#294B60!important}
.hint-letters i:nth-child(3){background:var(--gold)!important;border-color:#E7D9A5!important;color:#5B4A23!important}
.typing-result{background:var(--mint)!important;color:#294C34!important;border-color:#BEDCC0!important}
.typing-result-translation{background:var(--blue)!important;color:#294B60!important}
.match-option{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
.match-option.selected{background:var(--blue)!important;border-color:#9BC4DB!important;color:#28495D!important}
.match-option.matched{background:var(--mint)!important;color:#2F5B38!important}
.rating-again{background:#F5D9DA!important;color:#812C2B!important}
.rating-hard{background:var(--gold)!important;color:#5D4B24!important}
.rating-good{background:var(--mint)!important;color:#2C573A!important}
.rating-easy{background:var(--blue)!important;color:#2C536B!important}
.study-completion .completion-medal{background:var(--gold)!important;color:var(--accent-dark)!important}
.completion-score{color:var(--accent)!important}

/* Dark theme preserves contrast and the same red / pastel identity. */
:root.dark .dashboard-bento{background:#2E414A!important}
:root.dark .dashboard-welcome,:root.dark .dashboard-main-grid>.card,:root.dark .dashboard-bottom-grid>.card,:root.dark .dashboard-proficiency,:root.dark .dashboard-summary-strip{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
:root.dark .dashboard-summary-strip .summary-intro{background:#573B40!important;color:#FFF5EC!important}
:root.dark .dashboard-summary-strip .summary-progress{background:#354D5B!important;color:#F5F1E9!important}
:root.dark .dashboard-stats .stat-card{color:#FFF9F0!important}
:root.dark .dashboard-stats .stat-card:nth-child(1){background:#45413B!important}
:root.dark .dashboard-stats .stat-card:nth-child(2){background:#8D302D!important}
:root.dark .dashboard-stats .stat-card:nth-child(3){background:#355365!important}
:root.dark .dashboard-stats .stat-card:nth-child(4){background:#64434B!important}
:root.dark .dashboard-stats .stat-card:nth-child(5){background:#66582F!important}
:root.dark .dashboard-stats .stat-card:nth-child(6){background:#385743!important}
:root.dark .dashboard-stats .stat-card:nth-child(7){background:#6C473A!important}
:root.dark .dashboard-stats .stat-card:nth-child(8){background:#514969!important}
:root.dark .dashboard-stats .stat-card:nth-child(9){background:#31564F!important}
:root.dark .dashboard-stats .stat-card:nth-child(10){background:#70413B!important}
:root.dark .study-card-flashcards{background:transparent!important}
:root.dark .flashcard-front-face,:root.dark .flashcard-back-face{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
:root.dark .flashcard-front-face .study-word,:root.dark .flashcard-back-face .flashcard-answer-meaning{color:var(--ink)!important}
:root.dark .flashcard-think{background:#5A512F!important;color:#FFF0C2!important}
:root.dark .flashcard-think-icon{background:var(--accent)!important;color:#fff!important}
:root.dark .flashcard-example,:root.dark .mcq-example,:root.dark .example-panel,:root.dark .typing-result-example{background:#51472F!important;color:#FFF4D7!important}
:root.dark .flashcard-example p,:root.dark .mcq-example p,:root.dark .example-panel p,:root.dark .typing-result-example p{color:#FFF4D7!important}
:root.dark .flashcard-translation{color:#E9E1D7!important}
:root.dark .flashcard-tags span{background:#594047!important;color:#F8E7E9!important}
:root.dark .flashcard-audio-row .audio-pill,:root.dark .flashcard-example-actions .audio-pill,:root.dark .audio-pill{background:#344A57!important;color:#EAF5FA!important;border-color:#4E6674!important}
:root.dark .study-focus-counter{background:#594047!important;color:#FFE8EA!important}
:root.dark .typing-hint-output{background:#594047!important;color:#F7E7EA!important}
:root.dark .typing-result{background:#304B3A!important;color:#E9F5EB!important}
:root.dark .typing-result-translation{background:#344A57!important;color:#EAF5FA!important}
:root.dark .rating-again{background:#573A3A!important;color:#FFE4E0!important}
:root.dark .rating-hard{background:#5A4D2D!important;color:#FFEAB5!important}
:root.dark .rating-good{background:#304B3A!important;color:#E1F3E5!important}
:root.dark .rating-easy{background:#344A57!important;color:#E5F4FF!important}
:root.dark .answer-option{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
:root.dark .answer-option.correct{background:#304B3A!important;color:#E1F3E5!important}
:root.dark .answer-option.incorrect{background:#573A3A!important;color:#FFE4E0!important}

@media(max-width:760px){
  .flashcard-rotator,.flashcard-face{min-height:430px}
  .flashcard-face{padding:24px 19px;border-radius:22px}
  .flashcard-front-face .study-word{font-size:clamp(36px,10vw,52px)!important}
  .flashcard-topic{position:static;max-width:none;text-align:left;margin-top:12px}
  .flashcard-audio-row{margin-top:auto}
  .flashcard-rating-area .rating-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .study-card-flashcards .study-exit-actions{margin-top:14px}
}


/* 2.4.1 — clearer spreadsheet template downloads and study keyboard guide. */
.import-template-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;margin:13px 0 17px;border:1px dashed color-mix(in srgb,var(--accent) 45%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--gold) 38%,var(--surface));}
.import-template-panel strong{display:block;color:var(--ink);font-size:14px;margin-bottom:4px}
.import-template-panel p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.import-template-panel p b{color:var(--ink)}
.import-template-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}
.typing-shortcut-note{margin:8px auto 3px;color:var(--muted);font-size:11px;line-height:1.8;text-align:center}
.typing-shortcut-note kbd{display:inline-block;padding:2px 7px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font-weight:800}
@media(max-width:650px){.import-template-panel{align-items:flex-start;flex-direction:column}.import-template-actions{width:100%}.import-template-actions .btn{flex:1;justify-content:center}}

/* Vocab Studio 2.5 — floral paper design system, inspired by the supplied reference screens. */
:root{
  --bg:#fbf8f2;--surface:#fffefb;--surface-2:#f0f6f8;--ink:#282421;--muted:#6f6963;--line:#eadfd5;
  --accent:#d82424;--accent-dark:#a91419;--accent-soft:#ffe6e1;--blue:#d9edfa;--pink:#f6dadd;--peach:#ffe8da;--mint:#e2f1d9;--gold:#fff0b9;--lavender:#e8e2f5;
  --shadow:0 12px 32px rgba(75,45,30,.075);--radius:24px;--font:'Montserrat',Arial,sans-serif;--display:'Lora',Georgia,serif
}
:root.dark{--bg:#22292d;--surface:#2d3438;--surface-2:#35434a;--ink:#f8f2e9;--muted:#c4bcb3;--line:#4c5559;--accent:#ff7770;--accent-dark:#ffaca4;--accent-soft:#50393a;--blue:#334d5c;--pink:#533b42;--peach:#594238;--mint:#344a39;--gold:#594d31;--lavender:#463e57;--shadow:0 14px 36px rgba(0,0,0,.24)}
html,body{font-family:var(--font)!important;background:var(--bg);color:var(--ink)}
button,input,textarea,select{font-family:var(--font)!important}
.app-shell{position:relative;isolation:isolate;background:var(--bg)}
.app-shell:before,.app-shell:after{position:fixed;pointer-events:none;z-index:0;line-height:1;user-select:none}
.app-shell:before{content:'✿';right:18px;top:88px;font-size:48px;color:#f36c72;opacity:.68;text-shadow:0 0 0 #f36c72}
.app-shell:after{content:'✿';right:42px;bottom:16px;font-size:58px;color:#f58a8c;opacity:.56}
.app-main,.sidebar,.mobile-nav{position:relative;z-index:1}
.sidebar{background:var(--surface)!important;border-right:1px solid var(--line)!important}
.brand{padding:2px 5px 20px!important;min-height:104px;justify-content:flex-start;align-items:center}
.brand-logo,.brand-logo-sidebar,.brand-logo-auth,.brand-wordmark-auth{object-fit:contain!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
.brand-logo-sidebar{width:198px!important;height:98px!important;max-width:100%;}
.brand-logo-auth{width:168px!important;height:104px!important;margin:0 0 12px!important}
.brand-wordmark-auth{width:210px!important;height:105px!important;max-width:100%}
.story-brand{margin-bottom:24px}
.story-brand .brand-wordmark-auth{width:210px;height:128px;object-fit:contain}
.brand-logo-topbar{display:none}
.topbar{background:color-mix(in srgb,var(--bg) 94%,transparent)!important;border-bottom:1px solid var(--line)!important}
.topbar h1,.page-head h2,.card h3,.deck-card h3,.path-card h3,.auth-card h2,.dashboard-welcome h2,.folder-section h3,.daily-mission-head h3{font-family:var(--display)!important;font-weight:700!important;letter-spacing:-.035em!important;color:var(--accent-dark)}
.topbar h1{font-size:clamp(21px,2vw,28px)!important}
.page-head h2{font-size:clamp(27px,3vw,36px)!important}
.card h3,.folder-section h3,.daily-mission-head h3{font-size:20px!important}
.nav-group{font-family:var(--display);font-size:12px;letter-spacing:.08em;color:#856c5d}
.nav button{font-weight:750;color:var(--ink)}
.nav button.active{background:var(--accent-soft);color:var(--accent-dark);border-radius:14px}
.btn.primary{background:var(--accent)!important;color:#fff!important;box-shadow:0 7px 18px rgba(216,36,36,.17)}
.btn.primary:hover{background:#bd1c1f!important;filter:none}
.btn:not(.primary){border-color:var(--line)}
.card,.stat-card,.path-card{border-radius:24px!important;border-color:#eee4dc!important;box-shadow:var(--shadow)!important}
:root.dark .card,:root.dark .stat-card,:root.dark .path-card{border-color:var(--line)!important}
.dashboard-bento{background:#e8f3f9!important;border-radius:30px!important;padding:clamp(16px,2vw,26px)!important;box-shadow:inset 0 0 0 1px #d9eaf2!important;position:relative;overflow:hidden}
.dashboard-welcome{background:linear-gradient(108deg,#fffefa 0%,#fffefa 68%,#f2f8fb 100%);border:1px solid #f1e8df;border-radius:30px;padding:24px 28px;align-items:center;box-shadow:0 8px 24px rgba(51,62,64,.055)}
.dashboard-welcome h2{font-size:clamp(28px,3vw,40px)!important;color:var(--accent)!important;margin:4px 0 6px!important}
.dashboard-welcome p{color:#53616b;font-size:15px}
.dashboard-welcome-tags span{background:#ffe7e5;color:#a91f25;border-radius:999px;padding:8px 13px;font-weight:800}
.dashboard-summary-strip{background:#fffefa!important;border:1px solid #f0e6dc!important;border-radius:26px!important}
.dashboard-summary-strip .summary-intro strong{color:var(--accent)!important;font-family:var(--display)!important}
.dashboard-stats .stat-card{position:relative;border:2px solid rgba(255,255,255,.9)!important;box-shadow:0 8px 20px rgba(57,53,45,.055)!important}
.dashboard-stats .stat-card:nth-child(1){background:#e3f1d9!important}
.dashboard-stats .stat-card:nth-child(2){background:#fff0bb!important}
.dashboard-stats .stat-card:nth-child(3){background:#ffded4!important}
.dashboard-stats .stat-card:nth-child(4){background:#f8dfe9!important}
.dashboard-stats .stat-card:nth-child(5){background:#dceefa!important}
.dashboard-stats .stat-card:nth-child(6){background:#e0f2ec!important}
.dashboard-stats .stat-card:nth-child(7){background:#ffd9d2!important}
.dashboard-stats .stat-card:nth-child(8){background:#e2f1d9!important}
.dashboard-stats .stat-card:nth-child(9){background:#e0edfa!important}
.dashboard-stats .stat-card:nth-child(10){background:#f8e2ed!important}
.dashboard-stats .stat-number{color:#b61d1d!important;font-family:var(--display)!important;font-size:34px!important}
.daily-mission-board{background:#fffefa;border:1px solid #eee4da;border-radius:26px;padding:20px 22px;box-shadow:0 9px 24px rgba(65,48,38,.05);position:relative;overflow:hidden}
.daily-mission-board:after{content:'✿';position:absolute;right:18px;top:10px;color:#f58b8e;font-size:36px;opacity:.35;pointer-events:none}
.daily-mission-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}
.daily-mission-head h3{font-size:24px!important;margin:2px 0 4px!important}
.daily-mission-head p{margin:0;color:var(--muted);font-size:13px}
.mission-overline,.folder-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:900;color:#66839a}
.mission-total{display:grid;text-align:center;min-width:82px;padding:8px 12px;background:#e4f1f9;border-radius:16px;color:#23506a}
.mission-total strong{font-family:var(--display);font-size:25px}
.mission-total span{font-size:10px;font-weight:800}
.mission-total-progress,.mission-progress-line{height:8px;border-radius:99px;overflow:hidden;background:#edf0f1}
.mission-total-progress{margin-bottom:15px;height:10px}
.mission-total-progress span,.mission-progress-line span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d92828,#f36b5f);transition:width .35s ease}
.daily-mission-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.mission-item{border-radius:18px;padding:14px 14px 12px;min-width:0;border:1px solid rgba(255,255,255,.85)}
.mission-blue{background:#e0eff9}.mission-pink{background:#f9e2e8}.mission-yellow{background:#fff1c6}.mission-mint{background:#e3f1dc}
.mission-item.is-complete{box-shadow:inset 0 0 0 2px rgba(75,145,80,.18)}
.mission-item-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.mission-icon{width:31px;height:31px;border-radius:11px;background:#fffefa;display:grid;place-items:center;color:var(--accent-dark);font-weight:900}
.mission-reward{font-size:10px;font-weight:900;color:#9d2926;background:#fff8ed;padding:5px 8px;border-radius:99px;white-space:nowrap}
.mission-item strong{display:block;font-family:var(--display);font-size:15px;line-height:1.35;color:#302721;min-height:40px}
.mission-item p{font-size:11px;line-height:1.45;color:#5b6060;min-height:32px;margin:4px 0 10px}
.mission-progress-label{display:flex;justify-content:space-between;gap:7px;font-size:10px;color:#59616a;margin-top:6px}
.mission-progress-label b{color:#a82120}
.folder-section{background:#e7f3fa;border:1px solid #dbeaf3;border-radius:28px;padding:19px 20px;margin:17px 0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65)}
.folder-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}
.folder-title-wrap{display:flex;align-items:center;gap:13px;min-width:0}
.folder-icon{width:48px;height:48px;border-radius:16px;background:#fffefa;color:#d72a27;display:grid;place-items:center;font-size:24px;box-shadow:0 5px 15px rgba(54,88,110,.08)}
.folder-section-head h3{margin:1px 0!important;font-size:25px!important}
.folder-section-head p{margin:3px 0 0;color:#496579;font-size:12px}
.folder-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.folder-actions .btn{background:#fffefa}
.mini-folder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mini-folder-card{background:#fffefa;border:1px solid #f0e4db;border-radius:21px;padding:16px;box-shadow:0 7px 18px rgba(48,66,76,.055);min-width:0;display:flex;flex-direction:column}
.mini-folder-card:nth-child(4n+2){background:#fff9e8}
.mini-folder-card:nth-child(4n+3){background:#fff0ed}
.mini-folder-card:nth-child(4n+4){background:#f1f6fb}
.mini-folder-card-top{display:flex;justify-content:space-between;align-items:center}
.mini-folder-icon{width:36px;height:36px;border-radius:12px;background:#fbe0e1;color:#c82325;display:grid;place-items:center;font-size:18px}
.mini-folder-card-body{flex:1}
.mini-folder-label{display:block;margin-top:12px;font-size:9px;letter-spacing:.14em;font-weight:900;color:#6a879b}
.mini-folder-card h4{font:700 19px var(--display)!important;color:#a91b1b;margin:4px 0 6px!important;overflow-wrap:anywhere}
.mini-folder-card p{font-size:12px;color:#6f6963;line-height:1.5;margin:0}
.mini-folder-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}
.mini-folder-tags span{font-size:10px;font-weight:800;color:#315b76;background:#e1eff9;border-radius:99px;padding:4px 8px}
.mini-folder-card-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #eee4dc;margin-top:14px;padding-top:10px;color:#4f6168;font-size:12px}
.mini-folder-card-foot .toolbar{margin:0;gap:5px}
.mini-folder-card-foot .btn{padding:7px 9px;font-size:10px}
.nested-mini-folders{display:grid;gap:7px;background:#f0f7fb;border-radius:14px;padding:9px;margin-top:12px}
.nested-mini-folders>span{font-size:10px;font-weight:800;color:#66839a}
.mini-folder-nested{box-shadow:none;border-radius:14px;padding:10px;background:#fffefa!important}
.mini-folder-nested .mini-folder-card-top{display:none}
.mini-folder-nested .mini-folder-label{margin-top:0}
.mini-folder-nested h4{font-size:15px!important}
.mini-folder-nested .mini-folder-card-foot{display:none}
.mini-folder-empty{grid-column:1/-1;background:#fffefa;border:1px dashed #9bbdd0;border-radius:18px;padding:22px;display:grid;justify-items:center;gap:8px}
.folder-section-warning{background:#fff1d8;border-color:#f4dfb9}
.word-hierarchy-note{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#e1f0f9;color:#254f69;border-radius:16px;padding:12px 15px;font-size:12px;margin:0 0 12px}
.word-hierarchy-note b{color:#b72022;font-family:var(--display);font-size:15px}
.word-location-form{background:#e9f4fa;border:1px solid #d5e8f2;border-radius:18px;padding:15px;margin-bottom:18px}
.word-location-heading{display:flex;gap:10px;align-items:center;margin-bottom:11px}
.location-step{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#d92725;color:#fff;font-weight:900}
.word-location-heading strong{font-family:var(--display);font-size:17px;color:#a51b1b}
.word-location-heading p{margin:2px 0 0;color:#61717a;font-size:11px}
.word-location-context{font-size:11px;color:#315e74;font-weight:700;margin-top:9px}
.folder-path-label,.mini-folder-path-label{display:inline-flex;align-items:center;padding:5px 8px;border-radius:9px;font-size:11px;font-weight:800;line-height:1.25}
.folder-path-label{background:#e1eff9;color:#285c79}
.mini-folder-path-label{background:#ffe5e0;color:#a92325}
.vocabulary-table-card{overflow:hidden}
.hierarchy-guide{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#fffefa;border:1px solid var(--line);border-radius:18px;padding:12px 14px;margin:10px 0 14px}
.hierarchy-step{display:grid;gap:2px;padding:8px 12px;border-radius:12px;flex:1;min-width:130px}
.hierarchy-step b{font-size:10px;letter-spacing:.1em}.hierarchy-step span{font-size:11px;color:#5e666a}
.hierarchy-folder{background:#fff0bf;color:#8b5d16}.hierarchy-mini{background:#e1eef9;color:#2d607f}.hierarchy-words{background:#f7dfe5;color:#9b3e55}
.hierarchy-arrow{font-weight:900;color:var(--accent)}
/* Match the supplied floral flashcard: strong red headword, calm cream paper, blue instruction/example panels. */
.app-shell.study-focus-mode .app-main{background:var(--bg)!important}
.app-shell.study-focus-mode .main-content{max-width:1240px!important;padding-top:18px}
.study-focus-top{display:flex;align-items:center;gap:14px;margin-bottom:15px}
.study-focus-logo{width:112px;height:68px;object-fit:contain;flex:none}
.study-focus-heading{flex:1}
.study-focus-heading strong{font-family:var(--display)!important;color:var(--accent-dark)!important;font-size:22px}
.study-card-flashcards{max-width:1120px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;text-align:left!important}
.study-card-flashcards>.session-progress,.study-card-flashcards>.study-session-progress{max-width:100%;margin:0 auto 8px}
.flashcard-frame{perspective:1500px;width:100%;max-width:1120px;margin:0 auto}
.flashcard-rotator{min-height:490px}
.flashcard-face{min-height:490px;border-radius:32px;padding:clamp(24px,4vw,50px);box-shadow:0 18px 46px rgba(76,49,37,.08);border:1px solid #f1e5db}
.flashcard-front-face{background:#fffefa!important;border-top:0!important}
.flashcard-back-face{background:linear-gradient(130deg,#fff1e9 0%,#fff8ef 100%)!important;border-top:0!important}
.flashcard-front-face:after,.flashcard-back-face:after{content:'✿';position:absolute;right:24px;bottom:18px;font-size:48px;color:#f0787b;opacity:.20;pointer-events:none}
.flashcard-front-face .flashcard-kicker,.flashcard-back-face .flashcard-kicker{color:#688398;letter-spacing:.15em}
.flashcard-front-face .study-word{font-family:var(--display)!important;font-weight:700!important;font-size:clamp(42px,6vw,70px)!important;color:#d82424!important;letter-spacing:-.035em!important;margin:4px 0 10px!important}
.flashcard-word-block{margin:28px 0 20px;padding-top:0}
.flashcard-ipa{font-size:18px;color:#5d6870;font-weight:700}
.flashcard-audio-row .audio-pill{border-radius:999px!important;background:#fffefa!important;border:1.5px solid #dd3735!important;color:#c71f23!important;padding:10px 18px!important;font-weight:900}
.flashcard-think{background:#dceefa!important;color:#283f4c!important;border-radius:999px!important;padding:15px 19px!important;font-size:15px!important;margin-top:auto}
.flashcard-think-icon{background:#d92725!important}
.flashcard-level{background:#dceefa!important;color:#174f75!important}
.flashcard-answer-meaning{font-family:var(--display)!important;font-weight:700!important;color:#d32323!important;background:#fff0bd;display:inline-block;align-self:flex-start;border-radius:999px;padding:7px 18px;margin:18px 0 8px!important;font-size:clamp(24px,3.5vw,38px)!important}
.flashcard-definition{font-size:18px!important;line-height:1.55!important;color:#302b27!important;margin:0 0 12px!important}
.flashcard-example{background:#dceefa!important;border-radius:22px!important;color:#292c2d!important;padding:18px 22px!important;margin-top:8px!important;position:relative}
.flashcard-example .example-label{display:inline-block;background:#ffe2df;color:#c51f25;padding:6px 14px;border-radius:99px;font:700 15px var(--display);letter-spacing:0}
.flashcard-example p{font-size:17px!important;font-weight:700!important;color:#282a2b!important}
.flashcard-example .flashcard-translation{font-size:15px!important;color:#4f5961!important;border-top:0!important;margin-top:0!important;padding-top:0!important}
.flashcard-example-actions .audio-pill{background:#fff!important;border:0!important;border-radius:50%!important;width:44px;height:44px;padding:0!important;color:#d82424!important}
.flashcard-tags span{background:#dceefa!important;color:#1d4d70!important;font-size:13px!important}
.flashcard-synonyms{font-size:15px!important;color:#443b35!important}.flashcard-synonyms b{color:#d82424;font-family:var(--display)}
.flashcard-controls{margin:18px auto 0!important;max-width:1100px}
.flashcard-flip-button{background:#d82424!important;color:#fff!important;min-width:220px!important;border-radius:999px!important;font-size:16px!important}
.flashcard-rating-area .rating-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px!important;max-width:1100px!important}
.flashcard-rating-area .rating-button{min-height:92px!important;border-radius:22px!important;display:grid;grid-template-columns:40px 1fr!important;grid-template-rows:auto auto!important;align-items:center!important;text-align:left!important;padding:12px 16px!important}
.flashcard-rating-area .rating-key{width:38px!important;height:38px!important;grid-row:1/3!important;font-size:19px!important;font-weight:900!important;background:#fff!important}
.flashcard-rating-area .rating-button b{font:700 20px var(--display)!important}
.flashcard-rating-area .rating-button small{font-size:13px!important}
.flashcard-rating-area .rating-again{background:#ffe1df!important;color:#c51f26!important}
.flashcard-rating-area .rating-hard{background:#fff0bd!important;color:#8a5012!important}
.flashcard-rating-area .rating-good{background:#dceefa!important;color:#126080!important}
.flashcard-rating-area .rating-easy{background:#e1f1d8!important;color:#256d36!important}
.study-card .study-word,.study-card .study-meaning,.typing-question .study-meaning{font-family:var(--display)!important}
.study-card:not(.study-card-flashcards){border-radius:28px!important;background:#fffefa!important}
.answer-option{background:#fffefa!important;border:1px solid #e6ddd5!important;color:#282421!important}
.answer-option .option-letter{background:#dceefa!important;color:#174f75!important;font-weight:900}
.answer-option.correct{background:#e2f1d9!important;color:#245c31!important}
.mcq-example{background:#dceefa!important;border-radius:18px!important}
.typing-question .study-meaning{font:700 27px var(--display)!important;color:#d82424!important}
.completion-card h2,.completion-score{font-family:var(--display)!important;color:#d82424!important}
.completion-medal{background:#fff0bd!important;color:#b07a13!important}
:root.dark .dashboard-bento{background:#2b3a42!important}
:root.dark .dashboard-welcome,:root.dark .daily-mission-board,:root.dark .mini-folder-card,:root.dark .word-location-form{background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}
:root.dark .mission-item strong,:root.dark .mission-item p,:root.dark .folder-section-head p,:root.dark .mini-folder-card p{color:var(--ink)!important}
:root.dark .folder-section{background:#2c414b;border-color:#3a5563}
:root.dark .mini-folder-card h4,:root.dark .daily-mission-head h3{color:#ff9b92!important}
:root.dark .flashcard-front-face{background:#303a3f!important;color:var(--ink)}
:root.dark .flashcard-back-face{background:#3d3933!important;color:var(--ink)}
:root.dark .flashcard-definition,:root.dark .flashcard-example p,:root.dark .flashcard-synonyms{color:#f8f2e9!important}
:root.dark .flashcard-example{background:#324b59!important}
:root.dark .flashcard-example .example-label{background:#573b3a;color:#ffb2a8}
:root.dark .flashcard-think{background:#334b58!important;color:#eef7fb!important}
:root.dark .flashcard-answer-meaning{background:#594d30;color:#fff1c0!important}
:root.dark .flashcard-rating-area .rating-again{background:#553a3a!important;color:#ffd5d2!important}
:root.dark .flashcard-rating-area .rating-hard{background:#594d31!important;color:#ffedbd!important}
:root.dark .flashcard-rating-area .rating-good{background:#304958!important;color:#c9ecff!important}
:root.dark .flashcard-rating-area .rating-easy{background:#344b38!important;color:#d7f0cd!important}
@media(max-width:1100px){.daily-mission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mini-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .brand-logo-sidebar{width:150px!important;height:80px!important}.brand{min-height:82px!important}
  .brand-logo-topbar{display:block;width:112px;height:68px;object-fit:contain;flex:none}
  .topbar-left{display:flex;align-items:center;gap:9px}.topbar-left .eyebrow{font-size:8px}.topbar h1{font-size:18px!important}
  .daily-mission-grid,.mini-folder-grid{grid-template-columns:1fr}.daily-mission-board{padding:15px}.daily-mission-head{align-items:flex-start}
  .folder-section{padding:13px}.folder-section-head{align-items:flex-start;flex-direction:column}.folder-actions{justify-content:flex-start}
  .hierarchy-guide{align-items:stretch}.hierarchy-step{min-width:100%;}.hierarchy-arrow{display:none}
  .study-focus-top{flex-wrap:wrap}.study-focus-logo{width:84px;height:52px;order:0}.study-focus-heading{order:1;min-width:150px}.study-focus-top>.btn{order:2}.study-focus-counter{order:3;margin-left:auto}
  .flashcard-face{min-height:530px;padding:22px 18px}.flashcard-rotator{min-height:530px}.flashcard-rating-area .rating-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}.flashcard-rating-area .rating-button{min-height:76px!important;padding:10px!important}
}


/* Vocab Studio 2.5.1 — exact two-level filing and actionable daily wins. */
.mission-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-top:10px;padding:7px 11px;border:1px solid rgba(185,45,40,.18);border-radius:999px;background:#fffefa;color:#a91e20;font:800 11px var(--font);cursor:pointer;transition:transform .15s,box-shadow .15s}
.mission-action:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(80,35,28,.09)}
.mission-done-note{display:inline-flex;margin-top:10px;padding:7px 11px;border-radius:999px;background:#fffefa;color:#2d743d;font-size:11px;font-weight:900}
.folder-section{background:#e6f2fa;border:1px solid #d5e9f4;border-radius:28px;padding:20px;margin:18px 0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}
.folder-section-head{background:rgba(255,254,250,.82);border-radius:20px;padding:14px 16px}
.mini-folder-card{background:#fffefa;border:1px solid #f0e3da;border-radius:22px;box-shadow:0 8px 22px rgba(71,48,35,.055)}
.mini-folder-card-top{display:flex;align-items:center;gap:8px}
.mini-folder-label{margin-left:auto}
.word-location-form{background:linear-gradient(115deg,#e4f2fb 0%,#fffefa 60%,#fff0e4 100%);border:1px solid #dceaf3;border-radius:22px;padding:16px;margin-bottom:16px}
.word-location-heading{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.word-location-heading .location-step{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#d82424;color:white;font-weight:900}
.word-location-heading strong{font-family:var(--display);font-size:19px;color:#bd2221}
.word-location-heading p{margin:3px 0 0;color:#536575;font-size:12px}
.brand-logo-sidebar{width:190px!important;height:100px!important;object-fit:contain!important}
:root.dark .folder-section{background:#2b3c45!important;border-color:#405765!important}
:root.dark .folder-section-head{background:#303a3f!important}
:root.dark .mini-folder-card{background:#30383c!important;border-color:#48545a!important}
:root.dark .mission-action{background:#30383c;color:#ffb5ac;border-color:#60413f}
:root.dark .mission-done-note{background:#304537;color:#d2f2d6}
@media(max-width:760px){.folder-section{padding:12px}.folder-section-head{padding:12px}.mission-action{width:100%}}

/* 2.5.2 — mini-folder quick add action remains readable in narrow Bento cards. */
.mini-folder-card-foot{flex-wrap:wrap;align-items:flex-start}
.mini-folder-card-foot .toolbar{flex-wrap:wrap;justify-content:flex-start}
.mini-folder-card-foot .toolbar .btn{white-space:nowrap}
