:root{--paper:#faf8f2;--white:#fff;--ink:#252b28;--muted:#767b74;--line:#e9e8e0;--yellow:#f5ce59;--amber:#bf871f;--green:#436953;--soft:#f1f3eb;--radius:22px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft Yahei",sans-serif;font-size:16px;line-height:1.7}button,input,select,textarea{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button{border:0;background:none}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a77a16;outline-offset:3px}button:disabled{opacity:.4;cursor:not-allowed}.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{position:fixed;inset:0 auto 0 0;width:234px;background:#fffefa;border-right:1px solid var(--line);padding:34px 23px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:11px;text-decoration:none}.brand-mark{display:grid;place-items:center;background:var(--yellow);width:43px;height:43px;border-radius:14px;transform:rotate(-5deg)}.brand strong{display:block;font-size:18px;letter-spacing:-.4px}.brand small{font-size:10px;letter-spacing:2px;color:var(--muted)}.nav{display:grid;gap:10px;margin-top:55px}.nav button{display:flex;align-items:center;gap:13px;padding:13px 18px;text-align:left;border-radius:13px;color:var(--muted);min-height:50px}.nav button.active{background:#f8e7ac;color:var(--ink);font-weight:700}.sidebar-note{margin-top:auto;border-top:1px solid var(--line);padding:22px 10px 0;font-size:12px;color:var(--muted)}.sidebar-note strong{color:var(--green);font-weight:500}.shell{margin-left:234px;max-width:1510px;padding:30px 48px 70px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:35px}.breadcrumb{font-size:13px;color:var(--muted)}.top-actions{display:flex;gap:17px;align-items:center}.local-pill{font-size:12px;color:var(--green);display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:var(--green)}.avatar{width:35px;height:35px;border-radius:50%;background:#e8ebdf;display:grid;place-items:center;font-size:13px;font-weight:700}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--muted);font-weight:600}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:25px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.35;margin-bottom:7px}h2{font-size:21px;letter-spacing:-.4px;line-height:1.5;margin-bottom:16px}h3{font-size:17px;line-height:1.5;margin-bottom:8px}.subtitle{color:var(--muted);font-size:14px;margin:0}.date-note{font-size:12px;color:var(--muted)}.hero{position:relative;overflow:hidden;background:#f7df8e;border:1px solid #efda93;border-radius:var(--radius);padding:30px 34px;min-height:247px;margin-bottom:30px}.hero-content{position:relative;z-index:1;max-width:65%}.hero .eyebrow{color:#79662f;letter-spacing:1.5px;margin-bottom:14px;display:block}.hero h2{font-size:27px;line-height:1.45;margin-bottom:9px}.hero p{font-size:14px;color:#72653c;margin-bottom:22px}.primary{background:var(--ink);color:white;border-radius:11px;padding:11px 19px;min-height:46px;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:13px;font-weight:600}.secondary{border:1px solid var(--line);background:white;border-radius:11px;padding:10px 15px;min-height:44px;font-size:14px;display:inline-flex;gap:8px;align-items:center;justify-content:center}.small-button{min-height:44px;padding:8px 10px;font-size:13px;color:var(--muted)}.hero-art{position:absolute;right:35px;top:33px;width:218px;height:184px;transform:rotate(-8deg)}.chip{position:absolute;inset:30px 38px;background:#e8be4b;border:1px solid #af8a29;border-radius:26px;box-shadow:9px 10px 0 #d4ac3f,10px 11px 0 #a78936;display:grid;place-items:center}.chip:before{content:'';position:absolute;inset:18px;border:1px solid #a7842d;border-radius:13px}.chip .icon{width:55px;height:55px;stroke:#675323}.circuit{position:absolute;inset:0;border:1px solid #bd9a3b;border-radius:42px;opacity:.55}.circuit:after{content:'';position:absolute;inset:12px -18px;border:1px solid #bd9a3b;border-radius:45px}.art-dot{position:absolute;top:0;right:35px;width:9px;height:9px;background:#685429;border:3px solid #f7df8e;border-radius:50%}.section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px;gap:12px}.section-head h2{margin:0}.section-head span{font-size:12px;color:var(--muted)}.categories{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:30px}.category{border:1px solid var(--line);border-radius:16px;background:white;text-align:left;padding:18px;display:flex;gap:13px;align-items:center;min-height:97px;transition:transform .15s,border-color .15s}.category:hover,.lesson-card:hover{border-color:#cfb56a;transform:translateY(-2px)}.category-icon{background:var(--soft);width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:var(--green);flex-shrink:0}.category:nth-child(2n) .category-icon{background:#fbf2d8;color:#91732d}.category strong{display:block;font-size:14px;margin-bottom:2px}.category small{color:var(--muted);font-size:11px}.home-bottom{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(230px,1fr);gap:25px}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:23px}.route-row{display:flex;align-items:center;gap:13px;padding:12px 0;border-bottom:1px solid #f0f0e9;width:100%;text-align:left}.route-row:last-child{border-bottom:0}.step-number{width:30px;height:30px;border-radius:50%;background:#f3f3ed;display:grid;place-items:center;font-size:11px;flex-shrink:0;color:var(--muted)}.route-row:first-of-type .step-number{background:#fae9b0;color:#786027}.route-text{flex:1}.route-text strong{font-size:13px;display:block;font-weight:600}.route-text small{font-size:11px;color:var(--muted)}.route-row>.icon{width:17px;color:#aaa}.progress-count{font-size:41px;font-weight:700;line-height:1.3;letter-spacing:-2px}.progress-count small{font-size:15px;letter-spacing:0;color:var(--muted);font-weight:400}.progress-bar{height:6px;border-radius:8px;background:#f0f0e8;overflow:hidden;margin:18px 0}.progress-bar span{display:block;height:100%;background:var(--yellow);border-radius:8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.stat strong{display:block;font-size:21px}.stat span{font-size:11px;color:var(--muted)}.tip{font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:17px;margin:18px 0 0}.search{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);border-radius:13px;padding:9px 15px;margin:20px 0}.search .icon{color:var(--muted);width:20px}.search input{border:0;outline:0;background:transparent;width:100%;height:32px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.filter{font-size:13px;min-height:44px;border:1px solid var(--line);border-radius:24px;padding:8px 15px;background:white}.filter.active{background:var(--ink);color:white;border-color:var(--ink)}.lesson-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.lesson-card{border:1px solid var(--line);border-radius:17px;background:white;padding:22px;text-align:left;transition:transform .15s,border-color .15s}.lesson-card .meta{display:flex;gap:8px;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:14px}.lesson-card h3{font-size:17px}.lesson-card p{font-size:13px;color:var(--muted);margin-bottom:16px}.lesson-card footer{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--green)}.lesson-card footer .icon{width:18px}.tag{font-size:11px;padding:3px 8px;background:var(--soft);border-radius:6px;color:var(--green)}.detail{max-width:840px;margin:auto}.detail-top{display:flex;justify-content:space-between;gap:12px;margin-bottom:25px}.detail h1{font-size:31px;margin:12px 0}.detail-meta{display:flex;align-items:center;gap:13px;color:var(--muted);font-size:12px}.detail-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin:26px 0}.detail-tabs button{padding:12px 2px;min-height:46px;border-bottom:3px solid transparent;color:var(--muted)}.detail-tabs .active{border-color:var(--yellow);color:var(--ink);font-weight:700}.article{background:white;border:1px solid var(--line);border-radius:19px;padding:32px}.article section{margin-bottom:30px}.article section:last-child{margin-bottom:0}.article p{line-height:1.95;color:#4c544e;font-size:16px;margin-bottom:15px}.article h2{font-size:20px;margin-bottom:13px}.article pre{background:#292f2c;color:#f5f3e9;padding:19px;border-radius:12px;overflow:auto;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.takeaway{padding:22px;background:#fbf4dc;border-radius:13px;margin-top:25px}.takeaway ul{padding-left:22px;margin-bottom:0;font-size:14px}.project{padding:20px;background:var(--soft);border-radius:13px;margin-top:20px;font-size:14px}.sources{font-size:12px;color:var(--muted);margin:22px 0}.sources a{display:inline-block;margin:3px 15px 3px 0;text-underline-offset:3px}.mark-panel{margin-top:24px;padding:22px;background:white;border:1px solid var(--line);border-radius:17px}.mark-panel p{font-size:12px;color:var(--muted);margin-bottom:15px}.mark-buttons{display:flex;gap:9px;flex-wrap:wrap}.mark-buttons .active{background:#e9f0e8;border-color:#91aa91;color:#365a3e}.lesson-pager{display:flex;justify-content:space-between;gap:14px;margin-top:22px}.quiz-option{display:flex;gap:13px;align-items:flex-start;text-align:left;border:1px solid var(--line);border-radius:12px;padding:15px;width:100%;margin:12px 0;background:white;min-height:55px}.quiz-option b{width:26px;height:26px;display:grid;place-items:center;background:#f2f2ec;border-radius:7px;font-size:12px;flex-shrink:0}.quiz-option.correct{border-color:#82a08a;background:#eff5ef}.quiz-option.wrong{border-color:#c78e79;background:#fcf1ec}.answer{padding:20px;border-radius:12px;background:#f1f4eb;margin-top:20px;font-size:15px}.answer p{margin-bottom:0}.empty{padding:50px 24px;text-align:center;background:white;border:1px dashed #d7d9cc;border-radius:18px;color:var(--muted)}.empty .icon{width:36px;height:36px;margin-bottom:12px}.empty h3{color:var(--ink)}.settings-grid{display:grid;gap:19px;grid-template-columns:1fr 1fr}.settings-grid .panel h2{font-size:18px}.settings-grid p{font-size:14px;color:var(--muted)}.button-row{display:flex;gap:10px;flex-wrap:wrap}.import-label{display:flex;gap:10px;align-items:center}.import-label input{max-width:100%;font-size:13px}.import-label{font-size:13px;display:block;margin:18px 0}.errors{padding:15px;border-radius:10px;background:#fff1e9;color:#925337;font-size:13px;white-space:pre-wrap;max-height:260px;overflow:auto}.flashcard{padding:23px;border:1px solid var(--line);background:white;border-radius:17px;margin-bottom:15px}.flashcard p{white-space:pre-wrap}.flashcard .back{background:var(--soft);padding:17px;border-radius:10px;margin-top:15px}.custom-label{font-size:11px;color:var(--green);margin-bottom:12px;display:block}.mobile-nav{display:none}.notice{font-size:12px;color:var(--muted);margin-top:22px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;max-width:90vw;padding:12px 20px;border-radius:12px;z-index:100;font-size:13px;display:none}.count-label{font-size:13px;color:var(--muted);margin-bottom:16px}.safe-text{overflow-wrap:anywhere}@media(min-width:1500px){.shell{margin-left:calc(234px + (100vw - 1500px)/2);max-width:1266px}}@media(max-width:1100px){.shell{padding:27px}.sidebar{width:205px;padding:30px 18px}.shell{margin-left:205px}.category{padding:14px;gap:9px}.category-icon{width:37px;height:37px}.category strong{font-size:12px}.hero-art{right:10px;width:195px}.hero-content{max-width:69%}.home-bottom{grid-template-columns:1fr}.progress-panel .stats{max-width:300px}.settings-grid{grid-template-columns:1fr}}@media(max-width:720px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.sidebar{display:none}.shell{margin:0;padding:20px 20px 105px}.topbar{margin-bottom:27px}.breadcrumb{font-size:12px}.topbar .avatar{width:31px;height:31px}.local-pill{font-size:10px}.top-actions{gap:10px}h1{font-size:27px}.date-note{display:none}.page-heading{margin-bottom:22px}.subtitle{font-size:12px}.hero{padding:23px;min-height:243px;margin-bottom:27px}.hero-content{max-width:76%}.hero h2{font-size:23px}.hero p{font-size:12px;max-width:225px;margin-bottom:19px}.hero-art{width:140px;height:135px;right:-29px;top:58px;opacity:.65}.chip{inset:25px;border-radius:20px}.chip .icon{width:37px;height:37px}.hero .primary{font-size:13px;padding:10px 16px}.hero .eyebrow{font-size:10px}.section-head h2{font-size:18px}.categories{gap:10px;grid-template-columns:repeat(2,1fr);margin-bottom:27px}.category{min-height:87px;padding:13px 10px;gap:9px;border-radius:14px}.category strong{font-size:12px}.category small{font-size:10px}.category-icon{width:36px;height:36px;border-radius:10px}.category-icon .icon{width:20px}.home-bottom{gap:23px}.panel{padding:20px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around;background:#fffefaf5;backdrop-filter:blur(14px);border-top:1px solid var(--line);z-index:30;padding:8px 10px calc(8px + env(safe-area-inset-bottom))}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:65px;min-height:46px;font-size:10px;color:#8b8f86}.mobile-nav button.active{color:#6a551e}.mobile-nav button.active .icon-wrap{background:#f8e6a7}.icon-wrap{padding:3px 15px;border-radius:16px;height:29px}.icon-wrap .icon{width:22px;height:22px}.lesson-list{grid-template-columns:1fr}.filters{gap:7px}.filter{font-size:12px;padding:7px 12px}.search input{font-size:16px}.detail h1{font-size:26px}.detail-top{margin-bottom:17px}.article{padding:22px 19px;border-radius:16px}.article p{font-size:16px}.detail-tabs{margin-top:21px}.mark-panel{padding:19px}.mark-buttons{gap:7px}.mark-buttons button{font-size:12px;padding:10px 12px}.lesson-pager .secondary{font-size:12px;max-width:49%}.settings-grid{grid-template-columns:1fr}.settings-grid .button-row{gap:8px}#toast{bottom:95px}.sources a{min-height:35px}.quiz-option{font-size:15px}.section-head span{font-size:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.daily-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 25px;background:#edf1e7;border:1px solid #dde3d4;border-radius:18px;margin:0 0 28px}.daily-entry h2{font-size:21px;margin:5px 0}.daily-entry p{margin:0;font-size:13px;color:var(--muted)}.daily-entry .primary{flex-shrink:0}.daily-config{display:flex;gap:20px;flex-wrap:wrap;margin:24px 0}.daily-config label{font-size:13px;display:flex;flex-direction:column;gap:6px;flex:1;min-width:130px}.daily-config select{border:1px solid var(--line);background:var(--paper);border-radius:10px;min-height:46px;padding:8px 12px;color:var(--ink);max-width:100%}.daily-config p{width:100%;margin:0}.daily-progress{font-size:13px;color:var(--muted)}.daily-card{border:1px solid var(--line);border-radius:22px;background:white;padding:30px}.daily-card>h2{font-size:25px;margin:20px 0 13px;line-height:1.6}.daily-card>.primary{margin:27px 0 15px;display:flex;width:100%;min-height:52px}.daily-card>.small-button{display:block;margin-top:20px}.daily-answer{padding:22px;background:#f7f7ef;border-radius:13px;margin:24px 0}.daily-answer p{font-size:16px;line-height:1.95;white-space:pre-wrap}.daily-answer p:last-child{margin-bottom:0}.daily-answer pre{white-space:pre-wrap;overflow-wrap:anywhere}.rating-heading{font-size:16px;margin:25px 0 12px}.rating-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.rating{padding:14px 5px;border-radius:12px;border:1px solid var(--line);min-height:76px}.rating strong,.rating small{display:block}.rating small{font-size:10px;color:var(--muted);margin-top:3px}.rating.again{background:#fcf0e9;border-color:#efd7c9}.rating.fuzzy{background:#fcf5dc;border-color:#ecdfad}.rating.known{background:#edf4e9;border-color:#d5e2cc}@media(max-width:720px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.daily-entry{padding:20px;display:block}.daily-entry .primary{margin-top:16px;width:100%}.daily-entry h2{font-size:20px}.daily-card{padding:23px 19px}.daily-card>h2{font-size:22px}.daily-answer{padding:18px}.daily-config{gap:12px}.daily-config select{font-size:16px}}
.bookshelf,.book-library{margin-bottom:28px}.book-shelf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.book-card{border:1px solid var(--line);background:white;border-radius:17px;padding:20px}.book-card h3{margin:12px 0 8px}.book-card p{font-size:12px;color:var(--muted);margin-bottom:15px}.book-card .primary,.book-card .secondary{font-size:12px;width:100%;margin-top:12px}.book-goal{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin:15px 0}.book-goal select{font-size:16px;min-height:44px;background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:7px 12px}.import-label input[type=text]{display:block;min-height:44px;width:100%;margin-top:8px;border:1px solid var(--line);border-radius:9px;padding:9px;font-size:16px}@media(max-width:1000px){.book-shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){.book-shelf-grid{grid-template-columns:1fr}.book-card{padding:19px}}
.active-book{padding:28px 30px;background:#f7df8e;border:1px solid #efda93;border-radius:22px;margin-bottom:22px}.active-book-select{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:12px;color:#79662f}.active-book-select select{border:1px solid #d9bf70;background:#f9e9b7;border-radius:10px;padding:9px;min-height:44px;font-size:14px;max-width:75%;color:var(--ink)}.active-book h2{font-size:27px;margin:23px 0 8px}.active-book>p{font-size:13px;color:#766332;margin-bottom:0}.active-book .progress-bar{background:#ebd17f}.active-book .progress-bar span{background:#6b6542}.active-book-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.active-book-stats>div+div{border-left:1px solid #dfc574;padding-left:25px}.active-book-stats span{display:block;font-size:13px;color:#7b6837}.active-book-stats strong{font-size:32px;font-weight:650;display:block}.active-book-stats small{font-size:17px;font-weight:400;color:#7b6837}.active-book>.primary{width:100%;font-size:16px;min-height:52px}.active-book>.notice{margin-top:14px;font-size:11px}@media(max-width:720px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.active-book{padding:23px}.active-book h2{font-size:25px}.active-book-select select{font-size:16px}}
.qa-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:26px}.qa-choices button{min-height:54px;font-size:15px}.daily-full-answer{margin:25px 0}.daily-full-answer section{margin:25px 0}.daily-full-answer h2{font-size:20px;margin-bottom:12px}.daily-full-answer p{font-size:16px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}.daily-full-answer pre{background:#292f2c;color:#f5f3e9;padding:18px;border-radius:12px;overflow:auto;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.feedback-label{color:var(--green);font-size:13px;margin-top:20px}@media(max-width:400px){.qa-choices{grid-template-columns:1fr}.qa-choices button{font-size:16px}}
.star-button{font-size:13px;margin:10px 0}.star-button.starred{color:#946c12;border-color:#e9cb73;background:#fff5d6}.star-button.starred .icon{fill:#eac34f;stroke:#a27c22}.bookshelf>.secondary{margin:0 0 18px}.daily-card>.star-button{margin-top:20px}
/* Manual star only: fixed in the upper-right of the daily question card. */
.daily-card{position:relative}.daily-card>.card-star{position:absolute;top:17px;right:17px;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;margin:0;display:grid;place-items:center;border-radius:12px;z-index:1}.daily-card>.tag{display:inline-block;max-width:calc(100% - 54px)}.daily-card>h2{padding-right:44px}.card-star .icon{width:23px;height:23px}@media(max-width:720px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.daily-card>.card-star{top:15px;right:15px}}
.study-plan{background:#fff5d5;border:1px solid #e7cf87;border-radius:15px;padding:19px;margin:21px 0}.study-plan h3{font-size:15px;margin:0 0 13px}.plan-fields{display:grid;grid-template-columns:1fr 1fr;gap:17px}.plan-fields label{font-size:12px;color:#746132;min-width:0}.plan-input-wrap{display:flex;align-items:center;gap:9px;margin-top:6px}.plan-input-wrap input{width:100%;min-width:0;min-height:46px;border:1px solid #deca90;border-radius:10px;padding:9px 12px;background:#fffdf5;color:var(--ink);font-size:18px;font-weight:600}.plan-input-wrap input:disabled{opacity:.65}.plan-input-wrap input[aria-invalid=true]{border-color:#b55033}.plan-input-wrap span{font-size:13px;flex-shrink:0}.plan-estimate{font-size:13px;margin:15px 0 7px;color:#655321}.plan-note{font-size:11px;line-height:1.8;color:#8b7845;margin:0}.plan-error{font-size:12px;color:#9c452f}.plan-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin:10px 0}.book-card .plan-summary .small-button{font-size:11px;color:#705d29;padding:5px;min-height:44px}.daily-card~.plan-summary{margin-bottom:20px}@media(max-width:400px){.study-plan{padding:16px}.plan-fields{gap:12px}.plan-input-wrap{gap:6px}}
.imported-library{margin-top:22px}.imported-library>.secondary{margin:17px 0}.imported-library .flashcard{background:var(--paper)}
.daily-card>.easy-button{display:flex;margin:24px auto 0 0;min-height:46px;font-size:13px;color:var(--muted)}.daily-card>.easy-button.easy-active{background:#e5eddd;border-color:#b5c99d;color:#436231}.easy-button.easy-active .icon{stroke-width:2.5}.bookshelf>.secondary+.secondary{margin-left:10px}
.plan-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.due-count-field input[readonly]{background:#f0e4be;color:#756538;border-style:dashed;cursor:default}.virtual-plan>.due-count-field{display:block;max-width:200px;font-size:13px}.virtual-plan>.plan-note{margin-top:12px}.followup-block{background:#f7f8f1;border:1px solid #e5e9dc;border-radius:13px;padding:21px;margin:18px 0}.followup-label{font-size:11px;font-weight:600;color:#60806a;letter-spacing:1px;margin-bottom:7px}.followup-block h3{font-size:17px;line-height:1.8;margin-bottom:19px}.followup-block .answer-label{border-top:1px solid #e0e5d7;padding-top:15px;color:#8b7036}.followup-block p:last-child{margin-bottom:0}.algorithm-details{margin:22px 0;padding:17px 20px;border:1px solid var(--line);border-radius:13px;background:white;font-size:13px;color:var(--muted)}.algorithm-details summary{min-height:30px;cursor:pointer;color:var(--ink);font-weight:600}.algorithm-details p{line-height:1.8;margin:14px 0}.algorithm-formula{font-family:ui-monospace,monospace;overflow-wrap:anywhere}.algorithm-details a{display:inline-block;min-height:35px;text-underline-offset:3px}@media(max-width:420px){.plan-fields{gap:8px}.plan-fields label{font-size:11px}.plan-input-wrap{gap:4px}.plan-input-wrap input{padding:9px 7px;font-size:16px}.plan-input-wrap span{font-size:11px}.followup-block{padding:17px}.followup-block h3{font-size:17px}}
.remove-book{display:block;min-height:44px;margin:5px auto 0;font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.remove-book:hover{color:#9a573f}
.stat-link{text-align:left;padding:0;min-height:55px;cursor:pointer;border-radius:8px}.stat-link span{text-decoration:underline;text-underline-offset:3px}.stat-link:hover{color:var(--amber)}.collection-book{border-color:#d9d6b8;background:#fffdf3}.collection-book .button-row{gap:8px}.collection-book .button-row button{flex:1;width:auto;min-width:90px}.collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:24px}.collection-item{background:white;border:1px solid var(--line);border-radius:17px;padding:0 17px 12px}.collection-item>.lesson-card{border:0;width:100%;padding:21px 0;border-radius:0}.collection-item>.lesson-card:hover{transform:none}.collection-item>.flashcard{border:0;padding:21px 0;margin:0}.collection-item>.easy-button{min-height:44px;margin:10px 0}.collection-item>.star-button{max-width:100%}@media(max-width:720px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.collection-grid{grid-template-columns:1fr}}
/* Keep the document a single vertical phone canvas; long content wraps locally. */
.shell,.detail,.page-heading>div,.home-bottom>section,.book-shelf-grid>*,.collection-grid>*,.settings-grid>*{min-width:0}.detail h1,.lesson-card h3,.book-card h3,.followup-block h3,.daily-card h2{overflow-wrap:anywhere}.article pre,.daily-full-answer pre{max-width:100%;box-sizing:border-box}.sources a,.algorithm-details a{overflow-wrap:anywhere}@media(max-width:720px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.shell{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));padding-top:max(20px,env(safe-area-inset-top));padding-bottom:calc(105px + env(safe-area-inset-bottom))}.mobile-nav{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}}

.active-book-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.active-book-title h2{margin:0;flex:1;min-width:150px}.active-book-title .remove-book{min-height:44px;flex-shrink:0;padding:10px 14px;border:1px solid #b7b4a9;border-radius:12px;background:#fffaf2;color:#775238}

.bank-showing{margin:24px 0 12px;color:var(--muted);font-size:13px;text-align:center}.bank-more{display:block;margin:0 auto 24px;min-height:46px;min-width:180px}.arm-chapter-group{margin:28px 0 42px}.arm-chapter-group>.section-head{padding-bottom:12px;border-bottom:1px solid var(--line)}.arm-chapter-group>.lesson-list{margin-top:18px}

/* Phone-first: stacked categories/books, including touch-phone landscape. */
@media(max-width:720px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){.categories,.book-shelf-grid{grid-template-columns:1fr}}
/* Touch-friendly, scroll-snap study-plan wheels. Keep row height in sync with JS. */
.plan-field{min-width:0}.plan-field-label{font-size:12px;color:#746132}.plan-picker-trigger{width:100%;min-width:0;min-height:46px;display:flex;justify-content:space-between;align-items:center;gap:4px;border:1px solid #deca90;border-radius:10px;padding:9px 12px;background:#fffdf5;color:var(--ink);cursor:pointer}.plan-picker-trigger span{font-size:18px;font-weight:600}.plan-picker-trigger .icon{width:14px;height:14px;transform:rotate(90deg);flex-shrink:0;color:#9b8243}.plan-picker-trigger:disabled{opacity:.6;cursor:default}.plan-picker-trigger:focus-visible,.plan-wheel:focus-visible{outline:3px solid #997b32;outline-offset:3px}body:has(.plan-picker[open]){overflow:hidden}.plan-picker{box-sizing:border-box;position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,520px);max-width:100%;max-height:90dvh;overflow:auto;padding:20px 20px max(22px,env(safe-area-inset-bottom));border:1px solid #e7ddc4;border-bottom:0;border-radius:24px 24px 0 0;background:#fffdf6;color:var(--ink);box-shadow:0 -12px 60px #332b2426}.plan-picker::backdrop{background:#26272273}.plan-picker-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px}.plan-picker-toolbar h2{font-size:17px;margin:0}.plan-picker-toolbar button{min-height:44px;padding:10px 16px}.plan-picker-book{margin:14px 0 5px;text-align:center;font-size:14px;overflow-wrap:anywhere}.plan-picker-help{font-size:12px;line-height:1.7;color:var(--muted);text-align:center;margin:5px 0 17px}.plan-picker-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.plan-wheel-column{min-width:0}.plan-wheel-label{font-size:13px;text-align:center;color:#746132;margin-bottom:10px}.plan-wheel-frame{position:relative;border-radius:14px;background:#f4f0e5;overflow:hidden}.plan-wheel-frame::after{content:'';position:absolute;top:88px;left:6px;right:6px;height:44px;box-sizing:border-box;border-top:1px solid #d5c18b;border-bottom:1px solid #d5c18b;background:#eac96012;pointer-events:none}.plan-wheel{box-sizing:border-box;height:220px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scroll-snap-type:y mandatory;scrollbar-width:none;padding:88px 0;-webkit-overflow-scrolling:touch;mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent)}.plan-wheel::-webkit-scrollbar{display:none}.plan-wheel-option{box-sizing:border-box;height:44px;line-height:44px;text-align:center;scroll-snap-align:center;font-size:23px;font-variant-numeric:tabular-nums;color:#8a8474;cursor:pointer;user-select:none}.plan-wheel-option.selected{font-size:27px;font-weight:650;color:#342f23}.plan-wheel-empty{height:220px;display:grid;place-items:center;color:#aaa18d;font-size:27px}.plan-picker-preview{font-size:13px;text-align:center;color:#746132;line-height:1.8;margin:17px 0 0}@media(max-width:420px){.plan-field-label{font-size:11px}.plan-picker-trigger{padding:9px 7px}.plan-picker-trigger span{font-size:16px}.plan-picker{padding-left:16px;padding-right:16px}.plan-picker-columns{gap:16px}}@media(max-height:500px){.plan-picker-help,.plan-picker-book{display:none}.plan-picker-columns{margin-top:12px}}

/* Content-sized home panels: no reserved stage or spacer before the action. */
.home-study-panel{margin:0;padding:22px;display:block}
.home-study-panel .home-study-empty-copy{text-align:center}
.home-study-panel .home-study-empty-copy h2{margin:0 0 12px}
.home-study-panel .home-study-empty-copy p{margin:0;color:var(--muted);font-size:14px}
.home-study-panel>.primary{width:100%;min-height:52px;margin:0}
.home-study-panel .active-book-select{margin-bottom:12px}
.home-study-panel .active-book-title h2{font-size:23px;overflow-wrap:anywhere}
.home-study-panel>.progress-bar{margin:12px 0}
.home-study-panel>.active-book-stats{margin:4px 0 12px}
.home-study-panel .active-book-stats strong{font-size:27px}
.home-study-panel>.study-plan{margin:0 0 16px;padding:15px}
.home-study-panel .study-plan h3{margin-bottom:9px}
.home-study-panel .plan-estimate{margin-top:10px}
.home-study-panel>.notice{margin:12px 0 0}
.home-study-panel.daily-entry>.primary{margin-top:16px}
.storage-warning{padding:12px 16px;border:1px solid #e7cf87;border-radius:12px;background:#fff5d5;color:#775238;font-size:13px}
@media(max-width:420px){.home-study-panel{padding:20px}}
.home-study-panel .active-book-stats>div{display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap}
.home-study-panel .active-book-stats>div+div{padding-left:16px}
.home-study-panel>.study-plan{line-height:1.5}


/* The readonly review count shares the wheel fields' label row and control box. */
.plan-fields>.plan-field{display:flex;flex-direction:column}
.plan-fields .plan-field-label{display:block;line-height:1.5;min-height:18px}
.plan-fields .plan-input-wrap{margin-top:6px;align-items:center}
.plan-fields .plan-picker-trigger,.plan-fields .plan-input-wrap input{height:46px;min-height:46px;line-height:1.5;padding-top:8px;padding-bottom:8px}

/* Three stable answer blocks, shared by browsing and daily practice. */
.structured-answer{min-width:0}.answer-panel{min-width:0;margin:0 0 32px;padding:0 0 8px}.answer-panel>.answer-panel-title{font-size:24px;line-height:1.45;margin:0 0 20px;padding:0 0 12px;border-bottom:2px solid #e5dcc5;letter-spacing:.02em}.answer-panel.answer-key>.answer-panel-title{border-color:#dec573}.answer-panel.answer-followup>.answer-panel-title{border-color:#b6cab3}.answer-subsection{margin:0 0 24px}.answer-subsection>h3{font-size:18px;line-height:1.65;margin:0 0 12px}.answer-panel p{overflow-wrap:anywhere}.answer-panel .takeaway,.answer-panel .project{margin:22px 0 0}.answer-panel .sources{margin:24px 0 0;padding:18px 0 0;border-top:1px solid var(--line)}.answer-panel .sources h3{margin:0 0 12px;font-size:16px}.answer-followup .answer-subsection{margin-bottom:0}.answer-followup .followup-block{margin:0 0 18px}.answer-followup .followup-block h3{font-size:18px}.answer-unprovided{font-size:13px;color:var(--muted)}
.answer-diagram{margin:24px 0;padding:20px;border:1px solid #dedfcb;border-radius:16px;background:#f6f8f0;min-width:0}.diagram-title{font-size:16px;font-weight:700;line-height:1.7;text-align:center;margin-bottom:18px}.diagram-lanes{display:flex;flex-wrap:wrap;gap:14px}.diagram-lane{flex:1 1 180px;min-width:0;padding:14px;border-radius:12px;background:#fffdf6;border:1px solid #e5e6d9}.diagram-lane:nth-child(3n+2){background:#eef5f8}.diagram-lane:nth-child(3n){background:#eef6ee}.diagram-lane-title{font-size:14px;font-weight:700;text-align:center;margin-bottom:12px;overflow-wrap:anywhere}.diagram-steps{list-style:none;padding:0!important;margin:0!important}.diagram-step{position:relative;margin:0 0 28px!important;padding:12px;border:1px solid #d2dccb;border-radius:9px;background:white;line-height:1.65;font-size:13px;overflow-wrap:anywhere}.diagram-step:last-child{margin-bottom:0!important}.diagram-step:not(:last-child)::after{content:'↓';position:absolute;bottom:-27px;left:50%;transform:translateX(-50%);color:#6c8364;font-size:21px;line-height:25px}.diagram-step strong{display:block;font-size:14px;color:var(--ink)}.diagram-step span{display:block;margin-top:5px;color:var(--muted)}.answer-diagram .diagram-caption{font-size:12px;line-height:1.8;margin:16px 0 0;color:#617054}.daily-full-answer .answer-panel p{line-height:1.9}.daily-full-answer .answer-subsection>h3{margin-top:0}
@media(max-width:600px){.answer-panel{margin-bottom:26px}.answer-panel>.answer-panel-title{font-size:22px;margin-bottom:17px}.answer-subsection>h3,.answer-followup .followup-block h3{font-size:17px}.answer-diagram{padding:14px}.diagram-lane{flex-basis:100%}.answer-followup .followup-block{padding:17px}}
.provenance-tags{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}.provenance-tag{display:inline-flex;align-items:center;max-width:100%;padding:4px 9px;border:1px solid #dce4d8;border-radius:7px;background:#f0f5ed;color:#4c6950;font-size:12px;line-height:1.6;font-weight:500;overflow-wrap:anywhere;text-decoration:none}.frequency-tag{border-color:#ead9a9;background:#fcf4df;color:#8c6b2b}a.provenance-tag:hover{text-decoration:underline}a.provenance-tag:focus-visible{outline:2px solid #8c6b2b;outline-offset:3px}.lesson-card .provenance-tags{margin:8px 0}.daily-card .provenance-tags{margin-bottom:20px}

/* Source notes stay inside references; no extra answer panel or card badge. */
.sources .source-origin{display:block;color:#475d50;font-size:.875rem;line-height:1.7;margin:10px 0}.sources .source-document-list{font-size:.875rem;line-height:1.7;padding-left:1.3em;overflow-wrap:anywhere}.source-audit-link{display:inline-block;color:#216844;text-decoration:underline;text-underline-offset:3px;margin:8px 0 14px;line-height:1.6}.source-audit-link:focus-visible{outline:3px solid #ae781d;outline-offset:4px}

/* Source-first navigation. These views never create or rewrite learning data. */
.source-directory-entry{border:1px solid #d9dfd3;background:#f3f6ec;border-radius:16px;padding:20px 24px;margin:0 0 26px}
.source-directory-entry h2{margin-bottom:7px}.source-directory-entry p{font-size:14px;color:#4d5f51;margin:0 0 12px}
.source-directory-link{display:inline-flex;align-items:center;min-height:44px;padding:9px 15px;border-radius:9px;background:#315b43;color:white;text-decoration:none;font-size:14px;font-weight:650;line-height:1.6}
.source-directory-link:hover{background:#244c35}.lesson-original-sources{padding:12px 0;margin:10px 0;border-bottom:1px solid var(--line)}
.lesson-original-sources .source-audit-link{display:block;overflow-wrap:anywhere;margin:6px 0}.source-answer-notice{color:#566657;font-size:13px;line-height:1.8}
.history-library{margin:20px 0}.history-library summary{min-height:44px;cursor:pointer;font-weight:600;padding:9px 0}.history-library .search{margin-top:14px}.history-library .lesson-card{width:100%;margin:0 0 12px;text-align:left}.history-library .notice{font-size:13px}
.source-page{background:#faf8f2}.source-shell{max-width:1120px;margin:auto;padding:30px 28px 60px;min-width:0}
.source-header{margin-bottom:24px}.source-header h1{font-size:29px;margin:24px 0 12px}.source-header p{margin-bottom:10px}.source-back{display:inline-block;min-height:44px;color:#315b43;text-underline-offset:3px}
.source-scope-note,.source-record-meta,.source-note,.source-footer{color:#687568;font-size:13px;line-height:1.85;overflow-wrap:anywhere}
.source-filters{display:grid;grid-template-columns:minmax(180px,2fr) minmax(125px,1fr) minmax(125px,1fr);gap:10px;margin:22px 0 16px}
.source-filters input,.source-filters select{width:100%;min-width:0;padding:10px 12px;border:1px solid #d6dcd1;border-radius:9px;background:white;color:var(--ink);min-height:46px;font-size:14px}
.source-count{font-size:13px;color:#566657;margin-bottom:18px}.source-record{background:white;border:1px solid #e1e5da;border-radius:14px;padding:24px;margin-bottom:18px;min-width:0;scroll-margin-top:18px}
.source-record h2{font-size:21px;line-height:1.65;margin:10px 0 12px;white-space:pre-wrap;overflow-wrap:anywhere}.source-record h3{font-size:17px;margin:20px 0 10px;line-height:1.7}.source-record h4{font-size:15px;margin:16px 0 10px;line-height:1.8}
.source-tags{display:flex;flex-wrap:wrap;gap:7px}.source-tag{display:inline-block;font-size:12px;line-height:1.6;background:#eff3e9;color:#4d6853;border-radius:5px;padding:3px 8px}.source-pending{color:#8c5e18;background:#fff6e6;padding:8px 10px;border-radius:5px}
.source-original-link,.source-study-link,.source-record-permalink{display:inline-block;min-height:36px;padding:6px 0;color:#256242;text-underline-offset:3px;font-size:13px;overflow-wrap:anywhere}.source-record-permalink{font-size:12px;color:#71806e}
.source-choices{padding-left:25px;white-space:pre-wrap}.source-choices li{margin:8px 0;overflow-wrap:anywhere}
.source-record pre{max-width:100%;overflow:auto;white-space:pre;tab-size:4;line-height:1.7;background:#28312d;color:#f4f7ee;border-radius:9px;padding:16px;font-size:13px;margin:14px 0 20px}
.source-answer-disclosure>summary,.source-self-tests>summary{min-height:44px;padding:11px 0;cursor:pointer;font-weight:600;color:#315b43;line-height:1.7}
.source-answer-disclosure{border-top:1px solid var(--line);margin-top:15px}.source-answer-section p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95;margin-bottom:14px}
.source-linked-answer{border-top:1px solid #dfe6d8;margin-top:22px;padding-top:8px}.source-self-tests{background:#f6f7f2;padding:7px 15px;border-radius:9px;margin:20px 0}
.source-technical-refs a{display:block;color:#256242;font-size:13px;overflow-wrap:anywhere;padding:5px 0}.source-more{display:block;margin:20px auto}.source-footer{margin-top:30px;border-top:1px solid var(--line);padding-top:18px}.source-empty{padding:24px;background:white;border-radius:10px;color:#697264}
[hidden]{display:none!important}
@media(max-width:720px){.source-shell{padding:20px 16px 45px}.source-header h1{font-size:25px}.source-record{padding:18px}.source-record h2{font-size:19px}.source-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.source-filters input{grid-column:1/-1}.source-filters input,.source-filters select{font-size:16px}.source-record pre{font-size:12px}.source-directory-entry{padding:17px 18px}}
@media(max-width:390px){.source-filters{grid-template-columns:1fr}.source-record{padding:15px}.source-header h1{font-size:23px}}
@media print{.source-filters,.source-more,.source-back,.source-record-permalink{display:none}.source-shell{max-width:none;padding:0}.source-record{break-inside:avoid;border-radius:0}.source-record pre{white-space:pre-wrap;overflow-wrap:anywhere;color:black;background:#f5f5f5}}

/* Evidence labels never cover controls or silently promote entire answer cards. */
.origin-disclosure,.followup-origin{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.75;color:#6b531e;background:#fff7e0;border:1px solid #e5d5a8;border-radius:8px;padding:9px 12px;margin:12px 0 16px}
.lesson-card .origin-disclosure{display:block;font-size:12px;max-height:none;overflow:visible;-webkit-line-clamp:unset;margin:8px 0}
.followup-verified{color:#315c42;background:#eef6ec;border-color:#c8dec5}.followup-source-list{padding-left:23px;overflow-wrap:anywhere;font-size:13px}.followup-source-list a{color:#256242;text-underline-offset:3px}
.source-verified-followup{border-top:1px solid #dbe5d6;margin-top:20px;padding-top:10px}.daily-card>.origin-disclosure{clear:both;margin-right:45px}.followup-disclosure{margin:15px 0}
.source-full-question{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95;margin:10px 0 18px}
.original-prompt{background:#fffef9;border:1px solid #e1dccb;border-radius:12px;padding:18px 20px;margin:18px 0 22px;min-width:0}
.original-prompt h2{font-size:17px;margin:12px 0 10px}.original-prompt h2:first-child{margin-top:0}.original-prompt .source-full-question{font-size:16px;margin-bottom:14px}
.original-prompt pre{max-width:100%;overflow:auto;white-space:pre;tab-size:4;background:#28312d;color:#f4f7ee;font-size:13px;line-height:1.8;border-radius:9px;padding:15px;margin:12px 0 18px}
.original-prompt .source-choices{font-size:15px;margin-bottom:0}.original-prompt .source-choices li{white-space:pre-wrap}.source-study-original{margin:8px 0 14px}
@media(max-width:600px){.original-prompt{padding:15px}.original-prompt pre{font-size:12px}.original-prompt .source-full-question{font-size:15px}}

/* Hot100-only readability; no styling changes to the eight existing books. */
.hot100-detail, .hot100-answer, .hot100-panel { min-width: 0; max-width: 100%; }
.hot100-answer p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; }
.hot100-answer pre.hot100-code { box-sizing: border-box; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; tab-size: 4; line-height: 1.65; }
.hot100-answer pre.hot100-code code { white-space: inherit; overflow-wrap: inherit; word-break: inherit; }
.hot100-detail h1, .hot100-source { overflow-wrap: anywhere; }
@media (max-width: 600px) { .hot100-answer pre.hot100-code { font-size: 12px; padding: 12px; } .hot100-answer .answer-panel { padding: 16px 12px; } }
.hot100-code-line { display: block; position: relative; padding-left: 3.4em; min-height: 1.65em; }
.hot100-code-line::before { content: attr(data-line); position: absolute; left: 0; width: 2.5em; text-align: right; opacity: .55; user-select: none; }
.hot100-language-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hot100-language-note { padding: 8px 12px; border-left: 3px solid var(--accent, #847653); }

/* Dot UI navigation: shared by detail and daily-answer views. */
.answer-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px;position:sticky;top:8px;z-index:5;padding:8px;background:var(--bg,#f6f8fb);border-radius:14px}
.answer-navigation .answer-nav-button{min-width:0;min-height:48px;padding:10px 6px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#24324a;font-weight:650;cursor:pointer;font-size:15px}
.answer-navigation .answer-nav-button:hover,.answer-navigation .answer-nav-button.active{background:#263c5b;color:#fff;border-color:#263c5b}
.answer-nav-button:focus-visible{outline:3px solid #4474b8;outline-offset:3px}
.hot100-language-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
.answer-panel{scroll-margin-top:90px;min-width:0}.answer-panel:focus{outline:none}
.structured-answer,.article,.detail,.answer-subsection,.hot100-implementation{min-width:0;max-width:100%}
.article pre,.answer-panel pre{max-width:100%;overflow-x:auto;white-space:pre;box-sizing:border-box}.answer-panel p,.answer-panel li{overflow-wrap:anywhere}
@media(max-width:480px){.answer-navigation{gap:6px;padding:6px;top:4px}.answer-navigation .answer-nav-button{font-size:14px}.hot100-code{max-width:100%;overflow-x:auto}}

.hot100-answer pre.hot100-code,.hot100-answer pre.hot100-code code,.hot100-answer .hot100-code-line{white-space:pre;overflow-wrap:normal;word-break:normal}.hot100-answer pre.hot100-code{overflow-x:auto}

/* Public comments draft: independent of local learning storage. */
.comments-page{max-width:850px;margin:0 auto;padding-bottom:120px}
.comments-question{margin:24px 0;padding:24px;background:var(--panel,#fff);border:1px solid #e5e5df;border-radius:22px;overflow-wrap:anywhere}
.comments-question h1{font-size:clamp(22px,4vw,32px);line-height:1.4;margin:14px 0}
.comments-question pre{max-width:100%;overflow:auto;white-space:pre}
.comments-status,.comments-private-note{color:#647068;font-size:14px;line-height:1.7}
.comments-list{margin:24px 0}
.comment-item{padding:22px 18px;border-bottom:1px dashed #b4beb7;overflow-wrap:anywhere}
.comment-item:first-child{border-top:1px dashed #b4beb7}
.comment-own{background:#edf4ef;border-radius:12px}
.comment-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
.comment-avatar{width:32px;height:32px;border-radius:50%;background:#e1e7df;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.comment-meta time{color:#778078;font-size:12px}
.comment-me{padding:2px 8px;border-radius:12px;background:#d9e9db;color:#355442}
.comment-body{white-space:pre-wrap;line-height:1.85;margin:16px 0}
.comment-actions,.comments-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.comment-actions button{padding:6px 14px;font-size:13px}
.comments-editor{margin:24px 0;padding:22px;background:#fff;border:1px solid #ccd9ce;border-radius:20px}
.comments-editor[hidden]{display:none}
.comments-editor textarea{width:100%;min-height:150px;resize:vertical;padding:14px;border:1px solid #bbc8bf;border-radius:12px;font:inherit;box-sizing:border-box}
.comments-count{text-align:right;color:#69736c;font-size:13px}
.comments-footer{position:sticky;bottom:24px;display:flex;align-items:center;justify-content:center;gap:14px;padding:14px;background:rgba(250,248,242,.97);border:1px solid #e5e7df;border-radius:30px;box-shadow:0 6px 24px #26372b0d;z-index:10}
.comments-write{border-radius:999px;padding:13px 30px}
.comments-footer span{font-size:13px;color:#68726b}
.comments-empty{padding:28px 18px;color:#69736c}
@media(max-width:700px){.comments-question{padding:18px}.comments-page{padding-bottom:120px}.comments-footer{bottom:84px;gap:10px;padding:10px}.comments-footer span{font-size:12px}.comments-write{padding:12px 24px}.comment-item{padding:18px 12px}.comments-editor{padding:16px}}

/* Isolated account UI: text-only private previews, no changes to learning navigation. */
.account-panel{margin:18px 0}.account-panel button{margin:6px 8px 6px 0}.account-panel label{display:block;margin:12px 0}.account-panel input:not([type=checkbox]){display:block;width:100%;max-width:440px;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}.account-panel details{margin:8px 0}.account-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;background:#f1f5f9;padding:12px}.account-panel button:disabled{opacity:.5;cursor:not-allowed}.comment-avatar img{width:32px;height:32px;border-radius:50%;object-fit:cover}

/* Full multiple-choice debrief: terminology, mechanism and every option. */
.quiz-debrief{margin:28px 0;padding:26px;border:1px solid #d8ded7;border-radius:22px;background:#fbfcf9;overflow-wrap:anywhere}
.quiz-result-title{margin:0 0 14px;font-size:22px;line-height:1.45}
.quiz-correct-answer{display:flex;align-items:baseline;gap:12px;margin:0 0 16px;padding:15px 17px;border-radius:14px;background:#e8f2e8;color:#233c2d}
.quiz-correct-answer strong{flex:0 0 auto;color:#1f5a36}
.quiz-short-answer{margin:0 0 24px;padding:18px;border-left:4px solid #5b7663;background:#f3f6f1;border-radius:0 12px 12px 0}
.quiz-short-answer h4,.quiz-debrief-section h4{margin:0 0 10px;font-size:18px;color:#27372c}
.quiz-short-answer p,.quiz-debrief-section p{margin:8px 0;line-height:1.9}
.quiz-debrief-section{margin-top:24px}
.quiz-term-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}
.quiz-term{padding:16px;border:1px solid #dfe4dc;border-radius:14px;background:#fff;min-width:0}
.quiz-term dt{font-weight:800;font-size:17px;color:#2b5138;overflow-wrap:anywhere}
.quiz-term dd{margin:10px 0 0;color:#3e4841}
.quiz-term dd p{margin:5px 0;line-height:1.75}
.quiz-option-analysis{display:grid;gap:14px;margin:0;padding:0;list-style:none}
.quiz-option-analysis li{padding:18px;border:1px solid #dfe4dc;border-left-width:5px;border-radius:14px;background:#fff}
.quiz-option-analysis li.is-correct{border-left-color:#368057;background:#f4faf5}
.quiz-option-analysis li.is-incorrect{border-left-color:#8a948d}
.quiz-option-analysis h5{margin:0 0 10px;font-size:16px;line-height:1.65;color:#27372c}
.quiz-option-analysis .quiz-responsibility,.quiz-option-analysis .quiz-guarantee{padding-top:8px;border-top:1px dashed #d9ded8;color:#48534c}
.quiz-option:disabled{opacity:1;cursor:default}
.quiz-boundaries{margin:0;padding-left:22px}
.quiz-boundaries li{margin:8px 0;line-height:1.8}
.quiz-example-code{max-width:100%;margin:12px 0;padding:16px;border-radius:12px;background:#18231d;color:#eef6ef;overflow:auto;white-space:pre;tab-size:4}
.quiz-example-code code{font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace}
.daily-full-answer>.quiz-debrief{margin-top:22px}
.answer-focus-content,.focus-blocks,.source-direct-answer{min-width:0;max-width:100%;overflow-wrap:anywhere}
.answer-focus-fallback,.answer-original-unavailable{padding:12px 15px;border-left:3px solid #8b856d;background:#f5f2e9;color:#625a40;border-radius:0 8px 8px 0;font-size:14px;line-height:1.75}
.answer-focus-correction-note,.answer-original-label,.answer-focus-selected-source{font-size:14px;color:#625a40;line-height:1.75}
.answer-focus-technical-references{margin-top:18px;border-top:1px solid #d9dfd6;padding-top:10px;font-size:14px}.answer-focus-technical-references p{margin:4px 0}.answer-focus-technical-references a{display:block;overflow-wrap:anywhere;margin:5px 0}
.answer-originals,.source-expanded-references{margin:18px 0;padding:17px 19px;border:1px solid #d9dfd6;border-radius:14px;background:#fafbf8;min-width:0;max-width:100%;overflow-wrap:anywhere}
.answer-originals>summary,.source-expanded-references>summary,.answer-original-exact>summary{cursor:pointer;font-weight:700;color:#365f45;line-height:1.7}
.answer-original-source+.answer-original-source{margin-top:22px;padding-top:16px;border-top:1px solid #d9dfd6}
.answer-source-corrections{margin:16px 0;padding:14px 16px;border:1px solid #d6b579;border-radius:10px;background:#fff8e9}
.answer-source-corrections h4{margin:0 0 10px;color:#77521b}
.answer-source-correction+.answer-source-correction{border-top:1px solid #e8d5b5;margin-top:14px;padding-top:10px}
.answer-source-correction p{margin:7px 0}.answer-source-correction a{display:block;margin-top:6px;overflow-wrap:anywhere}
.focus-code{display:block;max-width:100%;overflow:auto;white-space:pre;tab-size:4}.focus-code code{white-space:pre}
.focus-raw-text{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;overflow:auto;font:13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace}
.focus-list{padding-left:24px}.focus-list li{margin:8px 0}
.focus-table-wrap{max-width:100%;overflow:auto;margin:15px 0;border:1px solid #d9dfd6;border-radius:8px}
.focus-table{border-collapse:collapse;width:100%;min-width:280px;font-size:14px;line-height:1.7}
.focus-table th,.focus-table td{border-bottom:1px solid #d9dfd6;padding:10px 12px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.focus-table th{background:#eff4ed;color:#314f3a}.focus-table caption{padding:10px;text-align:left;font-weight:700}
.answer-original-exact{margin-top:15px}.answer-original-exact>pre{margin-bottom:0}
.answer-original-figure{margin:18px 0;max-width:100%;min-width:0}.answer-original-image{display:block;max-width:100%;height:auto;object-fit:contain}.answer-original-figure figcaption{margin-top:8px;color:#5d685f;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:700px){.answer-originals,.source-expanded-references{padding:14px 12px}.answer-source-corrections{padding:12px}.focus-table th,.focus-table td{padding:8px}.answer-originals h4{font-size:16px}}
@media(max-width:700px){.quiz-debrief{padding:20px 16px;border-radius:16px}.quiz-result-title{font-size:19px}.quiz-correct-answer{display:block}.quiz-correct-answer strong{display:block;margin-bottom:6px}.quiz-term-list{grid-template-columns:1fr}.quiz-option-analysis li{padding:15px 13px}.quiz-debrief-section{margin-top:20px}}
