:root {
  --bg-0: #050614;
  --bg-1: #0a0b22;
  --bg-2: #11132e;
  --bg-3: #181a3e;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #e9ecff;
  --text-2: #b3b8d8;
  --text-3: #7e83a8;
  --primary: #3ee0c8;
  --primary-2: #11b5a3;
  --accent: #ff4fb3;
  --accent-2: #c63aef;
  --indigo: #6b73ff;
  --warn: #ffb547;
  --danger: #ff5e7d;
  --good: #4cf2c5;
  --glass-bg: rgba(16,18,46,.55);
  --glass-bg-2: rgba(20,22,54,.7);
  --shadow-md: 0 8px 28px -10px rgba(0,0,0,.55);
  --shadow-lg: 0 24px 60px -22px rgba(0,0,0,.7);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  font-family: 'Heebo', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }

/* ── Ambient backdrop ─────────────────────────────────── */
.ambient {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 600px at 110% -10%, rgba(199,58,239,.16), transparent 65%),
    radial-gradient(1000px 700px at -10% 110%, rgba(62,224,200,.12), transparent 70%),
    linear-gradient(180deg, #060724 0%, #050614 70%);
  overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  opacity: .42;
  animation: drift 24s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 520px; top: -120px; right: -100px; background: radial-gradient(circle, rgba(255,79,179,.7), transparent 60%); }
.orb-2 { width: 480px; height: 480px; bottom: -120px; left: -100px; background: radial-gradient(circle, rgba(62,224,200,.7), transparent 60%); animation-delay: -8s; }
.orb-3 { width: 380px; height: 380px; top: 38%; left: 38%; background: radial-gradient(circle, rgba(107,115,255,.6), transparent 60%); animation-delay: -16s; opacity: .25; }
@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,-30px) scale(1.06); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
}
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.45'/></svg>");
}

/* ── Glass surface ────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

/* ── Topbar ───────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,28,.62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand img { border-radius: 10px; filter: drop-shadow(0 6px 16px rgba(62,224,200,.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: 'Frank Ruhl Libre', serif; font-size: 22px; letter-spacing: -.01em; font-weight: 800; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--text-3); letter-spacing: .04em; }
.top-actions { display: flex; align-items: center; gap: 22px; }
.link { color: var(--text-2); font-size: 14px; }
.link i { margin-inline-end: 4px; opacity: .8; }
.link:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .22s var(--spring), background .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.07); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--indigo) 100%);
  color: #0a0b22;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 24px -10px rgba(62,224,200,.6);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #5ce8d0 0%, #8088ff 100%);
  box-shadow: 0 12px 32px -10px rgba(62,224,200,.7);
}
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: rgba(255,94,125,.4); }
.btn-danger:hover { background: rgba(255,94,125,.1); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.btn-xl { padding: 14px 24px; font-size: 16px; border-radius: 14px; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 90px 36px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('hero_bg.png') no-repeat center / cover;
  opacity: .55;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 70%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px;
  align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(62,224,200,.32);
  background: rgba(62,224,200,.08);
  border-radius: 999px;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}
.kicker i { font-size: 11px; }
.hero h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 18px 0 12px;
  font-weight: 800;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.grad {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 18px; color: var(--text-2);
  max-width: 580px; line-height: 1.6;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.stats {
  list-style: none; padding: 0;
  display: flex; gap: 32px; margin: 40px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.stats li { display: flex; flex-direction: column; }
.stats strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 26px;
  color: var(--text);
  font-weight: 600;
  line-height: 1;
}
.stats span {
  font-size: 12px; color: var(--text-3);
  margin-top: 6px;
  letter-spacing: .02em;
}

.hero-art { position: relative; height: 360px; }
.card-stack {
  position: relative; width: 100%; height: 100%;
  transform: rotate(-3deg);
}
.req-card {
  position: absolute;
  width: 320px;
  padding: 14px 18px;
  background: var(--glass-bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  animation: float 6s var(--ease) infinite;
}
.req-1 { top: 30px; right: 30px; }
.req-2 { top: 130px; right: 60px; animation-delay: -2s; }
.req-3 { top: 230px; right: 90px; animation-delay: -4s; }
.req-card code {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text-2);
  font-size: 13px;
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.req-card .time { font-size: 11px; color: var(--text-3); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.method {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: .05em;
}
.method.post { background: rgba(62,224,200,.18); color: var(--primary); }
.method.get { background: rgba(107,115,255,.2); color: #9ea4ff; }
.method.put { background: rgba(255,181,71,.2); color: var(--warn); }
.method.patch { background: rgba(198,58,239,.2); color: #d57bff; }
.method.delete { background: rgba(255,94,125,.2); color: var(--danger); }
.method.head, .method.options { background: rgba(255,255,255,.1); color: var(--text-2); }

.pulse-dot {
  position: absolute;
  top: 50%; right: 0;
  width: 14px; height: 14px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(62,224,200,.7);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62,224,200,.7); }
  70% { box-shadow: 0 0 0 30px rgba(62,224,200,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,224,200,0); }
}

/* ── Workspace (sidebar + inspector) ──────────────────── */
.workspace { padding: 40px 36px; }
.ws-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 320px 1fr; gap: 24px;
}

.sidebar {
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 480px;
}
.sb-head {
  display: flex; justify-content: space-between; align-items: center;
}
.sb-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.ep-list { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 540px; }
.ep-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.ep-item:hover { background: rgba(255,255,255,.05); border-color: var(--line-2); transform: translateX(-2px); }
.ep-item.active {
  background: linear-gradient(135deg, rgba(62,224,200,.12), rgba(107,115,255,.1));
  border-color: rgba(62,224,200,.4);
  box-shadow: 0 0 0 1px rgba(62,224,200,.2) inset;
}
.ep-item .name { font-weight: 600; font-size: 14px; color: var(--text); }
.ep-item .meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--text-3);
  display: flex; gap: 8px; align-items: center;
}
.ep-item .badge {
  background: rgba(62,224,200,.18); color: var(--primary);
  padding: 2px 6px; border-radius: 6px; font-weight: 600;
}
.ep-item .dot {
  position: absolute; top: 14px; left: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
}
.ep-item.inactive .dot { background: var(--text-3); }

.ep-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px;
  color: var(--text-3);
  gap: 12px; text-align: center;
}
.ep-empty.small { padding: 28px 16px; }
.empty-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(62,224,200,.18), rgba(107,115,255,.14));
  color: var(--primary);
  font-size: 22px;
}
.ep-empty .hint { font-size: 12px; color: var(--text-3); }

/* ── Inspector ────────────────────────────────────────── */
.inspector { padding: 28px; min-height: 540px; }
.inspector-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%;
  text-align: center;
  padding: 40px;
}
.big-icon {
  width: 96px; height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(62,224,200,.2), rgba(198,58,239,.18));
  display: grid; place-items: center;
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 20px;
  box-shadow: 0 12px 40px -16px rgba(62,224,200,.5);
  animation: floatY 5s var(--ease) infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.inspector-empty h2 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 26px; font-weight: 700;
  margin: 0 0 10px;
}
.inspector-empty p { color: var(--text-2); max-width: 440px; line-height: 1.6; }

.ins-head {
  display: flex; justify-content: space-between; align-items: start;
  gap: 16px; margin-bottom: 20px;
}
.ins-title h2 {
  margin: 0 0 4px;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 28px; font-weight: 700;
  letter-spacing: -.01em;
}
.ins-desc { margin: 0; color: var(--text-3); font-size: 13px; }
.ins-actions { display: flex; gap: 8px; flex-shrink: 0; }

.url-box {
  background: rgba(0,0,0,.32);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.url-box label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.url-box label i { color: var(--text-3); font-size: 10px; }
.url-row { display: flex; gap: 8px; align-items: center; }
.url-row code {
  flex: 1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--primary);
  background: rgba(62,224,200,.07);
  padding: 8px 10px;
  border-radius: 8px;
  word-break: break-all;
  border: 1px dashed rgba(62,224,200,.3);
}
.url-hint { font-size: 11px; color: var(--text-3); margin-top: 8px; font-family: 'IBM Plex Mono', monospace; }

.ins-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.meta-pill {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.meta-pill i { color: var(--primary); }

.req-stream h3 {
  font-size: 16px; font-weight: 600;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(76,242,197,.6);
  animation: pulse 2s infinite;
}
.req-stream-list { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; padding-inline-end: 6px; }
.req-row {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  transition: all .18s var(--ease);
  animation: rowIn .35s var(--spring);
}
@keyframes rowIn { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }
.req-row:hover { background: rgba(255,255,255,.06); border-color: var(--line-2); }
.req-row .path-c { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-row .ct { font-size: 11px; color: var(--text-3); font-family: 'IBM Plex Mono', monospace; }
.req-row .size { font-size: 11px; color: var(--text-3); font-family: 'IBM Plex Mono', monospace; }
.req-row .when { font-size: 11px; color: var(--text-3); }
.fwd-icon { font-size: 10px; }
.fwd-icon.ok { color: var(--good); }
.fwd-icon.failed { color: var(--danger); }
.fwd-icon.skipped { color: var(--text-3); }

/* ── How section ─────────────────────────────────────── */
.how { padding: 80px 36px; max-width: 1280px; margin: 0 auto; }
.section-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
  margin: 0 0 50px;
}
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 50px;
}
.how-card {
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  position: relative;
  backdrop-filter: blur(16px);
  transition: transform .3s var(--spring), border-color .3s;
}
.how-card:hover { transform: translateY(-4px); border-color: rgba(62,224,200,.3); }
.how-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-0);
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.how-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.how-card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.how-figure {
  margin: 0; border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}
.how-figure img { display: block; width: 100%; height: auto; }

/* ── Footer ──────────────────────────────────────────── */
.foot {
  text-align: center;
  padding: 30px 24px 60px;
  color: var(--text-3);
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}

/* ── Modals ──────────────────────────────────────────── */
[hidden] { display: none !important; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(5,6,20,.7);
  backdrop-filter: blur(12px);
  animation: modalIn .25s var(--ease);
}
@keyframes modalIn { from { opacity:0; } to { opacity:1; } }
.modal-card {
  width: 92%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  padding: 28px;
  animation: cardIn .3s var(--spring);
}
.modal-wide .modal-card { max-width: 760px; }
@keyframes cardIn { from { opacity:0; transform: scale(.96) translateY(8px); } to { opacity:1; transform: scale(1) translateY(0); } }
.modal-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-card header h3 {
  margin: 0;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 22px;
}
.modal-card header h3 small { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-3); margin-inline-start: 8px; }
.x {
  border: 0; background: transparent;
  color: var(--text-3); cursor: pointer;
  font-size: 28px; line-height: 1;
  padding: 0 4px;
}
.x:hover { color: var(--text); }

form label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin: 14px 0 6px;
  letter-spacing: .03em;
}
form label small { color: var(--text-3); font-weight: 400; opacity: .8; }
form input[type="text"],
form input:not([type]),
form input[type="url"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,.32);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s;
}
form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(62,224,200,.16); }
.toggle-row { margin: 12px 0; }
.toggle-row label {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 13px;
  margin: 0;
}
.toggle-row input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary);
}
.adv {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.adv summary {
  cursor: pointer;
  color: var(--text-2);
  font-size: 13px;
  padding: 4px 0;
}
.adv summary:hover { color: var(--text); }
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-start;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ── Req detail ──────────────────────────────────────── */
.req-detail { display: flex; flex-direction: column; gap: 16px; }
.req-detail h4 {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: .04em; text-transform: uppercase;
}
.req-detail pre {
  background: rgba(0,0,0,.4);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--text);
  overflow-x: auto;
  max-height: 320px;
  white-space: pre-wrap;
  word-break: break-all;
}
.req-detail .kv-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  background: rgba(255,255,255,.02);
}
.req-detail .kv-row:nth-child(odd) { background: rgba(255,255,255,.04); }
.req-detail .k { color: var(--accent); }
.req-detail .v { color: var(--text-2); word-break: break-all; }

/* ── Toast ───────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 12px);
  background: var(--glass-bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .3s var(--spring);
  z-index: 200;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast.error { border-color: rgba(255,94,125,.5); }
#toast.success { border-color: rgba(62,224,200,.5); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .ws-grid { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; }
  .ep-list { max-height: 300px; }
}
@media (max-width: 720px) {
  .topbar { padding: 14px 18px; }
  .top-actions .link { display: none; }
  .hero { padding: 50px 18px 60px; }
  .workspace, .how { padding: 30px 18px; }
  .stats { flex-direction: column; gap: 14px; }
  .ins-head { flex-direction: column; }
  .ins-actions { flex-wrap: wrap; }
  .req-row { grid-template-columns: auto 1fr auto; }
  .req-row .ct, .req-row .size { display: none; }
  .brand-text em { display: none; }
}
@media (max-width: 540px) {
  .hero h1 { font-size: 38px; }
  .modal-card { padding: 20px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 32px; }
  .stats strong { font-size: 22px; }
}

/* focus-visible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}
