:root {
  --maxton-ink: #24364a;
  --maxton-ink-soft: #5d7088;
  --maxton-brand: #6f91c3;
  --maxton-brand-deep: #557fb8;
  --maxton-sky: #7fabc5;
  --maxton-line: #d6e0ec;
  --maxton-soft: #f2f6fb;
  --maxton-alert: #edf3f9;
  --maxton-surface: #ffffff;
  --maxton-surface-strong: #fbfcfe;
  --maxton-bg-top: #f7f9fc;
  --maxton-bg-bottom: #eef3f8;
  --maxton-shadow: rgba(40, 55, 75, 0.06);
  --maxton-navbar-shadow: rgba(40, 55, 75, 0.1);
  --maxton-alert-warning-bg: #fbf7e8;
  --maxton-alert-warning-border: #eadfb8;
  --maxton-alert-warning-ink: #6a5b2a;
  --maxton-alert-danger-bg: #f9ecec;
  --maxton-alert-danger-border: #e8c5c5;
  --maxton-alert-danger-ink: #7b3f3f;
  --maxton-alert-success-bg: #dceee3;
  --maxton-alert-success-border: #8db79b;
  --maxton-alert-success-ink: #234d35;
  --maxton-alert-sandbox-bg: #f0f4f8;
  --maxton-alert-sandbox-border: #d3dbe4;
  --maxton-alert-sandbox-ink: #4b5b6c;
  --maxton-alert-info-bg: #eef4f9;
  --maxton-alert-info-border: #d4dfe9;
  --maxton-alert-info-ink: #4b5b6c;
  --maxton-alert-secondary-bg: #f3f6fa;
  --maxton-alert-secondary-border: #dbe3ed;
  --maxton-alert-secondary-ink: #516174;
  --maxton-table-stripe: rgba(79, 89, 105, 0.035);
  --maxton-table-head-top: #ebf1f8;
  --maxton-table-head-bottom: #dde7f1;
  --maxton-table-head-ink: #223245;
  --maxton-table-head-border: rgba(125, 145, 170, 0.3);
  --maxton-table-head-gloss: rgba(255, 255, 255, 0.7);
  --maxton-table-head-shadow: rgba(108, 128, 154, 0.16);
  --maxton-muted: #5d7088;
  --maxton-hero-glow: rgba(111, 145, 195, 0.16);
  --maxton-link: var(--maxton-brand-deep);
  --maxton-link-hover: #4a75ad;
  --maxton-link-visited: var(--maxton-brand-deep);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --maxton-ink: #e5edf9;
  --maxton-ink-soft: #aebcd1;
  --maxton-brand: #9db8e3;
  --maxton-brand-deep: #89a7d6;
  --maxton-sky: #6f97af;
  --maxton-line: #2b3748;
  --maxton-soft: #131a23;
  --maxton-alert: #24384c;
  --maxton-surface: rgba(20, 28, 38, 0.92);
  --maxton-surface-strong: rgba(26, 34, 45, 0.98);
  --maxton-bg-top: #0c1117;
  --maxton-bg-bottom: #151e29;
  --maxton-shadow: rgba(0, 0, 0, 0.28);
  --maxton-navbar-shadow: rgba(0, 0, 0, 0.35);
  --maxton-alert-warning-bg: #3a3117;
  --maxton-alert-warning-border: #5d4a1c;
  --maxton-alert-warning-ink: #f0d98a;
  --maxton-alert-danger-bg: #3f2424;
  --maxton-alert-danger-border: #6a3a3a;
  --maxton-alert-danger-ink: #f1b7b7;
  --maxton-alert-success-bg: #27362d;
  --maxton-alert-success-border: #4f6656;
  --maxton-alert-success-ink: #dbe7dd;
  --maxton-alert-sandbox-bg: #2d3440;
  --maxton-alert-sandbox-border: #596576;
  --maxton-alert-sandbox-ink: #e4ebf3;
  --maxton-alert-info-bg: #2d3440;
  --maxton-alert-info-border: #596576;
  --maxton-alert-info-ink: #e4ebf3;
  --maxton-alert-secondary-bg: #313742;
  --maxton-alert-secondary-border: #55606f;
  --maxton-alert-secondary-ink: #eef2f8;
  --maxton-table-stripe: rgba(157, 184, 227, 0.08);
  --maxton-table-head-top: #a8c0e3;
  --maxton-table-head-bottom: #88a8d2;
  --maxton-table-head-ink: #101722;
  --maxton-table-head-border: rgba(46, 69, 105, 0.28);
  --maxton-table-head-gloss: rgba(255, 255, 255, 0.35);
  --maxton-table-head-shadow: rgba(46, 69, 105, 0.28);
  --maxton-muted: #9aa9be;
  --maxton-hero-glow: rgba(157, 184, 227, 0.24);
  --maxton-link: var(--maxton-brand-deep);
  --maxton-link-hover: var(--maxton-brand);
  --maxton-link-visited: var(--maxton-brand-deep);
  color-scheme: dark;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  color: var(--maxton-ink);
  background:
    linear-gradient(180deg, var(--maxton-bg-top) 0%, var(--maxton-bg-bottom) 100%);
}

body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
p, li, dt, dd, label, th, td,
.form-label, .form-check-label,
.card-title, .card-text,
.navbar, .nav-link, .navbar-brand,
.btn, .badge, .alert,
.table, .table th, .table td {
  color: var(--maxton-ink);
}

a,
.btn-link,
.nav-link,
.dropdown-item,
.page-link {
  color: var(--maxton-link);
}

a:visited {
  color: var(--maxton-link-visited);
}

a:hover,
a:focus,
.btn-link:hover,
.btn-link:focus,
.nav-link:hover,
.nav-link:focus,
.dropdown-item:hover,
.dropdown-item:focus,
.page-link:hover,
.page-link:focus {
  color: var(--maxton-link-hover);
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 1rem;
}

.landing-hero__shell {
  position: relative;
  padding: 2.5rem;
  border: 1px solid rgba(219, 228, 238, 0.9);
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at top right, var(--maxton-hero-glow), transparent 32%),
    linear-gradient(140deg, var(--maxton-surface-strong), var(--maxton-soft));
  box-shadow: 0 22px 50px var(--maxton-navbar-shadow);
}

.landing-kicker {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(138, 164, 207, 0.14);
  color: var(--maxton-brand-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-title {
  margin-top: 1rem;
  color: var(--maxton-ink);
  font-size: clamp(2.75rem, 6vw, 4.8rem);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.landing-copy {
  max-width: 42rem;
  margin-top: 1.25rem;
  font-size: 1.16rem;
  line-height: 1.7;
  color: var(--maxton-ink);
}

.landing-copy--muted {
  font-size: 1rem;
  color: var(--maxton-ink-soft);
}

.landing-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.landing-panel {
  padding: 1.75rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(143, 167, 201, 0.3);
  background: var(--maxton-surface);
}

.landing-panel--compact {
  padding: 1.1rem 1.25rem;
}

.landing-panel--compact .landing-panel__eyebrow {
  margin-bottom: 0.75rem;
}

.latest-import-summary {
  border: 1px solid var(--maxton-line);
  border-left: 5px solid var(--maxton-brand-deep);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

.latest-import-summary .text-muted,
.latest-import-summary .fw-semibold {
  color: var(--maxton-ink);
}

.latest-import-summary .btn-outline-primary {
  align-self: center;
}

.landing-panel__eyebrow {
  margin-bottom: 1rem;
  color: var(--maxton-brand-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-points {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--maxton-ink-soft);
  line-height: 1.8;
}

.landing-grid {
  padding: 1.5rem 0 2.75rem;
}

.dashboard-summary-grid .card-body {
  padding: 1rem !important;
}

.dashboard-summary-grid .card-body .h4,
.dashboard-summary-grid .card-body h2 {
  margin-bottom: 0.25rem;
}

.dashboard-year-end-card,
.dashboard-year-end-status-card {
  border: 1px solid var(--maxton-line);
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

.dashboard-year-end-card {
  border-left: 5px solid var(--maxton-brand-deep);
}

.dashboard-year-end-status-card .border {
  background: rgba(138, 164, 207, 0.05);
}

.dashboard-year-end-empty-state {
  border: 1px solid var(--maxton-line);
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
  color: var(--maxton-ink);
  box-shadow: 0 10px 28px var(--maxton-shadow);
}

:root[data-theme="dark"] .dashboard-year-end-empty-state {
  background: linear-gradient(180deg, rgba(24, 32, 43, 0.98), rgba(20, 28, 38, 0.96));
  color: var(--maxton-ink);
}

.dashboard-year-end-empty-state .text-muted {
  color: var(--maxton-ink-soft) !important;
}

.dashboard-section__eyebrow {
  display: inline-block;
  color: var(--maxton-brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-home__stack {
  display: grid;
  gap: 1rem;
}

.dashboard-home-status-card {
  border: 1px solid var(--maxton-line);
  background:
    linear-gradient(180deg, rgba(111, 143, 190, 0.08), rgba(111, 143, 190, 0.02)),
    linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

.dashboard-home-status-card__sidebar {
  display: grid;
  gap: 0.5rem;
  min-width: min(100%, 22rem);
}

.dashboard-status-chip {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--maxton-line);
  border-radius: 0.9rem;
  background: rgba(138, 164, 207, 0.06);
}

.dashboard-status-chip span {
  color: var(--maxton-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-status-chip strong {
  color: var(--maxton-ink);
  font-size: 1rem;
  font-weight: 700;
}

.dashboard-status-chip--warning {
  border-color: rgba(255, 193, 7, 0.45);
  background: rgba(255, 193, 7, 0.1);
}

.dashboard-status-chip--success {
  border-color: rgba(127, 174, 144, 0.7);
  background: rgba(127, 174, 144, 0.14);
}

:root[data-theme="dark"] .dashboard-status-chip--success {
  border-color: rgba(121, 164, 134, 0.45);
  background: rgba(121, 164, 134, 0.12);
}

.dashboard-status-chip--neutral {
  background: rgba(138, 164, 207, 0.04);
}

.dashboard-home-status-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  align-items: center;
}

.dashboard-year-end-status-stack {
  display: grid;
  gap: 0.6rem;
}

.dashboard-year-end-mini-panel {
  background: rgba(138, 164, 207, 0.04);
}

.dashboard-year-end-mini-panel--success {
  border-color: rgba(127, 174, 144, 0.55) !important;
  background: rgba(127, 174, 144, 0.08);
}

.year-end-workflow-summary {
  border: 1px solid var(--maxton-line);
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

.year-end-workflow-summary--complete {
  border-color: rgba(127, 174, 144, 0.55);
  background:
    linear-gradient(180deg, rgba(127, 174, 144, 0.08), rgba(127, 174, 144, 0.03)),
    linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

:root[data-theme="dark"] .year-end-workflow-summary--complete {
  border-color: rgba(121, 164, 134, 0.55);
  background:
    linear-gradient(180deg, rgba(32, 44, 37, 0.92), rgba(20, 28, 38, 0.98)),
    linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

.year-end-workflow-list {
  display: grid;
  gap: 0.65rem;
}

.year-end-workflow-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--maxton-line);
  border-radius: 1rem;
  background: rgba(138, 164, 207, 0.04);
}

.year-end-workflow-row--active {
  border-color: rgba(255, 193, 7, 0.45);
  background: rgba(255, 193, 7, 0.08);
}

.year-end-workflow-row--complete {
  border-color: rgba(127, 174, 144, 0.55);
  background: rgba(127, 174, 144, 0.08);
}

.year-end-workflow-row--blocked {
  background: rgba(138, 164, 207, 0.03);
}

.year-end-workflow-row--neutral {
  background: rgba(138, 164, 207, 0.04);
}

.year-end-workflow-row__meta {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}

.year-end-workflow-row__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 999px;
  border: 1px solid var(--maxton-line);
  background: rgba(138, 164, 207, 0.08);
  color: var(--maxton-ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.year-end-workflow-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-inline-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--maxton-line);
  border-radius: 1rem;
  background: rgba(138, 164, 207, 0.05);
}

.dashboard-compact-alert {
  border: 1px solid var(--maxton-line) !important;
  background: rgba(138, 164, 207, 0.06) !important;
}

.dashboard-summary-card {
  border: 1px solid var(--maxton-line);
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

.dashboard-summary-card--accent {
  border-left: 5px solid var(--maxton-brand-deep);
}

.dashboard-summary-card .card-body {
  padding: 1rem 1rem 1.1rem;
}

.dashboard-mini-card {
  border: 1px solid var(--maxton-line);
  background: rgba(138, 164, 207, 0.04);
}

.dashboard-mini-card .card-body {
  padding: 0.9rem 1rem;
}

.dashboard-compact-details {
  border: 1px solid var(--maxton-line);
  border-radius: 1rem;
  background: var(--maxton-surface-strong);
  overflow: clip;
}

.dashboard-compact-details > summary {
  padding: 1rem 1.1rem;
  color: var(--maxton-ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.dashboard-compact-details > summary::marker {
  content: "";
}

.dashboard-compact-details--static {
  display: block;
}

.dashboard-compact-details__heading {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--maxton-line);
  color: var(--maxton-ink);
  font-weight: 700;
}

.dashboard-compact-details[open] > summary {
  border-bottom: 1px solid var(--maxton-line);
}

.dashboard-compact-details__body {
  padding: 1rem 1.1rem 1.1rem;
}

.dashboard-trend-card--compact {
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.dashboard-trend-card--compact .card-body {
  padding: 0;
}

.dashboard-workflow-card {
  border: 1px solid var(--maxton-line);
  background: var(--maxton-surface-strong);
}

.dashboard-workflow-table {
  margin-bottom: 0;
}

.dashboard-workflow-table th,
.dashboard-workflow-table td {
  padding: 0.95rem 1rem;
  border-color: var(--maxton-line);
}

.dashboard-workflow-table thead th {
  border-bottom-width: 1px;
}

.dashboard-workflow-table tbody tr:last-child th,
.dashboard-workflow-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-workflow-table td {
  color: var(--maxton-ink-soft);
}

.dashboard-trend-card {
  overflow: hidden;
}

.dashboard-trend-card .card-body {
  padding: 1.35rem 1.45rem 1.2rem;
}

.dashboard-trend-chart {
  padding: 0.9rem 0.5rem 0.15rem;
}

.dashboard-trend-chart-shell {
  position: relative;
  overflow: visible;
  padding: 0.55rem 0.5rem 0.2rem;
}

.dashboard-trend-axis-labels {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4.3rem;
  pointer-events: none;
}

.dashboard-trend-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.dashboard-trend-line {
  fill: none;
  stroke: var(--maxton-brand-deep);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-trend-point {
  fill: #ffffff;
  stroke: var(--maxton-brand-deep);
  stroke-width: 1.9;
}

.dashboard-trend-axis {
  stroke: rgba(111, 143, 190, 0.36);
  stroke-width: 1.4;
}

.dashboard-trend-gridline {
  stroke: rgba(111, 143, 190, 0.14);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.dashboard-trend-axis-text {
  fill: var(--maxton-muted);
  color: var(--maxton-muted);
  font-size: 0.78rem;
  user-select: none;
}

.dashboard-trend-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
  gap: 0.2rem;
  margin-top: 0.55rem;
  padding: 0 1rem;
  color: var(--maxton-muted);
  font-size: 0.75rem;
  text-align: center;
}

.dashboard-trend-labels span {
  white-space: nowrap;
}

.dashboard-trend-empty {
  padding: 1.5rem 1rem;
  border: 1px dashed var(--maxton-line);
  border-radius: 1rem;
  color: var(--maxton-muted);
  background: rgba(138, 164, 207, 0.05);
  text-align: center;
}

.review-nowrap,
.review-source-id {
  display: inline-block;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.review-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.review-table th,
.review-table td {
  vertical-align: top;
}

.review-table tbody tr {
  background-color: var(--maxton-surface);
}

.review-table tbody tr:nth-child(odd) {
  background-color: var(--maxton-table-stripe);
}

.review-table tbody td {
  background-color: transparent !important;
  border-bottom: 1px solid var(--maxton-line) !important;
}

.review-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.review-table tbody td {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.review-table td.review-reference-cell,
.review-table td.review-source,
.review-table td.review-suggested,
.review-table td.review-action {
  vertical-align: top;
}

.records-table {
  table-layout: auto;
}

.records-table tbody th,
.records-table tbody td {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.records-state-cell,
.records-actions-cell {
  white-space: nowrap;
}

.records-state-stack {
  display: grid;
  gap: 0.25rem;
}

.records-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(138, 164, 207, 0.26);
  border-radius: 999px;
  background: rgba(138, 164, 207, 0.08);
  color: var(--maxton-ink-soft) !important;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.1;
}

.records-clarification {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.2rem 0.35rem;
  border-radius: 0.8rem;
  border: 1px solid var(--maxton-line);
  background: rgba(138, 164, 207, 0.05);
  color: var(--maxton-ink-soft);
  font-size: 0.8rem;
}

.records-clarification--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--maxton-muted);
  padding: 0;
}

.records-clarification--info {
  border-color: rgba(111, 143, 190, 0.4);
  background: rgba(111, 143, 190, 0.11);
}

.records-clarification--warning {
  border-color: rgba(255, 193, 7, 0.4);
  background: rgba(255, 193, 7, 0.12);
}

.records-clarification--closed {
  border-color: rgba(111, 143, 190, 0.22);
  background: rgba(138, 164, 207, 0.04);
  color: var(--maxton-muted);
}

.records-clarification__label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  line-height: 1.15;
}

.records-clarification__state {
  color: inherit;
}

.records-clarification__count {
  color: var(--maxton-muted);
  font-size: 0.78rem;
}

.records-clarification__link {
  color: var(--maxton-brand-deep);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.records-clarification__link:hover,
.records-clarification__link:focus {
  text-decoration: underline;
}

.records-clarification--quiet .records-clarification__link {
  font-size: 0.78rem;
}

.records-clarification--quiet .records-clarification__state {
  color: var(--maxton-muted);
}

:root[data-theme="dark"] .records-status-pill {
  border-color: rgba(157, 184, 227, 0.22);
  background: rgba(157, 184, 227, 0.1);
  color: var(--maxton-ink-soft) !important;
}

:root[data-theme="dark"] .records-clarification {
  background: rgba(157, 184, 227, 0.08);
}

:root[data-theme="dark"] .records-clarification--quiet {
  background: transparent;
}

:root[data-theme="dark"] .records-clarification--info {
  border-color: rgba(157, 184, 227, 0.36);
  background: rgba(157, 184, 227, 0.12);
}

:root[data-theme="dark"] .records-clarification--warning {
  border-color: rgba(255, 214, 92, 0.34);
  background: rgba(255, 214, 92, 0.12);
}

:root[data-theme="dark"] .records-clarification--closed {
  border-color: rgba(157, 184, 227, 0.16);
  background: rgba(157, 184, 227, 0.04);
}

.records-actions {
  min-width: 0;
}

.records-actions .btn {
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  line-height: 1.25;
}

.records-actions .btn-outline-danger {
  padding-inline: 0.5rem;
}

.review-date {
  overflow: hidden;
}

.review-source-id {
  display: block;
  max-width: 8.25rem;
}

.review-reference-cell {
  overflow: hidden;
}

.review-reference-value {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.review-col-date {
  width: 9rem;
}

.review-col-source {
  width: 10.5rem;
}

.review-col-details {
  width: 16rem;
}

.review-col-amounts {
  width: 7rem;
}

.review-col-reference {
  width: 5.5rem;
}

.review-col-suggested {
  width: 12.5rem;
}

.review-col-review {
  width: 14.5rem;
}

.review-details,
.review-amounts {
  font-size: 0.95rem;
}

.review-meta {
  color: var(--maxton-muted);
  font-size: 0.84rem;
  line-height: 1.25;
}

.review-muted {
  color: var(--maxton-muted);
  font-size: 0.84rem;
}

.review-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
}

.review-amount-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  white-space: nowrap;
}

.review-amount-label {
  color: var(--maxton-muted);
  font-size: 0.84rem;
}

.review-select {
  width: 100%;
  max-width: 100%;
}

.review-save-button {
  width: 100%;
}

.review-source-badge {
  white-space: nowrap;
}

.review-reference {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.review-source {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .review-nowrap,
  .review-source-id {
    max-width: 100%;
    white-space: normal;
  }

  .review-clamp {
    -webkit-line-clamp: 3;
  }
}

.landing-card {
  background: var(--maxton-surface);
}

.landing-card__label {
  margin-bottom: 0.6rem;
  color: var(--maxton-brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-section {
  padding: 0.5rem 0 3rem;
}

.pricing-intro {
  height: 100%;
  padding: 1.5rem 0.5rem;
}

.pricing-card {
  border-radius: 1.4rem;
  background: var(--maxton-surface);
}

.pricing-card--featured {
  background: linear-gradient(180deg, var(--maxton-soft), var(--maxton-surface-strong));
}

.pricing-card__label {
  margin-bottom: 0.6rem;
  color: var(--maxton-brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card__price {
  margin-bottom: 0.4rem;
  color: var(--maxton-ink);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 300;
}

.pricing-card__price span {
  margin-left: 0.35rem;
  font-size: 1rem;
  color: var(--maxton-muted);
  font-weight: 600;
}

.pricing-card__subtext {
  margin-bottom: 1.25rem;
  color: var(--maxton-muted);
}

.pricing-points {
  min-height: 8rem;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem rgba(85, 127, 184, 0.24);
}

.btn {
  border-radius: 0.8rem;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle,
.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:active:focus,
.btn-success.active,
.show > .btn-success.dropdown-toggle,
.btn-danger,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger:active:focus,
.btn-danger.active,
.show > .btn-danger.dropdown-toggle,
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:active:focus,
.btn-secondary.active,
.show > .btn-secondary.dropdown-toggle {
  color: #ffffff !important;
}

.btn-primary {
  background: linear-gradient(180deg, #7b98ca 0%, #6b8aba 100%);
  border-color: #667fa9;
  --bs-btn-color: #ffffff;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-color: #ffffff;
  --bs-btn-disabled-color: #ffffff;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(180deg, #88a4d0 0%, #7493c5 100%);
  border-color: #7089b4;
  color: #ffffff !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
  opacity: 1;
  background: linear-gradient(180deg, #dbe4f0 0%, #cdd9e8 100%);
  border-color: #c2cfdf;
  color: #5d7088;
  box-shadow: none;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  opacity: 1;
  background: linear-gradient(180deg, #e8edf3 0%, #dde5ee 100%);
  border-color: #d0d9e4;
  color: #66798f;
  box-shadow: none;
}

.btn-outline-primary {
  --bs-btn-color: var(--maxton-brand-deep);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-color: #ffffff;
  --bs-btn-disabled-color: var(--maxton-brand-deep);
  color: var(--maxton-brand-deep) !important;
  border-color: rgba(85, 127, 184, 0.7);
  background-color: rgba(255, 255, 255, 0.88);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--maxton-brand-deep);
  border-color: var(--maxton-brand-deep);
  color: #ffffff !important;
}

.btn-outline-secondary {
  --bs-btn-color: #41556b;
  --bs-btn-hover-color: #24364a;
  --bs-btn-active-color: #24364a;
  --bs-btn-disabled-color: #41556b;
  color: #41556b !important;
  border-color: #c4d0df;
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: #24364a !important;
  border-color: #9cb4d1;
  background-color: #eff4fa;
}

.btn-outline-secondary:disabled,
.btn-outline-secondary.disabled {
  opacity: 1;
  color: #7b8ea4;
  border-color: #d7e0eb;
  background-color: rgba(247, 249, 252, 0.98);
  box-shadow: none;
}

.btn-success {
  background: linear-gradient(180deg, #8eb79a 0%, #7ca88a 100%);
  border-color: #789c84;
  --bs-btn-color: #ffffff;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-color: #ffffff;
  --bs-btn-disabled-color: #ffffff;
  color: #ffffff !important;
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(180deg, #96c0a3 0%, #86b393 100%);
  border-color: #85aa90;
  color: #ffffff !important;
}

.btn-success:disabled,
.btn-success.disabled {
  opacity: 1;
  background: linear-gradient(180deg, #dde8df 0%, #d0ddd4 100%);
  border-color: #c7d6cb;
  color: #5d7088;
  box-shadow: none;
}

.btn-danger:disabled,
.btn-danger.disabled {
  opacity: 1;
  background: linear-gradient(180deg, #f0dddd 0%, #e7d1d1 100%);
  border-color: #d8b6b6;
  color: #7b5b5b;
  box-shadow: none;
}

.btn-outline-danger {
  --bs-btn-color: #8f4a4a;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-color: #ffffff;
  --bs-btn-disabled-color: #8f4a4a;
  color: #8f4a4a !important;
  border-color: #dbb0b0;
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  color: #ffffff !important;
  border-color: #b87d7d;
  background-color: #b06f6f;
}

.btn-outline-danger:disabled,
.btn-outline-danger.disabled {
  opacity: 1;
  color: #a37777;
  border-color: #e1c2c2;
  background-color: rgba(252, 246, 246, 0.98);
  box-shadow: none;
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
  opacity: 1;
  color: #7d94ad;
  border-color: #c9d5e4;
  background-color: rgba(247, 249, 252, 0.98);
  box-shadow: none;
}

.maxton-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 7.5rem;
}

.maxton-navbar {
  position: relative;
  z-index: 1035;
  background:
    radial-gradient(circle at top right, rgba(111, 145, 195, 0.14), transparent 38%),
    linear-gradient(140deg, var(--maxton-surface-strong), var(--maxton-surface));
  backdrop-filter: blur(10px);
}

:root[data-theme="dark"] .maxton-navbar {
  background:
    radial-gradient(circle at top right, rgba(157, 184, 227, 0.18), transparent 38%),
    linear-gradient(140deg, rgba(26, 34, 45, 0.96), rgba(20, 28, 38, 0.94));
}

.maxton-brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.maxton-brand-word {
  font-size: clamp(2rem, 3vw, 2.75rem);
  letter-spacing: 0.12em;
  color: var(--maxton-brand);
  font-weight: 600;
  text-shadow: 0 0 18px rgba(111, 145, 195, 0.08);
}

.maxton-brand-sub {
  margin-top: 0.15rem;
  margin-left: 4.4rem;
  font-size: 1rem;
  color: var(--maxton-brand-deep);
  letter-spacing: 0.02em;
  font-weight: 400;
}

.maxton-wordmark-inline {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--maxton-brand);
}

.maxton-personal-inline {
  font-weight: 400;
}

.maxton-nav-link {
  color: var(--maxton-ink-soft);
  font-weight: 600;
  transition: color 120ms ease, font-weight 120ms ease;
}

.maxton-nav-link:hover,
.maxton-nav-link:focus {
  color: var(--maxton-brand-deep);
}

.navbar .nav-link.maxton-nav-link.active,
.navbar .nav-link.maxton-nav-link:active {
  color: #9bbcf4 !important;
  font-weight: 700;
}

.navbar .nav-link.maxton-nav-link.active:hover,
.navbar .nav-link.maxton-nav-link.active:focus {
  color: #bcd4ff !important;
}

.maxton-theme-toggle {
  min-width: 7.5rem;
  font-weight: 600;
  opacity: 1 !important;
  color: #24364a !important;
  border-color: rgba(111, 145, 195, 0.55) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
}

.maxton-theme-toggle:hover,
.maxton-theme-toggle:focus {
  color: #24364a !important;
  border-color: #7f9ed1 !important;
  background-color: #f2f6fb !important;
}

.dropdown-menu {
  border: 1px solid var(--maxton-line);
  border-radius: 0.9rem;
  background-color: var(--maxton-surface-strong);
  box-shadow: 0 18px 34px rgba(40, 55, 75, 0.12);
}

.dropdown-item {
  color: var(--maxton-ink);
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--maxton-ink);
  background-color: rgba(138, 164, 207, 0.16);
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--maxton-ink);
  background-color: rgba(138, 164, 207, 0.24);
}

.dropdown-divider {
  border-top-color: var(--maxton-line);
}

:root[data-theme="dark"] .navbar-toggler,
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .table,
:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .badge.text-bg-light,
:root[data-theme="dark"] .btn-outline-secondary,
:root[data-theme="dark"] .btn-link,
:root[data-theme="dark"] .footer,
:root[data-theme="dark"] .dropdown-menu,
:root[data-theme="dark"] .modal-content {
  color: var(--maxton-ink);
}

:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .form-text {
  color: var(--maxton-ink-soft) !important;
}

:root[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.9;
}

:root[data-theme="dark"] .btn-close:hover,
:root[data-theme="dark"] .btn-close:focus {
  opacity: 1;
}

:root[data-theme="dark"] .maxton-theme-toggle {
  color: #24364a !important;
  border-color: rgba(157, 184, 227, 0.95) !important;
  background-color: rgba(246, 249, 253, 0.98) !important;
}

:root[data-theme="dark"] .maxton-theme-toggle:hover,
:root[data-theme="dark"] .maxton-theme-toggle:focus {
  color: #24364a !important;
  border-color: #b3c5df !important;
  background-color: #eef4fa !important;
}

.maxton-theme-toggle .theme-toggle-label {
  color: inherit;
}

:root[data-theme="dark"] .dropdown-menu {
  background: linear-gradient(180deg, rgba(27, 37, 49, 0.98), rgba(21, 29, 39, 0.98));
  border-color: rgba(109, 133, 171, 0.32);
  color: var(--maxton-ink);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .dropdown-item {
  color: #e7eef9;
}

:root[data-theme="dark"] .dropdown-item:hover,
:root[data-theme="dark"] .dropdown-item:focus {
  color: #ffffff;
  background-color: rgba(148, 175, 221, 0.24);
}

:root[data-theme="dark"] .dropdown-item.active,
:root[data-theme="dark"] .dropdown-item:active {
  color: #ffffff;
  background-color: rgba(148, 175, 221, 0.34);
}

:root[data-theme="dark"] .dropdown-divider {
  border-top-color: rgba(109, 133, 171, 0.28);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] .h1,
:root[data-theme="dark"] .h2,
:root[data-theme="dark"] .h3,
:root[data-theme="dark"] .h4,
:root[data-theme="dark"] .h5,
:root[data-theme="dark"] .h6,
:root[data-theme="dark"] .display-4,
:root[data-theme="dark"] .lead,
:root[data-theme="dark"] .card-body,
:root[data-theme="dark"] .card-body p,
:root[data-theme="dark"] .card-body strong,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .form-check-label,
:root[data-theme="dark"] .form-check-input,
:root[data-theme="dark"] .table,
:root[data-theme="dark"] .table td,
:root[data-theme="dark"] .table th,
:root[data-theme="dark"] .table a:not(.btn),
:root[data-theme="dark"] .badge,
:root[data-theme="dark"] .btn-link,
:root[data-theme="dark"] .footer a {
  color: var(--maxton-ink);
}

:root[data-theme="dark"] .badge.text-bg-light {
  background-color: #edf3fb !important;
  color: #17202d !important;
}

:root[data-theme="dark"] .table > :not(caption) > * > * {
  color: var(--maxton-ink);
  background-color: transparent;
}

:root[data-theme="dark"] .table thead th {
  background:
    linear-gradient(180deg, var(--maxton-table-head-top) 0%, var(--maxton-table-head-bottom) 100%);
  color: var(--maxton-table-head-ink);
  box-shadow:
    inset 0 1px 0 var(--maxton-table-head-gloss),
    inset 0 -1px 0 var(--maxton-table-head-shadow);
}

:root[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  color: var(--maxton-ink);
}

:root[data-theme="dark"] .btn-outline-secondary {
  color: #24364a !important;
  border-color: #5d6f88;
  background-color: rgba(255, 255, 255, 0.88);
}

:root[data-theme="dark"] .btn-outline-secondary:hover,
:root[data-theme="dark"] .btn-outline-secondary:focus {
  background-color: #f2f6fb;
  border-color: #6d83a3;
  color: #24364a !important;
}

:root[data-theme="dark"] .btn-outline-secondary:disabled,
:root[data-theme="dark"] .btn-outline-secondary.disabled {
  opacity: 1;
  color: #7d94ad;
  border-color: #8ea5c8;
  background-color: rgba(247, 249, 252, 0.96);
}

:root[data-theme="dark"] .btn-success {
  background: linear-gradient(180deg, #5e8768 0%, #4f7559 100%);
  border-color: #699275;
  color: #f3fbf5;
}

:root[data-theme="dark"] .btn-success:hover,
:root[data-theme="dark"] .btn-success:focus {
  background: linear-gradient(180deg, #6a9274 0%, #597f63 100%);
  border-color: #7ca988;
  color: #ffffff;
}

:root[data-theme="dark"] .btn-outline-danger {
  color: #24364a !important;
  border-color: #8d5a5a;
  background-color: rgba(255, 255, 255, 0.88);
}

:root[data-theme="dark"] .btn-outline-danger:hover,
:root[data-theme="dark"] .btn-outline-danger:focus {
  color: #24364a !important;
  border-color: #b06a6a;
  background-color: #f8ecec;
}

:root[data-theme="dark"] .btn-outline-primary {
  color: #24364a !important;
  border-color: #7c97c5;
  background-color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .btn-outline-primary:hover,
:root[data-theme="dark"] .btn-outline-primary:focus {
  color: #24364a !important;
  background-color: #eef4fa;
  border-color: #9db8e3;
}

:root[data-theme="dark"] .btn-outline-primary:disabled,
:root[data-theme="dark"] .btn-outline-primary.disabled {
  opacity: 1;
  color: #7d94ad;
  border-color: #607896;
  background-color: rgba(247, 249, 252, 0.96);
  box-shadow: none;
}

:root[data-theme="dark"] .btn-primary {
  background-color: #9db8e3;
  border-color: #9db8e3;
  color: #0b1320;
}

:root[data-theme="dark"] .btn-primary:hover,
:root[data-theme="dark"] .btn-primary:focus {
  background-color: #aec5ea;
  border-color: #aec5ea;
  color: #09111d;
}

:root[data-theme="dark"] .btn-primary:disabled,
:root[data-theme="dark"] .btn-primary.disabled {
  opacity: 1;
  background: linear-gradient(180deg, #5a6574 0%, #4c5664 100%);
  border-color: #697385;
  color: #d5deea;
  box-shadow: none;
}

:root[data-theme="dark"] .btn-success:disabled,
:root[data-theme="dark"] .btn-success.disabled {
  opacity: 1;
  background: linear-gradient(180deg, #55615b 0%, #49534e 100%);
  border-color: #65736c;
  color: #d9e4db;
  box-shadow: none;
}

:root[data-theme="dark"] .btn-danger:disabled,
:root[data-theme="dark"] .btn-danger.disabled {
  opacity: 1;
  background: linear-gradient(180deg, #654949 0%, #573f3f 100%);
  border-color: #7d5c5c;
  color: #f1d4d4;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .landing-hero__shell {
    padding: 1.6rem;
  }

  .landing-title {
    font-size: 2.6rem;
    letter-spacing: 0.02em;
  }

  .landing-actions {
    flex-direction: column;
  }

  .landing-actions .btn {
    width: 100%;
  }
}

.card {
  border: 1px solid var(--maxton-line);
  border-radius: 0.95rem;
  background-color: var(--maxton-surface);
}

.card,
.alert,
.table-responsive {
  box-shadow: 0 8px 18px var(--maxton-shadow);
}

.alert-success {
  background-color: var(--maxton-alert-success-bg);
  border-color: var(--maxton-alert-success-border);
  color: var(--maxton-alert-success-ink);
}

.alert-info {
  background-color: var(--maxton-alert-info-bg);
  border-color: var(--maxton-alert-info-border);
  color: var(--maxton-alert-info-ink);
}

.alert-sandbox {
  background-color: var(--maxton-alert-sandbox-bg);
  border-color: var(--maxton-alert-sandbox-border);
  color: var(--maxton-alert-sandbox-ink);
}

.alert-secondary {
  background-color: var(--maxton-alert-secondary-bg);
  border-color: var(--maxton-alert-secondary-border);
  color: var(--maxton-alert-secondary-ink);
}

.alert-warning {
  background-color: var(--maxton-alert-warning-bg);
  border-color: var(--maxton-alert-warning-border);
  color: var(--maxton-alert-warning-ink);
}

.alert-danger {
  background-color: var(--maxton-alert-danger-bg);
  border-color: var(--maxton-alert-danger-border);
  color: var(--maxton-alert-danger-ink);
}

.alert .alert-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.alert .alert-link:hover,
.alert .alert-link:focus {
  color: inherit;
}

.hmrc-obligations-table {
  table-layout: fixed;
}

.hmrc-obligations-table th:nth-child(1),
.hmrc-obligations-table td:nth-child(1) {
  width: 38%;
}

.hmrc-obligations-table th:nth-child(2),
.hmrc-obligations-table td:nth-child(2),
.hmrc-obligations-table th:nth-child(3),
.hmrc-obligations-table td:nth-child(3),
.hmrc-obligations-table th:nth-child(4),
.hmrc-obligations-table td:nth-child(4) {
  width: 20.66%;
}

.hmrc-company-card {
  min-width: min(100%, 22rem);
}

.hmrc-company-meta {
  display: grid;
  gap: 0.75rem;
}

.hmrc-workflow-actions {
  padding: 0.95rem 1rem;
  border: 1px solid var(--maxton-line);
  border-radius: 0.95rem;
  background: rgba(138, 164, 207, 0.05);
}

.hmrc-next-obligation-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--maxton-line);
  border-left: 5px solid var(--maxton-brand-deep);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

.hmrc-next-obligation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.25rem;
}

.hmrc-next-obligation-grid dt {
  color: var(--maxton-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hmrc-next-obligation-grid dd {
  margin-bottom: 0;
  margin-top: 0.15rem;
  color: var(--maxton-ink);
  font-weight: 600;
}

.hmrc-status-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.hmrc-status-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(138, 164, 207, 0.24);
  background: rgba(138, 164, 207, 0.08);
  color: var(--maxton-ink-soft) !important;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.1;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

.hmrc-status-pill--success {
  border-color: rgba(46, 160, 67, 0.22);
  background: rgba(46, 160, 67, 0.08);
  color: #3f6b48 !important;
}

.hmrc-status-pill--open {
  border-color: rgba(111, 143, 190, 0.28);
  background: rgba(111, 143, 190, 0.1);
  color: var(--maxton-ink-soft) !important;
}

.hmrc-status-pill--neutral {
  border-color: rgba(138, 164, 207, 0.22);
  background: rgba(138, 164, 207, 0.06);
  color: var(--maxton-muted) !important;
}

.hmrc-status-pill--overdue {
  border-color: rgba(194, 103, 103, 0.38);
  background: rgba(194, 103, 103, 0.12);
  color: var(--maxton-alert-danger-ink) !important;
}

.hmrc-obligation-row--overdue td {
  background: rgba(194, 103, 103, 0.03);
}

:root[data-theme="dark"] .hmrc-workflow-actions {
  background: rgba(157, 184, 227, 0.08);
}

:root[data-theme="dark"] .hmrc-next-obligation-card {
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

:root[data-theme="dark"] .hmrc-status-pill {
  border-color: rgba(157, 184, 227, 0.22);
  background: rgba(157, 184, 227, 0.1);
  color: var(--maxton-ink-soft) !important;
}

:root[data-theme="dark"] .hmrc-status-pill--success {
  border-color: rgba(80, 145, 94, 0.28);
  background: rgba(80, 145, 94, 0.12);
  color: #cfe2d4 !important;
}

:root[data-theme="dark"] .hmrc-status-pill--open {
  border-color: rgba(157, 184, 227, 0.24);
  background: rgba(157, 184, 227, 0.12);
}

:root[data-theme="dark"] .hmrc-status-pill--neutral {
  border-color: rgba(157, 184, 227, 0.18);
  background: rgba(157, 184, 227, 0.08);
}

:root[data-theme="dark"] .hmrc-status-pill--overdue {
  border-color: rgba(224, 137, 137, 0.36);
  background: rgba(224, 137, 137, 0.14);
  color: #f1c2c2 !important;
}

.quarterly-update-sidecard {
  border: 1px solid var(--maxton-line);
  border-radius: 0.95rem;
  padding: 1rem 1.1rem;
  background: rgba(138, 164, 207, 0.08);
}

:root[data-theme="dark"] .maxton-confirmation-summary {
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

.maxton-confirmation-summary {
  border: 1px solid var(--maxton-line);
  border-radius: 0.9rem;
  padding: 1rem 1rem 0.9rem;
  color: var(--maxton-ink);
  background: linear-gradient(180deg, rgba(241, 245, 250, 0.98), rgba(233, 239, 246, 0.98));
}

.maxton-confirmation-summary ul {
  color: var(--maxton-ink);
}

.maxton-confirmation-summary li {
  color: var(--maxton-ink);
}

:root[data-theme="dark"] .quarterly-update-sidecard {
  background: rgba(157, 184, 227, 0.08);
}

.badge.text-bg-success {
  background-color: #dfece4 !important;
  color: #214936 !important;
  border: 1px solid #8fb39d;
  border-radius: 0.7rem;
}

:root[data-theme="dark"] .badge.text-bg-success {
  background-color: #587f69 !important;
  color: #f1f8f3 !important;
  border-color: #6f987d;
}

.badge.text-bg-danger {
  background-color: #f0dada !important;
  color: #7b3f3f !important;
  border-radius: 0.7rem;
}

.badge.text-bg-info {
  background-color: #dce9f6 !important;
  color: #29415d !important;
  border-radius: 0.7rem;
}

.badge.text-bg-secondary {
  background-color: #e2e9f1 !important;
  color: #43556a !important;
  border-radius: 0.7rem;
}

.year-end-step {
  overflow: hidden;
}

.year-end-step > summary {
  cursor: pointer;
  list-style: none;
}

.year-end-step > summary::-webkit-details-marker {
  display: none;
}

.year-end-step > summary::marker {
  content: "";
}

.year-end-step[open] > summary {
  border-bottom: 1px solid var(--maxton-line);
}

.tax-calc-submit-button {
  min-width: 13.5rem;
}

.tax-calc-submit-button--busy {
  cursor: wait;
}

.tax-calc-wait-panel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(111, 143, 190, 0.34);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(111, 143, 190, 0.11), rgba(111, 143, 190, 0.05)),
    var(--maxton-surface-strong);
  color: var(--maxton-ink);
}

.tax-calc-wait-panel__pulse {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 0.95rem;
  border-radius: 999px;
  background: var(--maxton-brand-deep);
  box-shadow: 0 0 0 0 rgba(111, 143, 190, 0.42);
  animation: tax-calc-wait-pulse 1.45s ease-out infinite;
}

.tax-calc-result-metric {
  border: 1px solid rgba(138, 164, 207, 0.18);
  background:
    linear-gradient(180deg, rgba(138, 164, 207, 0.07), rgba(138, 164, 207, 0.03)),
    var(--maxton-surface-strong);
  box-shadow: 0 14px 28px var(--maxton-shadow);
}

@keyframes tax-calc-wait-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 143, 190, 0.42);
  }

  70% {
    box-shadow: 0 0 0 0.75rem rgba(111, 143, 190, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(111, 143, 190, 0);
  }
}

:root[data-theme="dark"] .tax-calc-wait-panel {
  border-color: rgba(157, 184, 227, 0.3);
  background:
    linear-gradient(180deg, rgba(157, 184, 227, 0.14), rgba(157, 184, 227, 0.06)),
    var(--maxton-surface-strong);
}

:root[data-theme="dark"] .tax-calc-wait-panel__pulse {
  background: var(--maxton-brand);
  box-shadow: 0 0 0 0 rgba(157, 184, 227, 0.38);
}

:root[data-theme="dark"] .tax-calc-result-metric {
  border-color: rgba(157, 184, 227, 0.2);
  background:
    linear-gradient(180deg, rgba(157, 184, 227, 0.1), rgba(157, 184, 227, 0.04)),
    var(--maxton-surface-strong);
}

.year-end-guidance-panel {
  background-color: var(--maxton-surface-strong);
}

:root[data-theme="dark"] .year-end-guidance-panel {
  border-color: rgba(157, 184, 227, 0.2);
}

.year-end-client-statement-panel {
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
  color: var(--maxton-ink);
}

:root[data-theme="dark"] .year-end-client-statement-panel {
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
  color: var(--maxton-ink);
}

.year-end-client-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.year-end-client-section-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

.year-end-client-section-card {
  border: 1px solid var(--maxton-line);
  border-radius: 1rem;
  padding: 0.75rem 0.875rem;
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

.year-end-client-section-card--compact {
  padding: 0.6rem 0.75rem;
  border-radius: 0.85rem;
}

:root[data-theme="dark"] .year-end-client-section-card {
  border-color: rgba(157, 184, 227, 0.18);
  background: linear-gradient(180deg, var(--maxton-surface-strong), var(--maxton-surface));
}

[data-section-card][data-section-status-value="Complete"] {
  border-color: rgba(72, 163, 104, 0.48) !important;
  box-shadow:
    0 0 0 1px rgba(72, 163, 104, 0.16),
    0 0 0 4px rgba(72, 163, 104, 0.08),
    0 10px 28px rgba(72, 163, 104, 0.12);
}

:root[data-theme="dark"] [data-section-card][data-section-status-value="Complete"] {
  border-color: rgba(105, 190, 126, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(105, 190, 126, 0.2),
    0 0 0 4px rgba(105, 190, 126, 0.1),
    0 10px 30px rgba(29, 109, 56, 0.35);
}

.year-end-private-income-section-card[data-section-status-value="Complete"] {
  border-color: rgba(72, 163, 104, 0.28) !important;
  box-shadow:
    0 0 0 1px rgba(72, 163, 104, 0.08),
    0 6px 16px rgba(72, 163, 104, 0.06);
}

:root[data-theme="dark"] .year-end-private-income-section-card[data-section-status-value="Complete"] {
  border-color: rgba(105, 190, 126, 0.32) !important;
  box-shadow:
    0 0 0 1px rgba(105, 190, 126, 0.1),
    0 6px 18px rgba(29, 109, 56, 0.2);
}

.section-status-segmented .btn {
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  line-height: 1.15;
  font-weight: 500;
}

.section-status-segmented .btn.btn-primary {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 6px 16px rgba(111, 145, 195, 0.14);
}

:root[data-theme="dark"] .section-status-segmented .btn.btn-primary {
  box-shadow:
    0 0 0 1px rgba(16, 29, 41, 0.3) inset,
    0 6px 16px rgba(16, 29, 41, 0.35);
}

.section-status-segmented .btn:focus-visible {
  z-index: 3;
}

.year-end-inline-add-item-slot {
  width: 100%;
}

.year-end-inline-add-item-panel {
  width: 100%;
  box-shadow: 0 14px 30px var(--maxton-shadow);
}

.hmrc-email-import-body {
  background-color: var(--maxton-surface-strong);
  color: var(--maxton-ink);
  border-color: var(--maxton-line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

:root[data-theme="dark"] .hmrc-email-import-body {
  background:
    linear-gradient(180deg, rgba(157, 184, 227, 0.06), rgba(157, 184, 227, 0.03)),
    var(--maxton-surface-strong);
  border-color: rgba(157, 184, 227, 0.18);
  color: var(--maxton-ink);
}

.review-confidence-badge.text-bg-info {
  background-color: #d7e3f3 !important;
  color: #29415d !important;
}

.review-confidence-badge.text-bg-secondary {
  background-color: #e2e9f1 !important;
  color: #43556a !important;
}

.review-status-badge.text-bg-warning {
  background-color: #f3e0a8 !important;
  color: #624f15 !important;
}

.table {
  color: var(--maxton-ink);
  border-collapse: separate;
  border-spacing: 0;
  --bs-table-border-color: var(--maxton-line);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: var(--maxton-table-stripe);
}

.table thead th {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--maxton-table-head-border);
  background:
    linear-gradient(180deg, var(--maxton-table-head-top) 0%, var(--maxton-table-head-bottom) 100%);
  color: var(--maxton-table-head-ink);
  box-shadow:
    inset 0 1px 0 var(--maxton-table-head-gloss),
    inset 0 -1px 0 var(--maxton-table-head-shadow);
}

.table thead th:first-child {
  border-top-left-radius: 0.95rem;
  padding-left: 1.1rem;
}

.table thead th:last-child {
  border-top-right-radius: 0.95rem;
  padding-right: 1.1rem;
}

.table tbody td:first-child {
  padding-left: 1.1rem;
}

.table-responsive,
.form-control,
.form-select,
.dropdown-menu,
.modal-content {
  background-color: var(--maxton-surface);
}

.table-responsive {
  border: 1px solid var(--maxton-line);
  border-radius: 0.95rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.accountant-portal-clients-table {
  table-layout: fixed;
}

.accountant-portal-clients-table th:nth-child(1),
.accountant-portal-clients-table td:nth-child(1) {
  width: 28%;
}

.accountant-portal-clients-table th:nth-child(2),
.accountant-portal-clients-table td:nth-child(2) {
  width: 30%;
}

.accountant-portal-clients-table th:nth-child(3),
.accountant-portal-clients-table td:nth-child(3) {
  width: 16%;
}

.accountant-portal-clients-table th:nth-child(4),
.accountant-portal-clients-table td:nth-child(4),
.accountant-portal-clients-table th:nth-child(5),
.accountant-portal-clients-table td:nth-child(5) {
  width: 11%;
}

.accountant-portal-clients-table th:nth-child(6),
.accountant-portal-clients-table td:nth-child(6) {
  width: 12%;
}

.accountant-current-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.accountant-status-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: 0.38rem 0.78rem;
  min-height: 2rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.accountant-status-detail {
  color: var(--maxton-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.accountant-business-status__warning {
  color: var(--maxton-alert-warning-ink);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.accountant-business-status__muted {
  color: var(--maxton-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.accountant-attention-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.95rem;
}

.accountant-attention-card--compact {
  border-radius: 0.9rem;
}

.accountant-attention-card__meta {
  min-width: min(13.5rem, 100%);
}

.accountant-attention-card__details {
  min-width: 0;
}

.accountant-attention-card__actions {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.accountant-attention-card__actions .btn,
.accountant-attention-card__actions form {
  width: 100%;
}

.accountant-attention-card__detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.45rem 0.9rem;
}

@media (min-width: 992px) {
  .accountant-attention-card__actions {
    align-self: center;
  }

  .accountant-attention-card__actions .btn,
  .accountant-attention-card__actions form {
    width: auto;
  }
}

@media (max-width: 991.98px) {
  .accountant-attention-card__detail-grid {
    grid-template-columns: 1fr;
  }
}

.accountant-attention-card__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.clarification-summary-list {
  display: grid;
  gap: 0.75rem;
}

.clarification-summary-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--maxton-line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
}

.clarification-summary-list__label {
  color: var(--maxton-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.clarification-summary-list__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.clarification-summary-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
}

.clarification-summary-chip--warning {
  color: var(--maxton-alert-warning-ink);
  background: rgba(255, 232, 175, 0.7);
  border: 1px solid rgba(210, 165, 52, 0.4);
}

.clarification-summary-chip--neutral {
  color: var(--maxton-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--maxton-line);
}

.year-end-review-status {
  display: grid;
  gap: 0.25rem;
}

.dashboard-clarification-card {
  border-left: 4px solid var(--maxton-alert-warning);
}

:root[data-theme="dark"] .dashboard-clarification-card {
  border-left-color: var(--maxton-alert-warning);
}

.accountant-attention-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0;
}

.accountant-attention-card__title {
  min-width: 0;
}

.accountant-attention-card__status-row {
  display: flex;
  align-items: center;
  margin-top: -0.2rem;
}

.accountant-attention-card__badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.36rem 0.68rem;
}

.accountant-attention-card__badge.text-bg-success {
  color: #24513b !important;
  background: rgba(94, 148, 108, 0.16) !important;
  border: 1px solid rgba(94, 148, 108, 0.28);
}

.accountant-attention-card__badge.text-bg-warning {
  color: var(--maxton-alert-warning-ink) !important;
  background: rgba(255, 244, 211, 0.72) !important;
  border: 1px solid rgba(210, 165, 52, 0.32);
}

.accountant-attention-card__body {
  display: grid;
  gap: 0.72rem;
  flex: 1 1 auto;
}

.accountant-attention-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.accountant-attention-card__footer .btn {
  white-space: nowrap;
}

.accountant-attention-card__clarification-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.48rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.05rem;
  padding: 0.28rem 0.52rem;
  border: 1px solid rgba(210, 165, 52, 0.28);
  border-left-width: 2px;
  border-radius: 0.65rem;
  background: rgba(255, 248, 229, 0.52);
  color: var(--maxton-ink);
  text-decoration: none;
}

.accountant-attention-card__clarification-row:hover,
.accountant-attention-card__clarification-row:focus-visible {
  background: rgba(255, 243, 210, 0.72);
  color: var(--maxton-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16rem;
}

:root[data-theme="dark"] .accountant-attention-card__clarification-row {
  background: rgba(210, 165, 52, 0.06);
  border-color: rgba(210, 165, 52, 0.24);
  border-left-color: rgba(210, 165, 52, 0.58);
}

:root[data-theme="dark"] .accountant-attention-card__clarification-row:hover,
:root[data-theme="dark"] .accountant-attention-card__clarification-row:focus-visible {
  background: rgba(210, 165, 52, 0.13);
}

.accountant-attention-card__clarification-dot {
  flex: 0 0 auto;
  width: 0.48rem;
  height: 0.48rem;
  margin-top: 0.26rem;
  border-radius: 999px;
  background: #d2a534;
  box-shadow: 0 0 0 3px rgba(210, 165, 52, 0.16);
}

.accountant-attention-card__clarification-copy {
  display: grid;
  gap: 0.04rem;
}

.accountant-attention-card__clarification-label {
  color: var(--maxton-alert-warning-ink);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.accountant-attention-card__clarification-text {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
}

:root[data-theme="dark"] .accountant-attention-card__clarification-label {
  color: #f0d48a;
}

.accountant-attention-card__status-row .text-bg-warning {
  color: var(--maxton-alert-warning-ink) !important;
  background: rgba(255, 244, 211, 0.68) !important;
  border: 1px solid rgba(210, 165, 52, 0.28);
}

:root[data-theme="dark"] .accountant-attention-card__status-row .text-bg-warning {
  color: #f0d48a !important;
  background: rgba(210, 165, 52, 0.1) !important;
  border-color: rgba(210, 165, 52, 0.24);
}

:root[data-theme="dark"] .accountant-attention-card__badge.text-bg-warning {
  color: #f0d48a !important;
  background: rgba(210, 165, 52, 0.12) !important;
  border-color: rgba(210, 165, 52, 0.26);
}

.accountant-attention-card__clarification-row:focus-visible {
  outline: 2px solid rgba(67, 112, 190, 0.35);
  outline-offset: 2px;
}

.maxton-account-menu {
  min-width: 13rem;
  border: 1px solid var(--maxton-line);
  box-shadow: 0 18px 34px rgba(25, 39, 62, 0.16);
  z-index: 1040;
}

.navbar .dropdown-menu {
  z-index: 1040;
}

.maxton-account-menu .dropdown-item {
  color: #24364a;
  font-weight: 500;
}

.maxton-account-menu .dropdown-item:hover,
.maxton-account-menu .dropdown-item:focus {
  color: #162131;
  background-color: #eaf0f7;
}

.maxton-account-menu .dropdown-item:active,
.maxton-account-menu .dropdown-item.active {
  color: #162131;
  background-color: #dfe8f4;
}

.maxton-account-menu .dropdown-divider {
  border-top-color: var(--maxton-line);
}

.form-control,
.form-select {
  color: var(--maxton-ink);
  border-color: var(--maxton-line);
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select {
  background-color: #1a2330;
  color: var(--maxton-ink);
}

:root[data-theme="dark"] .form-control.maxton-readonly-field {
  background-color: #202b39;
  color: var(--maxton-ink-soft);
}

:root[data-theme="dark"] .form-control.maxton-readonly-field::selection {
  background-color: rgba(157, 184, 227, 0.28);
}

.hmrc-monitor-draft-image {
  background: var(--maxton-surface);
  border-color: var(--maxton-line);
}

.hmrc-monitor-draft-eyebrow {
  color: var(--maxton-ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.hmrc-monitor-draft-editor {
  background-color: var(--maxton-surface);
  color: var(--maxton-ink);
}

:root[data-theme="dark"] .hmrc-monitor-draft-image {
  background: #1a2330;
  border-color: var(--maxton-line);
}

:root[data-theme="dark"] .hmrc-monitor-draft-image .fw-semibold,
:root[data-theme="dark"] .hmrc-monitor-draft-image .small,
:root[data-theme="dark"] .hmrc-monitor-draft-image .btn {
  color: var(--maxton-ink);
}

:root[data-theme="dark"] .hmrc-monitor-draft-image .btn-outline-secondary {
  color: var(--maxton-ink);
  border-color: rgba(157, 184, 227, 0.42);
}

:root[data-theme="dark"] .hmrc-monitor-draft-image .btn-outline-secondary:hover,
:root[data-theme="dark"] .hmrc-monitor-draft-image .btn-outline-secondary:focus {
  color: #ffffff;
}

:root[data-theme="dark"] .hmrc-monitor-draft-editor {
  background-color: #202b39;
  color: var(--maxton-ink);
}

.maxton-monitor-snippet {
  white-space: pre-wrap;
  word-break: break-word;
  background-color: var(--maxton-soft);
  color: var(--maxton-ink);
  border-color: var(--maxton-line);
  font-family: var(--bs-font-monospace);
}

.maxton-monitor-snippet::selection {
  background-color: rgba(111, 145, 195, 0.24);
}

:root[data-theme="dark"] .maxton-monitor-snippet {
  background-color: #131a23;
  color: var(--maxton-ink);
}

:root[data-theme="dark"] .maxton-account-menu {
  background: linear-gradient(180deg, rgba(27, 37, 49, 0.98), rgba(21, 29, 39, 0.98));
  border-color: rgba(109, 133, 171, 0.32);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .maxton-account-menu .dropdown-item {
  color: #e7eef9;
}

:root[data-theme="dark"] .maxton-account-menu .dropdown-item:hover,
:root[data-theme="dark"] .maxton-account-menu .dropdown-item:focus {
  color: #ffffff;
  background-color: rgba(148, 175, 221, 0.24);
}

:root[data-theme="dark"] .maxton-account-menu .dropdown-item:active,
:root[data-theme="dark"] .maxton-account-menu .dropdown-item.active {
  color: #ffffff;
  background-color: rgba(148, 175, 221, 0.34);
}

:root[data-theme="dark"] .maxton-account-menu .dropdown-divider {
  border-top-color: rgba(109, 133, 171, 0.28);
}

:root[data-theme="dark"] .form-control:disabled,
:root[data-theme="dark"] .form-select:disabled {
  background-color: #202b39;
  color: var(--maxton-ink-soft);
}

.form-control::placeholder {
  color: var(--maxton-muted);
}

.maxton-file-input {
  color: var(--maxton-ink);
  background-color: var(--maxton-surface-strong);
  border-color: var(--maxton-line);
}

.maxton-file-input::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #bed1ee 0%, #a6bee4 100%);
  color: #111b2c;
  font-weight: 600;
}

.maxton-file-input:hover::file-selector-button,
.maxton-file-input:focus::file-selector-button {
  background: linear-gradient(180deg, #cbdaf2 0%, #b1c7e8 100%);
}

:root[data-theme="dark"] .maxton-file-input {
  background-color: #1a2330;
  color: var(--maxton-ink);
}

:root[data-theme="dark"] .maxton-file-input::file-selector-button {
  background: linear-gradient(180deg, #9db8e3 0%, #8eaedc 100%);
  color: #0b1320;
}

:root[data-theme="dark"] .maxton-file-input:hover::file-selector-button,
:root[data-theme="dark"] .maxton-file-input:focus::file-selector-button {
  background: linear-gradient(180deg, #aec5ea 0%, #9db8e3 100%);
}

.footer {
  background: transparent;
}

.filing-receipt-sheet {
  border: 1px solid var(--maxton-line);
  border-top: 6px solid var(--maxton-brand-deep);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(138, 164, 207, 0.10), rgba(255, 255, 255, 0));
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.filing-receipt-masthead {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--maxton-line);
}

.filing-receipt-brand {
  color: var(--maxton-brand-deep);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.filing-receipt-docref {
  border-radius: 0.85rem;
  border: 1px solid rgba(138, 164, 207, 0.28);
  background: rgba(138, 164, 207, 0.08);
  padding: 0.9rem 1rem;
}

.filing-receipt-panel {
  border: 1px solid var(--maxton-line);
  border-radius: 1rem;
}

.filing-receipt-block {
  break-inside: avoid;
  page-break-inside: avoid;
}

@media print {
  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 10.5pt;
  }

  .maxton-navbar,
  .footer,
  .filing-receipt-actions,
  .cookie-banner {
    display: none !important;
  }

  .filing-receipt {
    padding-top: 0 !important;
  }

  .filing-receipt-sheet {
    border: 1px solid #8496ad !important;
    border-top: 6px solid #2f4f79 !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 1rem 1.1rem !important;
    margin-bottom: 1rem !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .filing-receipt-masthead {
    padding-bottom: 0.9rem !important;
    margin-bottom: 0.9rem !important;
    border-bottom: 1px solid #c2cfde !important;
  }

  .filing-receipt-brand {
    color: #1b2e47 !important;
  }

  .filing-receipt-docref {
    border: 1px solid #c2cfde !important;
    background: #f7f9fc !important;
  }

  .card,
  .alert,
  .table-responsive {
    box-shadow: none !important;
  }

  .filing-receipt-panel {
    border: 1px solid #c2cfde !important;
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
  }

  .filing-receipt-block {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .table thead {
    display: table-header-group;
  }

  .table tfoot {
    display: table-footer-group;
  }

  .table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.border,
.border-top,
.border-bottom {
  border-color: var(--maxton-line) !important;
}

.legal-page .card {
  max-width: 72rem;
}

.legal-page h2 {
  margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page li {
  line-height: 1.75;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  width: min(42rem, calc(100vw - 2rem));
  background-color: var(--maxton-surface);
}

.cookie-banner__actions {
  min-width: 18rem;
}

@media (max-width: 767.98px) {
  .cookie-banner {
    left: 1rem;
    width: auto;
  }

  .cookie-banner__actions {
    min-width: 0;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.boydfood-hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 0 1.5rem;
}

.boydfood-hero__shell {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-radius: 2rem;
  border: 1px solid rgba(82, 95, 119, 0.12);
  background:
    radial-gradient(circle at top left, rgba(255, 208, 138, 0.5), transparent 26%),
    radial-gradient(circle at bottom right, rgba(122, 190, 255, 0.35), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 246, 251, 0.96));
  box-shadow: 0 22px 50px rgba(40, 55, 75, 0.12);
}

.boydfood-hero__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.8;
}

.boydfood-hero__orb--one {
  top: 1rem;
  right: -2rem;
  width: 10rem;
  height: 10rem;
  background: rgba(255, 193, 92, 0.28);
}

.boydfood-hero__orb--two {
  left: -2rem;
  bottom: 0;
  width: 12rem;
  height: 12rem;
  background: rgba(111, 145, 195, 0.2);
}

.boydfood-kicker,
.boydfood-section-label {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(111, 145, 195, 0.14);
  color: var(--maxton-brand-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boydfood-title {
  margin: 0.8rem 0 0;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #24364a;
}

.boydfood-copy {
  max-width: 44rem;
  margin-top: 1rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--maxton-ink-soft);
}

.boydfood-date-card {
  padding: 1.25rem 1.3rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(82, 95, 119, 0.12);
  box-shadow: 0 12px 30px rgba(40, 55, 75, 0.06);
}

.boydfood-date-card__date {
  margin-top: 0.4rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #17253a;
}

.boydfood-date-card__meta {
  margin-top: 0.65rem;
  color: var(--maxton-ink-soft);
}

.boydfood-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.boydfood-help {
  margin-top: 0.8rem;
  color: var(--maxton-ink-soft);
  font-size: 0.95rem;
}

.boydfood-grid {
  padding: 1.5rem 0;
}

.boydfood-menu-card,
.boydfood-favourite-card,
.boydfood-form-shell {
  border-radius: 1.5rem;
  border: 1px solid rgba(82, 95, 119, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.98));
  box-shadow: 0 14px 32px rgba(40, 55, 75, 0.08);
}

.boydfood-menu-card {
  padding: 1.4rem;
}

.boydfood-menu-list {
  display: grid;
  gap: 0.75rem;
}

.boydfood-menu-item {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(82, 95, 119, 0.08);
}

.boydfood-menu-item__day {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maxton-brand-deep);
}

.boydfood-menu-item__title {
  margin-top: 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d2b3f;
}

.boydfood-menu-item__date {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: var(--maxton-ink-soft);
}

.boydfood-empty-state {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(111, 145, 195, 0.08);
  color: var(--maxton-ink-soft);
}

.boydfood-favourite-card {
  height: 100%;
  padding: 1.1rem 1.15rem;
}

.boydfood-favourite-card--inactive {
  opacity: 0.7;
}

.boydfood-favourite-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1d2b3f;
}

.boydfood-favourite-card__notes {
  margin-top: 0.45rem;
  color: var(--maxton-ink-soft);
}

.boydfood-favourite-card__meta {
  margin-top: 0.9rem;
  color: var(--maxton-ink-soft);
  font-size: 0.9rem;
}

.boydfood-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.boydfood-badge--mint {
  background: rgba(119, 184, 143, 0.18);
  color: #27613f;
}

.boydfood-badge--gold {
  background: rgba(224, 176, 86, 0.18);
  color: #7f5d16;
}

.boydfood-badge--active {
  background: rgba(119, 184, 143, 0.18);
  color: #27613f;
}

.boydfood-badge--inactive {
  background: rgba(145, 160, 180, 0.18);
  color: #4f627d;
}

.boydfood-form-shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.6rem;
}
