/* P2P On — cadastro, KYC, equipe e admin (complementa app.css + flow.css) */

/* topo com navegação por papel */
a.brand { color: inherit; text-decoration: none; }
.role { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; margin-right: 4px; }
.role-client { color: var(--cyan); background: rgba(31,182,255,.1); }
.role-kyc { color: var(--amber); background: rgba(255,200,87,.1); }
.role-admin { color: #c9a3ff; background: rgba(160,110,255,.14); }

.panel { gap: 20px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head h1, .kyc-hero h1 { margin: 2px 0 6px; font-size: 26px; letter-spacing: -.01em; }
.page-head p { margin: 0; max-width: 720px; }
.back { color: var(--muted); text-decoration: none; font-size: 13px; }
.back:hover { color: var(--text); }
.link-strong { color: var(--green); font-weight: 650; text-decoration: none; }
.link-strong:hover { text-decoration: underline; }
.status.big { font-size: 13px; padding: 7px 14px; }
.alert-ok { border-color: rgba(42,245,166,.35); background: rgba(42,245,166,.07); color: #b9ffe3; }
.alert-warn { border-color: rgba(255,200,87,.4); }
.alert { margin-top: 0; }
.empty { padding: 34px 10px !important; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.actions-row.end { justify-content: flex-end; }
.btn-xs { padding: 5px 9px; font-size: 12px; border-radius: 8px; }
.btn-ghost.danger { color: #ffb3c2; }
a.btn { display: inline-block; text-decoration: none; text-align: center; }
.btn-ok { background: rgba(42,245,166,.16); color: var(--green); box-shadow: inset 0 0 0 1px rgba(42,245,166,.45); }
.btn-warn { background: rgba(255,200,87,.12); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255,200,87,.4); }
.btn-bad { background: rgba(255,92,122,.12); color: var(--red); box-shadow: inset 0 0 0 1px rgba(255,92,122,.45); }
.btn-ok:hover, .btn-warn:hover, .btn-bad:hover { filter: brightness(1.2); }

/* campos genéricos */
.form select, .form textarea, .kform input, .kform select, .filter input, .filter select, .row-actions select, .row-actions input {
  background: rgba(255,255,255,.04); border: 1px solid var(--stroke); border-radius: 12px; padding: 11px 13px;
  color: var(--text); font: 14.5px var(--font); outline: 0; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form textarea { resize: vertical; min-height: 80px; }
select option { background: #0b1322; color: var(--text); }
.form select:focus, .form textarea:focus, .kform input:focus, .kform select:focus, .filter input:focus, .filter select:focus {
  border-color: rgba(42,245,166,.5); box-shadow: 0 0 0 4px rgba(42,245,166,.08);
}
input[type="date"] { color-scheme: dark; }
label.check { width: auto; height: auto; border-radius: 0; background: none; font-weight: 400; display: flex !important; align-items: flex-start; gap: 10px; color: var(--text) !important; font-size: 13px; line-height: 1.45; cursor: pointer; place-items: unset; }
label.check input { width: 17px; height: 17px; margin: 1px 0 0; flex: none; accent-color: var(--green); }

/* login / cadastro */
.auth-alt { margin: 18px 0 6px; font-size: 14px; }
.auth-wide { max-width: 460px; }
.meter { height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); margin-top: -6px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .3s, background .3s; }
.meter i[data-s="1"] { width: 25%; background: var(--red); }
.meter i[data-s="2"] { width: 50%; background: var(--amber); }
.meter i[data-s="3"] { width: 75%; background: var(--cyan); }
.meter i[data-s="4"] { width: 100%; background: var(--green); }

/* trilha de onboarding */
.onboard { list-style: none; margin: 18px 0; padding: 0; display: flex; justify-content: space-between; position: relative; counter-reset: o; }
.onboard::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 2px; background: var(--stroke); }
.onboard li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); flex: 1; }
.onboard li i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; background: #0d1626; border: 1px solid var(--stroke-2); transition: all .3s; }
.onboard li.done i { background: var(--grad); color: #04111d; border-color: transparent; font-size: 0; }
.onboard li.done i::after { content: "✓"; font-size: 14px; }
.onboard li.current i { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 5px rgba(42,245,166,.12); animation: pulse-o 2s infinite; }
.onboard li.current span { color: var(--text); font-weight: 600; }
.onboard li.failed i { border-color: var(--red); color: var(--red); }
@keyframes pulse-o { 50% { box-shadow: 0 0 0 9px rgba(42,245,166,.04); } }

/* KYC do cliente */
.kyc-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; }
.kyc-hero p { margin: 0; }
.kyc-state { display: flex; gap: 22px; align-items: center; animation: stage-in .45s cubic-bezier(.2,.8,.2,1); }
.state-icon { width: 64px; height: 64px; flex: none; border-radius: 20px; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.state-icon.wait { background: rgba(255,200,87,.12); color: var(--amber); }
.state-icon.wait::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin 1.1s linear infinite; }
.state-icon.ok { background: var(--grad); color: #04111d; }
.state-icon.ok::after { content: "✓"; }
.state-icon.bad { background: rgba(255,92,122,.14); color: var(--red); }
.state-icon.bad::after { content: "✕"; }
.state-icon.warn { background: rgba(255,200,87,.14); color: var(--amber); }
.state-icon.warn::after { content: "!"; }
.state-body h2 { margin: 0 0 4px; font-size: 20px; }
.state-body p { margin: 0; }
.state-body .alert { margin-top: 12px; }
.kyc-grid { display: grid; gap: 20px; }
.stage-card { animation: stage-in .45s cubic-bezier(.2,.8,.2,1) both; }
.stage-card:nth-child(2) { animation-delay: .06s; }
.stage-card:nth-child(3) { animation-delay: .12s; }
.num { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--grad); color: #04111d; font-size: 13px; font-weight: 800; }
.kform { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; }
.kform label, .kform fieldset { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); align-content: start; }
.kform .f-wide { grid-column: 1 / -1; }
.kform .f-2 { grid-column: span 2; }
.kform label.bad input, .kform label.bad select, .kform fieldset.bad { border-color: rgba(255,92,122,.6); }
.kform label.bad { color: #ffc2cf; }
.kform fieldset { border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.kform legend { padding: 0 6px; font-size: 12.5px; }
.kform .radio { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 14px; cursor: pointer; }
.kform .radio input { width: auto; accent-color: var(--green); }
.f-sep { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--stroke); margin-top: 4px; padding-top: 14px; }

.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.drop { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--stroke-2); background: rgba(255,255,255,.02); cursor: pointer; overflow: hidden; outline: 0; transition: border-color .2s, background .2s, transform .2s; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: rgba(42,245,166,.55); background: rgba(42,245,166,.04); }
.drop.over { transform: scale(1.01); }
.drop.has { border-style: solid; border-color: rgba(42,245,166,.35); }
.drop.err { border-color: rgba(255,92,122,.6); animation: shake .35s; }
.drop.err .drop-status { color: #ffb3c2; }
.drop.pop { animation: pop-in .5s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pop-in { 40% { transform: scale(1.03); } }
.drop-thumb { width: 72px; height: 72px; flex: none; border-radius: 12px; background: rgba(255,255,255,.05); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.drop-thumb svg { width: 28px; height: 28px; }
.drop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop-thumb img:not([hidden]) + svg { display: none; }
.drop-text { display: grid; gap: 2px; min-width: 0; }
.drop-text b { font-size: 14px; }
.drop-status { color: var(--green); font-weight: 600; }
.drop:not(.has) .drop-status { color: var(--muted); font-weight: 500; }
.drop.busy .drop-status { color: var(--cyan); }
.drop-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.drop-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.drop.busy .drop-thumb { animation: busy-pulse 1s ease-in-out infinite; }
@keyframes busy-pulse { 50% { opacity: .45; } }

.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.checks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--stroke-2); flex: none; transition: all .25s; }
.checks li.ok { color: var(--text); }
.checks li.ok::before { content: "✓"; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #04111d; background: var(--grad); border-color: transparent; }
#sec-submit .btn-block { margin-top: 16px; }

/* equipe: abas, casos */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); background: var(--panel-2); border-color: var(--stroke-2); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; font-size: 11.5px; line-height: 19px; text-align: center; background: rgba(255,255,255,.08); }
.case-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.kv dd { margin: 0; }
.decide form { margin: 0; }
.decide-form { gap: 12px; }
.checklist { border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 8px; }
.checklist legend { padding: 0 6px; font-size: 12.5px; color: var(--muted); }
.decide-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.decide-btns .btn { margin: 0; padding: 11px 8px; }
.decide > form + form { margin-top: 10px; }
.sub { font-size: 13px; color: var(--muted); margin: 22px 0 10px; font-weight: 650; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.timeline li p { margin: 6px 0 0; font-size: 13.5px; color: #cfd8e8; padding-left: 10px; border-left: 2px solid var(--stroke-2); }
.doc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.doc { margin: 0; display: grid; gap: 8px; align-content: start; }
.doc figcaption { font-size: 13px; }
.doc-pages { display: grid; gap: 8px; }
.doc-pages img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: #050912; border: 1px solid var(--stroke); transition: transform .2s, border-color .2s; }
.doc-pages a:hover img { transform: scale(1.015); border-color: rgba(42,245,166,.5); }
.doc-missing { height: 120px; display: grid; place-items: center; border-radius: 12px; border: 1px dashed var(--stroke-2); color: var(--red); font-size: 13px; }
.trail { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }
.trail time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-right: 6px; }
.trail code { color: var(--cyan); font-size: 12px; }
.trail.compact { max-height: 420px; overflow: auto; }

/* admin */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat { padding: 16px 18px; display: grid; gap: 4px; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
a.stat:hover { transform: translateY(-2px); border-color: var(--stroke-2); }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat.warn b { color: var(--amber); }
.stat.ok b { color: var(--green); }
.admin-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.admin-grid aside { display: grid; gap: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head .card-title { margin: 0; }
.filter { display: flex; gap: 8px; }
.filter select, .filter input { width: auto; padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.table.users tbody tr, .table.audit tbody tr { cursor: default; }
.table.users tr.off td { opacity: .55; }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 0; }
.row-actions select { width: auto; padding: 5px 8px; font-size: 12px; border-radius: 8px; }
.row-actions .code { width: 62px; padding: 5px 8px; font: 12px var(--mono); border-radius: 8px; text-align: center; }
.secret-box p { margin: 6px 0 10px; }
.secret-box .secret-line { display: inline-block; padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,.3); font-size: 15px; user-select: all; }
.table.audit td { vertical-align: top; }
.table.audit a { color: var(--cyan); text-decoration: none; }
.details span { display: inline-block; margin: 0 8px 2px 0; }
.details i { color: var(--muted); font-style: normal; }
.table td code, .trail code { word-break: break-all; }

@media (max-width: 1020px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .admin-grid, .case-grid, .kyc-hero { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .kform { grid-template-columns: 1fr 1fr; }
  .kform .f-2 { grid-column: 1 / -1; }
  .docs-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .user { display: none; }
  .onboard li span { font-size: 10px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-card, .kyc-state, .drop.pop, .onboard li.current i { animation: none !important; }
}

/* indicações */
.ref-hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; overflow: hidden; position: relative; }
.ref-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(42,245,166,.14), transparent 65%); pointer-events: none; }
.ref-hero h1 { margin: 6px 0 8px; font-size: 28px; letter-spacing: -.02em; }
.ref-hero p { margin: 0 0 14px; max-width: 620px; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ref-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke-2); margin-bottom: 10px; max-width: 640px; }
.ref-link code { flex: 1; min-width: 200px; font-size: 13.5px; color: var(--cyan); word-break: break-all; }
.ref-code { font-family: var(--mono); letter-spacing: .12em; color: var(--text); padding: 2px 8px; border-radius: 6px; background: var(--panel-2); }
.ref-qr { display: grid; justify-items: center; gap: 6px; position: relative; z-index: 1; }
.ref-qr img { background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 18px 40px -18px rgba(42,245,166,.5); animation: qr-in .6s cubic-bezier(.2,.9,.3,1.2); }
.ref-how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ref-how li { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--stroke); animation: item-in .4s both; }
.ref-how li:nth-child(2) { animation-delay: .05s; } .ref-how li:nth-child(3) { animation-delay: .1s; } .ref-how li:nth-child(4) { animation-delay: .15s; }
.ref-how i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; background: var(--grad); color: #04111d; margin-bottom: 4px; }
.ref-how span { font-size: 12.5px; color: var(--muted); }
.stat b.sm { font-size: 20px; }
.table.plain tbody tr { cursor: default; }
.payout-amount { font-size: 34px; font-weight: 750; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.payout p { margin: 4px 0 12px; }
.meter.big { height: 8px; margin: 10px 0 4px; }
.meter .fill { background: var(--grad); width: 0; }
.rules ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.ref-badge { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(42,245,166,.07); border: 1px solid rgba(42,245,166,.3); font-size: 14px; }
.ref-badge > span { font-size: 24px; }
.ref-details summary { cursor: pointer; color: var(--cyan); font-size: 13px; font-weight: 600; }
.ref-details label { margin-top: 10px; }
input.upper { text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.row-actions .note { width: 150px; padding: 5px 8px; font-size: 12px; border-radius: 8px; }
.row-actions.inline { display: inline-flex; margin-left: 6px; }
@media (max-width: 1020px) { .ref-hero { grid-template-columns: 1fr; } .ref-how { grid-template-columns: repeat(2, 1fr); } }

/* ---------- menu lateral ---------- */
:root { --side-w: 248px; }
body.has-side { padding-left: var(--side-w); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.side-toggle { position: absolute; opacity: 0; pointer-events: none; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30;
  display: flex; flex-direction: column; gap: 18px; padding: 20px 14px 16px;
  background: rgba(7, 13, 24, .92); backdrop-filter: blur(14px);
  border-right: 1px solid var(--stroke);
}
.sidebar .brand { padding: 2px 10px 6px; }
.side-nav { display: grid; gap: 2px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.side-group { margin: 14px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); opacity: .75; }
.side-group:first-child { margin-top: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 11px;
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 550;
  transition: background .15s, color .15s;
}
.side-nav a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.side-nav a[aria-current="page"] { color: var(--text); background: linear-gradient(90deg, rgba(42,245,166,.13), rgba(31,182,255,.05)); box-shadow: inset 0 0 0 1px rgba(42,245,166,.22); }
.side-nav a[aria-current="page"] svg { stroke: var(--green); }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--stroke); }
.side-foot form { margin: 0; }
.side-user { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.side-user .role { justify-self: start; }
.side-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.has-side .topbar { justify-content: flex-end; padding: 12px 28px; }
.side-burger, .brand-mobile, .side-scrim { display: none; }
.side-burger svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }

@media (max-width: 960px) {
  body.has-side { padding-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .side-toggle:checked ~ .sidebar { transform: none; }
  .side-toggle:checked ~ .side-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.45); }
  body.has-side .topbar { justify-content: space-between; padding: 10px 16px; gap: 12px; }
  .side-burger { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; border: 1px solid var(--stroke); }
  .brand-mobile { display: flex; font-size: 17px; margin-right: auto; }
}

/* ---------- configurações e clientes ---------- */
.cfg-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cfg-grid > div { display: grid; gap: 22px; }
.card .form select, .card .form input { width: 100%; }
.form select { background: rgba(255,255,255,.04); border: 1px solid var(--stroke); border-radius: 12px; padding: 11px 12px; color: var(--text); font: 14.5px var(--font); }
.form select option { background: #0b1424; }
.key-box { border: 1px solid var(--stroke); border-radius: 14px; padding: 16px; display: grid; gap: 12px; background: rgba(255,255,255,.02); }
.key-box h3 { margin: 0; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.key-box .hint { margin: -4px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.saved-line { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.saved-line code { color: var(--text); }
.mode-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode-opts label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--stroke); border-radius: 12px; cursor: pointer; color: var(--text); font-size: 13.5px; }
.mode-opts label:has(input:checked) { border-color: rgba(42,245,166,.5); background: rgba(42,245,166,.06); }
.mode-opts input { margin-top: 3px; accent-color: var(--green); }
.mode-opts small { display: block; color: var(--muted); font-size: 12px; }
.callout { border-radius: 14px; padding: 14px 16px; border: 1px solid var(--stroke); font-size: 13.5px; display: grid; gap: 8px; }
.callout.warn { border-color: rgba(255,200,87,.35); background: rgba(255,200,87,.06); }
.callout.info { border-color: rgba(31,182,255,.3); background: rgba(31,182,255,.05); }
.callout.err { border-color: rgba(255,92,122,.4); background: rgba(255,92,122,.07); }
.callout p { margin: 0; }
.inline-check { display: flex !important; gap: 8px; align-items: center; color: var(--text) !important; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.client-name { display: grid; }
.client-name a { color: var(--text); text-decoration: none; font-weight: 600; }
.client-name a:hover { color: var(--green); }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 22px; margin: 0; }
.kv-grid div { display: grid; gap: 2px; }
.kv-grid dt { font-size: 12px; color: var(--muted); }
.kv-grid dd { margin: 0; font-size: 14px; word-break: break-word; }
@media (max-width: 1020px) { .cfg-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .two, .three, .mode-opts { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 22px; align-content: start; }
.card .form .mode-opts input, .card .form .inline-check input { width: auto; padding: 0; flex: none; box-shadow: none; }
.mode-opts label > span { min-width: 0; }
