: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: var(--white);
}

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-image: radial-gradient(circle, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.layer-grid {
  background-image:
    linear-gradient(rgba(18, 20, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 20, 25, 0.04) 1px, transparent 1px);
  background-size: 100px 100px;
  background-position: 50px 50px;
}

.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;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  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) + 12px) 24px 40px;
  position: relative;
  z-index: 1;
}

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

.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);
}

.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: 26px;
}

.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);
}

.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);
}

.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;
}

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

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

.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 th:nth-child(5),
.vow-table th:nth-child(6),
.vow-table td:nth-child(3),
.vow-table td:nth-child(4),
.vow-table td:nth-child(5),
.vow-table td:nth-child(6) {
  text-align: center;
}

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

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

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

.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;
}

.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-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: wrap;
  gap: 6px;
  justify-content: center;
}

.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-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);
}

.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-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);
}

.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;
}

.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;
}

.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: 8px 24px 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 14px;
}

@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;
  }
}

@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;
  }

  .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;
  }

  .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%;
  }
}
