:root {
  --bg:#f6f7f3; --paper:#fff; --green:#244d3b; --green-dark:#173e2e;
  --lime:#d7e78c; --ink:#27362e; --muted:#5e705b; --line:#e2e7dc;
  --radius:13px; --sidebar:224px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink); background:var(--bg); font-synthesis:none; font-size:14px;
  line-height:1.7; -webkit-font-smoothing:antialiased;
}
*{box-sizing:border-box}
body{margin:0}
[hidden]{display:none}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;color:inherit;border:0;background:none}
button,a{touch-action:manipulation}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
button:disabled{opacity:.55;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8b9e59;outline-offset:3px}
::selection{background:#dbe8c3}
.icon{display:inline-block;vertical-align:middle;flex:none}
button .icon,a .icon{pointer-events:none}
.screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);z-index:40;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:30px 18px 18px;overflow-y:auto;overscroll-behavior:contain}
.sidebar>.brand,.sidebar>nav,.sidebar-bottom{flex-shrink:0}
.brand{display:flex;align-items:center;gap:11px;padding:0 8px 28px}
.brand-icon{width:40px;height:42px;border-radius:12px 4px 12px 4px;background:var(--green);color:var(--lime);display:grid;place-items:center;flex:none}
.brand-icon .icon{width:25px;height:25px}
.brand-copy{min-width:0}
.brand-copy strong{display:flex;align-items:center;gap:7px;font-size:21px;font-weight:650;letter-spacing:1px;line-height:1.2;white-space:nowrap}
.brand-copy strong span{font-size:12px;font-weight:600;letter-spacing:.8px;margin-top:4px}
.brand-copy small{display:block;font-size:12px;letter-spacing:.2px;color:var(--muted);margin-top:7px}
.nav-section{padding:16px 12px 9px;display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.5px;color:var(--muted)}
.nav-item{display:flex;align-items:center;gap:10px;min-height:48px;padding:11px 12px;margin:3px 0;border-radius:8px;font-size:14px;font-weight:500;color:#52664f;transition:background .16s,color .16s}
.nav-item:hover{background:#f1f4ec;color:var(--green)}
.nav-item.active{background:var(--green);color:#fff;box-shadow:0 4px 10px #244d3b0d}
.nav-icon .icon{width:18px;height:18px}
.nav-text{flex:1;white-space:nowrap}
.nav-badge{font-size:12px;padding:1px 5px;border-radius:4px;background:#eef2e9;color:#53644c;line-height:20px}
.active .nav-badge{background:#ffffff20;color:#f1f5e9}
.nav-new,.mini-ai{font-size:12px;color:#53683b;border:1px solid #cbd8ac;padding:0 3px;border-radius:3px;line-height:18px;letter-spacing:0}
.sidebar-grow{flex:1;min-height:12px}
.sidebar-note{padding:18px 12px 24px;color:#566d4d}
.sidebar-note>.icon{width:23px;height:23px;margin-bottom:10px;stroke-width:1.1}
.sidebar-note p{font-size:13px;line-height:1.9;color:#586c50}
.sidebar-note>span{display:block;font-size:12px;letter-spacing:1.3px;color:#5e705b;margin-top:12px}
.sidebar-bottom{padding-top:15px;border-top:1px solid var(--line)}
.sidebar-profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:13px;padding:20px 3px 0}
.user-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e9eddf;color:var(--green);font-size:14px;font-family:"Songti SC",SimSun,serif;flex:none}
.sidebar-profile b{font-size:13px;font-weight:550}
.sidebar-profile small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.sidebar-profile>.icon{width:12px;height:12px;margin-left:auto;color:#657657}

.main{margin-left:var(--sidebar);min-height:100vh;min-width:0}
.topbar{min-height:78px;border-bottom:1px solid var(--line);background:#ffffffb3;display:flex;justify-content:space-between;align-items:center;padding:16px 42px;gap:15px}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:20px;min-width:0}
.breadcrumb{font-size:12px;color:var(--muted)}
.crumb-root{font-style:normal}.crumb-root>span{padding:0 10px;color:#687660}
.breadcrumb b{font-weight:500;color:#52634b}
.local-badge{font-size:12px;display:flex;align-items:center;gap:7px;color:var(--muted);letter-spacing:.2px}
.status-dot{width:6px;height:6px;background:#698b45;border-radius:50%;display:inline-block}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:7px;color:#53684b;flex:none;transition:background .15s,color .15s}
.icon-btn:hover{background:#edf1e7;color:var(--green)}
.icon-btn .icon{width:18px;height:18px}
.mobile-menu{display:none}
.page-content{max-width:1500px;margin:auto;padding:35px 42px 20px}
.storage-alert{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 24px 0;padding:16px 20px;border:1px solid #c39d65;border-radius:9px;background:#fff4db;color:#6b4819;font-size:14px}
.storage-alert p{flex:1 1 220px;line-height:1.9;overflow-wrap:anywhere}
.storage-alert button{min-height:44px;padding:9px 14px;border:1px solid #9c7134;border-radius:7px;background:#fffaf0;color:#694516;font-size:14px;font-weight:600}
.storage-alert[hidden]{display:none}
.welcome-row{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:29px}
.welcome-row>div:first-child{min-width:0}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:1.4px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.page-title{font-family:"Songti SC","STSong","Noto Serif CJK SC",SimSun,serif;font-size:32px;line-height:1.7;letter-spacing:1px;font-weight:500;margin-top:5px;overflow-wrap:anywhere}
.subtitle{font-size:14px;line-height:1.9;color:var(--muted);margin-top:6px}
.header-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
.header-actions:empty{display:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border:1px solid transparent;border-radius:7px;font-size:14px;font-weight:500;line-height:1.5;white-space:normal;transition:transform .15s,background .15s,border-color .15s}
.btn .icon{width:16px;height:16px}
.btn.primary{background:var(--green);border-color:var(--green);color:#fff}
.btn.primary:hover{background:#193d2c;border-color:#193d2c;transform:translateY(-1px)}
.btn.secondary{background:#fff;border-color:#d4ddca;color:#465c3d}
.btn.secondary:hover{background:#f5f7ef;border-color:#a9bd96}
.btn.subtle{color:#536a47}
.btn.subtle:hover{background:#eaf0e2;color:var(--green)}
.btn.small{min-height:40px;font-size:13px;padding:8px 11px;gap:6px}
.date-button{font-size:13px;gap:6px;background:#eeefe9;border-color:#dce2d2;color:#55664b}
.date-button b{font-size:17px;color:#395434;font-weight:600;padding:0 2px}

.hero{min-height:330px;position:relative;display:flex;align-items:center;overflow:hidden;border-radius:12px;background:linear-gradient(115deg,#214a37 0%,#244d3b 52%,#315c40 100%);color:#fff;margin-bottom:23px}
.hero:after{content:"";position:absolute;width:420px;height:420px;right:-200px;top:-210px;border:1px solid #ffffff09;border-radius:50%}
.hero-content{position:relative;z-index:2;padding:30px 36px 25px;width:65%}
.hero-label{display:flex;align-items:center;gap:7px;font-size:12px;letter-spacing:1px;color:#deead5}
.hero-label i{width:4px;height:4px;border-radius:50%;background:#ccdf9c}
.hero-title{font-family:"Songti SC","STSong",SimSun,serif;font-size:38px;font-weight:400;line-height:1.65;letter-spacing:2px;margin:12px 0 10px}
.hero-desc{font-size:14px;line-height:1.9;color:#c5d9c4;letter-spacing:.3px}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:22px}
.hero .btn.primary{background:var(--lime);border-color:var(--lime);color:#27482b;font-size:14px;min-height:44px;padding:10px 17px}
.hero .btn.primary:hover{background:#e6f0b2;border-color:#e6f0b2}
.hero-text-btn{display:flex;align-items:center;gap:4px;font-size:14px;color:#e7efd9;padding:10px 0;min-height:44px}
.hero-text-btn .icon{width:14px;height:14px}
.hero-source{display:block;font-size:12px;color:#c5d9c4;margin-top:20px;letter-spacing:.2px;line-height:1.9}
.hero-art{position:absolute;width:335px;right:3%;top:0;height:100%;pointer-events:none}
.orbit{position:absolute;width:260px;height:260px;right:28px;top:35px;border:1px solid #b5cf9417;border-radius:50%;transform:rotate(-26deg) scaleY(.8)}
.orbit:before,.orbit:after{content:"";position:absolute;inset:20px;border:1px solid #b5cf941b;border-radius:50%}
.orbit:after{inset:45px}
.art-dot{position:absolute;width:5px;height:5px;border-radius:50%;background:#b3c983;z-index:1}
.dot-one{right:78px;top:60px}
.dot-two{left:25px;bottom:86px;width:3px;height:3px;opacity:.5}
.abstract-book{position:absolute;width:167px;height:138px;right:76px;top:80px;transform:rotate(-12deg) skewY(7deg);filter:drop-shadow(20px 21px 14px #112f2b5c)}
.abstract-book:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,#d8e8b1 0%,#b7cc8f 45%,#d7e5bc 47%,#e6edcf 53%,#f0f3e4 100%);clip-path:polygon(0 3%,48% 15%,100% 0,100% 88%,51% 100%,0 85%);border-radius:3px}
.abstract-book:after{content:"";position:absolute;left:51%;top:17px;width:1px;height:118px;background:#718a5240;transform:rotate(-2deg)}
.abstract-book>span{position:absolute;left:17px;top:33px;width:48px;height:1px;background:#67804e55;box-shadow:0 9px #67804e40,0 18px #67804e40,0 27px #67804e40,0 48px #67804e40,0 57px #67804e40;transform:skewY(9deg);z-index:1}
.abstract-book>span:after{content:"";position:absolute;left:85px;top:-10px;width:47px;height:1px;background:#9fae8055;box-shadow:0 9px #9fae8055,0 18px #9fae8055,0 27px #9fae8055,0 48px #9fae8055,0 57px #9fae8055;transform:skewY(-25deg)}
.art-label{position:absolute;bottom:28px;left:0;width:100%;text-align:center}
.art-label span{display:block;font-size:12px;letter-spacing:2px;color:#cfdfbd}
.art-label b{display:block;font-family:"Songti SC",SimSun,serif;font-weight:400;font-size:15px;letter-spacing:4px;color:#dce8ca;margin-top:4px}

.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:31px}
.stat-card{padding:20px;background:#fff;border:1px solid var(--line);border-radius:10px;min-width:0}
.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.stat-label{font-size:13px;color:var(--muted)}
.stat-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;flex:none}
.stat-icon .icon{width:16px;height:16px}
.green{background:#edf3e8;color:#4d6c38}.amber{background:#f9f1e1;color:#785d20}.blue{background:#eaf0f3;color:#486a78}.purple{background:#f1edf5;color:#715a85}
.stat-value{font-size:34px;font-weight:550;font-variant-numeric:tabular-nums;letter-spacing:-1px;line-height:1.5;margin-top:8px;color:#344c36}
.stat-value small{font-size:12px;letter-spacing:0;color:var(--muted);margin-left:6px;font-weight:400}
.stat-note{font-size:12px;color:var(--muted);line-height:1.85;margin-top:4px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:24px}
.dashboard-main,.dashboard-aside{min-width:0}
.dashboard-main>section+section{margin-top:25px}
.section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:15px}
.section-title{font-size:16px;font-weight:600;letter-spacing:.3px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.section-title>.icon{width:18px;height:18px;color:#587449}
.section-link{font-size:13px;display:inline-flex;align-items:center;gap:7px;color:#4e683f;min-height:36px}
.section-link .icon{width:14px;height:14px}
.section-link:hover{color:var(--green)}
.practice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.practice-card{min-width:0;display:block;text-align:left;padding:22px 20px 18px;border:1px solid var(--line);border-radius:10px;background:#fff;transition:transform .17s,border-color .17s,box-shadow .17s}
.practice-card:hover{transform:translateY(-3px);border-color:#cad7bb;box-shadow:0 7px 18px #27472b08}
.card-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;margin-bottom:17px}
.card-icon .icon{width:19px;height:19px}
.card-title{font-size:16px;font-weight:600;letter-spacing:.2px;margin-bottom:7px}
.practice-card>p{font-size:13px;color:var(--muted);line-height:1.9}
.card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);border-top:1px solid #edf0e7;padding-top:13px;margin-top:18px}
.card-footer .icon{width:14px;height:14px;color:#536f43}
.panel{border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden;min-width:0}
.panel-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:21px 23px;border-bottom:1px solid #edf0e7}
.panel-header .eyebrow{margin-bottom:5px}
.panel-body{padding:22px 23px;min-width:0}
.chip{display:inline-flex;align-items:center;font-size:12px;padding:3px 7px;border-radius:4px;line-height:1.6;font-weight:400;letter-spacing:0;max-width:100%;overflow-wrap:anywhere}
.chip.muted{background:#f1f3eb;color:#53644b}
.topic-panel .panel-body{padding-top:4px;padding-bottom:14px}
.topic-list{display:flex;flex-direction:column}
.topic-row{display:flex;align-items:center;gap:13px;text-align:left;border-bottom:1px solid #edf0e7;padding:16px 0;width:100%}
.topic-row:last-child{border-bottom:0}
.topic-row:hover .topic-name b{color:#355b2c}
.topic-index{font-size:13px;color:#5a704b;font-variant-numeric:tabular-nums;flex:none}
.topic-name{flex:1;min-width:0}
.topic-name b{font-size:14px;font-weight:500;color:#49623a;overflow-wrap:anywhere}
.topic-years{display:block;font-size:12px;color:var(--muted);margin-top:3px;line-height:1.9;overflow-wrap:anywhere}
.topic-bar{width:76px;height:4px;border-radius:3px;background:#edf1e5;overflow:hidden;flex:none}
.topic-bar>i{height:100%;display:block;background:#8ba660;border-radius:3px}
.topic-count{font-size:15px;color:#4c663c;min-width:42px;text-align:right;white-space:nowrap}
.topic-count small{font-size:12px;color:var(--muted)}
.topic-row>.icon{width:13px;height:13px;color:#627a4f}
.help-text,.topic-note{font-size:12px;line-height:1.9;color:var(--muted);margin-top:10px;overflow-wrap:anywhere}
.continue-subject{font-size:13px;color:var(--muted)}
.continue-subject>span{padding:0 6px}
.continue-panel h3{font-size:16px;font-weight:500;line-height:1.9;margin:9px 0 16px;overflow-wrap:anywhere}
.plan-date{font-size:12px;color:var(--muted)}
.plan-progress{display:flex;align-items:baseline;justify-content:space-between;font-size:13px;color:#526947;margin-bottom:11px}
.plan-progress strong{font-size:26px;font-weight:500;color:#425e37}
.plan-progress strong>span{font-size:13px;font-weight:400;color:var(--muted);margin-left:4px}
.progress-track{height:5px;border-radius:4px;background:#edf1e4;overflow:hidden}
.progress-track>i{display:block;height:100%;background:#8da866;border-radius:4px;min-width:0}
.plan-item{display:flex;gap:11px;align-items:center;margin-top:23px}
.plan-check{display:grid;place-items:center;flex:none;width:18px;height:18px;border:1px solid #bdcbaa;border-radius:4px}
.plan-check.done{background:#607e40;border-color:#607e40;color:#fff}
.plan-check .icon{width:13px;height:13px}
.plan-text b{font-size:14px;font-weight:500;color:#526a42}
.plan-text small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.study-plan .btn{margin-top:18px;padding-left:0}
.ai-card{border:1px solid #dce4ca;background:linear-gradient(135deg,#eff3e7,#f4f6ee);border-radius:11px;padding:26px 23px 22px;margin-top:22px;position:relative;overflow:hidden}
.ai-spark{position:absolute;right:22px;top:25px;color:#54763a}
.ai-spark .icon{width:28px;height:28px;stroke-width:1.2}
.ai-card .eyebrow{font-size:12px;letter-spacing:.8px;color:#53683f;max-width:calc(100% - 30px)}
.ai-card h2{font-family:"Songti SC",SimSun,serif;font-size:28px;line-height:1.65;letter-spacing:1px;font-weight:400;margin-top:14px;color:#456034}
.ai-card>p{font-size:14px;color:#526a46;line-height:1.95;margin-top:12px}
.ai-tools{display:flex;flex-direction:column;margin:19px 0}
.ai-tool{display:flex;align-items:center;gap:9px;text-align:left;font-size:14px;color:#48643b;padding:11px 0;min-height:44px}
.ai-tool>.icon{width:16px;height:16px;stroke-width:1.4}
.ai-tool>span{flex:1}
.ai-tool>.icon:last-child{width:13px;height:13px;color:#5a7449}
.ai-card>.btn{width:100%;font-size:14px;border-color:#cad7b7;background:#f9faf4}
.ai-card>small{font-size:12px;display:block;text-align:center;color:#526a46;margin-top:11px}
.source-note{display:flex;gap:10px;padding:22px 12px;color:#526a46}
.source-note>.icon{width:16px;height:16px;margin-top:3px;stroke-width:1.3}
.source-note b{font-size:13px;font-weight:500;color:#526a46}
.source-note p{font-size:12px;line-height:1.9;color:var(--muted);margin-top:5px}

.archive-summary{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;border:1px solid var(--line);background:#eef1e8;border-radius:9px;padding:17px 20px;margin-bottom:22px;color:#53674a;font-size:13px}
.archive-summary>span{display:inline-flex;align-items:center;gap:8px;max-width:100%;overflow-wrap:anywhere}
.archive-summary .icon{width:16px;height:16px}
.filters{display:flex;gap:10px;margin-bottom:19px;flex-wrap:wrap}
.search-field{display:flex;align-items:center;gap:10px;flex:1 1 260px;min-width:0;min-height:44px;border:1px solid #cad7bd;border-radius:7px;padding:0 13px;background:#fff;color:#526d42}
.search-field .icon{width:18px;height:18px}
.search-field input{width:100%;min-width:0;background:none;border:0;border-radius:0;outline:none;padding:10px 0;font-size:14px;color:#405936}
.search-field:focus-within{border-color:#718e52;box-shadow:0 0 0 3px #b9cd8f30}
.search-field input:focus-visible{outline:none}
.select,input,.notes-input{border:1px solid #cad7bd;border-radius:7px;background:#fff;padding:10px 12px;color:#405936;font-size:14px;max-width:100%;min-height:44px}
.search-field input{border:0;background:none;padding:10px 0}
.select{min-width:126px;padding-right:28px}
.select:focus,input:focus,.notes-input:focus{border-color:#718e52}
input::placeholder,textarea::placeholder{color:#65755b;opacity:1;font-size:14px}
.list-caption{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;color:var(--muted);padding:3px 0 13px}
.list-caption b{color:#4e683e;font-weight:500}
.list-caption>span{margin-left:auto;font-size:12px}
.question-list{display:grid;gap:14px}
.list-more{display:flex;justify-content:center;padding:6px 0 4px}
.question-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 23px;transition:border-color .15s;min-width:0}
.question-card:hover{border-color:#bdcfa9}
.question-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.question-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.question-title{font-size:16px;font-weight:500;line-height:1.95;margin-top:12px;white-space:pre-line;overflow-wrap:anywhere}
.question-title button{text-align:left;padding:0;font-size:inherit;line-height:inherit;white-space:inherit;color:#3d5833;overflow-wrap:anywhere}
.question-title button:hover{color:#244d3b}
.question-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:17px}
.question-actions>div:last-child{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-left:auto}
.question-tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{background:#f1f4e9;color:#4e663e;border-radius:4px;font-size:12px;padding:3px 7px;max-width:100%;overflow-wrap:anywhere}
.tag.amber{background:#fbf3e4;color:#74551e}
.completed-label{font-size:12px;display:inline-flex;align-items:center;gap:4px;color:#4d6b36;white-space:nowrap}
.completed-label .icon{width:14px;height:14px}
.is-saved{color:#486e28}
.is-saved>.icon{fill:#e3ebcf}
.empty-state{text-align:center;padding:55px 20px;background:#fff;border:1px dashed #c6d4b7;border-radius:12px}
.empty-state>.icon{width:35px;height:35px;color:#627f46;stroke-width:1.2;margin-bottom:16px}
.empty-state h3{font-family:"Songti SC",SimSun,serif;font-size:22px;font-weight:400;color:#4f6a3e;letter-spacing:1px;overflow-wrap:anywhere}
.empty-state p{font-size:14px;color:var(--muted);margin:11px 0 23px;line-height:1.9}
.page-tabs{display:flex;flex-wrap:wrap;gap:12px 24px;border-bottom:1px solid #dbe3d0;margin-bottom:24px}
.tab{font-size:14px;color:#566e46;padding:8px 4px 13px;min-height:44px;position:relative}
.tab>span{font-size:12px;border-radius:4px;background:#e9eedf;padding:1px 6px;margin-left:7px}
.tab.active{color:var(--green);font-weight:600}
.tab.active:after{content:"";position:absolute;bottom:-1px;height:2px;left:0;right:0;background:var(--green)}
.feedback-tabs{margin-bottom:18px}
.active-filter{display:inline-flex;align-items:center;gap:7px;font-size:13px;background:#eaf0df;padding:3px 7px 3px 13px;border-radius:6px;margin-bottom:18px;color:#4e683b;max-width:100%;overflow-wrap:anywhere}

.practice-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:20px;gap:10px}
.back-arrow{transform:rotate(180deg)}
.practice-counter{font-size:13px;color:var(--muted)}
.practice-counter>span{padding:0 8px}
.practice-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:23px}
.question-detail h1{font-family:"Songti SC",SimSun,serif;font-size:26px;font-weight:700;line-height:1.95;white-space:pre-line;letter-spacing:.4px;margin:23px 0;color:#3d5830;overflow-wrap:anywhere}
.question-number{font-size:12px;color:var(--muted)}
.question-source{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid #e4eadd;padding-top:20px;margin-top:25px;font-size:12px;color:var(--muted)}
.question-source>span{display:inline-flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}
.question-source .icon{width:15px;height:15px}
.prompt-card{display:flex;align-items:flex-start;gap:12px;padding:18px;background:#f3f6eb;border-radius:8px;margin-top:23px}
.prompt-card>.icon{width:18px;height:18px;color:#5d7b40;margin-top:3px}
.prompt-card b{font-size:14px;font-weight:500;color:#506c3a}
.prompt-card p{font-size:13px;color:#5b6e4d;line-height:1.9;margin-top:5px}
.question-bottom-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:19px}
.question-bottom-actions .btn{padding-left:0;font-size:13px}
.editor-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:21px 23px;border-bottom:1px solid #e5ebdc;gap:10px}
.editor-toolbar h2{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:500}
.editor-toolbar h2 .icon{width:18px;height:18px;color:#5b7741}
.editor-toolbar>span{font-size:12px;color:var(--muted)}
.answer-panel{display:flex;flex-direction:column}
.answer-editor{display:block;width:100%;min-height:365px;resize:vertical;border:0;outline:none;border-radius:0;background:linear-gradient(#fff 30px,#f1f4eb 31px,#fff 32px);background-size:100% 32px;font-size:16px;line-height:32px;padding:22px 24px;color:#405936;flex:1}
.answer-editor:focus-visible{outline:0;box-shadow:inset 0 0 0 2px #8da66c}
.answer-editor::placeholder{line-height:2;font-size:14px;color:#65755b}
.editor-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:17px 20px;border-top:1px solid #e6ecdf;gap:12px}
.editor-footer>span{font-size:12px;color:var(--muted)}
.editor-footer>div{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.review-controls{padding:13px 20px;background:#fafbf7;border-top:1px solid #e5ebdc;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.review-controls>.btn{font-size:13px;padding:5px 0}
.review-controls>span{font-size:12px;color:var(--muted)}
.ai-result{margin-top:25px}
.ai-placeholder{display:flex;align-items:center;justify-content:center;gap:18px;min-height:140px;color:#5d724d}
.ai-placeholder>.icon{width:28px;height:28px;stroke-width:1.2;color:#59783c}
.ai-placeholder p{font-size:14px;line-height:1.9}
.ai-placeholder small{font-size:12px;color:var(--muted)}
.result-content{font-size:15px;line-height:2;color:#43583c;overflow-wrap:anywhere}
.result-content h3{font-size:18px;color:#3e5c2e;line-height:1.9;margin:18px 0 8px}
.result-content h3:first-child{margin-top:0}
.result-content p{margin:5px 0}
.result-content strong{font-weight:600;color:#3e5c2e}
.result-bullet{padding-left:10px}
.result-space{height:10px}
.practice-pagination{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:15px;margin-top:26px}
.practice-pagination>span{font-size:12px;color:var(--muted);text-align:center}
.source-warning{display:flex;align-items:flex-start;gap:8px;font-size:13px;background:#fbf5e8;color:#75551f;border-radius:6px;padding:12px;margin-top:16px;overflow-wrap:anywhere}
.source-warning .icon{width:16px;height:16px;flex:none;margin-top:3px}
.source-image{width:100%;height:auto;display:block;border-radius:6px;border:1px solid #e4eadd;margin-top:18px}
.ai-loading{display:flex;align-items:center;gap:12px;font-size:14px;color:#536c40;padding:30px 10px}
.loading-dot{width:8px;height:8px;border-radius:50%;background:#63823f;animation:pulse 1s infinite ease-in-out;flex:none}
@keyframes pulse{50%{opacity:.3;transform:scale(.7)}}

.insight-banner{display:flex;align-items:flex-start;gap:15px;padding:21px 23px;background:#edf2e3;border:1px solid #dbe4c9;border-radius:10px;margin-bottom:25px}
.insight-banner>.icon{width:25px;height:25px;color:#55763b;stroke-width:1.3;margin-top:3px}
.insight-banner b{font-size:15px;font-weight:500;color:#4b6738}
.insight-banner p{font-size:13px;color:#5b704b;margin-top:5px;line-height:1.9}
.knowledge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.knowledge-card{border:1px solid var(--line);border-radius:11px;background:#fff;padding:23px;min-width:0}
.card-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.topic-rank{font-size:22px;color:#5b7547;font-weight:400;line-height:1}
.knowledge-card h2{font-size:20px;line-height:1.7;font-weight:500;margin:20px 0 13px;color:#496636;overflow-wrap:anywhere}
.knowledge-count{font-size:13px;color:#586e48;display:flex;align-items:baseline;flex-wrap:wrap;gap:5px}
.knowledge-count strong{font-size:26px;color:#4b6b35;font-weight:500}
.knowledge-count span{font-size:12px;margin-left:auto;color:var(--muted)}
.knowledge-card .progress-track{margin-top:14px;height:4px}
.topic-year-label{min-height:42px;font-size:12px;color:var(--muted);line-height:1.9;margin-top:12px;overflow-wrap:anywhere}
.knowledge-card>.btn{padding-left:0;margin-top:7px}
.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.template-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:26px 24px;display:flex;flex-direction:column;min-width:0}
.template-card .card-icon{width:42px;height:42px;margin-bottom:22px}
.template-card .eyebrow{font-size:12px;letter-spacing:.7px}
.template-card h2{font-family:"Songti SC",SimSun,serif;font-size:28px;letter-spacing:2px;line-height:1.8;font-weight:400;color:#496736;margin:5px 0 7px}
.template-card>p{font-size:14px;color:#5b704b;line-height:1.9}
.template-steps{padding:22px 0 5px}
.template-steps>div{display:flex;align-items:baseline;gap:10px;font-size:14px;color:#536c42;margin-bottom:15px;line-height:1.9}
.template-steps span{font-size:12px;color:#5d7748;flex:none}
.template-sample{background:#f5f7f0;border-left:2px solid #9fb783;padding:16px;font-size:14px;line-height:2;color:#526a42;flex:1;overflow-wrap:anywhere}
.template-card>.help-text{font-size:13px;min-height:54px;margin:16px 0;color:var(--muted)}
.template-card>.btn{align-self:flex-start}
.template-ai-panel{margin-top:27px}
.template-ai-panel .full-select{display:block;width:100%;min-width:0;margin:9px 0 18px;text-overflow:ellipsis}
.template-ai-panel .result-content:not(:empty){padding-top:21px}
.mock-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px}
.mock-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mock-options .select{min-width:0}
.prediction-card{position:relative;overflow:hidden;border:1px solid #dbe4c9;border-radius:12px;background:#edf2e2;padding:36px 31px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.prediction-card:after{content:"";position:absolute;right:-45px;top:-60px;width:180px;height:180px;border:1px solid #d8e2c5;border-radius:50%;box-shadow:0 0 0 20px #e6edda;pointer-events:none}
.prediction-card .eyebrow{font-size:12px;letter-spacing:1px;z-index:1;color:#526a42}
.prediction-card h2{font-family:"Songti SC",SimSun,serif;font-size:30px;font-weight:400;letter-spacing:1px;line-height:1.65;margin-top:22px;color:#4c6b36;z-index:1}
.prediction-card>p{font-size:15px;line-height:2;color:#566d45;max-width:320px;margin:19px 0 24px;z-index:1}
.prediction-card>.btn{z-index:1}
.prediction-note{margin-top:auto;padding-top:28px;font-size:13px;color:#5a704b;display:flex;align-items:flex-start;gap:8px;line-height:1.9;z-index:1}
.prediction-note>.icon{width:16px;height:16px;margin-top:4px}
.generated-heading{margin-top:30px}
.settings-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:24px}
.settings-grid>div{min-width:0}
.form-field{margin-bottom:21px;display:flex;flex-direction:column;gap:8px;min-width:0}
.form-field>label,.field-label{font-size:14px;color:#516c3e;font-weight:500;display:block}
.form-field>.select,.form-field>input,.form-field .notes-input{display:block;width:100%}
.form-field>.help-text{font-size:12px;margin-top:0}
.notes-input{width:100%;resize:vertical;line-height:1.9;min-height:100px}
.password-field{position:relative;min-width:0}
.password-field>input{width:100%;padding-right:50px}
.password-field>.icon-btn{position:absolute;right:3px;top:2px}
.settings-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:7px}
.config-security{display:flex;align-items:flex-start;gap:11px;border-top:1px solid #e3ead9;margin-top:23px;padding-top:21px;color:#526c40}
.config-security>.icon{width:17px;height:17px;margin-top:4px;stroke-width:1.4}
.config-security p{font-size:13px;line-height:1.9;overflow-wrap:anywhere}
.backup-panel{margin-top:23px}
.backup-panel .panel-body>p:not(.help-text){font-size:14px;color:#5b704b;line-height:1.95;margin-bottom:18px}
.connection-success{font-size:14px;color:#3f662b;margin-top:14px;overflow-wrap:anywhere}
.connection-error{font-size:14px;color:#8b4427;margin-top:14px;overflow-wrap:anywhere}

.modal-backdrop{position:fixed;inset:0;z-index:100;background:#18342575;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:25px;overflow:auto;overscroll-behavior:contain}
.modal{background:#fff;border:1px solid #dce5ce;border-radius:15px;width:min(620px,100%);max-height:calc(100vh - 50px);max-height:calc(100dvh - 50px);overflow:auto;overscroll-behavior:contain;box-shadow:0 22px 90px #142c3030;min-width:0}
.modal-header{padding:22px 25px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e4eadd;position:sticky;top:0;background:#fffffff5;z-index:1}
.modal-header h2{font-size:18px;font-weight:500;color:#496636;overflow-wrap:anywhere;min-width:0}
.modal-body{padding:24px 26px;font-size:14px;color:#566d46;line-height:2;overflow-wrap:anywhere}
.modal-body>p{margin-bottom:15px}
.modal-body>p:last-child{margin-bottom:0}
.modal-body b{font-weight:600;color:#496736}
.modal-body input{width:100%;margin-top:9px}
.modal-body .field-label{margin-top:16px}
.modal-footer{padding:18px 25px;border-top:1px solid #e5ebdc;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.source-modal{width:min(920px,100%)}
.help-steps p{margin-bottom:21px;font-size:14px}
.help-steps b{color:#496a33}
.connect-prompt>.icon{width:36px;height:36px;color:#567b39;margin-bottom:18px;stroke-width:1.3}
.connect-prompt p{margin-bottom:17px}
.connect-prompt>.btn{margin-top:10px}
.toast{position:fixed;bottom:28px;left:calc(50% + var(--sidebar)/2);transform:translate(-50%,16px);z-index:200;width:max-content;max-width:min(580px,calc(100vw - 40px));border:1px solid #cadab5;border-radius:9px;background:#244d3bf5;color:#f0f4e8;box-shadow:0 6px 25px #173e2e20;font-size:14px;padding:13px 23px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;line-height:1.8;overflow-wrap:anywhere}
.toast.show{opacity:1;transform:translate(-50%,0)}
.site-footer{max-width:1500px;margin:auto;padding:30px 42px 24px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px;letter-spacing:.2px;color:var(--muted)}
.site-footer>span{color:var(--muted)}
.footer-note{margin-left:auto;font-size:12px}

@media(min-width:1500px){
  .hero{min-height:350px}.hero-content{padding-left:45px}.hero-art{right:8%;transform:scale(1.08)}
  .page-content{padding-top:40px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 310px}
}
@media(max-width:1280px){
  .topbar{padding-right:30px;padding-left:30px}.page-content{padding:30px 30px 20px}.site-footer{padding-right:30px;padding-left:30px}
  .dashboard-grid{grid-template-columns:minmax(0,1fr)}
  .dashboard-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:23px}
  .dashboard-aside .ai-card{margin-top:0}.source-note{grid-column:1/-1;padding-top:0}
  .hero-content{width:70%;padding-left:30px}.hero-art{right:-35px;opacity:.65}
  .template-grid{grid-template-columns:1fr}.template-card{padding:27px}
}
@media(max-width:1100px){
  :root{--sidebar:204px}.sidebar{padding-right:12px;padding-left:12px}.brand{padding-right:0;padding-left:0;gap:8px}
  .brand-copy strong{font-size:19px;letter-spacing:1px}.brand-icon{width:36px;height:38px}
  .nav-item{padding-right:8px;padding-left:8px;gap:8px}.nav-new{padding:0 2px}
  .sidebar-profile{gap:8px}.sidebar-profile>.icon{display:none}
  .page-content{padding:28px 26px 20px}.topbar{padding-right:26px;padding-left:26px}
  .welcome-row{align-items:flex-start;flex-wrap:wrap}.hero-content{width:75%}.hero-title{font-size:34px}
  .hero-art{right:-70px;opacity:.4}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .knowledge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings-grid,.mock-layout,.practice-layout{grid-template-columns:minmax(0,1fr)}
  .question-bottom-actions{gap:14px}.search-field{flex-basis:100%}.filters>.select{flex:1;min-width:0}
  .prediction-card>p{max-width:100%}
}
@media(max-width:800px){
  :root{--sidebar:224px}.sidebar{transform:translateX(-100%);visibility:hidden;transition:transform .22s,visibility .22s;padding:25px 18px 18px}
  .sidebar.open{transform:translateX(0);visibility:visible;box-shadow:15px 0 60px #153b2730}
  .brand-icon{width:40px;height:42px}.brand-copy strong{font-size:21px;letter-spacing:1px}
  .main{margin-left:0}.topbar{min-height:66px;padding:12px 24px}.topbar-left,.topbar-right{gap:12px}
  .mobile-menu{display:inline-flex}.local-badge{display:none}.page-content{padding:28px 24px 18px}
  .page-title{font-size:29px}.welcome-row{gap:16px;margin-bottom:24px}
  .hero-content{width:80%;padding:28px}.hero-art{right:-70px;opacity:.3}.hero-title{font-size:34px}
  .practice-grid{grid-template-columns:1fr}.practice-card{display:grid;grid-template-columns:40px minmax(0,1fr) 18px;column-gap:16px;row-gap:4px;padding:22px}
  .practice-card .card-icon{grid-column:1;grid-row:1/3;margin:0;align-self:center}
  .practice-card .card-title{grid-column:2;grid-row:1;margin:0}
  .practice-card>p{grid-column:2;grid-row:2}
  .practice-card .card-footer{border:0;margin:0;padding:0;display:contents}
  .practice-card .card-footer>span{display:none}.practice-card .card-footer>.icon{grid-column:3;grid-row:1/3;align-self:center}
  .topic-bar{width:85px}.toast{left:50%}.site-footer{padding-right:24px;padding-left:24px}
  input,.select,.notes-input,.search-field input{font-size:16px}
  input::placeholder,textarea::placeholder{font-size:16px}.answer-editor::placeholder{font-size:16px}
  .modal-backdrop{padding:20px}.modal{max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px)}
}
@media(max-width:600px){
  .dashboard-aside,.knowledge-grid{grid-template-columns:minmax(0,1fr)}
  .topic-bar{display:none}.topic-row{gap:10px}.topic-count{min-width:45px}
  .page-tabs{gap:8px 15px}.practice-pagination>span{display:none}
}
@media(max-width:540px){
  .topbar{padding:10px 14px;gap:8px}.topbar-left,.topbar-right{gap:6px}.crumb-root>span{padding:0 6px}.breadcrumb{font-size:12px}
  .topbar .user-avatar{width:32px;height:32px}.page-content{padding:24px 18px 16px}
  .welcome-row{display:block}.header-actions{margin-top:16px}.page-title{font-size:27px;line-height:1.65;letter-spacing:.5px}
  .hero{min-height:350px}.hero-content{width:100%;padding:28px 23px}.hero-title{font-size:31px;line-height:1.65;letter-spacing:1px}
  .hero-art{opacity:.13;right:-90px}.art-label{display:none}.hero-actions{gap:8px 15px}.hero-source{margin-top:18px}
  .stat-grid{gap:11px;margin-bottom:26px}.stat-card{padding:17px 13px}.stat-label{font-size:12px}.stat-value{font-size:30px}.stat-note{font-size:12px}
  .stat-icon{width:28px;height:28px}.dashboard-grid{gap:20px}.section-heading{align-items:flex-start}
  .panel-header,.panel-body{padding:20px 18px}.topic-panel .panel-header{display:block}.topic-panel .panel-header>.section-link{margin-top:10px}
  .practice-card{padding:22px 18px;column-gap:13px}.practice-card>p{font-size:14px}
  .question-card{padding:19px 17px}.question-title{font-size:16px}.question-meta{font-size:12px;gap:8px}
  .question-actions{display:block}.question-actions>div:last-child{margin-top:12px;justify-content:flex-end}
   .question-detail h1{font-size:25px}.question-source{display:block}.question-source>.btn{margin-top:10px;padding-left:0}
  .question-bottom-actions{gap:8px 13px}.prompt-card{padding:16px;gap:10px}
  .editor-toolbar{padding:19px 18px}.answer-editor{min-height:340px;padding:20px 18px}
  .editor-footer,.review-controls{padding:15px 17px}.editor-footer>div{gap:7px}.editor-footer .btn{padding:9px 10px}
  .ai-placeholder{align-items:flex-start;gap:12px;padding:15px 0}.ai-placeholder>.icon{width:24px;height:24px;margin-top:4px}
  .practice-top{gap:5px 10px}.practice-top .btn{padding-right:0;padding-left:0}.practice-counter{font-size:12px}
  .archive-summary{padding:16px;gap:10px 15px}.archive-summary>span:last-child{flex-basis:100%}
  .list-caption>span{flex-basis:100%;margin-left:0}.filters{gap:8px}.filters>.select{padding-right:18px;padding-left:9px}
  .knowledge-card,.template-card{padding:23px 21px}.topic-year-label{min-height:0}
  .mock-options{grid-template-columns:minmax(0,1fr);gap:0}.prediction-card{padding:28px 24px}
  .insight-banner{padding:18px;gap:11px}.insight-banner>.icon{width:21px;height:21px}
  .modal-backdrop{padding:12px}.modal{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:12px}
  .modal-header{padding:17px 18px}.modal-header h2{font-size:17px}.modal-body{padding:21px 19px}.modal-footer{padding:16px 18px}
  .source-modal .modal-body{padding:16px}.toast{bottom:18px;max-width:calc(100vw - 28px);padding:12px 17px}
  .site-footer{padding:23px 18px;display:block;font-size:12px;line-height:2}.footer-note{display:block;margin-left:0}
}
@media(max-width:360px){
  .breadcrumb{max-width:140px;line-height:1.6}.topbar-left{gap:2px}.topbar-right{gap:2px}
  .stat-top{align-items:flex-start;flex-wrap:wrap}.stat-label{flex-basis:100%}.stat-icon{display:none}
  .filters>.select{flex-basis:100%}.editor-footer>div{width:100%;justify-content:flex-end}
  .practice-counter{order:3;flex-basis:100%;text-align:center}
}
@media(max-height:820px){.sidebar-note{display:none}.sidebar-grow{min-height:10px}}
@media(pointer:coarse){.btn,.btn.small,.icon-btn{min-height:44px}.icon-btn{min-width:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none;transition:none;scroll-behavior:auto}}
.template-source{padding:16px 18px;border:1px solid var(--line);border-radius:10px;background:var(--bg);margin:18px 0;color:var(--ink)}.template-source>p{margin-top:7px;color:#52664e;overflow-wrap:anywhere;line-height:1.8}.template-source>b{font-size:14px}
/* A quieter workspace with an always-visible route to answers. */
:root{font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
.page-content{max-width:1360px}.topbar{position:sticky;top:0;z-index:30;backdrop-filter:blur(14px)}
.ask-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 26px;margin-bottom:22px;background:#e8eedb;border:1px solid #cdd8b7;border-radius:12px;color:var(--green)}
.ask-banner b{display:block;font-size:20px}.ask-banner small{display:block;color:var(--muted);margin-top:3px}.ask-banner>span:last-child{white-space:nowrap;font-weight:600}
.nav-item[href="#chat"]{background:#e8eedb;color:var(--green);margin-bottom:14px;font-weight:700}.nav-item[href="#chat"].active{background:var(--green);color:white}
.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px;align-items:start}.chat-panel{overflow:hidden}.chat-history{min-height:320px;max-height:58vh;overflow-y:auto;padding:26px;scroll-behavior:smooth}.chat-empty{padding:60px 10px}.chat-empty h2{font-size:26px;font-family:"Songti SC","SimSun",serif;margin:16px 0}.chat-empty p{color:var(--muted)}
.chat-message{padding:18px 20px;background:#f4f6ef;border-radius:12px;margin-bottom:18px;overflow-wrap:anywhere}.chat-message.user{background:#e6eddd;margin-left:35px}.chat-message>b{font-size:12px;color:var(--muted);display:block;margin-bottom:8px}.chat-message.user>div{white-space:pre-wrap}.chat-composer{border-top:1px solid var(--line);padding:22px}.chat-composer textarea{width:100%;resize:vertical;min-height:100px}.chat-composer>div{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:12px}.chat-composer small{color:var(--muted)}.chat-tips{padding:24px 0}.chat-tips h2{font-family:"Songti SC","SimSun",serif;margin:14px 0 28px;font-size:26px}.chat-example{width:100%;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:18px 0;line-height:1.8}.chat-example:hover{color:var(--green);background:#edf1e7}.chat-tips>p{margin-top:24px}.chat-error{padding:0 22px}.chat-thinking{color:var(--muted)}
#admin-panel input{width:100%;margin:8px 0 18px}#admin-panel .settings-actions{flex-wrap:wrap}#admin-panel>p{margin-bottom:18px}.field-label{display:block}.top-chat{white-space:nowrap}
@media(max-width:1050px){.chat-layout{grid-template-columns:minmax(0,1fr)}.chat-tips{padding:0}.chat-tips h2{margin:8px 0}.chat-tips h2 br{display:none}.topbar-right .local-badge{display:none}}
@media(max-width:600px){.ask-banner{padding:18px;align-items:start}.ask-banner b{font-size:18px}.ask-banner small{font-size:12px}.ask-banner>span:last-child{font-size:12px}.chat-history{padding:16px;min-height:280px}.chat-composer{padding:16px}.chat-composer>div{align-items:end}.chat-composer small{font-size:11px}.chat-message.user{margin-left:12px}.top-chat{padding:8px 12px;font-size:12px}.chat-empty{padding:40px 0}.chat-empty h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){.chat-history{scroll-behavior:auto}}
.admin-disclosure{grid-column:1/-1;grid-row:2;color:var(--muted);font-size:13px}.admin-disclosure summary{cursor:pointer;padding:15px 20px;display:flex;align-items:center;gap:8px}.admin-disclosure[open]{color:var(--ink)}.settings-grid>div{grid-column:1/-1}.model-picker{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px 24px;border-bottom:1px solid var(--line);background:#f7f8f2}.model-picker>div{flex:1;min-width:180px}.model-picker select{width:100%;max-width:100%;margin-top:6px}.model-picker p{flex-basis:100%;overflow-wrap:anywhere}.model-picker button{white-space:nowrap}@media(max-width:600px){.model-picker{padding:16px}.model-picker>div{min-width:140px}}
/* Compact settings layout */
.settings-grid.compact{grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:16px}
.settings-grid.compact>*{grid-column:auto;grid-row:auto;margin-top:0}
.settings-grid.compact .panel-header{padding:13px 18px}
.settings-grid.compact .panel-body{padding:14px 18px}
.settings-grid.compact .form-field{margin-bottom:12px;gap:5px}
.settings-grid.compact .help-text{margin-top:8px;line-height:1.7}
.settings-grid.compact .backup-panel .panel-body>p:not(.help-text){margin-bottom:12px;line-height:1.8}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field-row input{width:100%}
.settings-grid.compact .admin-disclosure summary{padding:13px 18px;font-size:14px;color:var(--ink);font-weight:500}
.settings-grid.compact .admin-disclosure .panel-body{border-top:1px solid #edf0e7}
.admin-tag{margin-left:auto;font-size:12px;color:#3f662b;background:#eef4e4;border-radius:99px;padding:1px 9px;font-weight:400}
.admin-form{display:flex;flex-direction:column;gap:8px}
.admin-form input{width:100%;min-height:38px;padding:7px 10px}
.admin-form .settings-actions{margin-top:2px;gap:8px}
.admin-form .btn.small,.admin-foot .btn.small,.conn-card .btn.small{min-height:34px;padding:5px 11px}
.admin-lead{font-size:13px;margin-bottom:8px}
.inline-field{display:flex;gap:6px}.inline-field input{flex:1;min-width:0}
.inline-field .select{flex:0 1 auto;min-width:112px;min-height:38px;padding:7px 22px 7px 10px}
.conn-card{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #dfe6d5;border-radius:8px;background:#f7f9f2}
.conn-card>div{flex:1;min-width:0;display:flex;flex-direction:column}
.conn-card b{font-size:14px;font-weight:500}
.conn-card small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conn-card .status-dot{width:9px;height:9px;flex:none;background:#b5bcae}
.conn-card.ok .status-dot{background:#4e9a2f;box-shadow:0 0 0 3px #dcebd0}
.conn-card.ok b{color:#3f662b}
.conn-card.fail{border-color:#ecd2c4;background:#fcf5f1}.conn-card.fail .status-dot{background:#b5532c}.conn-card.fail b{color:#8b4427}
.conn-edit{margin-top:10px}
.conn-edit>summary{cursor:pointer;font-size:13px;color:#536a47;padding:2px 0 8px}
.conn-edit .help-text{font-size:11.5px}
#secure-status:empty{display:none}
.admin-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding-top:8px;border-top:1px dashed #e3ead9;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:600px){.field-row{grid-template-columns:1fr}}
/* Phone layout: bottom tab bar, reachable actions, no horizontal overflow. */
.tabbar{display:none}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(hover:none){.practice-card:hover,.btn.primary:hover{transform:none}}
@media(max-width:800px){
  :root{--tabbar:58px}
  body{overflow-x:clip}
  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:34;height:calc(var(--tabbar) + env(safe-area-inset-bottom));padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#fffffff2;border-top:1px solid var(--line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
  .tab-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;font-size:11px;line-height:1.3;color:#62745a}
  .tab-item .icon{width:21px;height:21px}
  .tab-item.active{color:var(--green);font-weight:600}
  .tab-item.active .icon{stroke-width:2.2}
  .tab-item[href="#chat"] .icon{width:24px;height:24px;padding:3px;border-radius:8px;background:var(--lime);color:var(--green);box-sizing:content-box;margin-top:-4px}
  body:has(textarea:focus,input:focus,select:focus) .tabbar{display:none}
  .main{padding-bottom:calc(var(--tabbar) + env(safe-area-inset-bottom))}
  body:has(textarea:focus,input:focus,select:focus) .main{padding-bottom:0}
  .sidebar{z-index:40;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  body.menu-open{overflow:hidden}
  body.menu-open:after{content:"";position:fixed;inset:0;z-index:36;background:#18342555}
  .topbar{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
  .topbar .top-chat{display:none}
  .toast{bottom:calc(var(--tabbar) + 14px + env(safe-area-inset-bottom))}
  .hero{min-height:0}
  .chat-history{max-height:none;min-height:220px}
  .chat-composer{position:sticky;bottom:calc(var(--tabbar) + env(safe-area-inset-bottom));background:#fff;z-index:2}
  body:has(textarea:focus) .chat-composer{bottom:0}
  .chat-panel{overflow:visible}
  .chat-tips h2{font-size:18px}
  .chat-tips{display:flex;flex-direction:column}
  .answer-panel{overflow:visible}
  .answer-panel .editor-footer{position:sticky;bottom:calc(var(--tabbar) + env(safe-area-inset-bottom));z-index:2;background:#fff;box-shadow:0 -6px 14px #27472b0d}
  body:has(textarea:focus) .answer-panel .editor-footer{bottom:0}
  .answer-editor{min-height:260px}
}
@media(max-width:540px){
  .topbar{min-height:56px;padding-top:6px;padding-bottom:6px}
  .crumb-root{display:none}
  .breadcrumb b{font-size:16px;font-weight:600;color:var(--green)}
  .page-content{padding:18px 14px 14px}
  .page-title{font-size:23px;line-height:1.5}
  .subtitle{font-size:13px;line-height:1.75}
  .welcome-row{margin-bottom:18px}
  .header-actions{margin-top:12px}
  .header-actions .btn{flex:1 1 auto}
  .hero-content{padding:22px 18px}.hero-title{font-size:25px;margin:8px 0}
  .hero-desc{font-size:13px}.hero-actions{margin-top:16px}
  .ask-banner{padding:14px 16px;margin-bottom:16px}
  .stat-grid{gap:9px}.stat-card{padding:13px 12px}.stat-value{font-size:26px;margin-top:4px}
  .panel-header,.panel-body{padding:15px 14px}
  .question-card{padding:15px 14px}
  .question-detail h1{font-size:20px;line-height:1.85;margin:14px 0}
  .editor-toolbar{padding:13px 14px}.answer-editor{padding:16px 14px}
  .editor-footer{padding:10px 12px}
  .editor-footer>div{flex:1;justify-content:flex-end}
  .editor-footer>div>.btn{flex:1 1 0}
  .practice-top{position:sticky;top:56px;z-index:5;background:var(--bg);margin:-6px -14px 14px;padding:4px 14px;border-bottom:1px solid var(--line)}
  .practice-pagination>.btn{flex:1 1 0}
  .practice-layout{gap:14px}
  .ai-result{margin-top:14px}
  .filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .filters>.search-field{grid-column:1/-1}
  .filters>.select{min-width:0;width:100%}
  .page-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:18px;margin-bottom:16px}
  .page-tabs::-webkit-scrollbar{display:none}
  .tab{white-space:nowrap;flex:none}
  .chat-history{padding:12px}.chat-message{padding:12px 14px;margin-bottom:12px}
  .chat-composer{padding:10px 12px}.chat-composer .field-label{display:none}
  .chat-composer textarea{min-height:64px}
  .chat-composer>div{margin-top:8px}
  .chat-tips h2{display:none}
  .chat-example{padding:12px 0}
  .model-picker{padding:12px 14px}
  .modal-backdrop{align-items:flex-end;padding:0}
  .modal{width:100%;border-radius:16px 16px 0 0;max-height:92vh;max-height:92dvh;padding-bottom:env(safe-area-inset-bottom)}
  .modal-footer .btn{flex:1 1 auto}
  .settings-actions .btn{flex:1 1 auto}
  .site-footer{padding:16px 14px}
}
/* Study modules: switcher, per-module accent, choice questions. */
body[data-module="med306"]{--green:#1f4f6e;--green-dark:#163b54;--lime:#c9e6ee}
body[data-module="med306"] ::selection{background:#d3e7ef}
.module-btn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:4px 6px 4px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--green);font-size:13px;font-weight:550;white-space:nowrap;transition:border-color .15s,box-shadow .15s,background .15s}
.module-btn:hover{border-color:var(--green);box-shadow:0 3px 12px #1d3b2c14}
.module-btn .icon{width:17px;height:17px}
.module-btn-code{display:grid;place-items:center;min-width:38px;height:28px;padding:0 8px;border-radius:999px;background:var(--green);color:#fff;font-size:12px;letter-spacing:.6px}
.module-card{display:flex;align-items:center;gap:10px;width:100%;text-align:left;margin:-12px 0 14px;padding:11px 12px;border:1px dashed #cfd9c3;border-radius:10px;background:#f8faf4;color:var(--green)}
.module-card:hover{border-style:solid;border-color:var(--green)}
.module-card>span{flex:1;min-width:0}.module-card small{display:block;font-size:11px;color:var(--muted);line-height:1.4}
.module-card b{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.module-card>.icon:last-child{width:13px;height:13px}
.module-options{display:grid;gap:10px;margin-top:14px}
.module-option{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;text-align:left;border:1px solid var(--line);border-radius:12px;background:#fff;transition:border-color .15s,background .15s}
.module-option:hover{border-color:#9db08a;background:#fafcf6}
.module-option.active{border-color:var(--green);background:#f3f7ee;cursor:default}
.module-code{display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:#eef2e7;color:#2f4b37;font-size:17px;font-weight:650;letter-spacing:.5px;flex:none}
.module-option.active .module-code{background:var(--green);color:#fff}
.module-option[data-switch-module="med306"] .module-code{background:#e4eff4;color:#1f4f6e}
.module-option[data-switch-module="med306"].active .module-code{background:#1f4f6e;color:#fff}
.module-copy{flex:1;min-width:0}.module-copy b{display:block;font-size:15px;font-weight:600}
.module-copy small{display:block;font-size:12px;color:var(--muted);line-height:1.6}
.module-check{color:var(--green)}
.module-loading{padding:60px 0}
.pending-banner{background:#fff8e8;border-color:#f0dfb5}.pending-banner>.icon{color:#a37522}.pending-banner b{color:#7a5617}.pending-banner p{color:#7d6638}
.choice-list{display:grid;gap:9px;margin:4px 0 10px}
.choice{display:flex;align-items:flex-start;gap:12px;width:100%;padding:12px 14px;text-align:left;border:1px solid var(--line);border-radius:10px;background:#fff;line-height:1.75;transition:border-color .15s,background .15s}
.choice:hover{border-color:#a9b99a}
.choice-key{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid #cdd8c2;font-size:13px;font-weight:600;color:#4e6145;flex:none}
.choice-text{padding-top:1px;min-width:0;overflow-wrap:anywhere}
.choice.selected{border-color:var(--green);background:#f2f6ec}
.choice.selected .choice-key{background:var(--green);border-color:var(--green);color:#fff}
.choice.correct{border-color:#3d8a5a;background:#ecf6ef}.choice.correct .choice-key{background:#3d8a5a;border-color:#3d8a5a;color:#fff}
.choice.incorrect{border-color:#c4583f;background:#fbefeb}.choice.incorrect .choice-key{background:#c4583f;border-color:#c4583f;color:#fff}
.choice-hint{margin-bottom:12px}
.check-result{display:flex;gap:12px;padding:14px 16px;border-radius:10px;margin-bottom:16px}
.check-result>.icon{width:22px;height:22px;margin-top:2px}
.check-result.ok{background:#ecf6ef;color:#285a3a}.check-result.bad{background:#fbefeb;color:#8a3a27}
.check-result p{font-size:13px;margin-top:2px}.check-result .result-content{margin-top:8px;color:var(--ink)}
.choice-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 20px;border-bottom:1px solid var(--line);background:#fafbf7;font-size:13px}
.choice-bar b{font-size:16px;color:var(--green);letter-spacing:1px}
.answer-editor.is-choice{min-height:160px}
.shortcut-hint{display:block;font-size:11px;color:#7b8a73;margin-top:2px}
.choice-hint .shortcut-hint{display:inline}
@media(hover:none),(max-width:800px){.shortcut-hint{display:none}.choice-hint .shortcut-hint{display:none}}
@media(max-width:1100px){.module-btn-name{display:none}.module-btn{padding:4px}}
@media(max-width:800px){.module-btn{min-height:36px}.module-btn-code{height:28px}}
@media(max-width:540px){
  .filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .choice{padding:11px 12px;gap:10px}
  .choice-bar{padding:10px 14px}
  .module-option{padding:12px}
  .module-code{width:46px;height:46px;font-size:15px}
  .header-actions{display:flex;flex-wrap:wrap;gap:8px}
}
@media(pointer:coarse){.choice{min-height:48px}}
@media(max-width:380px){.module-btn>.icon{display:none}.module-btn{padding:3px}}
/* Compact, phone-first study flow: quick ask, chat input on top, inline AI analysis and an answer dock. */
.quick-ask{flex-wrap:wrap}
.quick-ask>label{flex:1 1 220px;cursor:text}
.quick-ask-row{display:flex;gap:8px;flex:2 1 320px;min-width:0}
.quick-ask-row input{flex:1;min-width:0;border:1px solid #cdd8b7;border-radius:10px;padding:10px 14px;background:#fff;font-size:15px;color:var(--ink)}
.quick-ask-row .btn{flex:none}
.chat-head{margin-bottom:16px}.chat-head .page-title{font-size:26px;margin:0}.chat-head .subtitle{margin-top:2px}
.chat-layout{grid-template-columns:minmax(0,1fr);max-width:920px}
.chat-panel{overflow:visible}
.chat-composer{position:static;border-top:0;border-bottom:1px solid var(--line);padding:18px 22px}
.chat-composer textarea{min-height:84px}
.chat-composer>div{margin-top:10px;flex-wrap:wrap;gap:8px}
.chat-actions{display:flex;gap:8px;margin-left:auto}
.chat-examples{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 22px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.chat-examples .chat-example{width:auto;display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:6px 12px;line-height:1.5;font-size:13px;color:var(--green);background:#fff;text-align:left}
.chat-history{min-height:0;max-height:none;overflow:visible;padding:16px 22px}
.chat-history:empty{display:none}
.chat-turn{margin-bottom:16px;padding-bottom:4px;border-bottom:1px dashed var(--line)}
.chat-turn:last-child{border-bottom:0;margin-bottom:0}
.chat-turn .chat-message{margin-bottom:10px}
.chat-panel,#ai-feedback,.check-result{scroll-margin-top:120px;scroll-margin-bottom:90px}
.model-details{border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.model-details>summary{cursor:pointer;padding:12px 22px}
.model-details .model-picker{border-bottom:0;border-top:1px solid var(--line)}
.inline-feedback{margin:4px 0 16px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#fbfcf8}
.inline-feedback.is-empty{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:10px 14px}
.inline-feedback.is-empty small{font-size:12px;color:var(--muted)}
.inline-feedback-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-weight:600;color:var(--green);margin-bottom:10px}
.inline-feedback-head .icon{width:18px;height:18px}
.inline-feedback .result-content{font-size:15px;line-height:1.9}
.reason-box>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:16px 20px;font-size:14px;color:#506c3a;border-bottom:1px solid #e5ebdc}
.reason-box>summary .icon{width:17px;height:17px}
.practice-layout.is-choice .answer-panel{align-self:start}
.practice-dock{display:none}
@media(max-width:800px){
  .page-content{padding-top:16px}
  .question-detail .prompt-card{display:none}
  .question-source{padding-top:12px;margin-top:14px}
  .question-bottom-actions{margin-top:10px}
  .answer-panel .editor-footer{position:static;box-shadow:none}
  .practice-pagination{display:none}
  body.in-practice .tabbar{display:none}
  body.in-practice .main{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  body.in-practice .site-footer{display:none}
  .practice-dock{display:grid;grid-template-columns:52px minmax(0,1fr) minmax(0,1fr);gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:34;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#fffffff5;border-top:1px solid var(--line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
  .practice-dock .btn{justify-content:center;min-height:46px;padding:0 10px;white-space:nowrap}
  body:has(textarea:focus,input:focus) .practice-dock{display:none}
  body:has(textarea:focus,input:focus).in-practice .main{padding-bottom:0}
  .chat-composer{position:static}
  .chat-history{min-height:0}
}
@media(max-width:540px){
  .page-content{padding:12px 12px 12px}
  .welcome-row{margin-bottom:12px}.page-title{font-size:21px}.subtitle{font-size:12px;line-height:1.6}
  .hero-desc,.hero-art,.dashboard-aside .ai-card,.dashboard-aside .source-note{display:none}
  .hero-content{padding:16px}.hero-title{font-size:21px;line-height:1.5}
  .stat-grid{margin-bottom:16px}.dashboard-grid{gap:14px}
  .ask-banner.quick-ask{padding:12px;gap:8px;margin-bottom:12px}
  .quick-ask>label{flex-basis:100%}.quick-ask>label small{display:none}.ask-banner.quick-ask b{font-size:16px}
  .quick-ask-row{flex-basis:100%}.quick-ask-row input{font-size:16px;padding:9px 12px}
  .practice-top{margin-bottom:10px}
  .question-detail .panel-header{padding:10px 14px}.question-detail .panel-body{padding:4px 14px 14px}
  .question-detail h1{font-size:18px;line-height:1.75;margin:8px 0 12px}
  .choice-list{gap:7px}.choice{padding:9px 11px;line-height:1.6}.choice-key{width:26px;height:26px}
  .choice-hint{margin-bottom:8px;font-size:12px}
  .check-result{padding:12px;margin-bottom:12px}
  .inline-feedback{padding:12px;margin-bottom:12px}
  .inline-feedback .result-content,.result-content{font-size:14px;line-height:1.85}
  .question-tags{display:none}
  .reason-box>summary{padding:12px 14px;font-size:13px}
  .answer-editor{min-height:200px}.answer-editor.is-choice{min-height:120px}
  .review-controls>span{display:none}
  .ai-result .panel-header{padding:12px 14px}.ai-result .panel-body{padding:12px 14px}
  .chat-head{margin-bottom:10px}.chat-head .page-title{font-size:20px}
  .chat-composer{padding:12px}
  .chat-composer textarea{min-height:72px;font-size:16px}
  .chat-composer>div{margin-top:8px}
  .chat-examples{padding:10px 12px}
  .chat-history{padding:12px}
  .chat-message{padding:10px 12px}.chat-message.user{margin-left:0}
  .model-details>summary{padding:10px 12px}
  .question-card{padding:12px}
}
/* Instant answers: the answer is red and slightly larger than its explanation. */
.check-result{display:block}
.check-result .answer-key{margin:0 0 4px;font-size:18px;font-weight:700;line-height:1.5;color:#d0281c;letter-spacing:.5px}
.check-result .answer-key small{margin-left:8px;padding:1px 6px;border-radius:5px;background:#fff;color:#8a6a5f;font-size:11px;font-weight:500;letter-spacing:0;vertical-align:2px}
.check-result .check-verdict{display:flex;align-items:center;gap:4px;margin:0;font-size:13px}
.check-result .check-verdict .icon{width:16px;height:16px}
.check-result .answer-analysis{margin-top:6px;font-size:14px;line-height:1.8;color:var(--ink)}
.check-result.plain{background:#fdf6f3;border:1px solid #f0ddd5;margin:12px 0 0}
.check-result.pending{background:#f7f8f2;border:1px dashed #d7e0cc;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.check-result.pending p{margin:0}.check-result .ai-loading{padding:4px 0;font-size:13px}
#instant-answer{padding:0 20px 12px}#instant-answer:empty{display:none}
.resume-list{margin:12px 0 0;padding-left:18px;line-height:1.8;font-size:14px;color:var(--muted)}.resume-list li+li{margin-top:6px}.resume-list b{color:var(--ink)}
@media(max-width:540px){
  .page-content{padding:10px 10px 10px}
  .practice-top{margin-bottom:8px;padding-top:2px;padding-bottom:2px}.practice-top .btn.small{min-height:36px;font-size:12px}
  .question-detail .panel-header{padding:8px 12px}.question-detail .panel-body{padding:2px 12px 12px}
  .question-meta{font-size:11px}
  .question-detail h1{font-size:17.5px;line-height:1.7;margin:6px 0 10px}
  .choice-list{gap:6px;margin-bottom:6px}.choice{padding:8px 10px;gap:9px;line-height:1.55}.choice-key{width:24px;height:24px;font-size:12px}
  .choice-hint{margin-bottom:6px;font-size:11px}
  .check-result{padding:10px 12px;margin-bottom:10px}.check-result .answer-key{font-size:17px}.check-result .answer-analysis{font-size:13.5px;line-height:1.75}
  .question-bottom-actions{gap:4px}.question-bottom-actions .btn.small{padding:6px 8px;font-size:12px}
  .question-source{font-size:12px;padding-top:8px;margin-top:10px}
  .answer-panel .editor-toolbar{padding:10px 12px}.answer-panel .editor-footer{padding:8px 12px}.review-controls{padding:6px 12px}
  .practice-layout{gap:10px}
  .resume-list{font-size:13px}
}
@media(pointer:coarse) and (max-width:540px){.choice{min-height:44px}}

/* Knowledge-point notes shown as the primary reference answer, with AI as a supplement. */
.check-result.notes{background:#f3f7ee;border:1px solid #d7e3c8;margin:12px 0 0}
.check-result.notes .answer-key{color:var(--green)}
.check-result.notes .answer-key small{background:var(--lime);color:var(--green-dark)}
.note-entry+.note-entry{margin-top:12px;padding-top:12px;border-top:1px dashed #d7e3c8}
/* The matched note text is the answer provided by the notes: red, bold and slightly larger. */
.check-result.notes .note-text{color:#d0281c;font-size:17px;font-weight:700}
.note-path{display:flex;align-items:center;gap:6px;margin:0;font-size:12px!important;color:var(--muted);overflow-wrap:anywhere}
.note-path .icon{width:14px;height:14px;flex:none}
.note-hint{margin:10px 0 0!important;font-size:12px!important;color:var(--muted)}
/* Condensed exam answer: shown by default above the detailed notes, with a toggle. */
.notes-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.notes-head .answer-key{margin:0 0 4px}
.notes-toggle{flex:none}
.condense-points{margin-top:10px;padding:10px 12px;border-radius:8px;background:#fff;border:1px dashed #d7e3c8}
.condense-points b{display:block;font-size:12px;color:var(--green);margin-bottom:4px}
.condense-points ul{margin:0;padding-left:18px}
.condense-points li{font-size:13.5px;line-height:1.7;color:var(--ink)}
.condense-status{margin-bottom:6px!important}
@media(max-width:540px){.check-result.notes .note-text{font-size:15.5px}}
.check-result.supplement{background:#fdf9f6}
.check-result .supplement-label{display:inline-block;margin:0 0 6px;padding:1px 8px;border-radius:5px;background:#fff;border:1px solid #f0ddd5;color:#8a6a5f;font-size:12px!important;font-weight:600}
.check-result.supplement .answer-key{font-size:14px;font-weight:400;line-height:1.8;color:var(--ink)}
@media(max-width:540px){.check-result.supplement .answer-key{font-size:13.5px}}

/* ===== AI 改代码（站点维护） ===== */
.studio-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start;margin-bottom:18px}
@media (max-width:960px){.studio-grid{grid-template-columns:1fr}}
.studio-gate{max-width:560px}
.studio-gate .admin-form input{width:100%;margin-bottom:10px}
.studio-filelist{max-height:420px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:8px;margin:10px 0;background:#fbfcf9}
.studio-group{margin-bottom:10px}
.studio-group-name{font-size:12px;letter-spacing:.4px;color:var(--muted);padding:4px 6px;position:sticky;top:0;background:#fbfcf9}
.studio-file{display:flex;align-items:center;gap:8px;padding:5px 6px;border-radius:7px;font-size:13px;cursor:pointer}
.studio-file:hover{background:#f1f4ec}
.studio-file.is-binary{cursor:default;opacity:.62}
.studio-file input{flex:none}
.studio-file-path{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.studio-file-meta{flex:none;font-size:11px;color:var(--muted)}
.studio-ask textarea{width:100%;margin-bottom:12px}
.studio-summary{font-weight:600;margin-bottom:12px}
.studio-changes{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.studio-change{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.studio-change summary{cursor:pointer;padding:9px 12px;background:#f4f7f0;font-weight:600;font-size:13px;display:flex;align-items:center;gap:8px}
.studio-diff{margin:0;padding:10px 12px;max-height:340px;overflow:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.55;white-space:pre;background:#fff}
.studio-diff .dl-add{display:block;background:#eaf7ea;color:#1c6b2f}
.studio-diff .dl-del{display:block;background:#fdecec;color:#a12626}
.studio-diff .dl-ctx{display:block;color:#4a5a4a}

.admin-links{margin-top:14px}
.admin-link{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fbfcf9}
.admin-link b{display:block;font-size:14px}
.admin-link small{display:block;color:var(--muted);font-size:12px;margin-top:2px}

/* Install-to-home-screen banner and settings panel */
.install-banner{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:16px;border:1px solid #cdd8b7;border-radius:12px;background:#e8eedb;color:var(--green)}
.install-banner .install-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--green);color:#fff;flex:none}
.install-banner .install-icon .icon{width:18px;height:18px}
.install-banner .install-copy{flex:1;min-width:0}
.install-banner .install-copy b{display:block;font-size:14px;font-weight:600}
.install-banner .install-copy small{display:block;font-size:12px;color:var(--muted);margin-top:1px;overflow-wrap:anywhere}
.install-banner .btn{flex:none}
.install-banner .icon-btn{width:36px;height:36px;min-width:0;color:#5b6e4c;flex:none}

/* Phone layout: tighter spacing on 概览 / 真题 / 复习 so more fits on one screen. */
@media(max-width:800px){
  .page-content{padding-top:14px}
  .welcome-row{margin-bottom:14px}
  .page-title{font-size:24px;line-height:1.4}
  .subtitle{font-size:12.5px;line-height:1.6;margin-top:4px}
  .header-actions{gap:6px}
  .hero{margin-bottom:14px}
  .hero-content{padding:18px}
  .hero-title{font-size:24px;margin:6px 0}
  .hero-actions{gap:8px 14px;margin-top:14px}
  .hero-source{margin-top:12px}
  .stat-grid{gap:9px;margin-bottom:16px}
  .stat-card{padding:12px}
  .stat-value{font-size:24px;margin-top:4px}
  .stat-note{font-size:11.5px;line-height:1.5;margin-top:2px}
  .section-heading{margin-bottom:10px}
  .section-title{font-size:15px;gap:6px}
  .panel-header{gap:10px;padding:12px 14px}
  .panel-body{padding:14px}
  .practice-grid{gap:9px}
  .practice-card{padding:13px 14px}
  .card-icon{width:32px;height:32px;border-radius:8px;margin-bottom:10px}
  .card-icon .icon{width:17px;height:17px}
  .card-title{font-size:15px;margin-bottom:4px}
  .practice-card>p{font-size:12.5px;line-height:1.6}
  .card-footer{margin-top:10px;padding-top:9px}
  .topic-row{gap:10px;padding:10px 0}
  .topic-name b{font-size:13.5px}
  .topic-years{margin-top:1px;line-height:1.5}
  .continue-panel h3{font-size:15px;line-height:1.7;margin:6px 0 12px}
  .archive-summary{gap:5px 14px;padding:10px 13px;margin-bottom:14px;font-size:12.5px}
  .archive-summary .icon{width:15px;height:15px}
  .filters{gap:8px;margin-bottom:14px}
  .search-field{min-height:40px;padding:0 11px;border-radius:9px}
  .search-field input{padding:8px 0}
  .select,input,.notes-input{min-height:40px;padding:8px 11px;border-radius:9px}
  .filters>.select{padding:8px 24px 8px 10px}
  .list-caption{padding:2px 0 10px}
  .question-list{gap:10px}
  .question-card{padding:14px}
  .question-title{font-size:15px;line-height:1.7;margin-top:9px}
  .question-head{gap:8px}
  .question-actions{gap:8px;margin-top:11px}
  .page-tabs{gap:10px 18px;margin-bottom:16px}
  .tab{padding:6px 2px 10px;min-height:38px}
  .list-more{padding:4px 0 2px}
  .active-filter{margin-bottom:12px}
  .practice-top{margin-bottom:12px}
}
@media(max-width:540px){
  .page-content{padding:10px 12px 12px}
  .welcome-row{margin-bottom:12px}
  .page-title{font-size:21px}
  .subtitle{font-size:12px}
  .header-actions{gap:7px}
  .header-actions .btn{flex:1 1 auto}
  .stat-grid{gap:8px;margin-bottom:14px}
  .stat-card{padding:11px}
  .stat-value{font-size:22px}
  .panel-header{padding:11px 13px}
  .panel-body{padding:12px 13px}
  .practice-grid{gap:8px}
  .practice-card{padding:13px}
  .archive-summary{padding:9px 12px;font-size:12px}
  .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:12px}
  .filters>.search-field{grid-column:1/-1}
  .filters>.select{min-width:0;width:100%;min-height:38px;padding:7px 22px 7px 9px}
  .search-field{min-height:38px}
  .question-card{padding:12px}
  .question-title{margin-top:7px}
  .page-tabs{gap:8px 15px;margin-bottom:13px}
  .tab{padding:5px 2px 9px;min-height:36px}
  .topic-row{padding:9px 0}
  .continue-panel h3{font-size:14.5px;margin:5px 0 10px}
  .install-banner{gap:10px;padding:10px 12px;margin-bottom:12px}
  .install-banner .install-icon{width:30px;height:30px}
  .install-banner .install-copy small{font-size:11.5px}
}

/* ===== Phone density pass =====
   Fit the working surface of each screen above the fold: slim banners, stats in
   one row, compact tiles and a tighter question list, so most features are
   reachable without scrolling. */
@media(max-width:600px){
  :root{--tabbar:52px}
  .topbar{min-height:48px;padding:4px 12px}
  .topbar-right{gap:6px}
  .page-content{padding:9px 10px 12px}
  .welcome-row{margin-bottom:8px;gap:8px}
  .eyebrow{font-size:10.5px;letter-spacing:.8px}
  .page-title{font-size:19px;line-height:1.35;margin-top:2px}
  .subtitle{font-size:11.5px;line-height:1.5;margin-top:2px}
  .header-actions{margin-top:7px;gap:6px}
  .header-actions .btn,.btn.small,.btn{min-height:36px;padding:6px 11px;font-size:12.5px}
  .icon-btn{width:36px;height:36px;min-width:36px}

  /* Overview: slim hero, four-in-a-row stats, three compact practice tiles. */
  .hero{min-height:0;margin-bottom:10px;border-radius:11px}
  .hero:after,.hero-art{display:none}
  .hero-content{width:100%;padding:13px 14px}
  .hero-label{font-size:10.5px}
  .hero-title{font-size:18px;line-height:1.4;letter-spacing:.5px;margin:5px 0 3px}
  .hero-title br{display:none}
  .hero-desc,.hero-source{display:none}
  .hero-actions{gap:8px 14px;margin-top:9px}
  .hero .btn.primary{min-height:36px;padding:7px 14px;font-size:13px}
  .hero-text-btn{min-height:36px;padding:7px 0;font-size:12.5px}
  .stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:11px}
  .stat-card{padding:8px 6px;border-radius:9px;text-align:center}
  .stat-top{justify-content:center;gap:0}
  .stat-label{font-size:10.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .stat-icon,.stat-note{display:none}
  .stat-value{font-size:19px;margin-top:3px;letter-spacing:-.5px}
  .stat-value small{font-size:10px;margin-left:1px}
  .dashboard-grid{gap:12px}
  .dashboard-main>section+section{margin-top:12px}
  .dashboard-aside .ai-card,.dashboard-aside .source-note{display:none}
  .section-heading{margin-bottom:8px}
  .section-title{font-size:14px;gap:5px}
  .section-link{font-size:12px;min-height:28px}
  .practice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .practice-card{display:block;padding:10px 8px;text-align:center;border-radius:10px}
  .practice-card .card-icon{display:none}
  .practice-card .card-title{font-size:12.5px;line-height:1.3;margin:0 0 3px}
  .practice-card>p{display:none}
  .practice-card .card-footer{display:block;border:0;margin:0;padding:0}
  .practice-card .card-footer>span{display:block;font-size:10.5px;line-height:1.3;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .practice-card .card-footer>.icon{display:none}
  .topic-list .topic-row:nth-child(n+4){display:none}
  .topic-row{padding:8px 0;gap:9px}
  .topic-name b{font-size:12.5px}
  .topic-count{font-size:13px;min-width:34px}
  .continue-panel h3{font-size:13.5px;line-height:1.6;margin:4px 0 9px}
  .study-plan .panel-body{padding:11px}
  .plan-progress strong{font-size:20px}
  .plan-progress{margin-bottom:8px}
  .plan-item{margin-top:12px}
  .plan-text b{font-size:12.5px}
  .plan-text small{font-size:11px}
  .study-plan .btn{margin-top:11px}

  /* Fixed controls and panels. */
  .panel-header{padding:10px 12px}
  .panel-body{padding:11px 12px}
  .settings-grid,.settings-grid.compact{gap:10px}
  .settings-grid.compact .panel-header{padding:10px 12px}
  .settings-grid.compact .panel-body{padding:11px 12px}

  /* Archive, filters and question list. */
  .archive-summary{padding:8px 11px;margin-bottom:10px;font-size:11.5px;gap:3px 12px}
  .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:10px}
  .filters>.search-field{grid-column:1/-1}
  .filters>.select{min-width:0;width:100%;min-height:36px;padding:6px 20px 6px 9px;font-size:12.5px}
  .search-field{min-height:36px;padding:0 10px}
  .search-field input{padding:7px 0;font-size:15px}
  .list-caption{padding:1px 0 8px;font-size:11.5px}
  .question-list{gap:8px}
  .question-card{padding:11px;border-radius:9px}
  .question-meta{gap:7px;font-size:11px}
  .question-title{font-size:13.5px;line-height:1.55;margin-top:6px}
  .question-actions{margin-top:8px;gap:6px}
  .question-actions .btn.small{min-height:32px;padding:5px 9px}
  .question-tags .tag{font-size:11px;padding:2px 6px}
  .page-tabs{gap:8px 14px;margin-bottom:11px}
  .tab{font-size:13px;padding:5px 2px 8px;min-height:34px}

  /* Knowledge map. */
  .knowledge-grid{gap:10px}
  .knowledge-card{padding:14px}
  .knowledge-card h2{font-size:16px;margin:10px 0 6px}
  .topic-rank{font-size:17px}
  .knowledge-count strong{font-size:20px}
  .topic-year-label{min-height:0;margin-top:7px}
  .insight-banner{padding:12px;margin-bottom:12px;gap:10px}

  /* Install banner. */
  .install-banner{gap:9px;padding:9px 11px;margin-bottom:10px}
  .install-banner .install-icon{width:28px;height:28px}
  .install-banner .install-copy b{font-size:13px}
  .install-banner .install-copy small{font-size:11px}
  .install-banner .btn{min-height:34px;padding:6px 12px}

  /* Navigation drawer. */
  .sidebar{padding:16px 12px 12px}
  .brand{padding-bottom:16px}
  .nav-item{min-height:40px;padding:8px 10px;margin:2px 0;font-size:13.5px}
  .nav-section{padding:10px 10px 5px}
  .module-card{margin:-6px 0 10px;padding:9px 10px}
}
/* Further density pass for phones: shrink every "cell" (question / review / mock
   cards, the search and filter boxes, the overview tiles and the other list rows)
   so much more fits on one screen. */
@media(max-width:600px){
  /* Icon buttons were inheriting a 44px touch height; keep them small and square. */
  .icon-btn{min-height:30px}

  /* Global chrome and panels. */
  .topbar{min-height:44px;padding:3px 10px}
  .topbar-right{gap:5px}
  .page-content{padding:7px 8px 10px}
  .welcome-row{margin-bottom:6px;gap:6px}
  .page-title{font-size:18px;line-height:1.3}
  .subtitle{font-size:11px;line-height:1.45}
  .header-actions{margin-top:6px;gap:5px}
  .header-actions .btn,.btn.small,.btn{min-height:32px;padding:5px 9px;font-size:12px}
  .panel-header{padding:8px 10px}
  .panel-body{padding:9px 10px}
  .section-heading{margin-bottom:6px}
  .section-title{font-size:13px;gap:4px}
  .section-link{min-height:26px}
  .dashboard-grid{gap:10px}
  .dashboard-main>section+section{margin-top:10px}

  /* Overview: slim hero, tighter stats and practice tiles. */
  .hero{margin-bottom:8px;border-radius:10px}
  .hero-content{padding:10px 12px}
  .hero-label{font-size:10px}
  .hero-title{font-size:17px;line-height:1.35;margin:4px 0 2px}
  .hero-actions{gap:6px 12px;margin-top:7px}
  .hero .btn.primary{min-height:32px;padding:6px 12px;font-size:12.5px}
  .hero-text-btn{min-height:32px;padding:6px 0;font-size:12px}
  .stat-grid{gap:5px;margin-bottom:9px}
  .stat-card{padding:6px 5px;border-radius:8px}
  .stat-label{font-size:10px}
  .stat-value{font-size:18px;margin-top:2px}
  .stat-value small{font-size:9.5px}
  .practice-grid{gap:6px}
  .practice-card{padding:8px 6px;border-radius:9px}
  .practice-card .card-title{font-size:12px;margin:0 0 2px}
  .practice-card .card-footer>span{font-size:10px}

  /* Archive, search and filter boxes. */
  .archive-summary{padding:6px 9px;margin-bottom:8px;font-size:11px;gap:2px 10px}
  .filters{gap:5px;margin-bottom:8px}
  .filters>.select{min-height:32px;padding:5px 18px 5px 8px;font-size:12px}
  .search-field{min-height:32px;padding:0 9px}
  .search-field .icon{width:16px;height:16px}
  .search-field input{padding:6px 0;font-size:14px}
  .list-caption{padding:1px 0 6px;font-size:11px}

  /* Question / review / mock cards. */
  .question-list{gap:5px}
  .question-card{padding:6px 8px;border-radius:8px}
  .question-head{gap:5px;align-items:center}
  .question-meta{gap:5px;font-size:10.5px;line-height:1.3}
  .question-meta .chip{font-size:10px;line-height:1.35;padding:1px 5px}
  .question-card .icon-btn{width:26px;height:26px;min-width:26px;min-height:26px}
  .question-card .icon-btn .icon{width:14px;height:14px}
  .question-title{font-size:12.5px;line-height:1.35;margin-top:4px}
  .question-actions{margin-top:4px;gap:5px}
  .question-actions .btn.small{min-height:28px;padding:3px 8px;font-size:11.5px}
  .question-tags .tag{font-size:10px;padding:1px 5px}
  .completed-label{font-size:10.5px}
  .completed-label .icon{width:11px;height:11px}
  .list-more{padding:1px 0}
  .page-tabs{gap:6px 12px;margin-bottom:8px}
  .tab{font-size:12.5px;padding:4px 2px 6px;min-height:30px}

  /* Knowledge map and the remaining list rows. */
  .knowledge-grid{gap:8px}
  .knowledge-card{padding:10px}
  .knowledge-card h2{font-size:15px;margin:6px 0 4px}
  .topic-rank{font-size:16px}
  .knowledge-count strong{font-size:18px}
  .insight-banner{padding:10px;margin-bottom:10px;gap:8px}
  .topic-row{padding:6px 0;gap:8px}
  .topic-name b{font-size:12px}
  .continue-panel h3{font-size:12.5px;margin:2px 0 7px}
  .plan-item{margin-top:10px}
  .study-plan .panel-body{padding:9px 10px}

  /* Install banner and admin rows. */
  .install-banner{gap:8px;padding:7px 9px;margin-bottom:8px}
  .install-banner .install-icon{width:26px;height:26px}
  .install-banner .install-copy b{font-size:12.5px}
  .install-banner .install-copy small{font-size:10.5px}
  .install-banner .btn{min-height:30px;padding:5px 10px}
  .admin-link{padding:7px 9px}
  .admin-link .icon-btn,.install-banner .icon-btn{width:26px;height:26px;min-width:26px;min-height:26px}

  /* Navigation drawer. */
  .sidebar{padding:14px 10px 10px}
  .brand{padding-bottom:12px}
  .nav-item{min-height:36px;padding:6px 9px;margin:1px 0;font-size:13px}
  .nav-section{padding:8px 9px 4px}
  .module-card{margin:-5px 0 8px;padding:8px 9px}
}
@media(max-width:370px){
  .stat-label{font-size:9.5px}
  .practice-card .card-title{font-size:11.5px}
  .hero-title{font-size:16px}
}
/* ===== 默写闯关 & 一轮刷题进度 ===== */
.dictation-panel{border:1px solid #e6d9bd;background:#fffdf6;scroll-margin-top:120px}
.dictation-panel .panel-header{background:#fdf6e7}
.dictation-panel.is-passed{border-color:#cfe0c2;background:#f7fbf3}
.dictation-input{min-height:132px;margin:0 0 10px}
.dictation-missing{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px;font-size:13px;color:#8a3a27}
.dictation-missing b{width:100%;font-weight:600}
.dictation-missing span{display:inline-block;padding:3px 9px;border-radius:20px;background:#fbefeb;border:1px solid #f0ddd5}
.dictation-panel.is-skipped{border-color:#e7d7b8;background:#fffdf3}
.dictation-points{margin-top:12px;font-size:13px;color:#3f5744}
.dictation-points>b{display:block;margin-bottom:8px;font-weight:600}
.dictation-points ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.dictation-points li{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:start;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.dictation-points li .icon{width:16px;height:16px;margin-top:2px}
.dictation-points li.point-covered .icon{color:#2f7d4f}
.dictation-points li.point-partial .icon{color:#b7791f}
.dictation-points li.point-missing .icon{color:#a63a27}
.dictation-points li span{grid-column:2;font-weight:600;color:var(--ink)}
.dictation-points li small{grid-column:2;color:var(--muted);font-size:12px;line-height:1.6}
.dictation-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.round-plan-panel{margin-bottom:24px}
.round-plan-nums{display:flex;gap:26px;flex-wrap:wrap;align-items:baseline;margin-bottom:12px}
.round-plan-nums strong{font-size:28px;font-weight:600;color:#425e37}
.round-plan-nums small{font-size:12px;color:var(--muted);margin-left:3px}
.round-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.plan-metric{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fafbf7}
.plan-metric>span{font-size:12px;color:var(--muted)}
.plan-metric>b{font-size:18px;color:#2f4636}
.plan-metric>small{font-size:12px;color:var(--muted)}
.plan-chip{display:inline-block;margin-top:2px;padding:2px 9px;border-radius:20px;font-size:12px;width:fit-content}
.plan-chip.ok{background:#e7f3ea;color:#285a3a}
.plan-chip.warn{background:#fbefeb;color:#8a3a27}
.plan-chip.generating{background:#f1f3ec;color:var(--muted)}
.plan-summary{margin-top:14px;font-size:13.5px;line-height:1.7;color:#3f5744}
.tomorrow-tasks{margin-top:16px;border-top:1px dashed var(--line);padding-top:14px}
.tomorrow-head{display:flex;align-items:center;gap:7px;font-weight:600;color:#3f5744;font-size:14px}
.tomorrow-head span{font-size:11px;color:var(--muted);font-weight:400;margin-left:auto}
.tomorrow-tasks ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.tomorrow-tasks li{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fafbf7}
.tomorrow-tasks li b{font-size:13.5px;color:#33483a;font-weight:600}
.tomorrow-tasks li>span{font-size:13px;color:#425e37;font-weight:600}
.tomorrow-tasks li small{grid-column:1 / -1;font-size:12px;color:var(--muted)}
.btn.is-locked{background:#e6d9bd;color:#6f5a2f;border-color:#e0d0ac}
@media(max-width:640px){
  .round-plan-grid{grid-template-columns:1fr}
  .round-plan-nums{gap:16px}
  .round-plan-nums strong{font-size:23px}
}
/* ===== 继续上次刷题（首页醒目入口） ===== */
.resume-banner{display:flex;align-items:center;gap:16px;border:1px solid #cfe0c1;background:linear-gradient(120deg,#f0f6e6,#e7f1da);border-radius:12px;padding:16px 20px;margin-bottom:18px}
.resume-banner-icon{width:46px;height:46px;border-radius:50%;background:var(--green);color:var(--lime);display:grid;place-items:center;flex:none}
.resume-banner-copy{min-width:0;flex:1}
.resume-banner-copy b{display:block;font-size:17px;color:var(--green-dark);margin:2px 0 3px}
.resume-banner-copy p{font-size:13.5px;color:#3f5744;line-height:1.7;overflow-wrap:anywhere}
.resume-banner-copy small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.resume-banner .btn{flex:none}
/* ===== 模拟考试 ===== */
.exam-setup{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;align-items:start}
.exam-tips h3{display:flex;align-items:center;gap:7px;font-size:15px;color:#33483a;margin-bottom:8px}
.exam-tips ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.exam-tips li{position:relative;padding-left:18px;font-size:13px;line-height:1.8;color:#42563f}
.exam-tips li:before{content:"";position:absolute;left:2px;top:9px;width:6px;height:6px;border-radius:50%;background:var(--green)}
.exam-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 18px;margin-bottom:16px;position:sticky;top:0;z-index:5}
.exam-bar-left{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
.exam-progress{font-size:13px;color:var(--muted)}
.exam-timer{font-variant-numeric:tabular-nums;font-size:26px;font-weight:700;letter-spacing:1.5px;color:var(--green-dark);font-family:"SF Mono",ui-monospace,Menlo,Consolas,monospace}
.exam-timer.is-low{color:#c4583f;animation:exam-pulse 1.4s ease-in-out infinite}
@keyframes exam-pulse{50%{opacity:.55}}
.exam-bar-right{display:flex;align-items:center;gap:8px}
.exam-layout{display:grid;gap:16px}
.exam-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted)}
.exam-result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.exam-result-stats>div{background:#f6f8f1;border:1px solid var(--line);border-radius:10px;padding:14px 16px;text-align:center}
.exam-result-stats strong{display:block;font-size:24px;color:var(--green-dark)}
.exam-result-stats small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.exam-answer-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.exam-answer-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 13px;border:1px solid var(--line);border-radius:9px;background:#fafbf7;font-size:13px;color:#42563f}
.exam-answer-list li span{min-width:0;overflow-wrap:anywhere}
.exam-answer-list li b{flex:none;font-size:12px;color:#8a3a27}
.exam-answer-list li b.ok{color:#285a3a}
body.in-exam .site-footer{display:none}
@media(max-width:800px){
  .exam-setup{grid-template-columns:1fr}
  .exam-bar{position:static}
  .exam-timer{font-size:22px}
  .exam-result-stats{grid-template-columns:1fr}
  body.in-exam .tabbar{display:none}
}
@media(max-width:540px){
  .resume-banner{flex-wrap:wrap;gap:12px;padding:14px 16px}
  .resume-banner .btn{width:100%;justify-content:center}
  .exam-bar{padding:10px 13px;gap:8px}
  .exam-bar-right .btn{flex:1 1 auto;justify-content:center}
}

