/* Spruce (#1e5546): actions. Mist (#f5f7f5): canvas.
   Ink (#253b33): primary text. Slate (#65746c): supporting text. */
:root{--accent:#1e5546;--accent-hover:#164638;--accent-soft:#edf4ef;--bg:#f5f7f5;--surface:#fdfefd;--ink:#253b33;--muted:#65746c;--line:rgba(34,68,51,.10);--danger:#b13f38;--sidebar-width:224px;--shadow:0 4px 24px rgba(28,64,45,.035)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Segoe UI","Microsoft YaHei UI","PingFang SC",sans-serif;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;transition:background .18s,color .18s,box-shadow .18s}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #4a8c72;outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance}p{text-wrap:pretty}.icon{width:20px;height:20px;display:inline-block;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.hidden,[hidden]{display:none!important}.skip-link{position:fixed;left:16px;top:-100px;background:var(--accent);color:#f1f7f3;padding:12px;z-index:3000}.skip-link:focus{top:16px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border-radius:9px;background:transparent;color:var(--muted)}.icon-button:hover{background:var(--accent-soft);color:var(--accent)}.mobile-only{display:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);padding:36px 20px 20px;background:#fdfefd;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:50}.brand{display:flex;gap:12px;align-items:center;padding:0 10px;font-size:25px;font-weight:700;letter-spacing:2px;line-height:1.35}.brand-mark{display:flex;align-items:center;justify-content:center;width:42px;height:46px;border-radius:12px;background:var(--accent);color:#f1f7f3}.brand-mark .icon{width:25px;height:25px}.brand-subtitle{display:block;font-size:10px;font-weight:400;letter-spacing:1px;color:var(--muted);margin-top:5px}.nav-label{margin:48px 16px 13px;font-size:11px;letter-spacing:1.5px;color:#768278}.nav-item{width:100%;padding:13px 16px;display:flex;align-items:center;gap:13px;border-radius:9px;background:transparent;color:var(--muted);text-align:left;margin-bottom:8px;font-weight:500;min-height:48px}.nav-item:hover{background:#f3f6f2}.nav-item.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.nav-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);margin-left:auto}.nav-item:not(.active) .nav-dot{display:none}.sidebar-note{margin:auto 8px 36px;padding:22px 13px 0;border-top:1px solid var(--line)}.note-icon{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;color:#507560;margin-bottom:12px;background:#f1f5ed;border-radius:8px}.sidebar-note h3{font-size:13px;font-weight:600;margin-bottom:9px}.sidebar-note p{font-size:11px;line-height:1.9;color:var(--muted)}.sidebar-bottom{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);padding:15px 5px 0;border-top:1px solid var(--line)}.connection-dot{width:6px;height:6px;background:#6b8f77;border-radius:50%}.sidebar-version{margin-left:auto;color:#7b867c}.main-shell{margin-left:var(--sidebar-width);min-height:100dvh}.topbar{height:80px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(253,254,253,.75);gap:16px}.topbar-start,.topbar-end{display:flex;align-items:center;gap:22px}.breadcrumb{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:14px}.breadcrumb>span{color:#899589}.breadcrumb strong{color:var(--ink);font-weight:500}.date-label{font-size:11px;color:var(--muted)}.account-button{display:flex;align-items:center;gap:9px;background:transparent;font-size:12px;color:var(--ink);min-height:44px}.avatar{width:32px;height:32px;background:#e8eee6;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#59725e}.avatar .icon{width:16px;height:16px}main{max-width:1512px;padding:32px 40px 0;margin:auto;outline:none}
.welcome-panel{display:grid;grid-template-columns:minmax(0,1fr) 324px;min-height:340px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#eaf0e7;box-shadow:var(--shadow)}.welcome-copy{padding:36px 40px;display:flex;flex-direction:column;align-items:flex-start;position:relative;background:radial-gradient(ellipse at 5% 0%,#f4f7ed,transparent 70%)}.welcome-copy::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}.welcome-kicker{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:1px;color:#56705c;margin-bottom:22px}.small-line{width:20px;height:1px;background:#81977b}.welcome-copy h1{font-size:36px;font-weight:650;line-height:1.55;letter-spacing:-1px;color:#274b38}.welcome-copy h1>span{color:#52705c}.welcome-copy>p{font-size:12px;line-height:1.95;color:#637260;margin:16px 0 25px}.welcome-footer{display:flex;align-items:center;gap:10px;color:#4f6a53;font-size:11px;margin-top:auto}.welcome-footer>.icon{width:16px;margin-left:4px}.welcome-book{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#dce6d7}.welcome-book .icon{width:16px;height:16px}.auth-card{background:#fdfefd;padding:25px 28px;display:flex;flex-direction:column;justify-content:center}.auth-heading{display:flex;align-items:center;gap:10px;margin-bottom:18px}.auth-symbol{width:33px;height:33px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent)}.auth-symbol .icon{width:17px;height:17px}.auth-heading h2{font-size:15px;font-weight:600}.auth-heading p{font-size:10px;color:var(--muted);margin-top:2px}#loginForm label{display:block;font-size:11px;font-weight:500;color:#536356;margin:10px 0 5px}#loginForm>input,.password-field{width:100%;border:1px solid #dce3dc;background:#fbfcfa;border-radius:7px;height:42px}#loginForm input{font-size:12px;padding:0 12px;color:var(--ink)}#loginForm input::placeholder{color:#7a857b}.password-field{position:relative;display:flex;align-items:center}.password-field input{height:100%;width:100%;background:transparent;border:0;border-radius:7px;padding-right:46px!important}.password-field .icon-button{position:absolute;right:0;width:40px;height:40px}.password-field .icon{width:16px;height:16px}#captcha:empty{display:none}.field-error{font-size:11px;color:var(--danger);margin-top:8px}.field-error:empty{display:none}.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:#f3f8f3;border:1px solid var(--accent);padding:10px 18px;border-radius:8px;font-size:13px;font-weight:600;min-height:40px}.btn-primary:hover{background:var(--accent-hover);box-shadow:0 3px 9px rgba(30,85,70,.1)}.auth-submit{width:100%;margin-top:16px;height:43px;font-size:12px;justify-content:space-between}.auth-submit .icon{width:17px;height:17px}.quick-login{background:transparent;color:var(--accent);font-size:11px;min-height:36px;width:100%;margin-top:4px}.quick-login:hover{text-decoration:underline}.auth-footnote{display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px;color:#657260;margin-top:13px}.auth-footnote .icon{width:12px;height:12px}.connected-account{font-size:13px;padding:15px 0}.connected-badge{display:flex;align-items:center;gap:8px;color:var(--accent);font-weight:600}.connected-account p{font-size:12px;color:var(--muted);margin:13px 0 24px}.connected-account .button-secondary{width:100%}.authenticated .welcome-panel{min-height:260px}.authenticated .welcome-copy{padding-top:28px;padding-bottom:26px}.authenticated .welcome-copy h1{font-size:31px;line-height:1.4}.authenticated .welcome-kicker{margin-bottom:12px}.authenticated .welcome-copy>p{margin:12px 0 20px}
.overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:24px 0 32px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:24px 0;box-shadow:var(--shadow)}.overview-item{display:flex;align-items:center;gap:16px;padding:0 27px;position:relative;min-width:0}.overview-item+.overview-item{border-left:1px solid var(--line)}.overview-icon{display:flex;width:42px;height:42px;background:#f1f5ef;color:#56765c;border-radius:11px;align-items:center;justify-content:center;flex-shrink:0}.metric-label{font-size:11px;color:var(--muted)}.metric-number{display:flex;align-items:baseline;gap:7px;line-height:1.4;margin-top:3px}.metric-number strong{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums}.metric-number>span{font-size:11px;color:var(--muted)}.metric-note{font-size:10px;color:#697863;margin-left:auto;align-self:flex-end;margin-bottom:3px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px}.section-title-line{display:flex;align-items:center;gap:10px}.section-title-line h2{font-size:20px;font-weight:650;letter-spacing:-.4px}.section-title-line .icon-button{width:32px;height:32px}.section-heading p{font-size:11px;color:var(--muted);margin-top:5px}.count-badge{background:#eaf0e7;color:#566e50;font-size:10px;padding:2px 7px;border-radius:5px;white-space:nowrap}.button-secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 13px;border:1px solid #dbe3da;border-radius:7px;background:var(--surface);color:#596b5b;font-size:11px;white-space:nowrap}.button-secondary .icon{width:14px;height:14px}.button-secondary:hover{background:var(--accent-soft);border-color:#b7cdbd}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:22px}.filter-tabs{display:flex;gap:6px}.filter-tab{padding:8px 15px;background:transparent;color:var(--muted);font-size:12px;border-radius:6px;white-space:nowrap}.filter-tab.active{background:#e6eee4;color:var(--accent);font-weight:600}.search-field{display:flex;gap:9px;align-items:center;background:var(--surface);border:1px solid #dde4db;border-radius:7px;padding:0 12px;width:230px;height:36px;color:#6c7b68}.search-field .icon{width:15px;height:15px}.search-field input{background:transparent;border:0;outline:none;width:100%;min-width:0;font-size:11px;color:var(--ink)}.search-field:focus-within{outline:2px solid #4a8c72;outline-offset:2px}.search-field input:focus-visible{outline:0}.search-field input::placeholder{color:#697961}.status-message{margin-bottom:16px;font-size:12px;border-radius:8px;background:#ebf2ec;padding:10px 14px;color:var(--accent)}.status-message[data-tone="e"]{background:#f9ece8;color:var(--danger)}.status-message[data-tone="i"]{background:#edf1ed;color:#526653}.empty-state{text-align:center;background:#f9fbf8;border:1px dashed #d6dfd2;border-radius:12px;padding:44px 20px 39px;min-height:224px}.empty-icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border:1px solid #e0e8dc;background:#eef3e9;border-radius:15px;color:#67835f;margin-bottom:17px}.empty-icon .icon{width:25px;height:25px}.empty-state h3{font-size:14px;font-weight:550;color:#4c634b}.empty-state p{font-size:11px;color:#68775f;line-height:1.8;margin-top:7px}.text-button{display:inline-flex;align-items:center;gap:6px;min-height:40px;background:transparent;color:var(--accent);font-size:11px;margin-top:10px}.text-button:hover{text-decoration:underline}.text-button .icon{width:14px;height:14px}.page-footer{display:flex;align-items:center;justify-content:space-between;color:#6b7a64;font-size:10px;padding:27px 0 20px}
.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.course-card{display:flex;flex-direction:column;min-width:0;border-radius:12px;border:1px solid var(--line);background:var(--surface);overflow:hidden;box-shadow:var(--shadow);transition:border-color .18s,box-shadow .18s}.course-card:hover{border-color:#b6cdb9;box-shadow:0 7px 18px rgba(28,64,45,.065)}.course-cover{display:flex;align-items:center;gap:14px;padding:22px;background:#e7eee1;border-bottom:1px solid var(--line);position:relative;min-height:103px;isolation:isolate}.course-cover[data-tone="1"]{background:#e7eeea}.course-cover[data-tone="2"]{background:#eef0e1}.course-cover[data-tone="3"]{background:#e7ede9}.course-cover::after{content:"";position:absolute;width:95px;height:95px;border:1px solid rgba(38,76,49,.10);border-radius:50%;right:-25px;bottom:-32px;z-index:-1;box-shadow:0 0 0 18px rgba(45,80,50,.025),0 0 0 36px rgba(45,80,50,.025)}.course-cover-icon{display:flex;align-items:center;justify-content:center;width:41px;height:46px;background:rgba(253,254,253,.64);border:1px solid rgba(42,79,49,.06);border-radius:9px;color:#4d7454}.course-cover-icon .icon{width:24px;height:24px}.course-cover-type{font-size:10px;letter-spacing:1px;color:#5d755a}.course-school{font-size:11px;font-weight:500;color:#4d684d;margin-top:4px}.smart-badge{margin-left:auto;align-self:flex-start;padding:2px 7px;background:rgba(253,254,253,.7);border-radius:4px;color:#4d704e;font-size:9px;white-space:nowrap}.course-body{padding:19px 19px 16px;display:flex;flex-direction:column;flex:1}.course-body h3{font-size:15px;line-height:1.65;font-weight:600;overflow-wrap:anywhere}.course-teacher{font-size:11px;color:var(--muted);margin:6px 0 20px}.course-progress{margin-top:auto}.progress-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:8px}.progress-label strong{font-size:11px;font-weight:550;color:var(--accent);font-variant-numeric:tabular-nums}.progress-track{height:4px;border-radius:4px;background:#e8eee6;overflow:hidden}.progress-fill{height:100%;background:#6e9874;border-radius:4px}.course-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:18px;border-top:1px solid var(--line);padding-top:12px;flex-wrap:wrap}.course-actions button{background:transparent;font-size:10px;min-height:32px;padding:4px;color:var(--muted);display:flex;align-items:center;gap:5px;border-radius:4px}.course-actions button:hover{background:var(--accent-soft);color:var(--accent)}.course-actions .icon{width:13px;height:13px}.course-actions .course-enter{color:var(--accent);font-weight:600;margin-left:auto}.homework-list{display:flex;flex-direction:column;gap:12px}.homework-card{display:flex;align-items:center;gap:18px;padding:22px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.homework-card h3{font-size:14px}.homework-card p{font-size:11px;color:var(--muted);margin-top:4px}.homework-deadline{font-size:11px;color:#8a5f26;margin-left:auto;text-align:right}.homework-deadline.overdue{color:var(--danger)}.skeleton-card{height:280px;border:1px solid var(--line);background:var(--surface);border-radius:12px;overflow:hidden;animation:skeleton 1.4s ease-in-out infinite alternate}.skeleton-cover{height:104px;background:#e7ede4}.skeleton-line{height:10px;margin:22px 20px;background:#e8ede6;border-radius:4px}.skeleton-line.short{width:45%}@keyframes skeleton{to{opacity:.5}}.nav-backdrop{position:fixed;inset:0;background:rgba(25,45,34,.35);z-index:90}.detail-view #result{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:24px}.detail-view .count-badge{display:none}.detail-view .glass-card{box-shadow:none}.detail-view #result>.space-y-2{display:block}.detail-view .glass-card+.glass-card{margin-top:12px}
/* Existing feature templates use locally built layout utilities. */
.glass-card{background:#f8faf6;border:1px solid var(--line);color:var(--ink)}.glass-input{background:#fdfefd;border:1px solid #d6e0d3;color:var(--ink)}.glass-input:focus{outline:2px solid #4a8c72;outline-offset:2px}.text-white,.text-gray-200,.text-gray-300{color:var(--ink)!important}.text-gray-400,.text-gray-500,.text-gray-600{color:var(--muted)!important}.text-indigo-300,.text-indigo-400,.text-purple-400,.text-blue-400,.text-teal-400,.text-pink-400,.text-green-400,.text-emerald-400{color:var(--accent)!important}.text-amber-300,.text-amber-400{color:#8b6127!important}.text-red-400,.text-red-300{color:var(--danger)!important}.bg-gray-700,.bg-gray-800,.bg-gray-700\/60{background:#e7eee3!important}.bg-indigo-600,.bg-indigo-500,.bg-teal-500,.bg-teal-600,.bg-emerald-600,.bg-green-600,.bg-purple-600,.bg-amber-600{background:var(--accent)!important}.bg-red-600,.bg-red-700{background:var(--danger)!important}.bg-indigo-600,.bg-indigo-500,.bg-teal-600,.bg-emerald-600,.bg-purple-600,.bg-amber-600,.bg-red-600,.bg-red-700{color:#f4f8f3!important}.border-gray-700{border-color:var(--line)!important}.tab-btn{padding:9px 14px;min-height:40px;border-radius:7px;border:1px solid #dae4d7;background:transparent;font-size:12px;color:var(--muted)}.tab-btn.active,.tab-btn:hover{background:var(--accent-soft);border-color:#a8c7b0;color:var(--accent)}#result button:not(.course-actions button):not(.text-button):not(.icon-button){min-height:36px}#result img{max-width:100%}#result,#modalContent{overflow-wrap:anywhere}#result pre{white-space:pre-wrap}.modal-overlay{display:none;position:fixed;inset:0;background:rgba(22,42,31,.45);z-index:1000;align-items:center;justify-content:center;padding:24px}.modal-overlay.active{display:flex}.modal-content,.modal-overlay>.glass-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:16px;width:760px;max-width:100%;max-height:88dvh;overflow:auto;padding:32px;color:var(--ink);box-shadow:0 24px 80px rgba(22,48,31,.2)}.modal-close{position:absolute;right:10px;top:8px}.modal-content>#modalContent{padding-top:14px}.modal-overlay>.glass-card{max-width:540px}.modal-overlay h3{padding-right:20px}.modal-overlay .glass-card{background:#f4f7f0}.modal-overlay button{min-height:40px}.modal-overlay input[type=number]{min-width:65px}.modal-overlay textarea{min-height:90px}.modal-overlay input[type=checkbox]{accent-color:var(--accent)}body.modal-open{overflow:hidden}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:#cad7c6;border-radius:5px}
@media(min-width:1600px){main{padding-top:40px}.welcome-copy{padding:40px 48px}.welcome-copy h1{font-size:40px}.welcome-panel{grid-template-columns:minmax(0,1fr) 360px}.auth-card{padding:28px 32px}}
@media(max-width:1250px){:root{--sidebar-width:204px}.sidebar{padding-left:14px;padding-right:14px}.topbar{padding:0 28px}main{padding:28px 28px 0}.welcome-copy{padding:32px 30px}.welcome-panel{grid-template-columns:minmax(0,1fr) 304px}.auth-card{padding:24px}.welcome-copy h1{font-size:32px}.overview-item{padding:0 20px;gap:12px}.metric-note{display:none}.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px) and (min-width:761px){.welcome-panel{grid-template-columns:minmax(0,1fr) 278px}.welcome-copy{padding:28px 22px}.welcome-copy h1{font-size:28px}.welcome-copy>p{font-size:11px}.welcome-kicker{font-size:10px}.welcome-footer{font-size:10px;gap:6px}.auth-card{padding:22px 20px}.overview-item{padding:0 16px;gap:10px}.overview-icon{width:34px;height:36px}.topbar-end{gap:12px}.date-label{display:none}}
@media(max-width:760px){.mobile-only{display:inline-flex}.sidebar{width:260px;z-index:100;transform:translateX(-100%);transition:transform .22s ease;visibility:hidden;padding-top:29px}.nav-open .sidebar{transform:translateX(0);visibility:visible}.nav-close{position:absolute;right:6px;top:8px}.nav-open{overflow:hidden}.main-shell{margin-left:0}.topbar{height:64px;padding:0 16px;gap:8px}.topbar-start{gap:8px}.topbar-end{gap:8px}.breadcrumb{font-size:11px;gap:10px}.date-label{display:none}.account-button{font-size:11px;gap:7px}.avatar{width:28px;height:28px}.topbar-start>.icon-button{margin-left:-6px}main{padding:20px 18px 0}.welcome-panel{grid-template-columns:minmax(0,1fr);border-radius:13px}.welcome-copy{padding:27px 26px 25px}.welcome-kicker{margin-bottom:14px;font-size:10px}.welcome-copy h1{font-size:31px;line-height:1.45}.welcome-copy h1 br{display:none}.welcome-copy>p{font-size:11px;line-height:1.9;margin:13px 0 21px}.welcome-footer{font-size:10px}.auth-card{padding:24px 26px;border-top:1px solid var(--line)}.auth-heading{margin-bottom:9px}.auth-heading h2{font-size:14px}#loginForm label{font-size:12px;margin-top:12px}#loginForm>input,.password-field{height:46px}#loginForm input{font-size:14px}.password-field .icon-button{height:44px;width:44px}.auth-submit{height:46px;font-size:13px}.quick-login{min-height:44px;font-size:12px}.auth-footnote{font-size:10px}.authenticated .welcome-copy{padding:24px 26px}.authenticated .welcome-copy h1{font-size:28px}.authenticated .auth-card{padding:18px 26px}.authenticated .auth-heading{margin:0}.authenticated .auth-heading p,.authenticated .auth-footnote{display:none}.authenticated .connected-account{padding-bottom:0}.authenticated .connected-account p{margin:8px 0 14px}.authenticated .connected-account .button-secondary{width:auto}.overview{margin:18px 0 28px;padding:18px 0;gap:0;border-radius:10px}.overview-item{display:block;padding:0 14px}.overview-icon{display:none}.metric-label{font-size:10px;white-space:nowrap}.metric-number{gap:4px;margin-top:7px}.metric-number strong{font-size:24px}.metric-number>span{font-size:10px}.section-heading{align-items:center;margin-bottom:18px;gap:10px}.section-title-line h2{font-size:18px}.section-heading p{font-size:10px;max-width:250px}.section-heading .button-secondary{min-height:44px;padding:8px 10px}.count-badge{font-size:9px}.list-toolbar{flex-direction:column;align-items:stretch;gap:14px;padding-bottom:16px}.filter-tabs{gap:6px}.filter-tab{flex:1;min-height:44px;padding:7px 10px;font-size:12px}.search-field{width:100%;height:44px}.search-field input{font-size:12px;height:100%}.course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.course-cover{padding:18px 15px;gap:10px;min-height:94px}.course-cover-icon{width:32px;height:37px}.course-cover-icon .icon{width:20px}.course-cover-type{font-size:9px}.course-school{font-size:10px}.smart-badge{position:absolute;right:8px;top:7px;font-size:8px}.course-body{padding:15px}.course-body h3{font-size:13px}.course-teacher{font-size:10px;margin-bottom:18px}.course-actions{gap:4px}.course-actions button{min-height:44px;font-size:11px}.empty-state{padding:36px 18px;min-height:220px}.empty-state h3{font-size:13px}.empty-state p{font-size:11px}.empty-state .text-button{font-size:12px;min-height:44px}.page-footer{font-size:9px;padding-top:23px;gap:12px}.modal-overlay{padding:12px}.modal-content,.modal-overlay>.glass-card{padding:26px 18px 20px;max-height:90dvh;border-radius:13px}.modal-content>#modalContent{padding-top:17px}.modal-close{right:5px;top:4px}.modal-overlay button{min-height:44px}.modal-overlay .flex{flex-wrap:wrap}.modal-overlay .flex-1{min-width:100px}.detail-view #result{padding:18px 14px}.detail-view #result .flex{flex-wrap:wrap}.detail-view #result button{min-height:44px!important}.detail-view .tab-btn{padding:8px 10px;font-size:11px}.homework-card{padding:17px;gap:12px;flex-wrap:wrap}.homework-deadline{width:100%;text-align:left;margin-left:0;padding-left:46px}#msg{font-size:11px}}
@media(max-width:450px){.course-grid{grid-template-columns:minmax(0,1fr)}.course-cover{padding:19px 21px;min-height:94px}.course-cover-icon{width:38px;height:42px}.course-body{padding:18px 21px}.course-body h3{font-size:15px}.course-school{font-size:11px}.course-cover-type{font-size:10px}.course-teacher{font-size:11px}.course-actions{gap:10px}.course-actions button{font-size:12px}.smart-badge{top:13px;right:16px;font-size:9px}.welcome-copy h1{font-size:29px}.welcome-copy h1 br{display:block}.section-heading p{max-width:230px}.overview-item{padding:0 12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep cover decoration inside the cover, and grid cells on one baseline. */
.course-cover{overflow:hidden}
.detail-view .grid>.glass-card+.glass-card{margin-top:0}
