:root{--readable:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;--muted:#576781;--line:#e0e5ef}
body,input,button,select,textarea{font-family:var(--readable)}
body{line-height:1.5}
header#top{background:white;border-color:var(--site-line)}
#shopnav button{font-size:14px;font-weight:650}
.brand span{letter-spacing:-.025em;font-weight:825}
.brand small{letter-spacing:.14em;font-weight:700}
#library .heading h2,.shelfhead h3,.office-heading h2,.course-intro h2{letter-spacing:-.035em}
#library .shelfhead h3{color:var(--site-ink);font-weight:780}
#library .shelfhead h3:before{height:.72em;width:4px}
#library .shelfhead button{font-size:12px}
.tile{border-radius:15px;box-shadow:0 2px 9px #2430560d;transition:box-shadow .22s,transform .22s}
.tile:hover{transform:translateY(-3px);box-shadow:0 9px 24px #24305620}
.tilebody{padding:13px;gap:8px}
.tilebody h3{font-size:clamp(15px,1.2vw,17px);line-height:1.35;font-weight:720;letter-spacing:-.012em;min-height:2.7em}
.tilebody p{color:var(--muted);line-height:1.47;font-size:13px;min-height:2.94em}
.tilebody>small:first-child{font-size:11px;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:720}
.tilebody .price b{font-size:18px;font-weight:780}
.tileactions{padding-top:8px}
.tileactions button,.tileactions a{font-weight:650}
#folders #foldergrid .folder-item{font-size:13px}
#featuredCourse h2{font-size:clamp(23px,3vw,46px);line-height:1.14;letter-spacing:-.045em;font-weight:780}
#featuredCourse .banner-summary{font-size:15px;line-height:1.48;color:#e7ebff}
#featuredCourse .banner-genre{font-size:12px;letter-spacing:.075em}
.featured[data-hue="1"]{background:linear-gradient(116deg,var(--site-dark),#197483)}
.featured[data-hue="2"]{background:linear-gradient(116deg,var(--site-dark),#6f4bb0)}
.featured[data-hue="3"]{background:linear-gradient(116deg,var(--site-dark),#4167bc)}
#modal[data-layout=course],#modal[data-layout=office]{width:min(1120px,95vw);max-height:calc(100dvh - 30px);padding:22px;border:1px solid var(--site-line);border-radius:21px;box-shadow:0 18px 75px #111e4a35;background:#f7f9fd}
#modal[data-layout=office]{width:min(1320px,96vw)}
#modal #close{position:sticky;top:0;z-index:4;border-radius:9px;background:#fff;width:35px;height:35px;line-height:1;margin-left:8px;text-align:center}
#modal #close:hover{background:var(--site-soft)}
#modal::backdrop{background:#10182f80}
#modal[open]{animation:editorial-dialog .22s ease-out}
@keyframes editorial-dialog{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.course-detail{color:var(--site-ink)}
.course-intro{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:start;padding:7px 5px 14px}
.course-intro h2{font-size:clamp(25px,3.1vw,43px);line-height:1.13;color:var(--site-ink);margin:9px 0 12px;font-weight:790;overflow-wrap:anywhere}
.detail-category{display:inline-block;padding:4px 9px;border-radius:7px;font-size:12px;font-weight:750;color:var(--site-accent);background:var(--site-soft)}
#modal .course-lead{color:var(--muted);font-size:15px;line-height:1.62;margin:0 0 12px}
.detail-cover{width:100%;aspect-ratio:16/9;object-fit:contain;border:1px solid var(--site-line);border-radius:13px;background:#eff2fa}
.course-price{font-size:25px;color:var(--site-accent);font-weight:800}
.detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:8px 0}
.detail-actions .primary,.detail-secondary{margin:0;border-radius:8px;padding:8px 11px;font-size:13px;font-weight:750;white-space:normal}
.detail-actions .primary,#modal[data-layout=office] .primary{background:var(--site-accent);color:white}
.detail-secondary{background:var(--site-soft);color:var(--site-accent);border:1px solid var(--site-line)}
.course-help{color:var(--site-accent);font-weight:650;font-size:13px}
.course-panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px 18px;margin:11px 0}
.course-panel h3{font-size:19px;color:var(--site-ink);letter-spacing:-.025em;margin:0 0 9px}
.course-panel details{border-top:1px solid var(--line);margin:0;padding:8px 0}
.course-panel summary{color:var(--site-ink);font-size:15px;font-weight:720}
.course-panel ul{padding-left:1.36rem;margin:7px 0 3px;color:#34435e}
.course-panel li{margin-bottom:5px;line-height:1.62}
.course-panel .admin-intro{white-space:pre-wrap}
.detail-related{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.detail-related .mini{border:1px solid var(--line);border-radius:7px;padding:8px}
.payment-summary{flex:1 0 100%;display:grid;grid-template-columns:10em auto;gap:3px;margin:5px 0;font-size:13px}
.payment-summary dd{margin:0;font-weight:650}
.status-pill{font-size:11px;font-weight:780;border-radius:30px;padding:5px 8px;display:inline-flex;align-items:center;line-height:1.3}
.status-paid{background:#e3f5ee;color:#17604c}
.status-waiting{background:#fff0d7;color:#79500a}
.subtle{color:var(--muted);font-size:13px}
#modal .office-heading{position:static;display:flex;gap:9px;align-items:end;justify-content:space-between;width:auto;margin:0 38px 14px 0;background:transparent;border:0;box-shadow:none}
.office-heading span{font-size:10px;color:var(--site-accent);font-weight:800;letter-spacing:.12em}
.office-heading h2{font-size:clamp(23px,2.6vw,35px);margin:0;line-height:1.15;color:var(--site-ink)}
.office-heading a{font-weight:700;color:var(--site-accent);font-size:12px;white-space:nowrap}
#modal .desk{display:grid;grid-template-columns:192px minmax(0,1fr);gap:13px}
#modal .desk nav{position:sticky;top:42px;align-self:start;background:white;padding:7px;border:1px solid var(--line);border-radius:12px;max-height:calc(100dvh - 110px);overflow:auto}
#modal .desk nav button{background:white;color:#34435e;font-size:13px;padding:9px 8px;font-weight:650}
#modal .desk nav button:hover,#modal .desk nav button[data-current]{background:var(--site-soft);color:var(--site-accent)}
#modal .desk #panel{background:#fff;border-radius:13px;border:1px solid var(--line);padding:15px 18px}
#modal .desk #panel h3{margin:0 0 10px;font-size:22px;color:var(--site-ink);letter-spacing:-.02em}
#modal .desk #panel h4{color:var(--site-ink)}
.office-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(135px,.52fr);gap:8px;align-items:center}
.office-filters select{min-width:0;max-width:none}
.office-order{padding:11px 12px;border:1px solid var(--line);border-radius:10px;margin:8px 0;background:#fff}
.order-head,.order-total{display:flex;align-items:center;justify-content:space-between;gap:8px}
.office-order p{margin:3px 0}
.office-order ul{margin:5px 0 9px;padding-left:18px;font-size:14px}
.order-total{border-top:1px solid var(--line);padding-top:7px}
.order-total strong{color:var(--site-accent)}
.office-empty{font-size:14px;color:var(--muted);padding:10px;background:#f4f6fc;border-radius:8px}
.office-customer{padding:10px;border:1px solid var(--line);border-radius:8px;margin:6px 0}
.office-customer summary{overflow-wrap:anywhere}
.office-customer summary small{color:var(--muted);font-weight:650}
.office-customer-order{border-top:1px solid var(--line);padding-top:6px;margin-top:5px}
.office-customer-order p{margin:3px 0}
#modal .desk .stats div{background:var(--site-soft);border:1px solid var(--site-line)}
#modal .desk .stats b{color:var(--site-accent)}
.lesson-editor{margin-top:10px}
.lesson-editor textarea{resize:vertical;border:1px solid var(--line);border-radius:7px;line-height:1.6}
@media(max-width:850px){#modal .desk{grid-template-columns:152px minmax(0,1fr)}}
@media(max-width:600px){
 #modal[data-layout=course],#modal[data-layout=office]{padding:11px;border-radius:14px}
 .course-intro{grid-template-columns:1fr;gap:10px}
 .course-intro h2{font-size:25px}
 .detail-cover{max-height:175px}
 .course-panel{padding:10px}
 .course-panel li{font-size:14px}
 .detail-related{grid-template-columns:1fr}
 #modal .desk{display:block}
 #modal .desk nav{position:static;max-height:none;flex-direction:row;margin-bottom:8px}
 #modal .desk nav button{white-space:nowrap}
 #modal .desk #panel{padding:10px}
 .office-filters{grid-template-columns:minmax(0,1fr)}
 .office-heading a{font-size:11px}
 .tilebody h3{font-size:14px}
 .tilebody p{font-size:12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}#modal[open]{animation:none}.tile{transition:none}}
