/* Pushup admin styles. Same-origin only, no inline styles (CSP). 8px spacing grid. */
:root {
  color-scheme: light dark;
  --bg: #f4f5f9; --surface: #ffffff; --surface-2: #f8f9fc; --text: #1a1d29; --muted: #596273;
  --border: #e1e4ec; --border-strong: #c9cedb;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-fg: #ffffff; --accent-soft: #eceafd; --accent-soft-fg: #3730a3;
  --success-bg: #dcfce7; --success-fg: #166534; --success-solid: #16a34a;
  --warning-bg: #fef3c7; --warning-fg: #92400e; --warning-solid: #d97706;
  --danger-bg: #fee2e2; --danger-fg: #b91c1c; --danger-solid: #b91c1c; --danger-solid-hover: #991b1b;
  --neutral-bg: #eceef4; --neutral-fg: #475569;
  --info-bg: #e0e7ff; --info-fg: #3730a3;
  --shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 1px 3px rgba(20, 24, 40, .05);
  --shadow-lg: 0 20px 48px rgba(20, 24, 40, .22);
  --radius: 12px; --radius-sm: 8px;
  --focus: #4f46e5;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117; --surface: #171a23; --surface-2: #1d212c; --text: #e8eaf0; --muted: #a0a9ba;
    --border: #2a2f3d; --border-strong: #3a4152;
    --accent: #818cf8; --accent-hover: #a5b4fc; --accent-fg: #0f1020; --accent-soft: #23264a; --accent-soft-fg: #c7d2fe;
    --success-bg: #12301e; --success-fg: #86efac; --success-solid: #4ade80;
    --warning-bg: #3a2a0a; --warning-fg: #fcd34d; --warning-solid: #fbbf24;
    --danger-bg: #3d1518; --danger-fg: #fca5a5; --danger-solid: #dc2626; --danger-solid-hover: #ef4444;
    --neutral-bg: #262b37; --neutral-fg: #cbd5e1;
    --info-bg: #23264a; --info-fg: #c7d2fe;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 20px 48px rgba(0, 0, 0, .6);
    --focus: #a5b4fc;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
code, .mono { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { text-align: center; padding: 64px 16px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* icons */
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; }
.icon.lg { width: 24px; height: 24px; }
.icon.xl { width: 32px; height: 32px; }
.icon.sm { width: 14px; height: 14px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* layout */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border); padding: 16px 12px; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 8px 12px 24px; font-weight: 700; font-size: 17px; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); flex: none; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 40px; border-radius: var(--radius-sm);
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-soft-fg); font-weight: 600; }
.sidebar-foot { border-top: 1px solid var(--border); padding: 16px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.me { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-soft-fg); font-weight: 700; flex: none; }
.me-text { min-width: 0; line-height: 1.3; }
.me-email { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-role { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.topbar { display: none; }
.scrim { display: none; }
.main-col { min-width: 0; }
main { outline: none; }
.page { max-width: 1080px; margin: 0 auto; padding: 32px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-soft-fg); flex: none; }
.page-titles { flex: 1; min-width: 200px; }
.page-titles h1 { font-size: 24px; line-height: 1.25; font-weight: 700; }
.page-titles p { color: var(--muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 799px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 280px; max-width: 86vw; transform: translateX(-100%); visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s; box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: none; visibility: visible; transition: transform .2s ease; }
  .topbar {
    display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 12px;
    background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .topbar .brand-sm { display: flex; align-items: center; gap: 8px; font-weight: 700; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 12, 20, .5); z-index: 35; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
  body.nav-open .scrim { opacity: 1; visibility: visible; transition: opacity .2s ease; }
  body.nav-open { overflow: hidden; }
  .page { padding: 24px 16px; }
  .page-titles h1 { font-size: 21px; }
}

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; gap: 8px; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 16px; font-weight: 600; flex: 1; }
.card-head .icon { color: var(--muted); }
.card-body { padding: 16px 24px 24px; }
.card-body.flush { padding: 0; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tile { display: flex; gap: 16px; align-items: center; padding: 16px 24px; }
.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.tile-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile-value { font-size: 20px; font-weight: 700; line-height: 1.25; }
.tile-sub { font-size: 12px; color: var(--muted); }
.tone-success { background: var(--success-bg); color: var(--success-fg); }
.tone-warning { background: var(--warning-bg); color: var(--warning-fg); }
.tone-danger { background: var(--danger-bg); color: var(--danger-fg); }
.tone-neutral { background: var(--neutral-bg); color: var(--neutral-fg); }
.tone-info { background: var(--info-bg); color: var(--info-fg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--accent); color: var(--accent-fg); font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-solid); color: #fff; }
.btn-danger:hover { background: var(--danger-solid-hover); }
.btn-danger-outline { background: var(--surface); color: var(--danger-fg); border-color: var(--danger-solid); }
.btn-danger-outline:hover { background: var(--danger-bg); }
.btn-sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.btn-icon { width: 36px; height: 36px; min-height: 36px; padding: 0; background: transparent; color: var(--muted); border-color: transparent; }
.btn-icon:hover { background: var(--neutral-bg); color: var(--text); }
.btn-icon.danger:hover { background: var(--danger-bg); color: var(--danger-fg); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn:disabled:hover { background: var(--accent); }
.btn-secondary:disabled:hover { background: var(--surface); }
.btn-icon:disabled:hover { background: transparent; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; }
.btn-link:hover { color: var(--accent-hover); }

/* forms */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: 14px; }
.help { font-size: 13px; color: var(--muted); }
.field-error { font-size: 13px; color: var(--danger-fg); display: flex; gap: 4px; align-items: center; }
.input {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:hover { border-color: var(--muted); }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--danger-solid); }
.input:disabled { opacity: .6; cursor: not-allowed; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.input-wrap > .input.has-icon { padding-left: 40px; }
.input-wrap > .input.has-action { padding-right: 44px; }
.input-wrap > .btn-icon { position: absolute; right: 2px; }
.search { max-width: 360px; width: 100%; }

/* pills, chips, callouts */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill .icon { width: 12px; height: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-fg); font-size: 13px; font-weight: 500; }
.chip-remove { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: -8px; border: 0; background: transparent; color: inherit; border-radius: 50%; cursor: pointer; padding: 0; }
.chip-remove:hover { background: rgba(127, 127, 160, .25); }
.chip.neutral { background: var(--neutral-bg); color: var(--neutral-fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.callout { display: flex; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; align-items: flex-start; }
.callout .icon { margin-top: 2px; }
.callout-danger { background: var(--danger-bg); color: var(--danger-fg); border-color: var(--danger-solid); }
.callout-warning { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-solid); }
.callout-info { background: var(--info-bg); color: var(--info-fg); }
.callout-success { background: var(--success-bg); color: var(--success-fg); }

/* tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table tr.is-off td:not(.actions) { opacity: .6; }
.table .actions { text-align: right; white-space: nowrap; }
.cell-strong { font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 16px; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar .count { margin-left: auto; }
@media (max-width: 699px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 16px; border-bottom: 1px solid var(--border); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { padding: 4px 0; border: 0; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; text-align: right; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-align: left; flex: none; }
  .table td.actions { justify-content: flex-end; padding-top: 8px; }
  .table td.actions::before, .table td.title-cell::before { display: none; }
  .table td.title-cell { font-size: 16px; justify-content: flex-start; text-align: left; }
  .toolbar, .card-head, .card-body { padding-left: 16px; padding-right: 16px; }
  .card-pad { padding: 16px; }
}

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
.li-main { flex: 1; min-width: 0; }
.li-title { font-weight: 600; }
.li-sub { font-size: 13px; color: var(--muted); }
.li-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; }
.call-time { width: 112px; flex: none; }
.call-time strong { display: block; }
.progress { font-size: 13px; color: var(--muted); }
@media (max-width: 599px) { .list > li { padding: 16px; flex-wrap: wrap; } .call-time { width: 100%; } }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.copy-row code { flex: 1; min-width: 0; }
.steps { margin: 16px 0 0; padding-left: 24px; color: var(--muted); }
.steps li { margin-bottom: 4px; }

/* empty + error + skeleton */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 48px 24px; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-soft-fg); }
.empty p { max-width: 420px; color: var(--muted); }
.empty.compact { padding: 24px; }
.skeleton { border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--neutral-bg) 25%, var(--surface-2) 50%, var(--neutral-bg) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-line { height: 16px; margin-bottom: 12px; }
.sk-tile { height: 76px; }
.sk-block { height: 160px; }
@media (prefers-reduced-motion: reduce) { .skeleton, .spin { animation: none; } * { scroll-behavior: auto !important; } }

/* dialogs */
dialog.modal {
  border: 1px solid var(--border); border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto;
}
dialog.modal::backdrop { background: rgba(10, 12, 20, .55); }
dialog.modal.fallback { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 100; margin: 0; }
.modal-backdrop-fallback { position: fixed; inset: 0; background: rgba(10, 12, 20, .55); z-index: 99; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 24px 24px 8px; }
.modal-head h2 { flex: 1; font-size: 18px; }
.modal-body { padding: 8px 24px 16px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 16px 24px 24px; }
.modal-lead { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; }

/* group picker */
.picker-list { list-style: none; margin: 4px 0 0; padding: 4px; max-height: 208px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.picker-list[hidden] { display: none; }
.picker-opt { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.picker-opt:hover, .picker-opt.active { background: var(--accent-soft); }
.picker-opt[aria-selected="true"] .picker-name { color: var(--accent-soft-fg); font-weight: 700; }
.picker-id { font-size: 12px; color: var(--muted); font-family: var(--mono); word-break: break-all; }
.picker-none { padding: 8px 12px; color: var(--muted); font-size: 13px; }
.picker-row { display: flex; gap: 8px; align-items: center; }
.picker-row .input-wrap { flex: 1; }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 200; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 12px 8px 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); border-left-width: 4px; box-shadow: var(--shadow-lg); }
.toast.success { border-left-color: var(--success-solid); } .toast.success > .icon { color: var(--success-solid); }
.toast.error { border-left-color: var(--danger-solid); } .toast.error > .icon { color: var(--danger-solid); }
.toast.info { border-left-color: var(--accent); } .toast.info > .icon { color: var(--accent); }
.toast > .icon { margin-top: 2px; }
.toast-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(circle at 15% 10%, var(--accent-soft), transparent 45%), radial-gradient(circle at 85% 90%, var(--info-bg), transparent 40%), var(--bg); }
.login-card { width: min(400px, 100%); padding: 32px; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 24px; text-align: center; }
.login-brand .logo { width: 52px; height: 52px; border-radius: 14px; }
.login-brand h1 { font-size: 22px; }
.divider { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.gsi-holder { display: flex; justify-content: center; min-height: 44px; }
.login-card .btn-block { width: 100%; }
.login-card .callout { margin-bottom: 16px; }

/* settings + audit */
.preview { margin-top: 16px; padding: 12px 16px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); display: flex; gap: 8px; align-items: flex-start; }
.add-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.add-row .field { margin: 0; width: 160px; }
.timeline { list-style: none; margin: 0; padding: 8px 24px; }
.timeline > li { display: flex; gap: 16px; padding: 12px 0; position: relative; }
.timeline > li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 48px; bottom: -4px; width: 2px; background: var(--border); }
.timeline details { margin-top: 4px; }
.timeline summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; width: fit-content; }
.timeline pre { margin: 8px 0 0; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font: 12px/1.5 var(--mono); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.tl-time { font-size: 13px; color: var(--muted); }
@media (max-width: 599px) { .timeline { padding: 8px 16px; } }

.icon-hidden { display: none; }
.btn-icon.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-icon.btn-secondary:hover { background: var(--surface-2); }
.field.add-row { flex-direction: row; align-items: flex-end; flex-wrap: wrap; margin-bottom: 0; margin-top: 16px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 24px; }

.tile > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.call-time { width: 136px; }
.field .btn-link { align-self: flex-start; margin-top: 8px; }
.field .picker-extra { margin-top: 8px; }

.sidebar { align-self: start; overflow-y: auto; }
.tile-value { overflow-wrap: normal; word-break: normal; font-size: clamp(16px, 1.6vw, 20px); }
.tile > div:last-child { overflow-wrap: normal; }
.tile-sub { overflow-wrap: break-word; }
.picker-fail { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.picker-fail + * { margin: 0; }
.field .callout { margin-bottom: 8px; }
[hidden] { display: none !important; }

/* whatsapp page */
.wa-tile { padding: 0; }
.wa-actions { padding-top: 16px; justify-content: flex-start; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; cursor: pointer; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-soft-fg); border-bottom-color: var(--accent); }
.qr-panel { display: grid; gap: 24px; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.qr-frame { background: #fff; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); width: fit-content; }
.qr-img { display: block; width: 280px; height: 280px; max-width: 100%; image-rendering: pixelated; }
.pair-code { font: 700 28px/1.3 var(--mono); letter-spacing: .12em; padding: 16px; margin-bottom: 16px; text-align: center; background: var(--accent-soft); color: var(--accent-soft-fg); border-radius: var(--radius-sm); }
@media (max-width: 699px) { .qr-panel { grid-template-columns: minmax(0, 1fr); } .qr-frame { margin: 0 auto; } }
.modal-body p + p { margin-top: 8px; }
