:root {
  --red: #ef4136;
  --red-dark: #cc2f25;
  --ink: #121419;
  --ink-soft: #57606d;
  --grey-light: #9d9fa2;
  --line: #dde3eb;
  --border: #e6e6e7;
  --white: #ffffff;
  --off-white: #f7f7f7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --bg-soft: #f4f6f8;
  --shadow: 0 24px 60px rgba(12, 18, 28, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1440px;
  --max-w: 1440px;
  --nav-h: 80px;
  --pad-x: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #E8E6E0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.page-shell {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-bg-layer {
  position: absolute;
  inset: 0;
}

.layer-dots {
  background: none;
}

.layer-grid {
  background: none;
}

.layer-glow {
  background: none;
}

.hero h2,
.section-heading h3,
.module-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 900;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--border);
}

#navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  gap: 36px;
}

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

.nav-logo img {
  width: 204px;
  max-width: 100%;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--red);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-links a[aria-disabled='true'] {
  opacity: 0.7;
  cursor: default;
}

.nav-links a[aria-disabled='true']::after {
  display: none;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-session-menu {
  position: relative;
}

.nav-session {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid rgba(18, 20, 25, 0.08);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
}

.nav-session-toggle {
  align-items: flex-start;
  text-align: left;
}

.nav-session-toggle:hover,
.nav-session-menu.is-open .nav-session-toggle {
  background: var(--red);
  color: var(--white);
}

.nav-session-toggle:hover .nav-session-label,
.nav-session-menu.is-open .nav-session-label {
  color: rgba(255, 255, 255, 0.84);
}

.nav-session-label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-session-value {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.nav-session-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 100%;
  padding: 6px;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(221, 227, 235, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 26px rgba(12, 18, 28, 0.1);
}

.nav-session-dropdown[hidden] {
  display: none !important;
}

.nav-session-logout,
.mobile-session-logout {
  min-height: 38px;
  width: 100%;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: rgba(239, 65, 54, 0.12);
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-session-logout:hover,
.mobile-session-logout:hover {
  background: var(--red);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 24px var(--pad-x) 28px;
  z-index: 899;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s ease;
  pointer-events: none;
}

.mobile-nav.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a[aria-disabled='true'] {
  opacity: 0.72;
  pointer-events: none;
}

.mobile-session {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2px) 24px 40px;
  position: relative;
  z-index: 1;
}

.dashboard-header,
.hero {
  display: grid;
  gap: 8px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(18, 20, 25, 0.1);
}

body[data-section='overview'] .dashboard-header {
  border-bottom: none;
  padding-bottom: 0;
}

body[data-section='overview'] .panel-card-airy.collapsible-section-wide {
  border-top: none;
  padding-top: 0;
}

.dashboard-header-compact {
  padding-bottom: 18px;
}

.dashboard-header h2,
.hero h2 {
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 0.94;
}

.dashboard-intro,
.hero-text {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.hero-note {
  color: var(--ink-soft);
  font-size: 14px;
}

.status-label,
.metric-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.metric-card strong {
  font-size: 20px;
}

.metric-card p,
.module-card p,
.roadmap-list li {
  color: var(--ink-soft);
  line-height: 1.7;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.metric-card {
  padding: 20px 20px 18px;
  border: 1px solid rgba(18, 20, 25, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
}

.metric-card p {
  margin: 10px 0 0;
}

.metric-card-urgent {
  background:
    linear-gradient(180deg, rgba(239, 65, 54, 0.12), rgba(255, 255, 255, 0.94)),
    rgba(255, 255, 255, 0.94);
}

.metric-card-warm {
  background:
    linear-gradient(180deg, rgba(255, 179, 0, 0.12), rgba(255, 255, 255, 0.94)),
    rgba(255, 255, 255, 0.94);
}

.metric-card-cool {
  background:
    linear-gradient(180deg, rgba(18, 20, 25, 0.06), rgba(255, 255, 255, 0.94)),
    rgba(255, 255, 255, 0.94);
}

.metric-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.metric-list li {
  display: grid;
  gap: 2px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(18, 20, 25, 0.06);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.metric-list strong {
  color: var(--ink);
  font-size: 13px;
}

.modules-panel {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section-heading {
  margin-bottom: 18px;
}

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

.section-toggle {
  min-height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: rgba(18, 20, 25, 0.06);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.section-toggle:hover {
  background: rgba(239, 65, 54, 0.12);
  color: var(--red-dark);
}

.section-toggle-icon {
  width: 34px;
  min-width: 34px;
  padding: 0;
  position: relative;
  font-size: 0;
}

.section-toggle-icon::before {
  content: '▴';
  font-size: 16px;
  line-height: 1;
}

.collapsible-section.is-collapsed .section-toggle-icon::before {
  content: '▾';
}

.collapsible-section {
  transition: border-color 0.2s ease;
}

.collapsible-section-wide {
  margin-top: 16px;
}

.section-body {
  margin-top: 18px;
}

.collapsible-section.is-collapsed .section-body {
  display: none;
}

.overview-metrics {
  margin: 0;
}

.overview-metrics .metric-card {
  min-height: 210px;
}

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

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

.module-card {
  display: block;
  padding: 0 0 18px;
  border: none;
  border-bottom: 1px solid rgba(18, 20, 25, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

a.module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 65, 54, 0.4);
  box-shadow: none;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.module-head h4 {
  font-size: 27px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(18, 20, 25, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-priority {
  background: rgba(239, 65, 54, 0.14);
  color: var(--red-dark);
}

.module-card-priority {
  border-bottom-color: rgba(239, 65, 54, 0.32);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-top: 28px;
}

.panel-card {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.panel-card-airy {
  padding-top: 22px;
  border-top: 1px solid rgba(18, 20, 25, 0.1);
}

.panel-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 2.7vw, 40px);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.panel-list li {
  padding: 0 0 12px;
  border: none;
  border-bottom: 1px solid rgba(18, 20, 25, 0.08);
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  line-height: 1.6;
}

.panel-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.placeholder-note {
  margin-top: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.button-primary,
.button-secondary,
.button-danger,
.row-action,
.icon-button {
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button-primary:disabled,
.button-secondary:disabled,
.button-danger:disabled,
.row-action:disabled,
.icon-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.button-primary,
.button-secondary,
.button-danger {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(18, 20, 25, 0.06);
  color: var(--ink);
}

.button-secondary:hover {
  background: rgba(18, 20, 25, 0.1);
}

.button-danger {
  background: rgba(239, 65, 54, 0.14);
  color: var(--red-dark);
}

.button-danger:hover {
  background: rgba(239, 65, 54, 0.22);
}

.vow-overview-head {
  display: flex;
  align-items: start;
  justify-content: flex-start;
  gap: 14px;
  padding-bottom: 4px;
}

.vow-shell {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.renewal-queue-card {
  padding-bottom: 22px;
}

.renewal-queue-head {
  align-items: start;
}

.section-note {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.renewal-notice-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 18px;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend-pill-alert {
  background: rgba(239, 65, 54, 0.11);
  color: var(--red-dark);
}

.legend-pill-warn {
  background: rgba(255, 179, 0, 0.14);
  color: #8b5d00;
}

.legend-pill-neutral {
  background: rgba(18, 20, 25, 0.08);
  color: var(--ink);
}

.renewal-queue-empty {
  margin: 0 22px;
  padding: 20px 18px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(239, 65, 54, 0.09), rgba(239, 65, 54, 0.02) 28%, rgba(255, 255, 255, 0.84) 55%),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(239, 65, 54, 0.12);
}

.renewal-queue-empty strong {
  font-size: 16px;
}

.renewal-queue-empty span {
  color: var(--ink-soft);
  line-height: 1.6;
}

.inline-alert,
.vow-toolbar,
.vow-table-card,
.modal-panel {
  border: 1px solid rgba(221, 227, 235, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.inline-alert {
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.inline-alert[data-tone='warning'] {
  background: rgba(255, 204, 102, 0.16);
  border-color: rgba(214, 148, 0, 0.24);
}

.inline-alert[data-tone='error'] {
  background: rgba(239, 65, 54, 0.08);
  border-color: rgba(239, 65, 54, 0.24);
}

.inline-alert[data-tone='success'] {
  background: rgba(15, 145, 87, 0.08);
  border-color: rgba(15, 145, 87, 0.22);
}

.vow-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 220px auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vow-search input,
.vow-filters select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(18, 20, 25, 0.11);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 13px;
  color: var(--ink);
}

.vow-search input::placeholder {
  color: #8d97a3;
}

.vow-search input:focus,
.vow-filters select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(239, 65, 54, 0.46);
  box-shadow: 0 0 0 4px rgba(239, 65, 54, 0.08);
}

.form-field textarea {
  min-height: 118px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.vow-table-card {
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.notice-queue-card {
  overflow: visible;
}

.vow-table-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(221, 227, 235, 0.95);
}

.archived-table-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vow-table-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vow-table-head-actions-stacked {
  flex-direction: column;
  align-items: flex-end;
  align-self: stretch;
  justify-content: space-between;
}

.vow-table-head h3,
.modal-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 2.7vw, 40px);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.table-count {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.notice-queue-list {
  display: grid;
  gap: 8px;
  padding: 12px 22px 16px;
}

.notice-queue-grid-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.9fr) minmax(210px, 0.78fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0 10px;
}

.notice-queue-grid-head span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-queue-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.9fr) minmax(210px, 0.78fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 9px 10px;
  min-height: 0;
  border: 1px solid rgba(221, 227, 235, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
}

.notice-queue-item.is-notice-overdue,
.notice-queue-item.is-payment-overdue {
  background:
    linear-gradient(90deg, rgba(239, 65, 54, 0.12), rgba(239, 65, 54, 0.03) 38%, rgba(255, 255, 255, 0.9) 62%),
    rgba(255, 255, 255, 0.86);
  border-color: rgba(239, 65, 54, 0.16);
}

.notice-queue-item.is-notice-overdue {
  background:
    linear-gradient(90deg, rgba(255, 179, 0, 0.14), rgba(255, 179, 0, 0.03) 38%, rgba(255, 255, 255, 0.9) 62%),
    rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 179, 0, 0.18);
}

.notice-queue-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.notice-queue-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.notice-queue-primary-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.notice-queue-renewal-date {
  margin-left: auto;
  flex-shrink: 0;
  text-align: right;
  padding-right: 8px;
}

.notice-queue-statuses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
  align-content: start;
  padding-left: 10px;
  border-left: 1px solid rgba(221, 227, 235, 0.9);
}

.notice-queue-statuses-billing,
.notice-queue-statuses-email {
  min-width: 0;
}

.notice-queue-meta-item {
  display: grid;
  gap: 2px;
}

.notice-queue-status-item {
  gap: 4px;
  min-width: 0;
  justify-items: start;
}

.notice-queue-meta-label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notice-queue-meta-value {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.notice-queue-meta-value-muted {
  color: var(--ink-soft);
  font-weight: 500;
}

.notice-queue-meta-value-placeholder {
  visibility: hidden;
}

.notice-queue-meta-item-quiet .notice-queue-meta-label,
.notice-queue-meta-item-quiet .notice-queue-meta-value {
  opacity: 0.82;
}

.queue-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.queue-toggle-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(18, 20, 25, 0.08);
  background: rgba(247, 247, 247, 0.9);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

button.queue-toggle-option {
  cursor: pointer;
}

.queue-toggle-option.is-yes.is-active {
  background: rgba(15, 145, 87, 0.12);
  border-color: rgba(15, 145, 87, 0.18);
  color: #0f9157;
}

.queue-toggle-option.is-no.is-active {
  background: rgba(239, 65, 54, 0.1);
  border-color: rgba(239, 65, 54, 0.16);
  color: var(--red);
}

.queue-inline-editor {
  display: grid;
  gap: 5px;
  margin-bottom: 2px;
  max-width: 210px;
}

.queue-inline-selects {
  display: grid;
  grid-template-columns: 60px 52px 72px;
  gap: 4px;
}

.queue-inline-select {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(221, 227, 235, 0.95);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 11px;
}

.queue-inline-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.queue-inline-buttons .row-action-compact {
  padding: 5px 8px;
  font-size: 11px;
}

.notice-queue-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: center;
}

.notice-queue-statuses .onboarding-stack {
  gap: 4px;
  max-width: 100%;
}

.notice-queue-statuses .onboarding-stack-item {
  min-height: 24px;
  padding: 3px 7px;
}

.notice-queue-statuses .onboarding-stack-label {
  font-size: 9px;
}

.notice-queue-statuses .onboarding-stack-item .table-primary,
.notice-queue-statuses .notice-queue-meta-value {
  font-size: 12px;
}

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

.vow-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

.vow-table thead {
  background: rgba(247, 247, 247, 0.86);
}

.vow-table th,
.vow-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(221, 227, 235, 0.8);
  vertical-align: top;
}

.vow-table th {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 16px;
  padding-bottom: 16px;
}

.vow-table th:nth-child(3),
.vow-table th:nth-child(4),
.vow-table td:nth-child(3),
.vow-table td:nth-child(4) {
  text-align: center;
}

.vow-table td:nth-child(4) {
  vertical-align: middle;
}

#onboardingVowTable th:nth-child(3),
#onboardingVowTable th:nth-child(4),
#onboardingVowTable td:nth-child(3),
#onboardingVowTable td:nth-child(4),
#onboardingVowTable td:nth-child(5) {
  text-align: center;
}

#onboardingVowTable th:nth-child(1),
#onboardingVowTable td:nth-child(1) {
  width: 24%;
  min-width: 250px;
}

#onboardingVowTable th:nth-child(2),
#onboardingVowTable td:nth-child(2) {
  width: 26%;
  min-width: 280px;
}

#onboardingVowTable th:nth-child(3),
#onboardingVowTable td:nth-child(3) {
  width: 24%;
  min-width: 290px;
}

#onboardingVowTable th:nth-child(4),
#onboardingVowTable td:nth-child(4) {
  width: 20%;
  min-width: 260px;
}

#onboardingVowTable th:nth-child(5),
#onboardingVowTable td:nth-child(5) {
  width: 6%;
  min-width: 110px;
}

#onboardingVowTable td {
  vertical-align: middle;
}

.vow-table tbody tr {
  transition: background 0.2s ease;
}

.vow-table tbody tr:hover {
  background: rgba(239, 65, 54, 0.025);
}

.vow-table tbody tr.is-overdue td:first-child,
.vow-table tbody tr.is-due-today td:first-child {
  background: linear-gradient(90deg, rgba(239, 65, 54, 0.12), rgba(239, 65, 54, 0.03) 42%, transparent 100%);
}

.vow-table tbody tr.is-due-soon td:first-child {
  background: linear-gradient(90deg, rgba(255, 179, 0, 0.14), rgba(255, 179, 0, 0.03) 44%, transparent 100%);
}

.vow-table tbody tr.is-neutral td:first-child {
  background: linear-gradient(90deg, rgba(18, 20, 25, 0.02), rgba(18, 20, 25, 0.01) 40%, transparent 100%);
}

#onboardingVowTable tbody tr.onboarding-ready td:first-child {
  background: linear-gradient(90deg, rgba(15, 145, 87, 0.2), rgba(15, 145, 87, 0.05) 46%, transparent 100%);
}

#onboardingVowTable tbody tr.onboarding-awaiting-payment td:first-child {
  background: linear-gradient(90deg, rgba(255, 179, 0, 0.2), rgba(255, 179, 0, 0.06) 48%, transparent 100%);
}

.table-primary {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.table-secondary {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
  max-width: 340px;
}

.renewal-cell {
  display: grid;
  gap: 8px;
  min-width: 170px;
  justify-items: center;
  position: relative;
}

.inline-edit-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.table-cell-stack {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.sent-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 132px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 22, 34, 0.1);
  background: rgba(16, 22, 34, 0.04);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.sent-status-empty {
  border-style: dashed;
  background: rgba(16, 22, 34, 0.02);
  color: var(--ink-soft);
  font-weight: 500;
}

.onboarding-stack {
  display: grid;
  gap: 5px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

#onboardingVowTable td:nth-child(1) .table-secondary,
#onboardingVowTable td:nth-child(2) .table-secondary {
  max-width: 480px;
  word-break: break-word;
}

.onboarding-stack-item {
  display: grid;
  grid-template-columns: 122px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(18, 20, 25, 0.03);
}

.onboarding-stack-label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.1;
}

.onboarding-stack-value {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 20px;
  white-space: nowrap;
}

.onboarding-stack-item .renewal-cell {
  min-width: 0;
  gap: 4px;
  justify-items: flex-start;
  width: 100%;
}

.onboarding-stack-item .payment-cell {
  justify-items: flex-start;
  gap: 6px;
  width: 100%;
}

.onboarding-stack-item .inline-edit-summary {
  justify-content: flex-start;
  gap: 5px;
}

.onboarding-stack-item .table-primary {
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.onboarding-stack-item .row-action-icon-inline {
  min-width: 22px;
  min-height: 22px;
}

.onboarding-stack-item .row-action-icon-inline svg {
  width: 12px;
  height: 12px;
}

.payment-status-text {
  font-size: 12px;
}

.inline-renewal-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inline-renewal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-renewal-preview {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.payment-cell {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.inline-status-select {
  min-height: 36px;
  min-width: 120px;
  border-radius: 12px;
  border: 1px solid rgba(18, 20, 25, 0.11);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 10px;
  color: var(--ink);
  font-size: 13px;
}

.inline-date-select {
  min-width: 150px;
}

.inline-status-select:focus {
  outline: none;
  border-color: rgba(239, 65, 54, 0.46);
  box-shadow: 0 0 0 4px rgba(239, 65, 54, 0.08);
}

.table-link {
  color: var(--red-dark);
  font-weight: 600;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-chip-neutral {
  background: rgba(18, 20, 25, 0.08);
  color: var(--ink);
}

.status-chip-warn {
  background: rgba(255, 179, 0, 0.18);
  color: #8b5d00;
}

.status-chip-good {
  background: rgba(15, 145, 87, 0.16);
  color: #0f7a4d;
}

.row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  position: relative;
}

.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(18, 20, 25, 0.06);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.row-action-compact {
  min-height: 28px;
  padding: 0 9px;
}

.row-action-icon {
  min-width: 32px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.row-action-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.row-action-icon-inline {
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
}

.row-actions-toggle {
  background: rgba(239, 65, 54, 0.12);
  color: var(--red-dark);
  transition: background 0.2s ease;
}

.row-actions-toggle:hover {
  background: rgba(239, 65, 54, 0.22);
}

.row-actions-toggle svg {
  transition: transform 0.2s ease;
}

.row-actions-toggle.is-open svg {
  transform: rotate(180deg);
}

.row-actions-menu {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(18, 20, 25, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(18, 20, 25, 0.15);
  z-index: 20;
  white-space: nowrap;
}

.row-actions-menu[hidden] {
  display: none;
}

.row-action:hover {
  background: rgba(18, 20, 25, 0.11);
}

.row-action-danger {
  background: rgba(239, 65, 54, 0.12);
  color: var(--red-dark);
}

.row-action-danger:hover {
  background: rgba(239, 65, 54, 0.18);
}

.row-action-primary {
  background: rgba(239, 65, 54, 0.08);
  color: var(--red-dark);
}

.row-action-primary:hover {
  background: rgba(239, 65, 54, 0.14);
}

.row-action-success {
  background: rgba(15, 145, 87, 0.14);
  color: #0f7a4d;
}

.row-action-success:hover {
  background: rgba(15, 145, 87, 0.24);
}

.empty-table {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 28px 0;
  color: var(--ink-soft);
}

.empty-table strong {
  color: var(--ink);
  font-size: 16px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1100;
  overflow-y: auto;
  padding: 24px 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 25, 0.46);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  margin: 0 auto;
  max-height: calc(100vh - 48px);
  border-radius: 28px;
  overflow-y: auto;
}

.modal-panel-wide {
  width: min(920px, calc(100vw - 32px));
}

.modal-panel-compact {
  width: min(560px, calc(100vw - 32px));
}

.modal-panel-notify {
  width: min(760px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-panel-notify .modal-header {
  position: static;
  flex-shrink: 0;
}

.modal-panel-notify .record-form {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(221, 227, 235, 0.95);
}

.modal-header-notify {
  align-items: flex-start;
}

.notify-template-field {
  min-width: 0;
}

.notify-resolved-recipient {
  margin: -4px 0 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(18, 20, 25, 0.06);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.icon-button:hover {
  background: rgba(18, 20, 25, 0.1);
}

.record-form {
  padding: 18px 24px 24px;
}

.modal-copy {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 620px;
  font-size: 14px;
}

.modal-split-link-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 24px 14px;
  border-bottom: 1px solid rgba(221, 227, 235, 0.95);
}

.modal-inline-link {
  min-height: 28px;
  padding: 0 2px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-inline-link:hover {
  color: #d9382e;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

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

.form-field-empty {
  min-height: 1px;
}

.form-mode-note {
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px dashed rgba(18, 20, 25, 0.12);
  border-radius: 16px;
  background: rgba(244, 246, 248, 0.72);
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 13px;
}

/* Bridge import — inline with Office ID field */
.form-field-with-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.form-field-inner {
  display: grid;
  gap: 8px;
}

.form-field-inner span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.button-small {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.bridge-import-status {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid transparent;
  color: var(--ink);
}

.bridge-import-status[data-tone='info'] {
  background: rgba(18, 20, 25, 0.04);
  border-color: rgba(18, 20, 25, 0.1);
}

.bridge-import-status[data-tone='success'] {
  background: rgba(15, 145, 87, 0.08);
  border-color: rgba(15, 145, 87, 0.22);
}

.bridge-import-status[data-tone='error'] {
  background: rgba(239, 65, 54, 0.08);
  border-color: rgba(239, 65, 54, 0.24);
  color: var(--red-dark);
}

/* Bridge health check results panel */
.bridge-health-results {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(221, 227, 235, 0.95);
  background: rgba(244, 246, 248, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.bridge-health-results.is-loading {
  color: var(--ink-soft);
}

.bridge-health-results.is-clear {
  background: rgba(15, 145, 87, 0.07);
  border-color: rgba(15, 145, 87, 0.22);
  color: #0a6b3f;
}

.bridge-health-results.is-issues {
  background: rgba(239, 65, 54, 0.06);
  border-color: rgba(239, 65, 54, 0.22);
}

.health-check-office {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(221, 227, 235, 0.8);
}

.health-check-office:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.health-check-office-name {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.health-check-issue {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--red-dark, #c0392b);
  margin: 2px 0;
}

.health-check-issue::before {
  content: '⚠';
  font-size: 11px;
  flex-shrink: 0;
}

/* Linked offices expand/collapse */
.linked-offices-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.linked-offices-all {
  display: none;
}

.linked-offices-wrapper.is-expanded .linked-offices-collapsed {
  display: none;
}

.linked-offices-wrapper.is-expanded .linked-offices-all {
  display: inline;
}

.linked-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  line-height: 1.4;
}

.linked-toggle-btn:hover {
  text-decoration: underline;
}

/* Muted secondary row (Bridge Authority NONE) */
.table-secondary-muted {
  opacity: 0.55;
}

/* Sortable table column headers */
.th-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.th-sortable:hover {
  color: var(--accent);
}

.sort-indicator::after {
  content: '↕';
  margin-left: 5px;
  font-size: 11px;
  opacity: 0.35;
}

[data-sort-dir='asc'] .sort-indicator::after {
  content: '↑';
  opacity: 0.8;
}

[data-sort-dir='desc'] .sort-indicator::after {
  content: '↓';
  opacity: 0.8;
}

/* Name display under ID fields (Broker, Bridge Authority) */
.field-name-display {
  margin: 0;
  min-height: 15px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  font-style: italic;
}

/* Editable toggle row */
.form-editable-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-editable-row input[type='checkbox'] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-editable-row label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

/* Import-locked state — fields read-only after import until Editable is checked */
.form-import-locked .lockable {
  background: rgba(244, 246, 248, 0.9);
  color: var(--ink-soft);
  border-color: rgba(221, 227, 235, 0.9);
  pointer-events: none;
}

.bridge-linked-offices {
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(221, 227, 235, 0.95);
  background: rgba(244, 246, 248, 0.72);
}

.bridge-linked-offices .eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.linked-offices-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.linked-office-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}

.linked-office-name {
  font-weight: 600;
  color: var(--ink);
}

.linked-office-id {
  font-size: 11px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.record-extra-fields {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(221, 227, 235, 0.95);
}

.form-section-heading {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(221, 227, 235, 0.82);
}

.form-section-heading h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(221, 227, 235, 0.95);
}

.confirm-copy {
  padding: 0;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 14px;
}

.confirm-modal-body {
  padding: 18px 24px 24px;
}

.modal-actions-compact {
  margin-top: 18px;
}

.notes-modal-body {
  display: grid;
  gap: 18px;
}

.notes-list {
  display: grid;
  gap: 12px;
}

.record-audit-view {
  padding: 18px 24px 24px;
}

.record-audit-list {
  display: grid;
  gap: 12px;
}

.audit-entry {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 20, 25, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.audit-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.audit-entry-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.audit-entry-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-entry-neutral {
  background: rgba(18, 20, 25, 0.08);
  color: var(--ink);
}

.audit-entry-info {
  background: rgba(239, 65, 54, 0.08);
  color: var(--red-dark);
}

.audit-entry-good {
  background: rgba(15, 145, 87, 0.14);
  color: #0f7a4d;
}

.audit-entry-warn {
  background: rgba(255, 179, 0, 0.18);
  color: #8b5d00;
}

.audit-entry-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.audit-entry-date {
  color: var(--ink-soft);
  font-size: 11px;
}

.audit-entry-summary {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}

.note-entry {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 20, 25, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.note-entry-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.note-entry-meta {
  display: grid;
  gap: 2px;
}

.note-entry-author {
  font-size: 13px;
}

.note-entry-date {
  color: var(--ink-soft);
  font-size: 11px;
}

.note-entry-body {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.notes-form .modal-actions {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .hero,
  .metrics-grid,
  .module-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .vow-toolbar {
    grid-template-columns: 1fr 220px;
  }

  .vow-toolbar .button-primary {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .notice-queue-grid-head {
    display: none;
  }

  .notice-queue-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .notice-queue-dates {
    grid-template-columns: 1fr 1fr;
  }

  .notice-queue-statuses {
    grid-template-columns: 1fr;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 980px) {
  :root {
    --pad-x: 16px;
  }

  .nav-links,
  .nav-buttons {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  .dashboard {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .modal-split-link-bar {
    justify-content: space-between;
  }

  .section-toggle {
    width: 100%;
  }

  .vow-overview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .vow-shell {
    margin-top: 24px;
  }

  .vow-toolbar,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .vow-table-head {
    align-items: start;
    flex-direction: column;
  }

  .notice-queue-primary {
    align-items: flex-start;
  }

  .notice-queue-dates {
    grid-template-columns: 1fr;
  }

  .modal-header,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-shell {
    padding: 16px;
  }

  .modal-actions .button-primary,
  .modal-actions .button-secondary,
  .modal-actions .button-danger {
    width: 100%;
  }
}

/* RECO lookup */
.reco-lookup-section {
  margin-top: 18px;
}

@keyframes stats-spin {
  to { transform: rotate(360deg); }
}

.reco-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.reco-inline-fields {
  display: flex;
  gap: 8px;
  flex: 1;
}

.reco-inline-fields[hidden] { display: none; }

.reco-inline-fields input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(18, 20, 25, 0.11);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
}

.reco-inline-fields input:focus {
  outline: none;
  border-color: rgba(239, 65, 54, 0.46);
  box-shadow: 0 0 0 4px rgba(239, 65, 54, 0.08);
}

.reco-toolbar .button-primary {
  flex-shrink: 0;
}

.reco-type-toggle {
  display: flex;
  gap: 0;
  border: 1px solid rgba(18, 20, 25, 0.12);
  border-radius: 14px;
  overflow: hidden;
  width: fit-content;
}

.reco-type-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.reco-type-btn:first-child { border-right: 1px solid rgba(18, 20, 25, 0.12); }

.reco-type-btn.is-active {
  background: var(--ink);
  color: #fff;
}

.reco-status {
  padding: 14px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.reco-status.is-error { color: var(--red); }

.reco-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(239, 65, 54, 0.2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: stats-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.reco-results-scroll {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid rgba(221, 227, 235, 0.8);
  border-radius: 10px;
  margin-top: 16px;
}

.reco-results-table {
  width: 100%;
  border-collapse: collapse;
}

.reco-results-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(247, 247, 247, 0.86);
  border-bottom: 1px solid rgba(221, 227, 235, 0.8);
  position: sticky;
  top: 0;
  z-index: 1;
}

.reco-results-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(221, 227, 235, 0.6);
  vertical-align: top;
}

.reco-results-table tbody tr:hover { background: rgba(239, 65, 54, 0.025); }

.reco-name { font-weight: 700; color: var(--ink); }
.reco-sub  { margin-top: 3px; color: var(--ink-soft); font-size: 11px; }

.reco-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(18, 20, 25, 0.06);
  color: var(--ink-soft);
}

.reco-badge-active {
  background: rgba(34, 168, 100, 0.12);
  color: #1a7a50;
}

.reco-badge-expired {
  background: rgba(239, 65, 54, 0.1);
  color: var(--red);
}

.reco-no-results {
  padding: 24px 0;
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 600px) {
  .reco-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .reco-toolbar .button-primary {
    width: 100%;
  }
}

/* ─── RESO Data Dictionary ──────────────────────────────────────────────────── */

.dd-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dd-sync-meta {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 500;
}

.dd-sync-meta[data-tone='success'] { color: #0f7a4d; }
.dd-sync-meta[data-tone='error']   { color: var(--red-dark); }

.dd-search-bar { margin-top: 18px; }

.dd-search-input {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(18, 20, 25, 0.11);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 18px;
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dd-search-input::placeholder { color: #8d97a3; }

.dd-search-input:focus {
  outline: none;
  border-color: rgba(239, 65, 54, 0.46);
  box-shadow: 0 0 0 4px rgba(239, 65, 54, 0.08);
}

.dd-search-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.dd-search-status {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.dd-search-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

/* Field card */
.dd-field-card {
  padding: 18px 20px 16px;
  border: 1px solid rgba(18, 20, 25, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dd-field-draft {
  border-color: rgba(255, 179, 0, 0.24);
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.07) 0%, rgba(255, 255, 255, 0.72) 45%);
}

.dd-field-head { margin-bottom: 10px; }

.dd-field-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.dd-field-resource {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.dd-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dd-badge-draft { background: rgba(255, 179, 0, 0.18); color: #7a5000; }

.dd-field-name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.dd-field-display-name {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.dd-field-definition {
  margin: 0 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Two-column metadata grid */
.dd-field-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(18, 20, 25, 0.07);
}

/* Attribute rows (definition list) */
.dd-field-attrs {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0;
  align-content: start;
}

.dd-attr-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 16px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(18, 20, 25, 0.04);
  align-items: baseline;
  font-size: 13px;
}

/* Right column has longer labels (Status Change Date, Revision Date) — give them more room */
.dd-field-meta-grid .dd-field-attrs:last-child .dd-attr-row {
  grid-template-columns: 160px 1fr;
}

.dd-attr-row:last-child { border-bottom: none; }

.dd-attr-row dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 2px;
  text-align: right;
  white-space: nowrap;
}

.dd-attr-row dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dd-attr-nil { color: var(--ink-soft); }

.dd-wiki-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--red-dark);
  text-decoration: none;
}

.dd-wiki-link:hover { text-decoration: underline; }

/* Lookups section */
.dd-lookups {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 20, 25, 0.07);
}

.dd-lookups-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.15s;
}

.dd-lookups-toggle:hover { color: var(--ink); }

.dd-lookups-chevron {
  font-size: 10px;
  transition: transform 0.18s ease;
}

.dd-lookups-toggle[aria-expanded='true'] .dd-lookups-chevron {
  transform: rotate(180deg);
}

.dd-lookup-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.dd-lookup-list[hidden] { display: none; }

.dd-lookup-row { border-radius: 8px; }

.dd-lookup-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(130px, auto) 1fr;
  align-items: center;
  gap: 0 12px;
  padding: 6px 10px;
  background: rgba(247, 247, 247, 0.8);
  border: none;
  border-radius: 8px;
  text-align: left;
  transition: background 0.15s;
}

.dd-lookup-expandable .dd-lookup-toggle { cursor: pointer; }
.dd-lookup-expandable .dd-lookup-toggle:hover { background: rgba(239, 65, 54, 0.06); }

.dd-lookup-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.dd-lookup-preview-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  gap: 0 5px;
}

.dd-lookup-preview {
  font-size: 12px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}

/* Expanded row: unwrap the preview text in place — no duplicate panel */
.dd-lookup-row.is-expanded .dd-lookup-toggle { align-items: start; }

.dd-lookup-row.is-expanded .dd-lookup-preview-wrap {
  overflow: visible;
  align-items: start;
}

.dd-lookup-row.is-expanded .dd-lookup-preview {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.dd-lookup-chevron {
  font-size: 10px;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: transform 0.18s ease;
  line-height: 1;
  padding-top: 1px;
}

.dd-lookup-toggle[aria-expanded='true'] .dd-lookup-chevron {
  transform: rotate(180deg);
}

@media (max-width: 720px) {
  .dd-header-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .dd-field-meta-grid {
    grid-template-columns: 1fr;
  }

  .dd-lookup-toggle {
    grid-template-columns: minmax(100px, auto) 1fr;
  }
}
