:root {
    --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

    --bg: #06080c;
    --surface: #0a0e15;
    --surface-2: #0d121b;
    --elevated: #101622;
    --line: #18202e;
    --line-2: #242f42;
    --text: #d6dde8;
    --muted: #7a8698;
    --faint: #4a5568;

    --accent: #35d07f;
    --accent-600: #26b56c;
    --accent-dim: rgba(53,208,127,.12);
    --accent-line: rgba(53,208,127,.35);
    --amber: #f5b13c;
    --amber-dim: rgba(245,177,60,.13);
    --cyan: #4bb4f0;
    --cyan-dim: rgba(75,180,240,.13);
    --red: #ff5f5f;
    --red-dim: rgba(255,95,95,.13);

    --radius: 6px;
    --radius-sm: 4px;
    --sidebar-w: 232px;
    --shadow: 0 8px 30px rgba(0,0,0,.5);
}

:root[data-theme="light"] {
    --bg: #e7e9e2;
    --surface: #f4f5ef;
    --surface-2: #eceee6;
    --elevated: #ffffff;
    --line: #d0d4c7;
    --line-2: #b7bdaa;
    --text: #10161c;
    --muted: #56606c;
    --faint: #8a93a0;
    --accent: #0c8f4f;
    --accent-600: #0a7a44;
    --accent-dim: rgba(12,143,79,.12);
    --accent-line: rgba(12,143,79,.4);
    --amber: #a9720a;
    --amber-dim: rgba(169,114,10,.12);
    --cyan: #0f6fb0;
    --cyan-dim: rgba(15,111,176,.1);
    --red: #c62f2f;
    --red-dim: rgba(198,47,47,.1);
    --shadow: 0 8px 24px rgba(16,22,28,.12);
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
    margin: 0;
    font-family: var(--font-mono);
    background: var(--bg);
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #05130c; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1 { font-size: 19px; font-weight: 700; letter-spacing: .01em; margin: 0 0 4px; text-transform: uppercase; }
h2 { font-size: 13px; font-weight: 600; margin: 0; text-transform: uppercase; letter-spacing: .06em; }

code { background: var(--surface-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: var(--radius-sm); font-size: 12px; color: var(--accent); }
code.small { font-size: 11px; word-break: break-all; color: var(--text); }
.muted { color: var(--muted); }
.err { color: var(--red); }
svg { display: block; }
strong { font-weight: 700; }

.topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 54px;
    padding: 0 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line-2);
    position: sticky;
    top: 0;
    z-index: 30;
    background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .12em; font-size: 13px; text-transform: uppercase; }
.brand-mark {
    width: 28px; height: 28px; border-radius: var(--radius-sm);
    display: grid; place-items: center; color: #05130c;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-line), 0 0 14px var(--accent-dim);
}
.brand-mark { position: relative; overflow: hidden; }
.brand-mark svg { width: 16px; height: 16px; }
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sysstat { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; padding-right: 6px; }
.sysstat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.icon-btn {
    display: grid; place-items: center; width: 34px; height: 34px;
    background: transparent; border: 1px solid var(--line-2);
    border-radius: var(--radius-sm); color: var(--muted); cursor: pointer;
    transition: color .12s, border-color .12s, background .12s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.icon-btn svg { width: 17px; height: 17px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 12px; }
.avatar { width: 26px; height: 26px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #05130c; background: var(--accent); }

.shell { display: flex; min-height: calc(100vh - 54px); }
.sidebar {
    width: var(--sidebar-w); flex-shrink: 0; padding: 14px 12px;
    display: flex; flex-direction: column; gap: 2px;
    border-right: 1px solid var(--line-2); background: var(--surface);
}
.nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--faint); padding: 6px 12px; margin-top: 4px; }
.sidebar a {
    display: flex; align-items: center; gap: 11px;
    color: var(--muted); font-weight: 500; font-size: 13px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    border: 1px solid transparent; text-transform: uppercase; letter-spacing: .04em;
    transition: color .12s, background .12s, border-color .12s;
}
.sidebar a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .8; }
.sidebar a:hover { color: var(--text); background: var(--surface-2); }
.sidebar a.is-active { color: var(--accent); background: var(--accent-dim); border-color: var(--accent-line); }
.sidebar a.is-active svg { opacity: 1; }

.content { flex: 1; min-width: 0; max-width: 1140px; width: 100%; padding: 24px 26px 60px; overflow-x: hidden; }

.card {
    background: var(--surface); border: 1px solid var(--line-2);
    border-radius: var(--radius); padding: 18px; margin-bottom: 16px; position: relative;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card-head h2 { display: flex; align-items: center; }
.card-head h2::before { content: "▍"; color: var(--accent); margin-right: 8px; }
.card-head .sub { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 400; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px; border-left: 2px solid var(--line-2); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat-ico { width: 30px; height: 30px; border-radius: var(--radius-sm); display: grid; place-items: center; border: 1px solid var(--line-2); }
.stat-ico svg { width: 16px; height: 16px; }
.stat-ico.b { color: var(--cyan); border-color: var(--cyan-dim); background: var(--cyan-dim); }
.stat-ico.g { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.stat-ico.o { color: var(--amber); border-color: var(--amber-dim); background: var(--amber-dim); }
.stat-ico.r { color: var(--red); border-color: var(--red-dim); background: var(--red-dim); }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.01em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.card.stat:nth-child(1) { border-left-color: var(--amber); }
.card.stat:nth-child(2) { border-left-color: var(--cyan); }
.card.stat:nth-child(3) { border-left-color: var(--accent); }
.card.stat:nth-child(4) { border-left-color: var(--red); }

label { display: block; font-weight: 500; margin-bottom: 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.field { margin-bottom: 16px; }
input, select, textarea {
    width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
    border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: 13px;
    transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8698' stroke-width='2.4' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks .check { padding: 7px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--accent); color: #05130c; border: 1px solid var(--accent);
    border-radius: var(--radius-sm); padding: 10px 18px; font: inherit; font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
    transition: background .12s, box-shadow .12s, transform .1s;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--accent-600); box-shadow: 0 0 16px var(--accent-dim); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 7px 13px; font-size: 12px; }
.btn.tiny { padding: 4px 10px; font-size: 11px; }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--accent-line); }
.btn.ghost:hover { background: var(--accent-dim); box-shadow: none; }
.btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red-dim); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inline-form { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 170px; }
.stacked-form label { margin-top: 10px; }

.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.table tbody tr { transition: background .1s, box-shadow .1s; }
.table tbody tr:hover { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td { font-variant-numeric: tabular-nums; }
.truncate { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .06em; border: 1px solid currentColor; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; }
.badge.pending { color: var(--amber); background: var(--amber-dim); }
.badge.dispatched { color: var(--cyan); background: var(--cyan-dim); }
.badge.sent, .badge.delivered { color: var(--accent); background: var(--accent-dim); }
.badge.failed, .badge.canceled { color: var(--red); background: var(--red-dim); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.dot.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dot.off { background: var(--faint); }

.pills, .filters, .pager { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.filters { margin-bottom: 16px; }
.pill { background: var(--bg); border: 1px solid var(--line-2); color: var(--muted); padding: 6px 13px; border-radius: var(--radius-sm); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; transition: all .12s; }
.pill:hover { color: var(--text); border-color: var(--line-2); }
.pill span { color: var(--faint); margin-left: 2px; }
.pill.is-active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }

.tabs { display: inline-flex; gap: 0; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.tab { background: var(--bg); border: 0; border-right: 1px solid var(--line-2); color: var(--muted); padding: 8px 16px; cursor: pointer; font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; transition: all .12s; }
.tab:last-child { border-right: 0; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--accent-dim); color: var(--accent); }

.merge-hints { margin-top: 10px; font-size: 12px; color: var(--muted); }
.merge-hints strong { display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: var(--faint); }
.merge-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.merge-list span { display: flex; align-items: center; gap: 8px; line-height: 1.35; }
.merge-hints code { cursor: pointer; flex-shrink: 0; color: var(--accent); transition: border-color .12s; }
.merge-hints code:hover { border-color: var(--accent); }
.merge-hints small { display: block; margin-top: 6px; }

.counter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.counter span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 5px 10px; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .04em; }
.counter b { color: var(--accent); font-weight: 700; }

.kv { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: nowrap; }
.kv span { color: var(--muted); min-width: 140px; flex-shrink: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.kv code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.kv code::-webkit-scrollbar { display: none; }

.copy-btn {
    flex-shrink: 0; display: grid; place-items: center;
    width: 34px; height: 34px; border: 1px solid var(--line-2); background: var(--surface-2);
    color: var(--muted); border-radius: var(--radius-sm); cursor: pointer;
    transition: color .12s, border-color .12s, background .12s;
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.code-block-wrap { position: relative; }
.code-block-wrap .copy-btn { position: absolute; top: 8px; right: 8px; background: var(--surface); }

.alert { display: flex; gap: 11px; align-items: flex-start; background: var(--cyan-dim); border: 1px solid var(--cyan); color: var(--text); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 12.5px; }
.alert.warn { background: var(--amber-dim); border-color: var(--amber); }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--cyan); }
.alert.warn svg { color: var(--amber); }

.code-block { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--accent); overflow-x: auto; margin: 10px 0 12px; white-space: pre; }

.progress { height: 7px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent-dim); transition: width .3s; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 8px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; }
.chart-bar { flex: 1; width: 62%; max-width: 46px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.bar-sent { background: var(--accent); box-shadow: 0 0 10px var(--accent-dim); }
.bar-fail { background: var(--red); }
.chart-x { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.chart-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 9px; height: 9px; border-radius: 1px; }
.lg.sent::before { background: var(--accent); }
.lg.fail::before { background: var(--red); }

.empty { text-align: center; padding: 30px 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.empty svg { width: 38px; height: 38px; margin: 0 auto 12px; color: var(--faint); }

.pair-grid { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.qr-box { background: #fff; padding: 12px; border-radius: var(--radius-sm); width: 200px; height: 200px; flex-shrink: 0; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line-2); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.pair-info { flex: 1; min-width: 260px; }

.toast {
    position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
    display: flex; align-items: center; gap: 10px;
    background: var(--elevated); border: 1px solid var(--line-2); color: var(--text);
    padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transition: all .2s; z-index: 60; max-width: 90vw;
    font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 1px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: var(--accent-line); }
.toast.ok::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.toast.error { border-color: var(--red); }
.toast.error::before { background: var(--red); box-shadow: 0 0 8px var(--red); }

.app-only { display: none; }
.app-mode .app-only { display: inline-flex; }
.app-mode #pair-card { display: none; }
.app-mode #pair-card.show { display: block; }
.app-mode .sysstat, .app-mode .user-chip { display: none; }
.app-mode .menu-toggle { display: grid; }
.app-mode .content { max-width: none; }

.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); }
.auth-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px 28px; width: 100%; max-width: 400px; box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-brand .brand-mark { width: 38px; height: 38px; }
.auth-brand .brand-mark svg { width: 22px; height: 22px; }
.auth-brand-name { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.auth-brand-name small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
.auth-card h1 { font-size: 17px; margin: 0 0 4px; }
.auth-card label { margin-top: 15px; }
.auth-card .btn { width: 100%; margin-top: 20px; padding: 11px; }
.auth-foot { margin-top: 16px; text-align: center; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 820px) {
    .topbar { padding: 0 12px; height: 50px; }
    .content { padding: 16px 14px 50px; }
    .sidebar { position: fixed; left: -260px; top: 50px; bottom: 0; width: 240px; z-index: 40; transition: left .2s; box-shadow: var(--shadow); }
    body.nav-open .sidebar { left: 0; }
    body.nav-open::after { content: ""; position: fixed; inset: 50px 0 0 0; background: rgba(0,0,0,.6); z-index: 39; }
    .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .row2 { grid-template-columns: 1fr; }
    .truncate { max-width: 150px; }
    .user-chip .uname, .sysstat { display: none; }
}
@media (min-width: 821px) { .menu-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { *, .sysstat::before { animation: none !important; transition: none !important; } }

* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
button, a, .check, .tab, .pill, .sidebar a { -webkit-tap-highlight-color: transparent; }

h1 { display: flex; align-items: center; gap: 10px; }
h1::before { content: ""; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 10px var(--accent-dim); }
.auth-card h1::before, .empty h1::before { display: none; }

.field:last-child { margin-bottom: 0; }
.card > .table:first-child, .card > .inline-form:last-child { margin-bottom: 0; }
.btn { min-height: 38px; }
input, select { min-height: 40px; }
.badge { white-space: nowrap; }
.kv code { padding: 6px 9px; }
.table tbody tr:hover .btn.tiny { border-color: var(--line-2); }

.sim-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.sim-tag { font-size: 10px; color: var(--cyan); background: var(--cyan-dim); border: 1px solid var(--cyan); padding: 1px 7px; border-radius: 999px; letter-spacing: .03em; }

@media (max-width: 820px) {
    h1 { font-size: 17px; }
    .card { padding: 15px; }
    .table-wrap { overflow-x: auto; max-width: 100%; }
    .table { min-width: 500px; }
    .inline-form { gap: 8px; }
    .inline-form input, .inline-form select { min-width: 130px; }
    .btn, .btn.small { min-height: 42px; }
    input, select, textarea { font-size: 16px; }
    .checks { gap: 8px; }
    .checks .check { width: 100%; }
    .qr-box { margin: 0 auto; }
    .pair-grid { justify-content: center; }
    .kv { flex-wrap: wrap; gap: 7px; }
    .kv span { min-width: 100%; }
    .copy-btn { width: 40px; height: 40px; }
    .code-block-wrap .copy-btn { width: 32px; height: 32px; }
}
