@import url("typography.css");
:root{font:14px var(--font-app);color:#273431;background:#f6f8f8;letter-spacing:0;--ink:#243832;--muted:#73807c;--line:#dfe6e3;--accent:#176448;--wash:#eaf3ee;--sidebar:218px}
.catalog-table th.star-col{font-size:0}.catalog-table th.star-col:after{content:""}.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.plan-card{border:1px solid #dfe6e3;border-radius:6px;display:flex;flex-direction:column;gap:12px;padding:18px;min-width:0}.plan-card .plan-name{font-size:14px;font-weight:600}.plan-price{font-size:26px;color:#176448}.plan-card small,.plan-note{font-size:11px;line-height:1.8;font-style:normal;overflow-wrap:anywhere}.plan-card button{margin-top:auto;font-size:12px}.membership-card>strong{font-size:18px}.membership-card menu{padding:0;display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.payment-account-box{display:flex;gap:14px;padding:14px 0;border-block:1px solid #dfe6e3;font-size:12px}.login-status{font-size:12px;line-height:1.8;padding:15px 0}.device-conflict-panel{font-size:12px;line-height:1.8}.device-conflict-actions{display:flex;flex-wrap:wrap;gap:10px}.profile-warning,.profile-bind-message{font-size:11px;line-height:1.8;color:#927128}.dialog-card menu{flex-wrap:wrap}.fatal-error{position:fixed;inset:24px;z-index:150;overflow:auto;background:#fff;border:1px solid #ad4339;border-radius:8px;padding:24px}.fatal-error pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:520px){.plan-grid{grid-template-columns:1fr}.profile-bind-row{flex-wrap:wrap}.profile-bind-field{flex-basis:100%}.dialog-card,.membership-card{padding:20px}}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;letter-spacing:0}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:5px;padding:8px 12px;background:#fff;color:var(--ink)}button:hover{background:#f0f5f2}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover{background:#0f523a}a{color:inherit;text-decoration:none}input,select,textarea{border:1px solid #ccd7d1;border-radius:5px;background:white;color:var(--ink);padding:9px 10px;max-width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #a8cabc;outline-offset:1px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}svg.lucide{width:18px;height:18px;flex-shrink:0;stroke-width:1.7;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:1.5;font-weight:700}h2{font-size:18px}h3{font-size:15px}[hidden]{display:none!important}.muted,small{color:var(--muted)}.mono{font-family:var(--font-app);font-variant-numeric:tabular-nums}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#eef2ef;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:23px 14px;z-index:30}.brand{display:flex;gap:10px;align-items:center;padding:0 6px 24px}.brand img{width:36px;height:36px;object-fit:contain}.brand strong{display:block;font-size:19px}.brand small{font-size:11px;display:block;margin-top:3px}.project-switch{display:flex;align-items:center;gap:8px;text-align:left;padding:11px 10px;margin-bottom:22px;font-size:12px}.project-switch span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-switch svg:last-child{width:14px}.primary-nav,.recent-nav{display:grid;gap:4px}.primary-nav a{display:flex;align-items:center;gap:11px;padding:11px;border-radius:5px;color:#53655c}.primary-nav a:hover,.recent-nav a:hover{background:#e1e9e3}.primary-nav a.active{background:#dcebe1;color:#16583c;font-weight:700}.primary-nav b{margin-left:auto;font-size:11px;font-weight:500}.sidebar-label{font-size:11px;color:#809086;padding:28px 12px 9px}.recent-nav a{padding:9px 12px;border-radius:5px;font-size:12px;display:flex;gap:8px;align-items:center}.recent-nav span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-nav small{font-family:var(--font-app);font-size:10px;flex:0 0 30px}.sidebar-bottom{margin-top:auto;padding:16px 10px 0;display:grid;gap:6px;font-size:10px;color:#6d8074}
.workspace-body{margin-left:var(--sidebar);min-width:0}.workspace-topbar{height:66px;border-bottom:1px solid var(--line);background:#fff;display:flex;gap:22px;align-items:center;padding:0 28px;position:sticky;top:0;z-index:20}.breadcrumb{display:flex;gap:10px;align-items:center;font-size:12px;min-width:0}.breadcrumb>span{color:var(--muted)}.breadcrumb svg{width:12px;color:#94a198}.breadcrumb strong{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:350px}.top-search{margin-left:auto;display:flex;align-items:center;gap:10px;border:0;color:var(--muted);font-size:12px;white-space:nowrap}.account-summary{border:0;display:flex;align-items:center;gap:8px;font-size:12px;max-width:200px}.account-summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-summary svg{background:#edf2ef;border-radius:50%;padding:5px;box-sizing:content-box}.icon-button{width:32px;height:32px;padding:6px;display:inline-flex;justify-content:center;align-items:center;flex:0 0 32px}.mobile-menu{display:none}
.view-page{padding:32px 34px 50px;max-width:1740px;margin:auto}.view-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:26px}.view-heading p{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.7}.heading-actions{display:flex;gap:8px;flex-shrink:0}.heading-actions button{display:flex;align-items:center;gap:7px;font-size:12px}.library-intro{display:flex;gap:28px;margin-bottom:27px;border-bottom:1px solid var(--line);padding-bottom:22px}.library-stat{display:flex;align-items:baseline;gap:8px;font-size:11px;color:var(--muted)}.library-stat strong{font-size:24px;font-weight:500;font-family:var(--font-app);color:var(--ink)}.library-tools{display:flex;gap:12px;align-items:center;margin-bottom:16px}.library-search{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #ccd7d1;border-radius:5px;padding-left:12px;flex:1}.library-search svg{color:#84968a}.library-search input{border:0;outline:none!important;flex:1;min-width:0;padding:11px;font-size:12px}.library-tools select{font-size:12px;max-width:200px}.segmented{display:flex;border:1px solid var(--line);border-radius:5px;overflow:hidden}.segmented button{border:0;border-radius:0;background:transparent;font-size:12px}.segmented button.active{background:var(--wash);color:var(--accent)}.subject-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 22px}.subject-tabs button{border:0;background:transparent;font-size:12px;color:#738079;padding:7px 10px}.subject-tabs button.active{background:#e7eeeb;color:#20553d}
.library-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;align-items:start}.library-main{min-width:0}.table-caption{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin:0 0 9px;min-height:18px}.catalog-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff}.catalog-table thead{background:#f1f5f2}.catalog-table th{text-align:left;color:#6f8174;font-size:11px;font-weight:500;padding:11px 10px;border-bottom:1px solid var(--line)}.catalog-table td{border-bottom:1px solid #e7ece9;padding:13px 10px;font-size:12px;vertical-align:middle}.catalog-table tr.selected{background:#edf5ef}.catalog-table tbody tr:hover{background:#f6faf7}.catalog-table .name-col{width:43%}.catalog-table .star-col{width:34px}.catalog-table .id-col{width:58px}.catalog-table .arrow-col{width:35px}.program-name{font-weight:600;display:block;line-height:1.6;text-align:left;padding:0;background:transparent;border:0;border-radius:0;color:#33473b}.program-sub{color:#829087;font-size:10px;display:block;line-height:1.5;margin-top:3px}.star-button{border:0;background:transparent;color:#9eaaa2;width:25px;height:26px;padding:4px}.star-button svg{width:15px;height:15px}.star-button.selected{color:#b8892a}.star-button.selected svg{fill:#f3e5ae}.cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#738079;font-size:11px}.catalog-aside{border-left:1px solid var(--line);padding-left:25px;position:sticky;top:100px}.aside-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.catalog-aside h2{line-height:1.6;font-size:18px;margin:17px 0 8px}.catalog-aside p{font-size:12px;line-height:1.9;color:var(--muted);overflow-wrap:anywhere}.aside-label{font-size:10px;color:#839386;margin:25px 0 10px}.detail-tags{display:flex;flex-wrap:wrap;gap:6px}.detail-tags span{font-size:11px;padding:4px 6px;background:#eef3ef;color:#546b5b;border-radius:3px}.catalog-aside>.primary{width:100%;margin-top:25px;padding:11px;display:flex;justify-content:center;align-items:center;gap:8px}.detail-list{list-style:none;padding:0;margin:0;display:grid;gap:9px;font-size:12px;color:#556a5d}.detail-list li{display:flex;align-items:center;gap:7px}.detail-list svg{width:14px;height:14px;color:#448561}
.empty-state{padding:65px 20px;text-align:center;color:var(--muted);line-height:2}.empty-state svg{width:32px;height:32px;margin-bottom:12px;color:#afbeb2}.empty-state h2{font-size:17px;color:#405d4a;margin-bottom:5px}.empty-state p{font-size:12px}.empty-state button{margin-top:17px}.project-list{display:grid;gap:12px}.project-row{display:flex;align-items:center;gap:18px;border:1px solid var(--line);border-radius:6px;padding:21px;background:#fff}.project-row>svg{width:28px;height:28px;color:#6d9478}.project-row .project-copy{flex:1;min-width:0}.project-row h3{margin-bottom:7px;overflow-wrap:anywhere}.project-row p{font-size:12px;color:var(--muted);line-height:1.6}.project-row .project-meta{font-size:11px;color:var(--muted);margin-top:8px}.project-row.active{border-left:3px solid var(--accent)}.project-controls{display:flex;gap:7px}.record-table{width:100%;border-collapse:collapse;background:#fff;font-size:12px}.record-table td,.record-table th{text-align:left;border-bottom:1px solid var(--line);padding:14px 12px;overflow-wrap:anywhere}.record-table th{font-size:11px;font-weight:500;color:var(--muted);background:#f1f5f2}.record-table td:first-child{font-weight:600}.resource-list{border-top:1px solid var(--line)}.resource-row{display:flex;gap:20px;align-items:center;padding:25px 4px;border-bottom:1px solid var(--line)}.resource-row>svg{width:30px;height:30px;color:#567a62}.resource-row>div{flex:1}.resource-row h3{margin-bottom:7px}.resource-row p{font-size:12px;color:var(--muted);line-height:1.7}.resource-row button{display:flex;gap:6px;align-items:center;white-space:nowrap}
.document-tabs{display:flex;align-items:center;overflow-x:auto;background:#f1f4f2;border-bottom:1px solid var(--line);padding:0 18px;gap:3px;height:40px;position:sticky;top:66px;z-index:19}.document-tab{display:flex;align-items:center;gap:8px;height:36px;border-bottom:2px solid transparent;white-space:nowrap;font-size:11px;padding-left:10px;color:#819085}.document-tab.active{border-color:var(--accent);color:var(--accent);background:#fff}.document-tab>a{padding:8px 0}.document-tab button{padding:4px;border:0;background:none}.document-tab button svg{width:12px;height:12px}.calculation-frame{width:100%;height:calc(100dvh - 108px);border:0;display:block;background:#fff}.resource-frame{height:calc(100dvh - 66px)}.source-foot{font-size:11px;color:var(--muted);margin-top:26px;line-height:1.8}
dialog{border:1px solid var(--line);border-radius:8px;padding:26px;width:min(520px,calc(100vw - 32px));max-height:90dvh;overflow:auto;box-shadow:0 15px 55px #1b352025;color:var(--ink);background:#fff}dialog::backdrop{background:#152c244a}dialog h2{margin-bottom:19px}dialog label{display:grid;gap:8px;margin:16px 0;font-size:12px}dialog textarea{resize:vertical;min-height:70px}dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.form-error{color:#a53929;font-size:12px;line-height:1.6}.dialog-backdrop,.membership-backdrop,.form-dialog-backdrop,.membership-modal,.fatal-error-backdrop{position:fixed;inset:0;background:#152c2459;display:grid;place-items:center;z-index:90;padding:20px}.dialog-card,.membership-card,.form-dialog-card,.fatal-error-card{background:#fff;border-radius:8px;padding:25px;width:min(580px,100%);max-height:90dvh;overflow:auto;box-shadow:0 15px 55px #17351f33}.dialog-card h3,.membership-card h2{font-size:19px;margin-bottom:14px}.dialog-card p,.membership-card p{font-size:12px;line-height:1.8;margin:10px 0}.dialog-card dl{font-size:12px;margin-top:20px}.dialog-card dl>div{display:flex;gap:18px;border-bottom:1px solid var(--line);padding:12px 0}.dialog-card dt{color:var(--muted);width:90px;flex-shrink:0}.dialog-card dd{margin:0;overflow-wrap:anywhere}.dialog-card menu{display:flex;justify-content:flex-end;padding:0;gap:10px}.dialog-card input{width:100%}.dialog-card img,.membership-card img{max-width:100%;max-height:260px}.profile-bind-row{display:flex;gap:10px;align-items:end;margin:12px 0}.profile-bind-field{flex:1}.profile-bind-field span{display:block;margin-bottom:6px}.profile-bind-row button{white-space:nowrap}.membership-actions,.payment-plans{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.payment-plan{display:grid;gap:8px;flex:1;text-align:left}.membership-message,.wechat-login-status,.payment-status{font-size:12px;line-height:1.8}.membership-card iframe{width:100%;height:360px;border:0}.ui-fatal-error{position:fixed;inset:20px;background:#fff;z-index:100;padding:25px;border:1px solid #ddaaa1}.ui-fatal-error pre{white-space:pre-wrap}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(12px);background:#253f30;color:white;border-radius:6px;padding:12px 18px;font-size:12px;max-width:90vw;opacity:0;pointer-events:none;transition:.15s;z-index:120}#toast.show{opacity:1;transform:translateX(-50%)}body.compact .catalog-table td{padding-top:8px;padding-bottom:8px}
@media(min-width:1800px){.library-layout{grid-template-columns:minmax(0,1fr) 330px;gap:40px}.view-page{padding:38px 48px}}
@media(max-width:1150px){:root{--sidebar:188px}.view-page{padding:26px 22px}.library-layout{grid-template-columns:minmax(0,1fr) 245px;gap:20px}.catalog-aside{padding-left:18px}.catalog-table .output-col{display:none}.catalog-table .name-col{width:62%}.top-search span{display:none}.workspace-topbar{gap:12px;padding:0 22px}}
@media(max-width:850px){:root{--sidebar:176px}.library-layout{display:block}.catalog-aside{position:static;border:0;border-top:1px solid var(--line);padding:20px 0;margin-top:24px}.catalog-aside>.primary{width:auto;padding:10px 25px}.library-stat strong{font-size:20px}.library-intro{gap:18px}.view-heading{align-items:flex-start}.heading-actions .button-label{display:none}.project-row{padding:16px;gap:12px}.record-table .record-time{display:none}.breadcrumb strong{max-width:230px}.account-summary span{max-width:90px}.library-tools{flex-wrap:wrap}.library-search{flex-basis:100%}}
@media(max-width:640px){:root{--sidebar:0px}.sidebar{transform:translateX(-100%);width:218px;transition:.15s}.sidebar-open .sidebar{transform:translateX(0);box-shadow:0 0 0 100vw #182b2055}.mobile-menu{display:flex}.workspace-topbar{height:56px;padding:0 12px;gap:9px}.breadcrumb>span,.breadcrumb>svg{display:none}.breadcrumb strong{max-width:175px;font-size:11px}.account-summary{padding:5px}.account-summary span{display:none}.top-search{padding:6px}.view-page{padding:23px 16px 40px}h1{font-size:21px}.view-heading{gap:10px;margin-bottom:23px}.view-heading p{font-size:11px;max-width:250px}.heading-actions{gap:5px}.heading-actions button{padding:7px}.library-stat{gap:5px;font-size:10px}.library-stat strong{font-size:20px}.library-intro{gap:17px;padding-bottom:17px}.catalog-table .id-col{width:48px}.catalog-table td,.catalog-table th{padding:11px 6px}.catalog-table .name-col{width:auto}.catalog-table .star-col,.catalog-table .arrow-col{width:28px}.catalog-table .program-name{font-size:12px}.subject-tabs{gap:2px}.subject-tabs button{font-size:11px;padding:7px}.project-row{flex-wrap:wrap}.project-copy{flex-basis:80%}.project-controls{margin-left:auto}.record-table th,.record-table td{padding:10px 6px;font-size:11px}.record-table .record-id{display:none}.resource-row{gap:12px;flex-wrap:wrap}.resource-row>div{flex-basis:75%}.resource-row button{margin-left:42px}.document-tabs{top:56px;padding:0 8px}.calculation-frame{height:calc(100dvh - 97px)}.resource-frame{height:calc(100dvh - 56px)}}
@media(max-width:640px){.sidebar{transition:none}.sidebar-open .sidebar{transition:transform .15s}}
.catalog-table .category-col{width:112px;overflow-wrap:anywhere}.subject-tabs{row-gap:7px}.recent-nav span{white-space:normal;overflow-wrap:anywhere}
@media(max-width:1150px){.catalog-table .name-col{width:auto}}
@media(max-width:640px){.catalog-table .category-col{width:76px;font-size:11px}}
