:root{font-family:Segoe UI,Arial,sans-serif;color:#172238;background:#f3f5f9;font-size:16px;--accent:#d94e25;--ink:#172238;--muted:#6a7485;--line:#e0e5ed;--panel:#fff}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #e8975e;outline-offset:3px}button{border:0;border-radius:8px;transition:background .15s}a{color:inherit}.sidebar{width:260px;min-width:260px;background:#172238;color:#d6deed;padding:32px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-size:24px;font-weight:700;display:flex;align-items:center;gap:11px;text-decoration:none;letter-spacing:-.6px}.brand-mark{width:34px;height:36px;background:#e76239;color:#fff;display:grid;place-items:center;border-radius:5px;font-size:24px;font-weight:800}.profile{padding:37px 12px 27px;display:grid;gap:8px}.profile>span,.eyebrow{font-size:12px;letter-spacing:1.6px;font-weight:600;color:#9eacc4}.profile strong{font-size:16px;color:#fff}.profile small{font-size:14px;color:#aebbd0}.nav-item{background:transparent;color:#c5d0e3;width:100%;text-align:left;padding:13px 12px;display:flex;gap:8px;justify-content:space-between;font-size:14px;margin:2px 0;line-height:1.4}.nav-item span{color:#98a9c4}.nav-item.active{background:#2b3850;color:#fff;box-shadow:inset 3px 0 #ef7850}.nav-item:hover{background:#25324a}.quiet{background:transparent;color:var(--muted);padding:10px}.add-subject{color:#aebbd0;margin-top:16px;text-align:left;font-size:14px}.sidebar-bottom{margin-top:auto;padding:24px 10px 0;font-size:13px;color:#aebbd0;display:flex;align-items:center;gap:8px}.local-mark{display:inline-block;width:8px;height:8px;border:2px solid #c4cddd;border-radius:50%}main{width:calc(100% - 260px);padding:0 48px 50px;max-width:1600px}header{height:83px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:14px}.breadcrumb{display:flex;gap:12px}.semester{font-size:12px;letter-spacing:1.4px}.page-title{display:flex;align-items:center;justify-content:space-between;margin:38px 0 28px;gap:16px}.eyebrow{color:#778297;margin:0 0 9px}h1{font-size:34px;letter-spacing:-1px;margin:0;font-weight:650}h2{font-size:19px;font-weight:650;margin:0}h3{font-size:19px;font-weight:600}.primary{background:var(--accent);color:#fff;padding:13px 19px;font-weight:600;font-size:14px}.primary:hover{background:#bd3f1a}.secondary{background:#fff;border:1px solid #cbd2dd;color:var(--ink);padding:12px 17px;font-size:14px;font-weight:600}.secondary:hover{background:#f0f3f8}.upload-zone{display:flex;align-items:center;gap:22px;border:1.5px dashed #b7c2d3;background:#fff;padding:32px;border-radius:12px;min-height:162px;cursor:pointer}.upload-zone h2{margin-bottom:8px}.upload-zone p{font-size:15px;margin:0 0 10px;color:var(--muted);line-height:1.5}.upload-zone small{font-size:13px;color:#788496}.upload-zone .secondary{margin-left:auto;white-space:nowrap}.upload-icon{color:#d7512d;font-size:36px;line-height:1;background:#fff0e9;min-width:58px;height:64px;border-radius:10px;display:grid;place-items:center}.upload-zone.drag{border-color:var(--accent);background:#fff5ef}.library{margin-top:37px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:20px}.section-heading h2 span{font-size:14px;color:#788496;margin-left:8px;font-weight:400}input,select,textarea{border:1px solid #d4dae4;border-radius:7px;padding:11px 12px;background:#fff;color:var(--ink);font-size:14px}input[type=search]{width:245px;background:transparent}textarea{width:100%;min-height:180px;resize:vertical;line-height:1.6}label{display:grid;gap:8px;font-size:14px;font-weight:600}.empty{text-align:center;padding:62px 20px 54px;background:#fff;border:1px solid var(--line);border-radius:12px}.empty-symbol{font-size:32px;border:1px solid #dde4ed;border-radius:8px;width:50px;height:58px;display:grid;place-items:center;margin:auto;color:#8e9bb1}.empty h3{margin:22px 0 10px}.empty p{color:var(--muted);font-size:15px;line-height:1.7;margin:0}.lecture-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px;margin:12px 0;display:flex;gap:20px;align-items:center;cursor:pointer}.lecture-card:hover{border-color:#a4b2c8;box-shadow:0 3px 12px #24365c08}.lecture-art{background:#edf1f7;min-width:46px;height:53px;border-radius:7px;color:#5f718e;display:grid;place-items:center;font-size:27px}.card-info{flex:1;min-width:0}.card-info h3{margin:0 0 8px;font-size:17px}.card-meta{display:flex;gap:13px;flex-wrap:wrap;font-size:13px;color:var(--muted)}.status{padding:5px 9px;border-radius:5px;font-size:12px;background:#edf2f8;color:#52708d;white-space:nowrap}.status.ready{color:#27614e;background:#e9f5ef}.status.error{color:#a3332c;background:#ffefee}.card-preview{font-size:14px;line-height:1.6;color:#667386;margin:11px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.progress{width:100%;height:5px;background:#edf0f4;border-radius:4px;margin-top:12px;overflow:hidden}.progress>span{height:100%;display:block;background:#e16a43;transition:width .5s}.notice{border:1px solid #edd2b8;background:#fff9ef;color:#725224;border-radius:8px;padding:13px;font-size:14px;line-height:1.6;margin:18px 0}.notice.error{border-color:#eac3be;color:#923832;background:#fff3f1}dialog{border:0;padding:0;border-radius:16px;width:min(1100px,calc(100% - 48px));max-height:90vh;box-shadow:0 24px 90px #0e1a3660;color:var(--ink)}dialog::backdrop{background:#10192c99;backdrop-filter:blur(3px)}.dialog-head{padding:25px 28px 19px;display:flex;gap:16px;align-items:flex-start;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:24px}.dialog-head>div{flex:1;min-width:0}.dialog-head p{margin:9px 0 0;color:var(--muted);font-size:14px}.close{font-size:25px;color:#657286;background:#f1f3f7;width:36px;height:36px;line-height:1}.dialog-body{padding:22px 28px 28px}.detail-controls{display:flex;flex-wrap:wrap;align-items:end;gap:13px;margin-bottom:20px}.detail-controls label{flex:1;min-width:180px}.detail-actions{display:flex;gap:9px;flex-wrap:wrap;padding-bottom:20px}.tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin:5px 0 22px}.tab{border-radius:0;background:none;padding:13px 0;font-size:15px;color:var(--muted)}.tab.active{color:var(--ink);border-bottom:2px solid var(--accent);font-weight:600}.tab-panel{min-height:180px}.text-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.8}.summary-content{font-size:16px;line-height:1.8;overflow-wrap:anywhere}.summary-content h3{font-size:19px}.summary-content h2{font-size:22px;margin:22px 0 12px}.summary-content p{margin:9px 0}.summary-content ul{padding-left:24px}.segment{display:grid;grid-template-columns:68px 1fr;gap:15px;padding:9px 0;border-bottom:1px solid #edf0f4}.timestamp{font-size:13px;color:#986b54;text-decoration:none;font-variant-numeric:tabular-nums;background:transparent;padding:4px 0;align-self:start}.segment p{margin:0;line-height:1.75;font-size:16px}.audio-player{width:100%;height:42px;margin:0 0 14px}.small{font-size:13px;color:var(--muted);line-height:1.6}.settings-box{display:flex;gap:13px;align-items:end;margin-top:20px}.settings-box label{flex:1}.subject-form{padding:28px;display:grid;gap:18px}.subject-form h2{margin:0}.subject-row{display:flex;gap:10px;align-items:center}.subject-row input{flex:1;min-width:0}.subject-row .quiet{font-size:14px}.loading{color:var(--muted);padding:35px;text-align:center}.import-text{margin-top:16px;display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:14px;color:var(--muted)}.link-button{background:none;color:#996548;padding:4px 0;text-decoration:underline;text-underline-offset:3px;font-size:14px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(90px);opacity:0;z-index:10;padding:13px 20px;color:white;background:#1c2d47;border-radius:8px;font-size:14px;max-width:90vw;transition:.2s;pointer-events:none}#toast.show{transform:translateX(-50%) translateY(0);opacity:1}.copy-hint{font-size:13px;color:#65748a;margin:0 0 18px;line-height:1.6}
@media(max-width:1100px){main{padding:0 26px 40px}.sidebar{width:225px;min-width:225px}main{width:calc(100% - 225px)}.upload-zone{padding:24px;gap:17px}.upload-zone .secondary{display:none}.semester{display:none}}
@media(max-width:720px){body{display:block}.sidebar{width:100%;min-width:0;height:auto;position:static;padding:20px}.brand{font-size:22px}.profile{padding:18px 0 12px;gap:5px}.profile>span,.sidebar-bottom{display:none}.profile strong{font-size:15px}.profile small{font-size:13px}#subjects{display:flex;overflow:auto;gap:6px;padding-bottom:6px}.nav-item{width:auto;min-width:max-content;padding:9px 12px}.add-subject{margin-top:5px;padding-left:0}main{width:100%;padding:0 20px 35px}header{height:58px}.page-title{margin:27px 0 23px;align-items:center}h1{font-size:27px}.page-title .primary{font-size:13px;padding:11px 12px}.eyebrow{font-size:11px;letter-spacing:1px}.upload-zone{padding:23px 19px;gap:15px}.upload-icon{min-width:42px;height:51px}.upload-zone h2{font-size:17px}.upload-zone p{font-size:14px}.section-heading input{width:155px}.lecture-card{padding:18px;gap:13px;flex-wrap:wrap}.card-info{min-width:calc(100% - 70px)}.lecture-card>.status{margin-left:59px}.empty{padding:40px 15px}.empty h3{font-size:17px}.empty p{font-size:14px}dialog{width:calc(100% - 20px);max-height:94vh}.dialog-head{padding:21px 19px 17px}.dialog-head h2{font-size:21px}.dialog-body{padding:20px 19px}.detail-actions button{flex:1;min-width:140px}.tabs{gap:18px}.tab{font-size:14px}.settings-box{align-items:stretch;flex-direction:column}.segment{grid-template-columns:53px 1fr;gap:9px}.subject-form{padding:22px}.subject-row{flex-wrap:wrap}.import-text{align-items:start}.breadcrumb{font-size:13px}}
.form-grid{display:grid;gap:18px}.form-actions{display:flex;align-items:center;gap:15px;margin-top:15px}.checkbox-label{display:flex;align-items:center;gap:10px;font-weight:400}.checkbox-label input{width:18px;height:18px;accent-color:#d94e25}.button-link{text-decoration:none;display:inline-flex;align-items:center}.native-progress{display:block;width:100%;height:6px;border:0;border-radius:4px;margin:14px 0;accent-color:#d94e25}.native-progress::-webkit-progress-bar{background:#e9edf3;border-radius:4px}.native-progress::-webkit-progress-value{background:#d94e25;border-radius:4px}.native-progress[hidden]{display:none}.panel-empty{border:0;padding:30px 20px}.subject-list{display:grid;gap:12px}.subject-row{justify-content:space-between;border-bottom:1px solid #edf0f4;padding-bottom:10px;font-size:14px}.keywords{min-height:85px}.clipboard-temp{position:fixed;left:-10000px;top:0;width:1px;height:1px}.form-grid h3{margin:0}.notice .small{display:block}
@media(max-width:720px){.page-title>div{min-width:0}.page-title .primary{flex-shrink:0}.tabs{gap:6px;flex-wrap:wrap}.tab{flex:1;min-width:85px;white-space:normal;line-height:1.4;text-align:center}.detail-controls{align-items:stretch}.detail-controls .secondary{align-self:start}.subject-row>span{min-width:0;overflow-wrap:anywhere}}
.phone-button{background:#2b3850;color:#fff;text-align:left;margin-top:25px;padding:13px 12px;font-size:14px}.phone-button[hidden]{display:none}.sidebar-bottom{margin-top:auto}.phone-pairing{display:flex;align-items:center;gap:26px;margin:0 0 22px}.pair-qr{width:230px;height:230px;flex-shrink:0;image-rendering:pixelated}.phone-pairing h3{margin-top:0}.phone-pairing p{line-height:1.6}.pair-code{font-size:24px;letter-spacing:2px;font-variant-numeric:tabular-nums;font-weight:650}.pair-page{display:grid;place-items:center;padding:22px}.pair-card{width:min(480px,100%);padding:35px;background:white;border:1px solid var(--line);border-radius:16px}.pair-card h1{font-size:27px;margin:30px 0 16px}.pair-card>p{line-height:1.6;color:var(--muted)}#phone-dialog{width:min(760px,calc(100% - 32px))}#pair-code{font-size:22px;letter-spacing:2px}.form-actions{flex-wrap:wrap}
@media(max-width:720px){.phone-pairing{flex-direction:column;gap:10px}.pair-qr{width:210px;height:210px}.pair-card{padding:25px}.phone-button{margin-top:12px}.pair-code{font-size:21px}}
