@font-face { font-family: Montserrat; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/montserrat-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: Montserrat; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/montserrat-latin-300-normal.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; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/montserrat-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: Montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/montserrat-latin-500-normal.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; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/montserrat-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: Montserrat; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/montserrat-latin-600-normal.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 {
  --red: #ff0102;
  --red-deep: #d90002;
  --bg: #000000;
  --card: #000000;
  --line: rgba(255,255,255,.12);
  --text: #f7f7f8;
  --muted: #b5b5bd;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Montserrat, system-ui, sans-serif; font-weight: 300; }
body.is-preview { box-shadow: inset 0 0 0 3px var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.login { max-width: 440px; margin: 0 auto; padding: 32px 20px 48px; display: flex; flex-direction: column; gap: 12px; }
.login img { width: 168px; }
.shell { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; }
.shell.has-estimate { padding-bottom: 220px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.brand img { width: 120px; height: auto; display: block; }
.top-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.eyebrow { margin: 0; color: var(--red); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.lede, .muted, .fine, .disclaimer { color: var(--muted); }
.lede { margin: 0 0 16px; line-height: 1.5; }
.fine { font-size: 13px; }
.card, .quote-note, .demo-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0 0 14px; }
.form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 300; color: var(--muted); }
input, select, textarea { width: 100%; background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
.check { flex-direction: row; align-items: center; color: var(--text); font-size: 15px; }
.check input { width: auto; }
.btn, .text-btn { border: 0; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 16px; border-radius: 12px; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; text-align: center; }
.btn:hover { background: var(--red-deep); }
.btn:disabled { opacity: .6; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: transparent; }
.text-btn { background: none; color: var(--red); padding: 0; font-weight: 600; text-align: left; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.actions .btn { flex: 1 1 160px; }
.note { min-height: 1.2em; margin: 0; color: #fff; font-size: 14px; }
.banner-ok, .banner-warn { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.banner-ok { background: rgba(78, 222, 163, .12); color: #b6ffe2; }
.banner-warn { background: rgba(255, 1, 2, .15); }
.preview-banner { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: var(--red); color: #fff; padding: 12px 16px; }
.preview-banner strong { letter-spacing: .12em; text-transform: uppercase; }
.preview-banner a { margin-left: auto; color: #fff; font-weight: 700; }
.quote-note strong { display: block; margin-bottom: 4px; }
.quote-note p { margin: 0; color: var(--muted); }
.rates, .history, .plain, .estimate-copy ul { list-style: none; margin: 0; padding: 0; }
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.rates li, .history a, .plain li, .estimate-copy li { display: flex; justify-content: space-between; gap: 8px; }
.rates li { font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.rates b { font-weight: 600; color: #fff; }
.history a { align-items: center; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history a span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history small, .plain span { color: var(--muted); font-size: 12px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--line); }
.pill-submitted { color: #fff; }
.pill-quoted { color: #fff; background: var(--red); border-color: var(--red); }
.pill-declined, .pill-cancelled { color: var(--muted); }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.title-row h1, .title-row h2 { margin: 0; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.role { display: grid; grid-template-columns: 1fr 88px 108px 108px; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.role-name { font-weight: 600; color: #fff; padding-bottom: 12px; }
.date-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.date-row input { flex: 1; }
.rate-grid { display: grid; gap: 10px; }
.estimate-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 12px; align-items: flex-end; background: #000; border-top: 3px solid var(--red); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.estimate-copy { flex: 1; min-width: 0; }
.estimate-kicker { margin: 0; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.estimate-total { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.estimate-copy ul { margin-top: 4px; }
.estimate-copy li { font-size: 12px; color: var(--muted); }
.disclaimer { margin: 4px 0 0; font-size: 11px; line-height: 1.35; }
.estimate-bar .btn { flex: 0 0 auto; }
.confirmed { font-size: 18px; font-weight: 600; }
.empty { color: var(--muted); }
.demo-box { display: flex; flex-direction: column; gap: 8px; }
.demo-box p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; margin-bottom: 8px; }
.preview-pick { display: flex; flex-direction: column; gap: 10px; }
.client-card .rates { margin: 10px 0 14px; }

@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .role { grid-template-columns: 1fr 1fr; }
  .role-name { grid-column: 1 / -1; padding-bottom: 0; }
  .rates { grid-template-columns: 1fr; }
  .estimate-bar { flex-direction: column; align-items: stretch; }
  .estimate-total { font-size: 24px; }
}
@media (min-width: 900px) {
  .shell { max-width: 960px; }
  .rate-grid { grid-template-columns: 1fr 1fr; gap: 12px 18px; }
}
