@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --brand: #5b55f7;
  --brand-700: #4d47e7;
  --brand-900: #3732c8;
  --brand-soft: #ecebff;
  --brand-soft-bd: #dcdaff;
  --brand-050: #f5f4ff;
  --brand-tint: rgba(86, 79, 255, 0.08);
  --brand-ring: 0 0 0 3px rgba(91, 85, 247, 0.1);

  --ink-900: #1f2130;
  --ink-700: #272a39;
  --ink-600: #55596d;
  --ink-500: #6f7387;
  --ink-400: #9599aa;

  --line: #e5e7ef;
  --line-soft: #eff0f5;
  --line-strong: #d7d9e5;

  --page: #f6f7fb;
  --paper: #ffffff;
  --paper-200: #fafaff;
  --head: #fafafe;

  --ok-fg: #0f7b5c;
  --ok-bg: #e6f7f0;
  --ok-bd: #cceee1;
  --ok-dot: #15966f;
  --warn-fg: #936300;
  --warn-bg: #fff4d8;
  --warn-bd: #f2dfad;
  --warn-dot: #d69a1b;
  --danger-fg: #b8324c;
  --danger-bg: #ffe9ee;
  --danger-bd: #f8ccd5;
  --danger-dot: #d64a65;
  --info-fg: #2d62b0;
  --info-bg: #e8f0ff;
  --info-bd: #d4e2fb;
  --info-dot: #2d6ecf;
  --move-fg: #6b43b7;
  --move-bg: #f0e9ff;
  --move-bd: #e1d4fb;
  --move-dot: #8a63d2;
  /* #6f7382 sobre #f1f2f6 da 4.2:1; se oscurece para AA en chips de 10.5px. */
  --neutral-fg: #5d6170;
  --neutral-bg: #f1f2f6;
  --neutral-bd: #e5e6ec;
  --neutral-dot: #9599aa;
  --teal-fg: #0f777b;
  --teal-bg: #e4f6f6;
  --teal-bd: #cdebea;

  --radius-card: 14px;
  --radius-control: 10px;
  --shadow-hover: 0 6px 18px rgba(40, 43, 70, 0.08);

  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--page); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink-900);
  font: 14px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-ui); color: var(--ink-900); }
h1 { font-size: 24px; font-weight: 850; letter-spacing: -0.025em; line-height: 1.2; }
h2 { font-size: 14px; font-weight: 850; letter-spacing: -0.01em; }
h3 { font-size: 13px; font-weight: 800; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--paper-200); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
ol, ul { margin: 0; padding-left: 1.2rem; color: var(--ink-600); }
li + li { margin-top: 4px; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: var(--ink-900);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
button:hover, .button:hover { background: var(--brand-700); }
button svg, .button svg { width: 15px; height: 15px; flex: 0 0 auto; }

button.secondary, .button.secondary {
  background: var(--paper);
  color: var(--ink-700);
  border-color: var(--line-strong);
}
button.secondary:hover, .button.secondary:hover { border-color: var(--brand-soft-bd); color: var(--brand-700); background: var(--paper); }

button.danger {
  background: var(--paper);
  color: var(--danger-fg);
  border-color: var(--danger-bd);
}
button.danger:hover { background: var(--danger-bg); }

button.ghost {
  background: transparent;
  color: var(--ink-600);
  border-color: transparent;
}
button.ghost:hover { background: var(--brand-050); color: var(--brand-700); }

button.small { min-height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }

button:disabled, button:disabled:hover {
  background: var(--neutral-bg);
  color: var(--ink-500);
  border-color: var(--neutral-bd);
  cursor: not-allowed;
}

.iconbtn {
  width: 38px;
  min-height: 38px;
  padding: 0;
  background: var(--paper);
  color: var(--ink-600);
  border-color: var(--line);
}
.iconbtn:hover { background: var(--brand-050); color: var(--brand-700); border-color: var(--brand-soft-bd); }
.iconbtn svg { width: 17px; height: 17px; }

/* Campos */
label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-600);
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-700);
}

input, select, textarea {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink-900);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: var(--ink-500); }
input:focus, select:focus, textarea:focus, input:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--brand-ring);
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--brand);
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7387' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px;
  cursor: pointer;
}

/* Login */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.login-card {
  width: min(440px, 100%);
  padding: 28px;
  display: grid;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.login-card .lede { font-size: 13px; }
.login details { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.login summary { cursor: pointer; font-size: 13px; font-weight: 750; color: var(--ink-600); }
.login summary:hover { color: var(--brand-700); }
.login details[open] summary { margin-bottom: 12px; }
.divider { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Marca */
.brand { display: flex; align-items: center; gap: 11px; }
.brand .hex { flex: 0 0 auto; filter: drop-shadow(0 6px 14px rgba(91, 85, 247, 0.28)); }
.wm { display: flex; align-items: center; gap: 9px; }
.wm .nm { font-size: 19px; font-weight: 850; letter-spacing: -0.02em; color: var(--ink-900); }
.wm .sep { width: 1px; height: 16px; background: var(--line-strong); }
.wm .hv { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-700); }

/* Armazón */
.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--page); }

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  padding: 0 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.appbar-right { display: flex; align-items: center; gap: 12px; }

.profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.profile .pav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9e8ff;
  border: 1px solid var(--brand-soft-bd);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 800;
}
.profile .pi { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.profile .pn { font-size: 13px; font-weight: 800; color: var(--ink-900); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile .pc { font-size: 11.5px; font-weight: 650; color: var(--ink-500); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--page);
}
.seg button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-600);
  font-size: 12px;
}
.seg button:hover { background: var(--paper); color: var(--brand-700); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--brand-700); border-color: var(--brand-soft-bd); }

.shell { flex: 1; display: flex; align-items: stretch; min-height: 0; }

.rail {
  position: sticky;
  top: 62px;
  flex: 0 0 72px;
  height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 0;
  background: var(--paper);
  border-right: 1px solid var(--line);
}
.rail-sep { width: 28px; height: 1px; margin: 8px 0; background: var(--line); }
.rail-end { margin-top: auto; }

.navbtn {
  position: relative;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-500);
}
.navbtn svg { width: 20px; height: 20px; }
.navbtn:hover { background: #f2f2ff; color: var(--brand); }
.navbtn.active, .navbtn[aria-current="page"] { background: var(--brand-050); color: var(--brand); }
.navbtn.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 11px;
  width: 4px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}
.navbtn::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate(-4px, -50%);
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--ink-900);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 30;
}
.navbtn:hover::after, .navbtn:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

.content { flex: 1; min-width: 0; padding: 22px 26px 44px; display: grid; gap: 16px; align-content: start; }
.content > * { max-width: 1240px; width: 100%; }

/* Cabecera de página */
.crumb { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--ink-600); }
.crumb button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 700;
}
.crumb button:hover { color: var(--brand-700); background: none; }
.crumb svg { width: 14px; height: 14px; color: var(--ink-400); }
.crumb .cur { color: var(--ink-900); }

.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-600); margin: 0 0 6px; }
h1.title { font-size: 24px; font-weight: 850; letter-spacing: -0.025em; }
.sub { font-size: 12.5px; color: var(--ink-600); margin: 6px 0 0; max-width: 760px; }
.phead-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--brand-soft-bd);
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 750;
}
.badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* Avisos */
.alerts { display: grid; gap: 8px; }
.alerts:empty { display: none; }
.alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.alert .d { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; flex: 0 0 auto; }
.alert.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-bd); }
.alert.ok .d { background: var(--ok-dot); }
.alert.danger { background: var(--danger-bg); color: var(--danger-fg); border-color: var(--danger-bd); }
.alert.danger .d { background: var(--danger-dot); }
.alert.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-bd); }
.alert.warn .d { background: var(--warn-dot); }
.alert.info { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-bd); }
.alert.info .d { background: var(--info-dot); }

/* Tarjetas */
.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--brand-soft-bd); box-shadow: var(--shadow-hover); }
.card.clickable { width: 100%; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; min-height: 0; border-radius: var(--radius-card); }
.card.clickable:hover { background: var(--paper); transform: translateY(-1px); }
.card .bh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.card .bt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 850; letter-spacing: -0.01em; color: var(--ink-900); }
.card .bt svg { width: 16px; height: 16px; color: var(--brand-700); flex: 0 0 auto; }
.card .bs { font-size: 11.5px; color: var(--ink-500); margin: 4px 0 0; line-height: 1.4; }
.card .bhr { display: flex; align-items: center; gap: 8px; }
.card .bb { padding: 14px 16px; display: grid; gap: 12px; align-content: start; }
.card .bb.flush { padding: 0; }
.card .chev { display: flex; color: var(--ink-400); }
.card .chev svg { width: 16px; height: 16px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 16px; align-items: start; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.row > label { flex: 1 1 220px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.muted, .lede { color: var(--ink-600); font-size: 13px; }
.note { color: var(--ink-500); font-size: 11.5px; line-height: 1.45; }
.strong { font-weight: 750; color: var(--ink-900); }

.cbadge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--brand-soft-bd);
  border-radius: 999px;
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.pid {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid var(--brand-soft-bd);
  border-radius: 6px;
  background: var(--brand-050);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; }
.kpi .k { font-size: 10px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-600); margin: 0 0 8px; }
.kpi .v { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); line-height: 1; }
.kpi .v.empty { color: var(--ink-500); }
.kpi .s { font-size: 11px; font-weight: 600; color: var(--ink-500); margin-top: 6px; }

/* Chips de estado */
.stc, .cancha {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.5;
  white-space: nowrap;
}
.stc .d { width: 5px; height: 5px; border-radius: 50%; flex: 0 0 auto; }
.st-ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-bd); }
.st-ok .d { background: var(--ok-dot); }
.st-warn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-bd); }
.st-warn .d { background: var(--warn-dot); }
.st-danger { background: var(--danger-bg); color: var(--danger-fg); border-color: var(--danger-bd); }
.st-danger .d { background: var(--danger-dot); }
.st-info { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-bd); }
.st-info .d { background: var(--info-dot); }
.st-move { background: var(--move-bg); color: var(--move-fg); border-color: var(--move-bd); }
.st-move .d { background: var(--move-dot); }
.st-neutral { background: var(--neutral-bg); color: var(--neutral-fg); border-color: var(--neutral-bd); }
.st-neutral .d { background: var(--neutral-dot); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.cancha svg { width: 11px; height: 11px; }
.ca-ancient { background: var(--brand-050); color: var(--brand-700); border-color: var(--brand-soft-bd); }
.ca-cliente { background: var(--teal-bg); color: var(--teal-fg); border-color: var(--teal-bd); }

/* Tablas */
.tblwrap { overflow-x: auto; }
.tbl, table { width: 100%; border-collapse: collapse; }
.tbl thead th {
  text-align: left;
  padding: 10px 14px;
  background: var(--head);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-600);
  white-space: nowrap;
}
.tbl td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-700);
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--paper-200); }
.tbl td.actions { text-align: right; white-space: nowrap; }
.tbl .who { display: grid; gap: 1px; }
.tbl .who b { font-weight: 750; color: var(--ink-900); }
.tbl .who span { color: var(--ink-500); font-size: 11.5px; }
.tbl .empty td { color: var(--ink-500); text-align: center; padding: 22px 14px; }
.tbl form.row { flex-wrap: nowrap; align-items: center; }
.tbl form.row select { min-width: 200px; min-height: 32px; font-size: 12.5px; }

/* Origen de datos y pasos */
.map { display: grid; }
.map > div {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
}
.map > div:first-child { border-top: 0; }
.map strong { font-size: 13px; font-weight: 800; }
.val { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--ink-700); word-break: break-all; }
.val.none { font-family: var(--font-ui); color: var(--ink-500); font-weight: 500; }

.steps { margin: 0; padding: 0; display: grid; }
.steps li {
  list-style: none;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
}
.steps li:first-child { border-top: 0; }
.steps i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--brand-soft-bd);
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
}
.steps h2 { font-size: 13.5px; }
.steps p { font-size: 12.5px; }

.tracklist { list-style: none; margin: 0; padding: 0; display: grid; }
.tracklist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 700; color: var(--ink-900); }
.tracklist li:last-child { border-bottom: 0; }
.tracklist .top { display: flex; align-items: center; gap: 9px; min-width: 0; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields .wide { grid-column: 1 / -1; }
.fields-title { grid-column: 1 / -1; font-size: 11px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); padding-top: 4px; border-top: 1px solid var(--line-soft); }
.fields-title:first-child { border-top: 0; padding-top: 0; }

.empty-state { padding: 26px 18px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty-state .muted { max-width: 460px; }

.program-card .acct { font-size: 11px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 4px; }
.program-card .pname { font-size: 15px; font-weight: 850; letter-spacing: -0.015em; color: var(--ink-900); }
.program-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

@media (max-width: 960px) {
  .split, .fields { grid-template-columns: 1fr; }
  .map > div { grid-template-columns: 1fr; gap: 4px; }
  .profile .pi { display: none; }
  .content { padding: 18px 16px 40px; }
}

@media (max-width: 640px) {
  .appbar { padding: 0 12px; gap: 8px; }
  .appbar .wm { display: none; }
  .appbar-right { gap: 8px; }
  .profile { padding: 4px; border-radius: 50%; }
  .rail { flex-basis: 60px; }
  .navbtn.active::before { left: -8px; }
  .steps li { grid-template-columns: 30px 1fr; }
  .steps li > .chips, .steps li > .stc { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
