/* ─────────────────────────────────────────────────────────────────
 * Sentra — Documentation + Support (v2)
 * Editorial layout. Big type, less repetition, real responsive rules.
 * All tokens inherited from .dashboard.
 * ──────────────────────────────────────────────────────────────── */

.ds2 { display: grid; gap: 28px; padding-bottom: 28px; }

/* ── Generic atoms ───────────────────────────────────────────── */
.ds2-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.ds2 .dim { color: var(--d-dim); }
/* Hero atoms — aligned with the Overview screen's .ov-header so every
 * page in the dashboard opens with the same editorial "title + lede"
 * treatment. .ds2-hero-compact (used by session detail) still
 * overrides these to a smaller form. */
.ds2-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--d-dim);
}
.ds2-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--d-success);
  box-shadow: 0 0 8px var(--d-success);
  animation: livePulse 2s ease-in-out infinite;
}
.ds2-h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--d-ink);
  line-height: 1.15;
}
.ds2-lede {
  display: block;
  margin: 6px 0 0;
  color: var(--d-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 680px;
}
.ds2-lede strong { color: var(--d-ink); font-weight: 700; }

/* Common section header — just an underline with one h2 + optional link */
.ds2-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--d-line);
}
.ds2-section-head h2 {
  margin: 0;
  font-size: 1.1rem; font-weight: 700;
  color: var(--d-ink);
  letter-spacing: -0.025em;
  display: inline-flex; align-items: baseline; gap: 12px;
}
.ds2-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem; font-weight: 600;
  color: var(--d-dim);
  letter-spacing: 0.04em;
}
.ds2-more {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem; font-weight: 600;
  color: var(--d-accent);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: 0.02em;
}
.ds2-more span { transition: transform 200ms ease; }
.ds2-more:hover { color: var(--d-accent-2); }
.ds2-more:hover span { transform: translateX(3px); }

/* ─────────────────────────────────────────────────────────────────
 *  Docs hero
 * ──────────────────────────────────────────────────────────────── */
/* Hero layout — stacked editorial header that matches .ov-header on the
 * Overview screen: eyebrow → title → lede → (optional KPI strip / search). */
.ds2-hero {
  position: relative;
  padding: 6px 0 10px;
  border: none;
  border-bottom: 1px solid var(--d-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  display: block;
}
.ds2-hero::before { display: none; }
.ds2-hero > * { position: relative; }
.ds2-hero-lead {
  max-width: none;
  display: block;
}
.ds2-hero-lead .ds2-eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  padding-left: 0;
  border-left: none;
}
.ds2-hero-lead .ds2-h1 { display: block; }
.ds2-hero-lead .ds2-lede { display: block; }

.ds2-search {
  margin-top: 26px;
  display: flex; align-items: center; gap: 14px;
  height: 60px; padding: 0 20px;
  border: 1px solid var(--d-line-2);
  border-radius: 12px;
  background: rgba(5,8,15,0.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.ds2-search:focus-within {
  border-color: var(--d-accent);
  box-shadow: 0 0 0 4px rgba(118,174,232,0.10), inset 0 1px 0 rgba(255,255,255,0.025);
}
.ds2-search svg {
  width: 18px; height: 18px; stroke: var(--d-muted); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ds2-search input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  font-family: inherit;
  font-size: 0.96rem; font-weight: 500;
  color: var(--d-ink);
}
.ds2-search input::placeholder { color: rgba(196,210,235,0.46); }
.ds2-kbd {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; font-weight: 600;
  color: var(--d-muted);
  padding: 4px 10px;
  border: 1px solid var(--d-line);
  background: rgba(255,255,255,0.02);
  border-radius: 5px;
}
.ds2-sugg { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.ds2-sugg button {
  height: 26px; padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--d-line);
  background: rgba(13,20,36,0.42);
  color: var(--d-muted);
  font-family: inherit; font-size: 0.72rem; font-weight: 600;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.ds2-sugg button:hover { color: var(--d-ink); border-color: var(--d-line-active); }

/* ─────────────────────────────────────────────────────────────────
 *  Quickstart  — 3 steps on the left, sticky code on the right
 * ──────────────────────────────────────────────────────────────── */
.ds2-quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}
.ds2-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px;
}
.ds2-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}
.ds2-steps .num {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--d-accent-soft);
  border: 1px solid var(--d-line-active);
  color: var(--d-accent-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem; font-weight: 700;
}
.ds2-steps h3 {
  margin: 4px 0 4px;
  font-size: 1.05rem; font-weight: 700;
  color: var(--d-ink);
  letter-spacing: -0.018em;
}
.ds2-steps p {
  margin: 0;
  color: var(--d-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.ds2-steps em { color: var(--d-accent-2); font-style: normal; font-weight: 600; }
.ds2-steps .ds2-mono {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--d-line);
  font-size: 0.78rem;
  color: var(--d-ink);
}

/* Code panel */
.ds2-code {
  background: linear-gradient(180deg, rgba(5,11,22,0.96), rgba(3,7,16,0.96));
  border: 1px solid var(--d-line);
  border-radius: 12px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--d-panel-glow);
}
.ds2-code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--d-line);
  background: rgba(8,13,24,0.4);
}
.ds2-code-tabs { display: inline-flex; gap: 2px; flex-wrap: wrap; }
.ds2-code-tabs button {
  height: 28px; padding: 0 12px;
  border: none; border-radius: 6px;
  background: transparent;
  color: var(--d-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.ds2-code-tabs button:hover { color: var(--d-ink); }
.ds2-code-tabs button.active { background: var(--d-accent-soft); color: var(--d-ink); }
.ds2-copy {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border: 1px solid var(--d-line);
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  color: var(--d-muted);
  font-family: inherit; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  transition: color 140ms, border-color 140ms;
}
.ds2-copy:hover { color: var(--d-ink); border-color: var(--d-line-active); }
.ds2-code-body { padding: 16px 18px; overflow-x: auto; }
.ds2-code-body pre {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem; line-height: 1.7;
  color: var(--d-ink);
  white-space: pre;
  display: none;
}
.ds2-code-body pre.active { display: block; }
.ds2-code-body .tok-k { color: #b48cff; }
.ds2-code-body .tok-s { color: #b3d9a1; }
.ds2-code-body .tok-c { color: #6c7c97; font-style: italic; }
.ds2-code-body .tok-w { color: #ffb86b; }
.ds2-code-body .ln {
  display: inline-block; width: 24px;
  color: var(--d-dim); text-align: right;
  padding-right: 14px;
  user-select: none;
}
.ds2-code-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--d-line);
  display: flex; justify-content: space-between; gap: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; color: var(--d-dim);
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────────────────────────
 *  Browse — vertical editorial list + featured side
 * ──────────────────────────────────────────────────────────────── */
.ds2-browse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}
.ds2-topics { display: grid; gap: 2px; }
.ds2-topic {
  display: grid;
  grid-template-columns: 50px 1fr 32px;
  gap: 18px;
  align-items: center;
  padding: 16px 14px;
  border-radius: 8px;
  border-top: 1px solid var(--d-line);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 180ms ease, padding 180ms ease;
}
.ds2-topics .ds2-topic:last-of-type { border-bottom: 1px solid var(--d-line); }
.ds2-topic:hover { background: rgba(255,255,255,0.022); padding-left: 18px; }
.ds2-topic .idx {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 600;
  color: var(--d-dim);
  letter-spacing: 0.06em;
}
.ds2-topic h4 {
  margin: 0;
  font-size: 1rem; font-weight: 700;
  color: var(--d-ink);
  letter-spacing: -0.015em;
}
.ds2-topic p {
  margin: 4px 0 0;
  font-size: 0.8rem; line-height: 1.5;
  color: var(--d-muted);
}
.ds2-topic .arr {
  font-size: 1.1rem;
  color: var(--d-dim);
  transition: color 180ms ease, transform 180ms ease;
}
.ds2-topic:hover .arr { color: var(--d-accent-2); transform: translateX(3px); }

/* Featured rail */
.ds2-feature {
  padding: 22px 22px 18px;
  border: 1px solid var(--d-line-active);
  border-radius: 14px;
  background:
    radial-gradient(420px 260px at 90% -20%, rgba(159,200,255,0.16), transparent 60%),
    linear-gradient(180deg, rgba(13,20,36,0.78), rgba(7,11,21,0.74));
  position: relative;
  overflow: hidden;
}
.ds2-feature-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; font-weight: 700;
  color: var(--d-accent-2);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ds2-feature h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem; font-weight: 700;
  color: var(--d-ink);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.ds2-feature p {
  margin: 0;
  font-size: 0.84rem; line-height: 1.55;
  color: var(--d-muted);
}
.ds2-feature-meta {
  margin-top: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  color: var(--d-dim);
  letter-spacing: 0.04em;
  display: flex; gap: 6px; align-items: center;
  flex-wrap: wrap;
}
.ds2-feature-meta .dot { opacity: 0.5; }
.ds2-feature-link {
  display: inline-block; margin-top: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem; font-weight: 700;
  color: var(--d-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.ds2-feature-link:hover { color: var(--d-accent-2); }

.ds2-feature-list {
  list-style: none; margin: 18px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--d-line);
  display: grid; gap: 1px;
}
.ds2-feature-list li a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px; align-items: center;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
}
.ds2-feature-list .t {
  font-size: 0.84rem; font-weight: 500;
  color: var(--d-muted);
  transition: color 140ms;
}
.ds2-feature-list .t em {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--d-success-soft);
  color: var(--d-success);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.06em;
  font-style: normal;
  margin-left: 4px;
}
.ds2-feature-list .r {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; color: var(--d-dim);
}
.ds2-feature-list li a:hover .t { color: var(--d-ink); }

/* ─────────────────────────────────────────────────────────────────
 *  API reference
 * ──────────────────────────────────────────────────────────────── */
.ds2-base {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; color: var(--d-dim);
  letter-spacing: 0.04em;
}
.ds2-base span { text-transform: uppercase; font-weight: 700; }
.ds2-base code {
  font-family: inherit;
  color: var(--d-ink);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--d-line);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
}
.ds2-api-wrap {
  border: 1px solid var(--d-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--d-panel-bg);
  box-shadow: var(--d-panel-glow);
}
.ds2-api-table { width: 100%; border-collapse: collapse; }
.ds2-api-table thead th {
  text-align: left;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--d-dim);
  padding: 12px 18px;
  border-bottom: 1px solid var(--d-line);
  background: rgba(13,20,36,0.4);
}
.ds2-api-table th.r, .ds2-api-table td.r { text-align: right; }
.ds2-api-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--d-line);
  font-size: 0.82rem;
  color: var(--d-muted);
  vertical-align: middle;
}
.ds2-api-table tbody tr:last-child td { border-bottom: none; }
.ds2-api-table tbody tr:hover td { background: rgba(255,255,255,0.018); cursor: pointer; }
.ds2-api-table td.dim {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--d-dim);
  letter-spacing: 0.02em;
}
.ds2-api-table td.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--d-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ds2-api-table .m {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.ds2-api-table .m.get   { color: var(--d-success); background: var(--d-success-soft); border-color: rgba(118,227,163,0.28); }
.ds2-api-table .m.post  { color: var(--d-accent);  background: var(--d-accent-soft);  border-color: rgba(118,174,232,0.28); }
.ds2-api-table .m.put   { color: var(--d-warning); background: var(--d-warning-soft); border-color: rgba(255,209,102,0.28); }
.ds2-api-table .m.del   { color: var(--d-danger);  background: var(--d-danger-soft);  border-color: rgba(255,139,139,0.28); }
.ds2-api-table .m.patch { color: #a98bff;          background: rgba(169,139,255,0.10); border-color: rgba(169,139,255,0.28); }
.ds2-api-table .ep {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.84rem; font-weight: 700;
  color: var(--d-ink);
}
.ds2-api-table .ep i { color: var(--d-accent-2); font-style: normal; }
.ds2-api-table .badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.ds2-api-table .badge.stable::before {
  content: "●";
  color: var(--d-success);
  margin-right: 5px;
}
.ds2-api-table .badge.beta::before {
  content: "●";
  color: var(--d-warning);
  margin-right: 5px;
}
.ds2-api-table .badge.beta { color: var(--d-warning); }
.ds2-api-table .badge.stable { color: var(--d-muted); }

/* ─────────────────────────────────────────────────────────────────
 *  SDKs + changelog split
 * ──────────────────────────────────────────────────────────────── */
.ds2-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.ds2-sdk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ds2-sdk-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--d-line);
  cursor: pointer;
  transition: background 160ms ease;
}
.ds2-sdk-list li > .nm { grid-column: 2; min-width: 0; }
.ds2-sdk-list li > .cmd { grid-column: 3; margin-top: 0; white-space: nowrap; }
.ds2-sdk-list li:hover { background: rgba(255,255,255,0.018); }
.ds2-sdk-list li:last-child { border-bottom: 1px solid var(--d-line); }
.ds2-sdk-list .b {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}
.ds2-sdk-list .b.node  { background: linear-gradient(135deg, #2a6f3b, #163b21); }
.ds2-sdk-list .b.py    { background: linear-gradient(135deg, #2c5e91, #143656); }
.ds2-sdk-list .b.go    { background: linear-gradient(135deg, #1e7a8a, #0d3b44); }
.ds2-sdk-list .b.ruby  { background: linear-gradient(135deg, #94283b, #4b101b); }
.ds2-sdk-list .b.rust  { background: linear-gradient(135deg, #8e4814, #4a2509); }
.ds2-sdk-list .b.dot   { background: linear-gradient(135deg, #4d3a8e, #271d50); }
.ds2-sdk-list .nm {
  font-size: 0.88rem; font-weight: 700;
  color: var(--d-ink);
}
.ds2-sdk-list .ver {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; color: var(--d-dim);
  margin-left: 8px;
  font-weight: 600;
}
.ds2-sdk-list .cmd {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--d-muted);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--d-line);
  padding: 4px 9px;
  border-radius: 5px;
  width: fit-content;
  white-space: nowrap;
}

/* Changelog timeline */
.ds2-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ds2-log li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--d-line);
  align-items: baseline;
}
.ds2-log li:last-child { border-bottom: 1px solid var(--d-line); }
.ds2-log .when {
  display: flex; flex-direction: column; gap: 5px;
}
.ds2-log .ver {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem; font-weight: 700;
  color: var(--d-ink);
}
.ds2-log .scope {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 3px;
  width: fit-content;
}
.ds2-log .scope.api       { color: var(--d-success); background: var(--d-success-soft); }
.ds2-log .scope.sdk       { color: var(--d-warning); background: var(--d-warning-soft); }
.ds2-log .scope.edge      { color: var(--d-accent);  background: var(--d-accent-soft); }
.ds2-log .scope.dashboard { color: #a98bff;          background: rgba(169,139,255,0.10); }
.ds2-log .scope.security  { color: var(--d-danger);  background: var(--d-danger-soft); }
.ds2-log .what {
  font-size: 0.86rem; line-height: 1.55;
  color: var(--d-muted);
}
.ds2-log .what strong { color: var(--d-ink); font-weight: 700; }
.ds2-log .what code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--d-accent-2);
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ── Resources bar at bottom ─────────────────────────────────── */
.ds2-resources {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--d-line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(13,20,36,0.32);
}
.ds2-resources > a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px;
  border-right: 1px solid var(--d-line);
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease;
}
.ds2-resources > a:last-child { border-right: none; }
.ds2-resources > a:hover { background: rgba(255,255,255,0.025); }
.ds2-resources .r-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--d-dim);
}
.ds2-resources .r-t {
  font-size: 0.86rem; font-weight: 600;
  color: var(--d-ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.ds2-resources .dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.ds2-resources .dot.ok {
  background: var(--d-success);
  box-shadow: 0 0 6px var(--d-success);
}

/* ═════════════════════════════════════════════════════════════════
 *  Support — hero + everything below
 * ════════════════════════════════════════════════════════════════ */
.sup2-hero {
  padding: 14px 4px;
  border: none;
  border-bottom: 1px solid var(--d-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.sup2-hero-l {
  max-width: none; flex: 1 1 auto; min-width: 0;
  display: flex; align-items: baseline; gap: 14px 18px; flex-wrap: wrap;
}
.sup2-hero-l .ds2-eyebrow { order: 2; padding-left: 16px; border-left: 1px solid var(--d-line); margin: 0; }
.sup2-hero-l .ds2-h1 { order: 1; }
.sup2-hero-l .ds2-lede { display: none; }
.sup2-hero-l > *:not(.ds2-eyebrow):not(.ds2-h1):not(.ds2-lede) {
  flex-basis: 100%; order: 10; margin-top: 12px;
}
.sup2-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.sup2-btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 18px;
  border-radius: 9px;
  border: 1px solid var(--d-line);
  background: rgba(255,255,255,0.03);
  color: var(--d-ink);
  font-family: inherit;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 100ms ease;
}
.sup2-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sup2-btn:hover { background: rgba(255,255,255,0.06); border-color: var(--d-line-active); }
.sup2-btn:active { transform: scale(0.98); }
.sup2-btn.primary {
  background: var(--d-accent);
  color: #07101f;
  border-color: var(--d-accent);
}
.sup2-btn.primary:hover { background: #9fc8ff; border-color: #9fc8ff; }
.sup2-btn.danger {
  background: var(--d-danger-soft);
  border-color: rgba(255,139,139,0.32);
  color: var(--d-danger);
}
.sup2-btn.danger:hover { background: rgba(255,139,139,0.18); }

/* CSAT card on the right */
.sup2-hero-r {
  border: 1px solid var(--d-line);
  border-radius: 14px;
  background: rgba(5,8,15,0.55);
  padding: 18px 20px;
  display: flex; flex-direction: column;
}
.sup2-hero-r > header {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--d-dim);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--d-line);
}
.sup2-hero-r .csat { padding-top: 14px; flex: 1; display: flex; flex-direction: column; }
.sup2-hero-r .csat-n {
  font-size: 2.4rem; font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--d-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.sup2-hero-r .csat-n small {
  font-size: 0.95rem; font-weight: 700; color: var(--d-muted);
  margin-left: 3px;
}
.sup2-hero-r .csat-bars {
  margin-top: 16px;
  display: grid; gap: 7px;
}
.sup2-hero-r .csat-bars > div {
  display: grid;
  grid-template-columns: 32px 1fr 40px;
  gap: 10px; align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--d-dim);
}
.sup2-hero-r .csat-bars .bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(83,105,138,0.18);
  overflow: hidden;
}
.sup2-hero-r .csat-bars .bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--d-success), rgba(118,227,163,0.5));
  border-radius: 999px;
}
.sup2-hero-r .csat-bars > div:nth-child(2) .bar i {
  background: linear-gradient(90deg, var(--d-warning), rgba(255,209,102,0.5));
}
.sup2-hero-r .csat-bars > div:nth-child(3) .bar i {
  background: linear-gradient(90deg, var(--d-danger), rgba(255,139,139,0.5));
}
.sup2-hero-r .csat-bars .pc { text-align: right; color: var(--d-muted); }
.sup2-hero-r .csat-foot {
  margin-top: auto; padding-top: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  color: var(--d-success);
  letter-spacing: 0.04em;
  border-top: 1px dashed var(--d-line);
  margin-top: 14px;
}

/* ── Team row ────────────────────────────────────────────────── */
.sup2-team-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--d-line);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  overflow: hidden;
}
.sup2-person {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  grid-template-areas:
    "ava  ti   cta"
    "bio  bio  bio";
  gap: 10px 14px;
  padding: 16px 18px;
  background: var(--d-panel-bg);
  align-items: center;
}
.sup2-person .ava {
  grid-area: ava;
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #fff;
  font-size: 0.92rem;
}
.sup2-person .ava.a { background: linear-gradient(135deg, #2f7dd3, #133b66); }
.sup2-person .ava.b { background: linear-gradient(135deg, #c75d18, #6b2f05); }
.sup2-person .ava.c { background: linear-gradient(135deg, #16a36b, #095932); }
.sup2-person .ava .ind {
  position: absolute; bottom: -2px; right: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--d-success);
  border: 2.5px solid var(--d-bg-elev);
  box-shadow: 0 0 6px var(--d-success);
}
.sup2-person .ava .ind.away { background: var(--d-warning); box-shadow: 0 0 6px var(--d-warning); }
.sup2-person .ti { grid-area: ti; }
.sup2-person .role {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--d-dim);
}
.sup2-person .nm {
  margin-top: 3px;
  font-size: 0.96rem; font-weight: 700;
  color: var(--d-ink);
  letter-spacing: -0.015em;
}
.sup2-person .bio {
  grid-area: bio;
  font-size: 0.78rem; color: var(--d-muted);
  line-height: 1.5;
  padding-top: 2px;
}
.sup2-person .cta { grid-area: cta; display: inline-flex; gap: 4px; }
.sup2-person .cta a {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: 1px solid var(--d-line);
  background: rgba(255,255,255,0.02);
  color: var(--d-muted);
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 140ms, border-color 140ms;
}
.sup2-person .cta a:hover { color: var(--d-ink); border-color: var(--d-line-active); }

/* ── Tickets table ───────────────────────────────────────────── */
.sup2-tickets {
  background: var(--d-panel-bg);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  box-shadow: var(--d-panel-glow);
  overflow: hidden;
}
.sup2-tickets > .ds2-section-head {
  padding: 18px 22px 14px;
  margin: 0;
}
.sup2-filters {
  display: inline-flex;
  border: 1px solid var(--d-line);
  background: rgba(13,20,36,0.42);
  border-radius: 7px;
  padding: 2px;
}
.sup2-filters button {
  height: 26px; padding: 0 11px;
  border: none; border-radius: 5px;
  background: transparent;
  color: var(--d-muted);
  font-family: inherit;
  font-size: 0.72rem; font-weight: 700;
  cursor: pointer;
}
.sup2-filters button:hover { color: var(--d-ink); }
.sup2-filters button.active { background: var(--d-accent-soft); color: var(--d-ink); }
.sup2-table-wrap { overflow-x: auto; }
.sup2-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.sup2-table thead th {
  text-align: left;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--d-dim);
  padding: 11px 22px;
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
  background: rgba(13,20,36,0.36);
}
.sup2-table th.r, .sup2-table td.r { text-align: right; }
.sup2-table tbody td {
  padding: 13px 22px;
  border-bottom: 1px solid var(--d-line);
  font-size: 0.82rem;
  color: var(--d-muted);
  vertical-align: middle;
}
.sup2-table tbody tr:last-child td { border-bottom: none; }
.sup2-table tbody tr:hover td { background: rgba(255,255,255,0.018); cursor: pointer; }
.sup2-table .id {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 700;
  color: var(--d-accent);
}
.sup2-table .id::before { content: "SNT-"; color: var(--d-dim); font-weight: 600; }
.sup2-table .subj { max-width: 380px; }
.sup2-table .subj .t {
  display: block;
  color: var(--d-ink);
  font-weight: 600;
  font-size: 0.86rem;
}
.sup2-table .subj .p {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--d-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 380px;
}
.sup2-table .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.sup2-table .pri {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; font-weight: 800;
  border: 1px solid transparent;
}
.sup2-table .pri.p1 { color: var(--d-danger);  background: var(--d-danger-soft);  border-color: rgba(255,139,139,0.32); }
.sup2-table .pri.p2 { color: var(--d-warning); background: var(--d-warning-soft); border-color: rgba(255,209,102,0.32); }
.sup2-table .pri.p3 { color: var(--d-accent);  background: var(--d-accent-soft);  border-color: rgba(118,174,232,0.32); }
.sup2-table .pri.p4 { color: var(--d-muted);   background: rgba(122,139,176,0.10); border-color: rgba(122,139,176,0.24); }
.sup2-table .st {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 10px;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 700;
}
.sup2-table .st::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.sup2-table .st.open   { color: var(--d-accent);  background: var(--d-accent-soft); }
.sup2-table .st.pend   { color: var(--d-warning); background: var(--d-warning-soft); }
.sup2-table .st.resolv { color: var(--d-success); background: var(--d-success-soft); }
.sup2-table .ow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.76rem; color: var(--d-muted);
}
.sup2-table .ow .a {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal;
  font-size: 0.6rem; font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.sup2-table .ow .a.a { background: linear-gradient(135deg, #2f7dd3, #133b66); }
.sup2-table .ow .a.b { background: linear-gradient(135deg, #c75d18, #6b2f05); }
.sup2-table .ow .a.c { background: linear-gradient(135deg, #16a36b, #095932); }
.sup2-table .ow .a.d { background: linear-gradient(135deg, #6d5fd3, #3c3382); }

.sup2-table-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px;
  border-top: 1px solid var(--d-line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--d-dim);
}

/* ── Bottom split: channels + status ─────────────────────────── */
.sup2-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}
.sup2-channels ul, .sup2-status ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  background: var(--d-line);
  border: 1px solid var(--d-line);
  border-radius: 10px;
  overflow: hidden;
}
.sup2-channels li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 16px;
  background: var(--d-panel-bg);
  cursor: pointer;
  transition: background 160ms ease;
}
.sup2-channels li:hover { background: rgba(13,20,36,0.85); }
.sup2-channels .ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid var(--d-line-active);
  background: var(--d-accent-soft);
  color: var(--d-accent-2);
  flex-shrink: 0;
}
.sup2-channels .ico svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.sup2-channels li.success .ico { background: var(--d-success-soft); color: var(--d-success); border-color: rgba(118,227,163,0.32); }
.sup2-channels li.warn .ico    { background: var(--d-warning-soft); color: var(--d-warning); border-color: rgba(255,209,102,0.32); }
.sup2-channels li.danger .ico  { background: var(--d-danger-soft);  color: var(--d-danger);  border-color: rgba(255,139,139,0.32); }
.sup2-channels .nm {
  font-size: 0.86rem; font-weight: 700;
  color: var(--d-ink);
}
.sup2-channels .sub {
  display: block;
  margin-top: 2px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem; color: var(--d-muted);
  letter-spacing: 0.02em;
}
.sup2-channels .state {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem; font-weight: 700;
  color: var(--d-dim);
  letter-spacing: 0.04em;
}
.sup2-channels li.success .state { color: var(--d-success); }
.sup2-channels li.warn .state    { color: var(--d-warning); }
.sup2-channels li.danger .state  { color: var(--d-danger); }

.sup2-status ul { display: grid; }
.sup2-status li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px; align-items: center;
  padding: 11px 16px;
  background: var(--d-panel-bg);
  font-size: 0.84rem;
  color: var(--d-muted);
}
.sup2-status .nm {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--d-ink);
}
.sup2-status .nm .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--d-success);
  box-shadow: 0 0 6px var(--d-success);
}
.sup2-status li.warn .nm .dot { background: var(--d-warning); box-shadow: 0 0 6px var(--d-warning); }
.sup2-status li.warn .nm { color: var(--d-warning); }
.sup2-status .up {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; color: var(--d-dim);
}
.sup2-inc {
  margin-top: 12px;
  display: grid; gap: 8px;
}
.sup2-inc .inc {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--d-line);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--d-muted);
}
.sup2-inc .inc .when {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; color: var(--d-dim);
}
.sup2-inc .inc .d strong { color: var(--d-ink); font-weight: 700; }
.sup2-inc .inc .b {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
.sup2-inc .b.ok  { color: var(--d-success); background: var(--d-success-soft); }
.sup2-inc .b.inv { color: var(--d-warning); background: var(--d-warning-soft); }

/* ─────────────────────────────────────────────────────────────────
 *  Responsive — real breakpoints, not just stacking
 *  These trigger inside .dash-main, whose width depends on viewport
 *  AND on dashboard-stage scaling. We use container-like thresholds
 *  based on .dash-main width via @container if supported, else px MQ.
 * ──────────────────────────────────────────────────────────────── */

/* Stage 1 — narrow desktop / scaled-down (≤ ~1180 main width) */
@media (max-width: 1180px) {
  .ds2-quick-grid { grid-template-columns: 1fr; gap: 24px; }
  .ds2-browse-grid { grid-template-columns: 1fr; gap: 28px; }
  .ds2-split { grid-template-columns: 1fr; gap: 32px; }
  .ds2-resources { grid-template-columns: repeat(3, 1fr); }
  .ds2-resources > a:nth-child(3) { border-right: none; }
  .ds2-resources > a:nth-child(4),
  .ds2-resources > a:nth-child(5) { border-top: 1px solid var(--d-line); }

  .sup2-hero-r { order: 11; flex-basis: 100%; }
  .sup2-team-row { grid-template-columns: 1fr; }
  .sup2-bottom { grid-template-columns: 1fr; gap: 20px; }
}

/* Stage 2 — tablet / very narrow (≤ ~820) */
@media (max-width: 820px) {
  .ds2-h1 { font-size: 1.05rem; }

  .ds2-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ds2-section-head h2 { font-size: 1rem; }

  .ds2-topic { grid-template-columns: 36px 1fr 24px; gap: 12px; padding: 14px 6px; }
  .ds2-topic .idx { font-size: 0.66rem; }
  .ds2-topic h4 { font-size: 0.92rem; }

  .ds2-api-table tbody td { padding: 12px 12px; }
  .ds2-api-table thead th { padding: 10px 12px; }
  /* Hide auth + stability + latency on tablet — keep method/endpoint/purpose */
  .ds2-api-table th:nth-child(4),
  .ds2-api-table th:nth-child(5),
  .ds2-api-table td:nth-child(4),
  .ds2-api-table td:nth-child(5) { display: none; }

  .ds2-resources { grid-template-columns: repeat(2, 1fr); }
  .ds2-resources > a:nth-child(odd) { border-right: 1px solid var(--d-line); }
  .ds2-resources > a:nth-child(even) { border-right: none; }
  .ds2-resources > a:nth-child(n+3) { border-top: 1px solid var(--d-line); }
  .ds2-resources > a:nth-child(5) { grid-column: 1 / -1; border-right: none; }

  .ds2-log li { grid-template-columns: 1fr; gap: 8px; }

  .sup2-cta { gap: 8px; }
  .sup2-btn { height: 36px; padding: 0 14px; font-size: 0.76rem; }
  .sup2-btn svg { width: 13px; height: 13px; }

  .sup2-table .subj .p { display: none; }
  .sup2-table thead th, .sup2-table tbody td { padding: 10px 14px; }
}
