/* ═══════════════════════════════════════════════════════════════════
   XLeo client portal - theme.css
   The same design language as xleo.dev: black canvas, cool blue accent,
   hairline borders, pill buttons, Geist for UI + Fraunces italic for accent
   words, flat surfaces that light up (pointer glow + flowing border) on hover.
   Loaded after style.css, which still owns layout; this file owns the look.
   Rule of thumb carried over from the site: boxes only where they hold something.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted, SIL OFL) ─────────────────────────────────── */
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }

/* ── Tokens ───────────────────────────────────────────────────────── */
:root {
  --bg: #000;
  --panel: #0a0d12;
  --panel-2: #10151c;
  --line: #ffffff17;
  --line-2: #ffffff29;
  --text: #fff;
  --muted: #9a9a9a;
  --dim: #7d7d7d;
  --accent: #7acaff;
  --accent-dark: #0099ff;
  --accent-dim: rgba(0, 153, 255, 0.14);
  --blue: #0099ff;
  --amber: #ffbd2e;
  --green: #3ddc84;
  --red: #ff5f57;
  --violet: #c9a6ff;
  --radius: 12px;
  --font: "Geist", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
  --font-head: var(--font);
  --font-body: var(--font);
  --font-mono: var(--font);               /* the small caps labels are Geist now, like the site */
  --font-code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --topline: linear-gradient(90deg, transparent, #ffffff8c, transparent) top center / 240px 1px no-repeat;
}

html { accent-color: var(--blue); scrollbar-color: #2b3340 #05070a; background: #000; }
::selection { background: rgba(0, 153, 255, .4); color: #fff; }
input, textarea { caret-color: var(--accent); }
body { font: 400 15px/1.6 var(--font); letter-spacing: 0; background: #000; text-rendering: optimizeLegibility; }
a { color: var(--accent); }
.mono, code, .req-no, .log-time, .site-detail, .pv-host, .up-state, .fileico, .creds code, .tf-key code, .rec-codes { font-family: var(--font-code); }

/* ── Background: the site's light curtain, calmer ─────────────────── */
body::before {
  z-index: -1;
  background:
    radial-gradient(60% 46% at 50% -12%, rgba(0, 153, 255, .30), transparent 72%),
    radial-gradient(40% 36% at 0% 0%, rgba(0, 120, 235, .22), transparent 70%),
    radial-gradient(40% 36% at 100% 0%, rgba(122, 202, 255, .12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 150, 255, .055) 0 1px, transparent 1px 96px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .7) 38%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .7) 38%, transparent 82%);
}
.main::before { background: radial-gradient(50% 100% at 30% 0%, rgba(0, 153, 255, .08), transparent 72%); }
body[data-page] { --bloom: 0, 153, 255; }

/* ── Type ─────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font); font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.04; }
h2 { font-size: 1.05rem; font-weight: 500; }
.page-head h1 { font-weight: 500; letter-spacing: -.05em; }
/* accent words: Fraunces light italic, the same flourish as the site's headings */
.acc { font-family: var(--serif); font-weight: 300; font-style: italic; letter-spacing: -.04em; font-size: 1.04em; padding-right: .04em; }

.eyebrow, .field > span, .facts dt, .site-stats dt, .site-rows dt, .section-head h2, .faq-h, .rtable th, .legal-table th {
  font-family: var(--font); font-weight: 500; letter-spacing: .14em;
}
.eyebrow { font-size: .72rem; color: var(--dim); }
.field > span, .facts dt, .site-stats dt, .site-rows dt, .rtable th { font-size: .68rem; }
.section-head h2, .faq-h { font-size: .74rem; }
.section-head a { font-family: var(--font); font-size: .74rem; font-weight: 500; letter-spacing: .1em; }
.msg .who, .msg-sys, .msg-day, .toast strong, .track-label, .next-step strong, .how-n, .approval-go, .strip-legend, .rbars-axis, .loading, .auth-points span {
  font-family: var(--font); font-weight: 500;
}
/* the brand's chamfered slab before a page's label */
.page-head .eyebrow::before, .auth-card .eyebrow::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 12px; vertical-align: .02em;
  background: linear-gradient(140deg, #cdeaff, var(--accent) 52%, var(--blue));
  clip-path: polygon(0 30%, 30% 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.page-sub { color: var(--muted); font-size: 1rem; }

/* ── Logo: blue italic X tucked over the L ────────────────────────── */
.brand { position: relative; display: inline-flex; align-items: baseline; font: 600 1.55rem/1 var(--font); letter-spacing: -.045em; color: #fff; }
.brand .x { position: relative; z-index: 1; color: var(--accent); font-size: 1.34em; font-weight: 700; font-style: italic; letter-spacing: -.04em; line-height: .8; margin-right: -.09em; }
.side .brand, .topbar .brand { font-size: 1.5rem; padding: 0; }
.side .brand { margin: 0 12px; }
.side .brand::after, .topbar .brand::after {
  content: ""; position: absolute; left: -2px; right: -6px; bottom: -9px; height: 11px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%230099ff'/%3E%3Cstop offset='1' stop-color='%237acaff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 9 C 20 3, 38 11, 58 7 S 88 3, 97 4' fill='none' stroke='url(%23g)' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease);
}
@media (hover: hover) { .side .brand:hover::after, .topbar .brand:hover::after { clip-path: inset(0 0 0 0); } }
.auth-hero .brand { font-size: 1.9rem; }

/* ── Buttons: pills, white primary with a sheen, like the site ────── */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 44px; padding: 0 22px; gap: 8px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: #fff;
  font: 500 .9rem/1 var(--font); letter-spacing: 0; text-transform: none; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .15s;
}
.btn:hover { background: #ffffff0f; border-color: #ffffff66; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: .8rem; }
.btn-primary { background: #fff; border-color: #fff; color: #000; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%);
}
@media (hover: hover) { .btn-primary:hover::after { animation: sheen .8s var(--ease); } }
@keyframes sheen { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
.btn-danger { border-color: rgba(255, 95, 87, .45); color: var(--red); }
.btn-danger:hover { background: rgba(255, 95, 87, .1); border-color: var(--red); }
.btn[disabled] { opacity: 1; background: #ffffff0a; border-color: var(--line); color: var(--dim); cursor: not-allowed; }
.btn-primary[disabled] { background: #ffffff1f; color: #9a9a9a; }
.nav-cta { padding-block: 0; }

/* ── Fields ───────────────────────────────────────────────────────── */
input, select, textarea { background: #ffffff08; border: 1px solid #ffffff1f; border-radius: 12px; font-family: var(--font); transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
input:hover, select:hover, textarea:hover { border-color: #ffffff4d; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: rgba(0, 153, 255, .06); box-shadow: 0 0 0 3px rgba(0, 153, 255, .18); }
select option { background: #0a0d12; }
.check input { accent-color: var(--blue); box-shadow: none; }

/* ── Sidebar ──────────────────────────────────────────────────────── */
.side { background: linear-gradient(180deg, rgba(0, 153, 255, .08), transparent 40%), rgba(0, 0, 0, .55); border-right: 1px solid var(--line); }
.nav a { border-radius: 999px; padding: .6rem .95rem; font-weight: 500; font-size: .92rem; color: var(--muted); }
.nav a:hover { background: #ffffff0f; color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(0, 153, 255, .22), rgba(0, 153, 255, .06)); color: #fff; box-shadow: inset 0 0 0 1px rgba(122, 202, 255, .22); }
.nav a.active::before { display: none; }
.nav a.active svg { color: var(--accent); }
.badge { background: var(--accent); color: #000; font-family: var(--font); font-weight: 600; font-size: .68rem; }
.side-foot { border-top-color: var(--line); }
.side-link { color: var(--dim); }

/* ── Surfaces: flat, hairline, top-edge highlight ─────────────────── */
.card, .list, .tile, .track, .site-card {
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none;
}
.card:not(.how):not(.banner):not(.creds):not(.thread):not(.card--draft):not(.card--alert):not(.report-note):not(.approve), .list, .track, .tile {
  background-color: var(--panel);
  background-image: var(--topline), linear-gradient(180deg, #ffffff09, #ffffff03);
}
.card + .card { margin-top: 1.2rem; }
.thread { background: var(--panel); background-image: var(--topline); }
.row { border-top-color: var(--line); }
a.row:hover { background: #ffffff08; }
.empty { border-color: var(--line-2); border-radius: var(--radius); }
.crumb { color: var(--muted); }
.crumb:hover { color: #fff; text-decoration: none; }

/* glow that follows the pointer (--mx/--my set in app.js) + a flowing blue border, on the surfaces you can act on */
.tile, .card--link, .report-card, .approval-banner, .auth-card { position: relative; isolation: isolate; overflow: hidden; }
.tile::before { /* keeps its status tint, adds the pointer glow */
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 153, 255, .16), transparent 62%),
    radial-gradient(110% 80% at 0% 0%, color-mix(in srgb, var(--c, transparent) 14%, transparent), transparent 62%);
}
.card--link::before, .report-card::before, .approval-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 153, 255, .16), transparent 62%);
}
@property --shine { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tile::after, .card--link::after, .report-card::after, .approval-banner::after, .auth-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--shine), transparent 0deg, var(--blue) 14deg, var(--accent) 28deg, transparent 70deg, transparent 180deg, var(--blue) 194deg, var(--accent) 208deg, transparent 250deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease); animation: shine 3.4s linear infinite; animation-play-state: paused;
}
@keyframes shine { to { --shine: 360deg; } }
@media (hover: hover) {
  .tile:hover, .card--link:hover, .report-card:hover, .approval-banner:hover { border-color: rgba(122, 202, 255, .28); transform: none; }
  .card--link:hover::before, .report-card:hover::before, .approval-banner:hover::before { opacity: 1; }
  .tile:hover::after, .card--link:hover::after, .report-card:hover::after, .approval-banner:hover::after { opacity: 1; animation-play-state: running; }
}
.tile .n { font-family: var(--font); font-weight: 500; letter-spacing: -.05em; font-size: 2.3rem; }
.tile .eyebrow { font-size: .68rem; }
.tile--attn { border-color: color-mix(in srgb, var(--c, var(--amber)) 45%, transparent); }

/* ── Status: pills with a dot, chips ──────────────────────────────── */
.pill { gap: .45rem; padding: .34rem .75rem; font: 500 .68rem/1 var(--font); letter-spacing: .08em; border-color: color-mix(in srgb, currentColor 45%, transparent); background: color-mix(in srgb, currentColor 10%, transparent); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip { padding: .5rem 1rem; font: 500 .78rem/1 var(--font); letter-spacing: 0; text-transform: none; border-color: var(--line-2); }
.chip:hover { border-color: #ffffff66; background: #ffffff0f; color: #fff; }
.chip.active { background: var(--accent-dim); border-color: rgba(122, 202, 255, .6); color: #fff; }
.tag { font-family: var(--font); }

/* ── Messages ─────────────────────────────────────────────────────── */
.msg { border-radius: 18px; background: #ffffff0d; border: 1px solid var(--line); }
.msg--mine { background: linear-gradient(180deg, #0b6bbe, #084f92); border-color: rgba(122, 202, 255, .25); border-bottom-right-radius: 6px; }
.msg--theirs { border-bottom-left-radius: 6px; }
.msg-sys { border-color: var(--line); border-radius: 999px; }
.composer { background: rgba(0, 0, 0, .5); border-top-color: var(--line); }

/* ── Progress tracker, banners, notes ─────────────────────────────── */
.track li.is-done .track-dot { background: var(--accent); border-color: var(--accent); }
.track li.is-done:not(:last-child)::after { background: linear-gradient(90deg, var(--blue), var(--accent)); }
.banner { border-color: rgba(122, 202, 255, .3); background: linear-gradient(90deg, rgba(0, 153, 255, .12), var(--panel) 70%); }
.banner-ico { border-radius: 12px; border: 1px solid rgba(122, 202, 255, .3); background: var(--accent-dim); }
.next-step { border-radius: 12px; border-left-width: 2px; }
.dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.how { background: linear-gradient(90deg, rgba(0, 153, 255, .1), var(--panel) 65%); }

/* ── Dialogs & toasts ─────────────────────────────────────────────── */
dialog { background: #05070a; border: 1px solid var(--line-2); border-radius: 18px; }
dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.toast { background: #0a0d12; border: 1px solid var(--line-2); border-left: 2px solid var(--accent); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .7); }
.toast--error { border-left-color: var(--red); }
a.toast:hover { background: #10151c; }

/* ── Mobile bar + drawer ──────────────────────────────────────────── */
@media (max-width: 820px) {
  .topbar { background: rgba(0, 0, 0, .78); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .menu-btn, .drawer-close { border-radius: 999px; background: #ffffff0a; border-color: var(--line-2); }
  .side { background: #000; border-right-color: var(--line-2); box-shadow: 30px 0 60px -20px rgba(0, 0, 0, .9); }
  .side::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; pointer-events: none; background: radial-gradient(80% 100% at 0% 0%, rgba(0, 153, 255, .22), transparent 70%); z-index: -1; }
}

/* ── Sign in: the hero beams, a flowing border round the card ─────── */
.auth-wrap { position: relative; isolation: isolate; overflow: hidden; }
.auth-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(0, 150, 255, .42) 0 1px, transparent 1px 7.2%),
    linear-gradient(to top, rgba(0, 150, 255, .5), rgba(0, 96, 204, .16) 40%, transparent 78%);
  -webkit-mask-image: linear-gradient(to right, #000 0, rgba(0, 0, 0, .4) 24%, transparent 42%, transparent 58%, rgba(0, 0, 0, .4) 76%, #000 100%), linear-gradient(to top, #000, transparent 85%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 0, rgba(0, 0, 0, .4) 24%, transparent 42%, transparent 58%, rgba(0, 0, 0, .4) 76%, #000 100%), linear-gradient(to top, #000, transparent 85%);
  mask-composite: intersect;
  animation: breathe 9s ease-in-out infinite;
}
.auth-wrap::after {
  content: ""; position: absolute; inset: -10% -10% 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 46% at 20% 60%, rgba(0, 153, 255, .26), transparent 70%),
    radial-gradient(34% 42% at 80% 66%, rgba(122, 202, 255, .18), transparent 72%),
    radial-gradient(30% 34% at 50% 8%, rgba(11, 107, 190, .22), transparent 70%);
  animation: aurora 16s ease-in-out infinite alternate;
}
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
@keyframes aurora { 0% { transform: translate3d(-3%, 0, 0) scale(1); } 50% { transform: translate3d(2%, -2%, 0) scale(1.06); } 100% { transform: translate3d(4%, 1%, 0) scale(1.02); } }
.auth-card { border-radius: 20px; background: rgba(5, 7, 10, .82); border-color: var(--line-2); box-shadow: none; backdrop-filter: blur(12px); }
.auth-card::after { opacity: .9; animation-play-state: running; animation-duration: 6s; }
.auth-card h1 { font-size: 1.9rem; letter-spacing: -.05em; }
.auth-card .btn-primary { min-height: 48px; }
.auth-hero h2 { font-weight: 500; letter-spacing: -.055em; }
.auth-hero .accent { color: #fff; }
.auth-hero .accent.acc { color: var(--accent); }
.auth-points li { border-top: 1px solid var(--line); padding-top: .9rem; }
.auth-points span { font-size: .7rem; letter-spacing: .14em; }
.auth-foot a { color: var(--accent); }

/* ── Small pieces ─────────────────────────────────────────────────── */
.avatar { font-family: var(--font); font-weight: 600; }
.site-card--down { border-color: rgba(255, 95, 87, .45); }
.up-row, .pv-file { border-radius: 12px; }
.thumb { border-radius: 10px; }
.faq summary::after { font-family: var(--font); }
.legal-sec p, .faq-a { color: var(--muted); }
details.card > summary { font: 500 .85rem var(--font); letter-spacing: .08em; }
.sec--ok .sec-ico { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .auth-wrap::before, .auth-wrap::after, .auth-card::after { animation: none; }
}

/* ── Page headings: the site's hand-drawn underline under the accent word ── */
.page-head h1 .acc { position: relative; display: inline-block; }
.page-head h1 .acc::after {
  content: ""; position: absolute; left: -2%; bottom: -.14em; width: 104%; height: .2em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%230099ff'/%3E%3Cstop offset='1' stop-color='%237acaff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 9 C 20 3, 38 11, 58 7 S 88 3, 97 4' fill='none' stroke='url(%23g)' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  animation: drawUnder 1s var(--ease) .35s both;
}
@keyframes drawUnder { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ── spacing fixes on the new button size ── */
.pv-open { margin-top: .9rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }

/* ── Billing: payment plans ── */
.pill--c-draft, .pill--c-void, .pill--c-cancelled { color: var(--dim); }
.pill--c-sent, .pill--c-signed { color: var(--violet); }
.pill--c-active, .pill--pay-paid { color: var(--green); }
.pill--c-past_due, .pill--pay-failed { color: var(--red); }
.pill--c-ending, .pill--pay-refunded { color: var(--amber); }
.contract-card { display: block; color: inherit; text-decoration: none; }
.contract-card .eyebrow { margin-bottom: .9rem; }
.contract-price { margin: .3rem 0 .6rem; font-size: 1rem; }
.price { font: 600 1.7rem/1 var(--font); letter-spacing: -.03em; color: var(--text); }
.per { color: var(--muted); }
.row--static { cursor: default; }
.row--static:hover { background: transparent; padding-left: 0; }
.included { margin: .9rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.included li { position: relative; padding-left: 1.5rem; color: var(--text); }
.included li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg) translateY(-50%); }
.agreement .agr-body { margin-top: 1rem; max-width: 70ch; color: var(--muted); line-height: 1.7; }
.agreement .agr-title { font: 500 .66rem/1.4 var(--font-mono); letter-spacing: .24em; color: var(--accent); margin: 0 0 1rem; }
.agreement h4 { margin: 1.4rem 0 .3rem; font: 600 .98rem/1.4 var(--font); color: var(--text); letter-spacing: -.01em; }
.agreement p { margin: 0 0 .5rem; }
.signed-block { margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(122, 202, 255, .05); display: grid; gap: .25rem; }
.signed-block .sig { font: italic 300 1.7rem/1.2 "Fraunces", Georgia, serif; color: var(--text); }
.sign { display: grid; gap: .2rem; }
.sign .card-h { margin-bottom: .8rem; }
.sign .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.mono-ta { font-family: var(--font-mono); font-size: .8rem; line-height: 1.6; }
.hint code, .card code { font: .78rem var(--font-mono); padding: .05rem .35rem; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.approval-banner--bad { border-color: rgba(255, 95, 87, .5); background: color-mix(in srgb, var(--red) 8%, var(--panel)); }
.approval-banner--bad .approval-go { color: var(--red); }
.field .hint, small.hint { display: block; margin-top: .6rem; line-height: 1.55; }

/* on a phone the action (pay / sign / keep) comes before the facts, not after them */
@media (max-width: 900px) { .detail--billing aside { order: 0; } }

/* Billing > Payments: breathing room between the headline tiles and the filters */
.tiles + .chips { margin-top: 1.3rem; }

/* ── Outreach (admin): fill-in form, live email preview, sent log ── */
body[data-page="outreach"] .main { max-width: 1360px; }
.out-grid { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-top: 1.4rem; }
.out-preview { position: sticky; top: 1.2rem; padding: 1rem; display: grid; gap: .8rem; }
.out-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.out-preview-head .chips { margin: 0; }
.out-frame-wrap { overflow: auto; border-radius: 12px; background: #0d0f13; border: 1px solid var(--line); height: min(76vh, 860px); }
.out-frame { display: block; border: 0; width: 100%; height: 100%; background: #0d0f13; }
.out-frame-wrap[data-mode="phone"] .out-frame { width: 390px; max-width: 100%; margin: 0 auto; }
.out-frame-wrap[data-mode="desktop"] .out-frame { width: 740px; }
.out-more { margin: 0 0 1.1rem; border: 1px dashed var(--line-2); border-radius: 10px; padding: .8rem .9rem 0; }
.out-more > summary { cursor: pointer; padding-bottom: .8rem; font: 400 .64rem/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.out-more[open] > summary { color: var(--muted); }
.out-legal { margin: 1.1rem 0 0; }
.out-of { font-size: 1rem; font-weight: 400; color: var(--dim); }
.out-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: center; padding: .95rem 1.2rem; border-top: 1px solid var(--line); }
.out-item:first-child { border-top: 0; }
.out-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .7rem; min-width: 0; font-weight: 500; }
.out-title .muted { font-size: .8rem; font-weight: 400; overflow-wrap: anywhere; }
.out-side { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; }
.out-err { color: var(--red); }
.out-outcome { width: auto; min-height: 34px; padding: .3rem .8rem; border-radius: 99px; font-size: .8rem; }
.out-outcome--replied { color: var(--violet); }
.out-outcome--won { color: var(--green); }
.out-outcome--no { color: var(--dim); }
@media (max-width: 1100px) {
  .out-grid { grid-template-columns: minmax(0, 1fr); }
  .out-preview { position: static; }
  .out-frame-wrap { height: 70vh; }
}
@media (max-width: 620px) {
  .out-item { grid-template-columns: minmax(0, 1fr); }
  .out-side { justify-content: flex-start; }
}
