/* Skip Human, minimalist: black and orange, small rectangles, little text. Fonts are bundled. */
@font-face { font-family: 'Poppins'; font-weight: 400; src: url(fonts/Poppins-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 500 600; src: url(fonts/Poppins-Medium.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 700 800; src: url(fonts/Poppins-Bold.ttf) format('truetype'); font-display: swap; }
:root { --primary: #f7890a; --accent: #d85008; --bg: #070c0f; --panel: #0f171c; --panel2: #0a1115; --line: #213038; --ink: #eef2f4; --muted: #a3b2bb; --dim: #71838e; --ok: #4ade80; --bad: #f87171; --r: 6px; --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; font: 400 13px/1.45 var(--font); background: var(--bg); color: var(--ink); }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.hidden { display: none !important; }

/* ---- buttons, forms ---- */
button, .btn { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #070c0f; border: 1px solid var(--primary); border-radius: var(--r); padding: 6px 12px; font: 600 12px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
button:hover, .btn:hover { filter: brightness(1.08); }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); border-color: #34464f; }
button.ghost:hover, .btn.ghost:hover { border-color: var(--primary); }
button.danger { background: #dc2626; border-color: #dc2626; color: #fff; }
button.small, .btn.small { padding: 4px 9px; font-size: 11px; }
button:disabled { opacity: .45; cursor: default; }
button.del { color: var(--bad); border-color: #5a2424; background: transparent; } button.del:hover { border-color: var(--bad); }
label { display: block; margin: 8px 0; font-size: 11px; font-weight: 500; color: var(--muted); }
input, select, textarea { display: block; width: 100%; padding: 7px 9px; margin-top: 4px; border: 1px solid var(--line); border-radius: var(--r); font: 400 13px var(--font); color: var(--ink); background: var(--panel2); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
input[type=file] { padding: 6px; } input[type=range] { padding: 0; accent-color: var(--primary); } input[type=checkbox], input[type=radio] { display: inline; width: auto; margin: 0 7px 0 0; accent-color: var(--primary); }
textarea { min-height: 64px; resize: vertical; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .row > * { flex: 0 0 auto; } .row > .grow { flex: 1 1 140px; }
.muted { color: var(--muted); font-size: 12px; } .dim { color: var(--dim); font-size: 11px; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }

/* ---- sign-in ---- */
.login-min { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-min .box { width: 100%; max-width: 320px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.login-min img { height: 40px; width: auto; display: block; margin: 0 auto 16px; }
.login-min .demo { display: flex; gap: 6px; margin-top: 12px; } .login-min .demo button { flex: 1; }

/* ---- layout: retractable side panel + top bar ---- */
.shell { display: grid; grid-template-columns: 188px 1fr; min-height: 100vh; transition: grid-template-columns .18s ease; }
.shell.min { grid-template-columns: 52px 1fr; }
.side { background: #05090b; border-right: 1px solid var(--line); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.side .brand { height: 36px; display: flex; align-items: center; padding: 0 4px; margin-bottom: 10px; }
.side .brand img { height: 30px; width: auto; } .side .brand .mark { display: none; height: 24px; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: var(--r); color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.side a.nav:hover { background: var(--panel); color: #fff; } .side a.nav.on { background: var(--panel); color: #fff; box-shadow: inset 2px 0 0 var(--primary); }
.side a.nav svg, .side .out svg { width: 17px; height: 17px; flex: none; color: var(--primary); }
.side .me { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; font-size: 11px; white-space: nowrap; overflow: hidden; }
.side .me b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; } .side .me span { color: var(--dim); display: block; overflow: hidden; text-overflow: ellipsis; }
.side .out { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; width: 100%; background: transparent; color: var(--muted); border: 1px solid var(--line); } .side .out:hover { color: #fff; border-color: var(--primary); }
.shell.min .lbl, .shell.min .me b, .shell.min .me span { display: none; }
.shell.min .side .brand img { display: none; } .shell.min .side .brand .mark { display: block; }
.shell.min .side a.nav, .shell.min .side .out { justify-content: center; padding-left: 0; padding-right: 0; }
.col { min-width: 0; }
.scrim { display: none; }
.top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; background: rgba(7,12,15,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .top .sp { flex: 1; }
.icon-btn { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 5px; border-radius: var(--r); } .icon-btn svg { width: 17px; height: 17px; display: block; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 600; padding: 5px 9px; border: 1px solid #34464f; border-radius: var(--r); } .back:hover { border-color: var(--primary); }
.main { padding: 14px 16px 48px; max-width: 1100px; width: 100%; }
@media (max-width: 860px) {
  .shell, .shell.min { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; left: 0; top: 0; width: 200px; transform: translateX(-102%); transition: transform .18s ease; }
  .shell.open .side { transform: none; }
  .shell.min .lbl, .shell.min .me b, .shell.min .me span { display: initial; } .shell.min .side .brand img { display: block; } .shell.min .side .brand .mark { display: none; }
  .shell.min .side a.nav, .shell.min .side .out { justify-content: flex-start; padding-left: 9px; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20; display: none; } .shell.open .scrim { display: block; }
  .main { padding: 12px 12px 48px; }
}

/* ---- small rectangles ---- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.card h3 { font-size: 10.5px; margin-bottom: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.grid { display: grid; gap: 8px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } .g5 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.stack > * + * { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; min-width: 96px; } .chip span { display: block; font-size: 10px; color: var(--dim); letter-spacing: .05em; text-transform: uppercase; } .chip b { font-size: 17px; font-weight: 700; line-height: 1.2; } .chip b.ok { color: var(--ok); } .chip b.bad { color: var(--bad); }
.strip { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid #7a2222; border-radius: 8px; padding: 8px 12px; } .strip b { flex: 1; }
.bar { height: 5px; background: #1b262d; border-radius: 3px; overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 3px; background: var(--primary); }
.crow { display: grid; grid-template-columns: 1fr 90px 36px 44px; gap: 8px; align-items: center; padding: 4px 0; font-size: 12px; }
.course-card { position: relative; overflow: hidden; padding: 10px 12px; } .course-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c, var(--primary)); }
.course-card h3 { font-size: 13px; margin: 4px 0 2px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 600; } .course-card p { display: none; }
.pill { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 4px; border: 1px solid #34464f; color: var(--muted); }
.pill.live { background: #dc2626; border-color: #dc2626; color: #fff; } .pill.ok { color: var(--ok); border-color: #1e5b36; } .pill.warn { color: #fbbf24; border-color: #5e4510; } .pill.bad { color: var(--bad); border-color: #6b2323; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; margin-right: 5px; animation: pulse 1.2s infinite; } @keyframes pulse { 50% { opacity: .25; } }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 10px; overflow-x: auto; }
.tabs button { background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 7px 12px; } .tabs button.on { color: #fff; border-bottom-color: var(--primary); }
.list > .item, .item { display: flex; gap: 10px; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--line); } .list > .item:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; } .list .t, .item .t { font-weight: 600; font-size: 12.5px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; } th, td { text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--line); } th { color: var(--dim); font-weight: 600; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
tr.click { cursor: pointer; } tr.click:hover { background: #131d23; }
svg text { font-family: var(--font); }
video, canvas.stage { width: 100%; background: #000; border-radius: 6px; display: block; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 14px; z-index: 40; }
.modal .box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; width: 100%; max-width: 780px; max-height: 92vh; overflow: auto; }
pre.doc { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; white-space: pre-wrap; font: 400 12px/1.55 var(--font); color: var(--ink); }
.q { padding: 10px 0; border-bottom: 1px solid var(--line); } .q:last-child { border-bottom: 0; } .q .opt { display: block; padding: 6px 10px; margin: 4px 0; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--ink); background: var(--panel2); } .q .opt:hover { border-color: var(--primary); } .q .opt.sel { border-color: var(--primary); background: #1a1208; } .q .opt.right { border-color: #1e5b36; background: #0f2a1a; } .q .opt.wrong { border-color: #6b2323; background: #2a1212; }
.chat { display: flex; flex-direction: column; } .chat .log { height: 220px; overflow-y: auto; font-size: 12px; padding-right: 4px; } .livegrid .chat { height: 100%; } .livegrid .chat .log { flex: 1; height: auto; min-height: 220px; } .chat .m { margin: 0 0 6px; } .chat .m b { color: var(--primary); } .chat .m b.t { color: var(--ok); }
.livegrid { display: grid; grid-template-columns: 1fr 280px; gap: 8px; } @media (max-width: 960px) { .livegrid { grid-template-columns: 1fr; } }
#toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #fff; color: #070c0f; padding: 8px 14px; border-radius: 8px; display: none; max-width: 92%; z-index: 60; font-size: 12.5px; font-weight: 500; } #toast.err { background: #b42318; color: #fff; }
