:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#292b27;background:#f8f9f6;font-size:14px;--ink:#292b27;--muted:#6d7069;--line:#e4e6df;--red:#a3342b;--tint:#f8ebe7;--surface:#fff;--green:#2d6a4e}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button{color:inherit}button:disabled{opacity:.4;cursor:not-allowed}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a3342b;outline-offset:3px}button{border:0;background:none}svg{width:20px;height:20px;display:inline-block;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}button{transition:background .15s,color .15s}h1,h2,h3,p{margin:0}h1{font-size:34px;line-height:1.2;letter-spacing:-1.2px;font-weight:650}h2{font-size:20px;letter-spacing:-.5px}h3{font-size:16px}small,.muted{color:var(--muted)}.skip{position:fixed;top:-100px;left:20px;z-index:40;background:#fff;padding:12px}.skip:focus{top:10px}.loading{padding:80px;text-align:center;color:var(--muted)}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid var(--line);padding:31px 18px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;margin:0 10px 42px;font-size:20px;font-weight:740;letter-spacing:-.8px}.brandmark{width:33px;height:33px;border-radius:9px;background:var(--red);display:grid;place-items:center;color:#fff9f0}.brandmark svg{fill:currentColor;stroke:none;width:26px;height:26px}.brand small{font-size:9px;letter-spacing:1.4px;display:block;font-weight:600;margin-top:3px}.nav-label{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#878a81;padding:0 14px;margin-bottom:12px}.nav{display:flex;flex-direction:column;gap:5px}.nav a{display:flex;align-items:center;gap:12px;text-decoration:none;padding:12px 14px;border-radius:7px;font-size:13px;color:#676b62;min-height:43px}.nav a svg{width:18px;height:18px}.nav a:hover{background:#f5f6f2}.nav a.active{background:var(--tint);color:#953127;font-weight:650}.nav .count{margin-left:auto;font-size:11px;min-width:22px;text-align:center;color:inherit}.sidebar-bottom{margin-top:auto}.progress-box{border:1px solid var(--line);border-radius:9px;padding:16px 14px;margin:20px 3px}.progress-box .top{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600}.progress-box p{font-size:11px;color:var(--muted);margin-top:9px;line-height:1.6}.bar{height:5px;background:#e9ece5;border-radius:8px;overflow:hidden;margin:12px 0 0}.bar span{display:block;height:100%;background:var(--green);border-radius:8px;transition:width .2s}.save-note{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;margin:16px 14px 0}.save-note svg{width:14px;height:14px}.export{font-size:11px;color:#666c60;padding:12px 14px;display:flex;gap:7px;align-items:center}.export svg{width:14px;height:14px}.shell{margin-left:232px;min-height:100vh}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;gap:18px}.breadcrumb{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}.breadcrumb strong{color:#454940;font-weight:500}.breadcrumb svg{width:14px;height:14px;color:#a2a69b}.top-right{display:flex;align-items:center;gap:19px}.top-right span{color:var(--muted);font-size:11px}.top-right a{font-size:12px;text-decoration:none;display:flex;gap:6px;align-items:center}.top-right svg{width:14px;height:14px}.menu-button{display:none}.main{max-width:1480px;margin:0 auto;padding:38px 42px 24px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:31px}.eyebrow{text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--red);margin-bottom:11px}.subtitle{color:var(--muted);font-size:13px;line-height:1.7;margin-top:10px}.primary{background:var(--red);color:white;border:1px solid var(--red);padding:11px 16px;border-radius:6px;display:inline-flex;gap:9px;align-items:center;font-size:12px;font-weight:600;min-height:40px}.primary:hover{background:#8b2b24}.primary svg{width:16px;height:16px}.secondary{background:#fff;border:1px solid #daddd3;padding:10px 14px;min-height:39px;border-radius:6px;font-size:12px;display:inline-flex;align-items:center;gap:8px}.secondary:hover{background:#f3f5ef}.section-caption{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:#777c6f;margin-bottom:12px;font-weight:650}.topics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:29px}.topic{background:#fff;border:1px solid var(--line);text-align:left;padding:17px 16px;border-radius:9px;position:relative;min-height:115px}.topic:hover{border-color:#babfaf;background:#fcfdf9}.topic.active{border-color:var(--red);background:#fffaf7;box-shadow:inset 0 0 0 .4px var(--red)}.topic-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.topic-icon{width:32px;height:32px;border-radius:7px;display:grid;place-items:center;background:#f3eee1;color:#84743a}.topic-icon.discrete{background:#eaf0e8;color:#536d49}.topic-icon.strategy{background:#eeedf6;color:#77668c}.topic-icon.general{background:#f8eae4;color:#9b5d44}.topic-top>span{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.topic-title{display:flex;justify-content:space-between;gap:5px;align-items:center;font-size:12px;font-weight:600}.topic-title svg{width:14px;height:14px;color:#919789}.topic.active .topic-title{color:var(--red)}.library{border:1px solid var(--line);background:#fff;border-radius:9px;overflow:hidden}.library-toolbar{padding:20px 22px 17px;display:flex;align-items:center;justify-content:space-between;gap:14px}.title-count{display:flex;align-items:center;gap:9px}.title-count h2{font-size:16px;letter-spacing:-.3px}.pill{font-size:10px;background:#f0f2eb;color:#686f5e;padding:3px 7px;border-radius:4px;font-weight:600}.search{display:flex;align-items:center;gap:9px;border:1px solid #dfe3d7;background:#fff;border-radius:6px;padding:0 11px;width:268px;min-height:36px;color:#858b7d}.search svg{width:16px;height:16px}.search input{border:0;outline:none;width:100%;min-width:0;font-size:12px;padding:9px 0;background:transparent;color:var(--ink)}.search:focus-within{outline:2px solid var(--red);outline-offset:1px}.search input::placeholder{color:#767e6b;opacity:1}.search kbd{font-family:inherit;border:1px solid #e4e7df;padding:1px 5px;border-radius:3px;font-size:10px;color:#79816e}.filters{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:0 22px 19px;flex-wrap:wrap}.difficulties{display:flex;align-items:center;gap:4px}.filter-label{font-size:11px;color:var(--muted);margin-right:7px}.diff-button{padding:6px 10px;border-radius:5px;color:#767b70;font-size:11px;display:flex;align-items:center;gap:6px;min-height:31px;border:1px solid transparent}.diff-button:hover{background:#f5f6f2}.diff-button.active{background:#f0f2eb;border-color:#e3e6dc;color:#33382e;font-weight:600}.dot{width:5px;height:5px;background:#658d67;border-radius:50%;display:inline-block}.dot.medium{background:#b18a30}.dot.hard{background:#ba6a4f}.dot.deadly{background:#80678f}.filter-right{display:flex;gap:10px;align-items:center}.filter-right select,.sort{border:1px solid var(--line);border-radius:5px;background:white;padding:6px 9px;font-size:11px;color:#646c59;min-height:31px}.clear{color:var(--red);font-size:11px;text-decoration:underline;padding:8px}.active-topic{font-size:11px;background:var(--tint);color:var(--red);padding:6px 9px;border-radius:4px;display:flex;align-items:center;gap:8px}.active-topic button{padding:0;line-height:1}.active-topic svg{width:12px;height:12px}.question-table{width:100%;border-collapse:collapse;table-layout:fixed}.question-table th{text-align:left;font-size:9px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;background:#fafbf8;color:#818675;height:38px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.question-table .check-col{width:54px;text-align:center}.question-table .number-col{width:42px;color:#93998a;font-size:11px;font-variant-numeric:tabular-nums}.question-table .section-col{width:155px}.question-table .difficulty-col{width:105px}.question-table .notes-col{width:62px;text-align:center}.question-table .star-col{width:53px;text-align:center}.question-table td{padding:14px 0;height:72px;border-bottom:1px solid #eef0e9;font-size:12px;vertical-align:middle}.question-table tr:last-child td{border:0}.question-table tbody tr:hover{background:#fcfdf9}.question-title{text-align:left;padding:0;max-width:100%;font-weight:560;font-size:12px;display:block;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.question-title:hover{color:var(--red)}.question-sub{font-size:10px;color:#7c8372;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:26px}.question-table .section-col{font-size:11px;color:#747c69}.checkbox{width:15px;height:15px;accent-color:var(--green);cursor:pointer;margin:0;vertical-align:middle}.completed .question-title{color:#7e8774}.completed .question-title:after{content:'Done';margin-left:8px;color:var(--green);font-size:9px;font-weight:500}.badge{font-size:10px;display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:4px;background:#edf5ec;color:#4b774b}.badge.medium{background:#faf3e2;color:#927325}.badge.hard{background:#faeeea;color:#a25940}.badge.deadly{background:#f0ecf5;color:#795f8e}.icon-button{padding:8px;border-radius:5px;line-height:1;color:#939b87;min-width:33px;min-height:33px}.icon-button svg{width:16px;height:16px}.icon-button:hover{background:#f1f3ec;color:#535e48}.icon-button.starred{color:#ad8032}.icon-button.starred svg{fill:#f8db8d}.icon-button.has-note{color:var(--red)}.table-footer{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-top:1px solid var(--line);font-size:10px;color:#7d8471}.pagination{display:flex;gap:5px;align-items:center}.pagination button{width:28px;height:28px;border:1px solid transparent;border-radius:4px;color:#6b755f;font-size:10px}.pagination button.active{background:#f0f2eb;border-color:#dfe4d5;color:#36402e;font-weight:600}.pagination button:hover:not(:disabled){background:#f0f2eb}.pagination svg{width:13px;height:13px}.footer{display:flex;justify-content:space-between;gap:16px;color:#7f8674;font-size:10px;padding:22px 2px;line-height:1.6}.footer a{text-decoration:none;border-bottom:1px solid #c8cebe}.empty{padding:65px 22px;text-align:center}.empty>svg{width:32px;height:32px;color:#8b957e;margin-bottom:16px}.empty h3{font-size:16px}.empty p{font-size:12px;color:var(--muted);line-height:1.7;margin:9px auto 18px;max-width:370px}.back{font-size:12px;color:#6d7563;text-decoration:none;display:inline-flex;align-items:center;gap:8px;margin-bottom:24px}.back svg{width:16px;height:16px}.detail-heading{margin-bottom:28px}.detail-meta{display:flex;gap:12px;align-items:center;margin-bottom:13px;color:var(--muted);font-size:11px}.detail-heading h1{font-size:30px}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.puzzle-paper{background:#fff;border:1px solid var(--line);border-radius:9px;padding:30px}.article-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:23px;border-bottom:1px solid var(--line);margin-bottom:23px}.article-header span{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#7c8470}.puzzle-text{font-size:14px;line-height:1.9;overflow-wrap:anywhere;max-width:72ch}.puzzle-text p{margin:0 0 18px}.puzzle-text img{max-width:100%;height:auto;max-height:360px;object-fit:contain;margin:15px auto;display:block}.puzzle-text h2,.puzzle-text h3{font-size:17px;margin:24px 0 13px}.puzzle-text pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:#f5f6f2;padding:12px}.puzzle-text table{border-collapse:collapse;display:block;overflow-x:auto;max-width:100%}.puzzle-text td,.puzzle-text th{border:1px solid var(--line);padding:8px}.puzzle-text math{font-size:1.05em}.puzzle-text math[display="block"]{overflow-x:auto;max-width:100%;padding:10px 0}.puzzle-text a{color:var(--red)}.puzzle-text ul,.puzzle-text ol{padding-left:22px}.puzzle-text blockquote{margin:15px 0;border-left:3px solid #d3d9ca;padding-left:15px;color:#69735d}.reveal{border:1px solid var(--line);border-radius:6px;margin-top:15px}.reveal summary{padding:15px 17px;font-size:12px;font-weight:600;cursor:pointer}.reveal summary:hover{background:#f7f9f3}.reveal[open] summary{border-bottom:1px solid var(--line)}.reveal .puzzle-text{padding:18px 20px 3px}.puzzle-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}.done-label{display:flex;gap:9px;align-items:center;font-size:12px;cursor:pointer}.source-link{font-size:11px;color:#717c63;text-decoration:none;display:inline-flex;gap:6px;align-items:center}.source-link svg{width:13px;height:13px}.notebook{background:#fffef9;border:1px solid #e7e4d5;border-radius:9px;position:sticky;top:24px;overflow:hidden}.notebook-header{padding:18px 19px;border-bottom:1px solid #e7e4d5;display:flex;justify-content:space-between;align-items:center}.notebook-header h2{display:flex;align-items:center;gap:8px;font-size:13px;letter-spacing:0}.notebook-header svg{width:16px;height:16px;color:#88764e}.note-status{font-size:9px;color:#737e62}.notebook textarea{padding:19px;width:100%;resize:vertical;min-height:280px;background:transparent;border:0;line-height:1.9;font-size:12px;color:#4c513f;display:block}.notebook textarea::placeholder{color:#7e826f;opacity:1}.notebook textarea:focus{outline:2px solid #a3342b;outline-offset:-2px}.notebook-footer{padding:12px 19px;border-top:1px solid #e7e4d5;color:#7b816e;font-size:9px;display:flex;justify-content:space-between}.detail-nav{display:flex;gap:12px;justify-content:space-between;margin-top:23px}.detail-nav button{font-size:11px;color:#6b755f;padding:10px 0;display:flex;gap:8px;align-items:center}.detail-nav svg{width:14px;height:14px}.note-preview{font-size:11px;color:#6d765f;white-space:normal;line-height:1.7;margin-top:8px;max-height:58px;overflow:hidden;padding-right:25px}.notes-view td{height:96px}.mobile-overlay{display:none}.overview{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:24px}.metric{padding:24px;background:white;border:1px solid var(--line);border-radius:8px}.metric span{font-size:12px;color:var(--muted)}.metric strong{display:block;font-size:32px;margin:14px 0 5px;letter-spacing:-1px;font-weight:600}.metric small{font-size:11px}.progress-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.progress-panel{padding:24px;background:white;border:1px solid var(--line);border-radius:8px}.progress-panel h2{font-size:16px;margin-bottom:25px}.progress-row{margin:22px 0}.progress-row>div{display:flex;justify-content:space-between;font-size:12px}.progress-row>div span:last-child{color:var(--muted);font-size:11px}.progress-row .bar{height:7px;margin-top:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#30382a;color:white;padding:12px 18px;border-radius:7px;font-size:12px;z-index:100;transition:opacity .18s,transform .18s;box-shadow:0 6px 20px #21291b20}#toast.visible{opacity:1;transform:translate(-50%,0)}#storage-warning{background:#fff0ce;color:#6f4b00;padding:13px 24px;font-size:12px;position:sticky;top:0;z-index:60}body.has-warning .sidebar{top:45px}
@media(min-width:1600px){.main{padding-top:46px}.topics{gap:16px}.topic{min-height:125px;padding:19px}.question-table td{height:76px}}
@media(max-width:1150px){.sidebar{width:205px;padding-left:12px;padding-right:12px}.brand{font-size:18px;margin-left:8px}.shell{margin-left:205px}.main{padding:30px 27px 20px}.topbar{padding:0 27px}.question-table .section-col{width:120px}.question-table .difficulty-col{width:85px}.question-table .check-col{width:43px}.question-table .number-col{width:30px}.question-table .notes-col{width:44px}.question-table .star-col{width:42px}.topic{padding:14px 12px}.topic-title{font-size:11px}.detail-layout{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.puzzle-paper{padding:24px}.difficulties{gap:0}.diff-button{padding:6px 7px}}
@media(max-width:900px){.sidebar{width:190px}.shell{margin-left:190px}.brand{font-size:16px;gap:7px}.brandmark{width:29px;height:29px}.top-right span{display:none}.main{padding:28px 22px 20px}.topbar{padding:0 22px;height:66px}.topics{grid-template-columns:repeat(2,1fr)}.topic{min-height:98px}.topic-top{margin-bottom:11px}.question-table .section-col{display:none}.page-heading{align-items:flex-start}h1{font-size:30px}.subtitle{font-size:12px}.primary{font-size:11px;padding:10px 12px}.search{width:230px}.detail-layout{grid-template-columns:1fr}.notebook{position:static}.notebook textarea{min-height:180px}.progress-grid{grid-template-columns:1fr}.overview{gap:10px}.metric{padding:19px}.metric strong{font-size:28px}}
@media(max-width:640px){.sidebar{transform:translateX(-100%);width:245px;transition:transform .2s}.sidebar.open{transform:translateX(0)}.mobile-overlay.show{display:block;position:fixed;inset:0;background:#1f291d60;z-index:19}.shell{margin:0}.menu-button{display:inline-flex;padding:7px;margin-left:-7px}.topbar{height:59px;padding:0 19px}.breadcrumb{gap:8px;font-size:11px}.top-right{gap:0}.top-right a{font-size:10px}.main{padding:27px 17px 12px}.page-heading{margin-bottom:25px;gap:12px}h1{font-size:29px}.subtitle{font-size:11px;max-width:250px}.eyebrow{font-size:9px}.page-heading .primary{padding:9px;font-size:0;min-height:35px;margin-top:24px}.page-heading .primary svg{width:18px;height:18px}.topics{gap:9px;margin-bottom:25px}.topic{padding:12px 13px;min-height:98px}.topic-title{font-size:12px}.topic-icon{width:28px;height:28px}.library-toolbar{padding:18px 14px 13px;flex-wrap:wrap;gap:15px}.search{width:100%}.title-count h2{font-size:15px}.filters{padding:0 14px 15px;gap:10px}.difficulties{flex-wrap:wrap;width:100%}.filter-label{display:none}.diff-button{padding:6px 10px;font-size:10px}.filter-right{width:100%;justify-content:space-between;gap:8px}.question-table .number-col{display:none}.question-table .check-col{width:39px}.question-table .difficulty-col{width:69px}.question-table .notes-col{width:34px}.question-table .star-col{width:34px}.question-table td{height:73px}.question-title{font-size:11px;padding-right:8px}.question-sub{font-size:9px;padding-right:15px;max-width:calc(100vw - 218px)}.question-table th{font-size:8px;letter-spacing:.5px}.badge{font-size:9px;padding:3px 6px}.badge .dot{display:none}.icon-button{padding:7px;min-width:29px;min-height:31px}.icon-button svg{width:15px;height:15px}.table-footer{padding:12px;font-size:9px}.pagination{gap:1px}.pagination button{width:24px;height:27px}.footer{font-size:9px;flex-direction:column;gap:5px;padding:19px 2px}.completed .question-title:after{display:none}.detail-heading h1{font-size:27px}.puzzle-paper{padding:21px 18px}.puzzle-text{font-size:13px}.puzzle-actions{align-items:flex-start;gap:10px}.source-link{font-size:10px}.done-label{font-size:11px}.overview{grid-template-columns:1fr 1fr}.overview .metric:last-child{grid-column:1/-1}.metric{padding:18px}.metric strong{font-size:28px}.progress-panel{padding:21px}.notes-view .question-sub{display:none}.note-preview{font-size:10px;max-height:51px}#toast{bottom:16px;max-width:calc(100% - 30px);width:max-content}body.has-warning .sidebar{top:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:640px){.sidebar:not(.open){visibility:hidden}.filter-right{flex-wrap:wrap}.question-table .notes-col,.question-table .star-col{width:36px}}
.theme-control select{color:#606854;background:#f8f9f5;border:1px solid var(--line);border-radius:6px;padding:8px 9px;font-size:11px;min-height:34px;cursor:pointer}.theme-control{display:inline-flex;align-items:center}.sync-dot{width:6px;height:6px;display:inline-block;flex-shrink:0;border-radius:50%;background:#b99643}.sync-dot.synced{background:#4d8a5b}.sync-dot.offline,.sync-dot.error{background:#b77343}.save-note{line-height:1.5;align-items:flex-start}.save-note .sync-dot{margin-top:5px}.export{padding-top:10px}.top-right{gap:15px}.top-right>span{display:none}dialog{padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);width:min(540px,calc(100% - 32px));max-height:calc(100vh - 48px);overflow:auto;box-shadow:0 18px 70px #18221430}dialog::backdrop{background:#14200c60}.dialog-header{position:sticky;top:0;background:inherit;border-bottom:1px solid var(--line);padding:17px 23px;display:flex;justify-content:space-between;align-items:center}.dialog-header h2{font-size:18px}.dialog-body{padding:22px 24px}.cloud-info{background:#f3f6ee;border:1px solid var(--line);border-radius:7px;padding:14px 16px;margin-bottom:17px}.cloud-info [data-sync-status]{font-size:12px;font-weight:600;display:flex;gap:8px;align-items:center}.cloud-info p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:8px}.backup-description{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 15px}.dialog-body h3{font-size:13px;margin-top:25px}.backup-file{display:block;font-size:12px;font-weight:500}.backup-file input{display:block;margin-top:10px;max-width:100%;font-size:11px}.backup-file input::file-selector-button{background:#f3f5ee;border:1px solid var(--line);border-radius:5px;color:inherit;padding:9px;margin-right:10px;cursor:pointer}.backup-footnote{font-size:10px;color:var(--muted);line-height:1.7;padding-top:18px;border-top:1px solid var(--line);margin-top:23px}#import-message{font-size:11px;line-height:1.7;color:#a3342b;margin-top:12px}#import-preview{background:#f6f8f1;padding:14px;border-radius:6px;margin-top:17px}#import-summary{font-size:11px;line-height:1.7;margin-bottom:12px}
:root[data-theme="dark"]{color-scheme:dark;--ink:#e0e6dc;--muted:#a8b29e;--line:#343e33;--red:#eda693;--tint:#3a2c26;--surface:#222820;--green:#93bc8b;background:#171d18;color:var(--ink)}
[data-theme="dark"] .sidebar,[data-theme="dark"] .topbar,[data-theme="dark"] .library,[data-theme="dark"] .topic,[data-theme="dark"] .puzzle-paper,[data-theme="dark"] .metric,[data-theme="dark"] .progress-panel,[data-theme="dark"] .search,[data-theme="dark"] .secondary,[data-theme="dark"] dialog{background:#20271f}
[data-theme="dark"] .nav a{color:#b1bba7}[data-theme="dark"] .nav a:hover,[data-theme="dark"] .secondary:hover,[data-theme="dark"] .icon-button:hover,[data-theme="dark"] .diff-button:hover{background:#2c3528;color:#e0e6dc}[data-theme="dark"] .nav a.active{color:#f2b09c;background:#3c2e27}[data-theme="dark"] .brandmark{background:#a44938}[data-theme="dark"] .nav-label,[data-theme="dark"] .section-caption,[data-theme="dark"] .breadcrumb,[data-theme="dark"] .export,[data-theme="dark"] .footer,[data-theme="dark"] .back,[data-theme="dark"] .detail-nav button,[data-theme="dark"] .source-link{color:#a8b29e}[data-theme="dark"] .breadcrumb strong{color:#d7dfcf}[data-theme="dark"] .breadcrumb svg{color:#a3af99}[data-theme="dark"] .primary{background:#a44030;border-color:#ba5845;color:#fff8f0}[data-theme="dark"] .primary:hover{background:#b94c39}[data-theme="dark"] .secondary{border-color:#46533e}[data-theme="dark"] .topic:hover{border-color:#728365;background:#273022}[data-theme="dark"] .topic.active{border-color:#d18772;background:#30291f;box-shadow:inset 0 0 0 .4px #d18772}[data-theme="dark"] .topic-icon{background:#3b3622;color:#d3bf77}[data-theme="dark"] .topic-icon.discrete{background:#2e3b29;color:#abca9f}[data-theme="dark"] .topic-icon.strategy{background:#353044;color:#bfb0dc}[data-theme="dark"] .topic-icon.general{background:#412f25;color:#d9ac85}[data-theme="dark"] .topic-title svg,[data-theme="dark"] .topic-top>span,[data-theme="dark"] .question-table .section-col,[data-theme="dark"] .question-sub,[data-theme="dark"] .table-footer,[data-theme="dark"] .note-preview{color:#a4af99}[data-theme="dark"] .pill,[data-theme="dark"] .pagination button.active,[data-theme="dark"] .pagination button:hover:not(:disabled){background:#333e2b;color:#c2d1b6;border-color:#46543c}[data-theme="dark"] .diff-button{color:#b5c0aa}[data-theme="dark"] .diff-button.active{background:#35402e;border-color:#4a583f;color:#e1ebd8}[data-theme="dark"] .filter-right select,[data-theme="dark"] .theme-control select{background:#252f21;color:#c1ceb4;border-color:#414f37}[data-theme="dark"] .question-table th{background:#252d21;color:#b6c2a9}[data-theme="dark"] .question-table td{border-color:#30392d}[data-theme="dark"] .question-table tbody tr:hover{background:#252e21}[data-theme="dark"] .badge{background:#2b3c27;color:#b5d7a9}[data-theme="dark"] .badge.medium{background:#3e3620;color:#e5c57b}[data-theme="dark"] .badge.hard{background:#402e24;color:#e8ad92}[data-theme="dark"] .badge.deadly{background:#392f45;color:#d1b8e5}[data-theme="dark"] .dot{background:#9bbc7f}[data-theme="dark"] .dot.medium{background:#d6b360}[data-theme="dark"] .dot.hard{background:#dc9274}[data-theme="dark"] .dot.deadly{background:#bd98d8}[data-theme="dark"] .search{border-color:#46533d}[data-theme="dark"] .search input::placeholder{color:#a6b297}[data-theme="dark"] .search kbd{color:#a5b197;border-color:#46533d}[data-theme="dark"] .completed .question-title{color:#b3bfa7}[data-theme="dark"] .icon-button{color:#aab69b}[data-theme="dark"] .icon-button.starred{color:#e7be70}[data-theme="dark"] .icon-button.starred svg{fill:#80612d}[data-theme="dark"] .icon-button.has-note{color:#edaf98}[data-theme="dark"] .bar{background:#39452f}[data-theme="dark"] .notebook{background:#282b1e;border-color:#474a32}[data-theme="dark"] .notebook-header,[data-theme="dark"] .notebook-footer{border-color:#474a32}[data-theme="dark"] .notebook textarea{color:#d6dbbd}[data-theme="dark"] .notebook textarea::placeholder,[data-theme="dark"] .note-status,[data-theme="dark"] .notebook-footer{color:#b1b598}[data-theme="dark"] .notebook-header svg{color:#d0bc7f}[data-theme="dark"] .reveal summary:hover,[data-theme="dark"] .puzzle-text pre{background:#2a3324}[data-theme="dark"] .puzzle-text img{background:#f7f8f3;border-radius:5px}[data-theme="dark"] .puzzle-text blockquote{color:#b9c6aa}[data-theme="dark"] .cloud-info,[data-theme="dark"] #import-preview{background:#2a3423}[data-theme="dark"] .backup-file input::file-selector-button{background:#33402a}[data-theme="dark"] #import-message{color:#f0b09d}[data-theme="dark"] .sync-dot.synced{background:#a4c69b}[data-theme="dark"] .skip{background:#253020}[data-theme="dark"] #storage-warning{background:#4a371c;color:#f7d18d}[data-theme="dark"] #toast{background:#c9d8ba;color:#26311e}[data-theme="dark"] button:focus-visible,[data-theme="dark"] a:focus-visible,[data-theme="dark"] input:focus-visible,[data-theme="dark"] textarea:focus-visible,[data-theme="dark"] select:focus-visible,[data-theme="dark"] summary:focus-visible{outline-color:#eda693}
@media(max-width:640px){.top-right{gap:8px}.top-right a{font-size:0}.top-right a svg{width:15px;height:15px}.theme-control select{max-width:110px;padding:6px;font-size:10px;min-height:31px}.dialog-body{padding:19px}.dialog-header{padding:15px 18px}}
