/* Client area (/client) + business pages in the admin — loaded after admin.css. Charts, project cards, invoice document. */
:root {
  --c-done: #044F80; --c-track: #dbe5ef; --c-grid: #e8eef5; --c-axis: #5a6b7d; --c-ink: #0b1b2b;
  --c-good: #15803d; --c-bad: #c2302f; --c-area: rgba(4, 79, 128, .10);
}

/* Sidebar variant for clients: a little lighter than the admin */
.side-client { background: linear-gradient(180deg, #06263f, #053558); }
.side-client .side-brand span { color: #7dd3fc; }

/* Admin "Log in as client" banner */
.imp-bar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: -16px -22px 14px; padding: 9px 22px; background: #fef3c7; border-bottom: 2px solid #f59e0b; color: #78350f; font-size: .86rem; }
.imp-bar span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.imp-bar form { margin: 0; }
@media (max-width: 860px) { .imp-bar { margin: -16px -16px 12px; padding: 8px 16px; } }

/* Auth pages */
.auth-wide { max-width: 620px; }
.is-auth .main:has(.auth-wide) { max-width: 660px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; font-size: .9rem; }
.auth-alt { margin-top: 12px; }
.btn-google { gap: 10px; padding: 11px 16px; border-color: #dadce0; color: #3c4043; font-weight: 600; }
.btn-google:hover { background: #f8faff; border-color: #c6d2e6; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .8rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.g-linked { display: flex; align-items: center; gap: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.req { color: var(--coral); font-style: normal; }

/* Extra badges */
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-amber { background: #fef3c7; color: var(--amber); }
.badge-green { background: #dcfce7; color: var(--c-good); }
.badge-red { background: #fde2e1; color: var(--c-bad); }
.t-good { color: var(--c-good); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.table.compact td, .table.compact th { padding: 8px 10px; }

/* Dashboard */
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
  background: radial-gradient(500px 200px at 100% 0%, rgba(14,165,233,.12), transparent), #fff; }
.welcome h2 { font-size: 1.25rem; margin-bottom: 4px; }
.welcome p { margin: 0; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.empty svg { color: var(--navy); opacity: .7; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.proj-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.proj-card:hover { text-decoration: none; border-color: rgba(4,79,128,.4); box-shadow: 0 12px 30px -18px rgba(6,38,63,.35); }
.proj-card h3 { margin: 0; font-size: 1.05rem; }
.pc-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pc-progress { display: flex; align-items: center; gap: 10px; }
.pc-progress b { font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.meter { flex: 1; height: 8px; border-radius: 99px; background: var(--c-track); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 99px; background: var(--c-done); }
.pc-money { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); }
.pc-money b { color: var(--ink); }

/* Order catalogue & form */
.lead-note { max-width: 760px; margin: 0 0 18px; }
.group-title { margin: 6px 0 12px; font-size: 1.05rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 26px; }
.cat-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.cat-card:hover { text-decoration: none; border-color: rgba(4,79,128,.4); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(6,38,63,.4); }
.cat-card h3 { margin: 0; font-size: 1rem; }
.cat-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.cat-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--navy); }
.cat-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.cat-go { display: inline-flex; align-items: center; gap: 4px; color: var(--navy); font-weight: 600; font-size: .88rem; }
.budget-row { display: flex; gap: 8px; }
.budget-row select { width: 120px; flex: none; }
fieldset.optional { border: 1px dashed #cdd8e4; border-radius: 12px; padding: 12px 14px; display: grid; gap: 12px; margin: 0; }
fieldset.optional legend { padding: 0 6px; color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.order-side h2 { margin: 12px 0 6px; }
.steps { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.steps b { color: var(--ink); }

/* Project page */
.proj-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.proj-head h2 { font-size: 1.3rem; margin: 4px 0 0; }
.proj-grid-2 { align-items: start; }
.sub-title { font-size: .95rem; margin: 18px 0 8px; }
.progress-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 8px; }
.pc-line { border-top: 1px solid var(--line); padding-top: 12px; }
.progress-charts figure { margin: 0; }
.pc-donut { text-align: center; }
.pc-donut figcaption { margin-top: 4px; }
.pc-line figcaption { margin-bottom: 4px; }
.chart-donut .d-track { stroke: var(--c-track); }
.chart-donut .d-done { stroke: var(--c-done); }
.chart-donut .d-num { font: 700 30px var(--font); fill: var(--c-ink); font-variant-numeric: tabular-nums; }
.chart-donut .d-cap { font: 500 12px var(--font); fill: var(--c-axis); }
.chart-line { width: 100%; height: auto; display: block; }
.chart-line .l-grid { stroke: var(--c-grid); stroke-width: 1; }
.chart-line .l-axis { font: 12px var(--font); fill: var(--c-axis); }
.pc-line .chart-line { max-width: 560px; }
.chart-line .l-path { fill: none; stroke: var(--c-done); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-line .l-area { fill: var(--c-area); }
.chart-line .l-hit { fill: transparent; cursor: pointer; }
.chart-line .l-dot { fill: var(--c-done); stroke: #fff; stroke-width: 2; pointer-events: none; }
.chart-line .l-pt:hover .l-dot { r: 7; }
.checklist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.ck { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #cbd5e1; color: #fff; }
.is-done .ck { background: var(--c-good); border-color: var(--c-good); }
.is-done .ck-title { color: var(--muted); }
.ck-w { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-done); box-shadow: 0 0 0 3px #fff; }
.timeline time { color: var(--muted); font-size: .8rem; margin-right: 8px; }
.timeline p { margin: 2px 0 0; font-size: .92rem; }
.money-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.money-tiles div { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.money-tiles span { display: block; color: var(--muted); font-size: .8rem; }
.money-tiles b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.pay-bar { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; background: transparent; }
.pay-bar span { display: block; height: 100%; cursor: default; }
.pb-paid { background: var(--c-good); border-radius: 99px 0 0 99px; }
.pb-due { flex: 1; background: var(--c-track); border-radius: 0 99px 99px 0; }
.pay-bar .pb-paid:only-child { border-radius: 99px; }
.pay-bar .pb-due:only-child { border-radius: 99px; }
.legend { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 8px 0 0; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.lg-paid { background: var(--c-good); }
.lg-due { background: var(--c-track); margin-left: 10px; }
.price-pending { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 12px 14px; }
.price-pending p { margin: 0 0 4px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }
.pre { white-space: normal; margin: 0; }
.li-right { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tooltip */
.tip { position: fixed; z-index: 50; pointer-events: none; max-width: 280px; padding: 7px 10px; border-radius: 8px; background: #0b1b2b; color: #fff; font-size: .8rem; line-height: 1.4; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }

/* Invoice document — the same layout as the PDF, on the company letterhead (assets/img/invoice-letterhead.jpg).
   Phones: a simple card (no letterhead). From 620px wide: an exact A4 sheet that scales with the width (cqw units). */
.invoice-doc { --inv-navy: #04507F; --inv-dark: #0A2A40; max-width: 860px; container: inv / inline-size; }
.inv-sheet { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(6,38,63,.35); font-size: 14px; color: #1e293b; padding: 22px 20px; }
.invoice-doc small { font-size: .85em; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 3px solid var(--coral); }
.inv-logo { height: auto; max-width: 42%; }
.inv-title { text-align: right; display: grid; gap: .2em; }
.inv-title h2 { color: var(--inv-dark); font-size: 1.7em; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.inv-title span { color: var(--inv-navy); font-weight: 700; font-size: .95em; }
.inv-body { flex: 1; }
.inv-top { display: flex; justify-content: space-between; gap: 1.2em; flex-wrap: wrap; margin-bottom: 1.2em; }
.inv-billto { display: grid; gap: .1em; color: var(--muted); font-size: .92em; }
.inv-billto small, .inv-project small { text-transform: uppercase; letter-spacing: .06em; font-size: .72em; font-weight: 700; color: var(--muted); }
.inv-billto b { color: #1e293b; font-size: 1.25em; }
.inv-meta { display: grid; justify-items: end; gap: .8em; }
.inv-meta dl { display: grid; grid-template-columns: auto auto; gap: .25em 1.2em; margin: 0; font-size: .92em; }
.inv-meta dt { color: var(--muted); }
.inv-meta dd { margin: 0; font-weight: 700; text-align: right; }
.inv-stamp { padding: .3em 1.4em; border: 2px solid; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 1.05em; }
.inv-meta .stamp-paid { color: #16a34a; }
.inv-meta .stamp-unpaid { color: var(--coral); }
.inv-meta .stamp-void { color: var(--muted); }
.inv-project { display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; background: #f1f5f9; border-left: 4px solid var(--inv-navy); padding: .8em 1.1em; margin-bottom: 1.4em; }
.inv-project div { display: grid; }
.inv-project b { font-size: 1.12em; }
.inv-project span { color: var(--muted); font-size: .85em; }
.invoice-doc h3 { font-size: 1.1em; margin: 1.3em 0 .6em; color: var(--inv-dark); }
.inv-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.inv-table th { text-align: left; background: var(--inv-navy); color: #fff; font-size: .78em; text-transform: uppercase; letter-spacing: .04em; padding: .7em .9em; }
.inv-table td { padding: .75em .9em; border-bottom: 1px solid #dbe3ec; background: rgba(255,255,255,.55); }
.inv-table tbody tr:nth-child(even) td { background: rgba(248,250,252,.8); }
.inv-table th.num, .inv-table td.num { text-align: right; }
.inv-totals { margin: 1.3em 0 0 auto; border-collapse: collapse; width: 42%; min-width: 260px; font-size: .95em; }
.inv-totals td { padding: .35em .9em; }
.inv-totals td:first-child { color: var(--muted); }
.inv-totals td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.inv-totals tr.grand td { background: var(--inv-navy); color: #fff; font-weight: 700; padding: .7em .9em; font-size: 1.08em; }
.inv-totals tr.grand td:first-child { box-shadow: inset 4px 0 0 var(--coral); }
.inv-note { margin-top: 1.6em; }
.inv-note h3 { margin: 0 0 .3em; }
.inv-note h3::after { content: ""; display: block; width: 3em; height: 2px; background: var(--coral); margin-top: .45em; }
.inv-note p { margin: 0; color: #334155; font-size: .95em; line-height: 1.6; }
.inv-sign { display: flex; justify-content: space-between; gap: 2em; margin-top: 3.5em; }
.inv-sign div { flex: 0 1 32%; display: grid; font-size: .92em; }
.inv-sign span { display: block; border-top: 1px solid #94a3b8; margin-bottom: .5em; }
.inv-sign small { color: var(--muted); }
.inv-foot { margin-top: 2em; text-align: center; color: var(--muted); font-size: .85em; }

/* Wide: the A4 letterhead sheet. Proportions follow the PDF (595 × 842 pt): margins 40pt ≈ 6.7cqw, content between the bands. */
@container inv (min-width: 620px) {
  .inv-sheet { aspect-ratio: 1413 / 2000; border-radius: 4px; padding: 0 6.7cqw 13.5cqw; font-size: 1.6cqw;
    background: #fff var(--lh, url("../img/invoice-letterhead.jpg")) 0 0 / 100% 100% no-repeat;   /* --lh: the letterhead chosen in the admin */ }
  .inv-head { justify-content: flex-end; border: 0; margin: 0; padding: 10.6cqw 0 0; min-height: 23.9cqw; }
  .inv-logo { display: none; }
  .inv-title h2 { font-size: 2.2em; }
  .inv-title span { font-size: 1.15em; }
  .inv-top { flex-wrap: nowrap; }
  .inv-foot-contact { display: none; }   /* the letterhead already shows them */
  .inv-foot { margin-top: auto; padding-top: 1.5em; }
}

/* Admin: a project's current step, highlighted at the end of its row */
.step { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: .76rem; font-weight: 700; border: 1px solid; white-space: nowrap; }
.step i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.step-info  { color: #0369a1; background: #e0f2fe; border-color: #bae6fd; }   /* New order */
.step-amber { color: #a16207; background: #fef9c3; border-color: #fde68a; }   /* Under discussion, On hold */
.step-blue  { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; }   /* In progress */
.step-green { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }   /* Completed */
.step-red   { color: #b91c1c; background: #fee2e2; border-color: #fecaca; }   /* Cancelled */
.step-info i, .step-blue i { animation: step-pulse 1.8s ease-in-out infinite; }
@keyframes step-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .step i { animation: none; } }

/* Admin: Invoice design (letterhead) */
.lh-frame { display: block; max-width: 440px; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 16px 40px -24px rgba(6,38,63,.45); }
.lh-frame img { display: block; width: 100%; height: auto; }
.lh-rules { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* Admin: portfolio order numbers */
.pos-form { margin: 0; }
.pos-input { width: 62px; padding: 6px 8px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
tr:target td { background: #fffbeb; transition: background 1.5s; }

/* Admin: portfolio section & danger zone on the project page */
.pf-section { margin-top: 22px; display: grid; gap: 16px; }
.pf-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-head h2 { margin-bottom: 4px; }
.pf-state { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); flex-wrap: wrap; }
.pf-state.ok { color: var(--c-good); }
.pf-state.warn { color: var(--amber); }
.hist-row { display: grid; grid-template-columns: 140px 70px minmax(0, 1fr) auto 34px; gap: 6px; align-items: center; margin: 0; }
.hist-row .input { padding: 7px 9px; }
@media (max-width: 700px) { .hist-row { grid-template-columns: 1fr 70px; } .hist-row [name=note] { grid-column: 1 / -1; } }
.danger-zone { margin-top: 22px; border-color: #f2c4c3; }
.danger-zone h2 { color: #c2302f; }
.row-btns .check { margin-right: 8px; }

/* Admin business pages */
.task-row, .stage-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 90px 34px; gap: 8px; align-items: center; }
.stage-row { grid-template-columns: minmax(0, 1fr) 90px 110px 34px; }
.task-row .input, .stage-row .input { padding: 7px 10px; }
.rows { display: grid; gap: 6px; }
.rows-head { display: grid; gap: 8px; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.sum-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; padding-top: 6px; }
.sum-ok { color: var(--c-good); font-weight: 600; }
.sum-bad { color: var(--c-bad); font-weight: 600; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #f2c4c3; background: #fff; color: #c2302f; cursor: pointer; }
.icon-btn:hover { background: #c2302f; color: #fff; }
.task-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--c-good); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.inline-form .field { flex: 1 1 160px; }
details.box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fafcfe; }
details.box summary { cursor: pointer; font-weight: 600; }
details.box[open] summary { margin-bottom: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

@media (max-width: 860px) {
  .progress-charts { grid-template-columns: minmax(0, 1fr); }
  .money-tiles { grid-template-columns: minmax(0, 1fr); }
  .inv-parties { grid-template-columns: minmax(0, 1fr); }
  .inv-head, .inv-body { padding: 20px; }
  .inv-totals { min-width: 0; width: 100%; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .stage-row { grid-template-columns: minmax(0, 1fr) 70px 90px 34px; }
}

@media print {
  .side, .top, .no-print, .alert, .tip { display: none !important; }
  body, .has-side { display: block; background: #fff; }
  body .main { padding: 0; }
  .editor-layout { display: block; }
  .invoice-doc { max-width: none; }
  .inv-sheet { border: 0; border-radius: 0; box-shadow: none; }
  .inv-sheet, .inv-table th, .inv-totals tr.grand td, .inv-project { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Printing an invoice: one A4 sheet edge to edge, so the letterhead lines up like the PDF. */
.invoice-doc { page: invoice; }
@page invoice { size: A4; margin: 0; }

/* ---------- Compact client area (2026-11) — same feel as the admin; the shared compact rules are in admin.css ---------- */
.portal .welcome { padding: 14px 18px; margin-bottom: 12px; gap: 12px; }
.portal .welcome h2 { font-size: 1.08rem; margin-bottom: 2px; }
.portal .welcome p { font-size: .86rem; }
.portal .empty { padding: 18px 10px; font-size: .9rem; }
.portal .proj-grid, .portal .cat-grid { gap: 10px; }
.portal .proj-card { padding: 12px 14px; gap: 7px; }
.portal .proj-card h3 { font-size: .95rem; }
.portal .pc-money { font-size: .8rem; }
.portal .meter { height: 6px; }
.portal .lead-note { font-size: .88rem; margin-bottom: 14px; }
.portal .group-title { font-size: .95rem; margin-bottom: 10px; }
.portal .cat-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 20px; }
.portal .cat-card { padding: 14px; gap: 6px; }
.portal .cat-card h3 { font-size: .92rem; }
.portal .cat-card p { font-size: .82rem; }
.portal .cat-ico { width: 36px; height: 36px; border-radius: 10px; }
.portal .cat-ico svg { width: 18px; height: 18px; }
.portal .cat-go { font-size: .82rem; }
.portal .steps { font-size: .84rem; gap: 6px; }
.portal .proj-head { margin-bottom: 12px; }
.portal .proj-head h2 { font-size: 1.1rem; }
.portal .progress-charts .chart-donut { width: 150px; height: 150px; }
.portal .checklist li { padding: 6px 2px; font-size: .88rem; }
.portal .ck { width: 19px; height: 19px; border-radius: 6px; }
.portal .timeline { gap: 9px; }
.portal .timeline p { font-size: .86rem; }
.portal .money-tiles { gap: 8px; margin-bottom: 10px; }
.portal .money-tiles div { padding: 9px 11px; border-radius: 10px; }
.portal .money-tiles span { font-size: .74rem; }
.portal .money-tiles b { font-size: 1.05rem; }
.portal .pay-bar { height: 10px; }
.portal .price-pending { padding: 10px 12px; font-size: .88rem; }
.portal .facts { font-size: .86rem; gap: 4px 12px; }
.portal fieldset.optional { padding: 10px 12px; gap: 10px; }
.portal .budget-row select { width: 104px; }
/* Sign-in / sign-up cards */
.portal .auth-card { padding: 24px; border-radius: 16px; }
.portal .auth-card h1 { font-size: 1.12rem; margin: 14px 0 12px; }
.portal .auth-card img { width: 160px; height: auto; }
.portal .auth-links { font-size: .84rem; margin-top: 14px; }
.portal .btn-google { padding: 8px 14px; }
.portal .or-line { margin: 12px 0; }

/* Admin: Facebook Pixel guide */
.px-guide ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 10px; font-size: .9rem; line-height: 1.6; }
.px-guide ol b { color: var(--navy); }
