/* ------------------------------------------------------------------ */
/* Pod Tracker — Leptos/Axum web shell                                 */
/* Dark-first palette aligned with GitHub Primer dark theme.           */
/* Dark is default; users opt in to light via the topbar toggle.       */
/* ------------------------------------------------------------------ */

:root,
[data-theme="dark"] {
  color-scheme: dark;

  --canvas: #0d1117;
  --canvas-subtle: #010409;
  --canvas-inset: #010409;
  --canvas-overlay: rgba(13, 17, 23, 0.82);

  --panel: #151b23;
  --panel-warm: #1c2128;
  --surface: #161b22;
  --surface-strong: #21262d;

  --line: #30363d;
  --line-strong: #444c56;
  --border-muted: #21262d;

  --ink: #e6edf3;
  --ink-strong: #f0f6fc;
  --muted: #9198a1;
  --soft: #7d8590;

  --accent: #2f81f7;
  --accent-strong: #58a6ff;
  --accent-bg: rgba(56, 139, 253, 0.15);
  --accent-ring: rgba(56, 139, 253, 0.4);

  --success: #3fb950;
  --success-strong: #56d364;
  --success-bg: rgba(46, 160, 67, 0.15);

  --blue: #58a6ff;
  --blue-bg: rgba(56, 139, 253, 0.15);
  --amber: #e3b341;
  --amber-bg: rgba(187, 128, 9, 0.15);
  --rose: #ff7b72;
  --danger-bg: rgba(248, 81, 73, 0.15);
  --danger-line: rgba(248, 81, 73, 0.4);

  --code-bg: #010409;
  --code-ink: #e6edf3;

  --shadow-sm: 0 1px 0 rgba(1, 4, 9, 0.45);
  --shadow-md: 0 8px 24px rgba(1, 4, 9, 0.55);
  --shadow-lg: 0 16px 48px rgba(1, 4, 9, 0.65);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

[data-theme="light"] {
  color-scheme: light;

  --canvas: #ffffff;
  --canvas-subtle: #f6f8fa;
  --canvas-inset: #eaeef2;
  --canvas-overlay: rgba(255, 255, 255, 0.85);

  --panel: #ffffff;
  --panel-warm: #f6f8fa;
  --surface: #f6f8fa;
  --surface-strong: #eaeef2;

  --line: #d1d9e0;
  --line-strong: #b1bac4;
  --border-muted: #d8dee4;

  --ink: #1f2328;
  --ink-strong: #1f2328;
  --muted: #59636e;
  --soft: #6e7781;

  --accent: #0969da;
  --accent-strong: #0550ae;
  --accent-bg: rgba(9, 105, 218, 0.08);
  --accent-ring: rgba(9, 105, 218, 0.3);

  --success: #1a7f37;
  --success-strong: #116329;
  --success-bg: rgba(31, 136, 61, 0.1);

  --blue: #0969da;
  --blue-bg: rgba(9, 105, 218, 0.08);
  --amber: #9a6700;
  --amber-bg: rgba(154, 103, 0, 0.1);
  --rose: #cf222e;
  --danger-bg: rgba(207, 34, 46, 0.08);
  --danger-line: rgba(207, 34, 46, 0.35);

  --code-bg: #0d1117;
  --code-ink: #e6edf3;

  --shadow-sm: 0 1px 0 rgba(31, 35, 40, 0.04);
  --shadow-md: 0 3px 6px rgba(140, 149, 159, 0.2);
  --shadow-lg: 0 8px 24px rgba(140, 149, 159, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code,
kbd,
samp {
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.92em;
}

pre {
  margin: 0;
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
}

/* Scrollbar — matches the canvas, unobtrusive in dark mode */
* {
  scrollbar-color: var(--line-strong) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  background-color: var(--line-strong);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Accessibility / skip link                                           */
/* ------------------------------------------------------------------ */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/* Topbar                                                              */
/* ------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border-muted);
  padding: 0 max(20px, calc((100vw - 1240px) / 2));
  background: var(--canvas-overlay);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--ink-strong);
  font-weight: 700;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink-strong);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent-strong) 0, var(--accent) 100%);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.main-nav a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  transition:
    color 0.12s ease,
    background-color 0.12s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink-strong);
  background: var(--surface-strong);
  text-decoration: none;
}

/* Top-right actions cluster: account button + theme toggle */
.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 12px;
  border-left: 1px solid var(--border-muted);
}

.nav-login {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  color: var(--ink);
  background: var(--panel);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.12s ease,
    background-color 0.12s ease,
    color 0.12s ease;
}

.nav-login:hover,
.nav-login:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink-strong);
  text-decoration: none;
}

/* Theme toggle button in topbar */
.theme-toggle {
  display: inline-grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  color: var(--muted);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    background-color 0.12s ease,
    color 0.12s ease,
    transform 0.12s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink-strong);
  background: var(--surface-strong);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle .theme-icon {
  width: 16px;
  height: 16px;
  display: none;
}

/* Default (no theme attr) and dark: show sun (click → switch to light). */
.theme-toggle .icon-sun {
  display: block;
}
.theme-toggle .icon-moon {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* ------------------------------------------------------------------ */
/* Shell / layout                                                      */
/* ------------------------------------------------------------------ */

.shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.home-shell {
  padding-top: 32px;
}

.auth-shell {
  width: min(560px, calc(100% - 40px));
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  display: grid;
  min-height: 460px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 56px;
  padding-bottom: 40px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.lede {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.body-copy {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-metrics {
  display: grid;
  max-width: 640px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.hero-metrics div,
.ops-strip div,
.console-matrix div,
.pod-stack article,
.status-list div {
  min-width: 0;
  background: var(--panel);
}

.hero-metrics div {
  padding: 14px 16px;
}

.hero-metrics dt,
.ops-strip span,
.section-heading span,
.status-list dt,
.console-header span,
.console-matrix span,
.pod-stack span {
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.button,
button {
  display: inline-flex;
  width: max-content;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    background-color 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease;
}

.button:hover,
button:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  text-decoration: none;
}

.button:focus-visible,
button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.button.primary,
button.primary {
  border-color: rgba(240, 246, 252, 0.1);
  color: #ffffff;
  background: var(--success-strong);
}

[data-theme="light"] .button.primary,
[data-theme="light"] button.primary {
  border-color: rgba(31, 35, 40, 0.15);
  background: #1f883d;
}

.button.primary:hover,
button.primary:hover {
  border-color: rgba(240, 246, 252, 0.15);
  background: var(--success);
}

[data-theme="light"] .button.primary:hover,
[data-theme="light"] button.primary:hover {
  background: #1a7f37;
}

.button.secondary,
button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--panel);
}

.button.secondary:hover,
button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.button.ghost {
  border-color: transparent;
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.button.ghost:hover,
.button.ghost:focus-visible {
  border-color: transparent;
  background: var(--accent-bg);
  color: var(--accent-strong);
}

/* ------------------------------------------------------------------ */
/* Event console preview (home hero)                                   */
/* ------------------------------------------------------------------ */

.event-console {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow-md);
}

.console-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 14px;
}

.console-header strong {
  display: block;
  margin-top: 6px;
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 600;
}

.status-pill,
.badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--success-strong);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--success);
  background: var(--success-bg);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="light"] .status-pill,
[data-theme="light"] .badge {
  border-color: rgba(31, 136, 61, 0.4);
  color: var(--success-strong);
}

.console-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.console-matrix div {
  padding: 14px;
}

.console-matrix strong {
  display: block;
  margin-top: 6px;
  color: var(--ink-strong);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.pod-stack {
  display: grid;
  gap: 8px;
}

.pod-stack article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.12s ease;
}

.pod-stack article:hover {
  border-color: var(--line-strong);
}

.pod-stack strong {
  display: block;
  margin-top: 6px;
  color: var(--ink-strong);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ------------------------------------------------------------------ */
/* Ops strip                                                           */
/* ------------------------------------------------------------------ */

.ops-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.ops-strip div {
  padding: 18px;
}

.ops-strip strong {
  display: block;
  margin-top: 6px;
  color: var(--ink-strong);
  font-weight: 600;
  line-height: 1.35;
}

/* ------------------------------------------------------------------ */
/* Page headers                                                        */
/* ------------------------------------------------------------------ */

.page-header {
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.page-header.compact {
  max-width: 760px;
}

.page-header h1,
.form-panel h1,
.auth-panel h1 {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: end;
}

.dashboard-header .actions {
  margin-top: 0;
}

/* ------------------------------------------------------------------ */
/* Panels                                                              */
/* ------------------------------------------------------------------ */

.workspace-panel,
.auth-panel,
.form-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.auth-panel {
  margin: 20px auto 0;
}

.auth-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-note a {
  color: var(--accent);
  font-weight: 600;
}

.section-gap {
  margin-top: 32px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 28px;
  align-items: start;
}

.split-layout.wide-left {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
}

.pod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 22px;
  align-items: start;
}

.pod-panel {
  display: grid;
  gap: 16px;
}

/* ------------------------------------------------------------------ */
/* Lists                                                               */
/* ------------------------------------------------------------------ */

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.12s ease,
    background-color 0.12s ease;
}

.list-item:hover {
  border-color: var(--line-strong);
  background: var(--panel-warm);
}

.workspace-panel .list-item,
.panel .list-item {
  background: var(--panel-warm);
}

.workspace-panel .list-item:hover,
.panel .list-item:hover {
  background: var(--surface-strong);
}

.list-item a {
  color: var(--accent-strong);
  text-decoration: none;
}

.list-item a:hover {
  text-decoration: underline;
}

.list-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.empty-state {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  color: var(--muted);
  background: var(--panel-warm);
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.form-panel {
  display: grid;
  gap: 18px;
  align-self: start;
}

.wide-form {
  max-width: 840px;
}

.stack {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.form-panel fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--panel);
}

.form-panel legend {
  padding: 0 6px;
  color: var(--ink-strong);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-panel label,
.stack label,
.search-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.form-panel input,
.form-panel select,
.form-panel textarea,
.stack input,
.search-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--ink);
  background: var(--canvas-subtle);
  font-weight: 400;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

[data-theme="light"] .form-panel input,
[data-theme="light"] .form-panel select,
[data-theme="light"] .form-panel textarea,
[data-theme="light"] .stack input,
[data-theme="light"] .search-form input {
  background: var(--panel);
}

.form-panel input::placeholder,
.form-panel textarea::placeholder,
.stack input::placeholder,
.search-form input::placeholder {
  color: var(--soft);
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus,
.stack input:focus,
.search-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  background: var(--canvas);
}

.form-panel textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.check-grid label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.check-grid input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.search-form {
  display: grid;
  max-width: 680px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 22px;
}

/* ------------------------------------------------------------------ */
/* Status / definition lists                                           */
/* ------------------------------------------------------------------ */

.status-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  max-width: 660px;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.status-list div {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 16px;
}

.status-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 600;
}

.health-list dd {
  color: var(--success);
}

[data-theme="light"] .health-list dd {
  color: var(--success-strong);
}

.compact-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.compact-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 10px;
}

.compact-list dt {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 600;
}

.location-block {
  display: grid;
  gap: 10px;
  max-width: 660px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--canvas-subtle);
}

.location-block h2 {
  font-size: 1rem;
  font-weight: 600;
}

.location-block address {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.location-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Inline / pod move forms                                             */
/* ------------------------------------------------------------------ */

.inline-form {
  margin-top: 20px;
}

.actions .inline-form,
.pod-panel .inline-form {
  margin-top: 0;
}

.move-form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 72px auto;
  gap: 8px;
  align-items: center;
}

.move-form select,
.move-form input {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  color: var(--ink);
  background: var(--canvas-subtle);
}

[data-theme="light"] .move-form select,
[data-theme="light"] .move-form input {
  background: var(--panel);
}

.form-error {
  margin: 0;
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--rose);
  background: var(--danger-bg);
  font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* Selection                                                           */
/* ------------------------------------------------------------------ */

::selection {
  background: var(--accent-bg);
  color: var(--ink-strong);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero,
  .dashboard-header,
  .split-layout,
  .split-layout.wide-left,
  .ops-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    gap: 28px;
  }

  .dashboard-header .actions {
    margin-top: 22px;
  }

  .move-form {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3rem;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .main-nav {
    width: 100%;
    gap: 4px;
  }

  .main-nav a {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  .topbar-actions {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border-muted);
    padding-top: 12px;
    justify-content: space-between;
  }

  .nav-login {
    flex: 1;
    justify-content: center;
  }

  .shell,
  .auth-shell {
    width: min(100% - 28px, 1180px);
    padding: 32px 0 44px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .page-header h1,
  .form-panel h1,
  .auth-panel h1 {
    font-size: 1.9rem;
  }

  .lede {
    font-size: 1rem;
  }

  .hero-metrics,
  .console-matrix,
  .field-grid,
  .check-grid,
  .search-form,
  .status-list div {
    grid-template-columns: 1fr;
  }

  .actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  button {
    width: 100%;
    min-height: 36px;
  }

  .workspace-panel,
  .auth-panel,
  .form-panel,
  .panel {
    padding: 18px;
  }

  .list-item {
    grid-template-columns: minmax(0, 1fr);
  }
}
