@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/InterTight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/InterTight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-inter-tight: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --color-black: #000;
  --color-white: #fff;
  --color-secondary: #1a1a1c;
  --color-accent: #fcfcfc;
  --color-background-1: #fcfcfd;
  --color-background-2: #f9fafb;
  --color-background-3: #f4f5f8;
  --color-background-4: #f0f2f6;
  --color-stroke-1: #dfe4eb;
  --color-stroke-2: #e3e7ed;
  --color-stroke-3: #d7dde5;
  --color-stroke-7: #2a333e;
  --color-ns-yellow: #f9eb57;
  --color-ns-green: #c6f56f;
  --color-ns-red: #ffb9a2;
  --color-ns-green-light: #e8fbc6;
  --color-ns-yellow-light: #fdf7bc;
  --color-red-700: #b91c1c;
  --text-heading-1: 4.25rem;
  --text-heading-1--line-height: 110%;
  --text-heading-2: 3.25rem;
  --text-heading-2--line-height: 120%;
  --text-heading-3: 2.5rem;
  --text-heading-3--line-height: 120%;
  --text-heading-4: 2rem;
  --text-heading-4--line-height: 130%;
  --text-heading-5: 1.5rem;
  --text-heading-5--line-height: 140%;
  --text-heading-6: 1.25rem;
  --text-heading-6--line-height: 140%;
  --text-tagline-1: 1rem;
  --text-tagline-1--line-height: 150%;
  --text-tagline-2: .875rem;
  --text-tagline-2--line-height: 150%;
  --text-tagline-3: .75rem;
  --text-tagline-3--line-height: 150%;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --spacing: .25rem;
  --radius-xl: .75rem;
  --radius-card: 14px;
  --radius-full: 9999px;
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  /* The site's text-secondary/60, nudged to 64% so small text on the
     off-white page background stays above 4.5:1. */
  --color-muted: color-mix(in oklab, var(--color-secondary) 64%, transparent);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background-2);
  color: var(--color-secondary);
  font-family: var(--font-inter-tight);
  font-size: var(--text-tagline-1);
  line-height: var(--text-tagline-1--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1 0 auto; }

/* The template's base layer: h1 steps heading-4, -3, -2, -1; p is tagline-2
   then tagline-1 at 40rem, in text-secondary/60. */
h1, h2, h3 { margin: 0; color: var(--color-secondary); font-weight: var(--font-weight-medium); }
h1 { font-size: var(--text-heading-4); line-height: var(--text-heading-4--line-height); }
h2 { font-size: var(--text-heading-5); line-height: var(--text-heading-5--line-height); font-weight: var(--font-weight-normal); margin-bottom: calc(var(--spacing) * 3); }
h3 { font-size: var(--text-tagline-1); line-height: var(--text-tagline-1--line-height); }
p { margin: 0 0 calc(var(--spacing) * 3); font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); color: var(--color-muted); }
p:last-child { margin-bottom: 0; }
strong { font-weight: var(--font-weight-medium); color: var(--color-secondary); }
@media (min-width: 40rem) {
  h1 { font-size: var(--text-heading-3); line-height: var(--text-heading-3--line-height); }
  p { font-size: var(--text-tagline-1); line-height: var(--text-tagline-1--line-height); }
}
@media (min-width: 48rem) {
  h1 { font-size: var(--text-heading-2); line-height: var(--text-heading-2--line-height); }
}
@media (min-width: 80rem) {
  h1 { font-size: var(--text-heading-1); line-height: var(--text-heading-1--line-height); }
}

/* Inline links, as .details-body a on the site, in black. */
a { color: var(--color-secondary); font-weight: var(--font-weight-medium); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); transition: color .2s ease, text-decoration-color .2s ease; }
a:hover, a:focus-visible { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

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

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 20px; border-radius: var(--radius-full); background: var(--color-secondary); color: var(--color-white); text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--color-white); }

.main-container { max-width: 1290px; margin-inline: auto; padding-inline: calc(var(--spacing) * 5); }
@media (min-width: 1440px) { .main-container { padding-inline: 0; } }
.main-container.narrow { max-width: 800px; padding-inline: calc(var(--spacing) * 5); }

/* Header: the site's pill bar (header-one in _includes/nav.html). Sticky
   rather than fixed, so it never covers the page header. Below 64rem the
   portal links drop to their own row inside the bar: there is no script for
   a menu button. */
.site-header { position: relative; z-index: 50; padding: calc(var(--spacing) * 5) calc(var(--spacing) * 5) 0; }
.header-one { max-width: 1290px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: calc(var(--spacing) * 2) calc(var(--spacing) * 4); padding: 10px 10px 10px 24px; border-radius: 28px; background-color: rgb(255 255 255 / .6); -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px); }
.brand { display: inline-flex; align-items: center; gap: calc(var(--spacing) * 2); min-height: 40px; color: var(--color-secondary); font-size: var(--text-tagline-1); font-weight: var(--font-weight-medium); text-decoration: none; }
.brand:hover { color: var(--color-secondary); }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.portal-tag { display: none; padding-left: calc(var(--spacing) * 3); border-left: 1px solid var(--color-stroke-3); color: var(--color-muted); font-size: var(--text-tagline-2); font-weight: var(--font-weight-normal); text-decoration: none; }
.portal-tag:hover { color: var(--color-secondary); }
.brand-group { display: flex; align-items: center; gap: calc(var(--spacing) * 3); }
.header-actions { display: flex; align-items: center; gap: calc(var(--spacing) * 2); }
.bar-form { margin: 0; }
.portal-nav { order: 3; flex: 1 0 100%; margin-inline: -14px 0; }
.portal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: calc(var(--spacing) * 1); }
.portal-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: calc(var(--spacing) * 2) calc(var(--spacing) * 4); border: 1px solid transparent; border-radius: var(--radius-full); color: var(--color-muted); font-size: var(--text-tagline-1); font-weight: var(--font-weight-normal); text-decoration: none; transition: all .2s ease; }
.portal-nav a:hover { color: var(--color-secondary); border-color: var(--color-stroke-2); }
.portal-nav a[aria-current="page"] { color: var(--color-secondary); }
@media (min-width: 40rem) {
  .portal-tag { display: inline; }
}
@media (min-width: 64rem) {
  .site-header { position: sticky; top: 0; }
  .header-one { flex-wrap: nowrap; border-radius: var(--radius-full); }
  .portal-nav { order: 0; flex: 0 1 auto; margin: 0; }
  .portal-nav ul { flex-wrap: nowrap; }
}

/* _includes/page-header.html: eyebrow, the big title, the standfirst. */
.page-header { padding: calc(var(--spacing) * 14) 0 calc(var(--spacing) * 12); text-align: center; }
.page-header .main-container { display: flex; flex-direction: column; align-items: center; gap: calc(var(--spacing) * 4); }
.page-header .eyebrow { margin: 0; font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); text-transform: uppercase; color: var(--color-muted); overflow-wrap: anywhere; }
.page-header h1 { overflow-wrap: anywhere; }
.page-lede { max-width: 700px; margin: 0 auto; }
@media (min-width: 48rem) { .page-header { padding: calc(var(--spacing) * 20) 0 calc(var(--spacing) * 16); } }
@media (min-width: 80rem) { .page-header { padding-top: calc(var(--spacing) * 26); } }

.page-body { padding-bottom: calc(var(--spacing) * 22); display: flex; flex-direction: column; gap: calc(var(--spacing) * 6); }

/* Cards: the site's white, 14px, stroke-1 panels (p-5 md:p-8). */
.card { background-color: var(--color-white); border: 1px solid var(--color-stroke-1); border-radius: var(--radius-card); padding: calc(var(--spacing) * 5); min-width: 0; }
@media (min-width: 48rem) { .card { padding: calc(var(--spacing) * 8); } }
.form-card { width: 100%; max-width: 480px; margin-inline: auto; }
.form-card.wide { max-width: 760px; }
.grid { display: grid; gap: calc(var(--spacing) * 6); }
@media (min-width: 64rem) { .grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.internal { border-style: dashed; border-color: var(--color-secondary); background-color: var(--color-background-3); }

.center { text-align: center; }
.muted { color: var(--color-muted); }
.small, p.small { font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); }
.mono { font-family: var(--font-mono); font-size: .9em; font-weight: var(--font-weight-medium); color: var(--color-secondary); overflow-wrap: anywhere; }

/* The template's buttons: pill, 1px border, lowercase with the first letter
   capitalised, a 2% lift and an arrow that slides in on hover. Primary
   actions are black and turn white on hover (btn-secondary
   hover:btn-white, as on /cti-dealers/); secondary ones the reverse. */
.btn { cursor: pointer; position: relative; overflow: hidden; display: inline-block; border: 1px solid transparent; border-radius: var(--radius-full); text-align: center; font: inherit; font-weight: var(--font-weight-normal); text-transform: lowercase; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px 0 #1018280d; transition: all .5s var(--ease-in-out); }
.btn span { display: inline-block; transition: transform .3s var(--ease-in-out); }
.btn span::first-letter { text-transform: uppercase; }
.btn::before { content: ""; position: absolute; top: 50%; right: 0; width: 0; height: 0; opacity: 0; transform: translateY(-50%); background-position: center; background-repeat: no-repeat; background-size: contain; transition: all .3s var(--ease-in-out); }
.btn-md { min-width: 90px; padding: calc(var(--spacing) * 2.5) calc(var(--spacing) * 5); font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); }
.btn-secondary { border-color: var(--color-black); background-color: var(--color-secondary); color: var(--color-white); }
.btn-secondary::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='white' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'%3E%3C/path%3E%3C/svg%3E"); }
.btn-secondary:hover { border-color: var(--color-stroke-3); background-color: var(--color-background-1); color: var(--color-secondary); }
.btn-secondary:hover::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%231a1a1c' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'%3E%3C/path%3E%3C/svg%3E"); }
.btn-white { border-color: var(--color-stroke-3); background-color: var(--color-background-1); color: var(--color-secondary); }
.btn-white::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%231a1a1c' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'%3E%3C/path%3E%3C/svg%3E"); }
.btn-white:hover { border-color: var(--color-black); background-color: var(--color-secondary); color: var(--color-white); }
.btn-white:hover::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='white' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'%3E%3C/path%3E%3C/svg%3E"); }
.btn:hover::before { width: 10px; height: 10px; transform: translate(-14px, -50%); opacity: 1; }
.btn:hover span { transform: translateX(-8px); }
.btn:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }
.btn.btn-keep-case { text-transform: none; }
@media (hover: hover) { .btn:hover { scale: 1.02; } }

/* Forms: the sign-up form's fields. */
.stack { display: flex; flex-direction: column; gap: calc(var(--spacing) * 5); margin-bottom: calc(var(--spacing) * 5); }
.stack:last-child { margin-bottom: 0; }
.stack .btn { align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: calc(var(--spacing) * 2); min-width: 0; }
label, .label { margin: 0; color: var(--color-secondary); font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); font-weight: var(--font-weight-medium); }
label .muted { font-weight: var(--font-weight-normal); }
input[type="email"], input[type="text"], input[type="search"], input[type="url"], input[type="tel"], select, textarea { width: 100%; min-height: 48px; padding: calc(var(--spacing) * 3) 18px; font: inherit; font-size: var(--text-tagline-2); font-weight: var(--font-weight-normal); color: var(--color-secondary); background-color: var(--color-background-1); border: 1px solid var(--color-stroke-3); border-radius: var(--radius-full); transition: border-color .2s ease; }
input::placeholder, textarea::placeholder { color: var(--color-muted); }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231a1a1c' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 16px 16px; }
textarea { min-height: 110px; border-radius: var(--radius-card); resize: vertical; line-height: var(--text-tagline-2--line-height); }
input:focus, select:focus, textarea:focus { border-color: var(--color-secondary); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--color-red-700); }
input[type="file"] { max-width: 100%; font: inherit; font-size: var(--text-tagline-2); color: var(--color-secondary); }
input[type="file"]::file-selector-button { cursor: pointer; margin-right: calc(var(--spacing) * 3); padding: calc(var(--spacing) * 2.5) calc(var(--spacing) * 5); font: inherit; border: 1px solid var(--color-stroke-3); border-radius: var(--radius-full); background-color: var(--color-background-1); color: var(--color-secondary); transition: all .3s var(--ease-in-out); }
input[type="file"]::file-selector-button:hover { border-color: var(--color-black); background-color: var(--color-secondary); color: var(--color-white); }
#code { font-family: var(--font-mono); font-size: var(--text-heading-6); letter-spacing: .3em; text-align: center; }
.hint, p.hint { margin: 0; font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); color: var(--color-muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset + fieldset { padding-top: calc(var(--spacing) * 4); }
legend { padding: 0; margin-bottom: calc(var(--spacing) * 1); color: var(--color-secondary); font-size: var(--text-heading-6); line-height: var(--text-heading-6--line-height); font-weight: var(--font-weight-normal); }
.button-row { display: flex; flex-wrap: wrap; gap: calc(var(--spacing) * 3); }
.inline-form { margin: 0; }
/* The ad account chooser: one ruled row per account, a black checkbox. */
.choice-list { list-style: none; margin: calc(var(--spacing) * 3) 0 0; padding: 0; }
.choice-list li { border-top: 1px solid var(--color-stroke-1); }
.choice-list li:last-child { border-bottom: 1px solid var(--color-stroke-1); }
.choice { display: flex; align-items: flex-start; gap: calc(var(--spacing) * 3); padding: calc(var(--spacing) * 3.5) calc(var(--spacing) * 2); border-radius: var(--radius-xl); font-weight: var(--font-weight-normal); cursor: pointer; overflow-wrap: anywhere; transition: background-color .2s ease; }
.choice:hover { background-color: var(--color-background-3); }
.choice input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--color-secondary); cursor: pointer; }
.choice:has(input:checked) { background-color: var(--color-background-4); }

.notice, .alert { border: 1px solid; border-radius: var(--radius-card); padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4); margin-bottom: calc(var(--spacing) * 5); }
.notice p, .alert p { color: var(--color-secondary); }
.notice { border-color: var(--color-ns-green); background-color: var(--color-ns-green-light); }
.alert { border-color: var(--color-red-700); background-color: #fff4f0; }
.notice-pending { border-color: var(--color-secondary); background-color: var(--color-ns-yellow-light); padding: calc(var(--spacing) * 5); }
.notice-pending h2 { margin-bottom: calc(var(--spacing) * 2); font-size: var(--text-heading-6); line-height: var(--text-heading-6--line-height); }
.notice-pending p + p { margin-top: calc(var(--spacing) * 2); }
.notice-pending .button-row { margin-top: calc(var(--spacing) * 4); }

.back-link { margin: 0; font-size: var(--text-tagline-2); }

/* Label and value rows (dt / dd). */
.details { margin: 0; }
.details-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: calc(var(--spacing) * 1) calc(var(--spacing) * 4); padding: calc(var(--spacing) * 3) 0; border-bottom: 1px solid var(--color-stroke-1); font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); }
.details-row:last-child { border-bottom: 0; }
.details dt { color: var(--color-muted); }
.details dd { margin: 0; color: var(--color-secondary); text-align: right; overflow-wrap: anywhere; }
@media (min-width: 40rem) { .details-row { font-size: var(--text-tagline-1); line-height: var(--text-tagline-1--line-height); } }
.plain-list { list-style: none; margin: 0; padding: 0; }

.access-list, .checklist, .upload-list, .note-list { list-style: none; margin: calc(var(--spacing) * 4) 0 0; padding: 0; }
.access-list li, .checklist-item, .upload-item, .note-list li { padding: calc(var(--spacing) * 4) 0; border-top: 1px solid var(--color-stroke-1); }
.access-list li:last-child, .checklist-item:last-child, .upload-item:last-child, .note-list li:last-child { padding-bottom: 0; }
.access-list li p, .checklist-item p, .upload-item p, .note-list li p { margin: calc(var(--spacing) * 1.5) 0 0; }
.checklist-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: calc(var(--spacing) * 2) calc(var(--spacing) * 4); }
.checklist-head h3 { overflow-wrap: anywhere; }

/* Ad account connections: one panel per provider inside the card, the
   site's background-2 fill and stroke-1 ring. The connect button is the
   black primary pill; reconnect and disconnect are white. */
.connection-list { list-style: none; margin: calc(var(--spacing) * 5) 0 0; padding: 0; display: grid; gap: calc(var(--spacing) * 4); }
@media (min-width: 64rem) { .connection-list { grid-template-columns: 1fr 1fr; } }
.connection-card { min-width: 0; padding: calc(var(--spacing) * 5); border: 1px solid var(--color-stroke-1); border-radius: var(--radius-card); background-color: var(--color-background-2); }
.connection-card p { margin: calc(var(--spacing) * 2) 0 0; }
.connection-card .plain-list { margin-top: calc(var(--spacing) * 2); display: flex; flex-direction: column; gap: calc(var(--spacing) * 1.5); font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); overflow-wrap: anywhere; }
.connection-card .details { margin-top: calc(var(--spacing) * 3); }
.connection-card .details-row { font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); }
.connection-card .button-row { margin-top: calc(var(--spacing) * 4); }
.connection-card .badge-not-started { background-color: var(--color-white); }

/* Status pills. Checklist and upload statuses (badge-<status>) and dealer
   statuses (badge-status-<status>). Payment still owed is the one loud
   style: yellow with a black ring and a dot, so it stands out in a list. */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border: 1px solid var(--color-stroke-1); border-radius: var(--radius-full); background-color: var(--color-background-4); color: var(--color-secondary); font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); font-weight: var(--font-weight-medium); white-space: nowrap; }
.badge-approved, .badge-status-paid-awaiting-access { background-color: var(--color-ns-green-light); border-color: var(--color-ns-green); }
.badge-requested, .badge-pending { background-color: var(--color-ns-yellow-light); border-color: var(--color-ns-yellow); }
.badge-rejected, .badge-status-cancelled, .badge-status-canceled { background-color: #fff4f0; border-color: var(--color-ns-red); }
.badge-not-applicable { background-color: transparent; color: var(--color-muted); }
.badge-status-active { background-color: var(--color-secondary); border-color: var(--color-black); color: var(--color-white); }
.badge-status-paused { background-color: var(--color-white); border-color: var(--color-stroke-3); border-style: dashed; }
.badge-status-awaiting-payment, .badge-status-pending-payment { background-color: var(--color-ns-yellow); border-color: var(--color-secondary); }
.badge-status-awaiting-payment::before, .badge-status-pending-payment::before { content: ""; width: 7px; height: 7px; border-radius: var(--radius-full); background-color: var(--color-secondary); }

/* Tables, as on /cti-dealers/: tagline-2, stroke-1 rules, no fills. */
.table-card { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); }
th, td { text-align: left; padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4) calc(var(--spacing) * 3) 0; border-bottom: 1px solid var(--color-stroke-1); vertical-align: top; }
th { color: var(--color-secondary); font-weight: var(--font-weight-medium); vertical-align: bottom; white-space: nowrap; }
td { color: var(--color-secondary); }
tbody tr:last-child td { border-bottom: 0; }
td .small { margin-top: calc(var(--spacing) * 1); }
.audit-table td:first-child, .audit-table td:nth-child(3) { white-space: nowrap; }
.audit-table td:nth-child(3) .mono { overflow-wrap: normal; }
.audit-table td:last-child { overflow-wrap: anywhere; min-width: 240px; }

/* Admin */
.filter-form { display: grid; gap: calc(var(--spacing) * 4); align-items: start; }
.filter-actions { display: flex; align-items: center; gap: calc(var(--spacing) * 4); min-height: 48px; }
/* Labels are 21px plus the 8px field gap, so the button lines up with the
   inputs. */
@media (min-width: 48rem) { .filter-form { grid-template-columns: 2fr 1fr auto; } .filter-actions { margin-top: 29px; } }
/* The dealer list: search, status and the button on one row, bottoms
   aligned (the hint sits under the row). The search grows; the status and
   the button take their own width. On a phone the search takes the row and
   status and button share the next one. */
.filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: calc(var(--spacing) * 3) calc(var(--spacing) * 4); }
.filter-row .filter-search { flex: 1 1 100%; }
.filter-row .filter-status { flex: 1 1 160px; }
.filter-row .filter-actions { flex: 0 0 auto; margin-top: 0; }
.filter-row .filter-hint { flex: 1 1 100%; }
@media (min-width: 48rem) { .filter-row .filter-search { flex: 1 1 280px; } .filter-row .filter-status { flex: 0 0 auto; min-width: 220px; } .filter-row .filter-actions { margin-top: 0; } }
input[type="search"] { -webkit-appearance: none; appearance: none; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: calc(var(--spacing) * 4); margin-top: calc(var(--spacing) * 4); font-size: var(--text-tagline-2); }
.row-form { display: flex; flex-wrap: wrap; align-items: end; gap: calc(var(--spacing) * 3) calc(var(--spacing) * 4); margin: calc(var(--spacing) * 3) 0 0; }
.row-form .field { flex: 1 1 200px; }
.row-form .field.grow { flex: 3 1 280px; }

/* The store (PORTAL_STORE): add-on cards with a big tick box and a CSS
   counter total, plan cards, and 48px buttons. One column on a phone. */
.store-links { margin: calc(var(--spacing) * 5) 0; }
.store-links .button-row { margin-bottom: calc(var(--spacing) * 2); }
.store-links .btn, .store-form .btn, .plan-card .btn, .store-actions .btn { min-height: 48px; padding-block: calc(var(--spacing) * 3.25); }
.store-form { counter-reset: store-total; }
.store-grid, .plan-list, .store-owned, .store-receipt { list-style: none; margin: calc(var(--spacing) * 4) 0 0; padding: 0; }
.store-grid { display: grid; gap: calc(var(--spacing) * 3); }
@media (min-width: 48rem) { .store-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 80rem) { .store-grid { grid-template-columns: 1fr 1fr 1fr; } }
.store-grid li { min-width: 0; }
.store-grid + p { margin: calc(var(--spacing) * 3) 0 0; }
.store-card { display: flex; align-items: flex-start; gap: calc(var(--spacing) * 3); height: 100%; min-height: 64px; padding: calc(var(--spacing) * 4); border: 1px solid var(--color-stroke-1); border-radius: var(--radius-card); background-color: var(--color-background-2); font-weight: var(--font-weight-normal); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.store-card:hover { border-color: var(--color-stroke-3); background-color: var(--color-background-3); }
.store-card:has(input:checked) { border-color: var(--color-secondary); background-color: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-secondary); }
.store-card:has(input:focus-visible) { outline: 2px solid var(--color-secondary); outline-offset: 2px; }
.store-card input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: var(--color-secondary); cursor: pointer; }
.store-card-body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: calc(var(--spacing) * 1) calc(var(--spacing) * 3); }
.store-card-name { flex: 1 1 10rem; min-width: 0; color: var(--color-secondary); font-size: var(--text-tagline-1); line-height: var(--text-tagline-1--line-height); font-weight: var(--font-weight-medium); overflow-wrap: anywhere; }
.store-card-price { color: var(--color-secondary); font-weight: var(--font-weight-medium); white-space: nowrap; }
.store-card-note { flex-basis: 100%; color: var(--color-muted); font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); }
.store-card input[data-amount="100"]:checked { counter-increment: store-total 100; }
.store-card input[data-amount="200"]:checked { counter-increment: store-total 200; }
.store-card input[data-amount="750"]:checked { counter-increment: store-total 750; }
.store-summary { display: flex; flex-direction: column; gap: calc(var(--spacing) * 4); margin-top: calc(var(--spacing) * 6); padding-top: calc(var(--spacing) * 5); border-top: 1px solid var(--color-stroke-1); }
.store-total { display: flex; justify-content: space-between; align-items: baseline; gap: calc(var(--spacing) * 4); margin: 0; color: var(--color-secondary); font-size: var(--text-heading-6); line-height: var(--text-heading-6--line-height); }
.store-total-amount::after { content: "$" counter(store-total); font-weight: var(--font-weight-medium); }
.store-summary .btn { align-self: stretch; }
@media (min-width: 40rem) { .store-summary .btn { align-self: flex-start; } }
.store-owned li, .store-receipt li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: calc(var(--spacing) * 2) calc(var(--spacing) * 4); padding: calc(var(--spacing) * 3) 0; border-top: 1px solid var(--color-stroke-1); color: var(--color-secondary); overflow-wrap: anywhere; }
.store-owned li span:first-child { min-width: 0; }
.plan-list { display: grid; gap: calc(var(--spacing) * 4); }
@media (min-width: 48rem) { .plan-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 80rem) { .plan-list { grid-template-columns: repeat(4, 1fr); } }
.plan-card { min-width: 0; display: flex; flex-direction: column; gap: calc(var(--spacing) * 3); padding: calc(var(--spacing) * 5); border: 1px solid var(--color-stroke-1); border-radius: var(--radius-card); background-color: var(--color-background-2); }
.plan-card.is-current { border-color: var(--color-secondary); background-color: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-secondary); }
.plan-total { margin: 0; color: var(--color-secondary); font-size: var(--text-heading-6); line-height: var(--text-heading-6--line-height); }
.plan-card .details-row, .plan-card .details-row dd { font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); }
.plan-card .details dd { min-width: 0; }
.plan-card .plan-note { margin: 0; }
.plan-card .stack, .plan-card > p:last-child { margin: auto 0 0; }
.plan-card .stack .btn { align-self: stretch; white-space: normal; }
.store-actions { justify-content: center; }

/* Footer: _includes/footer.html, dark. */
.site-footer { background-color: var(--color-secondary); color: color-mix(in oklab, var(--color-accent) 60%, transparent); }
.site-footer .main-container { padding-block: calc(var(--spacing) * 16); }
.footer-top { display: flex; flex-direction: column; gap: calc(var(--spacing) * 10); padding-bottom: calc(var(--spacing) * 12); border-bottom: 1px solid var(--color-stroke-7); }
.footer-intro { max-width: 420px; display: flex; flex-direction: column; gap: calc(var(--spacing) * 4); }
.footer-intro p { color: color-mix(in oklab, var(--color-accent) 60%, transparent); }
.site-footer .brand, .site-footer .brand:hover { color: var(--color-accent); font-size: var(--text-heading-6); line-height: var(--text-heading-6--line-height); font-weight: var(--font-weight-normal); }
.footer-nav { display: flex; flex-wrap: wrap; gap: calc(var(--spacing) * 10) calc(var(--spacing) * 16); }
.footer-nav h2 { margin: 0 0 calc(var(--spacing) * 4); font-size: var(--text-tagline-2); line-height: var(--text-tagline-2--line-height); text-transform: uppercase; color: color-mix(in oklab, var(--color-accent) 60%, transparent); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(var(--spacing) * 2); }
.site-footer a { color: color-mix(in oklab, var(--color-accent) 80%, transparent); font-weight: var(--font-weight-normal); text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer a:focus-visible, .site-footer .btn:focus-visible { outline-color: var(--color-accent); }
.footer-bottom { display: flex; flex-direction: column; gap: calc(var(--spacing) * 2); padding-top: calc(var(--spacing) * 8); }
.footer-bottom p { margin: 0; color: color-mix(in oklab, var(--color-accent) 60%, transparent); }
@media (min-width: 40rem) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (min-width: 48rem) { .site-footer .main-container { padding-block: calc(var(--spacing) * 20); } }
@media (min-width: 64rem) { .footer-top { flex-direction: row; align-items: flex-start; justify-content: space-between; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .btn:hover, .btn:hover span { scale: none; transform: none; }
}
