/* Election Atlas: offline type, light surfaces and task-first hierarchy. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/releases/a013935e253d93a0a204aa9bde31333f1722d67502a82f01e3ba18c795f86a98/assets/fonts/dm-sans-400.ttf') format('truetype');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/releases/a013935e253d93a0a204aa9bde31333f1722d67502a82f01e3ba18c795f86a98/assets/fonts/dm-sans-500.ttf') format('truetype');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/releases/a013935e253d93a0a204aa9bde31333f1722d67502a82f01e3ba18c795f86a98/assets/fonts/dm-sans-600.ttf') format('truetype');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/releases/a013935e253d93a0a204aa9bde31333f1722d67502a82f01e3ba18c795f86a98/assets/fonts/dm-sans-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/releases/a013935e253d93a0a204aa9bde31333f1722d67502a82f01e3ba18c795f86a98/assets/fonts/sora-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/releases/a013935e253d93a0a204aa9bde31333f1722d67502a82f01e3ba18c795f86a98/assets/fonts/sora-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/releases/a013935e253d93a0a204aa9bde31333f1722d67502a82f01e3ba18c795f86a98/assets/fonts/sora-600.ttf') format('truetype');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/releases/a013935e253d93a0a204aa9bde31333f1722d67502a82f01e3ba18c795f86a98/assets/fonts/ibm-plex-mono-400.ttf') format('truetype');
}

:root {
  color-scheme: light;
  --ink: #263e34;
  --muted: #5c6b61;
  --subtle: #6b786e;
  --green: #244b3b;
  --green-dark: #193c2d;
  --lime: #e0efb8;
  --bg: #fffefb;
  --paper: #fffefb;
  --surface: #fffefb;
  --ground: #f2f4ec;
  --map: #e9eee2;
  --line: #dce2d7;
  --control-line: #7c8978;
  --control-hover: #6f846e;
  --verified: #386f50;
  --verified-bg: #edf5e5;
  --amber: #865d1e;
  --amber-bg: #fbf2df;
  --amber-line: #e6d6b6;
  --red: #a04433;
  --red-bg: #fcf0eb;
  --red-line: #e6c9bf;
  --blue: #426caa;
  --blue-bg: #edf2fa;
  --on-accent: #fffefb;
  --shadow: 0 12px 40px rgb(38 62 52 / 9%);
  --scrim: rgb(38 62 52 / 28%);
  --radius: 12px;
  --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'DM Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: var(--font-body);
  color: var(--ink);
  font-synthesis: none;
  font-weight: 400;
  font-size: 15px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  min-height: 44px;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

button {
  color: inherit;
  min-height: 44px;
}

h1,h2,h3,h4,p {
  margin: 0;
}

button svg,.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.7;
}

h1,h2,h3,.number {
  font-family: var(--font-display);
  font-weight: 400;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 99;
  background: white;
  padding: 12px;
}

.skip-link:focus {
  top: 10px;
}

.boot {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100dvh;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.boot h1 {
  font-size: 24px;
}

.boot p {
  color: var(--muted);
}

.boot-mark {
  width: 38px;
  height: 38px;
  background: var(--lime);
  border-radius: 10px;
}

.shell {
  display: grid;
  grid-template-columns: 228px minmax(0,1fr);
  min-height: 100dvh;
}

.sidebar {
  background: var(--ground);
  color: var(--ink);
  position: fixed;
  top: 0;
  bottom: auto;
  left: 0;
  width: 228px;
  display: flex;
  flex-direction: column;
  z-index: 30;
  padding: calc(26px + env(safe-area-inset-top, 0px)) 17px calc(20px + env(safe-area-inset-bottom, 0px)) max(17px, env(safe-area-inset-left, 0px));
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 7px 28px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.brand img {
  width: 37px;
  height: 37px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  letter-spacing: -.045em;
  font-weight: 500;
  font-size: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: .01em;
  font-size: 12px;
  text-transform: none;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.5;
}

.sidebar-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .07em;
  padding: 0 12px;
  margin: 21px 0 9px;
  font-family: var(--font-mono);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  margin: 2px 0;
  text-align: left;
  font-size: 13px;
  min-height: 46px;
  line-height: 1.45;
}

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover {
    background: var(--paper);
    color: var(--ink);
  }
}

.nav-item.active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 2px 0 var(--green);
}

.nav-item .nav-count {
  margin-left: auto;
  font-size: 12px;
  background: var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--ink);
  font-family: var(--font-mono);
}

.nav-item.active .nav-count {
  background: var(--lime);
}

.sidebar-spacer {
  flex: 1 0 12px;
}

.sidebar-note {
  border: 0;
  border-radius: 0;
  padding: 18px 4px 0;
  margin: 28px 8px 22px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
}

.sidebar-note strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .1px;
  color: var(--ink);
  font-weight: 500;
}

.sidebar-note p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}

.identity {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 18px 8px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}

.avatar {
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
  color: var(--ink);
  font-family: var(--font-mono);
}

.identity small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-wrap {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  height: auto;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(42px, env(safe-area-inset-right, 0px)) 10px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
}

.breadcrumb {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.breadcrumb span:last-child {
  color: var(--ink);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
}

.topbar-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  border: 0;
  padding: 6px 0;
  background: transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.4;
  max-width: 100%;
  min-width: 0;
  font-family: var(--font-mono);
}

.little-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verified);
  display: inline-block;
  flex-shrink: 0;
}

.topbar-link {
  display: flex;
  gap: 6px;
  align-items: center;
  text-decoration: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  min-height: 44px;
  line-height: 1.4;
}

@media (hover: hover) and (pointer: fine) {
  .topbar-link:hover {
    color: var(--green);
  }
}

.mobile-menu {
  display: none;
}

.main {
  padding: 36px 42px 32px;
  max-width: 1540px;
  margin: auto;
  min-width: 0;
  padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  padding-right: max(42px, env(safe-area-inset-right, 0px));
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 30px;
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 400;
  margin-bottom: 11px;
  font-family: var(--font-mono);
}

.page-heading h1 {
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -.055em;
}

.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.65;
  max-width: 62ch;
}

.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 1;
  flex-wrap: wrap;
  max-width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid var(--control-line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  min-height: 46px;
  text-decoration: none;
  white-space: normal;
  min-width: 44px;
  max-width: 100%;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--ground);
    border-color: var(--control-line);
  }
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-accent);
}

@media (hover: hover) and (pointer: fine) {
  .button.primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
  }
}

.button.quiet {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.button.danger {
  border-color: var(--red-line);
  color: var(--red);
  background: var(--paper);
}

.button.small {
  padding: 7px 10px;
  min-height: 44px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.icon-button {
  border: 1px solid var(--line);
  background: var(--paper);
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .icon-button:hover {
    background: var(--ground);
  }
}

.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.select-wrap {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
}

.select-wrap select {
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 32px 10px 12px;
  appearance: none;
  font-size: 16px;
  color: var(--ink);
  min-height: 48px;
  max-width: min(300px, 100%);
  min-width: 0;
  width: 100%;
}

.select-wrap>svg {
  position: absolute;
  right: 10px;
  pointer-events: none;
  width: 13px;
  height: 13px;
}

.filter-caption {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  margin-bottom: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 5px 22px;
  border-right: 1px solid var(--line);
}

.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}

.metric-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}

.metric-icon svg {
  width: 15px;
  height: 15px;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 10px;
  font-size: 35px;
  letter-spacing: -.045em;
  font-weight: 400;
  line-height: 1.1;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

.metric-value span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--subtle);
  font-weight: 400;
  letter-spacing: 0;
}

.metric-note {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.5;
}

.metric-note.green {
  color: var(--green);
}

.metric-note.amber {
  color: var(--amber);
}

.metric-note.red {
  color: var(--red);
}

.mini-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--ground);
  margin-top: 17px;
  overflow: hidden;
  display: none;
}

.mini-bar span {
  display: block;
  height: 100%;
  background: var(--verified);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0,1.75fr) minmax(290px,1fr);
  gap: 22px;
  align-items: stretch;
}

.panel {
  background: var(--paper);
  border: 0;
  border-radius: 0;
  overflow: visible;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 23px 22px 20px;
  gap: 15px;
  flex-wrap: wrap;
}

.panel-header h2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.035em;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.45;
  flex-wrap: wrap;
  min-width: 0;
}

.panel-header p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}

.tiny-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .06em;
  font-family: var(--font-mono);
}

.map-panel {
  display: flex;
  flex-direction: column;
  background: var(--map);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.map-wrap {
  min-height: 305px;
  position: relative;
  background: var(--map);
  border-top: 0;
  flex: 1;
  overflow: hidden;
}

.map-wrap:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) .7px,transparent .7px);
  background-size: 18px 18px;
  opacity: .34;
  pointer-events: none;
  display: none;
}

.map-svg {
  display: block;
  width: 100%;
  height: 345px;
  position: relative;
  z-index: 1;
}

.map-state {
  stroke: #fff;
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
  transition: none;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .map-state:hover {
    fill: #b8cfa5!important;
    outline: 0;
    stroke: var(--green);
    stroke-width: 2;
  }
}

.map-state:focus-visible {
  fill: #b8cfa5!important;
  outline: 0;
  stroke: var(--green);
  stroke-width: 2;
}

.map-state.selected {
  stroke: var(--green);
  stroke-width: 2.3;
}

.map-unit {
  cursor: pointer;
  stroke: white;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

@media (hover: hover) and (pointer: fine) {
  .map-unit:hover {
    stroke: var(--ink);
    stroke-width: 3;
    outline: 0;
  }
}

.map-unit:focus-visible {
  stroke: var(--ink);
  stroke-width: 3;
  outline: 0;
}

.map-text {
  font-family: var(--font-body);
  font-size: 12px;
  fill: var(--muted);
  pointer-events: none;
}

.map-label {
  font-size: 12px;
  fill: var(--ink);
  font-weight: 500;
  paint-order: stroke;
  stroke: var(--map);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.map-controls {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.map-corner {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 15px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
}

.map-tip {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 18px;
  font-size: 12px;
  color: var(--ink);
  background: var(--paper);
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  max-width: 70%;
  pointer-events: none;
}

.map-legend {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  background: var(--paper);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.verified {
  background: var(--verified);
}

.legend-dot.pending {
  background: var(--amber);
}

.legend-dot.flagged {
  background: var(--red);
}

.legend-dot.missing {
  background: var(--red);
}

.legend-dot.queued {
  background: var(--blue);
}

.priority-item {
  display: flex;
  gap: 11px;
  padding: 18px 22px;
  border-top: 1px solid var(--ground);
  cursor: pointer;
  align-items: flex-start;
}

@media (hover: hover) and (pointer: fine) {
  .priority-item:hover {
    background: var(--ground);
  }
}

.priority-symbol {
  width: 24px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
  background: transparent;
  color: var(--amber);
}

.priority-symbol.flagged {
  background: transparent;
  color: var(--red);
}

.priority-item h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 4px;
  font-family: var(--font-body);
}

.priority-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.priority-item .arrow {
  margin-left: auto;
  align-self: center;
  color: var(--subtle);
}

.priority-footer {
  padding: 15px 22px;
  border-top: 1px solid var(--line);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.5;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  min-width: 44px;
}

@media (hover: hover) and (pointer: fine) {
  .text-button:hover {
    text-decoration: underline;
  }
}

.coverage-ribbon {
  display: flex;
  gap: 15px;
  align-items: center;
  background: var(--ground);
  border: 0;
  border-radius: 7px;
  margin: 0 22px 17px;
  padding: 14px;
}

.coverage-ribbon>svg {
  width: 22px;
  height: 22px;
  color: var(--green);
  flex-shrink: 0;
}

.coverage-ribbon p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.coverage-ribbon strong {
  font-weight: 650;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0,1.75fr) minmax(290px,1fr);
  gap: 22px;
  margin-top: 22px;
}

.table-scroll {
  overflow: auto;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: normal;
  text-align: left;
  min-width: 560px;
}

.data-table thead th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  background: var(--ground);
  padding: 12px 21px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  line-height: 1.4;
}

.data-table td, .data-table tbody th[scope="row"] {
  font-size: 14px;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  line-height: 1.55;
  max-width: 24rem;
  overflow-wrap: anywhere;
}

.data-table tbody tr:last-child :is(td, th) {
  border-bottom: 0;
}

.data-table tbody tr.clickable {
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .data-table tbody tr.clickable:hover {
    background: var(--ground);
  }
}

.data-table strong {
  font-weight: 600;
}

.data-table small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.data-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 0;
  background: transparent;
  color: var(--verified);
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100%;
}

.badge:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge.pending {
  color: var(--amber);
  background: transparent;
}

.badge.flagged {
  color: var(--red);
  background: transparent;
}

.badge.missing {
  color: var(--red);
  background: transparent;
}

.badge.queued {
  color: var(--blue);
  background: transparent;
}

.badge.rejected {
  color: var(--red);
  background: transparent;
}

.badge.changes_requested {
  color: var(--amber);
  background: transparent;
}

.badge.superseded {
  color: var(--muted);
  background: transparent;
}

.status-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.party-summary {
  padding: 0 22px 22px;
}

.party-row {
  margin: 7px 0 19px;
}

.party-row:last-child {
  margin-bottom: 3px;
}

.party-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.party-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.party-square {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--green);
  flex-shrink: 0;
}

.party-count {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.party-count small {
  font-size: 12px;
  font-weight: 400;
  color: var(--subtle);
  margin-left: 8px;
}

.party-bar {
  height: 5px;
  background: var(--ground);
  border-radius: 5px;
  overflow: hidden;
}

.party-bar span {
  height: 100%;
  display: block;
  border-radius: 5px;
}

.summary-foot {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.footer strong {
  font-weight: 500;
}

.footer a {
  color: inherit;
}

.full-table-panel {
  margin-top: 18px;
}

.table-toolbar {
  padding: 18px 21px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  border: 1px solid var(--control-line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--muted);
  max-width: 360px;
  flex: 1;
  min-width: 0;
}

.search-box input {
  border: 0;
  background: transparent;
  padding: 10px 0;
  width: 100%;
  outline: 0!important;
  font-size: 16px;
  color: var(--ink);
  min-width: 0;
  min-height: 44px;
}

.search-box:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.search-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.table-count {
  font-size: 12px;
  color: var(--muted);
}

.empty-state {
  text-align: left;
  padding: 32px 24px;
}

.empty-state>svg {
  width: 25px;
  height: 25px;
  color: var(--muted);
}

.empty-state h3 {
  font-size: 19px;
  margin: 15px 0 9px;
  font-weight: 400;
  letter-spacing: -.025em;
}

.empty-state p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0;
}

.empty-state .button {
  margin-top: 20px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(240px,.72fr) minmax(0,1.7fr);
  gap: 22px;
}

.review-list {
  max-height: 800px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.review-list-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 19px 21px;
  text-align: left;
  background: transparent;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .review-list-item:hover {
    background: var(--ground);
  }
}

.review-list-item.active {
  background: var(--paper);
  box-shadow: inset 2px 0 var(--green);
}

.review-list-item h3 {
  font-size: 14px;
  margin: 8px 0 5px;
  font-family: var(--font-body);
  font-weight: 500;
}

.review-list-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.review-list-item small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
  display: block;
}

.detail-body {
  padding: 0 23px 23px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 20px;
}

.detail-meta dt {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 5px;
}

.detail-meta dd {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.detail-meta dd small {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.detail-section-title {
  font-size: 13px;
  font-weight: 650;
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.check-list {
  display: grid;
  gap: 7px;
}

.check-item {
  display: flex;
  gap: 8px;
  padding: 11px 12px;
  font-size: 13px;
  border-radius: 6px;
  background: var(--verified-bg);
  color: var(--verified);
  line-height: 1.6;
}

.check-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-item.warn {
  background: var(--amber-bg);
  color: var(--amber);
}

.check-item.error {
  background: var(--red-bg);
  color: var(--red);
}

.evidence-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ground);
  padding: 22px;
}

.sample-sheet {
  background: #fff;
  border: 1px solid var(--line);
  max-width: 470px;
  margin: auto;
  padding: 22px;
  font-family: Georgia,serif;
  position: relative;
  color: var(--ink);
  box-shadow: 0 3px 10px #28471b0a;
}

.sample-sheet .sample-stamp {
  text-align: center;
  font-family: var(--font-body);
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  border: 1px solid var(--red-line);
  padding: 7px;
  margin-bottom: 16px;
}

.sample-sheet h4 {
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

.sample-sheet p {
  text-align: center;
  font-size: 12px;
  margin: 8px 0 15px;
  line-height: 1.6;
}

.sample-sheet table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

.sample-sheet td {
  border: 1px solid var(--line);
  padding: 7px;
}

.sample-sheet .sheet-footer {
  font-family: var(--font-body);
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}

.evidence-image {
  display: block;
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  margin: auto;
  cursor: zoom-in;
}

.evidence-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.detail-votes {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.detail-votes table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.detail-votes td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ground);
}

.detail-votes tr:last-child td {
  border: 0;
  background: var(--ground);
  font-weight: 600;
}

.detail-votes td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.review-actions {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 21px;
}

.review-actions .button-group {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-field label {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
}

.form-field label span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.form-field input,.form-field select,.form-field textarea {
  padding: 11px 13px;
  background: var(--paper);
  border: 1px solid var(--control-line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  width: 100%;
  min-width: 0;
  line-height: 1.5;
  min-height: 48px;
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.form-field input[readonly] {
  background: var(--ground);
  color: var(--muted);
}

.form-field .hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.field-error {
  font-size: 13px;
  color: var(--red);
  line-height: 1.7;
}

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

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid .span-2 {
  grid-column: 1/-1;
}

.field-layout {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(265px,.8fr);
  gap: 22px;
}

.field-panel {
  padding: 28px 24px;
}

.steps {
  display: flex;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 23px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}

.step-number {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ground);
  border: 1px solid var(--line);
  font-size: 12px;
  flex-shrink: 0;
}

.step.active {
  color: var(--green);
  font-weight: 600;
}

.step.active .step-number {
  color: var(--on-accent);
  border-color: var(--green);
  background: var(--green);
}

.step.complete .step-number {
  color: var(--green);
  background: var(--ground);
  border-color: var(--line);
}

.form-intro {
  margin-bottom: 24px;
}

.form-intro h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.04em;
}

.form-intro p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 8px;
}

.form-divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 27px;
  gap: 12px;
  flex-wrap: wrap;
}

.capture-guide {
  padding: 21px;
}

.capture-guide h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
  font-family: var(--font-body);
}

.guide-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.guide-item:last-child {
  border: 0;
}

.guide-item>svg {
  width: 18px;
  height: 18px;
  color: var(--verified);
  flex-shrink: 0;
}

.guide-item h4 {
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 5px;
}

.guide-item p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.outbox-card {
  padding: 21px;
  margin-top: 20px;
  background: var(--ground);
}

.outbox-card h3 {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.outbox-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 12px 0 15px;
}

.outbox-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
}

.outbox-item strong {
  font-weight: 550;
}

.outbox-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.upload-zone {
  border: 1px dashed var(--control-line);
  padding: 23px;
  background: var(--ground);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 9px;
  cursor: pointer;
}

.upload-zone>svg {
  width: 25px;
  height: 25px;
  color: var(--verified);
}

.upload-zone strong {
  font-size: 12px;
  font-weight: 550;
}

.upload-zone small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

@media (hover: hover) and (pointer: fine) {
  .upload-zone:hover {
    background: var(--ground);
  }
}

.upload-zone input {
  width: 100%;
  max-width: 290px;
  font-size: 16px;
  margin-top: 8px;
  min-height: 44px;
  min-width: 0;
}

.capture-evidence-preview {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  flex-wrap: wrap;
}

.capture-evidence-preview img {
  width: 60px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.capture-evidence-preview .sample-mini {
  width: 48px;
  height: 57px;
  background: var(--ground);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 8px;
  text-align: center;
  color: var(--muted);
}

.capture-evidence-preview p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.capture-evidence-preview button {
  margin-left: auto;
  flex-shrink: 0;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
  background: var(--ground);
  border: 0;
  color: var(--muted);
  padding: 14px 16px;
  border-radius: 0 7px 7px 0;
  margin: 17px 0;
  overflow-wrap: anywhere;
  border-left: 3px solid var(--control-line);
}

.notice svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.notice.warning {
  background: var(--amber-bg);
  border-color: var(--amber);
  color: var(--amber);
}

.notice.plain {
  background: var(--ground);
  color: var(--muted);
  border-color: var(--line);
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
  min-height: 44px;
  padding: 8px 0;
}

.check-label input {
  margin-top: 4px;
  accent-color: var(--green);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.success-state {
  text-align: left;
  padding: 28px 20px;
}

.success-icon {
  width: 42px;
  height: 42px;
  background: var(--verified-bg);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin: 0 0 20px;
  color: var(--verified);
}

.success-icon svg {
  width: 27px;
  height: 27px;
}

.success-state h2 {
  font-size: 32px;
  letter-spacing: -.045em;
  font-weight: 400;
}

.success-state p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0 20px;
  max-width: 58ch;
}

.receipt-box {
  font-size: 13px;
  border: 0;
  padding: 18px;
  border-radius: 7px;
  margin: 22px 0;
  max-width: 560px;
  color: var(--ink);
  line-height: 1.9;
  overflow-wrap: anywhere;
  text-align: left;
  background: var(--ground);
}

.timeline {
  padding: 0 23px 25px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  gap: 12px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row:last-child {
  border: 0;
}

.timeline-marker {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ground);
  color: var(--verified);
}

.timeline-marker svg {
  width: 15px;
  height: 15px;
}

.timeline-row h3 {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
}

.timeline-row p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.timeline-row time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.phase-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}

.implementation-intro {
  background: var(--ground);
  color: var(--ink);
  padding: 32px;
  border-radius: 10px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  border: 1px solid var(--line);
}

.implementation-intro h2 {
  font-size: 28px;
  letter-spacing: -.04em;
  line-height: 1.4;
  margin: 9px 0 14px;
  font-weight: 400;
}

.implementation-intro p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 670px;
}

.implementation-intro .eyebrow {
  color: var(--muted);
}

.implementation-intro .number {
  font-size: 58px;
  line-height: 1;
  color: var(--ink);
  font-weight: 400;
}

.implementation-intro .number small {
  display: block;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .5px;
  margin-top: 9px;
  white-space: normal;
  font-weight: 400;
}

.scope-list {
  padding: 0 22px 20px;
  display: grid;
}

.scope-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.scope-row svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--verified);
  margin-top: 1px;
}

.scope-row h3 {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
}

.scope-row p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 5px;
}

.scope-row .planned-icon {
  color: var(--subtle);
}

.roadmap-list {
  padding: 0 22px 20px;
}

.roadmap-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.roadmap-no {
  font-size: 12px;
  font-weight: 600;
  color: var(--verified);
  flex-shrink: 0;
  width: 22px;
}

.roadmap-item h3 {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
}

.roadmap-item p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 7px;
}

.source-list {
  padding: 0 22px 23px;
}

.source-list p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 12px;
}

.source-list a {
  font-weight: 550;
}

.source-list code {
  font-size: 12px;
  background: var(--ground);
  padding: 2px 4px;
  border-radius: 3px;
}

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

.decision-card {
  padding: 22px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
}

.decision-card h3 {
  font-size: 15px;
  margin: 11px 0 8px;
  font-family: var(--font-body);
  font-weight: 500;
}

.decision-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.decision-card>svg {
  width: 20px;
  height: 20px;
  color: var(--verified);
}

.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: calc(50% + 80px);
  transform: translateX(-50%);
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 19px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-size: 13px;
  max-width: min(500px, calc(100vw - 32px));
  line-height: 1.6;
  min-width: 220px;
  overflow-wrap: anywhere;
  max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-left: 3px solid var(--verified);
}

.toast.error {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-line);
  border-left-color: var(--red);
}

.toast[hidden] {
  display: none;
}

dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 14px;
  width: min(900px, calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow);
  color: var(--ink);
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 16px;
}

dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(2px);
}

dialog .panel-header {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 3;
  border-bottom: 1px solid var(--line);
  padding: 19px 23px;
}

dialog .detail-body {
  padding-top: 5px;
}

dialog .detail-meta {
  border-top: 0;
}

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

.dialog-layout .detail-meta {
  display: block;
}

.dialog-layout .detail-meta>div {
  margin: 15px 0;
}

.dialog-footer {
  border-top: 1px solid var(--line);
  padding: 17px 23px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.alert-count {
  font-size: 12px;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 3px 6px;
  border-radius: 4px;
}

.code-label {
  font-family: var(--font-mono);
  letter-spacing: .1px;
  font-size: 12px;
}

.skeleton {
  font-size: 12px;
  color: var(--muted);
  padding: 80px 20px;
  text-align: center;
}

.dark-toggle {
  position: relative;
  display: inline-flex;
  width: 29px;
  height: 17px;
  border-radius: 15px;
  background: #9fba83;
  flex-shrink: 0;
}

.dark-toggle:after {
  content: '';
  width: 11px;
  height: 11px;
  background: #fff;
  position: absolute;
  top: 3px;
  right: 3px;
  border-radius: 50%;
}

.note-strip {
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  padding: 10px 22px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.mobile-nav-scrim {
  display: none;
}

.outbox-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 8px;
}

.progress-label {
  font-size: 12px;
  color: var(--muted);
}

.event-highlight {
  color: var(--green);
  font-weight: 550;
}

.content-section {
  margin-top: 22px;
}

.content-heading {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 15px;
}

.choice-chip {
  background: var(--ground);
  border: 0;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 400;
}

.mobile-context {
  display: none;
}

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

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

@media(min-width:1650px) {
  .map-svg {
    height: 405px;
  }
  .map-wrap {
    min-height: 405px;
  }
  .metric {
    padding: 24px;
  }
  .metric-value {
    font-size: 39px;
  }
  .main {
    padding-top: 42px;
  }
  .page-heading h1 {
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 400;
    letter-spacing: -.055em;
  }
}

@media(max-width:1250px) {
  .sidebar {
    width: 216px;
    padding-left: max(15px, env(safe-area-inset-left, 0px));
    padding-right: 15px;
  }
  .shell {
    grid-template-columns: 216px minmax(0,1fr);
  }
  .main {
    padding: 28px max(25px, env(safe-area-inset-right, 0px)) calc(36px + env(safe-area-inset-bottom, 0px)) 25px;
  }
  .topbar {
    padding: calc(12px + env(safe-area-inset-top, 0px)) max(25px, env(safe-area-inset-right, 0px)) 12px 25px;
  }
  .overview-grid,.bottom-grid {
    grid-template-columns: minmax(0,1.5fr) minmax(265px,1fr);
    gap: 17px;
  }
  .metric-grid {
    gap: 0;
  }
  .metric {
    padding: 17px;
  }
  .metric-value {
    font-size: 29px;
  }
  .map-svg {
    height: 340px;
  }
  .data-table th,.data-table td, .data-table tbody th[scope="row"] {
    padding-left: 16px;
    padding-right: 16px;
  }
  .priority-item {
    padding: 16px;
  }
  .panel-header {
    padding-left: 18px;
    padding-right: 18px;
  }
  .coverage-ribbon {
    margin-left: 16px;
    margin-right: 16px;
  }
  .page-heading h1 {
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 400;
    letter-spacing: -.055em;
  }
  .heading-actions .button {
    font-size: 14px;
    padding: 10px 12px;
    min-height: 44px;
  }
  .field-layout {
    grid-template-columns: minmax(0,1.6fr) minmax(240px,.8fr);
  }
}

@media(max-width:1050px) {
  .shell {
    grid-template-columns: 190px minmax(0,1fr);
  }
  .sidebar {
    width: 190px;
    padding: 25px 12px;
    padding-top: calc(25px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(25px + env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
  }
  .brand {
    gap: 8px;
    padding: 0 6px 28px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .brand-text {
    font-size: 14px;
  }
  .brand-text small {
    font-size: 12px;
    letter-spacing: .4px;
  }
  .nav-item {
    font-size: 14px;
    padding: 12px 10px;
    gap: 9px;
    line-height: 1.45;
  }
  .sidebar-label {
    font-size: 12px;
    padding: 0 10px;
  }
  .main {
    padding: 25px max(21px, env(safe-area-inset-right, 0px)) calc(36px + env(safe-area-inset-bottom, 0px)) 21px;
  }
  .topbar {
    height: auto;
    padding: calc(12px + env(safe-area-inset-top, 0px)) max(21px, env(safe-area-inset-right, 0px)) 12px 21px;
    min-height: 70px;
  }
  .overview-grid,.bottom-grid {
    grid-template-columns: 1fr;
  }
  .priority-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .priority-panel>.panel-header {
    grid-column: 1/-1;
  }
  .priority-panel .priority-item {
    border-right: 1px solid var(--line);
    padding: 18px;
  }
  .priority-panel .coverage-ribbon {
    grid-column: 1/-1;
    margin-top: 15px;
  }
  .priority-panel .priority-footer {
    grid-column: 1/-1;
  }
  .metric-value {
    font-size: 25px;
  }
  .metric-grid {
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    padding: 15px 12px;
  }
  .metric-top {
    font-size: 13px;
    align-items: flex-start;
  }
  .metric-note {
    font-size: 12px;
    line-height: 1.5;
  }
  .metric-icon {
    width: 23px;
    height: 23px;
  }
  .metric-note span {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .heading-actions {
    gap: 7px;
  }
  .map-svg {
    height: 355px;
  }
  .field-layout {
    grid-template-columns: 1fr;
  }
  .field-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .outbox-card {
    margin-top: 0;
  }
  .review-layout {
    grid-template-columns: minmax(190px,.66fr) minmax(0,1.4fr);
    gap: 16px;
  }
  .review-list-item {
    padding: 16px;
  }
  .detail-body {
    padding: 0 17px 20px;
  }
  .detail-meta {
    gap: 14px;
  }
  .phase-grid {
    grid-template-columns: 1fr;
  }
  .decision-grid {
    grid-template-columns: 1fr;
  }
  .decision-card {
    padding: 18px;
  }
  .implementation-intro .number {
    font-size: 45px;
  }
  .topbar-tools {
    gap: 10px;
  }
  .topbar-link {
    font-size: 12px;
  }
}

@media(max-width:760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: none;
    width: min(320px, calc(100vw - 28px));
    padding: calc(20px + env(safe-area-inset-top, 0px)) 18px calc(20px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .brand-text {
    font-size: 17px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand-text small {
    font-size: 12px;
  }
  .nav-item {
    font-size: 14px;
    padding: 13px;
    line-height: 1.45;
  }
  .mobile-nav-scrim.show {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--scrim);
    z-index: 29;
  }
  .main-wrap {
    width: 100%;
  }
  .mobile-menu {
    display: grid;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    place-items: center;
    flex-shrink: 0;
    border-radius: 8px;
  }
  .topbar {
    height: auto;
    padding: calc(10px + env(safe-area-inset-top, 0px)) max(19px, env(safe-area-inset-right, 0px)) 10px max(19px, env(safe-area-inset-left, 0px));
    gap: 10px;
    min-height: 64px;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 12px;
  }
  .breadcrumb>svg {
    display: none;
  }
  .breadcrumb .breadcrumb-root {
    display: none;
  }
  .topbar-tools {
    gap: 8px;
  }
  .topbar-link {
    font-size: 12px;
  }
  .topbar-tag {
    font-size: 12px;
    padding: 6px 7px;
  }
  .main {
    padding: 24px max(19px, env(safe-area-inset-right, 0px)) calc(36px + env(safe-area-inset-bottom, 0px)) max(19px, env(safe-area-inset-left, 0px));
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
  }
  .page-heading h1 {
    font-size: clamp(30px, 3.2vw, 48px);
    letter-spacing: -.055em;
    font-weight: 400;
  }
  .page-heading p {
    font-size: 14px;
    max-width: 65ch;
  }
  .heading-actions {
    padding-top: 4px;
    gap: 7px;
  }
  .heading-actions .button {
    padding: 9px 10px;
    min-height: 44px;
    font-size: 14px;
  }
  .heading-actions .hide-small {
    display: none;
  }
  .filters {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    flex-direction: column;
  }
  .filter-group {
    width: 100%;
    gap: 7px;
  }
  .filter-caption {
    font-size: 12px;
  }
  .select-wrap {
    max-width: 100%;
  }
  .select-wrap select {
    font-size: 16px;
    padding: 9px 28px 9px 10px;
    max-width: min(300px, 100%);
    min-height: 44px;
    min-width: 0;
    width: 100%;
  }
  .metric-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 17px 16px;
  }
  .metric-value {
    font-size: 30px;
    margin: 14px 0 10px;
  }
  .metric-top {
    font-size: 13px;
    align-items: flex-start;
  }
  .metric-note {
    font-size: 12px;
    line-height: 1.5;
  }
  .metric-note span {
    display: inline;
  }
  .metric-icon {
    width: 27px;
    height: 27px;
  }
  .mini-bar {
    margin-top: 13px;
  }
  .overview-grid,.bottom-grid {
    gap: 18px;
  }
  .map-svg {
    height: 350px;
  }
  .map-legend {
    padding: 13px 16px;
    justify-content: flex-start;
    gap: 14px;
  }
  .panel-header {
    padding: 18px 17px 16px;
  }
  .panel-header h2 {
    font-size: 16px;
    line-height: 1.45;
    flex-wrap: wrap;
    min-width: 0;
  }
  .priority-panel {
    display: block;
  }
  .priority-item {
    border-right: 0!important;
  }
  .priority-panel .coverage-ribbon {
    margin-top: 0;
  }
  .bottom-grid {
    margin-top: 18px;
  }
  .data-table thead th {
    padding: 11px 16px;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.4;
  }
  .data-table td, .data-table tbody th[scope="row"] {
    padding: 13px 16px;
    font-size: 13px;
    line-height: 1.55;
    max-width: 24rem;
    overflow-wrap: anywhere;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 22px;
    font-size: 12px;
  }
  .review-layout {
    grid-template-columns: 1fr;
  }
  .review-list {
    max-height: 265px;
  }
  .review-list-item {
    padding: 13px 17px;
  }
  .review-list-item h3 {
    margin: 6px 0 3px;
  }
  .review-list-item small {
    margin-top: 5px;
  }
  .review-list-item .badge {
    float: right;
  }
  .field-panel {
    padding: 20px 17px;
  }
  .steps {
    gap: 7px;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .step {
    font-size: 12px;
    gap: 6px;
  }
  .step-number {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }
  .form-grid {
    gap: 15px;
  }
  .form-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field-side {
    grid-template-columns: 1fr;
  }
  .field-layout {
    gap: 18px;
  }
  .form-intro h2 {
    font-size: 16px;
  }
  .form-intro p {
    font-size: 14px;
  }
  .notice {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .form-buttons .button {
    font-size: 14px;
  }
  .dialog-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  dialog {
    width: min(900px, calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 16px;
  }
  .dialog-layout .detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }
  .dialog-layout .detail-meta>div {
    margin: 6px 0;
  }
  .sample-sheet {
    padding: 18px;
  }
  dialog .detail-body {
    padding: 10px 17px 20px;
  }
  .implementation-intro {
    padding: 24px;
    display: block;
  }
  .implementation-intro h2 {
    font-size: 22px;
  }
  .implementation-intro .number {
    font-size: 42px;
    margin-top: 24px;
  }
  .implementation-intro .number small {
    display: inline-block;
    margin-left: 13px;
    font-size: 12px;
    letter-spacing: .2px;
    line-height: 1.8;
  }
  .implementation-intro p {
    font-size: 12px;
  }
  .timeline {
    padding: 0 17px 18px;
  }
  .timeline-row {
    grid-template-columns: 32px minmax(0,1fr);
    gap: 10px;
    padding: 18px 0;
  }
  .timeline-row time {
    grid-column: 2;
    margin-top: -3px;
    font-size: 12px;
  }
  .timeline-row h3 {
    font-size: 12px;
  }
  .timeline-row p {
    font-size: 12px;
  }
  .table-toolbar {
    padding: 15px;
    gap: 10px;
  }
  .search-box {
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
  .toast {
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 38px);
    min-width: 0;
    font-size: 12px;
  }
  .detail-meta {
    grid-template-columns: 1fr 1fr;
  }
  .review-actions .button-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .review-actions .button-group .primary {
    grid-column: 1/-1;
  }
  .review-actions .button {
    font-size: 14px;
  }
  .map-corner {
    font-size: 12px;
    left: 16px;
  }
  .map-tip {
    font-size: 12px;
    left: 13px;
    max-width: 72%;
  }
  .panel {
    border-radius: 0;
  }
}

@media(max-width:400px) {
  .topbar-link {
    display: flex;
  }
  .main {
    padding: 21px max(14px, env(safe-area-inset-right, 0px)) calc(36px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  }
  .topbar {
    padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px));
  }
  .page-heading h1 {
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 400;
    letter-spacing: -.055em;
  }
  .heading-actions .button:not(.primary) {
    padding: 9px;
  }
  .metric {
    padding: 15px 13px;
  }
  .metric-value {
    font-size: 28px;
  }
  .map-svg {
    height: 290px;
  }
  .map-wrap {
    min-height: 290px;
  }
  .select-wrap select {
    max-width: min(300px, 100%);
    font-size: 16px;
    min-height: 48px;
    min-width: 0;
    width: 100%;
  }
  .detail-meta {
    grid-template-columns: 1fr;
  }
  .form-grid.three {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 5px;
  }
  .step {
    font-size: 12px;
    gap: 5px;
  }
  .step-number {
    width: 21px;
    height: 21px;
  }
  .form-buttons {
    flex-wrap: wrap;
  }
  .topbar-tag {
    font-size: 12px;
  }
  .sidebar-note {
    margin-top: 15px;
  }
}

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

@media print {
  .sidebar,.topbar,.heading-actions,.filters,.footer,.button,.map-controls {
    display: none!important;
  }
  .shell {
    display: block;
  }
  .main {
    padding: 0;
    max-width: none;
  }
  .panel,.metric {
    break-inside: avoid;
  }
  .page-heading {
    margin: 15px 0;
  }
  .overview-grid,.bottom-grid {
    display: block;
  }
  .panel {
    margin-bottom: 15px;
    border-radius: 0;
  }
  .main-wrap {
    width: 100%;
  }
  .metric-grid {
    grid-template-columns: repeat(4,1fr);
  }
  body {
    background: white;
  }
}

/* Connected organization workspace: separate forms and records from the demo. */

.live-workspace {
  font-size: 14px;
  line-height: 1.6;
}

.live-workspace .notice {
  font-size: 12px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.live-workspace .notice.error {
  color: var(--red);
  background: var(--red-bg);
  border-color: var(--red-line);
}

.live-workspace .notice ul {
  padding-left: 18px;
}

.live-setup-grid {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr);
  gap: 22px;
  align-items: start;
}

.live-card {
  padding: 27px;
  overflow-wrap: anywhere;
}

.live-card h2 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -.04em;
  margin: 0 0 12px;
  font-weight: 400;
}

.live-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 28px 0 12px;
  font-family: var(--font-body);
}

.live-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 10px 0 17px;
}

.live-card .eyebrow {
  margin-bottom: 12px;
}

.live-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 17px 0;
  min-width: 0;
}

.live-field>span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.live-field input,.live-field textarea,.live-field select {
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--control-line);
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--paper);
  min-height: 48px;
  width: 100%;
  min-width: 0;
  font-size: 16px;
  line-height: 1.5;
}

.live-field input:focus,.live-field textarea:focus,.live-field select:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.live-field input[type=file] {
  font-size: 16px;
  padding: 10px;
  max-width: 100%;
}

.live-field textarea {
  min-height: 110px;
  resize: vertical;
}

.live-field input:disabled,.live-field textarea:disabled {
  background: var(--ground);
  color: var(--muted);
}

.live-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink);
  margin: 20px 0;
  min-height: 44px;
  padding: 8px 0;
}

.live-check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green);
}

.live-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0 4px;
}

.live-workspace .button {
  font-size: 14px;
  min-height: 44px;
}

.live-workspace .button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.live-hint,.live-card .live-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.live-guide {
  background: var(--ground);
  border-radius: 10px;
  border-top: 0;
}

.live-guide>.choice-chip {
  margin-bottom: 19px;
  background: var(--ground);
}

.live-guide ol {
  padding-left: 20px;
  margin: 20px 0;
}

.live-guide li {
  color: var(--muted);
  font-size: 13px;
  margin: 17px 0;
  padding-left: 4px;
  line-height: 1.7;
}

.live-guide li strong {
  color: var(--ink);
}

.live-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  background: var(--ground);
  border: 0;
  border-radius: 0 7px 7px 0;
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: 13px;
  border-left: 3px solid var(--green);
}

.live-progress .little-dot {
  background: var(--verified);
}

.live-project-name {
  overflow-wrap: anywhere;
}

.live-session {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 22px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.live-session strong {
  font-size: 16px;
  display: block;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.live-session span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.live-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}

.live-toolbar .live-field {
  margin: 0;
  flex: 1 1 240px;
  max-width: 600px;
}

.live-table-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 180px;
  max-width: 320px;
}

.live-table-actions .button {
  min-height: 44px;
  font-size: 13px;
  padding: 7px 10px;
}

.live-pagination {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 17px 21px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.live-pagination>div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.live-votes {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  padding: 0 22px 22px;
}

.live-votes>div {
  border: 0;
  border-radius: 0;
  padding: 10px 22px;
  background: transparent;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.live-votes span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.live-votes strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -.035em;
}

.live-report-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 22px;
  align-items: start;
}

.live-counts {
  margin: 20px 0;
}

.live-counts>div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.live-counts dt {
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.live-counts dd {
  font-size: 18px;
  font-weight: 500;
  text-align: right;
  margin: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-fingerprint,.live-card .live-fingerprint {
  font-size: 12px;
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  color: var(--muted);
  word-break: break-word;
}

.live-counts dd.live-fingerprint {
  max-width: 65%;
  white-space: normal;
  flex-shrink: 1;
}

.live-history>div,.live-file-list>div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
  flex-wrap: wrap;
}

.live-history .button,.live-file-list .button {
  font-size: 13px;
  min-height: 44px;
  padding: 6px 9px;
}

.live-evidence {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.live-evidence strong {
  font-size: 12px;
}

.live-evidence>.text-button {
  margin-left: 12px;
  font-size: 13px;
}

.live-evidence-image {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 18px 0 0;
}

.live-flags {
  padding-left: 20px;
  color: var(--amber);
  font-size: 13px;
}

.live-flags li {
  margin: 9px 0;
}

.live-review-record {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 15px;
}

.live-review-record>strong {
  font-size: 13px;
  font-weight: 500;
}

.live-prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.live-workspace fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.live-workspace legend {
  font-size: 14px;
  font-weight: 650;
  margin: 24px 0 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.live-workspace .form-grid .live-field {
  margin: 8px 0;
}

.live-success {
  max-width: 760px;
  margin: 0 auto;
}

.live-success>.choice-chip {
  margin-bottom: 20px;
}

@media(max-width:1050px) {
  .live-setup-grid,.live-report-grid {
    grid-template-columns: 1fr;
  }
  .live-card {
    padding: 23px;
  }
  .live-votes {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px) {
  .live-card {
    padding: 21px 17px;
  }
  .live-card h2 {
    font-size: 18px;
  }
  .live-session {
    padding: 13px 16px;
    align-items: flex-start;
  }
  .live-session strong {
    font-size: 14px;
  }
  .live-session span {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .live-toolbar {
    align-items: flex-end;
    gap: 12px;
  }
  .live-toolbar>.button {
    font-size: 14px;
    padding: 10px;
  }
  .live-votes {
    gap: 12px;
    padding: 0 17px 18px;
  }
  .live-counts dd {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .live-setup-grid,.live-report-grid {
    gap: 18px;
  }
  .live-workspace .form-grid.three {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .live-field input,.live-field textarea,.live-field select {
    font-size: 16px;
  }
  .live-field>span {
    font-size: 13px;
  }
  .live-review-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .live-review-buttons .primary {
    grid-column: 1/-1;
  }
}

@media(max-width:400px) {
  .live-workspace .form-grid.three {
    grid-template-columns: 1fr;
  }
  .live-votes {
    grid-template-columns: 1fr;
  }
  .live-pagination {
    padding: 15px;
  }
  .live-session {
    gap: 10px;
  }
  .live-session>.button {
    padding: 9px;
    font-size: 14px;
    min-height: 44px;
  }
  .live-toolbar {
    flex-wrap: wrap;
  }
  .live-toolbar .live-field {
    flex-basis: 100%;
  }
}

/* Intrinsic sizing keeps real names, organization references and files inside their columns. */

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

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

button, a, [role="button"], summary {
  touch-action: manipulation;
}

button, [role="button"], summary, .button, .check-label, .live-check {
  -webkit-user-select: none;
  user-select: none;
}

button, [role="button"], .button {
  -webkit-touch-callout: none;
}

input, select, textarea {
  max-width: 100%;
}

input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-right: 10px;
  padding: 8px 12px;
  border: 1px solid var(--control-line);
  border-radius: 6px;
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.sidebar > * {
  flex-shrink: 0;
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.nav-close {
  display: none;
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.sidebar :is(a, button):focus-visible {
  outline-color: var(--green);
}

.nav-item > span:not(.nav-count), .identity > div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav-count {
  flex-shrink: 0;
}

.page-heading > div:first-child {
  flex: 1 1 300px;
  min-width: 0;
}

.panel-header > div:first-child, .panel-header > h2 {
  flex: 1 1 180px;
  min-width: 0;
}

.panel-header > svg {
  flex-shrink: 0;
}

.priority-item > div, .coverage-ribbon > p, .capture-evidence-preview > div, .notice > span {
  min-width: 0;
}

.capture-evidence-preview > div {
  flex: 1 1 150px;
  overflow-wrap: anywhere;
}

.priority-item > .arrow {
  flex-shrink: 0;
}

.form-grid > *, .detail-meta > *, .dialog-layout > *, .field-side > *, .live-report-grid > * {
  min-width: 0;
}

.data-table td:first-child, .data-table tbody th[scope="row"] {
  min-width: 12rem;
}

.map-legend a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.live-session > div:not(.live-actions) {
  flex: 1 1 220px;
  min-width: 0;
}

.live-session .live-actions {
  margin: 0;
}

.live-toolbar > div, .live-toolbar > p {
  min-width: 0;
}

.live-toolbar > .live-hint {
  flex: 1 1 220px;
}

.live-history > div > span:first-child, .live-file-list > div > span:first-child {
  flex: 1 1 160px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.live-history .button, .live-file-list .button {
  flex-shrink: 0;
}

.password-auth {
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}

.password-auth-actions {
  gap: 10px;
  align-items: stretch;
}

.password-auth-actions .button {
  min-width: 120px;
}

.password-auth p {
  max-width: 60ch;
}

.mobile-connect .password-auth {
  margin-top: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
}

/* Immediate state feedback remains available to keyboard and reduced-motion users. */

:is(.button, .icon-button, .mobile-menu, .nav-item, .text-button, .topbar-link):not(:disabled):not([aria-disabled="true"]):active {
  opacity: .82;
}

.priority-item:active, .review-list-item:active {
  background: var(--ground);
}

@media (prefers-reduced-motion: no-preference) {
  html[data-input-modality="pointer"] :where(.button, .icon-button, .mobile-menu, .nav-item, .text-button, .topbar-link) {
    transition: transform 120ms var(--ease-out);
  }
  html[data-input-modality="pointer"] :is(.button, .icon-button, .mobile-menu, .nav-item, .text-button, .topbar-link):not(:disabled):not([aria-disabled="true"]):active:not(:focus-visible) {
    transform: scale(.98);
  }
}

@media (hover: hover) and (pointer: fine) {
  .nav-close:hover {
    background: var(--paper);
  }
}

@media (any-pointer: coarse) {
  .select-wrap select, .search-box input {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .nav-close {
    display: grid;
  }
  body.mobile-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .form-grid, .form-grid.three, .live-workspace .form-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .step {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.4;
  }
  .step-number {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 430px) {
  .password-auth-actions .button {
    flex: 1 1 100%;
  }
}

@media (max-width: 400px) {
  .metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-meta, .dialog-layout .detail-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

.table-scroll:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

/* Shared semantics remain stable across production and training routes. */
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--ink); }
.metric:first-child { padding-left: 0; }
.metric:last-child, .live-votes > div:last-child { border-right: 0; }
.live-votes > div:first-child { padding-left: 0; }
.button.lime { background: var(--lime); border-color: var(--control-line); color: var(--ink); }
.notice.error { background: var(--red-bg); color: var(--red); border-left-color: var(--red); }
.live-card > :last-child { margin-bottom: 0; }
.live-success { border-top: 2px solid var(--verified); padding-top: 30px; }
.live-success h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.05em; }
.live-success > .choice-chip { color: var(--verified); background: var(--verified-bg); }
input::placeholder, textarea::placeholder { color: var(--subtle); opacity: 1; }
input[type="number"] { font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .button.lime:hover { background: #d4e7a2; border-color: var(--control-hover); }
}
@media (max-width: 1050px) {
  .metric { padding: 12px 18px; }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 12px; }
  .metric:nth-child(2n+1) { padding-left: 0; }
}
@media (max-width: 760px) {
  .sidebar { border-right: 1px solid var(--line); box-shadow: var(--shadow); }
  .main { padding-top: 28px; }
  .page-heading { margin-bottom: 26px; }
  .eyebrow { font-size: 12px; letter-spacing: .06em; }
  .live-card h2 { font-size: 24px; }
  .live-card, .field-panel { padding-inline: 0; }
  .live-guide, .password-auth { padding: 23px 20px; }
  .live-report-grid > .live-card { padding-inline: 0; }
  .live-report-grid .stack-gap .live-card { padding-inline: 0; }
  .panel-header { padding-inline: 0; }
  .map-panel .panel-header, .review-list .panel-header { padding-inline: 18px; }
  .password-auth h2 { font-size: 26px; }
  .topbar-tag { font-size: 12px; }
  .live-success h2 { font-size: 34px; }
}
@media (max-width: 400px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 12px 10px; }
  .metric-value { font-size: 28px; }
  .metric-top, .metric-note { font-size: 12px; }
  .metric-icon { display: none; }
  .live-votes > div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .password-auth { padding: 22px 17px; }
}
@media (any-pointer: coarse) {
  .button, .nav-item, .admin-tab, .text-button, .icon-button, .mobile-menu { min-height: 48px; }
}

/* Keyboard route changes and skip navigation retain a visible destination. */
.main:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.password-auth h1 { font-size: 27px; line-height: 1.3; font-weight: 400; letter-spacing: -.04em; margin: 0 0 12px; }


.nav-training > summary { min-height: 48px; padding: 13px 12px; margin: 12px 0 6px; line-height: 22px; list-style-position: inside; cursor: pointer; }

/* Faithful Election Atlas shell: one navigation bar and a geographic canvas. */
.atlas-shell { display: block; }
.atlas-shell .atlas-appbar { position: relative; inset: auto; width: 100%; height: auto; min-height: 76px; max-height: none; padding: 0 max(32px,calc((100vw - 1200px)/2)); display: flex; flex-direction: row; align-items: center; gap: 20px 32px; flex-wrap: wrap; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); overflow: visible; }
.atlas-appbar .sidebar-header { display: flex; align-items: center; margin: 0; padding: 0; }
.atlas-shell .brand { display: flex; align-items: center; gap: 11px; margin: 0; padding: 0; color: var(--ink); text-decoration: none; font: 500 15px/1.3 var(--font-display); letter-spacing: -.045em; white-space: nowrap; }
.atlas-shell .brand > svg { width: 26px; height: 26px; stroke-width: 1.5; }
.atlas-primary-nav { display: flex; gap: 30px; min-height: 76px; height: auto; margin-left: auto; align-items: stretch; }
.atlas-nav-tab { position: relative; padding: 0 1px; color: var(--muted); font-size: 14px; background: none; border: 0; border-radius: 0; }
.atlas-nav-tab.active,.atlas-nav-tab[aria-current="page"] { color: var(--ink); }
.atlas-nav-tab[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); }
.atlas-nav-more { position: relative; flex: none; }
.atlas-nav-more > summary { list-style: none; width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--control-line); border-radius: 50%; background: var(--ground); cursor: pointer; }
.atlas-nav-more > summary::-webkit-details-marker { display: none; }
.atlas-nav-more > summary svg { width: 17px; height: 17px; }
.atlas-menu-caption { display: none; }
.atlas-menu-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 260px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 45; }
.atlas-menu-panel .nav-item { width: 100%; text-align: left; margin: 0; padding: 10px 12px; font-size: 13px; }
.atlas-menu-heading { padding: 9px 12px; color: var(--muted); font: 12px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.atlas-menu-panel .sidebar-note { padding: 13px 12px; margin: 8px 0; font-size: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.atlas-menu-panel .sidebar-note p { font-size: 12px; line-height: 1.6; margin-top: 4px; }
.atlas-shell .main-wrap { width: 100%; }
.atlas-shell .atlas-mobile-bar { display: none; }
.atlas-shell .main { max-width: 1280px; padding: 36px 40px 24px; }
.atlas-shell[data-shell-page="overview"] .main,.atlas-shell[data-shell-page="connected"] .main { padding-top: 0; }
.atlas-shell .footer { margin-top: 24px; padding: 16px 0 0; font-size: 12px; border-top: 0; color: var(--muted); }
.atlas-mode-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; padding: 14px 24px 20px; }
.atlas-mode-note .little-dot { background: var(--amber); }
.atlas-mode-note a { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; text-decoration: none; }
.atlas-mode-note a svg { width: 13px; height: 13px; }
.atlas-demo-monitor { margin-inline: -40px; }
.atlas-demo-mast { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 34px 40px 24px; }
.atlas-demo-mast .eyebrow { margin: 0 0 10px; font-size: 12px; }
.atlas-demo-mast h1 { font-size: clamp(42px,4.4vw,58px); letter-spacing: -.065em; font-weight: 400; line-height: 1.12; }
.atlas-demo-received { text-align: right; flex: none; padding-bottom: 5px; }
.atlas-demo-received > div { display: flex; gap: 5px; align-items: baseline; font: 400 31px/1.4 var(--font-display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.atlas-demo-received strong { font-weight: 400; }
.atlas-demo-received > div > span { color: var(--muted); }
.atlas-demo-received small { font-size: 12px; color: var(--muted); }
.atlas-demo-toolbar { padding: 0 40px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.atlas-demo-toolbar .select-wrap { max-width: 230px; }
.atlas-demo-toolbar select { background: transparent; border: 0; border-bottom: 1px solid var(--control-line); border-radius: 0; min-height: 44px; height: auto; padding: 8px 28px 8px 0; font-size: 16px; }
.atlas-snapshot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.atlas-demo-map { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--map); }
.atlas-demo-map .map-wrap { min-height: 410px; height: clamp(340px,43vh,490px); border-radius: 0; }
.atlas-demo-map .map-svg { height: 100%; min-height: 0; }
.atlas-demo-map #national-map { height: 100%; }
.atlas-demo-map .map-corner { top: 18px; left: 24px; z-index: 3; font-size: 12px; }
.atlas-demo-map .map-controls { top: 16px; right: 18px; bottom: auto; z-index: 3; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); box-shadow: 0 2px 5px #263e3408; }
.atlas-demo-map .map-controls .icon-button { width: 44px; height: 44px; min-height: 44px; background: var(--paper); border: 0; border-radius: 0; }
.atlas-demo-map .map-state { stroke: #bdcbb3; stroke-width: .7; }
.atlas-demo-map .map-state.selected { stroke: #6e8663; stroke-width: 1.5; }
.atlas-map-credit.map-legend { position: absolute; left: 14px; bottom: 8px; z-index: 3; display: flex; gap: 3px; padding: 0; border: 0; font-size: 12px; background: none; color: var(--muted); }
.atlas-map-credit.map-legend a { font-size: 12px; margin: 0; color: inherit; }
.atlas-map-key { position: absolute; right: 16px; bottom: 8px; color: var(--muted); font-size: 12px; z-index: 3; }
.atlas-map-card rect { fill: var(--paper); stroke: var(--control-line); stroke-width: 1; filter: drop-shadow(0 2px 3px #263e3410); }
.atlas-map-card text { font-family: var(--font-body); fill: var(--ink); }
.atlas-map-card[aria-pressed="true"] rect { fill: var(--green); stroke: var(--green); }
.atlas-map-card[aria-pressed="true"] text { fill: var(--paper); }
.atlas-map-card:focus-visible { outline: none; }
.atlas-map-card:focus-visible rect { stroke: var(--green); stroke-width: 2.5; }
.atlas-demo-statuses { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 20px 30px; border-bottom: 1px solid var(--line); }
.atlas-demo-status { min-height: 44px; padding: 2px 16px; display: flex; justify-content: center; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.atlas-demo-status + .atlas-demo-status { border-left: 1px solid var(--line); }
.atlas-demo-status strong { font: 400 18px var(--font-body); font-variant-numeric: tabular-nums; }
.atlas-demo-status .legend-dot { width: 6px; height: 6px; }
.atlas-demo-status .legend-dot.missing { background: var(--red); }
.atlas-demo-status .legend-dot.pending { background: var(--amber); }
.atlas-demo-action { padding: 26px 40px 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.atlas-demo-action h2 { font: 500 17px/1.5 var(--font-body); letter-spacing: -.015em; }
.atlas-demo-action p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.atlas-demo-action .button { font-size: 13px; min-height: 46px; padding: 10px 18px; gap: 20px; border-radius: 9px; }
.atlas-demo-links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0 40px 8px; }
.atlas-demo-links .text-button { color: var(--muted); font-size: 12px; }
.atlas-results-list,.atlas-team-list { margin: 24px 0; }
.atlas-result-line,.atlas-team-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.atlas-result-line strong { font: 400 30px var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.atlas-team-row h2 { font: 500 17px var(--font-body); }
.atlas-team-row p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.atlas-shell[data-shell-page="results"] .atlas-demo-action { padding-inline: 0; }
@media (hover:hover) and (pointer:fine) {
 .atlas-nav-tab:hover,.atlas-menu-panel .nav-item:hover { color: var(--ink); }
 .atlas-demo-status:hover { background: var(--ground); }
 .atlas-map-card:not([aria-pressed="true"]):hover rect { fill: #f4f9e8; stroke: #8ca17f; }
}
@media (max-width:760px) {
 .atlas-shell .atlas-appbar { position: fixed; inset: 0 auto 0 0; width: min(85vw,360px); height: 100dvh; padding: calc(22px + env(safe-area-inset-top,0px)) 20px 24px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 18px; border-right: 1px solid var(--line); z-index: 50; background: var(--paper); overflow-y: auto; transform: translateX(-104%); visibility: hidden; pointer-events: none; }
 .atlas-shell .atlas-appbar.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
 .atlas-appbar .sidebar-header { justify-content: space-between; gap: 12px; }
 .atlas-shell .atlas-mobile-bar { display: flex; justify-content: space-between; align-items: center; min-height: 68px; padding: calc(12px + env(safe-area-inset-top,0px)) 22px 12px; background: var(--paper); border-bottom: 1px solid var(--line); gap: 12px; }
 .atlas-shell .mobile-menu { display: grid; place-items: center; background: transparent; border: 0; width: 40px; height: 40px; padding: 0; }
 .atlas-shell .brand { font-size: 14px; gap: 9px; }
 .atlas-shell .brand > svg { width: 23px; height: 23px; }
 .atlas-primary-nav { flex-direction: column; min-height: 0; height: auto; margin: 0; gap: 0; }
 .atlas-nav-tab { min-height: 48px; padding: 10px 12px; text-align: left; font-size: 15px; }
 .atlas-nav-tab[aria-current="page"]::after { top: 12px; bottom: 12px; right: auto; width: 2px; height: auto; }
 .atlas-nav-more > summary { width: auto; border-radius: 0; border: 0; justify-content: start; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; background: transparent; }
 .atlas-menu-caption { display: inline; font-size: 14px; }
 .atlas-menu-panel { position: static; width: 100%; border: 0; box-shadow: none; padding: 0; margin-top: 8px; }
 .atlas-shell .main { padding: 26px 22px 16px; }
 .atlas-demo-monitor { margin-inline: -22px; }
 .atlas-demo-mast { padding: 28px 22px 17px; gap: 16px; align-items: flex-end; }
 .atlas-demo-mast h1 { font-size: 42px; }
 .atlas-demo-mast .eyebrow { font-size: 12px; margin-bottom: 13px; }
 .atlas-demo-received > div { font-size: 24px; gap: 3px; }
 .atlas-demo-received small { font-size: 12px; }
 .atlas-demo-toolbar { padding: 0 22px 15px; gap: 12px; }
 .atlas-demo-toolbar select { font-size: 16px; max-width: 100%; }
 .atlas-snapshot { font-size: 12px; }
 .atlas-demo-map .map-wrap { height: 330px; min-height: 330px; }
 .atlas-demo-map .map-corner { left: 15px; top: 12px; font-size: 12px; }
 .atlas-demo-map .map-controls { right: 10px; top: 10px; }
 .atlas-demo-map .map-controls .icon-button { width: 44px; min-height: 44px; height: 44px; }
 .atlas-map-key { display: none; }
 .atlas-map-credit.map-legend { left: 12px; bottom: 8px; }
 .atlas-demo-statuses { padding: 15px 10px; }
 .atlas-demo-status { padding: 2px 8px; gap: 5px; font-size: 12px; min-height: 44px; }
 .atlas-demo-status strong { font-size: 16px; }
 .atlas-demo-action { padding: 22px; flex-direction: column; align-items: stretch; gap: 16px; }
 .atlas-demo-action h2 { font-size: 16px; }
 .atlas-demo-action .button { justify-content: space-between; min-height: 48px; }
 .atlas-demo-links { padding: 0 22px; gap: 12px; justify-content: space-between; }
 .atlas-demo-links .text-button { font-size: 12px; gap: 5px; }
 .atlas-mode-note { flex-wrap: wrap; gap: 5px; font-size: 12px; padding-top: 10px; }
 .atlas-mode-note a { margin-left: 0; }
 .atlas-team-row { align-items: flex-start; gap: 14px; }
 .atlas-team-row .button { font-size: 14px; white-space: normal; }
}
.atlas-snapshot .little-dot { display:none; }
body:has(.atlas-observer-shell) .field-install { display:none; }
body:has(.atlas-observer) .field-install,body:has(.atlas-field-record) .field-install { position:static; display:block; margin:16px auto; }
.atlas-observer-shell .main-wrap { background: var(--ground); }
.atlas-observer-shell .atlas-footer,.atlas-observer-shell .atlas-mode-note { display:none; }
@media(max-width:760px) {
 .field-install { bottom: calc(88px + env(safe-area-inset-bottom,0px)); font-size: 12px; padding:8px 12px; min-height:38px; }
 .atlas-observer-shell .atlas-mobile-bar { background: var(--ground); border-bottom:0; }
 .atlas-shell:has(.atlas-observer) .atlas-mobile-bar { background: var(--ground); border-bottom:0; }
 .atlas-observer-shell .main { padding-top:12px; padding-bottom:0; }
}

/* Native hidden state wins over the layout of notices and validation messages. */
[hidden] { display: none !important; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
[aria-invalid="true"] { border-color: var(--red); }
.notice :is(ul, p) { min-width: 0; }
.notice ul { padding-left: 20px; }
.notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.notice a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.data-table caption { padding: 12px 21px; color: var(--ink); font-size: 14px; font-weight: 500; text-align: left; caption-side: top; }
.data-table tbody th[scope="row"] { color: var(--ink); font-weight: 400; text-align: left; white-space: normal; background: transparent; }
.detail-votes tbody th[scope="row"] { font-weight: 400; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.password-auth .live-field > small { display: block; margin-top: 6px; }
.password-auth .notice { display: block; margin-block: 16px; }
.password-auth :is(input, button), .mobile-connect :is(select, button) { font-size: 16px; }
.live-saved-draft h3 { margin: 0; font: 500 16px/1.5 var(--font-body); }
.atlas-mode-note a { min-height: 44px; }
.atlas-demo-toolbar, .atlas-demo-action, .atlas-result-line, .atlas-team-row { flex-wrap: wrap; }
.atlas-demo-mast > div:first-child, .atlas-demo-action > div, .atlas-result-line > div, .atlas-team-row > div { min-width: 0; }
.atlas-map-card[aria-pressed="true"]:focus-visible rect { stroke: var(--paper); stroke-width: 3; }
.atlas-demo-map .map-state:focus-visible { stroke: var(--green); stroke-width: 3; }
.atlas-demo-map .map-controls .icon-button:focus-visible { outline-offset: -3px; }
.atlas-demo-status[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -3px var(--green); }
.training-evidence-tools label[for="evidence-file"]:focus-within { outline: 3px solid var(--green); outline-offset: 4px; }

@media (max-width: 400px) {
  .atlas-demo-mast { flex-wrap: wrap; align-items: flex-start; }
  .atlas-demo-received { text-align: left; }
  .atlas-demo-statuses { grid-template-columns: 1fr; }
  .atlas-demo-status { justify-content: flex-start; padding: 12px 0; }
  .atlas-demo-status + .atlas-demo-status { border-left: 0; border-top: 1px solid var(--line); }
}

@media (forced-colors: active) {
  :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }
  [aria-current]:not([aria-current="false"]):not([aria-current=""]), [aria-selected="true"], [aria-pressed="true"] { border-bottom: 3px solid Highlight; }
  [aria-invalid="true"] { border: 2px solid CanvasText; }
  .training-evidence-tools label[for="evidence-file"]:focus-within { outline-color: Highlight; }
}
