:root {
  color-scheme: light;
  --ink: #151c25;
  --subtle: #525e6c;
  --night: #151c25;
  --night-soft: #162941;
  --canvas: #f5f6f8;
  --line: #dce1e6;
  --gold: #bc9337;
  --gold-hover: #d5ad52;
  --gold-light: #e2c47d;
  --gold-dark: #775817;
  --white: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h1, h2 { letter-spacing: -.045em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button:not(:disabled), select { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #916f25; outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 10; background: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.topbar { background: var(--night); color: white; }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-link { color: #ebedf0; font-weight: 550; text-decoration: none; }
.header-link:hover { color: var(--gold-light); }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand-image { display: block; width: clamp(155px, 23vw, 247px); height: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .64rem 1.13rem; border: 1px solid transparent; border-radius: 8px; background: var(--gold); color: var(--ink); font-weight: 720; text-align: center; text-decoration: none; line-height: 1.2; }
.button:hover { background: var(--gold-hover); }
.button:disabled { opacity: .55; }
.button.compact { min-height: 40px; font-size: .91rem; }
.button.ghost { background: #151c2555; border-color: #ffffff82; color: white; }
.button.ghost:hover { background: #ffffff1f; }
.button.secondary { background: white; color: var(--ink); border-color: #bcc6d0; }
.button.secondary:hover { background: #eef0f3; }
.button.small { min-height: 36px; padding: .4rem .65rem; font-size: .88rem; }
.text-button { color: var(--gold-dark); background: transparent; border: 0; padding: .6rem .2rem; font-weight: 680; text-decoration: underline; text-underline-offset: .2em; }
.eyebrow { display: flex; align-items: center; gap: .58rem; color: var(--gold-dark); font-size: .84rem; letter-spacing: .12em; font-weight: 760; }
.eyebrow span { width: .52rem; height: .52rem; border-radius: 50%; background: currentColor; flex: none; }
.estimate .eyebrow { color: var(--gold-light); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.calculator-section { position: relative; margin-top: -42px; scroll-margin-top: 1rem; }
.calculator-card { display: grid; grid-template-columns: 1.55fr 1fr; background: white; border-radius: 17px; box-shadow: 0 9px 28px #202a3914; border: 1px solid #e0e5eb; }
.calculator-form { padding: clamp(1.35rem, 3.5vw, 2.6rem); }
.calculator-form h2 { margin: .3rem 0 1.25rem; font-size: 30px; }
.field-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calculator-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid label, .login-fields label, .inline-form label { display: grid; align-content: start; gap: .32rem; font-weight: 680; font-size: .91rem; }
.field-grid label small { font-weight: 450; color: var(--subtle); font-size: .86rem; }
.qualifying-fields > label { display: flex; flex-direction: column; }
.qualifying-fields > label > select { margin-top: auto; }
.qualifying-fields > label:has(> select[name="creditProviderConsent"]) { grid-column: 1 / -1; }
.personal-fields > label:has(> input[name="applicantId"], > select[name="title"]) { grid-column: 1 / -1; }
[data-dealer-contacts] label:has(> textarea) { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .qualifying-fields { grid-template-columns: minmax(0, 1fr); }
}
:is(#calculator-form, #finance-form, #insurance-form) :is(input, select, textarea) { font-weight: 400; }
.finance-field-group { min-inline-size: 0; margin: 1rem 0 0; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; }
.finance-field-group legend { padding-inline: .35rem; font-weight: 700; }
.finance-field-group .check { display: flex; }
[data-household-total][readonly] { background: #f1f4f7; }
.separate-postal-fields { min-inline-size: 0; margin: .85rem 0 0; padding: 0; border: 0; }
input:not([type="checkbox"], [type="radio"]), select, textarea { min-width: 0; width: 100%; min-height: 44px; padding: .55rem .67rem; color: var(--ink); background: white; border: 1px solid #bcc6d0; border-radius: 7px; }
textarea { resize: vertical; font-weight: 400; }
input[type="checkbox"] { width: 1.11rem; height: 1.11rem; accent-color: var(--gold-dark); flex: none; }
select { appearance: none; padding-right: 1.9rem; background-image: linear-gradient(45deg, transparent 50%, #545e6a 50%), linear-gradient(135deg, #545e6a 50%, transparent 50%); background-position: calc(100% - 15px) 53%, calc(100% - 10px) 53%; background-size: 5px 5px; background-repeat: no-repeat; }
.currency-field { display: flex; align-items: center; position: relative; }
.currency-field > span { position: absolute; left: .68rem; color: var(--subtle); font-weight: 400; }
.currency-field input { padding-left: 1.75rem; }
.muted, .disclaimer { color: var(--subtle); }
.form-note, .disclaimer { font-size: .9rem; }
.form-note { margin-top: .9rem; }
.disclaimer { margin-top: 1rem; }
.estimate { display: flex; flex-direction: column; padding: clamp(1.35rem, 3.5vw, 2.55rem); border-start-end-radius: 16px; border-end-end-radius: 16px; background: var(--night-soft); color: white; }
.estimate-caption { margin-top: .65rem; color: #e0e6eb; }
.estimate-price { font-size: clamp(2rem, 4.3vw, 4.05rem); font-weight: 750; letter-spacing: -.065em; line-height: 1.12; }
.estimate-price span { color: #d6dee6; font-size: .97rem; letter-spacing: 0; font-weight: 500; white-space: nowrap; }
.estimate dl, .review { display: grid; margin: 1.1rem 0; }
.estimate dl div, .review div { display: flex; justify-content: space-between; gap: .75rem; padding: .48rem 0; border-top: 1px solid #ffffff32; }
.estimate dt { color: #d8e1eb; }
.estimate dd, .review dd { text-align: right; font-weight: 690; overflow-wrap: anywhere; }
.estimate .button { margin-top: auto; align-self: start; }
.content-section { padding-block: 4rem; }
.section-heading h2 { margin: .45rem 0 .75rem; font-size: clamp(2rem, 4vw, 3.35rem); }
.section-heading > p:last-child:not(.eyebrow) { color: var(--subtle); }
.site-footer { color: #ebedf0; background: var(--night); }
.cookie-consent {
  position: fixed; z-index: 20; inset-inline: 0; inset-block-end: 1.2rem; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .85rem 1.25rem;
  width: min(815px, calc(100% - 32px)); max-height: calc(100dvh - 2.4rem); overflow: auto;
  padding: 1rem 1.15rem; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold);
  border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 8px 32px #151c2540;
}
.cookie-consent h2 { margin-bottom: .32rem; color: var(--night-soft); font-size: 1.15rem; letter-spacing: -.015em; }
.cookie-consent-copy p { color: var(--subtle); font-size: .94rem; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.cookie-consent-actions .button { font-size: .89rem; padding-inline: .8rem; }
.cookie-consent-actions .button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--night-soft); }
.cookie-consent-status { grid-column: 1 / -1; color: #962d1c; font-size: .9rem; }
@media (max-width: 650px) {
  .cookie-consent { grid-template-columns: 1fr; inset-block-end: .75rem; max-height: calc(100dvh - 1.5rem); }
  .cookie-consent-actions .button { flex: 1 1 8.5rem; }
}
@media print {
  .cookie-consent, .cookie-settings { display: none; }
}
.flow { padding-block: 3rem 5rem; }
.flow-title { margin-bottom: 1.9rem; }
.flow-title h1 { margin: .45rem 0 .55rem; font-size: clamp(2.55rem, 6vw, 4.25rem); }
.flow-title > p:last-child { color: var(--subtle); }
.flow-layout { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 2fr); gap: 1.4rem; align-items: start; }
.step-list { padding: .35rem 0; margin: 0; list-style: none; display: grid; gap: .25rem; }
.step-list button { width: 100%; display: flex; gap: .7rem; align-items: center; text-align: left; padding: .6rem .7rem; border: 1px solid transparent; border-radius: 8px; color: var(--subtle); background: transparent; font-weight: 600; }
.step-list button:not(:disabled):hover { color: var(--gold-dark); background: #fff; }
.step-list button span { border: 1px solid #aab3be; border-radius: 50%; width: 1.55rem; height: 1.55rem; display: grid; place-items: center; flex: none; font-size: .86rem; }
.step-list [aria-current] { color: var(--ink); background: white; border-color: var(--line); }
.step-list [aria-current] span { color: white; background: var(--gold-dark); border-color: var(--gold-dark); }
.form-card { background: white; padding: clamp(1.3rem, 3vw, 2.25rem); border-radius: 14px; border: 1px solid var(--line); }
.form-card h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.step-count { font-size: .9rem; font-weight: 700; color: var(--gold-dark); margin-bottom: .35rem; }
.step-description { margin: .55rem 0 1.35rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: flex-end; margin-top: 1.35rem; }
.form-actions button:first-child:not(:last-child) { margin-right: auto; }
.narrow-flow { max-width: 820px; }
.notice, .error { border-radius: 8px; padding: .7rem .85rem; background: #eef4f8; color: #304457; }
.error { color: #962d1c; background: #fff0ec; margin-top: .85rem; }
.review div { border-color: var(--line); }
.review dt { color: var(--subtle); }
.consents { display: grid; gap: .65rem; margin-top: 1rem; }
.consents summary { color: var(--gold-dark); font-weight: 650; cursor: pointer; }
.consents details p { margin-top: .4rem; color: var(--subtle); }
.check { display: flex; align-items: start; gap: .5rem; cursor: pointer; }
.check input { margin: .23rem .15rem 0 0; }
.success-card { max-width: 650px; }
.success-card p { margin: .65rem 0 1.15rem; }

.admin-header .top-inner { padding: .55rem 1rem; flex-wrap: wrap; gap: .5rem; }
.admin-header-actions { display: flex; align-items: center; gap: .45rem; margin-inline-start: auto; }
.admin-header-actions .button { white-space: nowrap; }
.admin-shell { display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.sidebar { background: #e9edf2; padding: 1.45rem 1rem; border-right: 1px solid var(--line); }
.sidebar-content { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1rem; min-height: calc(100vh - 76px - 2.9rem); }
.sidebar nav { display: grid; gap: 1.3rem; }
.sidebar-group { display: grid; gap: .2rem; min-width: 0; }
.sidebar-group-heading { padding-inline: .65rem; color: var(--subtle); font-size: .8125rem; font-weight: 700; letter-spacing: .035em; }
.sidebar a, .sidebar-settings summary { display: flex; align-items: center; gap: .55rem; font-size: 15px; font-weight: 630; text-decoration: none; padding: .55rem .65rem; border-radius: 7px; color: #394757; }
.sidebar nav a, .sidebar-settings summary { font-size: 14px; }
.sidebar a[aria-current], .sidebar a:hover, .sidebar-settings summary:hover { color: #18212c; background: white; }
.sidebar-settings summary { cursor: pointer; list-style: none; }
.sidebar-settings summary::-webkit-details-marker { display: none; }
.sidebar-settings summary::after {
  content: ""; margin-inline-start: auto; width: 7px; height: 7px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg);
}
.sidebar-settings[open] summary::after { transform: translateY(2px) rotate(225deg); }
.sidebar-submenu { display: grid; gap: .28rem; }
.sidebar-settings:not([open]) .sidebar-submenu { display: none; }
.sidebar .subnav { margin-left: 1.9rem; font-size: 14px; }
.sidebar-icon { position: relative; flex: none; width: 16px; height: 16px; color: #4d6074; }
.sidebar a[aria-current] .sidebar-icon, .sidebar a:hover .sidebar-icon,
.sidebar-settings[open] > summary .sidebar-icon, .sidebar-settings summary:hover .sidebar-icon { color: var(--gold-dark); }
.sidebar-icon::before, .sidebar-icon::after { position: absolute; }
.sidebar-icon--dashboard::before {
  content: ""; top: 1px; left: 1px; width: 6px; height: 6px; border-radius: 1.25px;
  background: currentColor; box-shadow: 8px 0 currentColor, 0 8px currentColor, 8px 8px currentColor;
}
.sidebar-icon--finance::before {
  content: ""; inset: 1px 2px; border: 1.5px solid; border-radius: 2px;
}
.sidebar-icon--finance::after {
  content: ""; top: 5px; left: 5px; width: 6px; height: 1.5px;
  background: currentColor; box-shadow: 0 3px currentColor, 0 6px currentColor;
}
.sidebar-icon--shield::before {
  content: ""; inset: 1px 2px; background: currentColor;
  clip-path: polygon(50% 0, 100% 18%, 96% 59%, 82% 81%, 50% 100%, 18% 81%, 4% 59%, 0 18%);
}
.sidebar-icon--user::before {
  content: ""; top: 2px; left: 5px; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.sidebar-icon--user::after {
  content: ""; top: 9px; left: 2px; width: 12px; height: 6px; border-radius: 6px 6px 2px 2px;
  background: currentColor;
}
.sidebar-icon--dealership::before {
  content: ""; inset: 2px 1px 1px; border: 1.5px solid; border-radius: 2px;
  background: linear-gradient(currentColor, currentColor) top 3px center / 100% 1.5px no-repeat;
}
.sidebar-icon--dealership::after { content: ""; bottom: 1px; left: 6px; width: 4px; height: 6px; border: 1.5px solid; }
.sidebar-icon--dealers::before {
  content: ""; inset: 6px 1px 2px; border: 1.5px solid; border-radius: 3px 3px 2px 2px;
  background: radial-gradient(circle at 26% 50%, currentColor 0 1px, transparent 1.2px),
    radial-gradient(circle at 74% 50%, currentColor 0 1px, transparent 1.2px);
}
.sidebar-icon--dealers::after {
  content: ""; top: 2px; left: 3.5px; width: 9px; height: 5px;
  border: 1.5px solid; border-bottom: 0; border-radius: 3px 3px 0 0;
}
.sidebar-icon--add::before, .sidebar-icon--add::after { content: ""; top: 7px; left: 2px; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor; }
.sidebar-icon--add::after { transform: rotate(90deg); }
.sidebar-icon--forms::before {
  content: ""; inset: 2.5px 2px 1px; border: 1.5px solid; border-radius: 2px;
  background: linear-gradient(currentColor, currentColor) center / 5px 1.5px no-repeat;
}
.sidebar-icon--forms::after {
  content: ""; top: 1px; left: 5px; width: 6px; height: 3px; border-radius: 1px; background: currentColor;
}
.sidebar-icon--settings {
  background:
    radial-gradient(circle at 29% 28%, currentColor 0 2px, transparent 2.25px),
    radial-gradient(circle at 70% 70%, currentColor 0 2px, transparent 2.25px),
    linear-gradient(currentColor, currentColor) center 25% / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center 72% / 14px 1.5px no-repeat;
}
.sidebar-icon--smtp::before { content: ""; inset: 3px 1px; border: 1.5px solid; border-radius: 2px; }
.sidebar-icon--smtp::after {
  content: ""; top: 3px; left: 4.5px; width: 7px; height: 7px; border: solid;
  border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg);
}
.sidebar .staff-profile-link { margin-top: auto; padding: .65rem .5rem; border-top: 1px solid #cdd7e1; }
.staff-profile-text { display: grid; gap: .1rem; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.staff-profile-email { color: var(--subtle); font-size: .84rem; font-weight: 500; }
.staff-avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; overflow: hidden;
  border-radius: 50%; background: #ecddb6; color: var(--night-soft); font-size: .9rem; font-weight: 740;
}
.staff-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-editor .staff-avatar { width: 76px; height: 76px; font-size: 1.35rem; }
.profile-editor .profile-fields { margin-block: 1rem; }
.profile-editor .profile-photo-field { max-width: 32rem; }
.profile-editor .check { display: flex; margin-block: .5rem; }
.profile-editor .button { margin-top: .55rem; }
.admin-main { width: min(100%, 1280px); padding: clamp(1.25rem, 3vw, 2.8rem); }
.admin-main:has(.finance-lead-layout) { width: 100%; }
#admin-view > h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1.05rem; }
.finance-lead-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .8rem;
  margin-bottom: .8rem;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.finance-lead-heading h1 { font: inherit; letter-spacing: normal; }
.finance-lead-heading > :not(:last-child) {
  padding-inline-end: .8rem;
  border-inline-end: 1px solid var(--gold);
}
.finance-lead-heading a { color: var(--gold-dark); text-underline-offset: .18em; }
.coming-soon {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding-inline: clamp(1.25rem, 7vw, 7rem);
  color: var(--white);
  background: linear-gradient(90deg, #151c25 1%, #151c25ef 30%, #1629417a 68%, #151c2542),
    var(--night) url("hero-gold.jpg") 66% center / cover no-repeat;
}
.coming-soon-header, .coming-soon-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  padding-block: clamp(1.2rem, 3.5vh, 2.8rem);
}
.coming-soon-header { justify-content: space-between; border-bottom: 1px solid #ffffff3b; }
.coming-soon-logo { display: block; width: clamp(9rem, 23vw, 17.5rem); height: auto; }
.coming-soon-staff { border: 1px solid #ffffff5e; border-radius: 7px; padding: .5rem .85rem; font-size: .88rem; }
.coming-soon a { text-decoration: none; }
.coming-soon a:hover { color: var(--gold-light); }
.coming-soon-main { display: grid; align-items: center; padding-block: clamp(4rem, 12vh, 8rem); }
.coming-soon-copy { max-width: 47rem; }
.coming-soon-label { display: flex; align-items: center; gap: .7rem; color: var(--gold-light); font-weight: 700; }
.coming-soon-label::before { content: ""; width: 1.75rem; height: 2px; background: var(--gold); }
.coming-soon-copy h1 { margin-block: .9rem 1.25rem; font-size: clamp(2.65rem, 6.3vw, 6rem); }
.coming-soon-copy > p:last-child { max-width: 34rem; color: #e6eaf0; font-size: clamp(1.04rem, 1.65vw, 1.25rem); }
.coming-soon-footer { border-top: 1px solid #ffffff3b; font-size: .94rem; }
.coming-soon-footer p { color: var(--gold-light); font-weight: 650; }
.admin-auth {
  color: #f6f8fb;
  background: linear-gradient(110deg, #151c25f5 25%, #162941df 68%, #151c25cb),
    var(--night) url("hero-gold.jpg") 65% center / cover no-repeat;
}
.admin-auth .admin-header { background: transparent; }
.admin-auth .admin-header .top-inner, .admin-access { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
.admin-auth .admin-header .top-inner { border-bottom: 1px solid #ffffff24; padding-inline: 0; }
.admin-access { min-height: calc(100svh - 76px); display: flex; flex-direction: column; }
.admin-auth-content {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 440px);
  align-items: center; gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(2.25rem, 8vh, 5rem);
}
.admin-auth-intro .eyebrow { color: var(--gold-light); }
.admin-auth-title { margin-block: 1rem; font-size: clamp(2.35rem, 5.5vw, 4.4rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 750; }
.admin-auth-title strong { color: var(--gold-light); font-weight: inherit; }
.admin-auth-intro > p:last-child { color: #d7e0ec; font-size: 1.05rem; }
.admin-login {
  min-width: 0; padding: clamp(1.3rem, 3vw, 2rem); background: #151e2bec;
  border: 1px solid #ffffff30; border-top: 3px solid var(--gold); border-radius: 13px;
  box-shadow: 0 18px 45px #05090e66;
}
.admin-login h1 { margin-bottom: .55rem; font-size: clamp(1.65rem, 4vw, 2rem); }
.admin-login .muted { color: #c1ccdb; }
.admin-login a, .admin-auth-footer a { color: var(--gold-light); text-underline-offset: .18em; }
.login-fields { display: grid; gap: 1rem; margin-block: 1.25rem; }
.admin-login .login-fields input { color-scheme: dark; color: #fff; background: #111924; border-color: #596679; }
.admin-login .login-fields input::placeholder { color: #a4b0c2; }
.login-password { display: grid; gap: .32rem; }
.login-password-field { position: relative; }
.login-password-field input { padding-inline-end: 4.5rem; }
.login-password-field button { position: absolute; inset-block: .28rem; inset-inline-end: .3rem; border: 0; border-radius: 4px; padding-inline: .5rem; background: transparent; color: var(--gold-light); font-size: .85rem; }
.login-password-field button:hover { background: #ffffff13; }
.admin-login .login-fields .button { gap: .65rem; }
.admin-auth-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; border-top: 1px solid #ffffff24; padding-block: 1rem; color: #b8c4d3; font-size: .85rem; }
.admin-auth-footer a { display: inline-flex; align-items: center; gap: .4rem; }
.admin-login .qr { background: #fff; width: fit-content; max-width: 100%; border-radius: 6px; }
@media (max-width: 760px) {
  .admin-auth-content { grid-template-columns: minmax(0, 1fr); gap: 1.55rem; }
  .admin-auth .admin-header .top-inner, .admin-access { width: calc(100% - 2rem); }
  .admin-auth-intro > p:last-child { font-size: .94rem; }
}
.setup-key { overflow-wrap: anywhere; user-select: all; color: #25384b; font-weight: 700; }
.qr svg { display: block; max-width: 100%; height: auto; }
.recovery-list { display: grid; gap: .35rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 1.4rem; overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.15rem; }
.metric, .panel { border: 1px solid var(--line); border-radius: 11px; background: white; padding: 1.1rem; }
.metric span { display: block; color: var(--subtle); }
.metric strong { font-size: 2rem; letter-spacing: -.04em; }
.panel { margin-bottom: 1rem; }
.panel h2 { font-size: 1.3rem; margin-bottom: .75rem; }
.panel .muted { margin-bottom: .75rem; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .93rem; }
th, td { padding: .65rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--subtle); }
td a { color: var(--gold-dark); font-weight: 680; }
.badge { display: inline-block; padding: .13rem .53rem; color: #354351; background: #e9eef2; border-radius: 10px; white-space: nowrap; }
.badge.won { color: #215737; background: #deefe2; }
.badge.allocated, .badge.quoted { color: #21466c; background: #e3effb; }
.admin-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .9rem; }
.admin-controls label { display: flex; gap: .6rem; align-items: center; }
.admin-controls select { width: auto; }
.directory-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-bottom: .75rem; }
.directory-controls label { flex: 0 1 11rem; min-width: min(100%, 11rem); }
.directory-controls label:first-child { flex: 1 1 18rem; }
.directory-controls .button { min-height: 44px; }
.directory-count { font-size: .9rem; }
.staff-role-assignment { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; min-width: 11rem; }
.staff-role-assignment select { flex: 1 1 10rem; }
.role-permissions, .role-permissions fieldset { min-width: 0; margin-inline: 0; padding: .65rem .8rem .75rem; border: 1px solid var(--line); border-radius: 7px; }
.role-permissions legend { padding-inline: .3rem; font-weight: 680; }
.role-permissions .check { display: flex; margin-block: .35rem; font-weight: 500; }
.detail-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .85rem; }
.finance-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
  padding: .4rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}
.finance-detail-tabs button {
  flex: 0 0 auto;
  padding: .55rem .75rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--night-soft);
  font-size: .9rem;
  font-weight: 650;
}
.finance-detail-tabs button:hover { background: var(--canvas); }
.finance-detail-tabs button[aria-selected="true"] { border-color: var(--gold); background: var(--night-soft); color: var(--white); }
.finance-tab-section + .finance-tab-section { margin-top: 1.4rem; }
.finance-tab-section h3 { font-size: 1rem; }
.finance-tab-section .review { margin-block: .6rem 0; }
.finance-tab-section .review dd { white-space: pre-line; }
.finance-lead-layout .detail-panels { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.finance-lead-sidebar .inline-form { display: grid; justify-items: start; gap: .65rem; }
.finance-lead-sidebar .inline-form label { width: 100%; }
.finance-lead-sidebar .inline-form .button { margin-top: 0; }
.finance-activity-list { list-style: none; margin: .75rem 0 0; padding: 0; overflow-wrap: anywhere; }
.finance-activity-list li { border-top: 1px solid var(--line); padding-block: .7rem; }
.finance-activity-list li:last-child { padding-bottom: 0; }
.finance-activity-meta { display: flex; flex-wrap: wrap; gap: .25rem .65rem; color: var(--subtle); font-size: .8rem; }
.inline-form { padding-block: .45rem; }
.inline-form .button { margin-top: .6rem; }
.dealer-bank-picker { max-width: 28rem; }
.dealer-bank-picker summary { padding: .6rem .75rem; border: 1px solid #bcc6d0; border-radius: 7px; cursor: pointer; }
.dealer-bank-picker > div { padding: .4rem .75rem; }
.dealer-bank-picker .check { display: flex; padding-block: .28rem; }
.stack > * + * { margin-top: .65rem; }

@media (min-width: 1100px) {
  .finance-lead-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 27%); gap: 1rem; }
}
@media (max-width: 900px) {
  .wrap { width: min(100% - 40px, 1180px); }
  .calculator-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-panels, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .coming-soon { background-image: linear-gradient(180deg, #151c25de, #151c25ec 55%, #151c25c7), url("hero-gold.jpg"); }
  .coming-soon-break { display: none; }
  .wrap { width: calc(100% - 32px); }
  .top-inner { min-height: 64px; gap: .6rem; }
  .top-inner .button.compact { padding-inline: .55rem; }
  .header-link { text-align: right; }
  .admin-header .top-inner { padding-inline: .75rem; }
  .admin-header .brand-image { width: clamp(106px, 30vw, 155px); }
  .admin-header-actions .button.compact { padding-inline: .4rem; font-size: .81rem; }
  .calculator-section { margin-top: -25px; }
  .calculator-card, .flow-layout, .detail-panels { grid-template-columns: 1fr; }
  .finance-detail-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .estimate { border-start-end-radius: 0; border-end-start-radius: 16px; }
  .content-section { padding-block: 2.7rem; }
  .flow { padding-top: 1.8rem; }
  .flow-layout { gap: .85rem; }
  .step-list { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .12rem; }
  .step-list button { font-size: 0; gap: 0; padding: .32rem 0; justify-content: center; }
  .step-list button span { font-size: .86rem; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: .55rem; }
  .sidebar-content { position: static; min-height: 0; gap: .5rem; }
  .sidebar nav { gap: .9rem; }
  .sidebar-group { display: flex; flex-wrap: wrap; }
  .sidebar-group-heading, .sidebar-settings[open] { flex-basis: 100%; }
  .sidebar .subnav { margin-left: 0; }
}
@media (max-width: 370px) {
  .field-grid, .recovery-list { grid-template-columns: 1fr; }
}
