:root {
  --ink: #1f1b16;
  --sand: #f5efe6;
  --rust: #d77a42;
  --brick: #b9582f;
  --shadow: rgba(31, 27, 22, 0.15);
  --mono: "Courier New", Courier, monospace;
  --sans: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #fff6ea, var(--sand));
  color: var(--ink);
  font-family: var(--sans);
}

.shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.hero {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.tag {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.lead {
  font-size: 18px;
  max-width: 600px;
}

.nav {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.nav a {
  color: var(--brick);
  text-decoration: none;
}

.panel {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 18px 40px var(--shadow);
  display: grid;
  gap: 16px;
  overflow: hidden;
  max-width: 100%;
}

.hero-panel {
  padding: 48px 40px;
  margin-bottom: 12px;
}

.hero-panel h2 {
  font-size: 30px;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.3px;
}

.hero-panel p {
  font-size: 17px;
  color: #4a4039;
  line-height: 1.7;
  margin: 0;
  max-width: 580px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 12px 0;
}

.feature-card {
  transition: transform 0.075s ease, box-shadow 0.075s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px var(--shadow);
}

.feature-card h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--brick);
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: #4a4039;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Example panel */
.example-panel {
  margin-bottom: 12px;
  padding: 32px;
}
.example-label {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brick);
}
.example-steps {
  display: grid;
  gap: 20px;
}
.example-step-block {
  display: grid;
  gap: 8px;
}
.example-step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rust);
  color: white;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-text {
  font-weight: 600;
  font-size: 15px;
}
.cmd-comment {
  color: #6d8a6d;
}
.cmd-output {
  background: #1c1a18;
  border-left: 3px solid var(--rust);
}
.cmd-dim {
  color: #8a8279;
}

.cmd {
  display: block;
  padding: 14px 16px;
  background: #1c1a18;
  color: #f4f1ec;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: 8px;
  overflow-x: auto;
}

.cta {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  background: var(--rust);
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.075s ease, transform 0.05s ease;
}

.cta:hover {
  background: var(--brick);
  transform: translateY(-1px);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost {
  display: inline-block;
  padding: 12px 24px;
  border: 1.5px solid var(--rust);
  background: transparent;
  color: var(--brick);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.075s ease, transform 0.05s ease;
}

.ghost:hover {
  background: rgba(215, 122, 66, 0.08);
  transform: translateY(-1px);
}

.field input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d9cbbb;
}

.footer {
  margin-top: 48px;
  padding: 20px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #a89a8c;
  letter-spacing: 0.5px;
}

.footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 16px;
}

.footer-nav a {
  color: #a89a8c;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.075s;
}

.footer-nav a:hover {
  color: var(--brick);
}

/* Docs sections: block layout so margins collapse naturally instead of
   stacking with the grid gap, which caused excessive space around commands. */
.panel.docs-section {
  display: block;
}
/* Tighter heading-to-command spacing in docs (overrides template inline styles) */
.panel.docs-section h3 {
  margin: 14px 0 4px;
}
.docs-section .cmd {
  margin: 6px 0 0;
  padding: 10px 14px;
}

/* Legal pages (terms, privacy) */
.legal-panel h2 {
  margin-bottom: 4px;
}

.legal-updated {
  color: #8a7a6d;
  font-size: 13px;
  margin-bottom: 24px;
}

.legal-panel h3 {
  font-size: 16px;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-panel p,
.legal-panel ul {
  color: #5a4d42;
  line-height: 1.7;
}

.legal-panel ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal-panel li {
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
  }
}

/* Auth panel — narrower centered form */
.auth-panel {
  max-width: 440px;
  margin: 0 auto;
}

/* Inline field error */
.field-error {
  color: #c0392b;
  font-size: 13px;
  font-weight: 400;
  min-height: 18px;
}

/* Form-level error banner */
.form-error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  display: none;
}
.form-error.visible {
  display: block;
}

/* Info / success box */
.info-box {
  background: #eafaf1;
  color: #1e7e34;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  display: none;
}
.info-box.visible {
  display: block;
}

/* Auth footer links */
.auth-links {
  font-size: 14px;
  color: #6b5c4f;
}
.auth-links a {
  color: var(--brick);
  text-decoration: none;
  font-weight: 600;
}

/* Disabled button state */
.cta:disabled,
.ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Verification badges */
.badge-verified {
  display: inline-block;
  background: #eafaf1;
  color: #1e7e34;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.badge-unverified {
  display: inline-block;
  background: #fdecea;
  color: #c0392b;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

/* History page */
.history-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 14px;
  border: 1px solid #d9cbbb;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-btn.active {
  background: var(--rust);
  color: white;
  border-color: var(--rust);
}
.history-table-wrap {
  overflow-x: auto;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.history-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid #d9cbbb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b5c4f;
}
.history-table td {
  padding: 10px;
  border-bottom: 1px solid #ece5db;
}
.history-table .mono {
  font-family: var(--mono);
  font-size: 13px;
}
.job-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.badge-completed {
  background: #eafaf1;
  color: #1e7e34;
}
.badge-failed {
  background: #fdecea;
  color: #c0392b;
}
.badge-running {
  background: #fff3cd;
  color: #856404;
}
.badge-queued {
  background: #e9ecef;
  color: #495057;
}
.history-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: #6b5c4f;
}
.history-empty {
  color: #6b5c4f;
  font-style: italic;
}

/* Log viewer */
.log-content-wrap {
  background: #1e1c1a;
  max-height: calc(100vh - 260px);
  min-height: 200px;
  overflow: auto;
  border-radius: 8px;
  padding: 8px 0;
}
.log-content {
  font-family: var(--mono);
  font-size: 13px;
  color: #f4f1ec;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  margin: 0;
}

.log-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
}
.log-line-num {
  display: inline-block;
  min-width: 5ch;
  text-align: right;
  color: #6d6560;
  user-select: none;
  position: sticky;
  left: 0;
  background: #1e1c1a;
  padding: 1px 10px 1px 12px;
  flex-shrink: 0;
  border-right: 1px solid #332f2b;
  margin-right: 10px;
  font-size: 11px;
}

/* Search results */
.search-match {
  color: var(--rust);
  font-weight: 700;
}
.search-context {
  color: #888;
}
.search-separator {
  color: #555;
  user-select: none;
}
.search-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.search-toolbar input[type="text"],
.search-toolbar input[type="number"] {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d9cbbb;
  font-family: var(--mono);
  font-size: 13px;
}
.search-toolbar input[type="number"] {
  width: 60px;
}
.search-toolbar label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dashboard */
#dashboard-panel h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brick);
  margin: 16px 0 8px;
}
#dashboard-panel h3:first-child {
  margin-top: 0;
}
.chart-wrap {
  position: relative;
  height: 260px;
  margin: 8px 0 12px;
}
.metric-details {
  margin: 4px 0 16px;
}
.metric-details summary {
  font-size: 13px;
  color: var(--brick);
  cursor: pointer;
  padding: 4px 0;
}
.metric-details summary:hover {
  text-decoration: underline;
}

/* Dashboard full-width layout */
body.dashboard-wide .shell {
  max-width: 100%;
  padding: 48px 32px 32px;
}
.metric-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
/* Dashboard table cells: allow auto column sizing, ellipsis on overflow */
#dashboard-panel .history-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}
/* Clickable table rows — must come after base td rules */
#dashboard-panel .history-table tr.clickable-row {
  cursor: pointer;
}
#dashboard-panel .history-table tr.clickable-row td:first-child {
  color: var(--brick);
}
#dashboard-panel .history-table .clickable-row:hover > td {
  background-color: #ede4d8 !important;
}
.chart-wrap-compact {
  position: relative;
  height: 220px;
  margin: 8px 0 12px;
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: #6b5c4f;
  padding: 8px 0;
}
.table-pagination button {
  padding: 4px 12px;
  border: 1px solid #d9cbbb;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
}
.table-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Loading spinner ───────────────────────────────────────── */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #ece5db;
  border-top-color: var(--rust);
  border-radius: 50%;
  animation: spin 0.4s linear infinite;
  margin: 24px auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Log toolbar (dropdowns + search bar) ──────────────────── */
.log-toolbar {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5ddd3;
  margin-bottom: 10px;
}
.log-toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.log-toolbar-row label {
  font-weight: 600;
  font-size: 13px;
  color: #6b5c4f;
  white-space: nowrap;
}
.log-toolbar-row select {
  flex: 1;
  min-width: 160px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #d9cbbb;
  font-family: var(--mono);
  font-size: 13px;
  background: white;
  color: var(--ink);
}
.log-toolbar-row input[type="text"] {
  flex: 1;
  min-width: 120px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #d9cbbb;
  font-family: var(--mono);
  font-size: 13px;
}
.search-opt {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #6b5c4f;
}

/* ── Log viewer container ──────────────────────────────────── */
.log-viewer {
  background: #1a1816;
  border-radius: 8px;
  border: 1px solid #302c28;
  overflow: auto;
  height: calc(100vh - 340px);
  min-height: 200px;
  padding: 4px 0;
}

/* ── Log lines ─────────────────────────────────────────────── */
.log-lines {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #d5d0c8;
  line-height: 1.45;
}
.log-line {
  display: flex;
  white-space: pre;
  padding: 1px 0;
}
.log-line:hover {
  background: rgba(255, 255, 255, 0.05);
}
.log-line.ctx {
  opacity: 0.45;
  padding-left: 14px;
}
.log-line.match {
  background: rgba(215, 122, 66, 0.12);
}
.log-line.match .log-line-num {
  color: var(--rust);
  font-weight: 700;
}
.log-line-text {
  padding: 1px 14px 1px 0;
}

/* ── Log level colors ──────────────────────────────────────── */
.log-level-error { color: #ff6b6b; }
.log-level-warn  { color: #ffa94d; }
.log-level-debug { color: #868e96; }
.log-level-trace { color: #666; }

/* ── Search separator ──────────────────────────────────────── */
.search-sep {
  text-align: center;
  color: #555;
  padding: 6px 0;
  font-size: 11px;
  user-select: none;
  border-top: 1px solid #302c28;
  margin-top: 4px;
}

/* ── Pill buttons ──────────────────────────────────────────── */
.pill-btn {
  padding: 6px 14px;
  border: 1px solid #d9cbbb;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.05s;
}
.pill-btn:hover {
  background: #f0e8de;
}
.pill-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Status text ───────────────────────────────────────────── */
#log-status {
  font-size: 13px;
  color: #6b5c4f;
  min-height: 18px;
}
.page-info {
  font-size: 13px;
  color: #6b5c4f;
}
.text-muted {
  color: #99887a;
  font-size: 12px;
}

@media (max-width: 600px) {
  .shell {
    padding: 24px 12px 24px;
  }
  .panel {
    padding: 16px;
  }
  .log-lines {
    font-size: 11px;
  }
  .log-content {
    font-size: 11px;
  }
  .history-table {
    font-size: 12px;
  }
  .history-table td,
  .history-table th {
    padding: 6px;
  }
  .breadcrumbs {
    font-size: 12px;
  }
  .view-toolbar {
    flex-wrap: wrap;
  }
}

/* ── Screenshot panel ──────────────────────────────────── */
.screenshot-panel {
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
.screenshot-panel .screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ── Install one-liner ──────────────────────────────────── */
.install-oneliner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1c1a18;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 12px;
  box-shadow: 0 18px 40px var(--shadow);
}
.install-oneliner code {
  font-family: var(--mono);
  font-size: 14px;
  color: #f4f1ec;
  user-select: all;
}
.copy-btn {
  padding: 6px 14px;
  border: 1px solid #555;
  background: #2a2622;
  color: #d5d0c8;
  font-weight: 600;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.075s;
  flex-shrink: 0;
}
.copy-btn:hover {
  background: #3a3632;
}

/* ── Terminal animation ──────────────────────────────────── */
.terminal-panel {
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
  background: #1c1a18;
}
.terminal-chrome {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  background: #2a2622;
  border-bottom: 1px solid #362f2a;
}
.terminal-dots {
  display: flex;
  gap: 7px;
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-dot-close { background: #ff5f57; }
.terminal-dot-min { background: #febc2e; }
.terminal-dot-max { background: #28c840; }
.terminal-title {
  font-family: var(--mono);
  font-size: 12px;
  color: #6b6560;
  flex: 1;
  text-align: center;
  margin-right: 50px;
}
.terminal-body {
  padding: 18px 20px;
}
.terminal-line {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: #f4f1ec;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 1.6em;
}
.terminal-prompt-line {
  display: flex;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: #f4f1ec;
}
.terminal-prompt {
  color: var(--rust);
  margin-right: 8px;
  user-select: none;
  flex-shrink: 0;
}
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--rust);
  animation: terminal-blink 0.5s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
  flex-shrink: 0;
}
@keyframes terminal-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.t-dim { color: #7a7269; }
.t-green { color: #28c840; }
.t-red { color: #ff5f57; }
.t-rust { color: #d77a42; }
.t-comment { color: #5a7a5a; }
.t-bold { font-weight: 700; color: #fff; }
.terminal-result {
  animation: result-appear 0.25s ease-out;
}
@keyframes result-appear {
  from { background: rgba(215, 122, 66, 0.15); }
  to { background: transparent; }
}

/* ── GitHub issue showcase ───────────────────────────────── */
.gh-showcase {
  margin-bottom: 12px;
  padding: 32px;
}
.gh-showcase-label {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brick);
}
.gh-showcase-desc {
  margin: 0 0 20px;
  font-size: 15px;
  color: #4a4039;
  line-height: 1.6;
}

/* Issue window container */
.gh-window {
  border: 1px solid #d4cbc0;
  border-radius: 10px;
  overflow: hidden;
  background: white;
}

/* Issue page header */
.gh-issue-hdr {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #e8e0d6;
}
.gh-issue-hdr h4 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}
.gh-issue-hdr h4 span {
  color: #8a8279;
}
.gh-issue-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8a8279;
  flex-wrap: wrap;
}
.gh-issue-meta strong {
  color: var(--ink);
}

/* Status badge */
.gh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  transition: background 0.25s ease;
  white-space: nowrap;
}
.gh-badge-open { background: #1a7f37; }
.gh-badge-closed { background: #8250df; }
.gh-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Timeline */
.gh-tl {
  position: relative;
  padding: 0 20px;
}
.gh-tl::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e8e0d6;
}

/* Timeline comment item */
.gh-tl-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding: 16px 0 0;
}

/* Avatar */
.gh-tl-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
}

/* Speech bubble */
.gh-tl-bub {
  flex: 1;
  border: 1px solid #d4cbc0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  min-width: 0;
}
.gh-tl-bub::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -9px;
  width: 0; height: 0;
  border: 8px solid transparent;
  border-right-color: #d4cbc0;
  border-left-width: 0;
}
.gh-tl-bub::after {
  content: '';
  position: absolute;
  top: 13px;
  left: -7px;
  width: 0; height: 0;
  border: 7px solid transparent;
  border-right-color: #f5f0e8;
  border-left-width: 0;
}

/* Bubble header */
.gh-tl-bub-hd {
  padding: 8px 16px;
  background: #f5f0e8;
  border-bottom: 1px solid #e8e0d6;
  font-size: 13px;
  color: #8a8279;
}
.gh-tl-bub-hd strong {
  color: var(--ink);
}
.gh-bot-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #6b5c4f;
  border: 1px solid #d4cbc0;
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 2px;
  vertical-align: 1px;
  background: #f5f0e8;
}

/* Bubble body */
.gh-tl-bub-bd {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}
.gh-tl-bub-bd p {
  margin: 0 0 4px;
}
.gh-tl-bub-bd p:last-child {
  margin-bottom: 0;
}
.gh-tl-bub-bd code {
  background: #ece5db;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
}
.gh-tl-bub-bd a {
  color: var(--brick);
  text-decoration: none;
  font-weight: 600;
}
.gh-tl-bub-bd a:hover {
  text-decoration: underline;
}

/* @mention link */
.gh-mention-link {
  color: var(--brick);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.gh-mention-link:hover {
  text-decoration: underline;
}

/* Fenced code block (light, matches GH) */
.gh-fenced {
  background: #f5f0e8;
  border: 1px solid #e8e0d6;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
  margin: 8px 0;
  white-space: pre-wrap;
  color: var(--ink);
}

/* Expandable output */
.gh-details {
  margin: 10px 0 0;
  border: 1px solid #e8e0d6;
  border-radius: 6px;
}
.gh-details summary {
  padding: 8px 12px;
  background: #f5f0e8;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.gh-details-body {
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: #6b5c4f;
  line-height: 1.5;
  background: #faf8f5;
  border-top: 1px solid #e8e0d6;
  white-space: pre-wrap;
  max-height: 150px;
  overflow-y: auto;
}

/* Result table (markdown style) */
.gh-res-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}
.gh-res-tbl th {
  text-align: left;
  padding: 6px 12px;
  background: #f5f0e8;
  border: 1px solid #e8e0d6;
  font-weight: 600;
  color: #6b5c4f;
  font-size: 12px;
}
.gh-res-tbl td {
  padding: 6px 12px;
  border: 1px solid #e8e0d6;
  font-size: 13px;
}

/* Timeline events (label, close) */
.gh-tl-ev {
  display: flex;
  align-items: center;
  position: relative;
  padding: 12px 0 0;
}
.gh-tl-ev-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f0e8;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  font-size: 14px;
  margin-left: 4px;
}
.gh-tl-ev-text {
  font-size: 13px;
  color: #8a8279;
  margin-left: 18px;
}
.gh-tl-ev-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* Label pill */
.gh-lbl {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.gh-lbl-found {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

/* CTA */
.gh-showcase-cta {
  margin-top: 20px;
  text-align: center;
}
.gh-showcase-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brick);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.075s;
}
.gh-showcase-cta a:hover {
  color: var(--ink);
}

/* Animation */
.gh-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gh-reveal.vis {
  opacity: 1;
  transform: translateY(0);
}
.gh-type-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #d77a42;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: gh-blink 0.5s step-end infinite;
}
@keyframes gh-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Bottom spacer so last event doesn't touch edge */
.gh-tl-end {
  height: 16px;
}

@media (max-width: 600px) {
  .gh-showcase {
    padding: 20px;
  }
  .gh-tl {
    padding: 0 14px;
  }
  .gh-tl::before {
    left: 33px;
  }
  .gh-tl-av {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .gh-tl-item {
    gap: 10px;
  }
  .gh-tl-bub-hd,
  .gh-tl-bub-bd {
    padding: 8px 12px;
  }
  .gh-fenced {
    font-size: 11.5px;
    padding: 8px 12px;
  }
  .gh-tl-ev-icon {
    width: 26px;
    height: 26px;
    margin-left: 3px;
    font-size: 12px;
  }
  .gh-tl-ev-text {
    margin-left: 14px;
  }
  .gh-issue-hdr h4 {
    font-size: 17px;
  }
}

/* ── Proxy home page ───────────────────────────────────────── */

/* Hero: side-by-side text + topology diagram */
.proxy-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 40px;
}
.proxy-hero-text {
  display: grid;
  gap: 16px;
}
.proxy-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.proxy-topo-svg {
  width: 100%;
  max-width: 320px;
}
/* Animated dashes for data path lines */
.proxy-topo-data {
  stroke-dasharray: 8 4;
  animation: proxy-dash 1.2s linear infinite;
}
@keyframes proxy-dash {
  to { stroke-dashoffset: -24; }
}

/* How it works section */
.proxy-section-label {
  margin: 0 0 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brick);
}
.proxy-steps-panel {
  margin-bottom: 12px;
  padding: 32px 36px;
}
.proxy-steps {
  display: grid;
  gap: 24px;
}
.proxy-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.proxy-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rust);
  color: white;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.proxy-step-body {
  display: grid;
  gap: 6px;
}
.proxy-step-body strong {
  font-size: 15px;
  color: var(--ink);
}
.proxy-step-cmd {
  display: block;
  padding: 8px 14px;
  background: #1c1a18;
  color: #f4f1ec;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 6px;
  width: fit-content;
}
.proxy-step-desc {
  font-size: 14px;
  color: #6b5c4f;
  line-height: 1.6;
}
.proxy-step-desc code {
  background: #ece5db;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
}

/* Feature cards with icons */
.proxy-feature {
  display: grid;
  gap: 12px;
}
.proxy-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(215, 122, 66, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .proxy-hero {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .proxy-hero-visual {
    order: -1;
  }
  .proxy-topo-svg {
    max-width: 260px;
  }
  .proxy-steps-panel {
    padding: 24px 20px;
  }
}
