:root{
  color-scheme:light;
  --dark:#17342d;--dark2:#102822;--ink:#23352f;--muted:#748178;
  --line:#e4e8df;--bg:#f6f8f4;--white:#fff;--lime:#d7ef9a;
  --accent:#b9df75;--red:#b85044;--redbg:#fff1eb;--green:#327853;
  --greenbg:#eaf8e8;--amber:#a46d27;--amberbg:#fff8e7;
  --shadow:0 12px 32px rgba(14,39,31,.05);
}
*{box-sizing:border-box}
html{background:var(--bg);font-size:16px;scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.46}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.42}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9fc969;outline-offset:3px}
.app{min-height:100dvh;display:flex;flex-direction:column}
.app-header{height:80px;padding:0 max(20px,calc((100% - 1040px)/2));display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(30,67,52,.085);background:rgba(255,255,255,.87);backdrop-filter:blur(16px);z-index:8;position:sticky;top:0}
.brand{display:flex;align-items:center;gap:10px;border:0;background:none;color:var(--dark);padding:0}
.brand-mark{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:var(--dark);color:var(--lime);font-size:16px;font-weight:850;letter-spacing:-.5px}
.brand-text{font-weight:850;font-size:23px;letter-spacing:-1px}.brand-text span{font-weight:400;color:#6e8779;letter-spacing:-.8px}
.header-actions{display:flex;align-items:center;gap:11px}
.sync-indicator{font-size:12px;font-weight:750;color:var(--green);border:1px solid #cfe9d0;background:#ecf9ee;border-radius:100px;padding:9px 12px;white-space:nowrap}
.sync-indicator.offline{color:#8c897d;border-color:#e5e3d9;background:#f4f2e9}
.sync-indicator.pending{color:#967128;border-color:#f1dfa9;background:#fff8df}
.icon-button{font-size:23px;width:38px;height:38px;border:0;background:transparent;color:var(--dark);border-radius:12px}
.icon-button:hover{background:#f0f4eb}
.main{flex:1;width:100%;max-width:1040px;margin:0 auto;padding:36px 20px 76px}
.footer{min-height:56px;padding:12px max(20px,calc((100% - 1040px)/2));display:flex;justify-content:space-between;gap:12px;color:#919b93;font-size:11px;background:#fff;border-top:1px solid var(--line)}
.hero{border-radius:30px;background:var(--dark);min-height:300px;overflow:hidden;position:relative;display:grid;grid-template-columns:1.4fr .6fr;color:white;box-shadow:0 20px 44px rgba(21,53,44,.12)}
.hero-body{padding:38px 44px;position:relative;z-index:2}.hero-overline,.eyebrow{font-size:10px;letter-spacing:2.1px;font-weight:850;color:#a8cc8c;margin:0 0 16px}
.hero h1{font-size:clamp(38px,5.6vw,58px);letter-spacing:-2.1px;line-height:1.08;margin:0 0 18px;font-weight:800}
.hero h1 em,.auth-art h1 em{font-style:normal;color:var(--lime)}
.hero p:not(.hero-overline){max-width:440px;font-size:14px;line-height:1.65;color:#c2d4c9;margin:0 0 20px}
.hero-art{position:relative;min-height:260px;display:grid;place-items:center;isolation:isolate}
.hero-orbit{position:absolute;border:1px solid #527765;border-radius:50%;width:290px;height:290px;transform:rotate(-22deg) scaleX(1.3);opacity:.5}
.orbit-b{transform:rotate(53deg) scaleX(.8);width:340px;height:340px;border-color:#7aa478}
.hero-number{z-index:2;width:163px;height:163px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--lime);color:var(--dark);font-size:68px;line-height:1;font-weight:850;letter-spacing:-3px;box-shadow:0 14px 50px rgba(12,24,18,.12)}
.hero-number small{font-size:13px;letter-spacing:0;margin-top:10px;font-weight:700}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;margin-top:17px;border:1px solid var(--line);border-radius:20px;padding:20px 8px;box-shadow:var(--shadow)}
.metrics>div{display:flex;flex-direction:column;align-items:center;gap:3px}.metrics>div+div{border-left:1px solid var(--line)}
.metrics b{font-size:28px;font-weight:800;line-height:1.2;color:var(--dark);letter-spacing:-1px}.metrics span{font-size:12px;color:var(--muted)}
.section-label{display:flex;justify-content:space-between;align-items:center;margin:30px 0 14px;gap:16px}
.section-label h2{font-size:20px;letter-spacing:-.5px;margin:0;font-weight:800}.section-label span{font-size:12px;color:var(--muted)}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mode-card{display:flex;align-items:center;text-align:left;gap:15px;padding:20px;border:1px solid var(--line);background:#fff;border-radius:17px;min-height:104px;transition:transform .15s,border-color .15s,box-shadow .15s}
.mode-card:hover{transform:translateY(-2px);border-color:#c6dabf;box-shadow:var(--shadow)}
.mode-icon{flex:0 0 55px;height:55px;border-radius:16px;display:grid;place-items:center;color:#2f5f46;background:#e9f4e2;font-size:27px;font-weight:450}
.mode-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.mode-copy strong{font-size:16px;color:var(--dark)}.mode-copy small{color:var(--muted);font-size:12px;line-height:1.4}
.mode-arrow{font-size:30px;font-weight:300;color:#b7c1b6}
.footnote{font-size:11px;color:var(--muted);margin-top:20px;line-height:1.6}
.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:45px;font-size:14px;font-weight:750;padding:11px 22px;border-radius:13px;border:1px solid transparent;text-decoration:none}
.button span{font-size:19px;font-weight:400}
.button-primary{background:var(--dark);color:#fff}.button-primary:hover:not(:disabled){background:#214b3f}
.button-accent{background:var(--lime);color:var(--dark)}.button-accent:hover{background:#e6f6b2}
.button-outline{background:#fff;color:var(--dark);border-color:#d4dfd1}.button-quiet{background:#f0f2ee;color:var(--ink)}
.button-danger{background:#fff1ef;color:#ab4537;border-color:#f3d0c9}.button-wide{width:100%}
.action-stack{margin:21px 0;display:flex;flex-wrap:wrap;gap:10px}.action-stack .button{flex:1}
.screen-head{margin-bottom:26px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.screen-head .eyebrow{color:#709174;margin-bottom:9px}.screen-head h1{font-size:clamp(28px,4vw,38px);letter-spacing:-1.3px;margin:0;line-height:1.14;color:var(--dark)}
.lead{font-size:14px;color:var(--muted);line-height:1.5;margin:12px 0 0;max-width:650px}
.section-list{display:grid;gap:10px}
.section-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:17px 20px;display:flex;align-items:center;gap:17px}
.section-index{font-size:21px;color:#c6d2c8;font-weight:850;min-width:34px}
.section-info{flex:1;min-width:0}.section-info strong{font-size:14px;display:block;line-height:1.4}.section-sub{color:var(--muted);font-size:11px;margin:5px 0}
.section-open{display:flex;align-items:center;gap:9px;background:#eaf3e4;border:0;border-radius:12px;padding:10px 15px;color:var(--dark);font-weight:750;font-size:12px;white-space:nowrap}.section-open span{font-size:21px;font-weight:300;line-height:1}
.thin-progress{background:#ecf0e8;height:4px;border-radius:2px;overflow:hidden;max-width:420px;margin-top:10px}.thin-progress span{background:#8bb776;height:100%;display:block;border-radius:2px}
.question-frame{margin:auto;max-width:780px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:27px 33px 22px;box-shadow:var(--shadow)}
.question-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;font-weight:750;color:var(--dark)}
.back-link{border:0;background:transparent;color:var(--muted);font-size:13px;padding:5px 0}
.star-btn{background:#f3f5f0;border:0;color:#a3aaa0;border-radius:12px;height:42px;width:42px;font-size:25px;line-height:1}.star-btn.active{color:#bb8b27;background:#fcf3d9}
.progress-track{height:6px;border-radius:4px;background:#edf2e9;overflow:hidden}.progress-track>span{display:block;height:100%;background:#8fbd79;border-radius:4px;transition:width .3s}
.question-kicker{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:26px;font-size:12px;color:#64876a;font-weight:750;line-height:1.5}
.chip{padding:4px 8px;font-size:10px;border-radius:8px;background:#eff2ed;color:#87918a;white-space:nowrap}
.question-title{font-size:clamp(20px,3.6vw,27px);line-height:1.4;color:var(--dark);letter-spacing:-.45px;margin:18px 0 24px;font-weight:750}
.answer-form{display:flex;flex-direction:column;gap:9px}
.choice{display:flex;align-items:flex-start;gap:12px;padding:15px 17px;border-radius:13px;border:1.5px solid #e0e7dd;background:#fff;cursor:pointer;transition:background .12s,border-color .12s}
.choice:hover{background:#f7faf4;border-color:#c6d8bb}.choice.selected{background:#f0f8e8;border-color:#8bae72}
.choice input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.choice:focus-within{outline:2px solid #8cb475;outline-offset:1px}
.choice-control{width:20px;height:20px;border-radius:50%;border:2px solid #b8c8b8;flex:0 0 20px;margin-top:1px;position:relative}
.choice.selected .choice-control{border-color:#377348;background:#377348}.choice.selected .choice-control:after{content:'';position:absolute;inset:5px;border-radius:50%;background:#fff}
.choice input[type=checkbox]~.choice-control{border-radius:6px}.choice input[type=checkbox]:checked~.choice-control:after{content:'✓';color:white;background:none;position:absolute;inset:-1px;font-size:15px;font-weight:800;text-align:center}
.choice-text{flex:1;min-width:0;line-height:1.45;font-size:14px;color:#334239;overflow-wrap:anywhere}
.choice-text strong{color:#233c2d;display:inline}
.question-actions{margin-top:16px}.question-bottom{display:flex;justify-content:space-between;gap:15px;margin-top:18px;font-size:11px;color:var(--muted)}
.small-action{border:0;background:transparent;color:#61806b;font-weight:700;font-size:12px}
.feedback{max-width:780px;margin:0 auto 15px;border-radius:18px;padding:17px 20px;border:1px solid #bee5c0;background:var(--greenbg)}
.feedback.wrong{background:var(--redbg);border-color:#f2d5d0}.feedback.disputed{background:var(--amberbg);border-color:#ebd6aa}
.feedback-row{display:flex;align-items:center;gap:12px}.feedback-icon{width:38px;height:38px;flex:0 0 38px;border-radius:11px;display:grid;place-items:center;background:#d0edcf;color:#317e4a;font-size:25px;font-weight:800}
.feedback.wrong .feedback-icon{background:#f8d7d0;color:#b35042}.feedback.disputed .feedback-icon{background:#f5e2b7;color:#9f7427}
.feedback-row>div:nth-child(2){flex:1;min-width:0}.feedback-row strong{display:block;font-size:15px}.feedback-row p{font-size:12px;margin:3px 0 0;line-height:1.55}
.feedback-row>button{align-self:start;border:0;background:transparent;color:#758574;font-size:21px}
.feedback details{margin-top:8px}.feedback summary{font-size:12px;color:#496b4c;font-weight:700;cursor:pointer;padding:3px 0;list-style:none}.feedback summary:before{content:'＋';padding-right:7px}.feedback details[open] summary:before{content:'−'}
.feedback-detail{font-size:12px;line-height:1.7;border-top:1px solid rgba(51,93,62,.12);margin-top:9px;padding-top:9px;white-space:pre-line}
.feedback-detail p{margin:7px 0}.mini-muted{opacity:.75}
.warning-inline,.exam-note{font-size:12px;background:var(--amberbg);border:1px solid #ecd9aa;border-radius:10px;padding:10px;margin:13px 0 0;color:#8d6a31}
.exam-note{background:#eef3f2;color:#4b6660;border-color:#dfe7e2}
.result-card{text-align:center;background:var(--dark);color:white;padding:35px 20px;border-radius:24px}
.result-medal{font-size:30px;color:var(--lime)}.result-percent{font-size:70px;font-weight:850;letter-spacing:-3px;color:var(--lime)}
.result-card h2{font-size:18px;font-weight:700;margin:0}.result-card p{font-size:12px;color:#b8d3c3;margin:9px 0 0}
.result-list{margin-top:20px;display:grid;gap:8px}.result-row,.history-row{display:flex;align-items:center;gap:12px;padding:14px;border-radius:13px;background:#fff;border:1px solid var(--line)}
.result-row strong,.history-row strong{font-size:13px;display:block}.result-row small,.history-row small{font-size:11px;color:var(--muted);display:block;margin-top:3px}
.result-state{width:29px;height:29px;border-radius:9px;flex:0 0 29px;display:grid;place-items:center;font-weight:800}
.result-state.yes{color:var(--green);background:var(--greenbg)}.result-state.no{color:var(--red);background:var(--redbg)}.result-state.uncertain{color:var(--amber);background:var(--amberbg)}
.stat-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:11px}.stat-grid>div{display:flex;justify-content:center;align-items:center;flex-direction:column;min-height:110px;border:1px solid var(--line);background:#fff;border-radius:17px;padding:14px}
.stat-grid .stat-hero{background:var(--dark);border-color:var(--dark);color:var(--lime)}.stat-grid b,.stat-grid strong{font-size:33px;letter-spacing:-1px;line-height:1.25}.stat-grid span{font-size:12px;color:var(--muted);margin-top:5px}.stat-hero span{color:#b6d3ba}
.stats-sections,.history-list{display:grid;gap:8px}.stat-section{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;align-items:center;gap:15px;justify-content:space-between}
.stat-section strong{font-size:13px;display:block}.stat-section small{font-size:11px;color:var(--muted);display:block;margin-top:3px}.stat-section b{font-size:18px;color:var(--dark)}
.fav-list,.found-list{display:grid;gap:8px}.found-item{background:#fff;border:1px solid var(--line);padding:16px;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;width:100%}
.found-item strong{font-size:12px;color:#63816b}.found-item p{color:var(--ink);font-size:14px;line-height:1.45;margin:3px 0 0}.found-item span{color:#a8b9ab;font-size:25px}
.search-input{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #cfded0;border-radius:14px;padding:0 15px;height:57px}.search-input span{font-size:30px;color:#84a58b}
.search-input input{border:0;flex:1;min-width:0;outline:none;font-size:15px;color:var(--ink)}.search-count{font-size:12px;color:var(--muted);margin:17px 0}.small-indent{margin:18px 2px}
.panel{background:#fff;border-radius:18px;border:1px solid var(--line);padding:22px;margin-bottom:14px}.panel h2{font-size:17px;margin:0 0 12px}.panel .muted{margin-bottom:18px}
.muted{color:var(--muted);font-size:13px;line-height:1.6}
.setup-line{padding:13px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:14px}.setup-line select{padding:8px 11px;border-radius:10px;border:1px solid var(--line);min-width:85px;background:white}
.field-label{font-size:12px;font-weight:750;display:block;margin-bottom:7px}.field{width:100%;height:48px;padding:11px 13px;border-radius:12px;border:1px solid #cfdace;margin-bottom:9px;outline:none}
.check-line{font-size:12px;display:flex;gap:9px;align-items:center;color:#637568;margin:8px 0 19px}.check-line input{accent-color:#507d4a}
.settings-status{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);gap:10px}.settings-status strong{color:var(--ink);font-size:12px;text-align:right}
.danger-panel{margin-top:14px}.empty-panel{text-align:center;background:#fff;border:1px dashed #d4ded1;border-radius:17px;padding:55px 22px}.empty-icon{font-size:47px;color:#87a880}
.empty-panel h2{font-size:19px;margin:7px}.empty-panel p{color:var(--muted);font-size:13px}
.notice{max-width:780px;margin:0 auto 18px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:12px;font-size:12px}
.notice button{border:0;background:transparent;font-size:20px;color:inherit}.notice.error{background:#fff0ee;color:#9c4437}.notice.success{background:#e9f7e7;color:#3c7042}.notice.offline-note{background:#f3f0e7;color:#776d54}
.auth-layout{min-height:550px;display:grid;grid-template-columns:1fr 1fr;gap:15px}
.auth-art{background:var(--dark);border-radius:25px;padding:45px;color:#fff;display:flex;flex-direction:column;justify-content:center}
.auth-logo{width:70px;height:70px;border-radius:18px;background:var(--lime);color:var(--dark);display:grid;place-items:center;font-size:27px;font-weight:850;margin-bottom:40px}
.auth-art h1{font-size:52px;line-height:1.1;letter-spacing:-2px;margin:0 0 20px}.auth-art p{font-size:14px;line-height:1.7;max-width:350px;color:#c5d8c8}
.auth-card{border-radius:25px;padding:45px;display:flex;flex-direction:column;justify-content:center;background:#fff;border:1px solid var(--line)}
.auth-step{color:#91aa87;font-weight:800;font-size:10px;letter-spacing:2px}.auth-card h2{font-size:29px;letter-spacing:-1px;margin:13px 0}
.auth-card>p{font-size:13px;color:var(--muted);line-height:1.65}.auth-foot{margin-top:18px;font-size:11px!important}
@media(max-width:700px){
  .app-header{height:66px;padding:0 16px}.brand-mark{width:38px;height:38px;border-radius:10px}.brand-text{font-size:19px}.brand-text span{font-size:18px}
  .sync-indicator{font-size:10px;padding:7px 8px}.header-actions{gap:3px}.icon-button{font-size:20px;width:34px}
  .main{padding:18px 14px 48px}.footer{padding:14px;font-size:10px;flex-direction:column;gap:4px}
  .hero{grid-template-columns:1fr;min-height:auto;border-radius:21px}.hero-body{padding:26px 25px 31px}.hero h1{font-size:43px}.hero p:not(.hero-overline){font-size:12px;max-width:270px}
  .hero-art{position:absolute;right:-15px;bottom:10px;min-height:auto;width:140px;height:150px;opacity:.55;pointer-events:none}.hero-number{width:100px;height:100px;font-size:42px}.hero-number small{font-size:10px;margin-top:4px}.hero-orbit{width:180px;height:180px}.orbit-b{width:205px;height:205px}
  .metrics{padding:16px 4px}.metrics b{font-size:24px}.metrics span{font-size:11px}
  .mode-grid{grid-template-columns:1fr;gap:9px}.mode-card{min-height:82px;padding:13px;border-radius:14px;gap:12px}.mode-icon{height:47px;flex-basis:47px;font-size:23px}.mode-copy strong{font-size:15px}.mode-copy small{font-size:11px}
  .section-label{margin-top:23px}.section-label h2{font-size:18px}
  .section-card{padding:12px;gap:9px}.section-index{font-size:16px;min-width:25px}.section-open{padding:8px 9px;font-size:11px}.section-info strong{font-size:12px}
  .question-frame{padding:17px 16px 19px;border-radius:17px}.question-kicker{font-size:11px;margin-top:21px}.question-title{font-size:20px;margin:16px 0 22px;line-height:1.42}
  .choice{padding:12px 12px;gap:10px;border-radius:11px}.choice-text{font-size:14px}.choice-control{width:18px;height:18px;flex-basis:18px}
  .question-bottom{font-size:10px}.question-actions{margin-top:12px}.feedback{padding:13px 14px}.feedback-row p{font-size:12px}
  .screen-head h1{font-size:29px}.lead{font-size:12px}.stat-grid{grid-template-columns:repeat(3,1fr)}.stat-grid .stat-hero{grid-column:1/-1;min-height:100px}
  .stat-grid>div{min-height:86px}.stat-grid b{font-size:26px}.stat-grid strong{font-size:42px}.stat-grid span{font-size:11px}
  .auth-layout{grid-template-columns:1fr;min-height:auto}.auth-art{padding:28px;min-height:220px}.auth-logo{margin-bottom:16px;width:48px;height:48px;font-size:20px}.auth-art h1{font-size:37px;margin-bottom:10px}.auth-art p{font-size:12px;margin:0}.auth-card{padding:27px 23px}
  .panel{padding:19px}.action-stack{flex-direction:column}.action-stack .button{width:100%}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

.result-detail{border-radius:13px;background:#fff;border:1px solid var(--line);overflow:hidden}
.result-detail summary{display:flex;align-items:center;gap:12px;padding:14px;cursor:pointer;list-style:none}
.result-detail summary::-webkit-details-marker{display:none}
.result-detail summary>span:nth-child(2){flex:1}
.result-detail summary strong{font-size:13px;display:block}
.result-detail summary small{font-size:11px;color:var(--muted);display:block;margin-top:3px}
.result-detail .detail-chevron{font-size:20px;color:var(--muted)}
.result-explanation{border-top:1px solid var(--line);padding:13px 15px;font-size:12px;line-height:1.65;white-space:pre-line}
.result-explanation p{margin:6px 0}
