/* ============================================================================
   Flow Academy — control-room dark theme for an instrumentation/metering course.
   Palette: deep slate panels, cyan (interactive/HMI) + amber (values/warnings).
   Type: IBM Plex Sans (UI/body) + IBM Plex Mono (data, code, register maps).
   ============================================================================ */
:root {
  --bg: #0a0e14;
  --bg-grid: #0d121b;
  --panel: #121a25;
  --panel-2: #16202d;
  --panel-3: #1b2837;
  --line: rgba(120, 150, 180, 0.14);
  --line-strong: rgba(120, 150, 180, 0.28);
  --text: #e8eef5;
  --text-dim: #9fb0c3;
  --text-faint: #6b7d92;
  --cyan: #36c5f0;
  --cyan-dim: #1f8fb5;
  --cyan-glow: rgba(54, 197, 240, 0.25);
  --amber: #f5a623;
  --amber-dim: #b97d18;
  --green: #34d399;
  --red: #f87171;
  --violet: #a78bfa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px var(--cyan-glow);
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --topbar-h: 58px;
  --sidebar-w: 300px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(54,197,240,0.06), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(245,166,35,0.05), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 18px;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.06em; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--cyan); font-size: 1.2rem; filter: drop-shadow(0 0 6px var(--cyan-glow)); }
.brand-text { color: var(--text); font-size: 0.95rem; }
.brand-accent { color: var(--cyan); margin-left: 2px; }
.topbar-progress { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 160px; }
.tp-track { flex: 1; height: 6px; background: var(--panel-3); border-radius: 99px; overflow: hidden; }
.tp-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--cyan-dim), var(--cyan)); border-radius: 99px; transition: width 0.5s ease; box-shadow: 0 0 8px var(--cyan-glow); }
.tp-label { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); min-width: 38px; text-align: right; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ---- Shell ---- */
.shell { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-grid), var(--bg));
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.module-nav { padding: 14px 10px; flex: 1; }
.mod-group { margin-bottom: 6px; }
.mod-head {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: none; border: none; cursor: pointer;
  color: var(--text); font-family: var(--sans); font-size: 0.86rem; font-weight: 600;
}
.mod-head:hover { background: var(--panel); }
.mod-head .mod-num { font-family: var(--mono); font-size: 0.72rem; color: var(--cyan); background: var(--panel-3); border-radius: 5px; padding: 2px 6px; }
.mod-head .mod-title { flex: 1; }
.mod-head .mod-pct { font-family: var(--mono); font-size: 0.68rem; color: var(--text-faint); }
.mod-head .chev { color: var(--text-faint); transition: transform 0.2s; font-size: 0.7rem; }
.mod-group.open .chev { transform: rotate(90deg); }
.lesson-list { list-style: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mod-group.open .lesson-list { max-height: 800px; }
.lesson-item a {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px 7px 30px; border-radius: 6px;
  color: var(--text-dim); font-size: 0.82rem;
}
.lesson-item a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.lesson-item a.active { background: var(--panel-2); color: var(--cyan); box-shadow: inset 2px 0 0 var(--cyan); }
.lesson-item .dot { width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 0.6rem; }
.lesson-item.done .dot { background: var(--green); border-color: var(--green); color: #06281c; }
.lesson-item.quiz a .tag { margin-left: auto; font-family: var(--mono); font-size: 0.6rem; color: var(--amber); border: 1px solid var(--amber-dim); border-radius: 4px; padding: 0 4px; }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--line); }

/* ---- Content ---- */
.content { flex: 1; min-width: 0; padding: 36px clamp(20px, 5vw, 64px) 96px; max-width: 920px; margin: 0 auto; outline: none; }
.crumb { font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.04em; margin-bottom: 10px; text-transform: uppercase; }
.content h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 6px; }
.content h2 { font-size: 1.3rem; font-weight: 600; margin: 34px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.content h3 { font-size: 1.05rem; font-weight: 600; margin: 22px 0 8px; color: var(--text); }
.content p { color: var(--text-dim); margin-bottom: 14px; }
.content strong { color: var(--text); font-weight: 600; }
.content em { color: var(--amber); font-style: normal; }
.lead { font-size: 1.08rem; color: var(--text-dim); margin: 10px 0 8px; }
.content ul, .content ol { color: var(--text-dim); margin: 0 0 16px 22px; }
.content li { margin-bottom: 7px; }
.content li::marker { color: var(--cyan); }
code, .mono { font-family: var(--mono); font-size: 0.86em; background: var(--panel-3); padding: 1px 6px; border-radius: 5px; color: var(--cyan); }

/* callouts */
.callout { border: 1px solid var(--line-strong); border-left: 3px solid var(--cyan); background: var(--panel); border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0; }
.callout.field { border-left-color: var(--amber); }
.callout.safety { border-left-color: var(--red); }
.callout . co-head { font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; color: var(--cyan); display: flex; align-items: center; gap: 8px; }
.callout.field .co-head { color: var(--amber); }
.callout.safety .co-head { color: var(--red); }
.callout p:last-child { margin-bottom: 0; }

/* key/value spec table */
.spec { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.spec td, .spec th { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.spec th { background: var(--panel-2); color: var(--cyan); font-weight: 600; font-size: 0.82rem; }
.spec td:first-child { color: var(--text); font-weight: 500; width: 34%; }
.spec td { color: var(--text-dim); }
.spec tr:nth-child(even) td { background: rgba(255,255,255,0.012); }

/* cards grid (overview) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 22px 0; }
.ov-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: 0.18s; }
.ov-card:hover { border-color: var(--cyan-dim); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.ov-card .oc-num { font-family: var(--mono); color: var(--cyan); font-size: 0.74rem; }
.ov-card .oc-title { font-weight: 600; color: var(--text); margin: 6px 0 4px; }
.ov-card .oc-desc { font-size: 0.84rem; color: var(--text-faint); }
.ov-card .oc-bar { height: 4px; background: var(--panel-3); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.ov-card .oc-bar div { height: 100%; background: var(--cyan); border-radius: 99px; }

/* lesson nav buttons */
.lesson-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.btn { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; border-radius: var(--radius-sm); padding: 11px 18px; cursor: pointer; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); transition: 0.16s; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { border-color: var(--cyan-dim); }
.btn-primary { background: linear-gradient(180deg, var(--cyan), var(--cyan-dim)); color: #042130; border-color: transparent; }
.btn-primary:hover { box-shadow: var(--shadow-glow); }
.btn-ghost { background: none; border: 1px solid var(--line); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn-tiny { font-size: 0.74rem; padding: 6px 10px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.mark-done { margin-top: 28px; }

/* ---- Quiz ---- */
.quiz-q { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.quiz-q .q-num { font-family: var(--mono); font-size: 0.72rem; color: var(--cyan); }
.quiz-q .q-text { font-weight: 600; margin: 6px 0 12px; color: var(--text); }
.q-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; transition: 0.14s; color: var(--text-dim); background: var(--panel-2); }
.q-opt:hover { border-color: var(--cyan-dim); }
.q-opt.sel { border-color: var(--cyan); color: var(--text); }
.q-opt.correct { border-color: var(--green); background: rgba(52,211,153,0.08); color: var(--text); }
.q-opt.wrong { border-color: var(--red); background: rgba(248,113,113,0.08); color: var(--text); }
.q-opt .opt-key { font-family: var(--mono); font-size: 0.78rem; color: var(--cyan); flex-shrink: 0; }
.q-num-input { font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--text); border-radius: 6px; padding: 8px 10px; width: 140px; font-size: 0.95rem; }
.q-explain { font-size: 0.85rem; color: var(--text-dim); margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--cyan-dim); background: var(--panel-2); border-radius: 0 6px 6px 0; display: none; }
.q-explain.show { display: block; }
.quiz-result { text-align: center; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--panel); margin-top: 18px; }
.quiz-result .qr-score { font-family: var(--mono); font-size: 2.4rem; font-weight: 600; }
.quiz-result.pass .qr-score { color: var(--green); }
.quiz-result.fail .qr-score { color: var(--amber); }

/* ---- Widgets (interactive tools) ---- */
.widget { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px; margin: 22px 0; }
.widget-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.widget-head .wh-icon { color: var(--cyan); font-size: 1.1rem; }
.widget-head .wh-title { font-weight: 600; font-size: 0.95rem; }
.widget-head .wh-tag { margin-left: auto; font-family: var(--mono); font-size: 0.64rem; color: var(--amber); border: 1px solid var(--amber-dim); padding: 1px 6px; border-radius: 4px; text-transform: uppercase; }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 0.76rem; color: var(--text-faint); font-family: var(--mono); }
.field input, .field select { font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--text); border-radius: 6px; padding: 9px 11px; font-size: 0.92rem; min-width: 120px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-glow); }
.readout { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 12px; font-family: var(--mono); }
.readout .ro-line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.readout .ro-line .ro-k { color: var(--text-dim); font-size: 0.84rem; }
.readout .ro-line .ro-v { color: var(--cyan); font-weight: 600; }
.readout .ro-line.big .ro-v { color: var(--amber); font-size: 1.15rem; }
.readout .verdict { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.verdict.ok { color: var(--green); }
.verdict.bad { color: var(--red); }

/* skid explorer */
.skid-wrap { position: relative; }
.skid-svg { width: 100%; height: auto; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.skid-svg .hot { cursor: pointer; transition: 0.15s; }
.skid-svg .hot:hover [data-fill], .skid-svg .hot.active [data-fill] { fill: var(--cyan); }
.skid-svg .hot:hover [data-stroke], .skid-svg .hot.active [data-stroke] { stroke: var(--cyan); }
.skid-info { margin-top: 12px; min-height: 60px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.skid-info .si-title { color: var(--cyan); font-weight: 600; margin-bottom: 4px; }
.skid-info .si-body { font-size: 0.88rem; color: var(--text-dim); }
.skid-info .si-hint { color: var(--text-faint); font-style: italic; }

/* modbus decoder */
.mb-frame { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.mb-byte { font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 10px; text-align: center; cursor: pointer; transition: 0.14s; min-width: 46px; }
.mb-byte:hover, .mb-byte.active { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-glow); }
.mb-byte .b-hex { font-size: 0.95rem; font-weight: 600; }
.mb-byte .b-lbl { font-size: 0.58rem; color: var(--text-faint); margin-top: 2px; }
.mb-explain { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.86rem; color: var(--text-dim); min-height: 44px; }

/* selector tool */
.sel-result { margin-top: 12px; display: grid; gap: 8px; }
.sel-opt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel-2); }
.sel-opt .so-score { font-family: var(--mono); font-weight: 600; width: 46px; text-align: center; border-radius: 5px; padding: 3px 0; }
.sel-opt.best { border-color: var(--green); }
.sel-opt.best .so-score { background: rgba(52,211,153,0.15); color: var(--green); }
.sel-opt .so-score.mid { color: var(--amber); }
.sel-opt .so-score.low { color: var(--text-faint); }
.sel-opt .so-name { font-weight: 600; color: var(--text); }
.sel-opt .so-why { font-size: 0.8rem; color: var(--text-faint); }

.pill { display: inline-block; font-family: var(--mono); font-size: 0.7rem; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--text-dim); margin: 2px 4px 2px 0; }

/* hero / overview */
.hero { background: linear-gradient(135deg, var(--panel), var(--bg)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 30px clamp(20px,4vw,40px); margin-bottom: 26px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; opacity: 0.25; mask-image: radial-gradient(circle at 90% 10%, black, transparent 70%); pointer-events: none; }
.hero h1 { position: relative; }
.hero .hero-sub { color: var(--text-dim); max-width: 60ch; position: relative; }
.stat-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; position: relative; }
.stat .s-val { font-family: var(--mono); font-size: 1.5rem; color: var(--cyan); font-weight: 600; }
.stat .s-lbl { font-size: 0.76rem; color: var(--text-faint); }

.tag-bilingual { font-family: var(--mono); font-size: 0.74rem; color: var(--amber); }

/* mobile */
.scrim { display: none; }
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .sidebar { position: fixed; left: 0; top: var(--topbar-h); transform: translateX(-100%); transition: transform 0.25s ease; z-index: 40; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .scrim.show { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(0,0,0,0.5); z-index: 35; }
  .topbar-progress { min-width: 110px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===========================================================================
   Glossary terms, clickable formulas, and the viewport-clamped popup.
   =========================================================================== */
.gloss {
  border-bottom: 1px dotted var(--cyan-dim);
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.gloss:hover, .gloss:focus-visible { color: var(--cyan); border-bottom-color: var(--cyan); outline: none; }
.gloss-formula {
  cursor: pointer;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  -webkit-tap-highlight-color: transparent;
}
.gloss-formula:hover, .gloss-formula:focus-visible { box-shadow: inset 0 0 0 1px var(--amber); outline: none; }
.gloss-formula::after { content: "\00A0\24D8"; font-size: 0.72em; color: var(--amber); opacity: 0.75; }

#glossPop {
  position: fixed;
  z-index: 200;
  max-width: 340px;
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-elev, 0 12px 32px rgba(0,0,0,0.5)), 0 0 0 1px rgba(0,0,0,0.35);
  padding: 13px 15px 14px;
  display: none;
}
#glossPop.show { display: block; animation: gp-in 0.13s ease; }
@keyframes gp-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
#glossPop .gp-title { font-weight: 600; color: var(--cyan); font-size: 0.92rem; margin-bottom: 5px; font-family: var(--sans); }
#glossPop .gp-title.formula { font-family: var(--mono); color: var(--amber); font-size: 0.86rem; }
#glossPop .gp-def { font-size: 0.86rem; color: var(--text-dim); line-height: 1.5; }
#glossPop .gp-close { position: absolute; top: 6px; right: 8px; background: none; border: none; color: var(--text-faint); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 4px; }
#glossPop .gp-close:hover { color: var(--text); }

/* ===========================================================================
   Module 11/12 widgets — architecture stack + operating-mode chips.
   =========================================================================== */
.stack { display: flex; flex-direction: column; gap: 6px; }
.stack-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--panel-2);
  color: var(--text); cursor: pointer; font-family: var(--sans); transition: 0.14s;
}
.stack-row:hover, .stack-row.active { border-color: var(--cyan); color: var(--cyan); }
.stack-row .sr-lvl { font-family: var(--mono); font-size: 0.74rem; color: var(--cyan); background: var(--panel-3); border-radius: 5px; padding: 2px 7px; min-width: 44px; text-align: center; flex-shrink: 0; }
.stack-row .sr-name { font-size: 0.9rem; font-weight: 500; }
.mode-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-chip {
  padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line-strong);
  background: var(--panel-2); color: var(--text-dim); cursor: pointer;
  font-family: var(--sans); font-size: 0.84rem; transition: 0.14s;
}
.mode-chip:hover, .mode-chip.active { border-color: var(--cyan); color: var(--cyan); }

/* language toggle */
.lang-toggle {
  flex-shrink: 0; font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  color: var(--cyan); background: var(--panel-2); border: 1px solid var(--line-strong);
  border-radius: 7px; padding: 6px 10px; cursor: pointer; min-width: 40px; transition: 0.14s;
  -webkit-tap-highlight-color: transparent;
}
.lang-toggle:hover { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-glow); }

/* topbar fits at phone width once the language toggle is added: drop the
   progress bar track (keep the % label), tighten gaps. Prevents overlap. */
@media (max-width: 575.98px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .topbar .tp-track { display: none; }
  .topbar-progress { min-width: auto; gap: 6px; }
  .brand-text { font-size: 0.86rem; }
  .lang-toggle { padding: 6px 9px; min-width: 38px; }
}

/* ===========================================================================
   Suite landing (course cards) + course-scoped sidebar nav (multi-course).
   =========================================================================== */
.ov-card .oc-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); margin-top: 8px; }
.crumb-link { display: inline-block; font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim); letter-spacing: 0.04em; margin-bottom: 14px; }
.crumb-link:hover { color: var(--cyan); text-decoration: none; }
.module-nav .nav-back { display: block; padding: 9px 12px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.module-nav .nav-back:hover { color: var(--cyan); text-decoration: none; }
.nav-course-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 12px; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.nav-course-head .nch-num { font-family: var(--mono); font-size: 0.72rem; color: var(--cyan); background: var(--panel-3); border-radius: 5px; padding: 2px 7px; }
.nav-course { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--text-dim); }
.nav-course:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav-course .nc-num { font-family: var(--mono); font-size: 0.72rem; color: var(--cyan); background: var(--panel-3); border-radius: 5px; padding: 2px 7px; min-width: 34px; text-align: center; }
.nav-course .nc-title { flex: 1; font-size: 0.86rem; font-weight: 500; }
.nav-course .nc-pct { font-family: var(--mono); font-size: 0.68rem; color: var(--text-faint); }
