:root {
  --bg-top: #f8fbfd;
  --bg-mid: #f6f8fb;
  --bg-bottom: #eef3f7;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #f8fafc;
  --text: #203040;
  --muted: #6a7f93;
  --line: #dfe7ef;
  --line-strong: #d0dce8;
  --blue: #2f7fbf;
  --blue-dark: #286fa8;
  --blue-soft: #e9f3fb;
  --blue-ring: #cfe5f7;
  --success: #16794c;
  --success-soft: #e8f6ef;
  --danger: #b42318;
  --danger-soft: #fee9e7;
  --warning: #a95e06;
  --warning-soft: #fff3df;
  --info: #2d6f9f;
  --info-soft: #e9f3fb;
  --content-width: 75rem;
  --radius-xl: 8px;
  --radius-lg: 7px;
  --shadow-sm: 0 1px 2px rgba(22, 29, 42, 0.05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-mid);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: 100%;
  max-width: none;
  margin: 0;
}
.shell--page {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  box-shadow: none;
}
.page-shell {
  min-height: calc(100vh - 82px);
  padding: 32px clamp(20px, 3.5vw, 48px);
  background: var(--bg-mid);
}

.page-shell--guest {
  min-height: 100vh;
  padding: 18px clamp(14px, 4vw, 32px) 40px;
  background: #f7fbf9;
}

.page-shell > :not(dialog) {
  width: min(100%, var(--content-width));
  margin-left: auto;
  margin-right: auto;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.topbar {
  display: block;
  padding: 0 clamp(20px, 3.5vw, 48px);
  margin-bottom: 0;
  border-radius: 0;
  border-width: 0 0 1px;
  border-color: var(--line);
  background: #ffffff;
  box-shadow: none;
}

.topbar__inner {
  width: min(100%, var(--content-width));
  min-height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
}

.topbar__brand {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}

.brand-block { display: flex; flex-direction: column; }
.brand-link { text-decoration: none; color: inherit; }
.brand-row { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #ffffff;
  border: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
  font-weight: 700;
  font-size: 0.9rem;
}

.brand-name {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.topbar h1, .hero h2, h3 { margin: 0; }
.topbar h1 {
  font-size: 1.18rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.topbar__context {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}
.brand-subtitle { margin: 2px 0 0; font-size: 0.8rem; }

.topbar__actions,
.locale-switcher__buttons,
.filters__actions,
.page-actions,
.row-actions,
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-actions {
  justify-content: flex-start;
}

.topbar__actions {
  grid-column: 3;
  justify-self: end;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}

.toolbar-group { justify-content: flex-end; }
.toolbar-group--stacked {
  width: 100%;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.toolbar-group--topline {
  width: 100%;
  justify-content: flex-end;
  gap: 14px;
}
.toolbar-label { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); }

.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switcher {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.language-switcher__option {
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.language-switcher__option--divider {
  border-left: 1px solid var(--line-strong);
}

.language-switcher__option:hover,
.language-switcher__option:focus-visible {
  background: #f2f6fa;
  color: var(--text);
}

.language-switcher__option.is-active {
  background: var(--blue);
  color: #ffffff;
}

.language-switcher__option.is-active:hover,
.language-switcher__option.is-active:focus-visible {
  background: var(--blue-dark);
  color: #ffffff;
}

select.oc-select {
  padding-right: 2.9rem;
}

.filter-field--date-range {
  position: relative;
  z-index: 30;
}

.date-range-picker {
  position: relative;
}

.date-range-picker__trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
}

.date-range-picker__trigger:hover {
  border-color: #bdd5eb;
}

.date-range-picker__trigger:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 127, 191, 0.14);
}

.date-range-picker__trigger::after {
  content: "";
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 8px;
  flex: 0 0 auto;
}

.date-range-picker__trigger [data-date-range-label] {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.date-range-picker__popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 1000;
  width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.date-range-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.date-range-picker__summary {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.date-range-picker__hint {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.date-range-picker__calendars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.date-range-picker__calendar {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.date-range-picker__calendar-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.date-range-picker__month-title {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: capitalize;
}

.date-range-picker__nav {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.date-range-picker__nav:hover {
  background: var(--surface-soft);
  border-color: #bdd5eb;
}

.date-range-picker__weekdays,
.date-range-picker__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.date-range-picker__weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.date-range-picker__day {
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
}

.date-range-picker__day:hover {
  background: var(--blue-soft);
  color: var(--info);
}

.date-range-picker__day.is-today {
  background: #fff9db;
  color: #7c4a03;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #f4d35e;
}

.date-range-picker__day.is-today:hover {
  background: #fff4bf;
  color: #7c4a03;
}

.date-range-picker__day--empty {
  pointer-events: none;
}

.date-range-picker__day.is-in-range {
  background: var(--blue-soft);
  border-radius: 0;
}

.date-range-picker__day.is-start,
.date-range-picker__day.is-end,
.date-range-picker__day.is-selected {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}

.date-range-picker__day.is-start {
  border-radius: 7px 0 0 7px;
}

.date-range-picker__day.is-end {
  border-radius: 0 7px 7px 0;
}

.date-range-picker__day.is-start.is-end,
.date-range-picker__day.is-selected:not(.is-in-range) {
  border-radius: 7px;
}

.date-range-picker__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.date-range-picker__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .date-range-picker__popover {
    width: min(360px, 96vw);
  }

  .date-range-picker__calendars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .date-range-picker__header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.topnav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.topnav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: none;
}

.topnav__link:hover {
  background: transparent;
  color: var(--text);
}

.topnav__link.is-active {
  background: transparent;
  color: var(--blue-dark);
  border-bottom-color: var(--blue);
  box-shadow: none;
}

.admin-page-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-page-intro {
  margin: 6px 0 0;
  padding-bottom: 22px;
  max-width: 780px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-page-intro a {
  color: var(--blue-dark);
}

.admin-page-heading--with-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
}

.admin-page-heading--with-action .admin-page-intro {
  padding-bottom: 0;
}

.admin-page-heading__action {
  flex: 0 0 auto;
  margin: 0;
}

.admin-page-heading__action .button {
  white-space: nowrap;
}

.admin-page-frame {
  width: 100%;
}

.admin-page-action {
  width: auto;
  position: relative;
  z-index: 1;
  float: right;
  margin: -62px 0 16px 18px;
  white-space: nowrap;
}

.admin-users-page {
  clear: both;
}

.admin-content-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.admin-section {
  padding: 22px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.admin-section:first-child {
  border-top: 0;
}

.admin-panel-header {
  margin-bottom: 16px;
}

.admin-panel-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

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

.admin-dashboard-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.admin-dashboard-card:hover {
  background: var(--surface-soft);
  border-color: #bdd5eb;
}

.admin-dashboard-card.has-issues {
  border-color: #efb6b2;
  background: #fffafa;
}

.admin-dashboard-card__title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.admin-dashboard-card__description {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-dashboard-card__meta {
  margin-top: 2px;
  color: #334155;
  font-size: 0.82rem;
}

.admin-guest-form-health {
  display: grid;
  gap: 18px;
}

.admin-guest-form-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-guest-form-summary > div {
  min-width: 0;
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}

.admin-guest-form-summary > div:first-child {
  border-left: 0;
}

.admin-guest-form-summary span,
.admin-guest-form-summary strong {
  display: block;
}

.admin-guest-form-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-guest-form-summary strong {
  margin-top: 7px;
  color: var(--text);
  font-size: 1.25rem;
}

.admin-guest-form-summary .has-failures strong {
  color: #b42318;
}

.admin-guest-form-events tr.is-failure {
  background: #fffafa;
}

.admin-guest-form-events td:last-child strong,
.admin-guest-form-events td:last-child small {
  display: block;
}

.admin-guest-form-events td:last-child small {
  margin-top: 3px;
  color: var(--muted);
}

.admin-guest-form-events__reservation {
  font-weight: 700;
}

.admin-guest-form-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-guest-form-status--succeeded {
  background: #e3f3e9;
  color: #25633e;
}

.admin-guest-form-status--warning {
  background: #fff3cd;
  color: #765b0b;
}

.admin-guest-form-status--failed {
  background: #fde8e7;
  color: #a52a21;
}

.admin-sire-login-page {
  display: grid;
  gap: 0;
}

.admin-sire-login-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.admin-sire-login-summary > div {
  min-width: 0;
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}

.admin-sire-login-summary > div:first-child {
  border-left: 0;
}

.admin-sire-login-summary span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-sire-login-summary strong {
  display: block;
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.admin-sire-login-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.admin-sire-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-sire-login-password-field {
  grid-column: span 2;
}

.admin-sire-login-password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-sire-login-password-control .button {
  min-width: 74px;
  box-shadow: none;
}

.admin-sire-login-actions {
  display: flex;
  justify-content: flex-start;
}

.admin-sire-operations,
.admin-sire-activity {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.admin-sire-operations {
  padding: 22px;
}

.admin-sire-operations__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.admin-sire-operations__header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.admin-sire-operations__header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-sire-health-banner {
  display: grid;
  grid-template-columns: minmax(140px, auto) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-sire-health-banner--success {
  border-color: #bbd9c8;
  background: #f3faf6;
  color: #205b3a;
}

.admin-sire-health-banner--warning {
  border-color: #e9d49a;
  background: #fff9e9;
  color: #6e5413;
}

.admin-sire-health-banner--danger {
  border-color: #efb6b6;
  background: #fff4f4;
  color: #8f2424;
}

.admin-sire-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.admin-sire-health-grid > div {
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.admin-sire-health-grid > div:first-child {
  border-left: 0;
}

.admin-sire-health-grid span,
.admin-sire-health-grid strong {
  display: block;
}

.admin-sire-health-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-sire-health-grid strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.admin-sire-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 13px;
  color: #526276;
  font-size: 0.77rem;
}

.admin-sire-policy span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: #7a8ba0;
}

.admin-sire-activity > .admin-sire-operations__header {
  margin: 0;
  padding: 22px 22px 16px;
}

.admin-sire-log-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.admin-sire-log-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.admin-sire-log-table th,
.admin-sire-log-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.78rem;
}

.admin-sire-log-table th {
  background: var(--surface-soft);
  color: #586a7f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-sire-log-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-sire-log-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.admin-sire-log__reservation {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.admin-sire-log__details {
  width: 31%;
  min-width: 260px;
  color: #334155;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-sire-timeline {
  margin-top: 7px;
  color: #526276;
}

.admin-sire-timeline summary {
  cursor: pointer;
  font-weight: 750;
}

.admin-sire-timeline ol {
  margin: 7px 0 0;
  padding-left: 18px;
}

.admin-sire-timeline li {
  padding: 2px 0;
}

.admin-sire-timeline li small {
  display: inline;
  margin-left: 5px;
}

.admin-sire-log__evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 130px;
}

.admin-sire-log__evidence .button {
  min-height: 28px;
  padding: 4px 8px;
  box-shadow: none;
}

.admin-records-page {
  padding: 0;
}

.admin-records-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.calendar-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.calendar-page.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .calendar-page {
    transition: opacity 120ms ease;
  }
}

.calendar-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
  line-height: 1.2;
}

.calendar-heading p {
  margin: 6px 0 0;
}

.calendar-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-summary__item {
  min-width: 92px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-summary__item strong {
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1;
}

.calendar-summary__item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.calendar-summary__item--done {
  border-color: #b7e5cb;
  background: #f1fbf5;
}

.calendar-summary__item--overdue {
  border-color: #fca5a5;
  background: #fff1f2;
}

.calendar-summary__item--issue {
  border-color: #fecaca;
  background: #fff5f5;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px;
}

.calendar-view-switch,
.calendar-date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-view-switch__button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.calendar-view-switch__button.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.calendar-dot-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 260px;
  flex-wrap: wrap;
  min-width: 0;
}

.calendar-dot-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.calendar-dot-legend .calendar-dot {
  width: 9px;
  height: 9px;
}

.calendar-date-nav strong {
  min-width: 180px;
  color: #0f172a;
  font-size: 0.95rem;
  text-align: center;
}

.calendar-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.calendar-day-card {
  min-height: 420px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
}

.calendar-day-card.is-today {
  border-color: #8ec5f0;
  box-shadow: 0 0 0 3px rgba(47, 127, 191, 0.12);
}

.calendar-month-day.is-today {
  border-color: #f2c94c;
  background: #fff9db;
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.22);
}

.calendar-day-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
}

.calendar-day-card__header h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 1.05rem;
}

.calendar-day-card__header span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-day-card__weekday {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-month {
  overflow: hidden;
}

.calendar-month__weekdays,
.calendar-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-month__weekdays {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.calendar-month__weekdays span {
  padding: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.calendar-month-day {
  min-height: 144px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calendar-month-day:nth-child(7n) {
  border-right: 0;
}

.calendar-month-day.is-outside-month {
  background: #f8fafc;
  color: #94a3b8;
}

.calendar-month-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}

.calendar-month-day header span {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
}

.calendar-month-day header strong {
  color: var(--blue-dark);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.calendar-month-day.is-today header strong {
  padding: 2px 6px;
  border-radius: 999px;
  background: #fef0b8;
  color: #7a4a00;
}

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

.calendar-event-list--week {
  gap: 9px;
}

.calendar-event {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.calendar-month .calendar-event {
  grid-template-columns: 8px minmax(0, 1fr);
  padding: 7px;
}

.calendar-event:hover {
  border-color: #bdd5eb;
  box-shadow: var(--shadow-sm);
}

.calendar-event__status {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 999px;
  background: #94a3b8;
}

.calendar-event strong,
.calendar-event small,
.calendar-event__detail {
  display: block;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.calendar-event strong {
  color: #0f172a;
  font-size: 0.82rem;
}

.calendar-event__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.calendar-event__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.calendar-event small,
.calendar-event em,
.calendar-event__detail {
  color: var(--muted);
  font-size: 0.73rem;
  font-style: normal;
}

.calendar-event__detail {
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #eef6ff;
  color: #1d4f73;
  font-weight: 800;
}

.calendar-event em {
  align-self: start;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.calendar-month .calendar-event__top {
  grid-template-columns: 1fr;
  gap: 4px;
}

.calendar-workflow-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.calendar-workflow-icon {
  min-width: 0;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 6px 2px 5px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  line-height: 1;
}

.calendar-workflow-icon__svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar-workflow-icon__label {
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.calendar-workflow-icon--done {
  border-color: #9bd8b9;
  background: #ecfdf3;
  color: var(--success);
}

.calendar-workflow-icon--pending {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.calendar-workflow-icon--issue {
  border-color: #fca5a5;
  background: #fff1f2;
  color: var(--danger);
}

.calendar-workflow-icon--overdue {
  border-color: #f87171;
  background: #fee2e2;
  color: #b91c1c;
}

.calendar-workflow-icon--muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
}

.calendar-month .calendar-workflow-icons {
  gap: 3px;
  margin-top: 4px;
}

.calendar-month .calendar-workflow-icon {
  min-height: 20px;
  gap: 3px;
  padding: 2px 5px 2px 4px;
}

.calendar-month .calendar-workflow-icon__svg {
  width: 11px;
  height: 11px;
}

.calendar-month .calendar-workflow-icon__label {
  font-size: 0.56rem;
}

.calendar-event--done {
  border-color: #b7e5cb;
  background: #f3fbf6;
}

.calendar-event--done .calendar-event__status {
  background: var(--success);
}

.calendar-summary__item--done strong {
  color: var(--success);
}

.calendar-event--issue {
  border-color: #fecaca;
  background: #fff7f7;
}

.calendar-event--overdue {
  border-color: #f87171;
  border-left: 4px solid #dc2626;
  background: #fff5f5;
}

.calendar-event--overdue .calendar-event__status {
  background: #dc2626;
  box-shadow: 0 0 0 3px #fee2e2;
}

.calendar-event--overdue .calendar-event__top em {
  background: #dc2626;
  color: #fff;
}

.calendar-event__detail--overdue {
  background: #fee2e2;
  color: #991b1b;
}

.calendar-event--issue .calendar-event__status {
  background: var(--danger);
}

.calendar-summary__item--overdue strong {
  color: #b91c1c;
}

.calendar-summary__item--issue strong {
  color: var(--danger);
}

.calendar-empty-day {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.calendar-month--workflow-dots .calendar-month-day {
  gap: 6px;
  min-height: 82px;
  padding: 7px;
  color: inherit;
  text-decoration: none;
}

.calendar-month--workflow-dots .calendar-month-day:hover {
  background: #f8fbff;
}

.calendar-month--workflow-dots .calendar-month-day.is-today {
  background: #fff9db;
}

.calendar-month--workflow-dots .calendar-month-day.is-today:hover {
  background: #fff4bf;
}

.calendar-month-day.is-selected {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.calendar-month-day.has-overdue {
  background: #fffafa;
  box-shadow: inset 0 3px 0 #dc2626;
}

.calendar-month-day.has-overdue:hover {
  background: #fff1f2;
}

.calendar-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #94a3b8;
}

.calendar-dot--done {
  background: #76cfc2;
}

.calendar-dot--ready {
  background: #f4da74;
}

.calendar-dot--pending,
.calendar-dot--muted {
  background: #8f9dae;
}

.calendar-dot--issue {
  background: #e5a4ad;
}

.calendar-dot--overdue {
  background: #dc2626;
  box-shadow: 0 0 0 2px #fee2e2;
}

.calendar-dot-more {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.calendar-workflow-dot-lanes {
  display: grid;
  gap: 10px;
}

.calendar-workflow-dot-lane {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.calendar-workflow-dot-lane__label {
  min-width: 0;
  color: #475569;
  font-size: 0.57rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-transform: uppercase;
  white-space: nowrap;
}

.calendar-workflow-dot-lane__dots {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.calendar-workflow-dot-lane .calendar-dot {
  width: 9px;
  height: 9px;
}

.calendar-workflow-dot {
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  transform: none;
}

.calendar-month-detail {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

.calendar-month-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.calendar-month-detail__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-month-detail__header h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.2;
}

.calendar-month-detail__header span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.calendar-event-list--selected-day {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.calendar-event--selected small {
  display: none;
}

.admin-records-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-records-section {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.admin-records-section h3,
.admin-records-action-box h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-records-section p,
.admin-records-action-box p {
  margin: 0;
}

.admin-records-metric {
  margin: 0;
  color: #0f172a;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.admin-records-sidebar {
  display: block;
  background: var(--surface-soft);
}

.admin-records-action-box {
  height: 100%;
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-records-action-box p {
  margin-bottom: 14px;
  line-height: 1.45;
}

.admin-sync-runs {
  margin-top: 0;
}

.admin-section--table > .table-card__header,
.admin-sync-runs > .table-card__header {
  padding: 20px 22px 16px;
}

.sync-error-message {
  display: block;
  max-width: 360px;
  color: var(--danger);
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-users-page {
  padding: 0;
}

.admin-users-header {
  min-height: 74px;
}

.admin-users-header p {
  margin: 4px 0 0;
  font-size: 0.84rem;
}

.admin-users-table {
  table-layout: fixed;
  min-width: 720px;
}

.admin-users-table__name-col {
  width: 32%;
}

.admin-users-table__email-col {
  width: auto;
}

.admin-users-table__actions-col {
  width: 178px;
}

.admin-users-table thead th {
  padding-top: 10px;
  padding-bottom: 10px;
}

.admin-users-table tbody td {
  height: 56px;
  padding-top: 10px;
  padding-bottom: 10px;
  white-space: nowrap;
}

.admin-users-table__actions-heading,
.admin-users-table__actions {
  text-align: right;
}

.admin-users-table__actions {
  padding-right: 18px;
}

.admin-users-table__name strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.admin-user-action-form {
  margin: 0;
}

.admin-user-actions .button,
.admin-user-actions input[type="submit"] {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.admin-users-table .mono {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-users-empty {
  color: var(--muted);
  text-align: center;
}

.admin-user-edit-panel {
  width: min(820px, 100%);
  padding: 24px;
}

.admin-user-form {
  display: grid;
  gap: 18px;
}

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

.admin-user-form-field {
  min-width: 0;
}

.admin-user-form-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.admin-user-form-actions .button,
.admin-user-form-actions input[type="submit"] {
  width: auto;
  flex: 0 0 auto;
}

.admin-user-modal {
  width: min(680px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.admin-user-modal::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.admin-user-modal__surface {
  display: grid;
  gap: 0;
}

.admin-user-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.admin-user-modal__header h3 {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-user-modal__header p {
  margin: 5px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-user-modal__close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.admin-user-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.archive-record-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid #f2c5c2;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.archive-record-modal::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.archive-record-modal__surface {
  display: grid;
}

.archive-record-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #fecaca;
  background: #fff7f6;
}

.archive-record-modal__header h3 {
  color: var(--danger);
  font-size: 1.15rem;
  font-weight: 700;
}

.archive-record-modal__header p {
  margin: 5px 0 0;
  color: #7f1d1d;
  font-size: 0.88rem;
  line-height: 1.45;
}

.archive-record-modal__close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid #f2c5c2;
  border-radius: 7px;
  background: #ffffff;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.archive-record-modal__close:hover {
  background: var(--danger-soft);
}

.archive-record-form {
  display: grid;
  gap: 16px;
  padding: 22px 24px 24px;
}

.archive-record-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.archive-record-form textarea {
  min-height: 130px;
}

.archive-record-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-user-form--modal {
  padding: 22px 24px 24px;
}

.admin-properties-page {
  padding: 0;
}

.admin-properties-overview {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.admin-properties-overview h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-properties-overview p {
  margin: 5px 0 0;
}

.admin-properties-overview__stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-properties-overview__stats > div {
  min-width: 170px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.admin-properties-overview__stats span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-properties-overview__stats strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.admin-properties-token-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.4;
}

.admin-properties-token-note strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-properties-token-note a {
  color: var(--blue-dark);
  font-weight: 600;
}

.admin-properties-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.admin-properties-filter label {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-properties-filter__input {
  width: min(420px, 100%);
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.88rem;
}

.admin-properties-filter__count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-properties-list {
  width: 100%;
}

.admin-properties-grid {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.2fr)
    minmax(90px, 0.48fr)
    minmax(145px, 0.9fr)
    minmax(82px, 0.44fr)
    minmax(104px, 0.56fr)
    minmax(74px, 0.36fr)
    minmax(126px, 0.52fr);
  gap: 8px;
  align-items: center;
}

.admin-sire-mapping-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(260px, 1.3fr) minmax(120px, 0.5fr) minmax(124px, 0.45fr);
  gap: 10px;
  align-items: center;
}

.admin-properties-grid--header {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-sire-mapping-grid--header {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-property-row {
  margin: 0;
  padding: 9px 18px;
  border-bottom: 1px solid #edf1f5;
  background: #ffffff;
}

.admin-sire-mapping-row {
  margin: 0;
  padding: 10px 18px;
  border-bottom: 1px solid #edf1f5;
  background: #ffffff;
}

.admin-sire-mapping-row:last-child {
  border-bottom: 0;
}

.admin-sire-mapping-row:hover {
  background: var(--surface-soft);
}

.admin-sire-mapping-row.is-editing {
  background: #f8fbff;
}

.admin-stat-danger {
  color: var(--danger) !important;
}

.admin-property-row:last-child {
  border-bottom: 0;
}

.admin-property-row:hover {
  background: var(--surface-soft);
}

.admin-property-row.is-editing {
  background: #f8fbff;
}

.admin-property-identity,
.admin-property-field,
.admin-property-actions {
  min-width: 0;
}

.admin-property-identity__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.admin-property-identity__title strong {
  min-width: 0;
  color: #0f172a;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.admin-property-identity .mono {
  overflow-wrap: anywhere;
}

.admin-property-field__label {
  display: none;
}

.admin-property-value {
  min-height: 22px;
  padding: 2px 0;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.admin-property-inline-form__input {
  min-width: 0;
  padding: 7px 9px;
  font-size: 0.82rem;
}

.admin-property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.admin-property-actions .button,
.admin-property-actions input[type="submit"] {
  flex: 0 1 auto;
  min-width: 0;
  padding-left: 9px;
  padding-right: 9px;
  white-space: nowrap;
}

.admin-property-empty {
  padding: 22px;
  background: #ffffff;
}

.hero,
.filters,
.table-card,
.detail-card,
.card {
  margin-bottom: 22px;
}

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 2px;
}

.dashboard-heading > div:first-child {
  min-width: 0;
}

.dashboard-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-heading p {
  margin: 6px 0 0;
  max-width: 560px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.queue-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 16px;
}

.queue-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease, background .15s ease;
}

.queue-tab:hover,
.queue-tab:focus {
  border-color: var(--blue);
  color: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(22, 29, 42, 0.08);
}

.queue-tab.is-active {
  border-color: var(--blue);
  background: #f4f9fd;
  color: #0f3f66;
  box-shadow: inset 0 -2px 0 var(--blue), var(--shadow-sm);
}

.queue-tab strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
}

.queue-tab.is-active strong {
  background: var(--blue);
  color: #ffffff;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
}
.hero__copy { max-width: 700px; }
.hero__copy h2 {
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.hero__copy p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 10px;
}
.stat {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  min-width: 96px;
}
.stat span {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  color: #0f172a;
}
.stat small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.filters {
  position: relative;
  z-index: 5;
  overflow: visible;
  padding: 18px 20px 20px;
  margin-top: 0;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.section-heading {
  position: static;
  margin-bottom: 14px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}
.section-heading h3 {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text);
}
.section-heading p { margin: 4px 0 0; font-size: 0.9rem; }
.filters form {
  padding: 0;
  background: transparent;
}
.filters__grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.filters__grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.filters__grid--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.filters__grid--dashboard {
  grid-template-columns: minmax(280px, 1.4fr) repeat(4, minmax(156px, 0.78fr));
}
.filter-field--search {
  grid-column: auto;
}
.filter-actions-field {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 10px;
  min-height: 68px;
}
.filter-actions-field .button,
.filter-actions-field input[type="submit"] {
  width: auto;
  flex: 0 0 auto;
}

.dashboard-filters {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-filters[open] {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.dashboard-filter-summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.dashboard-filter-summary::-webkit-details-marker {
  display: none;
}

.dashboard-filter-summary::marker {
  content: "";
}

.dashboard-filter-summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
}

.dashboard-filter-summary:hover,
.dashboard-filter-summary:focus {
  border-color: var(--blue);
  color: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(22, 29, 42, 0.08);
}

.dashboard-filter-summary small {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-filters[open] .dashboard-filter-summary {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: var(--surface-soft);
  box-shadow: none;
}

.dashboard-filters[open] .dashboard-filter-summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.dashboard-filters .section-heading {
  margin: 16px 18px 12px;
}

.dashboard-filters form {
  padding: 0 18px 18px;
}

.stack-fields { display: grid; gap: 14px; margin-top: 14px; }

label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.9rem;
}

select::-ms-expand {
  display: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 127, 191, 0.14);
}
textarea { resize: vertical; min-height: 110px; }

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 7px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 127, 191, 0.18);
}
.button--ghost {
  background: #ffffff;
  color: #334155;
  border-color: var(--line);
}
.button--ghost:hover {
  background: var(--blue-soft);
  color: var(--info);
  border-color: #bdd5eb;
}
.button--danger {
  color: var(--danger);
  border-color: #f2c5c2;
}
.button--danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #fca5a5;
}
.button--danger-outline {
  border-color: #fecaca;
  background: #fffafa;
  color: #b91c1c;
  box-shadow: none;
}
.button--danger-outline:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}
.button--danger-solid {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}
.button--danger-solid:hover {
  border-color: #8f1c13;
  background: #8f1c13;
  color: #ffffff;
}
.button--sm { min-height: 36px; padding: 8px 12px; font-size: 0.82rem; }
.button--tiny { min-height: 32px; padding: 6px 10px; font-size: 0.78rem; border-radius: 7px; }
.page-actions--left { justify-content: flex-start; }

.table-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.filters + .table-card {
  margin-top: 0;
}
.table-card__header,
.detail-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.detail-card__header--top {
  align-items: flex-start;
  margin-bottom: 14px;
}
.table-card__header {
  padding: 20px 22px 16px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.table-card__header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.table-card__header p {
  margin: 4px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
thead th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 18px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.table-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.table-sort:hover,
.table-sort:focus {
  color: var(--blue-dark);
}

.table-sort.is-active {
  color: #0f172a;
}

.table-sort__indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1;
}

.table-sort.is-active .table-sort__indicator {
  color: var(--blue);
}

tbody td {
  background: #ffffff;
  padding: 15px 18px;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
  font-size: 0.88rem;
}
.table-empty {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}
tbody tr:hover td { background: var(--surface-soft); }
.clickable-row {
  cursor: pointer;
  outline: none;
}
.clickable-row:focus {
  outline: none;
}
.clickable-row:focus td,
.clickable-row:focus-visible td {
  outline: none;
  background: var(--surface-soft);
}
.table-secondary { margin-top: 4px; font-size: 0.8rem; color: var(--muted); }
.reservation-cell__main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.reservation-cell__code {
  font-weight: 700;
  color: var(--text);
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.pagination-bar__summary {
  color: var(--muted);
  font-size: 0.84rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination__link,
.pagination__gap {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.pagination__link:hover {
  border-color: #bdd5eb;
  background: var(--blue-soft);
  color: var(--info);
}

.pagination__link.is-current {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.pagination__link.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pagination__link.is-disabled:hover {
  border-color: var(--line);
  background: #ffffff;
  color: #334155;
}

.pagination__link--step {
  min-width: 76px;
}

.pagination__gap {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  min-width: 24px;
  padding-inline: 4px;
}

.guest-readiness {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 178px;
}

.guest-readiness__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--warning);
}

.guest-readiness strong,
.guest-readiness span {
  display: block;
}

.guest-readiness strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.guest-readiness .guest-readiness__source {
  display: inline-flex;
  align-items: center;
  column-gap: 5px;
  row-gap: 4px;
  flex-wrap: wrap;
  max-width: 100%;
}

.guest-readiness .guest-readiness__source-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.guest-readiness .guest-readiness__source-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.guest-readiness .guest-readiness__source-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  margin-top: 0;
}

.guest-readiness .guest-readiness__source-token strong {
  display: inline;
  min-width: 0;
  line-height: 1.12;
}

.guest-readiness .guest-readiness__source-token small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.05;
}

.guest-readiness__source-plus {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  color: #94a3b8;
}

.guest-readiness__source-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.guest-readiness__source-mark--form {
  color: #16a34a;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: #16a34a;
}

.guest-readiness__source-mark--form path {
  stroke: #ffffff;
}

.guest-readiness__source-mark--aircontrol {
  display: block;
  border-radius: 6px;
  object-fit: contain;
}

.guest-readiness span {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
}

.guest-readiness .guest-readiness__source {
  margin-top: 0;
}

.guest-readiness--ready .guest-readiness__dot,
.guest-readiness--submitted .guest-readiness__dot {
  background: var(--success);
}

.guest-readiness--waiting .guest-readiness__dot {
  background: var(--warning);
}

.guest-readiness--blocked .guest-readiness__dot {
  background: var(--danger);
}

.guest-readiness--muted .guest-readiness__dot {
  background: #94a3b8;
}

.guest-readiness--sire {
  margin-top: 10px;
}

.guest-readiness--automation {
  margin-top: 10px;
  max-width: 260px;
}

.guest-readiness--documents {
  min-width: 150px;
}

.recent-submissions-table td {
  vertical-align: top;
}

.recent-submissions__reservation {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.recent-submissions__reservation:hover {
  text-decoration: underline;
}

.recent-submissions__method {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
}

.recent-submissions__method--manual {
  background: #f0fdf4;
  color: #166534;
}

.recent-submissions__method--photo {
  background: #eef6ff;
  color: #1d4f8f;
}

.workflow-lights {
  display: grid;
  gap: 6px;
  min-width: 136px;
}

.workflow-light {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  white-space: nowrap;
}

.workflow-light__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

.workflow-light__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.workflow-light__name {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.workflow-light__status {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
}

.workflow-light--complete .workflow-light__dot {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}

.workflow-light--complete .workflow-light__status {
  color: var(--success);
}

.workflow-light--ready .workflow-light__dot {
  background: var(--warning);
  box-shadow: 0 0 0 3px var(--warning-soft);
}

.workflow-light--pending .workflow-light__dot {
  background: var(--info);
  box-shadow: 0 0 0 3px var(--info-soft);
}

.workflow-light--blocked .workflow-light__dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.workflow-light--blocked .workflow-light__status {
  color: var(--danger);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--muted { background: #f1f5f9; color: #475569; }

.flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}
.flash--notice { background: var(--success-soft); color: var(--success); border-color: #bbf7d0; }
.flash--alert { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }

.tra-error-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.tra-error-summary__code {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(185, 28, 28, 0.08);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.detail-shell {
  display: grid;
  gap: 18px;
}

.detail-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 2px 0 4px;
}

.detail-hero__main h2 {
  margin: 4px 0 8px;
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0;
}

.detail-hero__meta {
  margin: 0 0 6px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
}

.detail-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-hero__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.detail-archive-note {
  display: grid;
  gap: 4px;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: right;
}

.detail-archive-note strong {
  color: var(--text);
}

.submission-lockout {
  width: min(320px, 100%);
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: var(--success-soft);
  color: #166534;
  text-align: left;
}

.submission-lockout--waiting {
  border-color: #fed7aa;
  background: var(--warning-soft);
  color: var(--warning);
}

.submission-lockout--blocked {
  border-color: #fecaca;
  background: var(--danger-soft);
  color: var(--danger);
}

.submission-lockout strong,
.submission-lockout span {
  display: block;
}

.submission-lockout strong {
  font-size: 0.86rem;
  font-weight: 600;
}

.submission-lockout span {
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.submission-lockout__actions {
  margin-top: 10px;
}

.submission-lockout__actions form {
  margin: 0;
}

.button--quiet-warning {
  background: #ffffff;
  color: #7c4303;
  border-color: #f3d2a6;
  box-shadow: none;
}

.button--quiet-warning:hover {
  background: #fffaf2;
  color: var(--warning);
  border-color: #e9bb7c;
}

.submission-readiness {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.submission-readiness__main {
  min-width: 0;
}

.submission-readiness__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.submission-readiness h3 {
  margin-top: 4px;
  font-size: 1.2rem;
  color: #0f172a;
}

.submission-readiness p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.submission-readiness__meter {
  width: min(420px, 100%);
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.submission-readiness__meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.submission-readiness__action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sire-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #bdd5eb;
  border-radius: 8px;
  background: #f7fbff;
}

.sire-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.sire-panel__header h3 {
  margin-top: 4px;
  font-size: 1.08rem;
  color: #0f172a;
}

.sire-panel__header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.sire-panel__dates > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(126, 161, 188, 0.35);
  border-radius: 8px;
  background: #ffffff;
}

.sire-panel__dates span,
.sire-panel__dates strong {
  display: block;
}

.sire-panel__dates span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sire-panel__dates strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 0.9rem;
}

.sire-run-progress {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(14, 116, 144, 0.24);
  border-radius: 8px;
  background: #ecfeff;
}

.sire-run-progress h3 {
  margin-top: 4px;
  font-size: 1rem;
  color: #0f172a;
}

.sire-run-progress p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sire-run-progress__meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.18);
}

.sire-run-progress__meter span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #0891b2;
  animation: sire-progress-slide 1.4s ease-in-out infinite;
}

@keyframes sire-progress-slide {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(60%); }
  100% { transform: translateX(240%); }
}

.sire-missing-info {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #f5c9a8;
  border-radius: 8px;
  background: #fff8f1;
}

.sire-missing-info__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sire-missing-info__header h4 {
  margin-top: 4px;
  color: #7c2d12;
  font-size: 1rem;
}

.sire-missing-info__header p {
  margin: 5px 0 0;
  color: #9a3412;
  font-size: 0.9rem;
  line-height: 1.45;
}

.sire-missing-info__form {
  display: grid;
  gap: 14px;
}

.sire-missing-info__guest {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(251, 146, 60, 0.38);
  border-radius: 8px;
  background: #ffffff;
}

.sire-missing-info__guest legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.sire-missing-info__guest legend strong {
  color: var(--text);
}

.sire-missing-info__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.sire-missing-info__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sire-missing-info__fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sire-missing-info__fields .input {
  min-width: 0;
}

.sire-missing-info__actions {
  display: flex;
  justify-content: flex-end;
}

.sire-submitted-records {
  display: grid;
  gap: 10px;
}

.sire-submitted-records h5 {
  margin: 0;
  color: #0f172a;
  font-size: 0.94rem;
}

.sire-submitted-records__table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sire-submitted-records table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.sire-submitted-records th,
.sire-submitted-records td {
  padding: 9px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.sire-submitted-records th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sire-submitted-records tr:last-child td {
  border-bottom: 0;
}

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

.submitted-documents-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.submitted-document-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.submitted-document-card--with-photo {
  border-color: rgba(15, 118, 110, 0.28);
}

.submitted-document-card__media {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid #e5edf3;
  background: #f6faf8;
}

.submitted-document-card__image {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #eef3f7;
}

.submitted-document-card__image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #eef3f7;
}

.submitted-document-card__image figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0 0;
  border-top: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.submitted-document-card__image figcaption strong {
  color: #0f172a;
}

.submitted-document-card__image a {
  color: var(--blue-dark);
  white-space: nowrap;
}

.submitted-document-card__no-image {
  min-height: 250px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 18px;
  border: 0;
  border-radius: 6px;
  background: #eef3f7;
  color: var(--muted);
  text-align: center;
}

.submitted-document-card__no-image strong {
  color: #334155;
  font-size: 0.95rem;
}

.submitted-document-card__no-image span {
  font-size: 0.86rem;
  line-height: 1.45;
}

.submitted-document-card__body {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 20px 24px;
}

.submitted-document-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5efe9;
}

.submitted-document-card__heading span:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.submitted-document-card__heading h4 {
  margin: 0;
  color: #0f172a;
  font-size: 1.06rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.submitted-document-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  align-items: start;
  margin: 0;
}

.submitted-document-field-group {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 12px;
  border-top: 1px solid #e5edf3;
}

.submitted-document-field-group:first-child {
  grid-column: 1 / -1;
  padding-top: 0;
  border-top: 0;
}

.submitted-document-field-group h5 {
  margin: 0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.submitted-document-field-group dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.submitted-document-field-group:first-child dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 22px;
}

.submitted-document-field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(112px, 0.38fr) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.submitted-document-fields dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.submitted-document-fields dd {
  margin: 0;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sire-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.sire-screenshot-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.sire-screenshot-card figcaption {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.sire-screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-summary {
  padding: 18px 20px;
}

.detail-summary h3 {
  margin-bottom: 6px;
}

.detail-summary p {
  margin: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  margin-top: 8px;
}
.detail-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.detail-grid--cards {
  margin-top: 0;
}
.mini-card {
  background: rgba(248,250,252,0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.detail-section {
  padding: 22px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}
.detail-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}
.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}
.detail-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-list span { color: var(--muted); }
.detail-list strong { text-align: right; }

.detail-payload-panel {
  display: grid;
  gap: 18px;
}

.detail-content-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-content-panel--tabbed {
  display: grid;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.detail-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tabs__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.detail-tabs__client-form,
.detail-tabs__archive-button {
  white-space: nowrap;
}

.detail-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.detail-tab:hover {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--text);
}

.detail-tab.is-active {
  border-color: var(--blue-ring);
  background: #ffffff;
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
}

.detail-overview {
  display: grid;
  gap: 20px;
  padding: 22px;
  background: #ffffff;
}

.detail-tab-panel {
  min-width: 0;
}

.submission-status-list {
  display: grid;
  gap: 10px;
}

.submission-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.submission-status-row__main {
  min-width: 0;
}

.submission-status-row__label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.submission-status-row h3 {
  margin-top: 4px;
  color: #0f172a;
  font-size: 1.05rem;
}

.submission-status-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.submission-status-row__automation,
.submission-status-row__manual {
  display: grid;
  gap: 3px;
  width: min(100%, 640px);
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.35;
}

.submission-status-row__automation strong,
.submission-status-row__automation span,
.submission-status-row__manual strong,
.submission-status-row__manual span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.submission-status-row__manual {
  border-color: #bbf7d0;
  background: var(--success-soft);
  color: var(--success);
}

.submission-status-row__automation--succeeded {
  border-color: #bbf7d0;
  background: var(--success-soft);
  color: var(--success);
}

.submission-status-row__automation--failed {
  border-color: #fecaca;
  background: var(--danger-soft);
  color: var(--danger);
}

.submission-status-row__automation--skipped {
  border-color: #fde68a;
  background: var(--warning-soft);
  color: #92400e;
}

.submission-status-row__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 12px 0 0;
}

.submission-status-row__facts div {
  min-width: 0;
}

.submission-status-row__facts dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.submission-status-row__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.submission-status-row__side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.submission-status-row__side form {
  margin: 0;
}

.submission-status-progress {
  width: 160px;
  max-width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.16);
}

.submission-status-progress span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: #0891b2;
  animation: sire-progress-slide 1.35s ease-in-out infinite;
}

.submission-status-row__side small {
  max-width: 180px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
  text-align: right;
}

.submission-status-row__success-mark {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--success);
  font-weight: 900;
  line-height: 1;
}

.submission-status-row__success-mark::before {
  content: "\2713";
}

.submission-status-row--submitted {
  border-color: #91d8b8;
  background: #f0fbf6;
}

.submission-status-row--submitted .submission-status-row__label,
.submission-status-row--submitted h3 {
  color: var(--success);
}

.submission-status-row--submitted .submission-status-row__side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.submission-status-row--submitted .submission-status-row__success-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border: 1px solid #b7e6cd;
  background: #ffffff;
  font-size: 1.15rem;
}

.submission-status-row--processing {
  border-color: rgba(14, 116, 144, 0.28);
  background: #f0fdfa;
}

.submission-status-row--queued {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.workflow-confirm-modal {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.workflow-confirm-modal::backdrop {
  background: rgba(15, 23, 42, 0.44);
}

.workflow-confirm-modal__surface {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.22);
}

.workflow-confirm-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workflow-confirm-modal__header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
}

.workflow-confirm-modal__header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.workflow-confirm-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.workflow-confirm-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #f7d59b;
  border-radius: 8px;
  background: #fffbeb;
  color: #7c2d12;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.workflow-confirm-modal__check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--warning);
}

.workflow-confirm-modal__field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.workflow-confirm-modal__field textarea {
  min-height: 116px;
  font-weight: 600;
}

.workflow-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.workflow-confirm-modal__actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.data-collection-panel,
.workflow-status-panel {
  display: grid;
  gap: 14px;
}

.data-collection-panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.data-collection-panel__header h3 {
  margin-top: 4px;
  color: #0f172a;
  font-size: 1.05rem;
}

.guest-count-confirmation-action {
  flex: 0 0 auto;
}

.guest-count-confirmation-action form {
  margin: 0;
}

.guest-count-confirmation-status {
  display: grid;
  gap: 2px;
  max-width: 280px;
  padding: 9px 11px;
  border: 1px solid #bbf7d0;
  border-radius: 7px;
  background: #f0fdf4;
  color: #166534;
  text-align: right;
}

.guest-count-confirmation-status strong {
  font-size: 0.82rem;
}

.guest-count-confirmation-status span {
  color: #4b5563;
  font-size: 0.74rem;
  line-height: 1.35;
}

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

.data-collection-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.data-collection-card--ready {
  border-color: #bbf7d0;
  background: #f7fef9;
}

.data-collection-card--partial {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.data-collection-card--legacy {
  border-color: #f3d7a1;
  background: #fffaf0;
}

.data-collection-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.data-collection-card__top h4 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
}

.data-collection-card__top p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.data-collection-card__top .badge {
  flex: 0 0 auto;
}

.data-collection-card__progress {
  display: grid;
  gap: 9px;
}

.data-collection-card__progress strong {
  color: var(--text);
  font-size: 0.92rem;
}

.data-collection-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.data-collection-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #94a3b8;
}

.data-collection-card--ready .data-collection-meter span {
  background: #16a34a;
}

.data-collection-card--partial .data-collection-meter span {
  background: var(--blue);
}

.submitted-document-card--legacy {
  border-color: #f3d7a1;
}

.submitted-document-card__legacy-notice {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #b7791f;
  background: #fffaf0;
  color: #744210;
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.45;
}

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

.workflow-overview-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.workflow-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.workflow-card__label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workflow-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.workflow-card h3 {
  color: #0f172a;
  font-size: 1.05rem;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.workflow-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.workflow-card__facts div {
  min-width: 0;
}

.workflow-card__facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workflow-card__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.workflow-card__success-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b7e6cd;
  border-radius: 999px;
  background: #ffffff;
  color: var(--success);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.workflow-card__success-mark::before {
  content: "\2713";
}

.workflow-card--submitted {
  border-color: #91d8b8;
  background: #f0fbf6;
}

.workflow-card--submitted .workflow-card__label,
.workflow-card--submitted h3 {
  color: var(--success);
}

.workflow-card--submitted p {
  color: #166534;
}

.detail-payload-panel h4 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.detail-payload-panel > p {
  margin: 0;
}

.detail-payload-panel__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.detail-payload-panel__meta--compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.detail-payload-panel__meta > div {
  min-width: 0;
  background: #ffffff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.detail-payload-panel__meta strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  color: var(--text);
}

.detail-payload-panel__label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-api-call,
.detail-response {
  display: grid;
  gap: 10px;
}

.detail-api-group {
  display: grid;
  gap: 12px;
}

.detail-api-group + .detail-api-group {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-api-group h5 {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

.detail-api-call + .detail-api-call,
.detail-response + .detail-response {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-api-call__heading,
.detail-payload-block__label {
  margin-bottom: 0;
  font-size: 0.84rem;
}

.detail-response__meta,
.detail-response__url,
.detail-response__error,
.detail-payload-block {
  margin-bottom: 2px;
}

.detail-response__url {
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

pre,
.payload-preview {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .hero,
  .detail-page-heading,
  .table-card__header,
  .detail-card__header,
  .detail-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    padding-inline: 18px;
  }

  .topbar__inner {
    grid-template-columns: minmax(128px, 0.8fr) auto minmax(210px, 1.2fr);
    gap: 12px;
  }

  .topbar__actions {
    gap: 10px;
  }

  .calendar-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .calendar-summary {
    justify-content: flex-start;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-date-nav {
    justify-content: flex-start;
  }

  .submitted-document-card {
    grid-template-columns: 1fr;
  }

  .submitted-document-card__media {
    border-right: 0;
    border-bottom: 1px solid #e5edf3;
  }

  .submitted-document-fields,
  .submitted-document-field-group:first-child dl {
    grid-template-columns: 1fr;
  }

  .account-actions .toolbar-label {
    display: none;
  }

  .admin-records-layout {
    grid-template-columns: 1fr;
  }

  .admin-records-main {
    grid-template-columns: 1fr;
  }

  .admin-records-section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-dashboard-card {
    min-height: 0;
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-properties-overview {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-properties-overview__stats > div {
    padding-left: 0;
    border-left: 0;
  }

  .admin-sire-login-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-guest-form-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-guest-form-summary > div:nth-child(odd) {
    border-left: 0;
  }

  .admin-guest-form-summary > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .admin-sire-login-summary > div:nth-child(odd) {
    border-left: 0;
  }

  .admin-sire-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sire-health-grid > div:nth-child(odd) {
    border-left: 0;
  }

  .admin-sire-health-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .admin-properties-token-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .admin-properties-filter {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .admin-properties-filter__input {
    width: 100%;
  }

  .admin-properties-filter__count {
    margin-left: 0;
  }

  .guest-tra-layout {
    grid-template-columns: 1fr;
  }

  .guest-tra-page--design-2 .guest-tra-layout,
  .guest-tra-page--design-3 .guest-tra-layout,
  .guest-tra-page--design-4 .guest-tra-hero {
    grid-template-columns: 1fr;
  }

  .guest-tra-page--design-2 .guest-tra-main,
  .guest-tra-page--design-2 .guest-tra-summary {
    grid-column: auto;
    grid-row: auto;
  }

  .guest-tra-page--design-2 .guest-tra-summary {
    position: static;
  }

  .guest-tra-info {
    grid-template-columns: 1fr;
  }

  .admin-properties-grid--header {
    display: none;
  }

  .admin-sire-mapping-grid--header {
    display: none;
  }

  .admin-property-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
  }

  .admin-property-identity,
  .admin-property-field--api-key,
  .admin-property-actions {
    grid-column: span 2;
  }

  .admin-property-field__label {
    display: block;
  }

  .admin-property-actions {
    align-self: end;
  }

  .admin-sire-mapping-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
  }

  .admin-sire-mapping-row .admin-property-identity,
  .admin-sire-mapping-row .admin-property-actions {
    grid-column: span 2;
  }

  .toolbar-group--stacked,
  .toolbar-group--topline,
  .topnav {
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .filters__grid,
  .filters__grid--five,
  .filters__grid--six,
  .filters__grid--dashboard,
  .form-grid,
  .workflow-overview-grid,
  .detail-grid--three,
  .detail-payload-panel__meta,
  .detail-payload-panel__meta--compact,
  .date-range-picker__grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-field--search {
    grid-column: span 2;
  }

  .submission-readiness {
    grid-template-columns: 1fr;
  }

  .submission-readiness__action {
    justify-content: flex-start;
  }

  .sire-panel__header,
  .sire-panel__dates {
    grid-template-columns: 1fr;
  }

  .sire-panel__header {
    display: grid;
  }

  .sire-missing-info__header {
    display: grid;
  }

  .sire-missing-info__fields {
    grid-template-columns: 1fr;
  }

  .detail-hero__side {
    align-items: flex-start;
  }

  .detail-page-heading {
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .shell--page {
    margin: 0;
    padding: 0;
  }
  .page-shell {
    padding: 16px;
  }
  .topbar {
    padding-inline: 16px;
  }
  .hero, .detail-card { padding: 16px; }
  .detail-overview,
  .detail-tabs,
  .detail-section,
  .admin-section,
  .admin-user-edit-panel {
    padding: 18px 16px;
  }

  .workflow-overview-grid,
  .workflow-overview-grid--two,
  .data-collection-grid,
  .workflow-card__facts {
    grid-template-columns: 1fr;
  }
  .data-collection-card__top {
    display: grid;
  }
  .data-collection-panel__header {
    align-items: stretch;
    flex-direction: column;
  }
  .guest-count-confirmation-action .button {
    width: 100%;
  }
  .guest-count-confirmation-status {
    max-width: none;
    text-align: left;
  }
  .data-collection-card__top .badge {
    justify-self: start;
  }
  .submission-status-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .submitted-document-field {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .submitted-document-card__body {
    padding: 16px;
  }
  .submission-status-row__side {
    justify-items: start;
  }
  .submission-status-row--submitted .submission-status-row__side {
    justify-content: flex-start;
  }
  .admin-page-title {
    font-size: 1.35rem;
  }
  .admin-page-intro {
    padding-bottom: 18px;
  }
  .admin-page-heading--with-action {
    display: block;
    padding-bottom: 18px;
  }
  .admin-page-heading--with-action .admin-page-intro {
    padding-bottom: 0;
  }
  .admin-page-heading__action {
    margin-top: 16px;
  }
  .admin-page-heading__action .button {
    width: 100%;
    justify-content: center;
  }
  .admin-page-action {
    width: 100%;
    float: none;
    margin: 0 0 16px;
  }
  .admin-records-section,
  .admin-records-action-box,
  .admin-dashboard-card {
    padding: 18px 16px;
  }
  .admin-sire-login-summary,
  .admin-guest-form-summary,
  .admin-sire-login-grid,
  .admin-sire-login-password-control {
    grid-template-columns: 1fr;
  }
  .admin-sire-login-summary > div {
    padding: 16px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .admin-guest-form-summary > div {
    padding: 16px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .admin-guest-form-summary > div:first-child {
    border-top: 0;
  }
  .admin-sire-login-summary > div:first-child {
    border-top: 0;
  }
  .admin-sire-login-form {
    padding: 18px 16px;
  }
  .admin-sire-login-password-field {
    grid-column: span 1;
  }
  .admin-sire-login-password-control .button,
  .admin-sire-login-actions .button {
    width: 100%;
  }
  .admin-sire-operations {
    padding: 18px 16px;
  }
  .admin-sire-activity > .admin-sire-operations__header {
    padding: 18px 16px 14px;
  }
  .admin-sire-health-banner,
  .admin-sire-health-grid {
    grid-template-columns: 1fr;
  }
  .admin-sire-health-grid > div {
    padding: 13px 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .admin-sire-health-grid > div:first-child {
    border-top: 0;
  }
  .admin-sire-policy {
    display: grid;
    gap: 7px;
  }
  .admin-section--table > .table-card__header,
  .admin-sync-runs > .table-card__header {
    padding: 18px 16px 14px;
  }
  .admin-properties-overview,
  .admin-properties-token-note,
  .admin-properties-filter,
  .admin-property-row,
  .admin-sire-mapping-row,
  .admin-property-empty {
    padding-left: 16px;
    padding-right: 16px;
  }
  .admin-property-row {
    grid-template-columns: 1fr;
  }
  .admin-sire-mapping-row {
    grid-template-columns: 1fr;
  }
  .admin-property-identity,
  .admin-property-field--api-key,
  .admin-property-actions {
    grid-column: span 1;
  }
  .admin-sire-mapping-row .admin-property-identity,
  .admin-sire-mapping-row .admin-property-actions {
    grid-column: span 1;
  }
  .admin-property-actions .button,
  .admin-property-actions input[type="submit"] {
    width: 100%;
  }
  .admin-user-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-user-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
  .admin-user-modal__header {
    padding: 18px 16px 16px;
  }
  .calendar-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .calendar-summary__item {
    min-width: 0;
  }
  .calendar-date-nav strong {
    width: 100%;
    min-width: 0;
    order: -1;
    text-align: left;
  }
  .calendar-week {
    grid-template-columns: repeat(5, minmax(250px, 1fr));
  }
  .calendar-month {
    overflow-x: auto;
  }
  .calendar-month__weekdays,
  .calendar-month__grid {
    min-width: 760px;
  }
  .calendar-month--workflow-dots .calendar-month__weekdays,
  .calendar-month--workflow-dots .calendar-month__grid {
    min-width: 0;
  }
  .calendar-month--workflow-dots .calendar-month__weekdays span {
    padding: 8px 2px;
    font-size: 0.66rem;
  }
  .calendar-month--workflow-dots .calendar-month-day {
    min-height: 64px;
    padding: 6px 4px;
  }
  .calendar-month--workflow-dots .calendar-month-day header strong {
    display: none;
  }
  .calendar-workflow-dot-lane {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .calendar-workflow-dot-lanes {
    gap: 7px;
  }
  .calendar-workflow-dot-lane__label {
    font-size: 0.49rem;
  }
  .calendar-workflow-dot-lane .calendar-dot {
    width: 6px;
    height: 6px;
  }
  .calendar-month-detail__header {
    align-items: flex-start;
  }
  .admin-user-form--modal {
    padding: 18px 16px;
  }
  .admin-user-form-actions .button,
  .admin-user-form-actions input[type="submit"] {
    width: 100%;
  }
  .guest-tra-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px;
  }
  .guest-tra-hero h2 {
    font-size: 1.55rem;
  }
  .guest-tra-page--design-5 .guest-tra-hero h2 {
    font-size: 1.62rem;
  }
  .guest-tra-hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }
  .guest-tra-page--design-2 .guest-tra-hero__facts,
  .guest-tra-page--design-5 .guest-tra-hero__facts {
    grid-template-columns: 1fr;
  }
  .guest-tra-panel,
  .guest-tra-summary {
    padding: 18px 16px;
  }
  .guest-tra-ocr-steps {
    grid-template-columns: 1fr;
  }
  .guest-tra-form-grid {
    grid-template-columns: 1fr;
  }
  .guest-tra-upload-target {
    align-items: flex-start;
    min-height: 0;
    padding: 16px;
  }
  .guest-tra-page--design-3 .guest-tra-upload-target {
    min-height: 128px;
  }
  .guest-tra-info {
    padding: 18px 16px;
  }
  .guest-tra-review-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .guest-tra-review-card__grid {
    grid-template-columns: 1fr;
  }
  .guest-tra-actions .button,
  .guest-tra-actions input[type="submit"] {
    width: 100%;
  }
  .queue-tabs {
    grid-template-columns: 1fr;
  }
  .queue-tab {
    min-height: 52px;
  }
  .filters { padding: 22px 16px 16px; }
  .dashboard-filters {
    padding: 0;
  }
  .dashboard-filter-summary {
    width: 100%;
    justify-content: space-between;
  }
  .dashboard-filters .section-heading {
    margin: 16px 16px 12px;
    padding: 0;
  }
  .dashboard-filters form {
    padding: 0 16px 16px;
  }
  .section-heading {
    top: -12px;
    left: 12px;
    padding: 0 8px;
  }
  .filters form { padding: 0; }
  .table-card__header, thead th, tbody td { padding-left: 16px; padding-right: 16px; }
  .admin-properties-overview,
  .admin-properties-token-note,
  .admin-properties-filter,
  .admin-property-row,
  .admin-property-empty {
    padding-left: 16px;
    padding-right: 16px;
  }
  .admin-property-row {
    grid-template-columns: 1fr;
  }
  .admin-property-identity,
  .admin-property-field--api-key {
    grid-column: span 1;
  }
  .admin-property-actions .button,
  .admin-property-actions input[type="submit"] {
    width: 100%;
  }
  .pagination-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }
  .pagination {
    justify-content: flex-start;
  }
  .filters__grid, .filters__grid--five, .filters__grid--six, .filters__grid--dashboard, .form-grid, .detail-grid--three, .admin-user-form-grid, .detail-payload-panel__meta, .date-range-picker__grid { grid-template-columns: 1fr; }
  .detail-payload-panel__meta > div {
    border-right: 0;
  }
  .filter-field--search {
    grid-column: span 1;
  }
  .row-actions {
    flex-wrap: wrap;
  }
  .hero__copy h2 { font-size: 1.4rem; }
  .account-actions,
  .topnav,
  .topnav__link {
    width: auto;
  }
}

@media (max-width: 520px) {
  .topbar__inner {
    min-height: 0;
    padding: 10px 0;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    row-gap: 8px;
  }

  .topbar__brand {
    grid-area: brand;
  }

  .topbar__actions {
    grid-area: actions;
  }

  .topnav {
    grid-area: nav;
    justify-self: stretch;
    justify-content: center;
  }

  .guest-tra-mode-switch {
    grid-template-columns: 1fr;
  }
}

/* Mobile-first TRA/SIRE wizard prototypes */
.guest-tra-page {
  width: min(100%, 430px);
  display: grid;
  gap: 14px;
  margin: 0 auto;
  color: var(--guest-ink);
  --guest-bg: #f6f8fb;
  --guest-card: #ffffff;
  --guest-card-soft: #f8fafc;
  --guest-ink: #101828;
  --guest-muted: #667085;
  --guest-line: #d8e0ea;
  --guest-line-strong: #aeb9c7;
  --guest-accent: #2563eb;
  --guest-accent-dark: #1d4ed8;
  --guest-accent-soft: #eff6ff;
  --guest-radius: 8px;
  --guest-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.guest-tra-page .panel {
  border: 1px solid var(--guest-line);
  border-radius: var(--guest-radius);
  background: var(--guest-card);
  box-shadow: var(--guest-shadow);
}

.guest-tra-test-banner {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #f2c77b;
  border-radius: var(--guest-radius);
  background: #fff8e8;
  color: #7c4303;
  box-shadow: 0 4px 18px rgba(124, 67, 3, 0.08);
}

.guest-tra-test-banner strong {
  color: #5f3200;
  font-size: 0.88rem;
  font-weight: 800;
}

.guest-tra-test-banner span {
  font-size: 0.84rem;
  line-height: 1.4;
}

.guest-tra-hero {
  display: grid;
  gap: 12px;
  padding: 2px 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guest-tra-hero__copy {
  max-width: none;
}

.guest-tra-language-page {
  min-height: calc(100vh - 58px);
  align-content: center;
}

.guest-tra-language-gate,
.guest-tra-why-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.guest-tra-language-gate h1,
.guest-tra-why-card h1 {
  margin: 0;
  color: var(--guest-ink);
  font-size: 1.8rem;
  font-weight: 760;
  line-height: 1.08;
}

.guest-tra-language-gate p,
.guest-tra-why-card p {
  margin: 0;
  color: var(--guest-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.guest-tra-language-gate__reservation {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--guest-line);
  border-radius: var(--guest-radius);
  background: var(--guest-card-soft);
  color: var(--guest-ink) !important;
  font-weight: 760;
}

.guest-tra-language-options {
  display: grid;
  gap: 10px;
}

.guest-tra-language-option {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--guest-accent);
  border-radius: var(--guest-radius);
  background: var(--guest-accent);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.guest-tra-language-option:nth-child(2) {
  background: var(--guest-card);
  color: var(--guest-accent-dark);
}

.guest-tra-language-option:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--guest-accent) 24%, transparent);
  outline-offset: 2px;
}

.guest-tra-why-link:focus-visible,
.guest-tra-why-back:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--guest-accent) 24%, transparent);
  outline-offset: 2px;
}

.guest-tra-heading__eyebrow,
.guest-tra-step-label {
  margin: 0 0 7px;
  color: var(--guest-accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-tra-hero h2 {
  margin: 0;
  color: var(--guest-ink);
  font-size: 1.48rem;
  font-weight: 760;
  line-height: 1.08;
}

.guest-tra-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(118px, 36vw, 150px);
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.guest-tra-heading-row h2 {
  min-width: 0;
}

.guest-tra-hero__copy > p:not(.guest-tra-heading__eyebrow) {
  margin: 8px 0 0;
  color: var(--guest-muted);
  font-size: 0.92rem;
  line-height: 1.52;
}

.guest-tra-why-link {
  width: 100%;
  min-height: 44px;
  margin: 2px 0 0;
  padding: 7px 10px;
  justify-content: center;
  border-color: #0b6b61;
  border-radius: 6px;
  background: linear-gradient(180deg, #14957f 0%, #0f766e 58%, #0b5f58 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.15;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(6, 78, 69, 0.28),
    0 2px 5px rgba(15, 118, 110, 0.18);
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
  white-space: normal;
}

.guest-tra-why-link:hover {
  border-color: #095d54;
  background: linear-gradient(180deg, #0f8475 0%, #0d6b63 58%, #095047 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(6, 78, 69, 0.34),
    0 3px 7px rgba(15, 118, 110, 0.22);
}

.guest-tra-why-link:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(6, 78, 69, 0.28),
    0 1px 2px rgba(15, 118, 110, 0.14);
}

.guest-tra-reservation-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px;
}

.guest-tra-reservation-card div {
  min-width: 0;
}

.guest-tra-reservation-card dt,
.guest-tra-hero__facts dt,
.guest-tra-summary-list dt {
  color: var(--guest-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.guest-tra-reservation-card dd,
.guest-tra-hero__facts dd,
.guest-tra-summary-list dd {
  min-width: 0;
  margin: 4px 0 0;
  color: var(--guest-ink);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.guest-tra-reservation-card--empty {
  display: block;
}

.guest-tra-reservation-card--empty p {
  margin: 0;
  color: var(--guest-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.guest-tra-wizard {
  overflow: hidden;
}

.guest-tra-tracker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--guest-line);
  background: var(--guest-card-soft);
  list-style: none;
}

.guest-tra-tracker li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--guest-muted);
}

.guest-tra-tracker span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--guest-line);
  border-radius: 999px;
  background: var(--guest-card);
  color: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.guest-tra-tracker strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-tra-tracker li.is-active {
  color: var(--guest-accent-dark);
}

.guest-tra-tracker li.is-active span {
  border-color: var(--guest-accent);
  background: var(--guest-accent);
  color: #ffffff;
}

.guest-tra-tracker li.is-complete {
  color: var(--guest-ink);
}

.guest-tra-tracker li.is-complete span {
  border-color: var(--guest-accent);
  background: var(--guest-accent-soft);
  color: var(--guest-accent-dark);
}

.guest-tra-screen {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.guest-tra-screen-head,
.guest-tra-panel__header {
  display: grid;
  gap: 8px;
  margin: 0;
}

.guest-tra-screen-head h3,
.guest-tra-panel__header h3,
.guest-tra-review__header h3,
.guest-tra-summary h3,
.guest-tra-info h3 {
  margin: 0;
  color: var(--guest-ink);
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.2;
}

.guest-tra-screen-head p,
.guest-tra-panel__header p,
.guest-tra-review__header p,
.guest-tra-info p {
  margin: 0;
  color: var(--guest-muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.guest-tra-back-button {
  width: fit-content;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--guest-accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 760;
}

.guest-tra-choice-grid {
  display: grid;
  gap: 12px;
}

.guest-tra-choice-card {
  width: 100%;
  min-height: 118px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--guest-line);
  border-radius: var(--guest-radius);
  background: var(--guest-card);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.guest-tra-choice-card:hover,
.guest-tra-choice-card:focus-visible {
  outline: none;
  border-color: var(--guest-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--guest-accent) 16%, transparent);
}

.guest-tra-choice-card--upload {
  border-style: dotted;
  border-width: 2px;
}

.guest-tra-choice-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--guest-line);
  border-radius: 999px;
  background: var(--guest-accent-soft);
  color: var(--guest-accent-dark);
  font-size: 1rem;
  font-weight: 800;
}

.guest-tra-choice-card strong,
.guest-tra-choice-card small {
  display: block;
}

.guest-tra-choice-card strong {
  color: var(--guest-ink);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.guest-tra-choice-card small {
  margin-top: 5px;
  color: var(--guest-muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.guest-tra-count-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--guest-line);
  border-radius: var(--guest-radius);
  background: var(--guest-card-soft);
}

.guest-tra-count-card__total {
  margin: 0;
  color: var(--guest-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.guest-tra-count-label {
  color: var(--guest-ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.guest-tra-count-stepper {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 10px;
}

.guest-tra-count-stepper input {
  width: 100%;
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--guest-line);
  border-radius: var(--guest-radius);
  background: var(--guest-card);
  color: var(--guest-ink);
  font: inherit;
  font-size: 1.4rem;
  font-weight: 850;
  text-align: center;
}

.guest-tra-count-stepper input:focus {
  outline: none;
  border-color: var(--guest-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--guest-accent) 16%, transparent);
}

.guest-tra-count-stepper__button {
  appearance: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--guest-accent) 45%, var(--guest-line));
  border-radius: var(--guest-radius);
  background: var(--guest-card);
  color: var(--guest-accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: var(--guest-shadow);
}

.guest-tra-count-stepper__button:hover:not(:disabled),
.guest-tra-count-stepper__button:focus-visible {
  outline: none;
  border-color: var(--guest-accent);
  background: var(--guest-accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--guest-accent) 16%, transparent);
}

.guest-tra-count-stepper__button:disabled {
  cursor: default;
  opacity: 0.42;
}

.guest-tra-form {
  display: grid;
  gap: 14px;
}

.guest-tra-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.guest-tra-field {
  min-width: 0;
}

.guest-tra-field-help {
  margin: 6px 0 0;
  color: var(--guest-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.guest-tra-field-error {
  margin: 6px 0 0;
  color: #b91c1c;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.guest-tra-field.has-error input,
.guest-tra-field.has-error select,
.guest-tra-review-field.has-error input,
.guest-tra-review-field.has-error select {
  border-color: #dc2626;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.guest-tra-field.has-error label,
.guest-tra-review-field.has-error span {
  color: #b91c1c;
}

.guest-tra-field--full {
  grid-column: 1 / -1;
}

.guest-tra-upload-box {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.guest-tra-upload-box__label {
  display: block;
  margin-bottom: 4px;
  color: var(--guest-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.guest-tra-upload-box p {
  margin: 0;
  color: var(--guest-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.guest-tra-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.guest-tra-upload-target {
  appearance: none;
  width: 100%;
  min-height: 170px;
  display: grid;
  place-items: center;
  gap: 12px;
  margin: 0;
  padding: 20px;
  border: 2px dotted var(--guest-line-strong);
  border-radius: var(--guest-radius);
  background: var(--guest-card-soft);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.guest-tra-upload-target:hover,
.guest-tra-upload-target:focus-visible {
  border-color: var(--guest-accent);
  background: var(--guest-accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--guest-accent) 16%, transparent);
  outline: 0;
}

.guest-tra-upload-secondary {
  display: flex;
  justify-content: center;
}

.guest-tra-upload-secondary button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--guest-accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guest-tra-upload-secondary button:focus-visible {
  outline: 2px solid var(--guest-accent);
  outline-offset: 4px;
}

.guest-tra-upload-target__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid var(--guest-line);
  border-radius: 999px;
  background: var(--guest-card);
  color: var(--guest-accent-dark);
  font-size: 1.65rem;
  font-weight: 650;
  line-height: 1;
}

.guest-tra-upload-target strong,
.guest-tra-upload-target small {
  display: block;
}

.guest-tra-upload-target strong {
  color: var(--guest-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.guest-tra-upload-target small {
  max-width: 260px;
  margin: 6px auto 0;
  color: var(--guest-muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.guest-tra-save-progress,
.guest-tra-person-progress {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--guest-accent) 30%, var(--guest-line));
  border-radius: var(--guest-radius);
  background: var(--guest-accent-soft);
}

.guest-tra-save-progress strong,
.guest-tra-person-progress {
  color: var(--guest-accent-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.guest-tra-save-progress span {
  color: var(--guest-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.guest-tra-actions {
  display: grid;
  gap: 9px;
}

.guest-tra-actions .button,
.guest-tra-actions input[type="submit"] {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  border-color: var(--guest-accent);
  background: var(--guest-accent);
  color: #ffffff;
  font-weight: 800;
}

.guest-tra-actions span {
  color: var(--guest-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.guest-tra-review {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--guest-line);
  border-radius: var(--guest-radius);
  background: var(--guest-card-soft);
}

.guest-tra-review__header {
  display: grid;
  gap: 12px;
}

.guest-tra-review__copy {
  display: grid;
  gap: 6px;
}

.guest-tra-review__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--guest-accent) 28%, var(--guest-line));
  border-radius: var(--guest-radius);
  background: var(--guest-card);
}

.guest-tra-review__pager .guest-tra-step-label {
  flex: 1 1 auto;
  margin: 0;
  color: var(--guest-accent-dark);
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.guest-tra-review__pager button {
  appearance: none;
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--guest-line);
  border-radius: var(--guest-radius);
  background: var(--guest-accent-soft);
  color: var(--guest-accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.guest-tra-review__pager button:hover:not(:disabled),
.guest-tra-review__pager button:focus-visible {
  border-color: var(--guest-accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--guest-accent) 16%, transparent);
}

.guest-tra-review__pager button:disabled {
  cursor: default;
  opacity: 0.42;
}

.guest-tra-review-list {
  display: grid;
  gap: 12px;
}

.guest-tra-review-card {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--guest-line);
  border-radius: var(--guest-radius);
  background: var(--guest-card);
}

.guest-tra-review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.guest-tra-review-card__header h4 {
  margin: 0;
  color: var(--guest-ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.guest-tra-review-card__badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.guest-tra-review-card__badge--complete {
  background: var(--success-soft);
  color: var(--success);
}

.guest-tra-review-card__badge--needs_review {
  background: var(--warning-soft);
  color: var(--warning);
}

.guest-tra-review-card__message {
  margin: 0;
  color: var(--guest-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.guest-tra-review-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.guest-tra-review-field {
  min-width: 0;
  margin: 0;
}

.guest-tra-review-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--guest-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.guest-tra-review-field input,
.guest-tra-review-field select {
  min-height: 42px;
  padding: 9px 10px;
  font-size: 0.88rem;
}

.guest-tra-field input[type="date"],
.guest-tra-review-field input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.guest-tra-field input[type="date"] {
  height: 43px;
}

.guest-tra-review-field input[type="date"] {
  height: 42px;
}

.guest-tra-review.is-confirmed {
  border-color: #86efac;
  background: #f0fdf4;
}

.guest-tra-save-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: var(--guest-radius);
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.4;
}

.guest-tra-complete-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 16px;
  border: 1px solid #bbf7d0;
  border-radius: var(--guest-radius);
  background: #f0fdf4;
  text-align: center;
}

.guest-tra-complete-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--success);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
}

.guest-tra-complete-card h3 {
  margin: 0;
  color: var(--guest-ink);
  font-size: 1.12rem;
}

.guest-tra-complete-card p {
  max-width: 430px;
  margin: 0;
}

.guest-tra-complete-card__action {
  width: min(100%, 280px);
  min-height: 44px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.guest-tra-complete-card__action span {
  font-size: 1.15rem;
  line-height: 1;
}

.guest-tra-summary {
  padding: 16px;
}

.guest-tra-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.guest-tra-summary-list div {
  min-width: 0;
}

.guest-tra-summary-empty {
  margin: 10px 0 0;
  color: var(--guest-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.guest-tra-info {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.guest-tra-info-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guest-tra-why-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guest-tra-info-list li {
  padding: 10px 11px;
  border: 1px solid var(--guest-line);
  border-radius: var(--guest-radius);
  background: var(--guest-card-soft);
  color: var(--guest-muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.guest-tra-why-list li {
  padding: 12px;
  border: 1px solid var(--guest-line);
  border-radius: var(--guest-radius);
  background: var(--guest-card-soft);
  color: var(--guest-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.guest-tra-why-back {
  width: fit-content;
  color: var(--guest-accent-dark);
}

.guest-tra-progress-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.26);
}

.guest-tra-progress-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.guest-tra-progress-dialog__surface {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 22px;
}

.guest-tra-progress-dialog__surface h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
}

.guest-tra-progress-dialog__surface p {
  margin: 5px 0 0;
  font-size: 0.9rem;
}

.guest-tra-progress-dialog__spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #dbeafe;
  border-top-color: var(--guest-accent);
  border-radius: 999px;
  animation: guest-tra-spin 0.9s linear infinite;
}

.guest-tra-progress-bar {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.guest-tra-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--guest-accent);
  transition: width .2s ease;
}

.guest-tra-count-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.26);
}

.guest-tra-count-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.guest-tra-count-dialog__surface {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.guest-tra-count-dialog__surface h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 800;
}

.guest-tra-count-dialog__surface p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.guest-tra-count-dialog__actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.guest-tra-count-dialog__actions .button {
  width: 100%;
  justify-content: center;
}

.guest-tra-count-dialog__actions .button:not(.button--ghost) {
  border-color: var(--guest-accent);
  background: var(--guest-accent);
  color: #ffffff;
}

.guest-tra-count-dialog__actions .button:not(.button--ghost):hover,
.guest-tra-count-dialog__actions .button:not(.button--ghost):focus-visible {
  border-color: var(--guest-accent-dark);
  background: var(--guest-accent-dark);
}

.guest-tra-page--design-1 {
  --guest-bg: #f6f8fb;
  --guest-accent: #2563eb;
  --guest-accent-dark: #1d4ed8;
  --guest-accent-soft: #eff6ff;
  --guest-line: #d8e0ea;
  --guest-line-strong: #9aa8ba;
}

.guest-tra-page--design-2 {
  --guest-bg: #ffffff;
  --guest-accent: #111827;
  --guest-accent-dark: #111827;
  --guest-accent-soft: #f3f4f6;
  --guest-line: #d1d5db;
  --guest-line-strong: #6b7280;
  --guest-radius: 2px;
  --guest-shadow: none;
}

.guest-tra-page--design-2 .panel,
.guest-tra-page--design-2 .guest-tra-choice-card,
.guest-tra-page--design-2 .guest-tra-upload-target,
.guest-tra-page--design-2 .guest-tra-info-list li,
.guest-tra-page--design-2 .guest-tra-reservation-card,
.guest-tra-page--design-2 .guest-tra-hero__facts div {
  box-shadow: none;
}

.guest-tra-page--design-2 .guest-tra-tracker {
  background: #ffffff;
}

.guest-tra-page--design-3 {
  --guest-bg: #f5f8ff;
  --guest-accent: #0f62fe;
  --guest-accent-dark: #0043ce;
  --guest-accent-soft: #edf5ff;
  --guest-line: #cddcf2;
  --guest-line-strong: #7ea6e0;
}

.guest-tra-page--design-3 .guest-tra-choice-card--upload,
.guest-tra-page--design-3 .guest-tra-upload-target {
  min-height: 220px;
  border-width: 3px;
}

.guest-tra-page--design-3 .guest-tra-upload-target__icon {
  width: 64px;
  height: 64px;
}

.guest-tra-page--design-4 {
  --guest-bg: #f7fbf9;
  --guest-accent: #0f766e;
  --guest-accent-dark: #0f5f59;
  --guest-accent-soft: #ecfdf5;
  --guest-line: #cfddd9;
  --guest-line-strong: #7ca49d;
  --guest-radius: 8px;
  --guest-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.guest-tra-page--design-5 {
  --guest-bg: #ffffff;
  --guest-card: #ffffff;
  --guest-card-soft: #ffffff;
  --guest-accent: #be123c;
  --guest-accent-dark: #9f1239;
  --guest-accent-soft: #fff1f2;
  --guest-line: #e5e7eb;
  --guest-line-strong: #9ca3af;
  --guest-radius: 0;
  --guest-shadow: none;
}

.guest-tra-page--design-5 .panel {
  border-width: 1px 0;
}

.guest-tra-page--design-5 .guest-tra-hero__facts div,
.guest-tra-page--design-5 .guest-tra-reservation-card,
.guest-tra-page--design-5 .guest-tra-choice-card,
.guest-tra-page--design-5 .guest-tra-info-list li {
  border-width: 0 0 1px;
  padding-left: 0;
  padding-right: 0;
}

.guest-tra-page--design-5 .guest-tra-tracker,
.guest-tra-page--design-5 .guest-tra-screen,
.guest-tra-page--design-5 .guest-tra-summary,
.guest-tra-page--design-5 .guest-tra-info {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 860px) {
  .guest-tra-page {
    width: min(100%, 760px);
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .guest-tra-language-page {
    width: min(100%, 520px);
  }

  .guest-tra-why-page {
    width: min(100%, 680px);
  }

  .guest-tra-hero h2 {
    font-size: 2rem;
  }

  .guest-tra-language-gate h1,
  .guest-tra-why-card h1 {
    font-size: 2rem;
  }

  .guest-tra-reservation-card {
    grid-template-columns: 1.1fr 1.1fr 1.5fr 0.9fr 1.4fr;
    gap: 12px;
    padding: 14px;
  }

  .guest-tra-screen {
    padding: 24px;
  }

  .guest-tra-review__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .guest-tra-review__pager {
    width: auto;
    min-width: 190px;
    justify-self: end;
  }

  .guest-tra-choice-grid,
  .guest-tra-form-grid,
  .guest-tra-review-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-tra-upload-target {
    min-height: 210px;
  }

  .guest-tra-page--design-3 .guest-tra-upload-target {
    min-height: 280px;
  }

  .guest-tra-page--design-5 {
    width: min(100%, 760px);
  }
}

.dashboard-table {
  overflow: visible;
}

.dashboard-table__tabs-row {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: #ffffff;
}

.pipeline-navigation {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.pipeline-tracker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(148px, 1fr));
  gap: 10px;
  flex: 1 1 520px;
  min-width: 0;
  padding: 2px 0;
}

.pipeline-step {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 7px;
  min-height: 74px;
  padding: 4px 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #475569;
  text-decoration: none;
  text-align: center;
  transition: color .15s ease, transform .15s ease;
}

.dashboard-table .pipeline-step.queue-tab,
.dashboard-table .pipeline-step.queue-tab:hover,
.dashboard-table .pipeline-step.queue-tab:focus,
.dashboard-table .pipeline-step.queue-tab.is-active {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pipeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(50% + 25px);
  right: calc(-50% + 25px);
  z-index: 0;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
}

.pipeline-step.is-passed::after {
  background: linear-gradient(90deg, #16a34a, var(--blue));
}

.pipeline-step:hover,
.pipeline-step:focus {
  color: #0f3f66;
  transform: translateY(-1px);
}

.pipeline-step.is-active {
  color: #0f172a;
}

.pipeline-step.is-passed {
  color: #14532d;
}

.pipeline-step__marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 0 0 1px #cbd5e1, 0 6px 14px rgba(15, 23, 42, 0.1);
}

.pipeline-step.is-passed .pipeline-step__marker {
  background: #dcfce7;
  color: #166534;
}

.pipeline-step.is-active .pipeline-step__marker {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 0 1px var(--blue), 0 0 0 6px #dbeafe, 0 8px 18px rgba(22, 89, 150, 0.22);
}

.pipeline-step__body {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
}

.pipeline-step__label {
  overflow: hidden;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-step small {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
}

.pipeline-step.is-active small {
  background: #dbeafe;
  color: var(--blue-dark);
}

.pipeline-side-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex: 0 1 260px;
  min-width: 0;
}

.pipeline-secondary {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.pipeline-secondary-link,
.pipeline-filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}

.pipeline-filter-link {
  flex: 0 0 auto;
  min-width: 150px;
}

.pipeline-secondary-link:hover,
.pipeline-secondary-link:focus,
.pipeline-filter-link:hover,
.pipeline-filter-link:focus {
  border-color: var(--blue);
  color: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(22, 29, 42, 0.08);
}

.pipeline-secondary-link.is-active,
.pipeline-filter-link.is-active {
  border-color: var(--blue);
  background: #f4f9fd;
  color: #0f3f66;
  box-shadow: none;
}

.pipeline-secondary-link.has-issues:not(.is-active) {
  border-color: #fecaca;
  background: #fff7f7;
}

.pipeline-secondary-link strong,
.pipeline-filter-link strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: #475569;
  font-size: 0.74rem;
  line-height: 1;
}

.pipeline-secondary-link.is-active strong,
.pipeline-filter-link.is-active strong {
  background: var(--blue);
  color: #ffffff;
}

.pipeline-secondary-link.has-issues strong {
  background: #dc2626;
  color: #ffffff;
}

.pipeline-caption {
  padding: 9px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 650;
}

.pipeline-caption--secondary {
  background: #fffdf7;
  color: #7c5e22;
}

.dashboard-table--tracker-route .pipeline-tracker {
  gap: 0;
  padding: 12px 16px;
  border: 1px solid #dbe7f1;
  border-radius: 8px;
  background: #f8fafc;
}

.dashboard-table--tracker-route .pipeline-step {
  min-height: 68px;
}

.dashboard-table--tracker-route .pipeline-step:not(:last-child)::after {
  top: 23px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 3px;
  background: repeating-linear-gradient(90deg, #94a3b8 0 8px, transparent 8px 14px);
}

.dashboard-table--tracker-route .pipeline-step.is-passed::after {
  background: repeating-linear-gradient(90deg, #16a34a 0 8px, transparent 8px 14px);
}

.dashboard-table--tracker-route .pipeline-step__marker {
  width: 42px;
  height: 42px;
  background: #ffffff;
}

.dashboard-table--tracker-rail .pipeline-tracker {
  gap: 6px;
  padding: 10px;
  border: 1px solid #dbe7f1;
  border-radius: 8px;
  background: #ffffff;
}

.dashboard-table--tracker-rail .pipeline-step {
  min-height: 58px;
  gap: 8px;
  padding-top: 0;
}

.dashboard-table--tracker-rail .pipeline-step:not(:last-child)::after {
  display: none;
}

.dashboard-table--tracker-rail .pipeline-step__marker {
  width: 100%;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #dbe7f1;
  box-shadow: none;
  color: transparent;
  font-size: 0;
}

.dashboard-table--tracker-rail .pipeline-step.is-passed .pipeline-step__marker {
  background: #22c55e;
}

.dashboard-table--tracker-rail .pipeline-step.is-active .pipeline-step__marker {
  background: var(--blue);
  box-shadow: none;
}

.dashboard-table--tracker-cards .pipeline-tracker {
  gap: 12px;
  padding: 0;
}

.dashboard-table--tracker-cards .pipeline-step {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.dashboard-table--tracker-cards .pipeline-step:not(:last-child)::after {
  top: 35px;
  left: calc(100% + 1px);
  right: -13px;
  height: 2px;
  background: #cbd5e1;
}

.dashboard-table--tracker-cards .pipeline-step.is-active {
  border-color: var(--blue);
  background: #f4f9fd;
}

.dashboard-table--tracker-cards .pipeline-step.is-active .pipeline-step__marker {
  box-shadow: 0 0 0 1px var(--blue), 0 6px 16px rgba(22, 89, 150, 0.16);
}

.dashboard-table--tracker-compact .pipeline-tracker {
  gap: 0;
  flex: 0 1 520px;
  width: min(100%, 520px);
  max-width: 520px;
  margin: 0;
  padding: 4px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-table--tracker-compact .pipeline-step {
  grid-template-columns: minmax(0, 1fr);
  min-height: 62px;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.dashboard-table--tracker-compact .pipeline-step:not(:last-child)::after {
  top: 19px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 3px;
  background: #cbd5e1;
}

.dashboard-table--tracker-compact .pipeline-step.is-passed {
  color: #475569;
}

.dashboard-table--tracker-compact .pipeline-step.is-passed::after {
  background: #cbd5e1;
}

.dashboard-table--tracker-compact .pipeline-step__marker {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-width: 3px;
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
  box-shadow: 0 0 0 1px #cbd5e1, 0 3px 8px rgba(15, 23, 42, 0.08);
}

.dashboard-table--tracker-compact .pipeline-step--upcoming .pipeline-step__marker,
.dashboard-table--tracker-compact .pipeline-step--upcoming.is-active .pipeline-step__marker {
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 3px 8px rgba(22, 89, 150, 0.16);
}

.dashboard-table--tracker-compact .pipeline-step--in-progress .pipeline-step__marker,
.dashboard-table--tracker-compact .pipeline-step--in-progress.is-active .pipeline-step__marker {
  background: #facc15;
  box-shadow: 0 0 0 1px #d6a514, 0 3px 8px rgba(214, 165, 20, 0.18);
}

.dashboard-table--tracker-compact .pipeline-step--completed .pipeline-step__marker,
.dashboard-table--tracker-compact .pipeline-step--completed.is-active .pipeline-step__marker {
  background: #16a34a;
  box-shadow: 0 0 0 1px #15803d, 0 3px 8px rgba(22, 163, 74, 0.16);
}

.dashboard-table--tracker-compact .pipeline-step.is-active,
.dashboard-table--tracker-compact .pipeline-step.queue-tab.is-active {
  border-color: #bfdbfe;
  background: transparent;
  color: #0f172a;
  outline: 2px solid #bfdbfe;
  outline-offset: -2px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.dashboard-table--tracker-compact .pipeline-step__label {
  font-size: 0.84rem;
}

.dashboard-table--tracker-compact .pipeline-step small {
  min-height: 0;
  padding: 0;
  background: transparent;
}

.dashboard-table--tracker-compact .pipeline-side-actions {
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 7px;
}

.dashboard-table--tracker-compact .pipeline-secondary {
  justify-content: flex-end;
  width: 100%;
}

.dashboard-table--tracker-compact .pipeline-secondary-link,
.dashboard-table--tracker-compact .pipeline-filter-link {
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.78rem;
}

.dashboard-table--tracker-compact .pipeline-secondary-link strong,
.dashboard-table--tracker-compact .pipeline-filter-link strong {
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
}

.dashboard-table--tracker-compact .dashboard-filter-summary {
  gap: 7px;
}

.dashboard-table--tracker-compact .dashboard-filter-summary::after {
  width: 7px;
  height: 7px;
}

.dashboard-table--tracker-compact .dashboard-filter-summary small {
  padding: 2px 6px;
  font-size: 0.68rem;
}

.dashboard-filter-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
}

.dashboard-table .dashboard-filter-summary {
  flex: 0 0 auto;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 750;
  box-shadow: none;
}

.dashboard-filter-toggle:focus-visible + .dashboard-table__tabs-row .dashboard-filter-summary {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.dashboard-filter-toggle:checked + .dashboard-table__tabs-row .dashboard-filter-summary {
  border: 1px solid var(--blue);
  border-radius: 7px;
  background: #f4f9fd;
  color: var(--blue-dark);
}

.dashboard-filter-toggle:checked + .dashboard-table__tabs-row .dashboard-filter-summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.dashboard-table--tracker-compact .dashboard-filter-summary,
.dashboard-table--tracker-compact .dashboard-filter-toggle:checked + .dashboard-table__tabs-row .dashboard-filter-summary {
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.78rem;
}

.dashboard-filter-toggle:not(:checked) + .dashboard-table__tabs-row + .pipeline-caption + .dashboard-filters__body {
  display: none;
}

.dashboard-table .dashboard-filters__body {
  width: 100%;
  padding: 14px 18px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fbfdff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

.dashboard-table .dashboard-filters__body .section-heading {
  margin: 0 0 14px;
  padding: 0;
}

.dashboard-table .dashboard-filters__body form {
  padding: 0;
}

.dashboard-filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.dashboard-filter-panel__row {
  display: contents;
}

.dashboard-filter-panel__actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  grid-column: span 2;
  padding-top: 0;
}

.dashboard-table .dashboard-filters__body label,
.dashboard-filter-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 750;
  color: #4b6174;
  text-transform: none;
  letter-spacing: 0;
}

.dashboard-table .dashboard-filters__body input,
.dashboard-table .dashboard-filters__body select,
.dashboard-table .dashboard-filters__body .date-range-picker__trigger {
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

.dashboard-table .dashboard-filters__body .filter-actions-field {
  min-height: 0;
  padding-top: 0;
}

.dashboard-table .dashboard-filters__body .filter-actions-field .button,
.dashboard-table .dashboard-filters__body .filter-actions-field input[type="submit"] {
  min-height: 40px;
  padding: 9px 14px;
  flex: 0 1 180px;
}

.dashboard-filter-segmented {
  min-height: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.dashboard-filter-segmented__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
}

.dashboard-table .dashboard-filters__body .dashboard-filter-segmented__option {
  min-width: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px;
  border-radius: 5px;
  color: #52677a;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
}

.dashboard-filter-segmented__input:focus-visible + .dashboard-filter-segmented__option {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.dashboard-filter-segmented__input:checked + .dashboard-filter-segmented__option {
  background: var(--success-soft);
  color: var(--success);
  box-shadow: inset 0 0 0 1px rgba(22, 121, 76, 0.16);
}

.dashboard-table .dashboard-filters__body .date-range-picker__popover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.dashboard-table .dashboard-filters__body .date-range-picker__popover[data-date-range-popover] {
  max-width: min(100%, 640px);
}

.dashboard-table .dashboard-filters__body::before {
  content: "";
  display: block;
  margin: -14px -18px 14px;
  border: 1px solid var(--line);
  border-width: 1px 0 0;
}

@media (max-width: 1120px) {
  .dashboard-table__tabs-row {
    flex-wrap: wrap;
  }

  .pipeline-side-actions {
    justify-content: space-between;
    width: 100%;
  }

  .pipeline-secondary {
    flex: 1 1 auto;
  }

  .dashboard-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-filter-panel__actions {
    justify-content: stretch;
    grid-column: 1 / span 2;
  }

  .dashboard-filter-panel__actions .button,
  .dashboard-filter-panel__actions input[type="submit"] {
    flex: 1 1 0;
  }

  .dashboard-table .dashboard-filters__body label,
  .dashboard-filter-label {
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-table .dashboard-filters__body input,
  .dashboard-table .dashboard-filters__body select,
  .dashboard-table .dashboard-filters__body .date-range-picker__trigger {
    min-height: 38px;
    padding: 8px;
    font-size: 0.88rem;
  }

  .dashboard-table .dashboard-filters__body .dashboard-filter-segmented__option {
    min-height: 30px;
    padding: 5px 0;
    font-size: 0.52rem;
    font-weight: 750;
  }
}

@media (max-width: 520px) {
  .dashboard-heading {
    display: grid;
    gap: 12px;
  }

  .dashboard-table__tabs-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .pipeline-navigation,
  .pipeline-side-actions {
    flex-direction: column;
    flex: 0 0 auto;
    gap: 10px;
    width: 100%;
  }

  .pipeline-tracker {
    grid-template-columns: 1fr;
    gap: 8px;
    flex-basis: auto;
  }

  .pipeline-step:not(:last-child)::after {
    top: 44px;
    right: auto;
    bottom: -14px;
    left: 21px;
    width: 4px;
    height: auto;
    transform: none;
  }

  .dashboard-table--tracker-route .pipeline-step:not(:last-child)::after,
  .dashboard-table--tracker-rail .pipeline-step:not(:last-child)::after,
  .dashboard-table--tracker-cards .pipeline-step:not(:last-child)::after,
  .dashboard-table--tracker-compact .pipeline-step:not(:last-child)::after {
    display: block;
    top: 44px;
    right: auto;
    bottom: -14px;
    left: 21px;
    width: 4px;
    height: auto;
    background: #cbd5e1;
  }

  .dashboard-table--tracker-route .pipeline-step.is-passed::after,
  .dashboard-table--tracker-rail .pipeline-step.is-passed::after,
  .dashboard-table--tracker-cards .pipeline-step.is-passed::after,
  .dashboard-table--tracker-compact .pipeline-step.is-passed::after {
    background: linear-gradient(180deg, #16a34a, var(--blue));
  }

  .pipeline-step {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    justify-items: start;
    text-align: left;
    min-height: 50px;
    padding: 8px 10px;
  }

  .pipeline-step__body {
    justify-items: start;
  }

  .dashboard-table--tracker-compact .pipeline-tracker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 0 0 auto;
    gap: 0;
    width: 100%;
    max-width: 520px;
    margin: 0;
  }

  .dashboard-table--tracker-compact .pipeline-step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-items: center;
    min-height: 62px;
    padding: 6px 4px;
    text-align: center;
  }

  .dashboard-table--tracker-compact .pipeline-step:not(:last-child)::after {
    top: 19px;
    right: calc(-50% + 14px);
    bottom: auto;
    left: calc(50% + 14px);
    width: auto;
    height: 3px;
    background: #cbd5e1;
  }

  .dashboard-table--tracker-compact .pipeline-step.is-passed::after {
    background: #cbd5e1;
  }

  .dashboard-table--tracker-compact .pipeline-step__body {
    justify-items: center;
  }

  .pipeline-secondary {
    display: grid;
    grid-template-columns: 1fr;
    flex: 0 0 auto;
    gap: 8px;
    width: 100%;
  }

  .pipeline-secondary-link,
  .pipeline-filter-link {
    width: 100%;
  }

  .dashboard-table .dashboard-filter-summary,
  .dashboard-filter-toggle:checked + .dashboard-table__tabs-row .dashboard-filter-summary {
    justify-content: center;
    width: 100%;
    margin: 0;
  }

  .dashboard-table--tracker-compact .pipeline-side-actions {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
  }

  .dashboard-table--tracker-compact .pipeline-secondary {
    display: flex;
    justify-content: flex-end;
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
  }

  .dashboard-table--tracker-compact .pipeline-secondary-link {
    width: auto;
    max-width: 220px;
  }

  .dashboard-table--tracker-compact .dashboard-filter-summary,
  .dashboard-table--tracker-compact .dashboard-filter-toggle:checked + .dashboard-table__tabs-row .dashboard-filter-summary {
    justify-content: flex-start;
    width: auto;
  }

  .dashboard-table .dashboard-filters__body {
    width: 100%;
    padding: 12px;
    background: #ffffff;
  }

  .dashboard-table .dashboard-filters__body::before {
    margin: -12px -12px 12px;
  }

  .dashboard-table .dashboard-filters__body .filter-actions-field {
    justify-content: stretch;
  }

  .dashboard-table .dashboard-filters__body .filter-actions-field .button,
  .dashboard-table .dashboard-filters__body .filter-actions-field input[type="submit"] {
    flex: 1 1 0;
  }
}

@media (max-width: 420px) {
  .dashboard-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-filter-panel__actions {
    grid-column: 1 / -1;
  }
}

.submission-status-row__queue-turn {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 190px;
  text-align: right;
}

.submission-status-row__queue-turn > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.submission-status-row__queue-turn > strong {
  color: var(--text);
  font-size: 0.88rem;
}

.submission-status-row__queue-turn .button {
  margin-top: 3px;
}

.submission-readiness__queue-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 0.84rem;
}

.submission-readiness__queue-link a {
  color: var(--blue-dark);
  font-weight: 700;
}

.tra-queue-page {
  display: grid;
  gap: 18px;
}

.tra-queue-heading {
  align-items: flex-end;
  margin-bottom: 0;
}

.tra-queue-heading__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.tra-queue-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.tra-queue-stat {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 86px;
  padding: 16px 18px;
  border-left: 1px solid var(--line);
}

.tra-queue-stat:first-child {
  border-left: 0;
}

.tra-queue-stat > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tra-queue-stat > strong:not(.badge) {
  color: #0f172a;
  font-size: 1.45rem;
  line-height: 1;
}

.tra-queue-stat .badge {
  justify-self: start;
}

.tra-queue-banner {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.tra-queue-banner--danger {
  border-color: #fecaca;
  background: var(--danger-soft);
  color: var(--danger);
}

.tra-queue-banner--warning {
  border-color: #f7d59b;
  background: var(--warning-soft);
  color: #7c4605;
}

.tra-queue-panel {
  overflow: hidden;
}

.tra-queue-panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.tra-queue-panel__header h3 {
  color: #0f172a;
  font-size: 1rem;
}

.tra-queue-panel__header p,
.tra-queue-panel__header > span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.tra-queue-table-wrap {
  overflow-x: auto;
}

.tra-queue-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.tra-queue-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.tra-queue-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.84rem;
  vertical-align: middle;
}

.tra-queue-table tbody tr:last-child td {
  border-bottom: 0;
}

.tra-queue-table tbody tr {
  scroll-margin-top: 20px;
}

.tra-queue-table tbody tr.is-focused {
  background: #edf7ff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.tra-queue-table tbody tr.is-focused td {
  background: #edf7ff;
}

.tra-queue-table td > span:not(.badge),
.tra-queue-table td > strong + span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.tra-queue-table__turn > strong {
  color: var(--blue-dark);
  font-size: 1rem;
}

.tra-queue-table__reservation a {
  display: block;
  color: #0f172a;
  font-weight: 750;
  text-decoration: none;
}

.tra-queue-table__reservation a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.tra-queue-table__expected {
  min-width: 170px;
}

.tra-queue-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 42px 20px;
  color: var(--muted);
  text-align: center;
}

.tra-queue-empty strong {
  color: var(--text);
}

@media (max-width: 700px) {
  .submission-status-row__queue-turn {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .tra-queue-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .tra-queue-heading__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tra-queue-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tra-queue-stat {
    min-height: 76px;
    padding: 14px;
  }

  .tra-queue-stat:nth-child(odd) {
    border-left: 0;
  }

  .tra-queue-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .tra-queue-panel__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .tra-queue-table,
  .tra-queue-table tbody,
  .tra-queue-table tr,
  .tra-queue-table td {
    display: block;
    width: 100%;
  }

  .tra-queue-table thead {
    display: none;
  }

  .tra-queue-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .tra-queue-table tbody tr:last-child {
    border-bottom: 0;
  }

  .tra-queue-table td {
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .tra-queue-table td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .tra-queue-table__reservation,
  .tra-queue-table__expected {
    grid-column: 1 / -1;
  }
}
