/* ============================================================
   学习台 · study desk
   offline study console for the discord trading archive
   ============================================================ */

:root {
  --bg:        #090b0d;
  --bg-1:      #0e1216;
  --bg-2:      #131a20;
  --bg-3:      #1a232b;
  --line:      #222c35;
  --line-2:    #2e3a45;
  --txt:       #e3e8ee;
  --txt-dim:   #8d99a6;
  --txt-faint: #5b6773;
  --amber:     #e6a63f;
  --amber-lo:  rgba(230,166,63,.12);
  --amber-mid: rgba(230,166,63,.28);
  --green:     #4fbf9d;
  --green-lo:  rgba(79,191,157,.13);
  --red:       #e0665f;
  --red-lo:    rgba(224,102,95,.13);
  --blue:      #6f9fd8;
  --blue-lo:   rgba(111,159,216,.13);
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", ui-monospace, monospace;
  --sans: "Segoe UI", -apple-system, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --rail: 248px;
  --r: 3px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber-mid); color: #fff; }

/* ---------- scrollbars ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232d37; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #31404d; }

/* ============================================================ rail */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail);
  background: linear-gradient(180deg, #0c1116, #090c0f 60%);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  z-index: 60;
}

.brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 8px;
}
.brand-title {
  font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25;
}
.brand-sub {
  margin-top: 6px; font-size: 11.5px; color: var(--txt-faint);
  font-family: var(--mono); letter-spacing: .02em;
}

/* overall ring */
.ringbox { padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.ringrow { display: flex; align-items: center; gap: 14px; }
.ring { width: 68px; height: 68px; flex: 0 0 68px; }
.ring-num {
  font-family: var(--mono); font-size: 18px; font-weight: 600; fill: var(--txt);
  letter-spacing: -.02em;
}
.ring-lbl { font-family: var(--mono); font-size: 6.5px; fill: var(--txt-faint); letter-spacing: .18em; }
.ringmeta { flex: 1; min-width: 0; }
.ringmeta .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--txt-faint); text-transform: uppercase; }
.ringmeta .v { font-family: var(--mono); font-size: 12px; color: var(--txt-dim); margin-top: 2px; }
.ringmeta .v b { color: var(--txt); font-weight: 600; }

nav { padding: 10px 8px; flex: 1; overflow-y: auto; }
.nav-i {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin: 1px 0;
  border-radius: var(--r); cursor: pointer;
  color: var(--txt-dim); font-size: 13.5px;
  border-left: 2px solid transparent;
  transition: background .12s, color .12s;
  user-select: none;
}
.nav-i:hover { background: var(--bg-2); color: var(--txt); }
.nav-i.on {
  background: var(--amber-lo); color: var(--amber);
  border-left-color: var(--amber); font-weight: 600;
}
.nav-i .ico {
  font-family: var(--mono); font-size: 10px; width: 18px;
  color: var(--txt-faint); letter-spacing: -.04em;
}
.nav-i.on .ico { color: var(--amber); }
.nav-i .badge {
  margin-left: auto; font-family: var(--mono); font-size: 9.5px;
  color: var(--txt-faint); background: var(--bg-3);
  padding: 1px 5px; border-radius: 2px;
}
.nav-sep {
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: #3f4a55;
  padding: 14px 10px 5px;
}

.railfoot {
  padding: 12px 18px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 9.5px; color: #46525e;
  letter-spacing: .05em; line-height: 1.7;
}
.railfoot a { color: var(--txt-faint); text-decoration: none; }
.railfoot a:hover { color: var(--amber); }

/* ============================================================ main */
main {
  margin-left: var(--rail);
  min-height: 100vh;
}
.view { display: none; padding: 0 0 96px; }
.view.on { display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

/* page header */
.phead { padding: 44px 0 22px; }
.eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 12px;
}
h1.ph {
  font-size: 34px; line-height: 1.14; letter-spacing: -.026em;
  font-weight: 660; margin: 0 0 12px;
}
p.pl { color: var(--txt-dim); font-size: 15px; max-width: 70ch; margin: 0; }
p.pl b { color: var(--txt); font-weight: 600; }

/* ============================================================ hero */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(1100px 420px at 78% -30%, rgba(230,166,63,.10), transparent 62%),
    linear-gradient(180deg, #0d1217, #0a0e12);
  border-radius: var(--r);
  padding: 34px 34px 30px;
  margin-bottom: 26px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 72%);
}
.hero h2 {
  font-size: 26px; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 650;
  position: relative;
}
.hero p { position: relative; color: var(--txt-dim); max-width: 62ch; margin: 0 0 18px; }

.stats { display: flex; gap: 0; flex-wrap: wrap; position: relative; border-top: 1px solid var(--line); padding-top: 18px; }
.stat { padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; margin: 0; padding-right: 0; }
.stat .n {
  font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--txt);
  letter-spacing: -.02em; line-height: 1.1;
}
.stat .n small { font-size: 12px; color: var(--txt-faint); font-weight: 400; margin-left: 3px; }
.stat .l {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt-faint); margin-top: 5px;
}

/* ============================================================ cards */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 1100px) { .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px)  { .g2, .g3 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: var(--r);
  padding: 18px 20px;
}
.card.hov { cursor: pointer; transition: border-color .14s, background .14s, transform .14s; }
.card.hov:hover { border-color: var(--line-2); background: var(--bg-2); }
.card h3 {
  font-size: 15px; margin: 0 0 8px; font-weight: 620; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 8px;
}
.card p { color: var(--txt-dim); font-size: 13.5px; margin: 0; }
.card .cap {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--txt-faint); margin-bottom: 8px;
}

/* section label */
.slabel {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--txt-faint);
  padding: 30px 0 12px; display: flex; align-items: center; gap: 12px;
}
.slabel::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* rule callout */
.rule {
  border-left: 2px solid var(--amber);
  background: linear-gradient(90deg, var(--amber-lo), transparent 70%);
  padding: 16px 20px; border-radius: 0 var(--r) var(--r) 0;
  margin: 20px 0;
}
.rule .t {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 7px;
}
.rule p { margin: 0; font-size: 14px; color: var(--txt); }
.rule p b { color: #fff; }

/* ============================================================ roadmap */
.phase {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-1); margin-bottom: 14px;
  overflow: hidden;
}
.phase.done { border-color: rgba(79,191,157,.32); }
.ph-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 18px; cursor: pointer; user-select: none;
  transition: background .12s;
}
.ph-head:hover { background: var(--bg-2); }
.ph-num {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--txt-faint); padding-top: 3px; width: 26px; flex: 0 0 26px;
}
.phase.done .ph-num { color: var(--green); }
.ph-main { flex: 1; min-width: 0; }
.ph-name { font-size: 16.5px; font-weight: 620; letter-spacing: -.012em; }
.ph-goal { color: var(--txt-dim); font-size: 13px; margin-top: 3px; }
.ph-side {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  font-family: var(--mono); font-size: 10px; color: var(--txt-faint);
}
.chip {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em;
  padding: 2px 7px; border-radius: 2px; border: 1px solid var(--line-2);
  color: var(--txt-dim); white-space: nowrap;
}
.chip.a { border-color: rgba(230,166,63,.35); color: var(--amber); background: var(--amber-lo); }
.chip.b { border-color: rgba(111,159,216,.35); color: var(--blue); background: var(--blue-lo); }
.chip.g { border-color: rgba(79,191,157,.35); color: var(--green); background: var(--green-lo); }
.caret { color: var(--txt-faint); font-size: 11px; transition: transform .18s; }
.phase.open .caret { transform: rotate(90deg); }

.ph-body { display: none; padding: 0 18px 20px 60px; border-top: 1px solid var(--line); }
.phase.open .ph-body { display: block; }

.blk { margin-top: 16px; }
.blk-t {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--txt-faint); margin-bottom: 9px;
}

.src {
  display: flex; align-items: baseline; gap: 9px; padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.032);
  font-size: 13.5px;
}
.src:last-child { border-bottom: 0; }
.src .dot { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); margin-top: 7px; }
.src.must .dot { background: var(--amber); }
.src a { color: var(--txt); text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.22); }
.src a:hover { color: var(--amber); border-bottom: 1px solid var(--amber); }
.src .opt { color: var(--txt-faint); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; margin-left: auto; }

.tasklist { list-style: none; padding: 0; margin: 0; }
.tasklist li {
  position: relative; padding: 6px 0 6px 26px; font-size: 13.5px;
  color: var(--txt-dim); cursor: pointer; user-select: none;
}
.tasklist li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 14px; border: 1px solid var(--line-2);
  border-radius: 2px; background: var(--bg-2);
}
.tasklist li.chk { color: var(--txt-faint); text-decoration: line-through; }
.tasklist li.chk::before {
  background: var(--green); border-color: var(--green);
}
.tasklist li.chk::after {
  content: ""; position: absolute; left: 4.5px; top: 12px;
  width: 5px; height: 8px; border: solid #08120f;
  border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.tasklist li:hover::before { border-color: var(--amber); }

.gates { counter-reset: g; }
.gate {
  border-left: 2px solid var(--red); padding: 9px 0 9px 15px;
  margin-bottom: 9px; background: linear-gradient(90deg, var(--red-lo), transparent 60%);
  border-radius: 0 2px 2px 0;
}
.gate .q { font-size: 13.5px; color: var(--txt); }
.gate .q::before {
  counter-increment: g; content: "Q" counter(g) " ";
  font-family: var(--mono); font-size: 9.5px; color: var(--red);
  letter-spacing: .1em; margin-right: 6px;
}

.artifact {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-2); border: 1px dashed var(--line-2);
  border-radius: var(--r); padding: 11px 14px; font-size: 13px; color: var(--txt-dim);
  margin-top: 6px;
}
.artifact b { color: var(--txt); font-weight: 600; }

/* ============================================================ gantt */
.gantt { border: 1px solid var(--line); background: var(--bg-1); border-radius: var(--r); padding: 20px 22px 16px; }
.gantt-scroll { overflow-x: auto; }
.gw { display: grid; grid-template-columns: 190px repeat(16, minmax(26px, 1fr)); align-items: center; min-width: 780px; }
.gw .gh {
  font-family: var(--mono); font-size: 8.5px; color: var(--txt-faint);
  text-align: center; letter-spacing: .04em; padding-bottom: 8px;
}
.gw .gh.t { text-align: left; letter-spacing: .16em; text-transform: uppercase; font-size: 9px; }
.glabel { font-size: 12px; color: var(--txt-dim); padding: 5px 12px 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glabel b { color: var(--txt); font-weight: 600; }
.gcell { height: 26px; border-left: 1px solid rgba(255,255,255,.035); position: relative; }
.gbar {
  height: 13px; border-radius: 2px; margin: 0 2px;
  background: linear-gradient(90deg, var(--amber), #b9822c);
  opacity: .88; cursor: pointer;
}
.gbar.b { background: linear-gradient(90deg, var(--blue), #4a76a8); }
.gbar.done { background: linear-gradient(90deg, var(--green), #2f8a71); }
.gbar:hover { opacity: 1; }

/* ============================================================ skills */
.skill {
  display: grid; grid-template-columns: 200px 1fr 130px;
  gap: 18px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.skill:last-child { border-bottom: 0; }
.sk-name { font-size: 14px; font-weight: 600; }
.sk-en { font-family: var(--mono); font-size: 9.5px; color: var(--txt-faint); letter-spacing: .04em; margin-top: 2px; }
.pips { display: flex; gap: 5px; }
.pip {
  flex: 1; height: 22px; border-radius: 2px;
  background: var(--bg-3); border: 1px solid var(--line);
  cursor: pointer; transition: background .1s, border-color .1s;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9.5px; color: #586572;
}
.pip:hover { border-color: var(--amber-mid); }
.pip.f { background: var(--amber); border-color: var(--amber); color: #241a06; font-weight: 700; }
.pip.tgt { box-shadow: inset 0 0 0 1px rgba(79,191,157,.55); }
.sk-note { font-family: var(--mono); font-size: 10px; color: var(--txt-faint); text-align: right; }
.sk-note b { color: var(--txt-dim); }
.sk-why { grid-column: 1 / -1; font-size: 12.5px; color: var(--txt-faint); margin-top: -6px; padding-bottom: 2px; }

/* ============================================================ library */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.search {
  flex: 1; min-width: 240px; position: relative;
}
.search input {
  width: 100%; background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--txt);
  padding: 10px 14px 10px 36px; font-size: 14px; font-family: var(--sans);
  outline: none; transition: border-color .13s;
}
.search input:focus { border-color: var(--amber-mid); }
.search::before {
  content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-52%);
  color: var(--txt-faint); font-size: 16px; pointer-events: none;
}
.seg { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg button {
  background: var(--bg-1); border: 0; color: var(--txt-dim);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em;
  padding: 9px 13px; cursor: pointer; border-right: 1px solid var(--line);
}
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--bg-2); color: var(--txt); }
.seg button.on { background: var(--amber-lo); color: var(--amber); }

.doclist { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); background: var(--bg-1);
  border-radius: var(--r); padding: 13px 16px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.row:hover { border-color: var(--line-2); background: var(--bg-2); }
.row.read { opacity: .56; }
.row.read:hover { opacity: .9; }
.row-idx {
  font-family: var(--mono); font-size: 10px; color: var(--txt-faint);
  flex: 0 0 34px; padding-top: 3px; letter-spacing: .04em;
}
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 14.5px; font-weight: 600; letter-spacing: -.008em; }
.row-sub {
  font-size: 12.5px; color: var(--txt-faint); margin-top: 4px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.row-sub .d { color: var(--txt-dim); }
.row-side { flex: 0 0 auto; text-align: right; font-family: var(--mono); font-size: 9.5px; color: var(--txt-faint); }
.mk {
  display: inline-block; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .1em; padding: 1px 5px; border-radius: 2px;
  background: var(--bg-3); color: var(--txt-dim); text-transform: uppercase;
}
.mk.tr { background: var(--blue-lo); color: var(--blue); }
.mk.cred { background: var(--amber-lo); color: var(--amber); }
.mk.road { background: var(--green-lo); color: var(--green); }
.mk.plan { background: rgba(224,102,95,.13); color: var(--red); }

/* ============================================================ glossary */
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.term {
  border: 1px solid var(--line); background: var(--bg-1);
  border-radius: var(--r); padding: 12px 14px;
  transition: border-color .12s;
}
.term:hover { border-color: var(--line-2); }
.term .h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.term .en { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--amber); letter-spacing: .01em; }
.term .cn { font-size: 12.5px; color: var(--txt); }
.term .cat {
  margin-left: auto; font-family: var(--mono); font-size: 8.5px;
  color: var(--txt-faint); letter-spacing: .08em; text-transform: uppercase;
}
.term .d { font-size: 12.5px; color: var(--txt-dim); margin-top: 7px; line-height: 1.55; }

/* glossary category chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 20px; }
.chips button {
  background: var(--bg-1); border: 1px solid var(--line); color: var(--txt-dim);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em;
  padding: 5px 10px; border-radius: 2px; cursor: pointer; transition: all .12s;
}
.chips button:hover { border-color: var(--line-2); color: var(--txt); }
.chips button.on {
  background: var(--amber-lo); color: var(--amber);
  border-color: var(--amber-mid); font-weight: 600;
}
.chips button b { color: var(--txt-faint); font-weight: 400; margin-left: 5px; }
.chips button.on b { color: rgba(230,166,63,.65); }

/* ============================================================ reader */
.reader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: none; flex-direction: column;
}
.reader.on { display: flex; }
.r-head {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
  background: var(--bg-1); flex: 0 0 auto;
}
.r-title { font-size: 14.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-meta { font-family: var(--mono); font-size: 9.5px; color: var(--txt-faint); letter-spacing: .06em; white-space: nowrap; }
.r-sp { flex: 1; }
.btn {
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--txt-dim);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  padding: 7px 12px; border-radius: var(--r); cursor: pointer;
  transition: all .12s; white-space: nowrap;
}
.btn:hover { background: var(--bg-3); color: var(--txt); border-color: #3b4a57; }
.btn.on { background: var(--green-lo); color: var(--green); border-color: rgba(79,191,157,.4); }
.btn.pri { background: var(--amber-lo); color: var(--amber); border-color: var(--amber-mid); }
.btn.pri:hover { background: rgba(230,166,63,.2); }
.r-body { flex: 1; display: flex; min-height: 0; }
.r-outline {
  width: 268px; flex: 0 0 268px; border-right: 1px solid var(--line);
  overflow-y: auto; padding: 16px 10px; background: #0b0f13;
}
.r-outline .ol {
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--txt-faint); padding: 0 8px 10px;
}
.oitem {
  display: block; font-size: 12.5px; color: var(--txt-dim);
  padding: 5px 8px; border-radius: 2px; cursor: pointer;
  border-left: 2px solid transparent; line-height: 1.4;
}
.oitem:hover { background: var(--bg-2); color: var(--txt); }
.oitem.l3 { padding-left: 20px; font-size: 12px; color: var(--txt-faint); }
.r-frame { flex: 1; border: 0; background: #0a0d10; width: 100%; }

/* ============================================================ tutor */
.tq {
  border: 1px solid var(--line); background: var(--bg-1);
  border-radius: var(--r); margin-bottom: 10px; overflow: hidden;
}
.tq-h { display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start; background: var(--bg-2); }
.tq-n {
  font-family: var(--mono); font-size: 9.5px; color: var(--red);
  letter-spacing: .1em; flex: 0 0 auto; padding-top: 2px;
}
.tq-q { font-size: 13.5px; flex: 1; }
.tq-ph { font-family: var(--mono); font-size: 8.5px; color: var(--txt-faint); letter-spacing: .1em; }
.tq textarea {
  width: 100%; min-height: 58px; resize: vertical;
  background: #0a0e12; border: 0; border-top: 1px solid var(--line);
  color: var(--txt); font-family: var(--sans); font-size: 13px;
  padding: 11px 16px; outline: none; line-height: 1.6;
}
.tq textarea:focus { background: #0c1116; }
.tq textarea::placeholder { color: #3d4854; }

/* ============================================================ misc */
.empty { padding: 50px 20px; text-align: center; color: var(--txt-faint); font-size: 13.5px; }
.bar { height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--amber); border-radius: 2px; transition: width .4s; }
.bar.g > i { background: var(--green); }
.bar.b > i { background: var(--blue); }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: #182028; border: 1px solid var(--line-2); color: var(--txt);
  padding: 11px 20px; border-radius: var(--r); font-size: 13px;
  opacity: 0; pointer-events: none; transition: all .22s; z-index: 400;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

kbd {
  font-family: var(--mono); font-size: 10px; background: var(--bg-3);
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  padding: 1px 5px; border-radius: 3px; color: var(--txt-dim);
}

.mini { font-family: var(--mono); font-size: 10px; color: var(--txt-faint); letter-spacing: .05em; }
.hl { color: var(--amber); }

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { transform: translateX(-100%); }
  main { margin-left: 0; }
  .wrap { padding: 0 20px; }
  .r-outline { display: none; }
  .skill { grid-template-columns: 1fr; gap: 8px; }
}
