:root{
  --bg:#f5f1e8;
  --bg-deep:#eee7da;
  --surface:#fffdf9;
  --surface-2:#f9f6ef;
  --ink:#17323c;
  --ink-soft:#4f6369;
  --muted:#7b8a8e;
  --line:#e4ddd2;
  --line-strong:#d3c9bb;
  --teal:#2f7b70;
  --teal-soft:#e5efe9;
  --teal-pale:#f0f6f3;
  --coral:#f05a4f;
  --coral-soft:#fde6df;
  --gold:#b9883e;
  --gold-soft:#f7ecd7;
  --danger:#c94b45;
  --success:#2f7b70;
  --shadow:0 18px 50px rgba(23,50,60,.08);
  --shadow-soft:0 10px 28px rgba(23,50,60,.06);
  --radius:24px;
  --radius-sm:16px;
  --sidebar:246px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background-color:var(--bg);color:var(--ink);
  font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;
  background-image:radial-gradient(circle at 1px 1px,rgba(23,50,60,.06) 1px,transparent 0);
  background-size:22px 22px;min-height:100vh;
}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
svg{display:block}
.app-shell{min-height:100vh}
.sidebar{
  position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:30px 22px 22px;
  background:rgba(255,253,249,.92);border-right:1px solid var(--line);
  display:flex;flex-direction:column;z-index:20;backdrop-filter:blur(14px);
}
.brand{display:flex;align-items:center;gap:13px;padding:0 8px}
.brand-mark{
  width:46px;height:46px;border-radius:16px;background:var(--ink);color:#fff;
  display:grid;place-items:center;font-family:Georgia,serif;font-size:28px;font-weight:700;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);
}
.brand-text{display:flex;flex-direction:column;line-height:1.25}
.brand-text strong{font-size:18px;letter-spacing:.5px}
.brand-text small{font-size:10.5px;color:var(--muted);letter-spacing:1.2px;margin-top:5px}
.nav-list{display:flex;flex-direction:column;gap:6px;margin-top:44px}
.nav-item{
  display:flex;align-items:center;gap:12px;padding:12px 14px;border:0;border-radius:14px;
  background:transparent;color:var(--ink-soft);font-size:14.5px;text-align:left;position:relative;
  transition:.2s ease;
}
.nav-item svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-item:hover{background:var(--surface-2);color:var(--ink)}
.nav-item.active{background:var(--ink);color:#fff;box-shadow:0 12px 26px rgba(23,50,60,.16)}
.nav-badge{
  margin-left:auto;min-width:24px;height:23px;padding:0 7px;border-radius:999px;
  background:var(--coral-soft);color:var(--coral);font-size:11px;font-weight:700;
  display:grid;place-items:center;
}
.nav-item.active .nav-badge{background:rgba(255,255,255,.16);color:#fff}
.sidebar-progress{margin-top:auto;padding:18px 14px 16px;border-radius:18px;background:var(--surface-2);border:1px solid var(--line)}
.side-progress-head{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}
.side-progress-head b{color:var(--ink);font-family:Georgia,serif;font-size:12px}
.progress-track{height:7px;border-radius:99px;background:#e6ded2;overflow:hidden;margin-top:10px}
.progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--teal),#68a998);border-radius:99px;transition:width .5s ease}
.sidebar-progress p{margin:10px 0 0;font-size:10.5px;color:var(--muted);line-height:1.5}
.sidebar-foot{margin-top:18px;padding:0 8px;color:var(--muted);font-size:10.5px;line-height:1.7}
.main{margin-left:var(--sidebar);padding:34px clamp(24px,3.2vw,54px) 60px;max-width:1500px}
.mobile-topbar,.mobile-nav{display:none}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px}
.eyebrow{font-size:11px;letter-spacing:2.6px;text-transform:uppercase;color:var(--teal);font-weight:700}
.page-title{margin:10px 0 0;font-size:clamp(28px,3vw,42px);line-height:1.18;letter-spacing:-1px}
.page-sub{margin:10px 0 0;color:var(--muted);font-size:13.5px;line-height:1.65;max-width:760px}
.head-side{display:flex;align-items:center;gap:10px;flex-shrink:0}
.date-pill{padding:10px 15px;border:1px solid var(--line);border-radius:999px;background:rgba(255,253,249,.7);font-size:12px;color:var(--muted);white-space:nowrap}
.button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;
  padding:12px 18px;background:var(--ink);color:#fff;font-size:13px;font-weight:700;
  transition:transform .18s ease,opacity .18s ease,background .18s ease;white-space:nowrap;
}
.button:hover{transform:translateY(-1px);opacity:.94}
.button:disabled{opacity:.4;cursor:not-allowed;transform:none}
.button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.button.coral{background:var(--coral)}
.button.teal{background:var(--teal)}
.button.ghost{background:transparent;color:var(--ink);border:1px solid var(--line-strong)}
.button.soft{background:var(--teal-soft);color:var(--teal)}
.button.small{padding:8px 12px;border-radius:11px;font-size:12px}
.button.icon-only{width:40px;height:40px;padding:0;border-radius:12px}
.button.link{border:0;background:transparent;padding:0;color:var(--teal);font-size:12px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-soft)}
.hero{
  position:relative;overflow:hidden;border-radius:30px;padding:38px 40px;min-height:260px;
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);
}
.hero:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-120px;top:-190px;background:var(--teal-soft)}
.hero:after{content:"";position:absolute;width:190px;height:190px;border-radius:42px;right:120px;bottom:-120px;background:var(--coral-soft);transform:rotate(25deg)}
.hero-copy{position:relative;z-index:1;max-width:670px}
.hero h1{margin:12px 0 0;font-size:clamp(32px,4vw,56px);line-height:1.12;letter-spacing:-2px}
.hero h1 em{font-style:normal;color:var(--coral)}
.hero p{margin:18px 0 0;color:var(--muted);line-height:1.75;font-size:14px;max-width:570px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}
.hero-side{position:absolute;right:42px;bottom:34px;z-index:1;display:flex;align-items:flex-end;gap:18px}
.hero-ring{width:140px;height:140px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--teal) 0deg,#e8e1d7 0deg);position:relative}
.hero-ring:before{content:"";position:absolute;inset:13px;border-radius:50%;background:var(--surface)}
.hero-ring div{position:relative;z-index:1;text-align:center}
.hero-ring strong{display:block;font:700 29px/1 Georgia,serif}
.hero-ring span{display:block;margin-top:5px;font-size:10px;color:var(--muted)}
.hero-ring-label{font-size:11px;color:var(--muted);text-align:right;line-height:1.7;padding-bottom:12px}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}
.stat-card{padding:20px 21px;border-radius:20px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.stat-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11.5px}
.stat-label svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.stat-value{margin-top:12px;font:700 30px/1 Georgia,serif}
.stat-note{margin-top:8px;font-size:11px;color:var(--muted)}
.section{margin-top:32px}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:15px}
.section-head h2{margin:0;font-size:21px;letter-spacing:-.3px}
.section-head p{margin:6px 0 0;color:var(--muted);font-size:12px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);gap:18px}
.chapter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.chapter-card{
  position:relative;overflow:hidden;padding:16px 16px 14px;border-radius:18px;background:var(--surface);
  border:1px solid var(--line);box-shadow:0 6px 18px rgba(23,50,60,.035);transition:.2s ease;text-align:left;
}
.chapter-card:hover{transform:translateY(-2px);border-color:var(--line-strong);box-shadow:var(--shadow-soft)}
.chapter-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.chapter-number{font:700 12px/1 Georgia,serif;color:var(--teal);letter-spacing:1px}
.chapter-name{font-size:13.5px;font-weight:700;line-height:1.45;margin-top:7px;min-height:39px}
.chapter-meta{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:10.5px;margin-top:12px}
.chapter-bar{height:4px;border-radius:99px;background:#ece5db;overflow:hidden;margin-top:7px}
.chapter-bar span{display:block;height:100%;background:var(--teal);border-radius:99px}
.chapter-acc{font-family:Georgia,serif;font-weight:700;color:var(--ink)}
.chapter-card.no-data .chapter-acc{color:var(--muted)}
.radar-panel{padding:18px 18px 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-soft)}
.radar-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.radar-panel-head h3{margin:0;font-size:16px}
.radar-panel-head p{margin:6px 0 0;color:var(--muted);font-size:10.5px;line-height:1.5}
.radar-wrap{position:relative;width:100%;height:315px;margin-top:8px}
.radar-wrap canvas{width:100%;height:100%}
.radar-empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:12px;pointer-events:none}
.recommend{display:flex;align-items:flex-start;gap:12px;padding:14px 15px;border-radius:16px;background:var(--teal-pale);border:1px solid #dbe9e3;margin-top:10px;font-size:11.5px;line-height:1.65;color:var(--ink-soft)}
.recommend strong{color:var(--teal)}
.recommend svg{flex:0 0 auto;width:18px;height:18px;fill:none;stroke:var(--teal);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
.setup-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr);gap:18px}
.mode-select{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mode-card{
  position:relative;padding:21px;border-radius:20px;background:var(--surface);border:1px solid var(--line);text-align:left;transition:.2s ease;
}
.mode-card:hover{border-color:var(--line-strong);transform:translateY(-1px)}
.mode-card.active{border-color:var(--teal);background:var(--teal-pale);box-shadow:inset 0 0 0 1px var(--teal)}
.mode-icon{width:38px;height:38px;border-radius:12px;background:var(--teal-soft);display:grid;place-items:center;color:var(--teal)}
.mode-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mode-card h3{margin:15px 0 0;font-size:16px}
.mode-card p{margin:7px 0 0;color:var(--muted);font-size:11.5px;line-height:1.6}
.filter-panel{margin-top:18px;padding:22px;border-radius:22px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.filter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.field label{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}
.select,.input{width:100%;height:42px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);padding:0 12px;outline:none;font-size:12.5px}
.select:focus,.input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(47,123,112,.08)}
.switch-row{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.switch-label{font-size:12px;color:var(--ink-soft)}
.switch-label small{display:block;color:var(--muted);font-size:10.5px;margin-top:4px}
.switch{position:relative;display:inline-block;width:44px;height:25px;flex:0 0 auto}
.switch input{opacity:0;width:0;height:0}
.switch span{position:absolute;inset:0;background:#ded6ca;border-radius:99px;transition:.2s}
.switch span:after{content:"";position:absolute;width:19px;height:19px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.switch input:checked + span{background:var(--teal)}
.switch input:checked + span:after{transform:translateX(19px)}
.filter-summary{margin-top:20px;padding:16px 17px;border-radius:16px;background:var(--surface-2);display:flex;justify-content:space-between;align-items:center;gap:16px}
.filter-summary strong{font:700 22px/1 Georgia,serif}
.filter-summary span{font-size:11px;color:var(--muted)}
.setup-aside{display:flex;flex-direction:column;gap:14px}
.side-card{padding:20px;border-radius:20px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.side-card h3{margin:0;font-size:14px}
.side-card p{margin:8px 0 0;color:var(--muted);font-size:11.5px;line-height:1.7}
.side-steps{display:grid;gap:12px;margin-top:16px}
.side-step{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:flex-start}
.side-step b{width:28px;height:28px;border-radius:9px;background:var(--teal-soft);color:var(--teal);display:grid;place-items:center;font:700 12px Georgia,serif}
.side-step span{font-size:11.5px;line-height:1.6;color:var(--ink-soft)}
.session-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:18px;align-items:start}
.session-main{min-width:0}
.session-topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.session-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:11.5px}
.session-context .pill{background:var(--surface);border:1px solid var(--line);padding:6px 10px;border-radius:999px}
.session-progress{display:flex;align-items:center;gap:10px;min-width:160px}
.session-progress span{font:700 12px Georgia,serif;color:var(--muted);white-space:nowrap}
.session-progress .progress-track{flex:1;margin:0;height:6px}
.question-card{padding:29px 30px 26px;border-radius:26px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.question-meta{display:flex;justify-content:space-between;align-items:center;gap:14px}
.question-tags{display:flex;gap:7px;flex-wrap:wrap}
.tag{padding:6px 10px;border-radius:999px;background:var(--teal-pale);color:var(--teal);font-size:10.5px;font-weight:700}
.tag.coral{background:var(--coral-soft);color:var(--coral)}
.tag.gold{background:var(--gold-soft);color:var(--gold)}
.fav-btn{width:39px;height:39px;border-radius:12px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;color:var(--muted);transition:.2s}
.fav-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fav-btn.active{background:var(--gold-soft);border-color:#ecd4a9;color:var(--gold)}
.fav-btn.active svg{fill:currentColor}
.question-stem{margin:22px 0 0;font-size:clamp(17px,2vw,21px);line-height:1.8;font-weight:700;letter-spacing:.1px}
.option-list{display:grid;gap:10px;margin-top:24px}
.option{
  display:grid;grid-template-columns:30px 1fr;gap:12px;align-items:flex-start;width:100%;padding:15px 16px;
  border-radius:14px;border:1px solid var(--line);background:var(--surface);text-align:left;transition:.16s ease;font-size:13.5px;line-height:1.65;
}
.option:hover{border-color:var(--line-strong);background:var(--surface-2)}
.option-key{width:29px;height:29px;border-radius:9px;border:1px solid var(--line);display:grid;place-items:center;font:700 12px Georgia,serif;color:var(--muted);background:var(--surface-2)}
.option.selected{border-color:var(--teal);background:var(--teal-pale);box-shadow:inset 0 0 0 1px var(--teal)}
.option.selected .option-key{background:var(--teal);border-color:var(--teal);color:#fff}
.option.correct{border-color:var(--teal);background:var(--teal-pale)}
.option.correct .option-key{background:var(--teal);border-color:var(--teal);color:#fff}
.option.wrong{border-color:#e9b4ab;background:#fff3f0}
.option.wrong .option-key{background:var(--coral);border-color:var(--coral);color:#fff}
.option.dim{opacity:.62}
.recall-box{margin-top:22px;padding:22px;border-radius:17px;background:var(--surface-2);border:1px dashed var(--line-strong);color:var(--muted);font-size:12.5px;line-height:1.7}
.recall-box strong{display:block;color:var(--ink);font-size:14px;margin-bottom:6px}
.question-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.action-group{display:flex;gap:9px;flex-wrap:wrap}
.feedback{margin-top:20px;border-radius:18px;padding:19px 20px;border:1px solid var(--line);background:var(--surface-2)}
.feedback.correct{border-color:#c7dfd6;background:var(--teal-pale)}
.feedback.wrong{border-color:#efc5bd;background:#fff6f3}
.feedback-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.feedback-head strong{font-size:15px}
.feedback-head span{font-size:11px;color:var(--muted)}
.answer-line{margin-top:11px;font-size:12.5px;color:var(--ink-soft);line-height:1.7}
.answer-line b{color:var(--teal)}
.feedback.wrong .answer-line b{color:var(--coral)}
.explain{margin-top:10px;padding-top:11px;border-top:1px solid rgba(23,50,60,.09);font-size:11.8px;color:var(--ink-soft);line-height:1.75}
.explain strong{color:var(--ink)}
.session-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:24px}
.session-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:15px}
.session-stat{padding:12px;border-radius:13px;background:var(--surface-2)}
.session-stat strong{display:block;font:700 19px/1 Georgia,serif}
.session-stat span{display:block;margin-top:6px;font-size:10px;color:var(--muted)}
.answer-map{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:14px;max-height:238px;overflow:auto;padding-right:2px}
.map-dot{aspect-ratio:1;border-radius:7px;border:1px solid var(--line);background:var(--surface-2);font-size:9px;color:var(--muted);display:grid;place-items:center}
.map-dot.current{border-color:var(--ink);background:var(--ink);color:#fff}
.map-dot.correct{background:var(--teal-soft);border-color:#c8ded6;color:var(--teal)}
.map-dot.wrong{background:var(--coral-soft);border-color:#f0c4bc;color:var(--danger)}
.legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:9.5px;color:var(--muted)}
.legend span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:4px;background:var(--line)}
.legend .l-correct:before{background:var(--teal)}.legend .l-wrong:before{background:var(--coral)}.legend .l-current:before{background:var(--ink)}
.empty-state{padding:70px 30px;text-align:center;border:1px dashed var(--line-strong);border-radius:24px;background:rgba(255,253,249,.6)}
.empty-icon{width:58px;height:58px;margin:0 auto;border-radius:18px;background:var(--teal-soft);display:grid;place-items:center;color:var(--teal)}
.empty-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.empty-state h3{margin:17px 0 0;font-size:17px}
.empty-state p{margin:8px 0 0;font-size:12px;color:var(--muted);line-height:1.7}
.empty-state .button{margin-top:19px}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px;padding:15px 17px;border-radius:17px;background:var(--surface);border:1px solid var(--line)}
.toolbar-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.toolbar .select{height:36px;min-width:140px;font-size:11px}
.search{position:relative}
.search svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;height:15px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round}
.search .input{padding-left:32px;height:36px;min-width:190px;font-size:11px}
.list{display:grid;gap:10px}
.question-row{display:grid;grid-template-columns:1fr auto;gap:18px;padding:18px 19px;border-radius:17px;background:var(--surface);border:1px solid var(--line);transition:.16s}
.question-row:hover{border-color:var(--line-strong);box-shadow:var(--shadow-soft)}
.row-main{min-width:0}
.row-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:9px}
.row-stem{font-size:13px;line-height:1.7;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.row-meta{margin-top:9px;font-size:10.5px;color:var(--muted);display:flex;gap:12px;flex-wrap:wrap}
.row-actions{display:flex;align-items:center;gap:6px;align-self:center}
.icon-btn{width:36px;height:36px;border-radius:11px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;color:var(--ink-soft)}
.icon-btn:hover{background:var(--surface-2)}
.icon-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-btn.active{background:var(--gold-soft);border-color:#ecd4a9;color:var(--gold)}
.icon-btn.active svg{fill:currentColor}
.stats-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr);gap:18px}
.stats-main,.radar-card{padding:23px;border-radius:24px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.stats-main h2,.radar-card h2{margin:0;font-size:19px}
.stats-main p,.radar-card p{margin:7px 0 0;font-size:11.5px;color:var(--muted);line-height:1.6}
.chapter-stat-list{display:grid;gap:12px;margin-top:18px}
.chapter-stat{display:grid;grid-template-columns:35px minmax(0,1fr) 56px;gap:12px;align-items:center}
.chapter-stat .idx{font:700 12px Georgia,serif;color:var(--muted)}
.chapter-stat .name{font-size:11.5px;margin-bottom:6px}
.chapter-stat .bar{height:5px;border-radius:99px;background:#ece5db;overflow:hidden}
.chapter-stat .bar span{display:block;height:100%;border-radius:99px;background:var(--teal)}
.chapter-stat .acc{font:700 12px Georgia,serif;text-align:right;color:var(--ink)}
.chapter-stat .acc.muted{color:var(--muted)}
.radar-card .radar-wrap{height:390px}
.radar-toggle{display:flex;gap:4px;padding:4px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line)}
.radar-toggle button{border:0;background:transparent;padding:7px 10px;border-radius:7px;color:var(--muted);font-size:10.5px}
.radar-toggle button.active{background:var(--surface);color:var(--ink);box-shadow:0 2px 6px rgba(23,50,60,.08)}
.stats-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.data-note{margin-top:20px;padding:13px 15px;border-radius:14px;background:var(--surface-2);color:var(--muted);font-size:10.5px;line-height:1.7}
.legend-note{display:flex;gap:16px;justify-content:center;margin-top:0;font-size:10px;color:var(--muted)}
.legend-note span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--teal);margin-right:5px}
.legend-note .empty:before{background:#ded6ca}
.result-card{padding:42px 36px;border-radius:28px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);text-align:center}
.result-mark{width:68px;height:68px;border-radius:22px;background:var(--teal-soft);color:var(--teal);display:grid;place-items:center;margin:0 auto}
.result-mark svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.result-card h2{margin:18px 0 0;font-size:26px}
.result-card p{margin:10px 0 0;color:var(--muted);font-size:12.5px}
.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:540px;margin:25px auto 0}
.result-stat{padding:15px;border-radius:14px;background:var(--surface-2)}
.result-stat strong{display:block;font:700 24px Georgia,serif}
.result-stat span{display:block;margin-top:6px;font-size:10.5px;color:var(--muted)}
.result-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:25px}
.loading-card{padding:80px;text-align:center;color:var(--muted)}
.loading-orb{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--teal);margin:0 auto;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.toast{
  position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:var(--ink);color:#fff;
  padding:11px 17px;border-radius:999px;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:.24s;box-shadow:0 12px 30px rgba(23,50,60,.2);
}
.toast.show{opacity:1;transform:translate(-50%,0)}
.fade-in{animation:fade .28s ease both}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:1180px){
  .chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .session-layout{grid-template-columns:minmax(0,1fr) 250px}
  .session-side{position:static}
}
@media (max-width:900px){
  :root{--sidebar:0px}
  .sidebar{display:none}
  .mobile-topbar{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:15;padding:13px 18px;background:rgba(245,241,232,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
  .brand.compact .brand-mark{width:36px;height:36px;border-radius:12px;font-size:22px}
  .brand.compact .brand-text strong{font-size:14.5px}.brand.compact .brand-text small{font-size:9px;margin-top:3px}
  .icon-btn{background:var(--surface)}
  .main{margin-left:0;padding:24px 18px 96px;max-width:none}
  .mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:30;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:rgba(255,253,249,.96);border-top:1px solid var(--line);backdrop-filter:blur(14px)}
  .mobile-nav .nav-item{padding:7px 4px;flex-direction:column;gap:4px;justify-content:center;font-size:9px;border-radius:10px;text-align:center}
  .mobile-nav .nav-item svg{width:18px;height:18px}.mobile-nav .nav-item.active{background:var(--teal-pale);color:var(--teal);box-shadow:none}
  .nav-badge{position:absolute;top:0;right:13%;min-width:16px;height:16px;padding:0 4px;font-size:8px}
  .page-head{margin-bottom:22px}.page-title{font-size:30px}.head-side .date-pill{display:none}
  .hero{padding:27px 23px;min-height:0}.hero h1{font-size:39px}.hero p{font-size:12.5px}.hero-side{position:relative;right:auto;bottom:auto;margin-top:20px;justify-content:flex-end}.hero-ring{width:102px;height:102px}.hero-ring:before{inset:10px}.hero-ring strong{font-size:22px}.hero-ring-label{padding-bottom:8px}
  .stat-grid{grid-template-columns:1fr 1fr}.stat-card{padding:16px}.stat-value{font-size:25px}
  .dashboard-grid,.setup-grid,.stats-layout{grid-template-columns:1fr}
  .chapter-grid{grid-template-columns:1fr 1fr}.chapter-name{min-height:0}
  .setup-aside{display:grid;grid-template-columns:1fr 1fr}.setup-aside .side-card:first-child{grid-column:1/-1}
  .session-layout{grid-template-columns:1fr}.session-side{display:none}
  .session-topbar{align-items:flex-start;flex-direction:column;gap:9px}.session-progress{width:100%}
  .question-card{padding:22px 18px 20px;border-radius:22px}.question-stem{font-size:17px;margin-top:18px}.option{padding:13px 12px;font-size:12.5px;grid-template-columns:27px 1fr;gap:10px}.option-key{width:27px;height:27px}
  .question-actions{align-items:stretch;flex-direction:column}.action-group{justify-content:flex-end}
  .mode-card{padding:17px}.mode-card h3{font-size:14px}.mode-card p{font-size:10.5px}
  .filter-grid{grid-template-columns:1fr}.filter-panel{padding:18px}
  .toolbar{align-items:stretch;flex-direction:column}.toolbar-left,.toolbar-right{width:100%}.toolbar .select,.search,.search .input{width:100%}.question-row{grid-template-columns:1fr}.row-actions{justify-content:flex-end;border-top:1px solid var(--line);padding-top:10px}
  .stats-main,.radar-card{padding:18px}.radar-card .radar-wrap{height:340px}
  .result-stats{grid-template-columns:1fr 1fr 1fr}
  .head-side .button{display:none}
  .list .question-row{padding:16px}
}
@media (max-width:520px){
  .main{padding-left:14px;padding-right:14px}
  .page-title{font-size:27px;letter-spacing:-.6px}.page-sub{font-size:12px}
  .hero h1{font-size:32px}.hero{padding:23px 18px}.hero-actions .button{flex:1}.hero-side{justify-content:flex-start}
  .hero-ring{margin-left:auto}.hero-ring-label{text-align:left}
  .stat-grid{gap:9px}.stat-card{padding:14px;border-radius:16px}.stat-label{font-size:10px}.stat-value{font-size:22px}.stat-note{font-size:9.5px}
  .chapter-grid{grid-template-columns:1fr}.chapter-card{padding:14px 15px}
  .setup-aside{grid-template-columns:1fr}
  .mode-select{gap:8px}.mode-icon{width:33px;height:33px}.mode-card{padding:14px 12px}.mode-card h3{margin-top:11px;font-size:13.5px}.mode-card p{font-size:10px}
  .filter-summary{padding:13px}.filter-summary strong{font-size:19px}.filter-summary span{font-size:10px}
  .question-card{padding:19px 15px}.question-tags .tag{font-size:9.5px;padding:5px 8px}.question-stem{font-size:16px;line-height:1.75}
  .question-actions .button{width:100%}.question-actions .action-group{width:100%;justify-content:space-between}.action-group .button{flex:1}
  .result-card{padding:30px 20px}.result-stats{gap:6px}.result-stat{padding:12px 7px}.result-stat strong{font-size:19px}
  .chapter-stat{grid-template-columns:25px minmax(0,1fr) 45px;gap:8px}
  .stats-layout .stats-main{padding:16px}.radar-card{padding:15px}.radar-card .radar-wrap{height:310px}
}

/* account edition */
[hidden]{display:none !important}
.auth-gate{min-height:100vh;display:grid;grid-template-columns:minmax(420px,520px) minmax(420px,1fr);gap:0;background:var(--bg)}
.auth-card{background:var(--surface);padding:46px 58px;display:flex;flex-direction:column;justify-content:center;border-right:1px solid var(--line);box-shadow:18px 0 60px rgba(23,50,60,.06);z-index:2}
.auth-brand{display:flex;align-items:center;gap:13px;margin-bottom:58px}.auth-brand>div{display:flex;flex-direction:column}.auth-brand strong{font-size:18px}.auth-brand small{font-size:10.5px;color:var(--muted);margin-top:4px;letter-spacing:1px}
.auth-copy h1{margin:12px 0 0;font-size:38px;letter-spacing:-1.5px}.auth-copy p{margin:16px 0 0;color:var(--muted);line-height:1.75;font-size:13px}
.auth-tabs{display:flex;gap:5px;padding:5px;border-radius:12px;background:var(--surface-2);margin-top:30px;border:1px solid var(--line)}
.auth-tabs button{border:0;background:transparent;border-radius:8px;padding:9px 18px;color:var(--muted);font-size:12px}.auth-tabs button.active{background:var(--surface);color:var(--ink);box-shadow:0 2px 8px rgba(23,50,60,.07)}
#authForm{display:grid;gap:13px;margin-top:19px}#authForm label{font-size:11px;color:var(--ink-soft)}#authForm input{display:block;width:100%;margin-top:7px;height:43px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);padding:0 13px;outline:none;font-size:13px}#authForm input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(47,123,112,.08)}
.auth-error{min-height:18px;color:var(--danger);font-size:11px;line-height:1.5}.auth-submit{width:100%;height:44px;margin-top:3px}
.auth-note{display:flex;justify-content:space-between;gap:8px;margin-top:21px;color:var(--muted);font-size:9.5px;flex-wrap:wrap}.auth-note span{padding:7px 9px;border-radius:8px;background:var(--surface-2)}
.auth-visual{position:relative;overflow:hidden;background:var(--ink);color:#fff;display:flex;align-items:center;padding:8vw}.auth-visual:before{content:"";position:absolute;width:560px;height:560px;border-radius:50%;background:#23505b;right:-160px;top:-180px}.auth-visual:after{content:"";position:absolute;width:360px;height:360px;border-radius:72px;background:#b9413a;left:-150px;bottom:-160px;transform:rotate(28deg);opacity:.6}.auth-visual-inner{position:relative;z-index:1;max-width:640px}.auth-visual .eyebrow{color:#95d0c1}.auth-visual h2{margin:18px 0 0;font-size:clamp(36px,4.5vw,68px);line-height:1.16;letter-spacing:-2px}.auth-visual p{margin:18px 0 0;color:#b7cdca;font-size:13px}.auth-stat-row{display:flex;gap:14px;margin-top:36px}.auth-stat-row div{padding:16px 20px;border-radius:15px;background:rgba(255,255,255,.08);min-width:100px}.auth-stat-row b{display:block;font:700 30px/1 Georgia,serif}.auth-stat-row span{display:block;margin-top:7px;font-size:10px;color:#b7cdca}.auth-quote{margin-top:36px;padding-top:18px;border-top:1px solid rgba(255,255,255,.15);color:#d5e5e0;font-size:12px}
.account-card{margin-top:18px;padding:15px;border-radius:16px;background:var(--surface-2);border:1px solid var(--line)}.account-top{display:flex;align-items:center;gap:10px}.account-avatar{width:32px;height:32px;border-radius:10px;background:var(--teal-soft);color:var(--teal);display:grid;place-items:center;font-weight:800}.account-name{min-width:0;flex:1}.account-name strong{display:block;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-name span{display:block;margin-top:3px;font-size:9.5px;color:var(--muted)}.account-open{border:0;background:transparent;color:var(--teal);font-size:10px;padding:5px}.upgrade-pill{display:block;margin-top:11px;padding:9px 10px;border-radius:10px;background:var(--coral-soft);color:#a9433b;font-size:10px;text-align:center;border:0;width:100%}
.modal-backdrop{position:fixed;inset:0;z-index:80;background:rgba(16,36,43,.48);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:20px}.modal{width:min(600px,100%);max-height:90vh;overflow:auto;background:var(--surface);border-radius:24px;box-shadow:0 35px 100px rgba(0,0,0,.28);padding:26px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start}.modal-head h2{margin:8px 0 0;font-size:25px}.account-status{margin-top:18px;padding:17px;border-radius:16px;background:var(--teal-pale);border:1px solid #d7e8e1}.account-status-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.account-status strong{font-size:14px}.account-status p{margin:7px 0 0;font-size:11px;color:var(--muted);line-height:1.65}.status-tag{padding:6px 9px;border-radius:999px;background:var(--teal);color:#fff;font-size:9.5px}.status-tag.free{background:var(--coral-soft);color:var(--coral)}.redeem-box{margin-top:14px;padding:16px;border-radius:16px;background:var(--surface-2);border:1px solid var(--line)}.redeem-box h3{margin:0;font-size:13px}.redeem-box p{margin:6px 0 12px;color:var(--muted);font-size:10.5px;line-height:1.6}.redeem-row{display:flex;gap:8px}.redeem-row .input{flex:1;height:38px;background:var(--surface);text-transform:uppercase}.device-list{display:grid;gap:8px;margin-top:12px}.device-row{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}.device-main{min-width:0;flex:1}.device-main strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.device-main span{display:block;margin-top:4px;color:var(--muted);font-size:9.5px}.device-current{color:var(--teal);font-size:9px;font-weight:700}.account-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px;padding-top:15px;border-top:1px solid var(--line)}.sync-note{margin-top:12px;font-size:9.5px;color:var(--muted);line-height:1.6}
.locked-banner{margin:0 0 18px;padding:14px 17px;border-radius:15px;background:linear-gradient(100deg,var(--coral-soft),#fff5f2);border:1px solid #f0c8c0;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:11.5px;color:#7e423b}.locked-banner strong{display:block;font-size:13px;color:#7e423b;margin-bottom:3px}.next-nav{display:flex;gap:8px;flex-wrap:wrap}.map-dot{border:1px solid var(--line);cursor:pointer}
@media(max-width:900px){.auth-gate{grid-template-columns:1fr}.auth-card{padding:34px 24px;min-height:100vh;justify-content:flex-start;border:0}.auth-brand{margin-bottom:38px}.auth-visual{display:none}.auth-copy h1{font-size:31px}.account-card{margin-top:10px}.modal{padding:20px;border-radius:20px}.locked-banner{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.auth-card{padding:24px 20px}.auth-copy h1{font-size:27px}.auth-brand{margin-bottom:28px}.redeem-row{flex-direction:column}.redeem-row .button{width:100%}}
.count-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.count-label strong{display:block;font-size:12px}.count-label span{display:block;margin-top:4px;color:var(--muted);font-size:10.5px}.count-choices{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.count-choice{border:1px solid var(--line);background:var(--surface-2);border-radius:9px;padding:7px 10px;font-size:11px;color:var(--muted)}.count-choice.active{background:var(--teal);border-color:var(--teal);color:#fff}.custom-count{width:75px;height:35px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);padding:0 9px;outline:none;font-size:11px}@media(max-width:900px){.count-row{align-items:flex-start;flex-direction:column}.count-choices{justify-content:flex-start}}
