@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/inter-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/inter-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2')}

/* SRS training: learning-platform layout (edX-like) in SRS colours.
   Graphite carries the actions; SRS burgundy is kept to the logo, the active tab, the current unit and the progress bar. */
:root{
  --brand:#871E3C; --brand-dark:#5E1019;
  --primary:#23292E; --primary-hover:#0F1316;
  --bg:#F3F3F2; --white:#FFFFFF; --light:#F7F7F6; --light-2:#EDEDEB;
  --border:#D9D9D6; --border-soft:#E8E8E5;
  --text:#1F2326; --body:#3A3F43; --muted:#5F656A; --faint:#8C9196;
  --success:#0D7D4D; --success-bg:#E8F4EE; --success-line:#A9D5BE;
  --danger:#A3213A; --danger-bg:#FBEEF0; --danger-line:#EBC3CB;
  --warning:#8A5A00; --warning-bg:#FFF6DF; --warning-line:#EED9A2;
  --info-bg:#EEF2F5; --info-line:#CDD7DF;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,Consolas,monospace;
  --ease:cubic-bezier(.22,1,.36,1);
  --r:6px; --r-sm:4px;
  --accent:var(--brand); --ink:var(--text); --rule:var(--border); --rule-soft:var(--border-soft); --field:var(--border);
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{color:var(--primary-hover)}
button{font-family:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
img{max-width:100%}
em,i{font-style:normal;font-weight:500}

/* ---------- header ---------- */
.topbar{background:var(--white);position:sticky;top:0;z-index:20;box-shadow:0 1px 0 var(--border)}
.topbar-inner{max-width:1240px;margin:0 auto;min-height:64px;padding:8px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:16px;min-width:0}
.logo-link{display:block;line-height:0;flex:none}
.brand img{height:30px;width:auto;display:block}
.brand .divider{width:1px;height:28px;background:var(--border)}
.crumb,.crumb-sep{font-size:14px;color:var(--muted)}
.topnav{display:flex;align-items:center;gap:16px;font-size:14px}
.topnav a{color:var(--body);text-decoration:none;font-weight:500;padding:8px 4px}
.topnav a:hover{color:var(--text);text-decoration:underline}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;text-transform:uppercase}
.user{display:flex;align-items:center;gap:12px}

/* course tabs under the header */
.course-tabs{border-top:1px solid var(--border-soft);background:var(--white)}
.course-tabs-inner{max-width:1240px;margin:0 auto;padding:0 32px;display:flex;gap:32px}
.course-tabs a{display:flex;align-items:center;height:48px;font-size:15px;font-weight:500;color:var(--muted);text-decoration:none;border-bottom:3px solid transparent;margin-bottom:-1px;transition:color .15s var(--ease),border-color .15s var(--ease)}
.course-tabs a:hover{color:var(--text)}
.course-tabs a.active{color:var(--text);font-weight:600;border-bottom-color:var(--brand)}

/* course menu */
.course-menu{position:relative}
.cm-button{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 8px 0 12px;border:1px solid transparent;border-radius:var(--r);background:transparent;font-size:16px;font-weight:600;color:var(--text);transition:background-color .15s var(--ease)}
.cm-button:hover,.cm-button[aria-expanded=true]{background:var(--light-2)}
.cm-button svg{color:var(--muted);transition:transform .18s var(--ease)}
.cm-button[aria-expanded=true] svg{transform:rotate(180deg)}
.cm-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:30;width:min(380px,86vw);background:var(--white);border:1px solid var(--border);border-radius:var(--r);box-shadow:0 12px 28px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.06);padding:8px 0}
.cm-panel:not([hidden]){animation:menu-in .18s var(--ease)}
@keyframes menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.cm-head{font-size:12px;font-weight:600;color:var(--muted);padding:8px 16px}
.cm-item{display:flex;align-items:center;gap:12px;padding:12px 16px;text-decoration:none;color:var(--text);border-left:3px solid transparent}
.cm-item:hover,.cm-item:focus-visible{background:var(--light);outline:none}
.cm-item.is-current{border-left-color:var(--brand);background:var(--light)}
.cm-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.cm-title{font-size:15px;font-weight:600}
.cm-sub{font-size:13px;line-height:1.4;color:var(--muted)}
.cm-item.is-soon .cm-title{color:var(--body)}
.cm-check{color:var(--success);flex:none}
.cm-badge{flex:none;font-size:12px;font-weight:600;color:var(--muted);background:var(--light-2);border-radius:var(--r-sm);padding:2px 8px}
.cm-all{display:block;margin-top:8px;padding:12px 16px 4px;border-top:1px solid var(--border-soft);font-size:14px;font-weight:500}

/* ---------- type ---------- */
.eyebrow{font-size:14px;line-height:20px;font-weight:500;color:var(--muted);margin:0 0 8px}
h1{font-size:32px;line-height:1.2;font-weight:700;letter-spacing:-.015em;margin:0 0 16px;color:var(--text)}
h2{font-size:22px;line-height:1.3;font-weight:600;letter-spacing:-.005em;margin:40px 0 12px;color:var(--text)}
h3{font-size:18px;line-height:1.4;font-weight:600;margin:28px 0 8px;color:var(--text)}
p,li{font-size:16px;line-height:1.65;color:var(--body)}
p{margin:0 0 16px}
.lead{font-size:18px;line-height:1.6}
ul,ol{margin:0 0 16px;padding-left:24px}
li{margin-bottom:8px}
.mono{font-family:var(--mono)}
.small{font-size:14px;color:var(--muted)}
strong,b{font-weight:600;color:var(--text)}

/* ---------- layout ---------- */
.page{max-width:1240px;margin:0 auto;padding:40px 32px 80px}
.card{background:var(--white);border:1px solid var(--border);border-radius:var(--r)}

/* ---------- catalog (my courses) ---------- */
.hero{margin-bottom:32px}
.hero-text h1{margin-bottom:8px}
.hero-text p{color:var(--muted);max-width:680px;margin:0}
.dash{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:24px}
.dash-card{display:flex;flex-direction:column;overflow:hidden;transition:box-shadow .15s var(--ease)}
.dash-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.08)}
.dash-banner{display:flex;align-items:center;justify-content:center;height:148px;background:var(--primary);background-image:linear-gradient(135deg,#2B3237 0%,#1B2024 100%)}
.dash-card.is-soon .dash-banner{background:#6A7075;background-image:none}
.dash-banner img{width:44%;max-width:180px;height:auto;opacity:.95}
.dash-body{padding:20px 24px 24px;display:flex;flex-direction:column;gap:8px;flex:1}
.dash-body .head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.dash-body h2{margin:4px 0 0;font-size:20px}
.dash-body p{margin:0 0 12px;font-size:15px;color:var(--muted);flex:1}
.dash-body .btn{align-self:flex-start}
.code{font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--muted)}
.badge{display:inline-flex;align-items:center;font-size:12px;line-height:16px;font-weight:600;color:var(--muted);background:var(--light-2);border-radius:var(--r-sm);padding:4px 8px;white-space:nowrap}
.badge.on{color:var(--text);background:#E7E9EB}
.badge.done{color:var(--success);background:var(--success-bg)}

/* ---------- course home ---------- */
.course-head{background:var(--white);border-bottom:1px solid var(--border)}
.ch-inner{max-width:1240px;margin:0 auto;padding:32px}
.ch-inner h1{margin-bottom:8px}
.ch-inner p:last-child{margin:0;max-width:760px;color:var(--muted)}
.ch-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start;padding-top:32px}
.outline{display:flex;flex-direction:column;gap:16px}
.ol-section{overflow:hidden}
.ol-section summary{display:grid;grid-template-columns:28px minmax(0,1fr) auto 24px;align-items:center;gap:16px;padding:20px 24px;cursor:pointer;list-style:none;transition:background-color .15s var(--ease)}
.ol-section summary::-webkit-details-marker{display:none}
.ol-section summary:hover{background:var(--light)}
.ol-status{width:28px;height:28px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;color:#fff}
.ol-status.on{border-color:var(--primary);background:conic-gradient(var(--primary) 0 50%,transparent 50% 100%)}
.ol-status.done{border-color:var(--success);background:var(--success)}
.ol-title{display:flex;flex-direction:column;gap:4px;min-width:0}
.ol-title h2{margin:0;font-size:19px;line-height:1.35}
.ol-chev{color:var(--muted);display:flex;transition:transform .2s var(--ease)}
.ol-section[open] .ol-chev{transform:rotate(180deg)}
.ol-body{padding:0 24px 24px 68px}
.ol-body > p{font-size:15px;margin:0 0 8px;max-width:720px}
.ol-body > p.detail{color:var(--muted);font-size:14px;margin-bottom:16px}
.ol-units{list-style:none;margin:0 0 20px;padding:0;border:1px solid var(--border-soft);border-radius:var(--r)}
.ol-units li{margin:0;border-top:1px solid var(--border-soft)}
.ol-units li:first-child{border-top:0}
.ol-units a{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 16px;font-size:15px;color:var(--text);text-decoration:none;transition:background-color .15s var(--ease)}
.ol-units a:hover{background:var(--light)}
.ol-units a:hover span:last-child{text-decoration:underline}
.ol-check{flex:none;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;color:#fff}
.ol-check svg{width:12px;height:12px}
.ol-units a.done .ol-check{background:var(--success);border-color:var(--success)}
.ol-type{flex:none;display:flex;color:var(--faint)}
.ol-type svg{width:18px;height:18px}
.ch-side{position:sticky;top:136px}
.progress-card{padding:24px;display:flex;flex-direction:column;gap:16px}
.progress-card .row{display:flex;justify-content:space-between;align-items:baseline;font-size:15px}
.progress-card .pct{font-variant-numeric:tabular-nums;font-size:28px;font-weight:700;letter-spacing:-.02em;color:var(--text)}
.progress{height:8px;background:var(--light-2);border-radius:4px;overflow:hidden}
.progress > span{display:block;height:100%;background:var(--brand);border-radius:4px}

/* ---------- unit pages ---------- */
.unit-page{max-width:1240px;margin:0 auto;padding:24px 32px 80px}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:14px;color:var(--muted);margin-bottom:16px}
.crumbs a{color:var(--primary);font-weight:500}
.crumbs .crumb-sep{display:flex;color:var(--faint)}
.crumbs .crumb-sep svg{width:14px;height:14px}
.seq-nav{display:flex;align-items:stretch;background:var(--white);border:1px solid var(--border);border-bottom:0;border-radius:var(--r) var(--r) 0 0;overflow:hidden}
.seq-arrow{flex:none;display:flex;align-items:center;justify-content:center;width:56px;height:56px;color:var(--primary);text-decoration:none;border-right:1px solid var(--border-soft);transition:background-color .15s var(--ease)}
.seq-arrow:last-child{border-right:0;border-left:1px solid var(--border-soft)}
.seq-arrow:hover{background:var(--light)}
.seq-units{flex:1;display:flex;list-style:none;margin:0;padding:0;overflow-x:auto;scrollbar-width:none}
.seq-units li{flex:1 0 48px;margin:0;border-right:1px solid var(--border-soft)}
.seq-units li:last-child{border-right:0}
.seq-unit{position:relative;display:flex;align-items:center;justify-content:center;height:56px;color:var(--faint);text-decoration:none;transition:background-color .15s var(--ease),color .15s var(--ease)}
.seq-unit:hover{background:var(--light);color:var(--text)}
.seq-unit.current{color:var(--text);background:var(--white);box-shadow:inset 0 -3px 0 var(--brand)}
.seq-unit.done{color:var(--muted)}
.seq-done{position:absolute;top:8px;right:calc(50% - 22px);width:16px;height:16px;border-radius:50%;background:var(--success);color:#fff;display:flex;align-items:center;justify-content:center}
.seq-done svg{width:10px;height:10px}
.unit{background:var(--white);border:1px solid var(--border);border-radius:0 0 var(--r) var(--r);padding:48px 56px 56px}
.unit article{max-width:860px;margin:0 auto}
.unit article.wide{max-width:none}

/* blocks */
.quote{border-left:4px solid var(--border);padding:4px 0 4px 20px;margin:24px 0;font-size:18px;line-height:1.6;color:var(--text)}
.quote p{font-size:16px;margin-bottom:12px}
.table-wrap{overflow-x:auto;margin:8px 0 24px;border:1px solid var(--border);border-radius:var(--r);background:var(--white)}
table.data{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;font-size:15px;line-height:1.5}
table.data th{text-align:left;font-weight:600;font-size:14px;background:var(--light-2);color:var(--text);padding:12px 16px;border-bottom:1px solid var(--border);vertical-align:bottom}
table.data td{padding:12px 16px;border-bottom:1px solid var(--border-soft);vertical-align:top;color:var(--body)}
table.data tr:nth-child(even) td{background:var(--light)}
table.data tr:last-child td{border-bottom:0}
table.data td:first-child{font-weight:600;color:var(--text)}
.callout{border-radius:var(--r);padding:20px 24px;margin:28px 0;border:1px solid var(--info-line);background:var(--info-bg)}
.callout .callout-title{display:flex;align-items:center;gap:8px;font-weight:600;font-size:16px;margin-bottom:8px;color:var(--text)}
.callout ul{margin:0;padding-left:20px}
.callout li,.callout p{font-size:15px;line-height:1.6;color:var(--body)}
.callout li:last-child,.callout p:last-child{margin-bottom:0}
.takeaways{background:var(--success-bg);border-color:var(--success-line)} .takeaways .callout-title{color:var(--success)}
.warn{background:var(--warning-bg);border-color:var(--warning-line)} .warn .callout-title{color:var(--warning)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 20px}
.chip{font-family:var(--mono);font-size:13px;line-height:20px;padding:4px 8px;border-radius:var(--r-sm);background:var(--light-2);color:var(--text)}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:12px 0 24px}
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:12px 0 24px}
.tile{background:var(--white);border:1px solid var(--border);border-top:3px solid var(--primary);border-radius:var(--r);padding:20px;display:flex;flex-direction:column;gap:8px}
.tile .n{font-size:13px;font-weight:700;color:var(--muted);letter-spacing:.04em}
.tile .t{font-size:16px;font-weight:600;color:var(--text)}
.tile p,.tile li{font-size:15px;line-height:1.55;margin:0}
.tile ul{margin:0;padding-left:20px}

/* tabs (content) */
.tabs{background:var(--white);border:1px solid var(--border);border-radius:var(--r);overflow:hidden;margin:16px 0 24px}
.tabs [role=tablist]{display:flex;border-bottom:1px solid var(--border);padding:0 16px;gap:24px}
.tabs [role=tab]{min-height:48px;border:0;background:transparent;font-size:15px;font-weight:500;color:var(--muted);padding:0 4px;border-bottom:3px solid transparent;margin-bottom:-1px;transition:color .15s var(--ease),border-color .15s var(--ease)}
.tabs [role=tab]:hover{color:var(--text)}
.tabs [role=tab][aria-selected=true]{color:var(--text);font-weight:600;border-bottom-color:var(--primary)}
.tabs [role=tabpanel]{padding:24px}
.tabs [role=tabpanel] p:last-child{margin-bottom:0}

/* exercises: problem blocks */
.exercise{background:var(--white);border:1px solid var(--border);border-radius:var(--r);margin:32px 0;overflow:hidden}
.exercise > :not(.ex-label){margin-left:24px;margin-right:24px}
.exercise > :last-child{margin-bottom:24px}
.exercise .ex-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted);background:var(--light);border-bottom:1px solid var(--border-soft);padding:12px 24px;margin:0 0 20px}
.exercise .ex-label::before{content:'';width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E") center/contain no-repeat}
.exercise h3{margin-top:0;margin-bottom:8px;font-size:18px}
.case{border-top:1px solid var(--border-soft);padding:20px 0 0;margin-top:20px}
.case p{font-size:15px;margin-bottom:12px}
.options{display:flex;flex-wrap:wrap;gap:8px}
.opt{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 16px 8px 12px;border-radius:var(--r);border:1px solid var(--border);background:var(--white);font-size:15px;color:var(--text);transition:background-color .15s var(--ease),border-color .15s var(--ease)}
.opt::before{content:'';width:16px;height:16px;border-radius:50%;border:1.5px solid var(--faint);flex:none;box-sizing:border-box}
.opt:hover{border-color:var(--primary);background:var(--light)}
.opt.right{border-color:var(--success);background:var(--success-bg);color:var(--success)}
.opt.right::before{border:5px solid var(--success)}
.opt.wrong{border-color:var(--danger);background:var(--danger-bg);color:var(--danger)}
.opt.wrong::before{border:5px solid var(--danger)}
.feedback{margin-top:12px;padding:12px 16px;border-radius:var(--r);border-left:4px solid;font-size:15px;line-height:1.55}
.feedback.ok{background:var(--success-bg);border-color:var(--success);color:#0E3B26}
.feedback.no{background:var(--danger-bg);border-color:var(--danger);color:#4A1422}
.calc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:16px 0}
.field{display:flex;flex-direction:column;gap:8px}
.field label{font-size:14px;font-weight:600;color:var(--text)}
.field input,.field select{height:44px;padding:0 12px;border:1px solid var(--border);border-radius:var(--r);font-size:15px;font-family:var(--sans);background:#fff;color:var(--text);transition:border-color .15s var(--ease),box-shadow .15s var(--ease)}
.field input:hover,.field select:hover{border-color:var(--faint)}
.field input:focus,.field select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(35,41,46,.15)}
.result{border-radius:var(--r);padding:16px;background:var(--light);border:1px solid var(--border-soft);font-size:15px;line-height:1.6}
.result strong{font-weight:700}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:var(--r);font-size:15px;font-weight:600;text-decoration:none;border:1px solid transparent;transition:background-color .15s var(--ease),border-color .15s var(--ease),color .15s var(--ease),transform .12s var(--ease)}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--primary);color:#fff} .btn-primary:hover{background:var(--primary-hover);color:#fff}
.btn-outline,.btn-ghost{border-color:var(--primary);color:var(--primary);background:var(--white)} .btn-outline:hover,.btn-ghost:hover{background:var(--light-2);color:var(--primary-hover)}
.btn-done{background:var(--success-bg);color:var(--success);border-color:var(--success-line)}
.pager{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding-top:24px;margin-top:48px;border-top:1px solid var(--border)}
.pager-end{display:flex;gap:12px;flex-wrap:wrap}
.mini-progress{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted)}

/* resources */
.res-section{padding:32px;margin-top:24px}
.res-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:32px}
.res-group h3{margin:0 0 4px}
.res-group p{font-size:15px;line-height:1.55;color:var(--muted);margin:0 0 16px}
.drive-frame{width:100%;height:360px;border:1px solid var(--border);border-radius:var(--r);background:var(--light)}
.empty{border:1px dashed var(--border);border-radius:var(--r);padding:20px;font-size:15px;color:var(--muted);line-height:1.55;background:var(--light)}

/* media (module 2) */
.split{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;align-items:start;background:var(--white);border:1px solid var(--border);border-radius:var(--r);padding:32px}
.split > .main{min-width:0}
.split > aside{position:sticky;top:136px}
.player{position:relative;aspect-ratio:16/9;background:#111417;border-radius:var(--r);overflow:hidden}
.player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.player-note{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted);margin-top:12px}
.player-note svg{flex:none}
.steps{padding:0;overflow:hidden;background:var(--light);border-color:var(--border-soft)}
.steps h2{margin:0;font-size:16px;padding:16px 20px;border-bottom:1px solid var(--border-soft);background:var(--white)}
.step{display:flex;gap:12px;padding:14px 20px;border-top:1px solid var(--border-soft)}
.steps h2 + .step{border-top:0}
.step .num{flex:none;width:24px;height:24px;border-radius:50%;background:var(--primary);color:#fff;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;margin-top:1px}
.step .t{font-size:15px;font-weight:600;color:var(--text)}
.step .d{font-size:14px;line-height:1.5;color:var(--muted);margin-top:2px}
.form-frame{width:100%;min-height:2600px;border:1px solid var(--border);border-radius:var(--r);background:#fff}
.player-link{display:flex;align-items:center;justify-content:center;background:var(--light);border:1px solid var(--border)}
.player-inner{text-align:center;padding:24px;display:flex;flex-direction:column;align-items:center;gap:16px}
.player-inner p{margin:0}
.folder-link{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;border:1px solid var(--border);border-radius:var(--r);background:var(--light)}
.folder-link p{margin:0}

/* slides */
.slides{margin:8px 0}
.slide-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;border:1px solid var(--border);border-radius:var(--r);background:#fff;scrollbar-width:thin}
.slide{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start}
.slide img{display:block;width:100%;height:auto;aspect-ratio:16/9;user-select:none;-webkit-user-drag:none}
.slide-controls{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:12px}
.slide-controls .btn{min-width:44px;padding:0 12px}
.slide-controls [data-count]{min-width:64px;text-align:center;font-family:var(--sans);font-weight:600}

/* ---------- case study ---------- */
.choices{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.choice{display:flex;gap:12px;align-items:flex-start;text-align:left;min-height:48px;padding:12px 16px;border-radius:var(--r);border:1px solid var(--border);background:var(--white);font-size:15px;line-height:1.5;color:var(--text);transition:background-color .15s var(--ease),border-color .15s var(--ease)}
.choice::before{content:'';flex:none;width:18px;height:18px;margin-top:2px;border-radius:50%;border:1.5px solid var(--faint);box-sizing:border-box}
.choice:hover{border-color:var(--primary);background:var(--light)}
.choice .mono{flex:none;font-size:14px;font-family:var(--sans);font-weight:600;color:var(--muted);padding-top:1px}
.choice.right{border-color:var(--success);background:var(--success-bg)} .choice.right::before{border:5px solid var(--success)}
.choice.wrong{border-color:var(--danger);background:var(--danger-bg)} .choice.wrong::before{border:5px solid var(--danger)}
.resolution{border-top:1px solid var(--border);margin-top:40px;padding-top:8px}
.resolution > h2{margin-top:24px}
.records{display:flex;flex-direction:column;gap:8px;margin:12px 0 24px}
.doc{background:var(--white);border:1px solid var(--border);border-radius:var(--r)}
.doc summary{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;cursor:pointer;list-style:none}
.doc summary::-webkit-details-marker{display:none}
.doc summary::after{content:'+';margin-left:auto;color:var(--muted);font-weight:600}
.doc[open] summary::after{content:'–'}
.doc-title{font-size:15px;font-weight:600;color:var(--text);display:flex;flex-direction:column;gap:2px}
.doc-sub{font-size:14px;font-weight:400;color:var(--muted)}
.doc-body{padding:4px 16px 16px;border-top:1px solid var(--border-soft)}
.doc-row{display:grid;grid-template-columns:128px minmax(0,1fr);gap:12px;padding:8px 0;font-size:14px;border-bottom:1px solid var(--border-soft)}
.doc-row:last-child{border-bottom:0}
.doc-row .k{color:var(--muted)}
.doc-row .v .chip{display:inline-block;margin:0 4px 4px 0;background:#FFF1C7;color:#4A3B00}

/* supply chain map */
.chain{margin:16px 0 28px;display:flex;flex-direction:column;gap:12px}
.branches{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.branch{display:flex;flex-direction:column;gap:8px;background:var(--light);border:1px solid var(--border-soft);border-radius:var(--r);padding:12px}
.branch-label{font-size:13px;font-weight:600;color:var(--muted);padding:0 4px}
.node{background:var(--white);border:1px solid var(--border);border-radius:var(--r);padding:12px 16px}
.node .role{font-size:12px;font-weight:600;color:var(--muted)}
.node .name{font-size:15px;font-weight:600;color:var(--text)}
.node .where{font-size:14px;color:var(--body)}
.node .cb{font-size:12px;color:var(--muted);margin-top:4px}
.flow{font-size:13px;color:var(--body);line-height:1.45;padding:4px 8px 4px 12px;border-left:2px solid var(--border);margin-left:16px}
.flow span{color:var(--primary);font-weight:700}
.merge{display:flex;flex-direction:column;gap:8px}
.merge > .node:first-child{border:2px solid var(--primary)}
.merge-note{font-size:14px;margin:4px 0 0 16px}
.annex-list{list-style:none;padding:0;margin:0 0 12px}
.annex-list li{font-size:15px;padding:8px 0;margin:0;border-bottom:1px solid var(--border-soft)}
.annex-list .mono{color:var(--muted);margin-right:8px}
article.wide{max-width:1100px}
.tc table.data{min-width:1000px;font-size:14px}
.tc tr.group td{background:var(--light-2);color:var(--text);font-weight:700;font-size:13px}

/* annex labels */
.annex-strip{list-style:none;margin:16px 0 24px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}
.annex-strip li{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;background:var(--white);border:1px solid var(--border);border-radius:var(--r);margin:0;font-size:15px;line-height:1.4}
.annex-strip .annex,.doc .annex{flex:none;font-size:12px;font-weight:500;color:#fff;background:var(--primary);border-radius:var(--r-sm);padding:2px 6px;margin-top:1px}
.annex-strip strong{display:block}
.annex-strip .doc-sub{display:block;font-size:13px;margin-top:2px}

/* ---------- document exercises ---------- */
.docx{margin:32px 0;background:var(--light-2);border:1px solid var(--border);border-radius:var(--r);padding:20px}
.docx.solved{border-color:var(--success-line);background:#E9F1EC}
.docx-head{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.docx-annex{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:56px;height:56px;border-radius:var(--r);background:var(--primary);color:#fff;line-height:1}
.docx-annex .mono{font-family:var(--sans);font-size:10px;font-weight:600;letter-spacing:.04em;opacity:.75}
.docx-annex strong{font-size:22px;font-weight:700;margin-top:4px;color:#fff}
.docx-name{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.docx-kind{font-size:13px;font-weight:500;color:var(--muted)}
.docx-title{font-size:18px;font-weight:600;color:var(--text);overflow-wrap:anywhere}
.docx-state{flex:none;font-size:12px;font-weight:600;color:var(--muted);background:var(--white);border:1px solid var(--border);border-radius:var(--r-sm);padding:4px 8px;white-space:nowrap}
.docx.solved .docx-state{color:var(--success);background:var(--success-bg);border-color:var(--success-line)}
.docx-task{display:flex;gap:12px;align-items:flex-start;background:var(--white);border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:var(--r);padding:12px 16px;margin-bottom:16px;color:var(--primary)}
.docx-task svg{flex:none;margin-top:3px}
.docx-task p{margin:0;font-size:15px;line-height:1.55;color:var(--text);font-weight:600}

.paper{position:relative;background:#fff;border:1px solid #D8D6D0;border-radius:2px;padding:24px 24px 20px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 12px 28px -16px rgba(0,0,0,.25);font-size:13.5px;line-height:1.5;color:#2A2723}
.paper p{margin:0 0 4px;font-size:13.5px;color:#2A2723}
.sheet-head{display:flex;flex-direction:column;gap:2px;padding-bottom:12px;margin-bottom:12px;border-bottom:1.5px solid #2A2723}
.sheet-head.center{align-items:center;text-align:center}
.sheet-head strong{font-size:15px;letter-spacing:.03em;text-transform:uppercase;color:#2A2723}
.sheet-head span{font-size:12.5px;color:#5F5B57}
.sheet-head .u{font-weight:600;color:#2A2723;text-decoration:underline;text-underline-offset:3px;text-transform:uppercase;letter-spacing:.04em}
.paper .grid{display:grid;gap:0;margin-bottom:12px;border:1px solid #E3E0D9}
.paper .grid.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.paper .dc{display:flex;flex-direction:column;gap:4px;padding:8px 12px;border-right:1px solid #E3E0D9;border-bottom:1px solid #E3E0D9}
.paper .grid.g2 .dc:nth-child(2n){border-right:0}
.paper .dc:nth-last-child(-n+2){border-bottom:0}
.paper .dl{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:#8A847B}
.paper .dv{font-size:13.5px;color:#2A2723}
.paper strong{color:#2A2723}
.paper .box10{border:1px solid #E3E0D9;margin-bottom:12px}
.paper .sub{font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#5F5B57;margin:16px 0 8px}
.paper .goods{border:1px solid #E3E0D9;padding:12px;margin-bottom:12px}
.paper .goods .strong{font-weight:600}
.paper .t{width:100%;border-collapse:collapse;margin-bottom:12px;font-size:13px}
.paper .t th{text-align:left;font-weight:600;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#5F5B57;background:#F6F5F2;border:1px solid #E3E0D9;padding:8px}
.paper .t td{border:1px solid #E3E0D9;padding:8px;vertical-align:top}
.paper .t tr.dim td{color:#9A948C}
.paper .t.wide{min-width:980px}
.paper .t.wide td,.paper .t.wide th{white-space:nowrap}
.paper .scroll{overflow-x:auto;margin:0 -4px;padding:0 4px}
.sheet-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin-top:12px;padding-top:12px;border-top:1px dashed #D6D0C6;font-size:12px;color:#5F5B57}
.paper .notes{margin-top:8px;font-size:11.5px;line-height:1.5;color:#7A746B}

.fld{font:inherit;color:inherit;text-align:inherit;background:rgba(255,214,80,.28);border:0;border-bottom:1.5px dotted var(--primary);padding:0 2px;margin:0;border-radius:2px;cursor:pointer;transition:background-color .15s var(--ease),box-shadow .15s var(--ease)}
.fld:hover{background:rgba(255,214,80,.55)}
.fld:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.fld.ok,.fld.part,.fld.no{border-bottom-style:solid}
.fld.ok{background:#D9EFE3;border-bottom-color:var(--success);color:#0B4A2E}
.fld.part{background:var(--warning-bg);border-bottom-color:#B07A12;color:#5A3E07}
.fld.no{background:var(--danger-bg);border-bottom-color:var(--danger);color:#5E1019;text-decoration:line-through;text-decoration-thickness:1px}
.fld.is-current{box-shadow:0 0 0 2px rgba(35,41,46,.25)}
.fld em{color:#8A847B;font-weight:400}

.docx-fb{margin-top:16px;border-radius:var(--r);border-left:4px solid;padding:12px 16px 12px 40px;font-size:15px;line-height:1.55;position:relative;animation:rise .3s var(--ease)}
.docx-fb::before{position:absolute;left:16px;top:12px;font-weight:700;font-size:15px;line-height:1.5}
.docx-fb.ok{background:var(--success-bg);border-color:var(--success);color:#0E3B26} .docx-fb.ok::before{content:'✓';color:var(--success)}
.docx-fb.part{background:var(--warning-bg);border-color:#B07A12;color:#4A3505} .docx-fb.part::before{content:'~';color:#B07A12}
.docx-fb.no{background:var(--danger-bg);border-color:var(--danger);color:#4A1422} .docx-fb.no::before{content:'✕';color:var(--danger)}
.docx-reveal{margin-top:12px;border:1px solid var(--border);border-radius:var(--r);background:var(--white);overflow:hidden;animation:rise .3s var(--ease)}
.rv-head{font-size:14px;font-weight:600;color:#fff;padding:12px 16px;background:var(--primary)}
.rv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.rv-grid > div{padding:16px}
.rv-grid > div + div{border-left:1px solid var(--border-soft)}
.rv-k{display:inline-block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:4px}
.rv-grid p{margin:0;font-size:15px;line-height:1.55}
@keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------- coming soon ---------- */
.soon{max-width:680px;margin:24px auto;padding:40px}
.soon-mark{width:56px;height:56px;border-radius:var(--r);background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:24px}
.soon h1{margin-bottom:12px}
.soon .btn{margin-top:8px}

/* ---------- small screens ---------- */
@media (max-width:900px){
  .ch-grid{grid-template-columns:minmax(0,1fr)}
  .ch-side{position:static;order:-1}
  .split{grid-template-columns:minmax(0,1fr);padding:20px}
  .split > aside{position:static}
}
@media (max-width:760px){
  .topbar-inner{padding:8px 16px}
  .brand img{height:26px}
  .brand .divider{display:none}
  .brand{gap:8px}
  .cm-button{font-size:15px;padding:0 4px 0 8px;white-space:nowrap}
  .topnav a{white-space:nowrap}
  .course-tabs-inner{padding:0 16px;gap:24px}
  .page,.unit-page{padding-left:16px;padding-right:16px}
  .ch-inner{padding:24px 16px}
  .unit{padding:28px 20px 40px}
  h1{font-size:26px}
  .ol-section summary{grid-template-columns:24px minmax(0,1fr) 20px;padding:16px;gap:12px}
  .ol-section summary .badge{display:none}
  .ol-status{width:24px;height:24px}
  .ol-body{padding:0 16px 20px}
  .seq-arrow{width:44px}
  .seq-units li{flex:0 0 44px}
  .exercise > :not(.ex-label){margin-left:16px;margin-right:16px}
  .exercise .ex-label{padding:12px 16px}
}
@media (max-width:600px){
  .course-menu{position:static}
  .cm-panel{left:12px;right:12px;width:auto;top:calc(100% - 4px)}
  .paper{padding:16px}
  .paper .grid.g2{grid-template-columns:minmax(0,1fr)}
  .paper .grid.g2 .dc{border-right:0}
  .paper .dc:nth-last-child(-n+2){border-bottom:1px solid #E3E0D9}
  .paper .dc:last-child{border-bottom:0}
  .rv-grid > div + div{border-left:0;border-top:1px solid var(--border-soft)}
  .docx{padding:12px}
  .docx-head{flex-wrap:wrap;gap:12px}
  .soon{padding:28px 20px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
.access-code{margin:0;font-size:14px;color:var(--muted)}
.access-code span{font-family:var(--mono);font-size:15px;font-weight:500;color:var(--text);background:var(--white);border:1px solid var(--border);border-radius:var(--r-sm);padding:2px 8px;margin-left:4px;user-select:all}
