:root {
  --ui-bg: #f7f8fa;
  --ui-bg-accent: #f1f3f7;
  --ui-surface: #ffffff;
  --ui-surface-strong: #ffffff;
  --ui-surface-muted: #f8fafc;
  --ui-border: #e5e8ef;
  --ui-border-strong: #d3d8e2;
  --ui-text: #101828;
  --ui-text-strong: #0b1220;
  --ui-text-muted: #566278;
  --ui-text-soft: #8591a6;
  --ui-brand: #1762d7;
  --ui-brand-strong: #0f4db0;
  --ui-brand-soft: #eaf1fc;
  --ui-success: #047a4a;
  --ui-success-soft: #e6f6ee;
  --ui-warning: #9a5b06;
  --ui-warning-soft: #fff4d9;
  --ui-danger: #b42318;
  --ui-danger-soft: #fdecea;
  --ui-info: #155eef;
  --ui-info-soft: #eef3ff;
  --ui-shadow-sm: 0 1px 2px rgba(15, 22, 40, 0.04);
  --ui-shadow-md: 0 1px 2px rgba(15, 22, 40, 0.06), 0 10px 24px rgba(15, 22, 40, 0.06);
  --ui-shadow-lg: 0 14px 44px rgba(15, 22, 40, 0.12);
  --ui-radius-xs: 8px;
  --ui-radius-sm: 10px;
  --ui-radius-md: 12px;
  --ui-radius-lg: 14px;
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 20px;
  --ui-space-6: 24px;
  --ui-space-7: 32px;
  --ui-space-8: 40px;
}

.dispatcher-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ui-bg);
  color: var(--ui-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dispatcher-body.has-sidebar {
  display: block;
  min-height: 100vh;
}

.dispatcher-body section {
  padding: 20px;
}

/* ---- Sidebar shell ------------------------------------------------------ */

.dispatcher-shell {
  --sidebar-w: 236px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  background: var(--ui-bg);
}

.dispatcher-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 12px 14px;
  background: #ffffff;
  border-right: 1px solid var(--ui-border);
  z-index: 30;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 10px;
  color: var(--ui-text-strong);
  font-weight: 700;
}

.sidebar-brand:hover {
  text-decoration: none;
}

.sidebar-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sidebar-brand-text strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.sidebar-brand-text em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ui-brand);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ui-text-muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 120ms ease, background 120ms ease;
}

.sidebar-nav-item:hover {
  text-decoration: none;
  color: var(--ui-text-strong);
  background: var(--ui-surface-muted);
}

.sidebar-nav-item.is-active {
  color: var(--ui-brand-strong);
  background: var(--ui-brand-soft);
  box-shadow: inset 3px 0 0 var(--ui-brand), 0 10px 22px rgba(23, 98, 215, 0.08);
  font-weight: 800;
}

.sidebar-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.85;
}

.sidebar-nav-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-nav-item.is-active .sidebar-nav-icon {
  opacity: 1;
  transform: scale(1.02);
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--ui-border);
}

.dispatcher-locale {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dispatcher-locale-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ui-text-soft);
}

.sidebar-locale {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 10px 4px;
}

.sidebar-locale .lang-switch {
  width: fit-content;
}

.header-locale {
  margin-right: 4px;
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
}

.sidebar-account-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  flex: 1;
}

.sidebar-account-meta strong {
  font-size: 13px;
  color: var(--ui-text-strong);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-account-meta span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ui-text-soft);
  margin-top: 2px;
}

.sidebar-account .account-menu-panel {
  top: auto;
  bottom: calc(100% + 6px);
  right: 0;
  left: auto;
}

.sidebar-account .logout-form button {
  width: 100%;
  text-align: left;
  padding: 0 10px;
  min-height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--ui-text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.sidebar-account .logout-form button:hover {
  background: var(--ui-surface-muted);
}

.dispatcher-main--sidebar {
  padding: 28px 32px 40px;
  max-width: none;
  min-width: 0;
}

.dispatcher-main--sidebar > :last-child {
  margin-bottom: 0;
}

.dispatcher-footer--sidebar {
  margin-top: 32px;
  padding: 20px 0 0;
  border-top: 1px solid var(--ui-border);
  background: transparent;
  color: var(--ui-text-soft);
  font-size: 12.5px;
}

/* ---- Top nav ------------------------------------------------------------ */

.dispatcher-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--ui-border);
}

.dispatcher-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ui-text-strong);
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: none;
}

.brand:hover {
  text-decoration: none;
}

.dispatcher-nav {
  margin-left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}

.dispatcher-nav a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ui-text-muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 120ms ease, background 120ms ease;
}

.dispatcher-nav a:hover {
  text-decoration: none;
  color: var(--ui-text-strong);
  background: var(--ui-surface-muted);
}

.dispatcher-nav a.is-active {
  color: var(--ui-text-strong);
  background: var(--ui-brand-soft);
  box-shadow: none;
}

.dispatcher-account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dispatcher-account-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--ui-surface-muted);
  color: var(--ui-text-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--ui-border);
}

.account-menu {
  position: relative;
}

.account-menu summary {
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: none;
  background: none;
  color: var(--ui-text-strong);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
}

.account-menu-trigger:hover {
  background: var(--ui-surface-muted);
}

.account-menu-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  background: #fff;
  box-shadow: var(--ui-shadow-lg);
  display: grid;
  gap: 2px;
}

.account-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ui-text);
  font-size: 13.5px;
  font-weight: 600;
}

.account-menu-panel a:hover {
  text-decoration: none;
  background: var(--ui-surface-muted);
}

.logout-form {
  margin: 0;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ui-text-muted);
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn:hover {
  color: var(--ui-text-strong);
  background: var(--ui-surface-muted);
}

.dispatcher-main {
  flex: 1;
  padding: 32px 24px 48px;
}

.dispatcher-footer-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.dispatcher-footer-link:hover {
  color: var(--accent, #1877c8);
  text-decoration: underline;
}
.dispatcher-footer {
  padding: 10px;
  border-top: 1px solid var(--ui-border);
  margin-top: 24px;
  color: var(--ui-text-soft);
  font-size: 12.5px;
  background: #fff;
}

/* ---- Page hero ---------------------------------------------------------- */

.dispatcher-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ui-border);
}

.dispatcher-hero h1 {
  margin: 0;
  color: var(--ui-text-strong);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dispatcher-hero .lead {
  margin: 8px 0 0;
  max-width: 640px;
  color: var(--ui-text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Eyebrow above page titles — kept quiet; views may omit. */
.page-kicker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 0;
  background: none;
  color: var(--ui-text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero-actions,
.hero-metrics,
.route-summary,
.form-actions,
.filter-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.hero-metrics {
  flex-wrap: nowrap;
  gap: 18px;
}

.hero-metric {
  min-width: 100px;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.hero-metric .label,
.route-summary .label,
.metric-card .label,
.metric-compact .label {
  display: block;
  color: var(--ui-text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hero-metric strong,
.route-summary strong,
.metric-card strong,
.metric-compact strong {
  display: block;
  margin-top: 4px;
  color: var(--ui-text-strong);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.route-summary {
  gap: 20px;
}

/* ---- Alerts ------------------------------------------------------------- */

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
}

.alert-info {
  color: #0f3c7a;
  background: var(--ui-info-soft);
  border-color: #d6e1fb;
}

.alert-error {
  color: #8a1c12;
  background: var(--ui-danger-soft);
  border-color: #f3cfcb;
}

.alert-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-left: auto;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(23, 98, 215, 0.18);
  background: #fff;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.alert-copy-btn:hover {
  background: var(--ui-surface-muted);
}

.alert-copy-btn.is-copied {
  color: var(--ui-success);
  border-color: rgba(4, 122, 74, 0.24);
}

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

.auth-card,
.card-panel,
.surface-panel,
.table-shell,
.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
  border-radius: 12px;
  box-shadow: none;
}

.auth-card,
.card-panel,
.surface-panel,
.table-shell {
  padding: 28px;
  margin-bottom: 18px;
}

.surface-panel-muted {
  background: var(--ui-surface);
}

.surface-panel-strong {
  background: var(--ui-surface-strong);
  box-shadow: var(--ui-shadow-sm);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header h3,
.surface-title,
.table-title {
  margin: 0;
  color: var(--ui-text-strong);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.panel-header p,
.section-lead,
.table-subtitle {
  margin: 4px 0 0;
  color: var(--ui-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.eyebrow-meta {
  display: block;
  margin-bottom: 4px;
  color: var(--ui-text-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ---- Grids -------------------------------------------------------------- */

.dashboard-grid,
.overview-grid,
.detail-grid,
.request-detail-grid {
  display: grid;
  gap: 16px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  margin-bottom: 20px;
}

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

.detail-grid,
.request-detail-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card,
.metric-compact {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
  box-shadow: none;
}

.metric-card .sub,
.metric-compact .sub,
.stat-sub {
  display: block;
  margin-top: 6px;
  color: var(--ui-text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.metric-card.is-warning {
  border-color: #f2dfb3;
  background: #fffbf0;
}

.metric-card.is-warning .label {
  color: var(--ui-warning);
}

.metric-card.is-clickable {
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.metric-card.is-clickable:hover {
  text-decoration: none;
  border-color: var(--ui-border-strong);
  box-shadow: var(--ui-shadow-sm);
}

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

.inline-form,
.search-form,
.filter-form,
.toolbar {
  display: grid;
  gap: 10px;
}

.inline-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

.search-form {
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
}

.filter-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

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

.toolbar {
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: center;
}

.toolbar-main,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.toolbar-search,
.filter-form .field,
.form-grid .field,
.form-stack .field,
.stack-form label,
.inline-form label {
  display: block;
}

.field-help {
  display: block;
  margin-top: 4px;
  color: var(--ui-text-soft);
  font-size: 12px;
}

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

.form-grid .field-wide {
  grid-column: 1 / -1;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-form label > span,
.inline-form label > span,
.form-grid label > span,
.form-stack .field > span:first-child,
.filter-form .field > span,
.panel-kv span,
.form-meta span,
.kv-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--ui-text-muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.auth-card input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.auth-card select,
.auth-card textarea,
.card-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.card-panel select,
.card-panel textarea,
.surface-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.surface-panel select,
.surface-panel textarea,
.table-shell input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.table-shell select,
.table-shell textarea,
.combo .combo-input,
.map-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--ui-border-strong);
  background: #fff;
  color: var(--ui-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.card-panel textarea,
.surface-panel textarea,
.auth-card textarea {
  min-height: 100px;
  resize: vertical;
}

.auth-card input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
.auth-card select:focus,
.auth-card textarea:focus,
.card-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
.card-panel select:focus,
.card-panel textarea:focus,
.surface-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
.surface-panel select:focus,
.surface-panel textarea:focus,
.table-shell input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
.table-shell select:focus,
.table-shell textarea:focus,
.combo .combo-input:focus,
.map-search input:focus {
  outline: none;
  border-color: var(--ui-brand);
  box-shadow: 0 0 0 3px rgba(23, 98, 215, 0.14);
  background: #fff;
}

.auth-card small {
  display: block;
  margin-top: 4px;
  color: var(--ui-text-soft);
  font-size: 12px;
}

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

.btn-primary,
.btn-secondary,
.btn-link,
.btn-danger,
.btn-danger-outline {
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  border: 1px solid var(--ui-brand-strong);
  background: var(--ui-brand);
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(15, 77, 176, 0.2);
}

.btn-primary:hover {
  text-decoration: none;
  background: var(--ui-brand-strong);
  border-color: var(--ui-brand-strong);
}

.btn-secondary {
  border: 1px solid var(--ui-border-strong);
  background: #fff;
  color: var(--ui-text-strong) !important;
}

.btn-secondary:hover {
  text-decoration: none;
  border-color: var(--ui-text-soft);
  background: var(--ui-surface-muted);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 6px;
  border: none;
  background: none;
  color: var(--ui-brand-strong);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
  color: var(--ui-brand);
}

.btn-danger {
  border: 1px solid #8a1c12;
  background: var(--ui-danger);
  color: #fff !important;
}

.btn-danger:hover {
  text-decoration: none;
  background: #8a1c12;
}

.btn-danger-outline {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ui-danger) !important;
  padding: 0 10px;
  min-height: 32px;
  font-size: 13px;
}

.btn-danger-outline:hover {
  background: var(--ui-danger-soft);
  text-decoration: none;
  border-color: rgba(180, 35, 24, 0.2);
}

.btn-primary[disabled],
.btn-secondary[disabled],
.btn-danger[disabled],
.btn-danger-outline[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-danger-inline {
  color: var(--ui-danger);
}

.btn-danger-inline:hover {
  color: #8a1c12;
}

/* ---- Auth --------------------------------------------------------------- */

.auth-card {
  max-width: 420px;
  margin: 48px auto;
  padding: 28px;
}

.auth-card h1 {
  margin: 0 0 6px;
  color: var(--ui-text-strong);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-card .lead {
  margin: 0 0 20px;
  color: var(--ui-text-muted);
  font-size: 14px;
}

.auth-card form label {
  display: block;
  margin-bottom: 14px;
}

.auth-alt {
  margin-top: 16px;
  color: var(--ui-text-muted);
  font-size: 13.5px;
}

/* ---- Tables ------------------------------------------------------------- */

.table-shell {
  padding: 0;
}

.table-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ui-border);
}

.table-shell-header h3,
.table-shell-header .table-title {
  font-size: 15px;
  font-weight: 650;
}

.table-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-surface-muted);
}

.table-scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th,
.table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--ui-border);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table th {
  color: var(--ui-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ui-border);
}

.table tbody tr {
  transition: background 100ms ease;
}

.table tbody tr:hover {
  background: var(--ui-surface-muted);
}

.table a {
  font-weight: 600;
  color: var(--ui-text-strong);
}

.table a:hover {
  color: var(--ui-brand-strong);
  text-decoration: none;
}

.table code,
.code-big {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface-muted);
  color: var(--ui-text-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.code-big {
  font-size: 16px;
  min-height: 32px;
  padding: 0 10px;
}

.row-actions {
  white-space: nowrap;
  text-align: right;
}

.row-actions .btn-link,
.row-actions .btn-danger-outline {
  min-height: 28px;
  font-size: 12.5px;
  padding: 0 6px;
}

.row-actions form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

/* ---- Badges ------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.badge-active {
  background: var(--ui-success-soft);
  color: var(--ui-success);
  border-color: rgba(4, 122, 74, 0.18);
}

.badge-expired,
.badge-muted {
  background: var(--ui-surface-muted);
  color: var(--ui-text-muted);
  border-color: var(--ui-border);
}

.badge-used {
  background: #eef2ff;
  color: #2e3e9e;
  border-color: rgba(57, 72, 168, 0.18);
}

.badge-pending {
  background: var(--ui-warning-soft);
  color: var(--ui-warning);
  border-color: rgba(154, 91, 6, 0.22);
}

.muted {
  color: var(--ui-text-muted);
}

.small {
  font-size: 12px;
}

/* ---- Empty states ------------------------------------------------------- */

.empty-state {
  display: grid;
  gap: 6px;
  padding: 28px 20px 30px;
  color: var(--ui-text-muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ui-text-strong);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ---- Pagination -------------------------------------------------------- */

.pager-wrap {
  padding: 14px 18px;
  border-top: 1px solid var(--ui-border);
}

.pager,
.pager ul,
.pager-wrap .pagination,
.pager-wrap nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pager li,
.pager-wrap .pagination li,
.pager-wrap nav ul li {
  list-style: none;
}

.pager a,
.pager span,
.pager strong,
.pager-wrap .pagination a,
.pager-wrap .pagination span,
.pager-wrap .pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ui-text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.pager a:hover,
.pager-wrap .pagination a:hover {
  text-decoration: none;
  color: var(--ui-text-strong);
  background: var(--ui-surface-muted);
}

.pager strong,
.pager .active a,
.pager .active span,
.pager-wrap .pagination .active a,
.pager-wrap .pagination .active span {
  background: var(--ui-brand-soft);
  color: var(--ui-brand-strong);
  border-color: transparent;
}

/* ---- Key-value grids --------------------------------------------------- */

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

.form-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ui-border);
}

.panel-kv {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--ui-surface-muted);
  border: 1px solid var(--ui-border);
}

.panel-kv strong,
.panel-kv div,
.form-meta div,
.kv-grid div {
  color: var(--ui-text-strong);
  font-size: 14px;
  font-weight: 600;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: rgba(180, 35, 24, 0.22);
  background: #fef6f5;
}

.danger-zone > div {
  min-width: 0;
  flex: 1 1 auto;
}

.danger-zone > form,
.danger-zone > .badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.danger-zone h3 {
  margin: 0 0 4px;
  color: var(--ui-danger);
  font-size: 15px;
  font-weight: 650;
}

.danger-zone p {
  margin: 0;
  color: var(--ui-text-muted);
  font-size: 13px;
}

.code-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d4e2f7;
  background: var(--ui-brand-soft);
}

/* ---- Chart ------------------------------------------------------------- */

.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 16px;
  margin-bottom: 20px;
}

.chart-card .chart-wrap {
  width: 100%;
  overflow-x: auto;
}

.chart-card svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
}

.chart-gridline {
  stroke: var(--ui-border);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.chart-bar {
  fill: var(--ui-brand);
}

.chart-bar:hover {
  fill: var(--ui-brand-strong);
}

.chart-bar-empty {
  fill: var(--ui-border);
}

.chart-xlabel,
.chart-ylabel {
  fill: var(--ui-text-soft);
  font-size: 10px;
}

/* ---- Donut ------------------------------------------------------------- */

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.donut {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
}

.donut-bg {
  fill: none;
  stroke: var(--ui-border);
  stroke-width: 12;
}

.donut-active {
  fill: none;
  stroke: var(--ui-brand);
  stroke-width: 12;
  stroke-linecap: round;
}

.donut-num {
  fill: var(--ui-text-strong);
  font-size: 22px;
  font-weight: 700;
}

.donut-sub {
  fill: var(--ui-text-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--ui-text-muted);
  font-size: 13.5px;
}

.donut-legend .swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 2px;
  vertical-align: 1px;
}

.swatch-active {
  background: var(--ui-brand);
}

.swatch-revoked {
  background: var(--ui-border-strong);
}

/* ---- Map / route ------------------------------------------------------- */

.route-hero .badge {
  height: 24px;
  padding: 0 10px;
}

.route-map,
.request-map {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--ui-border);
}

.route-map {
  height: 420px;
}

.request-map {
  height: 320px;
  margin: 8px 0;
  cursor: crosshair;
}

.latlng-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

/* ---- Combobox ---------------------------------------------------------- */

.combo {
  position: relative;
}

.combo .combo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 10px;
  border: 1px solid var(--ui-border);
  background: #fff;
  box-shadow: var(--ui-shadow-md);
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
}

.combo .combo-list li {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13.5px;
}

.combo .combo-list li:hover,
.combo .combo-list li.active {
  background: var(--ui-surface-muted);
}

.combo .combo-list li[hidden] {
  display: none;
}

.map-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* ---- Flag chips -------------------------------------------------------- */

.flag-toggle {
  margin: 0;
}

.flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--ui-border-strong);
  background: #fff;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.flag-chip:hover {
  background: var(--ui-surface-muted);
}

.flag-chip-on {
  background: var(--ui-success-soft);
  color: var(--ui-success);
  border-color: rgba(4, 122, 74, 0.22);
}

.flag-btn {
  cursor: pointer;
}

.check-grid {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface-muted);
}

.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--ui-text);
  font-size: 13.5px;
  font-weight: 500;
}

.check-grid input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin-top: 2px;
}

.inline-delete {
  display: inline;
  margin-left: 8px;
}

/* ---- Modal ------------------------------------------------------------- */

.ft-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 18, 32, 0.5);
  animation: ftFade 120ms ease-out;
}

.ft-modal-overlay[hidden] {
  display: none;
}

.ft-modal {
  width: min(440px, 100%);
  padding: 24px 24px 18px;
  border-radius: 14px;
  border: 1px solid var(--ui-border);
  background: #fff;
  box-shadow: var(--ui-shadow-lg);
  animation: ftPop 140ms ease-out;
}

.ft-modal-title {
  margin: 0 0 8px;
  color: var(--ui-text-strong);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ft-modal-title:empty {
  display: none;
}

.ft-modal-message {
  margin: 0 0 20px;
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ft-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

body.ft-modal-open {
  overflow: hidden;
}

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

@media (max-width: 1120px) {
  .metric-strip,
  .chart-grid,
  .dashboard-grid,
  .detail-grid,
  .request-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .dispatcher-shell {
    --sidebar-w: 76px;
  }

  .sidebar-brand-text,
  .sidebar-nav-item > span:not(.sidebar-nav-icon),
  .sidebar-account-meta {
    display: none;
  }

  .sidebar-brand {
    justify-content: center;
    padding: 6px 0 10px;
  }

  .sidebar-nav-item {
    justify-content: center;
    padding: 0;
  }

  .sidebar-account {
    justify-content: center;
  }
}

@media (max-width: 920px) {
  .dispatcher-nav {
    display: none;
  }

  .dispatcher-header-inner {
    min-height: 56px;
  }

  .dispatcher-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-metrics,
  .route-summary {
    flex-wrap: wrap;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .search-form,
  .toolbar,
  .inline-form,
  .filter-form,
  .form-grid,
  .kv-grid,
  .form-meta,
  .latlng-row {
    grid-template-columns: 1fr;
  }

  .filter-form .field-wide {
    grid-column: auto;
  }

  .danger-zone {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .dispatcher-main {
    padding: 24px 16px 36px;
  }

  .dispatcher-main--sidebar {
    padding: 24px 18px 28px;
  }

  .dispatcher-shell {
    --sidebar-w: 68px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .chart-card svg {
    max-height: none;
  }

  .table th,
  .table td {
    padding: 12px 14px;
  }

  .table-shell-header,
  .table-toolbar,
  .auth-card,
  .card-panel,
  .surface-panel,
  .pager-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* --- Root overview ---------------------------------------------------- */
.sidebar-nav-item--root { margin-top: auto; color: #c55a11; }
.sidebar-nav-item--root.is-active,
.sidebar-nav-item--root:hover { color: #c55a11; background: #fdf3ea; }

.root-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 6px 0 18px;
}
.kpi-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  background: #fafbfd;
}
.kpi-tile--warn   { border-color: #f2c57c; background: #fff7ea; }
.kpi-tile--danger { border-color: #e8a6a6; background: #fdecec; }
.kpi-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}
.kpi-value {
  font-size: 28px;
  font-weight: 600;
  color: #111827;
  line-height: 1;
}

.root-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #e2e5ec;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  text-decoration: none;
  transition: background 120ms, border-color 120ms;
}
.filter-chip:hover { border-color: #c7ccd6; background: #f5f6f9; }
.filter-chip.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}
.status-pill.is-trial  { background: #e7f0ff; color: #2857c5; }
.status-pill.is-active { background: #e6f6ec; color: #1f7a3a; }
.status-pill.is-warn   { background: #fdf0d7; color: #8a5a00; }
.status-pill.is-muted  { background: #eef0f4; color: #5b6472; }

.trial-warn    { color: #a24a00; font-weight: 500; }
.trial-expired { color: #b42318; font-weight: 500; }

.badge-root {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: #fdecd7;
  color: #c55a11;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  vertical-align: middle;
}
.badge-warn {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: #fdf0d7;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 600;
}
.row-root { background: #fffaf4; }

.muted { color: #6b7280; }

/* Monetization panel */
.monetization-panel {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafbfd 0%, #fff 60%);
}
.monetization-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.monetization-header h2 {
  margin: 0 0 4px;
  font-size: 16px;
}
.mrr-figure { text-align: right; }
.mrr-amount {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #0b7a3a;
  line-height: 1;
}
.mrr-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.monetization-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.mini-stat {
  padding: 10px 14px;
  border: 1px solid #eceff4;
  border-radius: 8px;
  background: #fff;
}
.mini-stat--warn { border-color: #f2c57c; background: #fff7ea; }
.mini-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: #111827;
  line-height: 1;
}
.mini-stat-label {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
}

.tier-breakdown-title {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  font-weight: 600;
}
.tier-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier-row {
  padding: 10px 12px;
  border: 1px solid #eceff4;
  border-radius: 8px;
  background: #fff;
}
.tier-row-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}
.tier-bar-wrap {
  height: 6px;
  background: #eef1f5;
  border-radius: 999px;
  overflow: hidden;
}
.tier-bar {
  height: 100%;
  background: linear-gradient(90deg, #2f9e44 0%, #51cf66 100%);
  border-radius: 999px;
  transition: width 240ms ease-out;
}
.tier-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: #374151;
}
.tier-row-mrr {
  margin-left: auto;
  font-weight: 600;
  color: #0b7a3a;
}

/* --- Billing banner + plan card + pricing tiers ---------------------- */
.billing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin: 0 0 14px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid transparent;
  flex-wrap: wrap;
}
.billing-banner--warn   { background: #fff6e3; border-color: #f2c57c; color: #8a5a00; }
.billing-banner--danger { background: #fdecec; border-color: #e8a6a6; color: #9a1d1d; }
.billing-banner--muted  { background: #eef0f4; border-color: #d6dae2; color: #4b5563; }
.billing-banner-text { flex: 1 1 260px; }
.billing-banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.billing-banner-actions form { display: inline; margin: 0; }

.plan-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: #fff;
  flex-wrap: wrap;
}
.plan-card-main { display: flex; flex-direction: column; gap: 10px; flex: 1 1 320px; }
.plan-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}
.plan-card-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}
.plan-card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #111827;
  line-height: 1.1;
}
.plan-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13px;
  color: #374151;
}
.plan-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px;
}
.plan-card-actions form { margin: 0; }

.pricing-section { padding-top: 22px; }
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.pricing-tier {
  position: relative;
  padding: 20px 18px;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-tier.is-featured {
  border-color: #111827;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}
.pricing-tier-badge {
  position: absolute;
  top: -10px;
  left: 18px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricing-tier-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.pricing-tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-tier-price .amount {
  font-size: 26px;
  font-weight: 700;
  color: #0b1220;
}
.pricing-tier-price .per {
  font-size: 13px;
  color: #6b7280;
}
.pricing-tier form { margin: 0; }
.pricing-tier button { width: 100%; }

@keyframes ftFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ftPop {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Change-plan grid --------------------------------------------------- */
.change-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.change-plan-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border, #dae2ea);
  border-radius: 12px;
  min-height: 220px;
}
.change-plan-tier.is-current {
  border-color: var(--brand, #1877c8);
  box-shadow: 0 0 0 3px rgba(24, 119, 200, .18);
}
.change-plan-tier.is-blocked {
  opacity: .68;
  background: #fafbfc;
}
.change-plan-tier h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.change-plan-tier .price .amount { font-size: 26px; font-weight: 800; }
.change-plan-tier .price .per { color: var(--muted, #6b7a87); font-size: 13px; margin-left: 4px; }
.change-plan-tier .cap {
  margin: 6px 0 0;
  color: var(--muted, #6b7a87);
  font-size: 13px;
}
.change-plan-tier .warn {
  margin: 0;
  color: #b3261e;
  font-size: 13px;
  font-weight: 600;
}
.change-plan-tier .pill {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 119, 200, .12);
  color: var(--brand-dark, #12466d);
  font-size: 12px;
  font-weight: 700;
}
.change-plan-tier form { margin-top: auto; }
.change-plan-tier button[disabled] { cursor: not-allowed; opacity: .6; }
