:root{font-family:Segoe UI,Microsoft YaHei,system-ui,sans-serif;color:#15171a;background:#f6f7f9;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0;--background: #f6f7f9;--surface: #ffffff;--surface-subtle: #f1f3f5;--surface-hover: #e9edef;--text: #15171a;--text-muted: #687078;--border: #e2e5e9;--border-strong: #cbd1d7;--primary: #0f766e;--primary-hover: #0b625c;--primary-soft: #e5f4f1;--primary-foreground: #ffffff;--indigo: #4f46e5;--indigo-soft: #eef2ff;--amber: #a16207;--amber-soft: #fef3c7;--danger: #b42318;--danger-soft: #feeceb;--shadow: 0 10px 30px rgb(21 23 26 / 8%);--sidebar-width: 224px;--topbar-height: 56px}:root[data-theme=dark]{color:#edf0f2;background:#101214;--background: #101214;--surface: #191c20;--surface-subtle: #202429;--surface-hover: #292e34;--text: #edf0f2;--text-muted: #a3abb4;--border: #30363d;--border-strong: #47505a;--primary: #3eb7a7;--primary-hover: #66cbbc;--primary-soft: #183c38;--primary-foreground: #071a18;--indigo: #a5b4fc;--indigo-soft: #292b58;--amber: #fbbf24;--amber-soft: #493714;--danger: #ff8a82;--danger-soft: #4c2423;--shadow: 0 12px 36px rgb(0 0 0 / 25%)}*{box-sizing:border-box}html{min-width:320px;background:var(--background)}body{margin:0;min-width:320px;min-height:100vh;background:var(--background);color:var(--text)}button,input,textarea,select{font:inherit;letter-spacing:0}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{color:inherit}.app-frame{min-height:100vh;display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);grid-template-rows:var(--topbar-height) minmax(calc(100vh - var(--topbar-height)),auto)}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--border);z-index:20;transition:width .18s ease,transform .18s ease}.brand{height:var(--topbar-height);display:flex;align-items:center;gap:10px;padding:0 16px;border-bottom:1px solid var(--border);overflow:hidden}.brand-mark{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:6px;background:var(--primary);color:var(--primary-foreground);font-weight:800}.brand-text{font-size:18px;font-weight:700;white-space:nowrap}.sidebar-nav{display:flex;flex-direction:column;gap:4px;padding:14px 10px}.nav-link,.sidebar-action{height:40px;display:flex;align-items:center;gap:11px;width:100%;padding:0 11px;border-radius:6px;color:var(--text-muted);white-space:nowrap;overflow:hidden}.nav-link svg,.sidebar-action svg{width:18px;height:18px;flex:0 0 18px}.nav-link:hover,.sidebar-action:hover{color:var(--text);background:var(--surface-subtle)}.nav-link.active{color:var(--primary);background:var(--primary-soft);font-weight:650}.sidebar-footer{margin-top:auto;padding:10px;border-top:1px solid var(--border)}.topbar{grid-column:2;position:sticky;top:0;z-index:15;height:var(--topbar-height);display:flex;align-items:center;gap:12px;padding:0 24px;background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}.topbar-title{font-size:14px;font-weight:650}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:6px}.main-content{grid-column:2;grid-row:2;min-width:0}.sidebar-collapsed{--sidebar-width: 64px}.sidebar-collapsed .brand{padding:0 17px}.sidebar-collapsed .brand-text,.sidebar-collapsed .nav-link span,.sidebar-collapsed .sidebar-action span{display:none}.sidebar-collapsed .sidebar-nav,.sidebar-collapsed .sidebar-footer{padding-inline:11px}.sidebar-collapsed .nav-link,.sidebar-collapsed .sidebar-action{justify-content:center;padding:0}.mobile-menu,.mobile-scrim{display:none}.button{height:36px;border:1px solid transparent;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;font-weight:620;font-size:13px;cursor:pointer;transition:background .14s ease,color .14s ease,border-color .14s ease}.button svg{width:16px;height:16px}.button:focus-visible,.input:focus-visible,.textarea:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.button:disabled{opacity:.45;cursor:not-allowed}.button-primary{background:var(--primary);color:var(--primary-foreground)}.button-primary:hover:not(:disabled){background:var(--primary-hover)}.button-secondary{background:var(--surface);border-color:var(--border-strong);color:var(--text)}.button-secondary:hover:not(:disabled){background:var(--surface-subtle)}.button-ghost{background:transparent;color:var(--text-muted)}.button-ghost:hover:not(:disabled){background:var(--surface-subtle);color:var(--text)}.button-danger{background:var(--danger);color:#fff}.button-icon{width:36px;padding:0;flex:0 0 36px}.button-small{height:30px;padding:0 9px;font-size:12px}.input,.textarea,select{width:100%;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text)}.input{height:38px;padding:0 11px}.textarea{padding:10px 11px;line-height:1.65;resize:vertical}.input::placeholder,.textarea::placeholder{color:var(--text-muted)}.tooltip{border-radius:4px;padding:5px 8px;background:var(--text);color:var(--surface);font-size:12px;box-shadow:var(--shadow)}.page{width:min(1180px,100%);margin:0 auto;padding:42px 32px 64px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:32px}.page-heading h1{margin:3px 0 7px;font-size:30px;line-height:1.15}.page-heading p{margin:0;color:var(--text-muted)}.eyebrow{margin:0;color:var(--primary);font-size:11px;font-weight:750;letter-spacing:1.4px;text-transform:uppercase}.search-control{position:relative;width:min(330px,100%)}.search-control>svg{position:absolute;left:11px;top:11px;width:16px;height:16px;color:var(--text-muted);pointer-events:none}.search-control .input{padding-left:35px}.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.course-card{min-height:150px;position:relative;display:grid;grid-template-columns:42px 1fr 24px;align-items:start;gap:15px;padding:20px;border:1px solid var(--border);border-radius:8px;background:var(--surface);transition:border-color .14s ease,transform .14s ease,box-shadow .14s ease}.course-card:hover{border-color:var(--border-strong);transform:translateY(-2px);box-shadow:var(--shadow)}.course-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:7px;background:var(--primary-soft);color:var(--primary)}.course-icon svg{width:20px;height:20px}.course-card-body{min-width:0}.course-field{display:block;margin:2px 0 8px;color:var(--text-muted);font-size:12px}.course-card h2{margin:0 0 10px;font-size:18px;line-height:1.3;overflow-wrap:anywhere}.course-card p{margin:0;color:var(--text-muted);font-size:13px}.course-arrow{width:18px;height:18px;margin-top:12px;color:var(--text-muted)}.skeleton{min-height:150px;background:linear-gradient(90deg,var(--surface) 25%,var(--surface-subtle) 50%,var(--surface) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite}@keyframes shimmer{to{background-position-x:-200%}}.page-state{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px}.page-state>svg{width:34px;height:34px;padding:7px;box-sizing:content-box;border-radius:8px;color:var(--text-muted);background:var(--surface-subtle)}.page-state h2{margin:16px 0 6px;font-size:18px}.page-state p{max-width:420px;margin:0 0 18px;color:var(--text-muted);font-size:14px}.dialog-overlay{position:fixed;inset:0;background:#0a0c0e85;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:fade-in .14s ease}.dialog-content{position:fixed;left:50%;top:50%;width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;transform:translate(-50%,-50%);padding:24px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow);animation:dialog-in .16s ease}.dialog-small{width:min(420px,calc(100vw - 32px))}.dialog-title{margin:0;padding-right:40px;font-size:19px;font-weight:700}.dialog-description{margin:7px 0 20px;color:var(--text-muted);font-size:13px;line-height:1.55}.dialog-close{position:absolute;right:14px;top:14px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}@keyframes fade-in{0%{opacity:0}}@keyframes dialog-in{0%{opacity:0;transform:translate(-50%,-48%)}}.field-group{display:flex;flex-direction:column;gap:16px;margin-top:20px}.field{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;border:0}.field>span,.field legend{font-size:13px;font-weight:650}.field legend{margin-bottom:7px}.form-error{margin:-4px 0 0;color:var(--danger);font-size:13px}.study-layout{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:calc(100vh - var(--topbar-height))}.study-aside{position:sticky;top:var(--topbar-height);height:calc(100vh - var(--topbar-height));overflow-y:auto;padding:25px 18px;border-right:1px solid var(--border);background:var(--surface)}.back-link{display:inline-flex;align-items:center;gap:7px;color:var(--text-muted);font-size:13px}.back-link:hover{color:var(--primary)}.back-link svg{width:15px;height:15px}.study-aside h1{margin:23px 0 5px;font-size:20px;line-height:1.35}.study-aside>p{margin:0;color:var(--text-muted);font-size:13px}.progress-block{margin:22px 0;padding:14px;border-radius:7px;background:var(--surface-subtle)}.progress-block>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:12px}.progress-block strong{color:var(--primary)}.progress-track{height:5px;margin:10px 0 6px;overflow:hidden;border-radius:3px;background:var(--border)}.progress-track span{display:block;height:100%;border-radius:inherit;background:var(--primary);transition:width .18s ease}.progress-block small{color:var(--text-muted);font-size:11px}.sync-callout{width:100%;display:flex;align-items:center;gap:10px;margin:-6px 0 18px;padding:10px;text-align:left;border:1px solid var(--border);border-radius:7px;background:var(--surface);cursor:pointer}.sync-callout:hover{background:var(--surface-subtle)}.sync-callout>svg{width:17px;color:var(--indigo)}.sync-callout span{display:flex;flex-direction:column;gap:2px}.sync-callout strong{font-size:12px}.sync-callout small{color:var(--text-muted);font-size:10px}.chapter-nav{display:flex;flex-direction:column;gap:3px}.chapter-nav button{width:100%;min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;text-align:left;border:0;border-radius:6px;background:transparent;color:var(--text-muted);cursor:pointer}.chapter-nav button:hover{color:var(--text);background:var(--surface-subtle)}.chapter-nav button.active{color:var(--primary);background:var(--primary-soft);font-weight:650}.chapter-nav small{font-size:11px}.study-main{width:min(940px,100%);margin:0 auto;padding:36px 36px 72px}.study-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.study-heading h2{margin:4px 0 6px;font-size:27px}.study-heading p:not(.eyebrow){margin:0;color:var(--text-muted);font-size:13px}.study-actions{display:flex;gap:5px}.study-toolbar{margin:24px 0 14px}.study-search{width:100%}.chapter-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:1px;margin-bottom:31px;overflow:hidden;border:1px solid var(--border);border-radius:7px;background:var(--border)}.chapter-overview button{min-height:86px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:13px;text-align:left;border:0;background:var(--surface);color:var(--text);cursor:pointer}.chapter-overview button:hover,.chapter-overview button.active{background:var(--primary-soft)}.chapter-overview span{color:var(--primary);font-size:11px;font-weight:700}.chapter-overview strong{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.chapter-overview small{color:var(--text-muted);font-size:10px}.question-group{margin-bottom:32px}.group-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:9px}.group-heading h3{margin:0;font-size:16px}.group-heading span{color:var(--text-muted);font-size:12px}.question-item{margin-bottom:7px;overflow:clip;border:1px solid var(--border);border-radius:7px;background:var(--surface)}.question-item[open]{border-color:var(--border-strong)}.question-item summary{min-height:60px;display:grid;grid-template-columns:42px minmax(0,1fr) 34px 24px;align-items:center;gap:7px;padding:10px 13px;cursor:pointer;list-style:none}.question-item summary::-webkit-details-marker{display:none}.question-number{color:var(--text-muted);font-size:11px;font-weight:700}.question-prompt{min-width:0;line-height:1.5;font-size:14px;font-weight:620;overflow-wrap:anywhere}.master-button{width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--border-strong);border-radius:6px;background:transparent;color:transparent;cursor:pointer}.master-button:hover{color:var(--text-muted);background:var(--surface-subtle)}.master-button svg{width:15px;height:15px}.mastered .master-button{border-color:var(--primary);background:var(--primary);color:var(--primary-foreground)}.question-chevron{width:18px;height:18px;color:var(--text-muted);transition:transform .16s ease}.question-item[open] .question-chevron{transform:rotate(180deg)}.answer{padding:20px 24px 23px 62px;border-top:1px solid var(--border);background:var(--surface-subtle)}.answer-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.answer-heading>span{color:var(--primary);font-size:11px;font-weight:750;text-transform:uppercase}.answer p,.answer li{font-size:14px;line-height:1.75}.answer p{margin:0 0 12px}.answer-direct>:first-child{margin-top:0}.answer-direct>:last-child{margin-bottom:12px}.answer code{padding:1px 4px;border-radius:4px;background:var(--surface);font-family:Consolas,monospace;font-size:.9em}.answer ul,.answer ol{margin:0;padding-left:22px}.manage-page{height:calc(100vh - var(--topbar-height));display:flex;flex-direction:column;overflow:hidden}.manage-toolbar{height:58px;flex:0 0 58px;display:flex;align-items:center;gap:7px;padding:9px 14px;border-bottom:1px solid var(--border);background:var(--surface)}.course-switcher{position:relative;width:240px}.course-switcher select{height:38px;padding:0 36px 0 11px;appearance:none}.course-switcher svg{position:absolute;right:11px;top:11px;width:16px;pointer-events:none}.management-grid{min-height:0;flex:1;display:grid;grid-template-columns:230px 320px minmax(420px,1fr)}.management-pane{min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--border);background:var(--surface)}.pane-heading{height:54px;flex:0 0 54px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-bottom:1px solid var(--border)}.pane-heading>div{min-width:0;display:flex;align-items:center;gap:8px}.pane-heading h2{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.pane-heading span{display:grid;place-items:center;min-width:23px;height:20px;padding:0 5px;border-radius:4px;background:var(--surface-subtle);color:var(--text-muted);font-size:11px}.pane-search{position:relative;padding:10px;border-bottom:1px solid var(--border)}.pane-search>svg{position:absolute;left:21px;top:21px;width:15px;height:15px;color:var(--text-muted)}.pane-search .input{padding-left:33px}.pane-list{min-height:0;flex:1;overflow-y:auto;padding:7px}.pane-row{min-height:52px;display:flex;align-items:center;border-radius:6px}.pane-row:hover{background:var(--surface-subtle)}.pane-row.active{background:var(--primary-soft)}.pane-select{min-width:0;flex:1;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:8px 9px;text-align:left;border:0;background:transparent;cursor:pointer;color:var(--text)}.pane-select strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.pane-select small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:10px}.row-actions{display:none;gap:1px;padding-right:4px}.pane-row:hover .row-actions,.pane-row.active .row-actions{display:flex}.row-actions .button{width:27px;height:27px;flex-basis:27px}.row-actions .button svg{width:13px;height:13px}.question-row{min-height:64px}.question-row .pane-select{flex-direction:column-reverse}.editor-pane{min-width:0;overflow-y:auto;background:var(--background)}.mobile-back{display:none}.question-editor{width:min(760px,100%);min-height:100%;margin:0 auto;padding:26px 30px 60px}.editor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:26px}.editor-heading h2{margin:3px 0 0;font-size:22px}.editor-actions{display:flex;gap:6px}.editor-fields{display:flex;flex-direction:column;gap:20px}.points-editor{display:flex;flex-direction:column;gap:7px;margin-bottom:8px}.point-row{display:grid;grid-template-columns:24px minmax(0,1fr) 36px;align-items:center;gap:6px}.point-row>span{text-align:center;color:var(--text-muted);font-size:11px}.segmented{width:fit-content;display:grid;grid-template-columns:1fr 1fr;padding:3px;border-radius:7px;background:var(--surface-subtle)}.segmented button{height:31px;padding:0 13px;border:0;border-radius:5px;background:transparent;color:var(--text-muted);cursor:pointer;font-size:12px}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #15171a1a}.count-badge{padding:5px 9px;border-radius:5px;background:var(--surface-subtle);color:var(--text-muted);font-size:12px}.trash-list{overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.trash-row{min-height:76px;display:grid;grid-template-columns:90px minmax(0,1fr) auto;align-items:center;gap:16px;padding:12px 16px;border-bottom:1px solid var(--border)}.trash-row:last-child{border-bottom:0}.trash-type{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:12px}.trash-type svg{width:16px;height:16px}.trash-content{min-width:0;display:flex;flex-direction:column;gap:4px}.trash-content strong,.trash-content small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trash-content strong{font-size:14px}.trash-content small{color:var(--text-muted);font-size:11px}@media(max-width:1100px){.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.management-grid{grid-template-columns:210px 280px minmax(390px,1fr)}.study-layout{grid-template-columns:210px minmax(0,1fr)}}@media(max-width:800px){.app-frame,.sidebar-collapsed{--sidebar-width: 224px;display:block;padding-top:var(--topbar-height)}.sidebar{transform:translate(-100%);top:var(--topbar-height);height:calc(100vh - var(--topbar-height))}.mobile-nav-open .sidebar{transform:translate(0)}.sidebar .brand{display:none}.sidebar-collapsed .brand-text,.sidebar-collapsed .nav-link span,.sidebar-collapsed .sidebar-action span{display:initial}.sidebar-collapsed .sidebar-nav,.sidebar-collapsed .sidebar-footer{padding-inline:10px}.sidebar-collapsed .nav-link,.sidebar-collapsed .sidebar-action{justify-content:flex-start;padding:0 11px}.topbar{position:fixed;inset:0 0 auto;padding:0 12px}.mobile-menu{display:inline-flex}.mobile-scrim{display:block;position:fixed;inset:var(--topbar-height) 0 0;border:0;background:#0a0c0e61;opacity:0;pointer-events:none;z-index:18;transition:opacity .18s ease}.mobile-nav-open .mobile-scrim{opacity:1;pointer-events:auto}.main-content{min-height:calc(100vh - var(--topbar-height))}.page{padding:28px 18px 48px}.page-heading{align-items:stretch;flex-direction:column;margin-bottom:22px}.search-control{width:100%}.course-grid{grid-template-columns:1fr}.study-layout{display:block}.study-aside{position:static;height:auto;padding:18px;border-right:0;border-bottom:1px solid var(--border)}.progress-block{margin-bottom:14px}.chapter-nav{flex-direction:row;overflow-x:auto;padding-bottom:2px}.chapter-nav button{flex:0 0 auto;width:auto;gap:12px}.sync-callout{display:none}.study-main{padding:25px 18px 54px}.chapter-overview{display:flex;overflow-x:auto;background:transparent;border:0;gap:7px}.chapter-overview button{flex:0 0 138px;border:1px solid var(--border);border-radius:6px}.management-grid{display:block;overflow-y:auto}.management-grid .management-pane,.management-grid .editor-pane{display:none}.management-grid[data-mobile-view=chapters] .chapter-pane,.management-grid[data-mobile-view=questions] .question-pane{display:flex}.management-grid[data-mobile-view=editor] .editor-pane{display:block}.mobile-back{display:inline-flex}.manage-page{height:auto;min-height:calc(100vh - var(--topbar-height));overflow:visible}.manage-toolbar{position:sticky;top:0;z-index:4}.course-switcher{min-width:0;flex:1}.management-pane{border-right:0;border-bottom:1px solid var(--border)}.chapter-pane,.question-pane{min-height:calc(100vh - var(--topbar-height) - 58px);max-height:none}.editor-pane{overflow:visible}.row-actions{display:flex}}@media(max-width:520px){.topbar-title{display:none}.topbar-actions{margin-left:auto}.topbar-actions .button:not(.button-icon){width:36px;padding:0;font-size:0}.topbar-actions .button:not(.button-icon) svg{width:16px;height:16px}.page-heading h1{font-size:26px}.course-card{min-height:132px;grid-template-columns:38px 1fr 18px;padding:16px}.course-icon{width:38px;height:38px}.study-heading{align-items:flex-start;flex-direction:column}.study-actions{width:100%}.study-actions .button{flex:1}.question-item summary{grid-template-columns:36px minmax(0,1fr) 30px 18px;padding:9px}.answer{padding:17px}.manage-toolbar>.button:not(.button-icon){width:36px;padding:0;font-size:0}.question-editor{padding:22px 16px 48px}.editor-heading{flex-direction:column}.editor-actions{width:100%;justify-content:flex-end}.trash-row{grid-template-columns:minmax(0,1fr) auto;gap:10px}.trash-type{grid-column:1 / -1}.trash-row .button{width:36px;padding:0;font-size:0}}@media print{.sidebar,.topbar,.study-aside,.study-actions,.study-toolbar,.chapter-overview,.master-button{display:none!important}.app-frame,.study-layout,.main-content{display:block}.study-main{width:100%;padding:0}.question-item{break-inside:avoid}.question-item:not([open]) .answer{display:block}.question-item summary{grid-template-columns:42px 1fr}.question-chevron{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
