/* Poseidon DS — blue on black design system. Mobile-first. Every text color passes WCAG 2.2 AA contrast on every background it sits on. */
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-semibold.woff") format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/static/fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #000; --bg-1: #050a14; --bg-2: #08111f; --bg-3: #0d1a2e; --bg-4: #13233d;
  --line: #132542; --line-2: #1c355e; --line-3: #2b4f8a;
  --text: #fff; --text-2: #dce8ff; --text-3: #a8c0ea; --text-4: #8eaadc;
  --blue: #6aa8ff; --blue-2: #3b8cff; --blue-btn: #1a64d6; --blue-btn-hover: #2563eb; --blue-pale: #dbe8ff; --danger: #ff8a8a;
  --grad: linear-gradient(180deg, #fff 0%, #d6e6ff 50%, #6aa8ff 100%);
  --r-1: 8px; --r-2: 12px; --r-3: 18px; --r-4: 28px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.9);
  --max: 1160px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
img, svg { max-width: 100%; display: block; }
/* Intrinsic HTML dimensions reserve space; they must not lock a scaled image's height. */
img { height: auto; }
video { max-width: 100%; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--blue-2); text-underline-offset: 3px; }
a:hover { color: var(--blue); text-decoration-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-btn); color: #fff; }
h1, h2, h3, h4 { margin: 0 0 var(--s-3); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 var(--s-4); color: var(--text-2); }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.mono { font-family: var(--mono); font-size: .85em; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.sr-only { position: absolute !important; 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: var(--s-4); top: -60px; z-index: 100; background: var(--blue-btn); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--r-1); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--s-3); }
.wrap { width: 100%; max-width: var(--max); min-width: 0; margin: 0 auto; padding: 0 var(--s-5); }
@media (max-width: 480px) { .wrap { padding-inline: var(--s-4); } }
.wrap-narrow { max-width: var(--max); }
.wrap-narrow > * { max-width: 780px; }
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--s-4); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); font: 600 .95rem/1.35 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; white-space: normal; max-width: 100%; padding-block: var(--s-3); }
.btn:hover { border-color: var(--blue); background: var(--bg-3); }
.btn-primary { background: var(--blue-btn); color: #fff; border-color: var(--blue-btn); box-shadow: 0 10px 30px -12px rgba(59,140,255,.6); }
.btn-primary:hover { background: var(--blue-btn-hover); border-color: var(--blue-btn-hover); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); font-size: .875rem; }
.btn-xs { min-height: 34px; padding: 0 var(--s-3); font-size: .8rem; }
.btn-block { width: 100%; }
.btn-danger { border-color: var(--line-3); color: var(--text); }
.btn-danger:hover { background: #fff; color: #000; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text); font: inherit; text-decoration: underline; text-decoration-color: var(--line-3); cursor: pointer; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: var(--s-4); max-width: 1440px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); line-height: 0; flex: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: #fff; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 68px; background: #000; border-bottom: 1px solid var(--line); padding: var(--s-4) var(--s-5) var(--s-6); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.site-nav a { display: block; padding: var(--s-3) var(--s-2); text-decoration: none; color: var(--text-2); font-weight: 500; border-radius: var(--r-1); font-size: 1.05rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: var(--bg-3); }
.site-nav .btn { margin-top: var(--s-3); width: 100%; }
@media (min-width: 1280px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; position: static; background: none; border: 0; padding: 0; align-items: center; gap: var(--s-2); min-width: 0; }
  .site-nav ul { display: flex; gap: var(--s-1); }
  .site-nav a { font-size: .9rem; padding: var(--s-2); white-space: nowrap; }
  .site-nav .btn { margin-top: 0; width: auto; white-space: nowrap; }
}

/* Sections */
.section { padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.section-tight { padding: var(--s-7) 0; }
.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head p { font-size: 1.08rem; }
.hero { position: relative; padding: var(--s-8) 0 var(--s-7); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(60% 50% at 50% 0%, rgba(59,140,255,.22), rgba(59,140,255,0) 70%); pointer-events: none; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; opacity: .3; pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { max-width: 15ch; margin-bottom: var(--s-5); }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 60ch; color: var(--text-2); margin-bottom: var(--s-6); }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-5); }
.honesty { display: flex; gap: var(--s-3); align-items: flex-start; max-width: 64ch; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-1); color: var(--text-3); font-size: .9rem; }
.honesty svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.page-hero { padding: var(--s-8) 0 var(--s-6); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 20ch; }
.page-hero p { font-size: 1.12rem; max-width: 62ch; }
@media (min-width: 760px) { .hero { padding: var(--s-9) 0 var(--s-8); } .section { padding: var(--s-9) 0; } }

/* Grids and cards */
.grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gap-lg { gap: var(--s-5); } }
.card { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-5); box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }
.card-plain { background: var(--bg-1); box-shadow: none; }
.card-pad-lg { padding: var(--s-6); }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg-3); margin-bottom: var(--s-4); }
.icon-tile svg { width: 22px; height: 22px; }
.num { font-family: var(--serif); font-size: 1rem; color: var(--text-3); letter-spacing: .1em; }
.steps { counter-reset: s; display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; }
.step .num { display: block; margin-bottom: var(--s-3); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--text-2); }
.checklist li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-3); display: grid; place-items: center; font-size: .72rem; color: var(--blue); border-color: var(--blue-2); margin-top: 2px; }
.checklist.x li::before { content: "✕"; color: var(--text-3); }
.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); } }
.kv { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: var(--s-2) var(--s-4); margin: 0; }
.kv dt { color: var(--text-3); font-size: .9rem; }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

/* Sample dashboard preview on the home page */
.mock { border: 1px solid var(--line-2); border-radius: var(--r-4); background: var(--bg-1); padding: var(--s-4); box-shadow: 0 40px 80px -40px rgba(59,140,255,.25); }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 0 var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.dots { display: flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); display: block; }
.mock-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin-bottom: var(--s-4); }
@media (min-width: 560px) { .mock-kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-3) var(--s-4); }
.kpi b { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.kpi span { font-size: .78rem; color: var(--text-3); }
.mock-rows { display: grid; gap: var(--s-2); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-2); font-size: .88rem; }
.mock-row span { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Badges: text + glyph, never color alone */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .01em; line-height: 1.5; white-space: normal; max-width: 100%; border: 1px solid var(--line-3); color: var(--text-2); background: transparent; }
.badge-solid { background: var(--blue-btn); color: #fff; border-color: var(--blue-btn); }
.badge-strong { background: var(--blue-pale); color: #000; border-color: var(--blue-pale); }
.badge-dim { color: var(--text-3); border-color: var(--line-2); }
.badge-dashed { border-style: dashed; }
.badge-sample { background: var(--blue-pale); color: #000; border-color: var(--blue-pale); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }

/* Notices */
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); margin-bottom: var(--s-5); }
.notice strong { color: #fff; }
.notice p { margin: 0; }
.notice-strong { border-color: var(--blue-pale); background: var(--blue-pale); color: #000; }
.notice-strong strong, .notice-strong p, .notice-strong a { color: #000; }
.notice-dashed { border-style: dashed; }
.notice .glyph { flex: none; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; font-size: .8rem; }
.sample-banner { background: var(--blue-pale); color: #000; text-align: center; padding: var(--s-2) var(--s-4); font-weight: 600; font-size: .88rem; }
.sample-banner a { color: #000; }

/* Forms */
form { margin: 0; }
.form-grid { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .span-2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 500; font-size: .92rem; color: var(--text); }
.field .hint { font-size: .82rem; color: var(--text-3); }
.field .error { font-size: .85rem; color: var(--danger); font-weight: 600; display: flex; gap: 6px; }
.field .error::before { content: "✕"; }
.req { color: var(--text-3); font-weight: 400; }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=datetime-local], input[type=time], input[type=search], select, textarea {
  width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--bg-2); color: #fff; font: 400 1rem/1.4 var(--sans); transition: border-color .15s, background .15s; }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-4); }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); background: var(--bg-3); box-shadow: 0 0 0 3px rgba(59,140,255,.35); }
[aria-invalid="true"] { border-color: var(--danger) !important; border-width: 2px !important; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23bbb' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; color: var(--text-2); }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue-2); }
.checks { display: grid; gap: var(--s-2); }
@media (min-width: 640px) { .checks.cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .checks.cols-3 { grid-template-columns: repeat(3, 1fr); } }
fieldset { border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-5); margin: 0 0 var(--s-5); min-width: 0; }
legend { padding: 0 var(--s-2); font-weight: 600; font-size: 1.02rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-5); }
.error-summary { border: 2px solid var(--danger); border-radius: var(--r-2); padding: var(--s-4); margin-bottom: var(--s-5); background: var(--bg-2); }
.error-summary h2 { font-size: 1.05rem; margin-bottom: var(--s-2); }
.error-summary ul { margin: 0; padding-left: var(--s-5); }

/* Pricing */
.price { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; margin: var(--s-3) 0 var(--s-2); }
.price small { display: block; margin-top: var(--s-2); font-family: var(--sans); font-size: .95rem; color: var(--text-3); }
.price-card { display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border-color: var(--blue-2); background: linear-gradient(180deg, #10264d, #060d1a); }

/* Public location page */
.loc-hero { padding: var(--s-7) 0 var(--s-5); }
.loc-hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: none; }
.loc-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin-bottom: var(--s-5); }
@media (min-width: 720px) { .actions-grid { grid-template-columns: repeat(4, minmax(0, 200px)); } }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours-table th { color: var(--text-2); width: 40%; }
.menu-section { margin-bottom: var(--s-6); }
.menu-section h3 { font-family: var(--serif); font-size: 1.4rem; padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); margin-bottom: var(--s-3); }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); padding: var(--s-3) 0; border-bottom: 1px dashed var(--line); }
.menu-item h4 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.menu-item .price-tag { font-variant-numeric: tabular-nums; font-weight: 600; }
.menu-item p { grid-column: 1 / -1; margin: 0; font-size: .92rem; }
.menu-item .tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.facts-foot { border-top: 1px solid var(--line); padding-top: var(--s-4); color: var(--text-3); font-size: .88rem; }

/* Tables (admin + reports) — become cards on small screens */
.table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); overflow-wrap: anywhere; }
.table td.strong, .table td a.strong { color: #fff; font-weight: 600; }
.table tr:hover td { background: var(--bg-1); }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-2) var(--s-3); margin-bottom: var(--s-3); background: var(--bg-1); }
  .table td { border: 0; padding: 6px 0; display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: var(--s-3); }
  .table td::before { content: attr(data-label); color: var(--text-3); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
  .table td[data-label=""]::before, .table td:not([data-label])::before { display: none; }
  .table td:not([data-label]), .table td[data-label=""] { grid-template-columns: 1fr; }
  .table tr:hover td { background: none; }
}
.empty { text-align: center; padding: var(--s-7) var(--s-4); border: 1px dashed var(--line-2); border-radius: var(--r-3); color: var(--text-3); }
.empty h3 { color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-7) 0 var(--s-6); background: var(--bg-1); }
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal-line { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--text-4); font-size: .82rem; display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; }

/* Prose (legal + explainers) */
.prose { max-width: 72ch; }
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { color: var(--text-2); padding-left: var(--s-5); }
.prose li { margin-bottom: var(--s-2); }
.prose code, .code { font-family: var(--mono); font-size: .85rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre.code-block { font-family: var(--mono); font-size: .8rem; line-height: 1.5; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-2); padding: var(--s-4); overflow-x: auto; color: var(--text-2); white-space: pre; max-height: 460px; margin: 0; }

/* ============ Admin ============ */
.admin-body { background: var(--bg); }
.admin-shell { min-height: 100vh; }
.admin-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 0 var(--s-4); min-height: 60px; background: rgba(0,0,0,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sidebar { display: none; }
.sidebar.open { display: block; position: fixed; inset: 60px 0 0; z-index: 39; background: #000; overflow-y: auto; padding: var(--s-4); }
.side-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: var(--s-3); padding: 11px var(--s-3); border-radius: var(--r-2); color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.side-nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.side-nav a:hover { background: var(--bg-3); color: #fff; }
.side-nav a[aria-current="page"] { background: var(--blue-btn); color: #fff; }
.side-nav a[aria-current="page"] svg { opacity: 1; }
.side-nav .count { margin-left: auto; font-size: .72rem; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; }
.side-section { margin: var(--s-5) 0 var(--s-2); padding: 0 var(--s-3); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-4); }
.side-foot { margin-top: var(--s-6); padding: var(--s-4) var(--s-3) 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-3); }
.admin-main { padding: var(--s-5) var(--s-4) var(--s-8); min-width: 0; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.admin-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0; }
.admin-head p { margin: var(--s-2) 0 0; }
.crumbs { font-size: .85rem; color: var(--text-3); margin-bottom: var(--s-2); }
.crumbs a { color: var(--text-3); }
.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-5); margin-bottom: var(--s-5); min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.panel-head h2 { font-size: 1.15rem; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin-bottom: var(--s-5); }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(5, 1fr); } }
.stat { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-4); text-decoration: none; color: inherit; display: block; }
a.stat:hover { border-color: var(--line-3); }
.stat b { display: block; font-size: 2rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .82rem; color: var(--text-3); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 14px; color: var(--text-3); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; font-size: .92rem; }
.tabs a:hover { color: #fff; }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--blue); }
.meter { display: flex; align-items: center; gap: var(--s-3); }
.meter progress { flex: 1; height: 8px; border-radius: 999px; overflow: hidden; appearance: none; -webkit-appearance: none; border: 0; background: var(--bg-4); min-width: 60px; }
.meter progress::-webkit-progress-bar { background: var(--bg-4); border-radius: 999px; }
.meter progress::-webkit-progress-value { background: linear-gradient(90deg, var(--blue-btn), var(--blue)); border-radius: 999px; }
.meter progress::-moz-progress-bar { background: linear-gradient(90deg, var(--blue-btn), var(--blue)); border-radius: 999px; }
.connector { display: flex; flex-direction: column; gap: var(--s-3); }
.connector h3 { margin: 0; font-size: 1.05rem; }
.connector dl { font-size: .86rem; }
.inline-form { display: inline; }
.actions-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.flash { padding: var(--s-3) var(--s-4); border-radius: var(--r-2); margin-bottom: var(--s-5); border: 1px solid var(--line-3); background: var(--bg-2); display: flex; gap: var(--s-3); align-items: center; }
.flash-ok { border-color: var(--blue); }
.flash-ok::before { content: "✓"; font-weight: 700; }
.flash-err { background: #ffe1e1; color: #000; border-color: #ffe1e1; }
.flash-err::before { content: "✕"; font-weight: 700; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--s-5); background: radial-gradient(60% 40% at 50% 0%, rgba(59,140,255,.2), transparent 70%), #000; }
.login-card { width: 100%; max-width: 420px; }
.secret-box { font-family: var(--mono); font-size: .82rem; word-break: break-all; padding: var(--s-4); border: 1px dashed var(--line-3); border-radius: var(--r-2); background: var(--bg-2); color: #fff; user-select: all; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 var(--s-4) var(--s-5); }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.details { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-3) var(--s-4); background: var(--bg-1); }
.details summary { cursor: pointer; font-weight: 600; }
.details[open] summary { margin-bottom: var(--s-3); }
@media (min-width: 980px) {
  .admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); background: linear-gradient(to right, var(--bg-1) 260px, transparent 260px); }
  .admin-top { display: none; }
  .sidebar, .sidebar.open { display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); padding: var(--s-5) var(--s-3); background: var(--bg-1); inset: auto; }
  .sidebar .brand { padding: 0 var(--s-3); margin-bottom: var(--s-5); }
  .admin-main { padding: var(--s-6) var(--s-7) var(--s-8); }
}
.sidebar-brand { display: none; }
@media (min-width: 980px) { .sidebar-brand { display: inline-flex; } }

/* Report print view */
.report { background: #fff; color: #000; }
.report-page { max-width: 900px; margin: 0 auto; padding: var(--s-7) var(--s-5); }
.report h1, .report h2, .report h3 { color: #000; }
.report p, .report li, .report td { color: #222; }
.report .table th { color: #444; border-bottom-color: #bbb; }
.report .table td { color: #222; border-bottom-color: #ddd; }
.report .table tr:hover td { background: none; }
.report .badge { color: #000; border-color: #777; }
.report .badge-solid { background: #0b3d91; color: #fff; border-color: #0b3d91; }
.report .card, .report .panel { background: #fff; border-color: #ccc; box-shadow: none; }
.report .muted { color: #555; }
.report .notice { background: #f3f3f3; color: #222; border-color: #bbb; }
.report .notice strong { color: #000; }
.report-cover { display: flex; align-items: center; gap: var(--s-4); padding-bottom: var(--s-5); border-bottom: 2px solid #1a64d6; margin-bottom: var(--s-6); }
.report-cover img { width: 64px; height: 64px; }
.no-print { }
@media print {
  .no-print { display: none !important; }
  .report-page { padding: 0; }
  .table td, .table th { padding: 6px; }
  a { color: #000; }
  .report .table, .report .table tbody, .report .table tr, .report .table td { display: revert; }
}

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

/* Utilities */
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: var(--s-2); } .mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); }
.w-full { width: 100%; } .max-480 { max-width: 480px; } .max-640 { max-width: 640px; }
.text-white { color: #fff; }

/* Fixes from visual review */
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #fff; background: var(--blue-btn); padding: 0 var(--s-4); }
.site-nav a.btn-primary:hover { background: var(--blue-btn-hover); }
.hero-waves { width: 100%; max-width: none; }
.split > *, .grid > *, .form-grid > * { min-width: 0; }
.tags .badge, .badge-wrap { white-space: normal; text-align: left; line-height: 1.35; padding-top: 4px; padding-bottom: 4px; }
.hero h1 { max-width: 17ch; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) { .hero-waves { height: 90px; opacity: .22; } }
.checklist li.no::before { content: "○"; color: var(--text-3); border-style: dashed; }
@media (max-width: 640px) { .panel, fieldset { padding: var(--s-4); } .panel fieldset { padding: var(--s-3); border-radius: var(--r-2); } .card-pad-lg { padding: var(--s-5); } }

/* AIO additions: breadcrumbs, FAQ, updated line, at-a-glance */
.crumb-nav { padding-top: var(--s-5); }
.crumb-nav ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; font-size: .85rem; color: var(--text-3); }
.crumb-nav li + li::before { content: "›"; margin-right: var(--s-2); color: var(--text-4); }
.crumb-nav a { color: var(--text-3); }
.crumb-nav [aria-current] { color: var(--text-2); }
.crumb-nav + .page-hero, .crumb-nav + .loc-hero { padding-top: var(--s-6); }
.faq-list { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4) var(--s-5); background: var(--bg-1); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: var(--s-2); }
.faq-item p { margin: 0; }
.updated-line { color: var(--text-4); font-size: .82rem; margin: var(--s-5) 0; }
.glance { grid-template-columns: 1fr; gap: var(--s-1) var(--s-5); }
.glance dt { color: var(--text-3); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-top: var(--s-3); }
@media (min-width: 760px) { .glance { grid-template-columns: 220px 1fr; } .glance dt { margin-top: 0; } }
.faq-item, .faq-item h3, .faq-item p, .glance dd, .loc-list li { overflow-wrap: anywhere; min-width: 0; }
.loc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.loc-list li { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-1); }

/* ---------- Guides, glossary, datasets and the free check (v1.2) ---------- */
.h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 var(--s-2); }
.h3 a { color: #fff; text-decoration: none; }
.h3 a:hover { text-decoration: underline; }
.steps-list { padding-left: 1.4em; display: grid; gap: var(--s-4); }
.steps-list li::marker { color: var(--text-3); font-weight: 600; }
.steps-list h2 { margin: 0 0 var(--s-1); }
.glossary { display: grid; gap: var(--s-1); margin: 0; }
.glossary dt { font-weight: 600; color: #fff; margin-top: var(--s-4); scroll-margin-top: 90px; }
.glossary dd { margin: 0; color: var(--text-2); }
.glossary dt:target { text-decoration: underline; text-underline-offset: 4px; }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks > li { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-3) var(--s-4); background: var(--bg-1); }
ul.checks > li p { margin: var(--s-1) 0 0; }
ul.checks .badge svg { width: 14px; height: 14px; }
.prose pre.code-block { white-space: pre-wrap; overflow-wrap: anywhere; }
form[data-busy].busy button[type=submit] { opacity: .7; cursor: progress; }
.table .badge { white-space: normal; }
.site-nav a.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--s-4); }

/* ---------- v1.3: home images, private documents, billing ---------- */
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.shot { margin: 0; }
.shot.mt-6 { margin-top: var(--s-7); } .shot.mb-6 { margin-bottom: var(--s-7); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--r-4); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 40px 90px -40px rgba(59,140,255,.3); }
.shot figcaption { margin-top: var(--s-3); font-size: .85rem; color: var(--text-3); }
/* Home photos: blue duotone so every picture matches the blue-on-black scheme. */
.shot.photo .photo-frame { position: relative; display: block; border-radius: var(--r-4); overflow: hidden; isolation: isolate; }
.shot.photo .photo-frame img { filter: grayscale(1) contrast(1.1); border: 0; border-radius: 0; box-shadow: none; }
.shot.photo .photo-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, #6aa8ff 0%, #1a64d6 60%, #0b2a66 100%); mix-blend-mode: color; opacity: .42; }
.shot.photo .photo-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,10,30,.35) 100%); }
.shot.photo { filter: drop-shadow(0 30px 50px rgba(26,100,214,.25)); }
.shot figcaption .credit { display: block; margin-top: 2px; font-size: .75rem; color: var(--text-4); }
.shot figcaption .credit a { color: var(--text-3); }
.shot-hero img { box-shadow: 0 0 0 1px rgba(106,168,255,.15), 0 50px 120px -40px rgba(59,140,255,.45); }
.mb-6 { margin-bottom: var(--s-6); }
.pre-lines { white-space: normal; }
.doc-body { background: #000; }
.doc-top { border-bottom: 1px solid var(--line); padding: var(--s-4) 0; }
.doc-main { padding: var(--s-6) 0 var(--s-8); }
.doc-wrap { max-width: 900px; }
.doc-foot { border-top: 1px solid var(--line); padding: var(--s-5) 0; }
.agreement, .invoice { background: #fff; color: #111; border-radius: var(--r-3); padding: clamp(20px, 5vw, 56px); line-height: 1.6; }
.agreement h1, .invoice h1, .agreement h2.doc-title, .invoice h2.doc-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.3rem); color: #000; margin: 0 0 var(--s-3); }
.agreement h2, .invoice h2 { font-size: 1.12rem; color: #000; margin: var(--s-6) 0 var(--s-2); }
.agreement h3, .invoice h3 { font-size: 1rem; color: #000; margin: 0 0 var(--s-2); }
.agreement a, .invoice a { color: #000; }
.agreement ul { padding-left: 1.2em; } .agreement li { margin: 6px 0; }
.agr-kicker { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #1a56c4; margin: 0 0 var(--s-2); }
.agr-summary { background: #eef4ff; border: 1px solid #c9dafa; border-radius: var(--r-2); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; }
.agr-summary h2 { margin-top: 0; }
.agr-parties { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .agr-parties { grid-template-columns: 1fr 1fr; } }
.agr-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: var(--s-3) 0; }
.agr-table th, .agr-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid #ddd; }
.agr-table th { width: 32%; color: #333; font-weight: 600; }
.agr-sched th { width: auto; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.agr-caps { font-weight: 600; }
.agr-sign, .agr-evidence { background: #fff; color: #111; border-radius: var(--r-3); padding: clamp(20px, 5vw, 56px); margin-top: var(--s-4); }
.agr-sign h2, .agr-evidence h2 { color: #000; margin-top: 0; font-size: 1.12rem; }
.agr-sign h3 { color: #000; font-size: 1rem; }
.agr-sig { font-family: var(--serif); font-style: italic; font-size: 1.9rem; border-bottom: 1px solid #111; padding-bottom: 4px; margin: var(--s-3) 0 var(--s-2); color: #000; }
.agr-sig-empty { color: #999; font-size: 1.1rem; font-style: normal; }
.agr-evidence .kv dt, .invoice .kv dt { color: #555; } .agr-evidence .kv dd, .invoice .kv dd { color: #111; }
.sign-card { margin-top: var(--s-4); }
.sign-preview { font-family: var(--serif); font-style: italic; font-size: 1.8rem; min-height: 2.6rem; border-bottom: 1px solid var(--line-2); color: #fff; }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); }
.inv-from { text-align: left; font-size: .95rem; }
@media (min-width: 640px) { .inv-from { text-align: right; } }
.inv-meta { display: grid; gap: var(--s-4); margin: var(--s-5) 0; }
@media (min-width: 700px) { .inv-meta { grid-template-columns: 1fr 1fr; } }
.invoice .table th { color: #555; border-color: #ddd; } .invoice .table td { color: #111; border-color: #eee; } .invoice .table tr:hover td { background: transparent; }
.inv-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; max-width: 360px; margin: var(--s-4) 0 0 auto; }
.inv-totals dt { color: #555; } .inv-totals dd { margin: 0; text-align: right; }
.inv-totals .inv-total { font-weight: 700; font-size: 1.15rem; color: #000; border-top: 2px solid #1a64d6; padding-top: 8px; }
.inv-pay .card { background: #f4f4f4; border-color: #ddd; color: #111; } .inv-pay .card h3 { color: #000; }
.invoice .notice { background: #f4f4f4; border-color: #ccc; color: #111; }
.invoice .badge { border-color: #999; color: #333; } .invoice .badge-solid { background: #0b3d91; color: #fff; border-color: #0b3d91; }
@media (max-width: 640px) { .invoice .table td::before { color: #777; } .invoice .table tr { background: #fafafa; border-color: #e5e5e5; } }
.copy-row { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.copy-row input { flex: 1 1 260px; }
.item-rows { display: grid; gap: var(--s-2); }
.item-row { display: grid; gap: var(--s-2); grid-template-columns: 1fr; }
@media (min-width: 760px) { .item-row { grid-template-columns: 3fr 70px 130px auto; align-items: end; } }
@media print {
  .no-print, .site-header, .site-footer, .doc-top, .doc-foot, .sign-card { display: none !important; }
  body, .doc-body { background: #fff !important; color: #000 !important; }
  .agreement, .invoice, .agr-sign, .agr-evidence { border-radius: 0; padding: 0; box-shadow: none; }
  .agr-sec { break-inside: avoid-page; }
}
.media-preview { width: 100%; height: auto; border-radius: var(--r-2); border: 1px solid var(--line-2); }
.byline { color: var(--text-3); margin: calc(-1 * var(--s-4)) 0 var(--s-4); } .byline a { color: var(--text-2); }
.agreement p, .agreement li, .agreement td, .agreement dd, .agreement b, .invoice p, .invoice li, .invoice td, .invoice dd, .invoice b, .agr-sign p, .agr-sign b, .agr-evidence dd, .agr-evidence b { color: #1a1a1a; }
.agreement .small, .invoice .small, .agr-sign .small, .invoice .muted, .agr-evidence dt { color: #555; }
.doc-wrap .mono, .agr-evidence dd, .panel .mono { overflow-wrap: anywhere; word-break: break-all; }
.brand picture { display: block; line-height: 0; }
.brand img.brand-image { display: block; width: 300px; max-width: 100%; height: auto; aspect-ratio: 642 / 108; }
.brand-sm img.brand-image { width: 210px; }
.brand-lg img.brand-image { width: 440px; }
@media (min-width: 1280px) { .site-header .brand img.brand-image { width: 240px; } }
@media (max-width: 560px) { .site-header .brand img.brand-image { width: 210px; } }
@media (max-width: 360px) { .site-header .brand img.brand-image { width: 180px; } }
.report-cover img.report-logo { display: block; width: 260px; height: auto; aspect-ratio: 642 / 108; }
.login-card .brand { display: flex; justify-content: center; margin: 0 auto var(--s-5); width: fit-content; }

/* File pickers: match the site's buttons instead of the browser default. */
input[type="file"] { min-height: 0; padding: 8px; background: var(--bg-2); color: var(--text-2); border: 1px dashed var(--line-3); border-radius: var(--r-2); width: 100%; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--blue-btn); background: var(--blue-btn); color: #fff; font: 600 .875rem/1 var(--sans); cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--blue-btn-hover); }
.d-block { display: block; }

/* ---------- v1.6 interface polish ---------- */
/* Section photos: a wide cinematic crop on large screens so they don't push the content down. */
@media (min-width: 900px) { .section .shot.photo:not(.shot-hero) .photo-frame img { aspect-ratio: 21 / 9; } }
/* Buttons: clear pressed/busy feedback. */
.btn { transition: background-color .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Cards and price cards lift slightly on hover (public pages only). */
main .section .card, .price-card { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { main .section .card:hover, .price-card:hover { border-color: var(--line-3); transform: translateY(-2px); box-shadow: 0 24px 50px -30px rgba(59,140,255,.45); } }
/* Show/hide password. */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text-2); font: 600 .8rem/1 var(--sans); cursor: pointer; }
.pw-toggle:hover { border-color: var(--blue); color: #fff; }
/* Quick search above long admin lists. */
.table-search { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.table-search input { max-width: 320px; min-height: 40px; }
tr[hidden] { display: none !important; }
/* Phone menu: comfortable tap targets and a soft drop shadow. */
.site-nav.open { box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); max-height: calc(100vh - 68px); overflow-y: auto; }
/* Keyboard users: links inside dark panels keep a visible focus ring. */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- v2.0: analytics, marketing, company datasets ---------- */
.chart { display: block; width: 100%; height: 150px; margin-top: var(--s-3); }
.chart rect { fill: var(--blue-2); }
.chart rect:hover { fill: var(--blue); }
.chart-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-4); margin-top: 4px; }
.bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.bar-list li { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr auto; gap: var(--s-3); align-items: center; font-size: .9rem; }
.bar { display: block; height: 10px; border-radius: 999px; background: var(--bg-4); overflow: hidden; }
.bar i { display: block; height: 100%; width: 2%; border-radius: 999px; background: linear-gradient(90deg, var(--blue-btn), var(--blue)); }
a.card-link { display: block; text-decoration: none; color: var(--text); }
a.card-link:hover { border-color: var(--blue-2); color: var(--text); }
a.card-link h3 { color: #fff; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.h3 { font-size: 1.2rem; }
pre.code-block { max-height: 420px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }

.glance { display: grid; margin: 0; }
.glance dd { margin: 0; }
.stat b { font-variant-numeric: tabular-nums; }

/* v2.1 Chase payment options on bills */
.portal-header .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-3); padding-top: var(--s-3); padding-bottom: var(--s-3); }
.portal-header .brand { min-width: 0; grid-column: 1; grid-row: 1; }
.portal-header .brand picture { min-width: 0; max-width: 100%; }
.portal-header .inline-form { grid-column: 2; grid-row: 1; }
.portal-client-name { grid-column: 1 / -1; overflow-wrap: anywhere; }
.portal-nav { min-width: 0; }
.portal-nav ul { list-style: none; display: flex; gap: var(--s-2); padding: 0 0 var(--s-2); margin: 0; max-width: 100%; overflow-x: auto; }
.portal-nav li { flex: 0 0 auto; }
.portal-nav a { display: block; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); text-decoration: none; }
.portal-nav a[aria-current="page"] { border-color: var(--blue); color: var(--blue); }
.portal-body main { min-width: 0; overflow-wrap: anywhere; }
.inv-pay .pay-id { font-size: 1.1rem; word-break: break-all; margin: var(--s-2) 0; }
.inv-pay .pay-opt .btn { margin-top: var(--s-2); }

/* v2.3 video tutorials */
.video-player { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; background: #000; border-radius: var(--r-2); }
.tutorial-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.tutorial-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); }
.tutorial-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-1); overflow: hidden; background: #000; }
.tutorial-thumb img { width: 100%; height: 100%; object-fit: contain; }
.tutorial-card h3 { font-size: 1.125rem; line-height: 1.4; margin: 0; }
.tutorial-card p { font-size: 1rem; line-height: 1.6; margin: 0; }
.tutorial-card .tutorial-meta { font-size: .875rem; margin-top: auto; padding-top: var(--s-2); }
.tutorial-feature, .tutorial-watch { max-width: 960px; margin-inline: auto; }
@media (min-width: 640px) { .tutorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tutorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
