:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5d6b78;
  --line: #dce4ea;
  --paper: #ffffff;
  --mist: #f5f8f6;
  --teal: #0f9f95;
  --teal-dark: #08766f;
  --coral: #ee6c4d;
  --amber: #f5b84b;
  --green: #51a66a;
  --purple: #7b61a8;
  --rose: #f7d7d2;
  --shadow: 0 20px 55px rgba(23, 33, 43, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

img,
svg {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: .7rem .8rem;
}

input:focus,
select:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(15, 159, 149, .28);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header,
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(220, 228, 234, .8);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #fff;
  letter-spacing: 0;
}

.brand-text {
  font-size: 1.05rem;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.site-menu a {
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  padding: .65rem .85rem;
  text-decoration: none;
}

.site-menu a:hover,
.site-menu a.is-active {
  background: #e7f5f2;
  color: var(--teal-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eaf7ef;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--coral);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(238, 108, 77, .22);
}

.button-primary:hover {
  background: #d95739;
}

.button-soft {
  background: #fff;
  color: var(--ink) !important;
  border-color: var(--line);
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
}

.button-danger {
  background: #b42318;
  color: #fff;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.hero {
  min-height: calc(100svh - 76px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 3rem;
  line-height: .98;
  letter-spacing: 0;
}

.hero-lead,
.page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.16rem;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-actions,
.form-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: 1.4rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 2rem 0 0;
}

.proof-strip div,
.stat-grid div,
.discount-grid div,
.contact-grid div {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.proof-strip dt,
.stat-grid strong {
  font-size: 1.35rem;
  font-weight: 900;
}

.proof-strip dd,
.stat-grid span,
.contact-grid span,
.price-panel span {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.hero-visual {
  background: #fff;
  border: 1px solid #e4ecea;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1deg);
}

.visual-toolbar {
  display: flex;
  gap: .45rem;
  padding: .9rem;
  border-bottom: 1px solid var(--line);
}

.visual-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--coral);
}

.visual-toolbar span:nth-child(2) {
  background: var(--amber);
}

.visual-toolbar span:nth-child(3) {
  background: var(--green);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  padding: 1rem;
}

.metric {
  border-radius: var(--radius);
  padding: 1rem;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 1.15rem;
}

.amber { background: #fff4d8; }
.mint { background: #dff4ed; }
.rose { background: var(--rose); }

.route-line {
  grid-column: 1 / -1;
  height: 150px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 65%, var(--teal) 0 7px, transparent 8px),
    radial-gradient(circle at 78% 28%, var(--coral) 0 7px, transparent 8px),
    linear-gradient(135deg, transparent 43%, rgba(15,159,149,.35) 44% 46%, transparent 47%),
    #f3f7f3;
}

.table-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: .55fr 1fr .6fr;
  gap: .5rem;
  color: var(--muted);
  font-size: .92rem;
}

.section,
.page-hero,
.app-shell,
.login-screen {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.page-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 2rem;
}

.page-hero.compact h1 {
  font-size: 2.65rem;
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid,
.split-list,
.pricing-layout,
.discount-grid,
.contact-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.feature-grid article,
.split-list article,
.price-panel,
.calculator,
.panel-form,
.login-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 35px rgba(23, 33, 43, .06);
}

.icon-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
}

.teal { background: var(--teal); }
.coral { background: var(--coral); }
.green { background: var(--green); }
.purple { background: var(--purple); }

.check-list,
.link-list {
  padding-left: 1.15rem;
}

.price-panel strong {
  display: block;
  margin: .25rem 0;
  font-size: 2rem;
}

.price-panel.accent {
  background: #eaf7ed;
  border-color: #cbe8d3;
}

.calculator {
  grid-column: span 1;
}

.calc-output {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.calc-output span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .55rem;
}

.form-shell {
  padding-top: 1rem;
}

.stacked-form,
.panel-form {
  display: grid;
  gap: 1rem;
}

.stacked-form fieldset,
.panel-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

legend {
  font-weight: 900;
}

label {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-weight: 700;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.login-screen {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 4rem 0;
}

.login-screen h1 {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
}

.login-card {
  display: grid;
  gap: 1rem;
}

.mfa-card {
  gap: 1.15rem;
}

.mfa-setup-block {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(15, 159, 149, .22);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.mfa-qr-wrap {
  display: grid;
  place-items: center;
  width: 168px;
  aspect-ratio: 1;
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.mfa-qr {
  display: block;
  width: 100%;
  height: auto;
}

.mfa-setup-copy,
.mfa-note,
.mfa-secret {
  color: var(--muted);
  font-weight: 700;
}

.mfa-setup-copy p,
.mfa-note {
  margin: 0;
}

.mfa-secret {
  display: grid;
  gap: .25rem;
  margin-top: .85rem;
}

.mfa-secret code {
  color: var(--ink);
  font-size: .95rem;
  white-space: normal;
  word-break: break-word;
}

.legal-text {
  max-width: 860px;
}

.distance-tool {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 1rem;
}

.distance-tool output {
  min-height: 64px;
  min-width: 190px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  padding: 1rem;
}

.app-page {
  background: #f6f7f4;
}

.app-shell {
  padding: 2rem 0 4rem;
}

.app-title {
  margin-bottom: 1.5rem;
}

.app-title h1 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.row-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.stat-grid div {
  background: #fff;
}

.inline-selector {
  margin: 0 0 1rem;
  max-width: 420px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: .85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f0f6f3;
  color: var(--ink);
  font-size: .85rem;
}

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

.messages {
  width: min(1120px, calc(100% - 32px));
  margin: 1rem auto 0;
  display: grid;
  gap: .5rem;
}

.message {
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-weight: 800;
}

.message-success {
  background: #dff4ed;
  color: #14593f;
}

.message-error {
  background: #ffe1dd;
  color: #842314;
}

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

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 940px) {
  .menu-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-menu.is-open {
    display: flex;
  }

  .hero,
  .login-screen {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    transform: none;
  }

  .feature-grid,
  .split-list,
  .pricing-layout,
  .discount-grid,
  .contact-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-band,
  .site-footer,
  .row-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .proof-strip,
  .feature-grid,
  .split-list,
  .pricing-layout,
  .discount-grid,
  .contact-grid,
  .stat-grid,
  .stacked-form fieldset,
  .form-grid,
  .distance-tool {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

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

  .route-line,
  .table-preview {
    grid-column: auto;
  }

  .table-preview {
    grid-template-columns: 1fr;
  }

  .nav-wrap,
  .section,
  .page-hero,
  .app-shell,
  .login-screen,
  .site-footer,
  .messages {
    width: min(100% - 24px, 1120px);
  }
}

/* App refinements */
.public-page .section {
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.hero.public-hero {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.public-hero h1 {
  line-height: 1.14;
  padding-bottom: .08em;
}

.page-hero.public-hero {
  margin-top: 1rem;
  padding: 1.75rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
  padding: .65rem .85rem;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "⌄";
  margin-left: .35rem;
  color: var(--teal-dark);
}

.nav-dropdown[open] summary,
.nav-dropdown summary:hover {
  background: #e7f5f2;
}

.nav-dropdown div {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  z-index: 12;
  min-width: 210px;
  display: grid;
  gap: .15rem;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.button-small {
  width: auto;
  min-height: 38px;
  padding: .55rem .8rem;
  font-size: .92rem;
}

.dashboard-shell {
  padding-top: 1.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.meter-card,
.dashboard-card {
  border: 1px solid rgba(23, 33, 43, .08);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(23, 33, 43, .07);
}

.meter-card {
  display: grid;
  gap: .35rem;
  padding: 1rem;
}

.meter-card span,
.meter-card small {
  color: var(--muted);
  font-weight: 800;
}

.meter-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.dashboard-card {
  background: #fff;
  padding: 1rem;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.panel-title > span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  box-shadow: 0 0 0 6px rgba(15, 159, 149, .12);
}

.panel-title h2 {
  margin: 0;
  font-size: 1.25rem;
}

.admin-actions,
.vehicle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.admin-actions a,
.vehicle-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbf8;
  padding: .45rem .7rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.6fr);
  gap: 1.25rem;
  align-items: start;
}

.form-layout aside {
  position: sticky;
  top: 92px;
  border-left: 5px solid var(--teal);
  padding: .25rem 0 .25rem 1rem;
}

.form-layout aside h2 {
  margin: 0;
  font-size: 1.55rem;
}

.form-layout aside p:last-child {
  color: var(--muted);
}

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

.panel-form .button,
.stacked-form .button {
  justify-self: start;
}

.form-actions .button-danger {
  margin-left: auto;
}

.title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.table-tools,
.table-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .6rem;
  margin: .75rem 0;
}

.table-tools {
  justify-content: space-between;
  margin: .75rem 0 0;
  padding: .6rem;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #fff;
}

.table-tools + .table-wrap {
  border-radius: 0 0 6px 6px;
}

.table-export-group {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-start;
}

.table-tools label {
  width: min(220px, 100%);
}

.table-tools input,
.table-tools select,
.table-filter-row input {
  min-height: 36px;
  padding: .42rem .55rem;
  font-size: .9rem;
}

.table-count,
.table-pager span {
  color: var(--muted);
  font-weight: 800;
}

.table-wrap {
  border-radius: 6px;
}

table {
  min-width: 680px;
  font-size: .9rem;
}

.data-table {
  min-width: var(--table-min-width, 680px);
}

th,
td {
  padding: .48rem .55rem;
  white-space: nowrap;
}

td:nth-child(3),
td:nth-child(4) {
  white-space: normal;
}

th.num,
td.num {
  text-align: right;
}

.sortable {
  cursor: pointer;
}

.sortable::after {
  content: none;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .25rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.table-sort-indicator {
  color: var(--muted);
  font-size: .8rem;
}

.table-filter-row th {
  background: #fff;
  padding: .35rem;
}

.range-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 43, .42);
}

.modal-panel {
  position: relative;
  width: min(620px, calc(100% - 32px));
  margin: 10vh auto 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-head h2 {
  margin: 0;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.print-clone {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body.print-active > :not(.print-clone) {
    display: none !important;
  }

  body.print-active .print-clone {
    display: block !important;
    padding: 0;
  }

  .print-report-title {
    margin: 0 0 .35rem;
    font-size: 18pt;
  }

  .print-report-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 9pt;
  }

  .print-report-table th,
  .print-report-table td {
    border: 0;
    padding: 5pt;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
    word-break: break-word;
  }

  .print-report-table th.num,
  .print-report-table td.num {
    text-align: right;
  }

  .print-report-table th {
    background: #f0f6f3 !important;
  }
}

@media (max-width: 940px) {
  .dashboard-grid,
  .dashboard-columns,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-layout aside {
    position: static;
  }

  .nav-dropdown div {
    position: static;
    box-shadow: none;
    margin-top: .35rem;
  }
}

@media (max-width: 640px) {
  .grouped-form fieldset,
  .range-filter {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Public marketing polish */
.public-page {
  background:
    linear-gradient(180deg, #fffaf3 0, #f4fbf7 38%, #f7f4ff 100%);
}

.public-page main {
  overflow: hidden;
}

.public-page .nav-wrap {
  min-height: 68px;
}

.hero.public-hero {
  min-height: auto;
  padding: 1.65rem 0 3rem;
}

.page-hero.public-hero {
  position: relative;
  margin-top: 1.4rem;
  padding: 2.2rem;
  border: 1px solid rgba(15, 159, 149, .18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 159, 149, .12), rgba(245, 184, 75, .12) 48%, rgba(238, 108, 77, .12)),
    #fff;
  box-shadow: 0 18px 48px rgba(23, 33, 43, .08);
}

.page-hero.public-hero::before,
.public-band::before,
.tint-card::before,
.shine-card::before,
.public-card::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-hero.public-hero::before {
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--coral), var(--purple));
}

.hero h1,
.page-hero h1,
.page-hero.compact h1,
.login-screen h1 {
  font-size: 3.15rem;
  line-height: 1.04;
  color: var(--ink);
}

.public-hero h1 {
  max-width: 850px;
  background: linear-gradient(90deg, #0a756f, #7b4fb5 52%, #c84832);
  -webkit-background-clip: text;
  background-clip: text;
  color: #0a756f;
}

@supports (-webkit-background-clip: text) {
  .public-hero h1 {
    color: transparent;
  }
}

.public-hero .hero-lead,
.page-hero.public-hero p {
  font-size: 1.12rem;
}

.public-band {
  position: relative;
  margin-top: .5rem;
  padding: 2rem;
  border: 1px solid rgba(238, 108, 77, .22);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 33, 43, .07);
}

.public-band::before {
  left: 0;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 6px;
  background: linear-gradient(180deg, var(--coral), var(--amber), var(--teal));
}

.public-section {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.section-heading h2,
.public-section > h2,
.split-list h2,
.contact-card h2,
.legal-text h2 {
  font-size: 1.75rem;
  line-height: 1.15;
}

.color-cards > article,
.color-cards > div,
.tint-card,
.shine-card,
.public-card {
  position: relative;
  overflow: hidden;
}

.tint-card,
.shine-card,
.public-card,
.public-form {
  border: 1px solid rgba(23, 33, 43, .08);
  box-shadow: 0 18px 45px rgba(23, 33, 43, .08);
}

.tint-card::before,
.shine-card::before,
.public-card::before {
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--coral));
}

.teal-card { background: linear-gradient(180deg, #eefaf8, #fff); border-color: rgba(15, 159, 149, .28); }
.coral-card { background: linear-gradient(180deg, #fff0eb, #fff); border-color: rgba(238, 108, 77, .3); }
.green-card { background: linear-gradient(180deg, #eff9f1, #fff); border-color: rgba(81, 166, 106, .3); }
.purple-card { background: linear-gradient(180deg, #f4efff, #fff); border-color: rgba(123, 97, 168, .3); }
.amber-card { background: linear-gradient(180deg, #fff7df, #fff); border-color: rgba(245, 184, 75, .36); }

.color-strip div:nth-child(1) { background: #eefaf8; border-color: rgba(15, 159, 149, .28); }
.color-strip div:nth-child(2) { background: #fff7df; border-color: rgba(245, 184, 75, .36); }
.color-strip div:nth-child(3) { background: #fff0eb; border-color: rgba(238, 108, 77, .3); }

.public-visual {
  transform: none;
  border-color: rgba(15, 159, 149, .2);
}

.workflow-panel {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  background:
    linear-gradient(90deg, rgba(15, 159, 149, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 159, 149, .08) 1px, transparent 1px),
    #fff;
  background-size: 26px 26px;
}

.workflow-step {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
}

.workflow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: .6rem;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
}

.workflow-step strong {
  display: block;
  font-size: 1.2rem;
}

.workflow-step p {
  margin: .35rem 0 0;
  color: var(--muted);
}

.step-teal span { background: var(--teal); }
.step-coral span { background: var(--coral); }
.step-purple span { background: var(--purple); }

.workflow-line {
  height: 2px;
  margin: 0 1rem;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--coral));
}

.public-form {
  padding: 1.25rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 159, 149, .08), transparent 40%),
    #fff;
}

.login-panel {
  display: grid;
  place-items: start center;
}

.login-panel .login-card {
  width: min(100%, 460px);
}

.contact-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 159, 149, .12), rgba(123, 97, 168, .12)),
    #fff;
}

.contact-lines {
  display: grid;
  gap: .75rem;
}

.contact-lines p {
  display: grid;
  grid-template-columns: minmax(110px, .4fr) 1fr;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: .85rem;
  border: 1px solid rgba(23, 33, 43, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
}

.contact-lines span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.legal-text.public-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: #fff;
}

.distance-tool.public-card {
  padding: 1.4rem;
  background: #fff;
}

@media (max-width: 940px) {
  .hero h1,
  .page-hero h1,
  .page-hero.compact h1,
  .login-screen h1 {
    font-size: 2.45rem;
  }

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

@media (max-width: 640px) {
  .hero.public-hero {
    padding-top: 1rem;
  }

  .page-hero.public-hero,
  .public-band,
  .legal-text.public-card {
    padding: 1.2rem;
  }

  .hero h1,
  .page-hero h1,
  .page-hero.compact h1,
  .login-screen h1 {
    font-size: 2rem;
  }

  .contact-lines p {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}

.proof-block {
  margin-top: 1.15rem;
}

.proof-block h2,
.calculator-title,
.price-panel > span {
  display: block;
  margin: 0 0 .7rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: 0;
}

.proof-block h2 {
  font-size: 1.1rem;
}

.diary-why {
  padding-top: 1.25rem;
  padding-bottom: .75rem;
}

.diary-why .tint-card {
  padding: 1.45rem;
}

.price-panel strong {
  margin-bottom: .05rem;
}

.price-panel p {
  margin: .05rem 0 .85rem;
}

.calculator .calc-output {
  gap: .5rem;
}

.calculator .calc-output span {
  display: grid;
  grid-template-columns: minmax(84px, auto) 1fr;
  align-items: baseline;
  gap: .45rem 1rem;
}

.calculator .calc-output small {
  color: var(--muted);
  font-weight: 800;
}

.split-list .tint-card h2 {
  margin-top: .15rem;
}

.dashboard-card .panel-title > span {
  display: none;
}

.dashboard-card .panel-title {
  align-items: flex-start;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(23, 33, 43, .08);
}

.form-layout .form-grid,
.form-layout .stacked-form fieldset,
.form-layout .panel-form fieldset,
.form-layout .grouped-form fieldset {
  grid-template-columns: 1fr;
}

.form-layout label:not(.checkbox-row) {
  display: grid;
  grid-template-columns: minmax(140px, .42fr) minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
}

.form-layout .checkbox-row {
  justify-content: flex-start;
}

.selected-car-inline {
  display: grid;
  gap: .15rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(15, 159, 149, .22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 159, 149, .12), rgba(245, 184, 75, .12));
}

.selected-car-inline span,
.selected-car-inline small {
  color: var(--muted);
  font-weight: 800;
}

.selected-car-inline strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.panel-form button[type="submit"].button-primary,
.stacked-form button[type="submit"].button-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.panel-form button[type="submit"].button-primary:hover,
.stacked-form button[type="submit"].button-primary:hover {
  background: #3f9258;
  border-color: #3f9258;
}

tbody tr {
  transition: background .15s ease, box-shadow .15s ease;
}

tbody tr:hover td {
  background: rgba(15, 159, 149, .07);
}

.modal .distance-tool.has-insert {
  grid-template-columns: 1fr 1fr auto auto;
}

.distance-insert {
  min-height: 64px;
}

@media (max-width: 760px) {
  .form-layout label:not(.checkbox-row),
  .calculator .calc-output span,
  .modal .distance-tool {
    grid-template-columns: 1fr;
  }

  .distance-insert {
    min-height: 44px;
  }
}

.brand > span:last-child {
  display: grid;
  gap: .05rem;
}

.brand-slogan {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.hero h1,
.page-hero h1,
.page-hero.compact h1,
.app-title h1 {
  color: #0a756f;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.app-title h1 {
  font-size: clamp(1.85rem, 3vw, 2.25rem);
}

.page-hero.compact.public-hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.public-page .button-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.public-page .button-primary:hover {
  background: #0a756f;
  border-color: #0a756f;
}

.public-page .button-soft,
.public-page .button-ghost {
  background: #eaf7ef;
  border-color: rgba(81, 166, 106, .35);
  color: #17583a;
}

.public-page .coral-card,
.public-page .color-strip div:nth-child(3) {
  background: linear-gradient(180deg, #eef7ff, #fff);
  border-color: rgba(70, 124, 190, .26);
}

.public-page .tint-card::before,
.public-page .shine-card::before,
.public-page .public-card::before {
  background: linear-gradient(90deg, var(--teal), var(--green), var(--purple));
}

.public-page .page-hero.public-hero::before,
.public-page .workflow-line {
  background: linear-gradient(90deg, var(--teal), var(--green), var(--amber), var(--purple));
}

.public-page .public-band::before {
  background: linear-gradient(180deg, var(--teal), var(--green), var(--purple));
}

.step-green span,
.public-page .step-coral span {
  background: var(--green);
}

.amber {
  background: var(--amber);
}

.compact-heading {
  margin-bottom: .85rem;
}

.proof-block .section-heading h2 {
  color: var(--green);
}

.price-note,
.price-panel small {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.law-strip,
.source-panel,
.process-band,
.law-grid article,
.detail-grid > div {
  border: 1px solid rgba(23, 33, 43, .08);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 159, 149, .09), rgba(123, 97, 168, .08)), #fff;
  box-shadow: 0 16px 36px rgba(23, 33, 43, .06);
}

.law-strip,
.source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem;
}

.law-grid,
.process-band,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.law-grid article,
.process-band > div,
.detail-grid > div {
  padding: 1rem;
}

.process-band span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: .55rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.process-band strong,
.law-grid strong,
.detail-grid strong {
  display: block;
  color: var(--ink);
}

.detail-grid span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.faq-section {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.faq-group {
  display: grid;
  gap: .75rem;
}

.faq-group details {
  border: 1px solid rgba(23, 33, 43, .08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 33, 43, .05);
  padding: .95rem 1rem;
}

.faq-group summary {
  cursor: pointer;
  color: #0a756f;
  font-weight: 900;
}

.faq-group p {
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard-section {
  margin-top: 1.2rem;
}

.dashboard-actions {
  margin: 0;
}

.meter-card a {
  color: inherit;
  text-decoration: none;
}

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

.subscription-grid {
  gap: 1rem;
}

.subscription-grid div {
  padding: 1.1rem;
}

.date-field {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
}

.date-field input[type="text"] {
  padding-right: 2.5rem;
}

.date-field input[type="date"] {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.date-picker-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-color: rgba(15, 159, 149, .24);
  background: #eaf7ef;
  color: #0a756f;
}

.table-tools label {
  color: var(--muted);
  font-weight: 500;
}

.table-tools input,
.table-filter-row input {
  min-height: 30px;
  max-width: 150px;
  font-size: .82rem;
  font-weight: 500;
}

.range-filter {
  grid-template-columns: repeat(2, minmax(70px, 1fr));
}

.table-pager {
  justify-content: flex-end;
}

.table-pager span,
.table-count {
  font-weight: 500;
}

.actions-column {
  width: 1%;
}

.data-table td:last-child {
  text-align: right;
}

.data-table td:last-child a,
.row-copy {
  margin-left: .35rem;
}

.distance-tool output {
  min-height: 48px;
  min-width: 130px;
  background: #eaf7ef;
  color: #0a756f;
  font-size: 1.05rem;
}

.modal .distance-tool.has-insert,
.modal .distance-tool {
  align-items: end;
}

.form-layout {
  margin-top: .25rem;
}

.form-layout > div {
  align-self: start;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}

.form-actions .button-soft {
  margin-left: auto;
  background: #fff4df;
  border-color: rgba(245, 184, 75, .45);
  color: #7b5410;
}

@media print {
  .table-tools,
  .table-pager,
  .table-filter-row {
    display: none !important;
  }

  .sortable::after {
    content: "" !important;
  }

  .data-table th.actions-column,
  .data-table td.actions-column {
    display: none !important;
  }

  .print-report-title {
    display: block;
    margin: 0 0 1rem;
    color: #000;
    font-size: 1.35rem;
  }
}

@media (max-width: 760px) {
  .law-strip,
  .source-panel,
  .law-grid,
  .process-band,
  .detail-grid,
  .modal .distance-tool.has-insert,
  .modal .distance-tool {
    grid-template-columns: 1fr;
  }

  .table-pager {
    justify-content: flex-start;
  }
}

.eyebrow {
  letter-spacing: 0;
}

.public-page .hero h1,
.public-page .page-hero h1,
.public-page .page-hero.compact h1 {
  color: #0a756f;
  font-size: 2.5rem;
  line-height: 1.16;
  background: linear-gradient(90deg, #0a756f, #2c789b 52%, #7b61a8);
  -webkit-background-clip: text;
  background-clip: text;
}

@supports (-webkit-background-clip: text) {
  .public-page .hero h1,
  .public-page .page-hero h1,
  .public-page .page-hero.compact h1 {
    color: transparent;
  }
}

.app-title h1 {
  font-size: 2rem;
  line-height: 1.16;
}

.public-page .page-hero.public-hero {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  background: linear-gradient(135deg, rgba(15, 159, 149, .12), rgba(81, 166, 106, .1) 52%, rgba(123, 97, 168, .1)), #fff;
}

.public-page .hero.public-hero {
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}

.public-page .icon-dot.coral,
.public-page .step-coral span {
  background: var(--green);
}

.public-page .page-hero.public-hero::before,
.public-page .workflow-line,
.public-page .public-band::before {
  background: linear-gradient(90deg, var(--teal), var(--green), var(--amber), var(--purple));
}

.data-table th,
.data-table td {
  padding: .42rem .5rem;
}

.data-table th.actions-column,
.data-table td:last-child {
  min-width: 132px;
  white-space: nowrap;
}

.app-page .panel-form .form-grid,
.app-page .panel-form fieldset {
  gap: .75rem;
}

.app-page .panel-form label:not(.checkbox-row) {
  display: grid;
  grid-template-columns: minmax(150px, 28%) minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
}

.public-page .public-form label:not(.checkbox-row),
.public-page .login-card label:not(.checkbox-row) {
  display: grid;
  grid-template-columns: minmax(150px, 30%) minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
}

.app-page .panel-form .checkbox-row {
  justify-content: start;
}

@media (max-width: 760px) {
  .public-page .hero h1,
  .public-page .page-hero h1,
  .public-page .page-hero.compact h1 {
    font-size: 2.05rem;
  }

  .app-title h1 {
    font-size: 1.8rem;
  }

  .app-page .panel-form label:not(.checkbox-row) {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .public-page .public-form label:not(.checkbox-row),
  .public-page .login-card label:not(.checkbox-row) {
    grid-template-columns: 1fr;
    gap: .35rem;
  }
}

/* Final public and app tuning */
.public-page .section,
.public-page .public-section,
.public-page .faq-section {
  padding-top: clamp(1.8rem, 3vw, 2.65rem);
  padding-bottom: clamp(1.8rem, 3vw, 2.65rem);
}

.public-page .section-heading {
  margin-bottom: .85rem;
}

.public-page .section-heading .eyebrow {
  margin-bottom: .25rem;
}

.public-page .hero.public-hero,
.public-page .page-hero.public-hero {
  padding-top: 2.2rem;
}

.public-page .hero h1,
.public-page .page-hero h1,
.public-page .page-hero.compact h1 {
  background: linear-gradient(90deg, #0a756f 0%, #2f63c7 34%, #7b4fb5 66%, #d88919 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.proof-block {
  margin-top: 1.85rem;
}

.proof-block .compact-heading {
  margin-bottom: .25rem;
}

.proof-block .section-heading h2 {
  color: var(--ink);
  font-size: 1.45rem;
}

.price-note,
.price-panel small {
  font-weight: 500;
}

.pricing-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.experience-card {
  max-width: 900px;
  padding: 1.7rem;
}

.public-page main > .public-section:nth-of-type(2n) {
  position: relative;
}

.public-page main > .public-section:nth-of-type(2n)::before {
  content: "";
  position: absolute;
  inset: .9rem 50% .9rem -40vw;
  z-index: -1;
  background: linear-gradient(90deg, rgba(47, 99, 199, .08), rgba(15, 159, 149, .04));
}

.workflow-step.step-teal strong,
.workflow-step.step-teal p {
  color: #08766f;
}

.workflow-step.step-purple strong,
.workflow-step.step-purple p {
  color: #5d428c;
}

.workflow-step.step-green strong,
.workflow-step.step-green p {
  color: #2f7447;
}

.app-shell {
  padding-top: 1rem;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.app-page .button-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff !important;
}

.app-page .button-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.app-page .panel-form button[type="submit"].button-primary,
.app-page .stacked-form button[type="submit"].button-primary {
  background: var(--green);
  border-color: var(--green);
}

.app-page .panel-form button[type="submit"].button-primary:hover,
.app-page .stacked-form button[type="submit"].button-primary:hover {
  background: #3f9258;
  border-color: #3f9258;
}

.app-page .button-soft,
.app-page .button-ghost,
.icon-button {
  background: #fff4df;
  border-color: rgba(245, 184, 75, .45);
  color: #76510d !important;
}

.app-page .table-print,
.app-page .table-export,
.app-page [data-report-print],
.app-page [data-report-download],
.app-page .distance-open {
  background: #e7f0ff;
  border-color: rgba(47, 99, 199, .28);
  color: #244f9f !important;
}

.app-page .button-danger {
  background: #b42318;
  border-color: #b42318;
  color: #fff !important;
}

.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.table-tools {
  align-items: end;
}

.table-tools label {
  font-size: .82rem;
}

.table-tools input,
.table-filter-row input,
.inline-selector select {
  min-height: 30px;
  padding: .35rem .48rem;
  font-size: .78rem;
}

.range-filter {
  grid-template-columns: 1fr;
  gap: .2rem;
}

.table-pager {
  justify-content: flex-start;
  margin: .45rem 0 1rem;
}

.table-pager span {
  font-weight: 400;
}

.data-table td:last-child a,
.data-table td:last-child .button,
.row-copy,
.row-edit {
  min-height: 28px;
  padding: .32rem .48rem;
  font-size: .78rem;
  margin-left: .25rem;
}

.data-table td:last-child a:first-child {
  margin-left: 0;
}

.data-table td:last-child .inline-delete {
  display: inline-flex;
  margin-left: .25rem;
}

.data-table td:last-child a[href*="copy"],
.row-copy {
  background: #eef0ff;
  border-color: rgba(123, 97, 168, .3);
  color: #5d428c !important;
}

.form-actions .button-danger {
  margin-left: auto;
}

.form-actions .button-danger + .button-soft {
  margin-left: 0;
}

.date-field input[type="date"] {
  top: 3px;
  right: 0;
  bottom: auto;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  opacity: 0;
}

.profile-detail > div {
  display: grid;
  gap: .2rem;
}

.profile-detail small {
  color: var(--muted);
}

.print-report-filter {
  margin: -.5rem 0 1rem;
  color: #333;
  font-size: .95rem;
}

@media print {
  .print-target {
    border: 0 !important;
    box-shadow: none !important;
  }

  .print-target table {
    border: 0 !important;
  }

  .print-report-filter {
    display: block;
  }
}

@media (max-width: 940px) {
  .pricing-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .public-page .section,
  .public-page .public-section,
  .public-page .faq-section {
    padding-top: 1.7rem;
    padding-bottom: 1.7rem;
  }
}

/* Requested layout refinements */
.public-page .section-heading h2,
.public-page .section-heading p,
.public-page .page-hero .eyebrow {
  margin-top: 0;
}

.proof-strip {
  margin-top: .65rem;
}

.capabilities-section .section-heading {
  max-width: 760px;
}

.capability-table-wrap {
  padding: 0;
  background: #fff;
}

.capability-table {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .98rem;
}

.capability-table th,
.capability-table td {
  padding: .95rem 1.1rem;
  white-space: normal;
}

.capability-table th {
  width: 58%;
  background: #f7fbf8;
  color: #173f63;
  font-size: inherit;
  font-weight: 900;
}

.capability-table td {
  color: #0a756f;
  font-weight: 900;
  text-align: right;
  text-transform: lowercase;
}

.pricing-cta .public-card {
  max-width: 760px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 159, 149, .12), rgba(245, 184, 75, .12)), #fff;
}

.pricing-cta h2,
.pricing-cta p {
  margin-top: 0;
}

.pricing-cta .button {
  margin-top: .4rem;
}

.process-actions {
  margin-top: 1rem;
}

.faq-section:nth-of-type(odd) .faq-group details {
  background: linear-gradient(135deg, #eefaf8, #fff);
}

.faq-section:nth-of-type(even) .faq-group details {
  background: linear-gradient(135deg, #fff7df, #fff);
}

.faq-section .section-heading {
  padding: .9rem 1rem;
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .68);
}

.app-title {
  margin-bottom: .85rem;
}

.app-page .form-layout {
  margin-top: -.15rem;
}

.dashboard-shell .app-title {
  margin-bottom: 1.35rem;
}

.dashboard-section {
  margin-top: 1.7rem;
}

.dashboard-shell .dashboard-section:first-of-type {
  margin-top: .9rem;
}

.dashboard-section .section-heading {
  margin-bottom: .55rem;
}

.dashboard-section .section-heading h2 {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.dashboard-section .section-heading .eyebrow {
  color: var(--muted);
}

.dashboard-actions {
  margin-top: 0;
}

.inline-selector {
  max-width: 460px;
}

.inline-selector label {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: .65rem;
}

.table-filter-row input {
  width: 76px;
  max-width: 76px;
}

.table-tools input {
  width: 150px;
}

.table-pager .table-more {
  justify-self: start;
}

.table-pager .table-count {
  margin-left: 0;
  color: var(--muted);
  font-weight: 400;
}

.button:disabled,
.button.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

.button:disabled {
  pointer-events: none;
}

.app-page .table-print:disabled,
.app-page [data-report-print]:disabled {
  background: #e6e9ed;
  border-color: #d2d8de;
  color: #77818c !important;
}

.checkbox-row,
.app-page .panel-form .checkbox-row,
.public-page .public-form .checkbox-row {
  display: grid;
  grid-template-columns: minmax(150px, 28%) minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  justify-content: stretch;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  justify-self: start;
}

.checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.subscription-detail {
  max-width: 520px;
  grid-template-columns: 1fr;
}

@media print {
  .print-target,
  .print-clone {
    overflow: visible !important;
  }

  .print-target table,
  .print-clone table {
    width: 100% !important;
    min-width: 0 !important;
  }

  .print-target th,
  .print-target td,
  .print-clone th,
  .print-clone td {
    white-space: normal !important;
  }
}

@media (max-width: 760px) {
  .inline-selector label,
  .checkbox-row,
  .app-page .panel-form .checkbox-row,
  .public-page .public-form .checkbox-row {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .mfa-setup-block {
    grid-template-columns: 1fr;
  }

  .mfa-qr-wrap {
    width: min(220px, 100%);
  }

  .table-pager {
    justify-content: space-between;
  }
}

/* Follow-up refinements */
.button {
  gap: .45rem;
  box-shadow: 0 10px 24px rgba(15, 159, 149, .16);
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-soft,
.button-ghost {
  box-shadow: 0 10px 24px rgba(245, 184, 75, .14);
}

.button-danger {
  box-shadow: 0 10px 24px rgba(180, 35, 24, .18);
}

.app-page .button-primary {
  box-shadow: 0 12px 26px rgba(15, 159, 149, .22);
}

.app-page .panel-form button[type="submit"].button-primary,
.app-page .stacked-form button[type="submit"].button-primary,
.app-page a.button-primary[href*="new"],
.app-page a.button-primary[href*="edit"] {
  box-shadow: 0 12px 26px rgba(81, 166, 106, .24);
}

.app-page .button-soft,
.app-page .button-ghost,
.app-page .table-print,
.app-page .table-export,
.app-page .distance-open,
.app-page [data-report-download],
.app-page [data-report-print] {
  box-shadow: 0 10px 24px rgba(47, 99, 199, .14);
}

.data-table td:last-child .button,
.row-copy,
.row-edit {
  box-shadow: none !important;
}

.public-page .section-heading h2,
.public-page .public-section > h2,
.public-page .split-list h2,
.public-page .contact-card h2,
.public-page .legal-text h2,
.public-page h3 {
  color: #0b5f58;
}

.public-page main > section:nth-of-type(3n + 1) .section-heading h2,
.public-page main > section:nth-of-type(3n + 1) h3 {
  color: #163f7a;
}

.public-page main > section:nth-of-type(3n + 2) .section-heading h2,
.public-page main > section:nth-of-type(3n + 2) h3 {
  color: #075f6a;
}

.public-page main > section:nth-of-type(3n) .section-heading h2,
.public-page main > section:nth-of-type(3n) h3 {
  color: #2d5f3f;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.capabilities-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 1rem;
  align-items: start;
}

.capabilities-layout .feature-workflow {
  height: 100%;
}

.source-panel {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
}

.source-panel .link-list {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  margin-top: .55rem;
}

.footer-links a {
  color: var(--teal-dark);
  font-weight: 400;
}

.calc-output .calc-cars {
  grid-template-columns: 1fr;
}

.admin-summary-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.profile-group {
  margin-top: 1rem;
}

.profile-group h2 {
  margin: 0 0 .65rem;
  color: #0a756f;
  font-size: 1.15rem;
}

.permission-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.permission-layout .form-layout {
  grid-template-columns: 1fr;
}

.permission-layout .form-layout aside {
  position: static;
}

.inline-delete {
  display: inline-flex;
  margin: 0;
}

.data-table small {
  display: block;
  color: var(--muted);
}

.report-shell .app-title {
  margin-bottom: 1rem;
}

.report-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: .75rem;
  align-items: start;
}

.report-card,
.report-results,
.report-preset-manager,
.report-draft-form {
  border: 1px solid rgba(23, 33, 43, .08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 33, 43, .06);
  padding: .85rem;
}

.report-card-compact {
  padding: .75rem;
}

.report-card h2 {
  margin: 0 0 .8rem;
  color: #0a756f;
  font-size: 1.05rem;
}

.report-date-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .45rem;
}

.report-card label:not(.radio-row),
.report-field {
  display: grid;
  grid-template-columns: minmax(108px, 34%) minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  margin-bottom: .5rem;
}

.report-field:last-child,
.report-card label:last-child {
  margin-bottom: 0;
}

.field-label {
  color: var(--ink);
}

.report-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  margin: .5rem 0 0;
}

.report-shortcut-link {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

.checkbox-dropdown {
  position: relative;
  min-width: 0;
}

.checkbox-dropdown-toggle {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: .42rem .55rem;
  text-align: left;
  cursor: pointer;
}

.checkbox-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 8;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: .35rem;
}

.checkbox-dropdown.is-open .checkbox-dropdown-menu {
  display: grid;
  gap: .2rem;
}

.checkbox-dropdown-option {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: .24rem .28rem;
  font-weight: 400;
}

.checkbox-dropdown-option input {
  width: 16px;
  height: 16px;
  min-height: 16px;
}

.report-order-list,
.report-preset-list {
  display: grid;
  gap: .5rem;
}

.report-list-item,
.report-preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: .4rem;
  align-items: center;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbf8;
}

.report-list-item label,
.radio-row {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 400;
}

.report-list-label {
  font-size: .88rem;
  font-weight: 400;
}

.report-list-item input,
.radio-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.drag-handle {
  color: var(--muted);
  font-weight: 900;
}

.sort-direction {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e7f0ff;
  color: #244f9f;
  font-weight: 700;
}

.report-list-item .icon-button {
  width: 28px;
  height: 28px;
}

.report-view-options {
  display: grid;
  gap: .45rem;
}

.report-results {
  margin-top: 1rem;
}

.report-export-tools {
  margin: 0;
}

.report-table {
  min-width: 0;
}

.report-table th,
.report-table td {
  white-space: normal;
}

.report-subtotal td {
  background: #eef7ff;
  font-weight: 800;
}

.report-grand td {
  background: #eaf7ef;
  color: #0a5e43;
  font-weight: 900;
}

.report-preset-row {
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
}

.preset-actions {
  display: flex;
  gap: .35rem;
}

.preset-delete {
  grid-template-columns: auto auto;
}

.date-field input[type="date"] {
  pointer-events: none;
}

.date-field {
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: .35rem;
}

.date-field input[type="text"] {
  padding-right: .8rem;
}

.print-report-subtitle {
  margin: -.5rem 0 1rem;
  color: #333;
  font-size: 1rem;
  font-weight: 800;
}

.app-page .table-export:disabled,
.app-page [data-report-print]:disabled,
.app-page [data-report-download]:disabled {
  background: #e6e9ed;
  border-color: #d2d8de;
  color: #77818c !important;
}

.data-table th,
.data-table td,
.report-table th,
.report-table td {
  text-align: left;
}

.data-table th.num,
.data-table td.num,
.report-table th.num,
.report-table td.num {
  text-align: right;
}

.data-table th.actions-column,
.data-table td.actions-column,
.data-table td:last-child {
  text-align: right;
}

.data-table td:last-child .inline-delete {
  display: inline-flex;
  margin-left: .35rem;
}

.data-table td:last-child .button,
.data-table td:last-child a.button {
  margin-left: .35rem;
}

.table-filter-row input {
  text-align: left;
}

.table-filter-row th.num input {
  text-align: right;
}

.data-table th.num .table-sort-button {
  justify-content: flex-end;
  text-align: right;
}

.table-tools {
  justify-content: flex-start;
  padding: .42rem .5rem;
}

.table-export-group {
  gap: .35rem;
}

.table-tools .button,
.report-export-tools .button {
  min-height: 30px;
  padding: .34rem .55rem;
  font-size: .8rem;
}

.report-controls {
  gap: .55rem;
}

.report-card {
  padding: .65rem;
}

.report-card h2 {
  margin-bottom: .5rem;
}

.report-preset-selector {
  grid-column: 1 / -1;
  margin: -.25rem 0 .05rem;
  max-width: 420px;
}

.report-preset-selector label,
.report-card label:not(.radio-row),
.report-field,
.checkbox-dropdown-toggle,
.report-card input,
.report-card select {
  font-size: .88rem;
  font-weight: 400;
}

.report-card input,
.report-card select,
.checkbox-dropdown-toggle {
  min-height: 34px;
  padding: .36rem .5rem;
}

.report-order-list,
.report-preset-list {
  gap: .1rem;
}

.report-order-list[data-report-list="dimensions"] {
  gap: .04rem;
}

.report-order-list[data-report-list="sorts"] {
  gap: .18rem;
}

.report-order-list .report-list-item {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: .22rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 22px;
  align-items: center;
}

.report-order-list .report-list-item[data-direction] {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.report-order-list .report-list-item:not([data-direction]) label {
  grid-column: 1;
}

.report-order-list .report-list-item label,
.report-order-list .report-list-label {
  display: inline-grid;
  grid-template-columns: 16px max-content;
  align-items: center;
  justify-content: start;
  justify-items: start;
  gap: .34rem;
  justify-self: start;
  align-self: center;
  text-align: left;
  width: max-content;
  min-height: 20px;
  font-size: .88rem;
  font-weight: 400;
  line-height: 20px;
}

.report-order-list .report-list-label {
  display: inline-block;
  width: auto;
  min-height: 22px;
  line-height: 22px;
}

.report-order-list .drag-handle {
  align-self: center;
  justify-self: end;
  line-height: 22px;
}

.report-order-list .report-list-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}

.report-order-list .sort-direction,
.report-order-list .icon-button {
  display: grid;
  place-items: center;
  align-self: center;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  line-height: 1;
}

.report-view-options {
  gap: .1rem;
}

.report-view-options .radio-row {
  min-height: 20px;
  line-height: 20px;
}

.report-view-options .radio-row input {
  width: 16px;
  height: 16px;
  min-height: 16px;
}

select:disabled,
input:disabled {
  background: #eef2f5;
  color: #6c7782;
  cursor: not-allowed;
}

@media (max-width: 940px) {
  .capabilities-layout,
  .permission-layout,
  .report-controls {
    grid-template-columns: 1fr;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .table-wrap {
    border-radius: 4px;
  }

  table,
  .data-table {
    font-size: .76rem;
  }

  table {
    min-width: 520px;
  }

  .data-table {
    min-width: var(--table-mobile-min-width, 520px);
  }

  .data-table th,
  .data-table td {
    padding: .22rem .28rem;
  }

  .table-tools,
  .table-pager {
    gap: .3rem;
    margin: .35rem 0;
  }

  .table-tools input,
  .table-filter-row input,
  .inline-selector select {
    min-height: 28px;
    padding: .25rem .34rem;
    font-size: .74rem;
  }

  .table-filter-row input {
    width: min(100%, 86px);
    max-width: none;
  }

  .data-table td:last-child a,
  .row-copy,
  .row-edit {
    min-height: 26px;
    padding: .24rem .34rem;
    font-size: .72rem;
  }

  .report-date-grid,
  .report-list-item,
  .report-preset-row {
    grid-template-columns: 1fr;
  }

  .report-order-list .report-list-item {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .report-order-list .report-list-item[data-direction] {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  }

  .report-card label:not(.radio-row),
  .report-field {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .report-card,
  .report-results {
    padding: .65rem;
  }

  .checkbox-dropdown-menu {
    position: static;
    margin-top: .25rem;
    box-shadow: none;
  }

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