/* Huisstijlkleuren: pas deze variabelen aan naar de exacte Vellaro-kleuren */
:root {
  --brand: #1b1d20; --brand-2: #24272b; --brand-ink: #fff; --brand-line: rgba(255,255,255,.12); --accent: #5d6670; --accent-ink: #fff;
  --bg: #f5f4f0; --card: #fff; --ink: #18191b; --muted: #61676e; --line: #e2e0d9;
  --primary: #1b1d20; --primary-ink: #fff;
  --warn: #9a5b00; --warn-bg: #fff4df; --bad: #b3261e; --bad-bg: #fdecea; --good: #0b6e4f; --good-bg: #e5f3ec; --info-bg: #eef2f8;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
/* Merkzone: PixMedia | Vellaro Cars + Vellaro MarketDesk */
.top { background: var(--brand); color: var(--brand-ink); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--brand-line) inset; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px 20px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }
.logos { display: flex; align-items: center; gap: 14px; flex: none; }
.logos img { display: block; width: auto; max-width: none; }
.logo-pix { height: 24px; }
.logo-vel { height: 42px; margin-top: -4px; }
.logo-sep { width: 1px; height: 30px; background: var(--brand-line); }
.appname { font-size: 1.02rem; font-weight: 500; color: #d5d8dc; letter-spacing: .01em; white-space: nowrap; padding-left: 18px; border-left: 1px solid var(--brand-line); line-height: 1.2; }
.appname strong { color: #fff; font-weight: 750; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; color: #b9bec4; padding: 8px 12px; border-radius: 8px; font-size: .93rem; font-weight: 550; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a.active { color: #fff; background: rgba(255,255,255,.11); box-shadow: inset 0 -2px 0 #fff; }
.nav a:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (max-width: 1060px) {
  .nav { width: 100%; border-top: 1px solid var(--brand-line); padding-top: 6px; margin: 0 -4px; }
}
@media (max-width: 640px) {
  .bar { gap: 8px; padding-top: 10px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 6px; }
  .logo-pix { height: 20px; }
  .logo-vel { height: 34px; }
  .logo-sep { height: 26px; }
  .appname { padding-left: 0; border-left: 0; font-size: .95rem; }
  .nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; }
  .nav a { padding: 9px 10px; font-size: .9rem; text-align: center; background: rgba(255,255,255,.04); }
}
main.wrap { padding-top: 20px; min-height: 60vh; }
h1 { font-size: 1.5rem; margin: 6px 0 14px; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 18px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card.attention { border-color: var(--warn); background: var(--warn-bg); }
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h2 { display: inline; }
details.card > summary::after { content: "▾"; float: right; color: var(--muted); }
details[open].card > summary::after { content: "▴"; }
label { display: block; font-size: .85rem; font-weight: 600; margin: 12px 0 4px; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); font-size: .85em; }
input, textarea, select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input.kenteken { background: #f6c400; border: 2px solid #111; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 1.25rem; max-width: 240px; text-align: center; }
textarea { resize: vertical; }
.row { display: flex; gap: 8px; align-items: center; }
.row.space { justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; }
.grid2, .grid3 { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } .full { grid-column: 1 / -1; } }
button { font: inherit; cursor: pointer; border-radius: 10px; border: 0; padding: 10px 16px; }
button.primary { background: var(--primary); color: var(--primary-ink); font-weight: 700; padding: 14px 22px; width: 100%; }
button.primary:hover { background: #000; }
button.secondary { background: #fff; border: 1px solid var(--ink); color: var(--ink); white-space: nowrap; }
button.link { background: none; color: var(--ink); padding: 6px 0; text-decoration: underline; }
button.link.danger { color: var(--bad); font-size: .85rem; }
button:disabled { opacity: .6; cursor: progress; }
.actions { display: flex; flex-direction: column; gap: 6px; align-items: center; margin: 8px 0 16px; }
@media (min-width: 640px) { button.primary { width: auto; } .actions { flex-direction: row; gap: 18px; } }
.hint { color: var(--muted); font-size: .88rem; margin: 6px 0; }
.msg { padding: 10px 12px; border-radius: 10px; font-size: .92rem; margin: 10px 0; }
.msg.err { background: var(--bad-bg); color: var(--bad); }
.msg.ok { background: var(--good-bg); color: var(--good); }
.msg.info { background: var(--info-bg); }
.banner { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: .93rem; background: var(--info-bg); border: 1px solid #cbd6e8; }
.banner.demo { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); font-weight: 600; }
.hidden { display: none !important; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.comp { border: 1px dashed var(--line); border-radius: 10px; padding: 4px 12px 8px; margin-bottom: 10px; }

/* Beginscherm */
.hero { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 26px 20px; margin-bottom: 16px; }
.hero h1 { margin: 0 0 6px; font-size: 1.7rem; }
.hero p { margin: 0; color: #c9cdd2; }
.choice { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 700px) { .choice { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .08s, box-shadow .08s; border-top: 4px solid var(--brand); }
.choice a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.choice .t { font-size: 1.25rem; font-weight: 800; }
.choice .d { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.choice .go { margin-top: 14px; font-weight: 700; }

/* Tabs */
.tabs { display: flex; gap: 6px; margin-bottom: 6px; background: #efeee9; padding: 4px; border-radius: 12px; width: fit-content; }
.tabs button { background: none; padding: 8px 14px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Resultaat */
.price { border: 2px solid var(--ink); }
.price .big { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price .sub, .sub { color: var(--muted); font-size: .88rem; }
.kpis { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 6px 0 12px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(3, 1fr); } .kpis.k4 { grid-template-columns: repeat(4, 1fr); } }
.kpi .lbl { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.kpi .val { font-size: 1.35rem; font-weight: 800; }
.kpi.main .val { font-size: 2rem; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.pill.hoog, .pill.passend, .pill.goede-deal, .pill.positief, .pill.gekocht, .pill.verkocht { background: var(--good-bg); color: var(--good); }
.pill.gemiddeld, .pill.krap, .pill.let-op, .pill.bod-gedaan { background: var(--warn-bg); color: var(--warn); }
.pill.laag, .pill.aan-de-hoge-kant, .pill.aan-de-lage-kant, .pill.te-duur, .pill.afgewezen { background: var(--bad-bg); color: var(--bad); }
.pill.bekeken, .pill.te-koop, .pill.inkoop, .pill.verkoop { background: #eceae4; color: #3b3f44; }
.deal { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; font-weight: 600; }
.deal .h { font-size: 1.35rem; font-weight: 800; margin-bottom: 2px; }
.deal.goede-deal { background: var(--good-bg); color: var(--good); border: 2px solid var(--good); }
.deal.krap { background: var(--warn-bg); color: var(--warn); border: 2px solid var(--warn); }
.deal.te-duur { background: var(--bad-bg); color: var(--bad); border: 2px solid var(--bad); }
.deal.onbekend { background: var(--info-bg); border: 2px solid #cbd6e8; }
.verdict { padding: 10px 12px; border-radius: 10px; background: #f3f2ee; margin: 8px 0; }
.note { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; margin: 10px 0; }
ul.tight { margin: 4px 0; padding-left: 20px; }
ul.tight li { margin: 3px 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .93rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.src { font-size: .78rem; color: var(--muted); }
.verified { color: var(--good); font-weight: 700; }
.calc { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .calc { grid-template-columns: 1fr 1fr; } }
.calc .cost { display: grid; grid-template-columns: 1fr 130px; gap: 8px; align-items: center; margin-bottom: 6px; }
.calc .cost label { margin: 0; font-weight: 500; color: var(--ink); }
.calc .cost input { text-align: right; padding: 8px 10px; }
table.sum { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.sum td { padding: 6px 0; border-bottom: 1px solid var(--line); }
table.sum td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.sum tr.total td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); }
.switch { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin-top: 8px; }
.switch input { width: auto; }
.risks li { margin-bottom: 8px; list-style: none; }
.risks { padding-left: 0; }
.risks .pill { margin-right: 6px; min-width: 64px; text-align: center; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.cmp th, table.cmp td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
table.cmp tr.mine td { background: #f3f2ee; font-weight: 700; }
table.cmp tr.click { cursor: pointer; }
table.cmp tr.click:hover td { background: #faf9f6; }
.fict { color: var(--bad); font-weight: 700; }
@media (max-width: 700px) {
  table.cmp thead { display: none; }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp td { display: block; width: 100%; }
  table.cmp tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 6px 10px; }
  table.cmp td { border: 0; padding: 3px 0; display: flex; gap: 8px; }
  table.cmp td::before { content: attr(data-l); color: var(--muted); min-width: 110px; font-size: .82rem; }
}
.bar-range { position: relative; height: 10px; background: #e9e7e0; border-radius: 6px; margin: 26px 0 30px; }
.bar-range .iq { position: absolute; top: 0; bottom: 0; background: #cfcabd; border-radius: 6px; }
.bar-range .mk { position: absolute; top: -6px; width: 3px; height: 22px; background: var(--ink); }
.bar-range .mk span { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .75rem; color: var(--muted); }
.bar-range .mk.top span { top: -20px; }
.fb { display: grid; gap: 12px; grid-template-columns: 1fr; }
.fb section { border-radius: 12px; padding: 12px 14px; }
.fb .goed { background: var(--good-bg); }
.fb .beter { background: var(--warn-bg); }
.fb .ontbreekt { background: var(--bad-bg); }
.fb h3 { margin-top: 0; }
.fb li { margin-bottom: 8px; }
.fb .sug { display: block; font-size: .9rem; color: #33393f; }
.fb q { font-style: italic; color: var(--muted); }
pre.ad { white-space: pre-wrap; background: #f8f8f6; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: .92rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy { font-size: .85rem; padding: 6px 12px; }
.ph { background: #fff1b8; border-radius: 3px; }
.foot { color: var(--muted); font-size: .8rem; padding-top: 14px; padding-bottom: 40px; }
.foot p { margin: 4px 0; }
.credit a { font-weight: 700; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.toolbar > div { min-width: 150px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
@media (max-width: 480px) {
  .brand { letter-spacing: .14em; }
  .brand .wm { font-size: 1rem; }
  .brand .wm2 { display: none; }
  .nav a { padding: 6px 7px; font-size: .9rem; }
  .kpis.k4 { grid-template-columns: 1fr 1fr; }
  .kpi.main { grid-column: 1 / -1; }
}

/* Uitrusting */
.opt-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.opt-row { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.opt-row:last-child { border-bottom: 0; }
.opt-row.confirmed { background: #fbfaf4; box-shadow: inset 3px 0 0 var(--accent); }
.opt-main { flex: 1 1 260px; min-width: 0; }
.opt-name { font-weight: 600; }
.opt-src { font-size: .8rem; color: var(--muted); }
.opt-ctrl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border-radius: 0; padding: 5px 11px; background: #fff; font-weight: 700; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on.st-aanwezig { background: var(--good-bg); color: var(--good); }
.seg button.on.st-afwezig { background: var(--bad-bg); color: var(--bad); }
.seg button.on.st-onbekend { background: #eceae4; color: var(--ink); }
.st-aanwezig { color: var(--good); font-weight: 600; } .st-afwezig { color: var(--bad); font-weight: 600; }
.star { background: none; padding: 2px 6px; font-size: 1.1rem; color: #cfcabd; }
.star.on { color: var(--brand); }
.req-l { display: inline-flex; gap: 4px; align-items: center; margin: 0; font-size: .8rem; font-weight: 500; color: var(--ink); }
.req-l input { width: auto; }
button.small { font-size: .8rem; padding: 2px 4px; }
.small-btn { font-size: .85rem; padding: 6px 10px; }
.tag { font-size: .7rem; background: #eceae4; border-radius: 6px; padding: 1px 6px; font-weight: 600; color: var(--muted); }
.tag.req { background: var(--accent); color: var(--accent-ink); }
.warn { color: var(--warn); font-weight: 600; }
.hint-i { color: #3b5b8a; }
.sub-details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.sub-details summary { cursor: pointer; }
.chip { display: inline-block; font-size: .74rem; border-radius: 999px; padding: 1px 8px; margin: 1px 0; white-space: nowrap; }
.chip.yes { background: var(--good-bg); color: var(--good); }
.chip.no { background: var(--bad-bg); color: var(--bad); }
.chip.unk { background: #eceae4; color: var(--muted); }
td.chips { max-width: 280px; }
tr.counts td:first-child { box-shadow: inset 3px 0 0 var(--good); }
.ok { color: var(--good); }
.inds { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .inds { grid-template-columns: 1fr 1fr; } }
.ind { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ind.active { border: 2px solid var(--ink); }
.ind .lbl { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.ind .val { font-size: 1.7rem; font-weight: 800; }
.warnlist li { color: var(--warn); font-size: .9rem; }
body.busy { cursor: progress; }
body.busy #optCard { opacity: .6; pointer-events: none; }

/* Import */
.tabs.land { margin-bottom: 14px; }
.srcs { display: flex; flex-direction: column; gap: 4px; }
.src-l { display: flex; gap: 6px; align-items: center; margin: 0; font-weight: 500; color: var(--ink); font-size: .92rem; }
.src-l input { width: auto; }
.src-l.off { color: var(--muted); }
.regimes { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
@media (min-width: 900px) { .regimes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.regime { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
table.scen td { text-align: right; font-size: .88rem; }
table.scen td:first-child { text-align: left; color: var(--muted); }
td.bad, .bad { color: var(--bad); }
.pill.tiny { font-size: .68rem; padding: 0 6px; }
.cost-row { display: grid; grid-template-columns: 1fr 140px 30px; gap: 8px; margin-bottom: 6px; align-items: center; }
.cost-row input:nth-child(2) { text-align: right; }
.file-sm { font-size: .75rem; padding: 2px; border: 0; }
.checklist input, .checklist select { padding: 6px 8px; font-size: .88rem; }

/* Opmaakcorrecties: tabellen blijven binnen de kaart, lange teksten breken netjes af */
.card { min-width: 0; }
.tbl-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.cmp td { overflow-wrap: anywhere; word-break: normal; }
table.cmp td.uitv { min-width: 160px; max-width: 260px; }
table.cmp td.num { white-space: nowrap; }
table.cmp th { white-space: normal; }
table.cmp-opt td.chips { min-width: 110px; max-width: 200px; }
table.cmp-opt td.afw { min-width: 110px; max-width: 170px; }
.afw-i { display: inline-block; font-size: .78rem; background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 1px 6px; margin: 1px 2px 1px 0; }
.bron { font-weight: 600; white-space: nowrap; }
table.cmp-opt td:first-child { min-width: 112px; }
.tag { white-space: nowrap; }
.tag.tag-ok { background: var(--good-bg); color: var(--good); }
@media (min-width: 701px) { table.cmp { min-width: 760px; } }

.regime { min-width: 0; }
table.scen td { padding-left: 8px; }
table.scen td:first-child { padding-left: 0; }
@media (max-width: 480px) {
  .regime { padding: 10px; }
  table.scen { font-size: .8rem; }
  table.scen td:first-child { max-width: 110px; }
  .kpis.k4 .kpi { min-width: 0; }
}

@media (max-width: 480px) { table.scen td { padding-left: 4px; } table.scen tr:not(:first-child) td:not(:first-child) { white-space: nowrap; overflow-wrap: normal; } table.scen tr:first-child td { white-space: normal; overflow-wrap: normal; word-break: normal; } table.scen { font-size: .74rem; } table.scen td:first-child { max-width: 96px; } }

/* ---------- Inloggen, account en beheer ---------- */
body.signed-out .top .nav, body.signed-out .top .usermenu, body.no-org .top .nav { display: none; }
body.signed-out .top { display: none; }
body.signed-out .foot .credit { display: none; }
.org-brand { display: flex; align-items: center; min-height: 34px; }
.org-brand .logo-org { height: 40px; max-width: 180px; object-fit: contain; }
.org-name { color: #fff; font-weight: 750; font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.bar { position: relative; }
.usermenu { flex: none; }
.um { position: relative; }
.um summary { list-style: none; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: .85rem; user-select: none; }
.um summary::-webkit-details-marker { display: none; }
.um summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.um[open] summary { background: rgba(255,255,255,.22); }
.um-pop { position: absolute; right: 0; top: 44px; min-width: 240px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 6px; z-index: 20; }
.um-who { padding: 10px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 1px; font-size: .88rem; }
.um-who span { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.um-pop a, .um-pop button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; text-decoration: none; background: none; color: var(--ink); font: inherit; font-size: .92rem; font-weight: 500; }
.um-pop a:hover, .um-pop button:hover { background: var(--bg); }
.um-pop button { color: var(--bad); }
@media (max-width: 1060px) { .usermenu { position: absolute; right: 16px; top: 16px; } }
@media (max-width: 640px) { .usermenu { top: 12px; } }

.auth { min-height: 82vh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 28px 0; }
.auth-brand { display: flex; align-items: center; gap: 16px; background: var(--brand); padding: 16px 22px; border-radius: 14px; }
.auth-brand .logo-pix { height: 26px; }
.auth-brand .logo-vel { height: 46px; margin-top: -4px; }
.auth-brand .logo-sep { width: 1px; height: 32px; background: var(--brand-line); }
.auth-card { width: min(420px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px; }
.auth-app { font-size: .82rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.auth-app strong { color: var(--ink); }
.auth-card h1 { margin: 0 0 6px; font-size: 1.4rem; }
.auth-card .msg { margin: 14px 0 0; }
.auth-card button.primary { margin-top: 18px; }
.auth-links { margin: 14px 0 0; font-size: .9rem; text-align: center; }
.auth-foot { margin: 0; color: var(--muted); font-size: .8rem; }
.wrap-row { flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.wrap-row .grow { flex: 1 1 220px; }
.wrap-row .end { padding-bottom: 1px; }
.wrap-row label { margin-top: 0; }
.copylink { margin-top: 6px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.logo-row { align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-preview { background: var(--brand); border-radius: 10px; padding: 8px 12px; display: inline-flex; }
.logo-preview img { height: 36px; max-width: 180px; object-fit: contain; }
.choice.orgs a.current { border-top-color: var(--good); }
table.team select { width: auto; padding: 6px 8px; }
.btnlink { display: inline-block; margin-top: 8px; font-weight: 700; }
