/* =============================================================================
   rtcm-getter — styles
   Adopts the Point One Design System (tokens lifted from the Figma DS bundle).
   Forest green brand + warm neutrals, pill controls, hairline borders, no
   gradients. Sentence case everywhere.
   ============================================================================= */

/* —— Fonts ————————————————————————————————————————————————————————————— */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Azeret+Mono:wght@400;500;600&display=swap");

@font-face {
  font-family: "Alliance No.2";
  src: url("/static/fonts/AllianceNo.2-Regular.otf") format("opentype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* —— Tokens ———————————————————————————————————————————————————————————— */
:root {
  /* Brand */
  --brand-green: rgb(33, 130, 65);
  --brand-lime: rgb(211, 247, 84);

  /* Warm neutrals */
  --neutral-50: rgb(250, 250, 249);
  --neutral-100: rgb(246, 246, 244);
  --neutral-200: rgb(231, 231, 228);
  --neutral-300: rgb(219, 218, 210);
  --neutral-400: rgb(194, 193, 179);
  --neutral-500: rgb(146, 146, 133);
  --neutral-600: rgb(128, 128, 115);
  --neutral-700: rgb(87, 87, 76);
  --neutral-800: rgb(42, 42, 39);
  --neutral-900: rgb(20, 20, 19);
  --neutral-950: rgb(11, 11, 10);

  /* Status / muted ramps */
  --blue-100: rgb(233, 240, 245);
  --blue-700: rgb(50, 92, 114);
  --lime-100: rgb(230, 244, 228);
  --lime-600: rgb(65, 128, 57);
  --lime-700: rgb(53, 101, 48);
  --amber-100: rgb(243, 234, 225);
  --amber-800: rgb(114, 69, 58);
  --red-100: rgb(254, 226, 226);
  --red-600: rgb(220, 38, 38);
  --red-700: rgb(185, 28, 28);
  --emerald-100: rgb(219, 240, 228);
  --emerald-700: rgb(32, 92, 73);

  /* Semantic — light */
  --background: rgb(255, 255, 255);
  --foreground: var(--neutral-950);
  --card: rgb(255, 255, 255);
  --card-foreground: var(--neutral-900);
  --muted: var(--neutral-100);
  --muted-foreground: rgba(0, 0, 0, 0.6);
  --accent: var(--neutral-200);
  --primary: var(--neutral-900);
  --primary-foreground: rgb(255, 255, 255);
  --secondary: var(--brand-green);
  --secondary-foreground: rgb(255, 255, 255);
  --destructive: var(--red-600);
  --success: var(--lime-600);
  --warning: rgb(255, 204, 29);
  --border: var(--neutral-200);
  --input: var(--neutral-300);
  --ring: var(--neutral-950);
  --background-selected: var(--blue-100);
  --hover-background: rgba(0, 0, 0, 0.04);
  --sidebar: var(--neutral-50);
  --sidebar-border: var(--neutral-200);

  /* Map (lifted from Figma DS) */
  --map-station-pin: rgb(159, 201, 219);
  --map-station-border: rgb(0, 157, 224);
  --map-station-background: rgba(0, 157, 224, 0.18);

  /* Typography */
  --font-sans: "Instrument Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Alliance No.2", "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Azeret Mono", ui-monospace, "SF Mono", monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --radius: var(--radius-lg);

  /* Elevation */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-medium: 200ms;

  /* Layout */
  --sidebar-width: 220px;
  --topbar-height: 56px;
}

/* —— Base ——————————————————————————————————————————————————————————————— */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  color: var(--foreground);
  background: var(--neutral-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--brand-green) 22%, transparent); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tabular, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted-foreground); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Topbar ————————————————————————————————————————————————————————————— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  padding: 0 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--foreground); }
.brand__mark { height: 22px; width: auto; color: var(--foreground); }
.brand__app {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--muted-foreground);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}
.topbar nav { display: flex; gap: 4px; }
.topbar nav a {
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--muted-foreground);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.topbar nav a:hover { background: var(--hover-background); color: var(--foreground); text-decoration: none; }
.topbar nav a.is-active { color: var(--foreground); background: var(--neutral-100); }

/* —— Page ——————————————————————————————————————————————————————————————— */
.page {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 20px;
  display: grid;
  gap: 16px;
}

/* Page header / display title */
.page__header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.page__title {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.6px;
}
.page__lede { color: var(--muted-foreground); font-size: 14px; margin: 0; }

/* —— Card ——————————————————————————————————————————————————————————————— */
.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.2px;
}
.card .hint {
  margin: 0 0 14px;
  color: var(--muted-foreground);
  font-size: 13px;
}
.card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: var(--radius-full);
  background: var(--neutral-100);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-right: 8px;
  vertical-align: 1px;
}

/* —— Buttons ———————————————————————————————————————————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: 14px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              opacity var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
  outline: none;
  user-select: none;
}
.btn:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent); }
.btn:active:not(:disabled) { opacity: 0.6; }
.btn:disabled { pointer-events: none; opacity: 0.5; }

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 88%, transparent); }
.btn-brand { background: var(--secondary); color: var(--secondary-foreground); }
.btn-brand:hover:not(:disabled) { background: color-mix(in srgb, var(--secondary) 88%, black 12%); }
.btn-outline { background: var(--card); color: var(--foreground); border-color: var(--input); box-shadow: var(--shadow-xs); }
.btn-outline:hover:not(:disabled) { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover:not(:disabled) { background: var(--hover-background); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* —— Inputs ———————————————————————————————————————————————————————————— */
input[type="text"], input[type="password"], input[type="datetime-local"], input[type="search"], input[type="number"], select, textarea {
  height: 36px;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--input);
  background: var(--card);
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
  outline: none;
}
textarea { height: auto; min-height: 80px; padding: 8px 10px; line-height: 20px; }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent);
}
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted-foreground); }
label > input, label > textarea, label > select { color: var(--foreground); }
.form { display: grid; gap: 14px; max-width: 540px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > label { min-width: 220px; flex: 1; }

/* —— Alert / pill ——————————————————————————————————————————————————————— */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  border: 1px solid transparent;
}
.alert-ok { background: var(--lime-100); color: var(--lime-700); border-color: color-mix(in srgb, var(--lime-700) 15%, transparent); }
.alert-error { background: var(--red-100); color: var(--red-700); border-color: color-mix(in srgb, var(--red-700) 15%, transparent); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: var(--weight-medium); line-height: 1;
  padding: 4px 10px; border-radius: var(--radius-full); white-space: nowrap;
}
.badge--neutral { background: var(--neutral-200); color: var(--neutral-700); }
.badge--success { background: var(--lime-100); color: var(--lime-700); }
.badge--info    { background: var(--blue-100); color: var(--blue-700); }
.badge--warn    { background: var(--amber-100); color: var(--amber-800); }
.badge--danger  { background: var(--red-100); color: var(--red-700); }
.badge--brand   { background: var(--emerald-100); color: var(--emerald-700); }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* —— Map (only used on the index page) ———————————————————————————————— */
#map {
  height: 440px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* —— Leaflet skin —————————————————————————————————————————————————————— */
.leaflet-container { font-family: var(--font-sans); }

/* Toolbars + zoom buttons */
.leaflet-bar {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
  background: var(--card);
  overflow: hidden;
}
.leaflet-bar a,
.leaflet-bar a:link,
.leaflet-bar a:visited {
  background: var(--card);
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.leaflet-bar a:last-child { border-bottom: none; }
.leaflet-bar a:hover { background: var(--hover-background); }
.leaflet-bar a.leaflet-disabled { background: var(--muted); color: var(--muted-foreground); }
.leaflet-touch .leaflet-bar a { width: 32px; height: 32px; line-height: 32px; }

/* Draw toolbar (leaflet-draw) — replace the broken sprite with inline DS icons */
.leaflet-draw-toolbar a {
  background-color: var(--card) !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
}
.leaflet-draw-toolbar a:hover { background-color: var(--hover-background) !important; }
.leaflet-draw-toolbar a.leaflet-disabled { opacity: 0.4; }

.leaflet-draw-toolbar .leaflet-draw-draw-polygon {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4 L20 10 L17 20 L7 20 L4 10 Z'/></svg>") !important;
}
.leaflet-draw-toolbar .leaflet-draw-draw-circle {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8'/></svg>") !important;
}
.leaflet-draw-toolbar .leaflet-draw-draw-rectangle {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='6' width='16' height='12' rx='1'/></svg>") !important;
}
.leaflet-draw-toolbar .leaflet-draw-draw-marker {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0'/><path d='M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z'/></svg>") !important;
}
.leaflet-draw-toolbar .leaflet-draw-draw-polyline {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='5' cy='5' r='2'/><circle cx='19' cy='19' r='2'/><path d='M6.5 6.5l11 11'/></svg>") !important;
}
.leaflet-draw-toolbar .leaflet-draw-edit-edit {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4l10.5 -10.5a1.5 1.5 0 0 0 -4 -4l-10.5 10.5v4'/><path d='M13.5 6.5l4 4'/></svg>") !important;
}
.leaflet-draw-toolbar .leaflet-draw-edit-remove {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12'/><path d='M9 7V4a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3'/></svg>") !important;
}
.leaflet-draw-actions a {
  background: var(--neutral-900);
  color: var(--neutral-50);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-medium);
  height: 32px;
  line-height: 32px;
  border-left: 1px solid color-mix(in srgb, var(--neutral-50) 12%, transparent);
}
.leaflet-draw-actions a:hover {
  background: color-mix(in srgb, var(--neutral-900) 88%, white 12%);
}
.leaflet-draw-actions li:first-child a { border-left: none; border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); }
.leaflet-draw-actions li:last-child a { border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }

/* Draw cursor tooltip */
.leaflet-draw-tooltip {
  background: var(--neutral-900);
  color: var(--neutral-50);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--weight-medium);
  padding: 6px 10px;
  box-shadow: var(--shadow-md);
}
.leaflet-draw-tooltip:before { border-right-color: var(--neutral-900); }
.leaflet-draw-tooltip-subtext { color: color-mix(in srgb, var(--neutral-50) 75%, transparent); }

/* Marker tooltips (station hover) */
.leaflet-tooltip {
  background: var(--neutral-900);
  color: var(--neutral-50);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--weight-medium);
  padding: 6px 10px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before { border: none; }

/* Popups */
.leaflet-popup-content-wrapper {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
  font-size: 13px;
}
.leaflet-popup-tip { background: var(--card); box-shadow: var(--shadow-xs); border: 1px solid var(--border); }
.leaflet-popup-close-button { color: var(--muted-foreground) !important; }

/* Attribution — quieter and aligned with the system */
.leaflet-control-attribution {
  background: color-mix(in srgb, var(--card) 90%, transparent) !important;
  color: var(--muted-foreground) !important;
  font-family: var(--font-sans);
  font-size: 10px;
  padding: 2px 6px;
  border-top-left-radius: var(--radius-sm);
}
.leaflet-control-attribution a { color: var(--muted-foreground); }

/* Edit/delete sub-toolbar */
.leaflet-draw-section .leaflet-draw-actions {
  margin-top: 4px;
}

/* —— Station list —————————————————————————————————————————————————————— */
.station-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-height: 260px;
  overflow: auto;
  border-top: 1px solid var(--border);
}
.station-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.station-list .sid { font-family: var(--font-mono); font-size: 12px; color: var(--muted-foreground); }
.station-list .sname { font-weight: var(--weight-medium); }

/* —— Toolbar row (used on index actions) ——————————————————————————————— */
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kv { color: var(--muted-foreground); font-size: 13px; }
.kv b { color: var(--foreground); font-weight: var(--weight-medium); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* —— Jobs table ——————————————————————————————————————————————————————— */
.table-scroll { overflow-x: auto; }
.jobs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jobs-table .window-cell { white-space: normal; line-height: 1.35; }
.jobs-table td.mono { font-size: 12.5px; }
.jobs-table th {
  position: sticky; top: 0; background: var(--card);
  text-align: left; font-weight: var(--weight-medium); color: var(--muted-foreground);
  padding: 0 16px; height: 40px; white-space: nowrap;
  box-shadow: inset 0 -1px 0 var(--border); letter-spacing: -0.01em;
  font-size: 13px;
}
.jobs-table th.sortable { cursor: pointer; user-select: none; }
.jobs-table th.sortable:hover { color: var(--foreground); }
.jobs-table th .sort-arrow { display: inline-block; width: 10px; margin-left: 4px; opacity: 0.4; }
.jobs-table th[data-sort="asc"]  .sort-arrow::after { content: "▲"; opacity: 1; }
.jobs-table th[data-sort="desc"] .sort-arrow::after { content: "▼"; opacity: 1; }
.jobs-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
.jobs-table tbody tr:hover { background: var(--neutral-50); }
.jobs-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.jobs-table .actions-cell { text-align: right; }
.jobs-table a code { background: transparent; color: var(--brand-green); padding: 0; }

/* —— Manifest / code blocks ———————————————————————————————————————————— */
code {
  font-family: var(--font-mono);
  background: var(--neutral-100);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
pre.manifest {
  font-family: var(--font-mono);
  background: var(--neutral-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  overflow: auto;
  font-size: 12.5px;
  max-height: 60vh;
}

/* —— Job progress —————————————————————————————————————————————————————— */
progress {
  appearance: none;
  width: 100%;
  height: 6px;
  border: none;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--muted);
}
progress::-webkit-progress-bar { background: var(--muted); border-radius: var(--radius-full); }
progress::-webkit-progress-value { background: var(--secondary); border-radius: var(--radius-full); transition: width var(--duration-medium) var(--ease-standard); }
progress::-moz-progress-bar { background: var(--secondary); border-radius: var(--radius-full); }

/* —— Prose (api.md) ———————————————————————————————————————————————————— */
.prose { max-width: 760px; font-size: 15px; line-height: 24px; }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.4px;
  margin: 1.6em 0 0.4em;
}
.prose h1 { font-size: 32px; letter-spacing: -0.6px; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 17px; }
.prose code { font-size: 13px; }
.prose pre { background: var(--neutral-50); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; overflow: auto; }
.prose pre code { background: transparent; padding: 0; }
.prose table { border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 6px 12px; font-size: 14px; }
.prose th { background: var(--neutral-50); font-weight: var(--weight-semibold); text-align: left; }
.prose a { color: var(--brand-green); text-decoration: underline; text-underline-offset: 3px; }
