/* Arfi Admin — internal ops console. Requires ../tokens.css + ../kit.css */

body.adm { font-size: var(--fs-sm); background: var(--bg); }
.adm .demo-bar { position: relative; z-index: 3; }

/* Staff-only strip — colour follows the active environment */
.staff { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .35rem 1rem; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); background: var(--bg-2); border-bottom: 1px solid var(--line-soft); }
.staff svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.staff span { color: var(--faint); font-weight: 600; letter-spacing: .02em; text-transform: none; }
[data-env="testnet"] .staff { background: var(--warn-soft); color: var(--warn); }
[data-env="mainnet"] .staff { background: var(--down-soft); color: var(--down); }

/* Shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bg-2); border-right: 1px solid var(--line-soft); overflow-y: auto; }
.side__brand { display: flex; align-items: center; gap: .5rem; height: 60px; padding: 0 1.1rem; border-bottom: 1px solid var(--line-soft); }
.side__brand .logo { font-size: 1.05rem; }
.side__brand .logo svg { width: 26px; height: 26px; }
.side__close { display: none; margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); cursor: pointer; place-items: center; }
.side__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.side__nav { flex: 1; padding: .75rem .6rem 1rem; }
.side__grp { margin-top: .9rem; }
.side__grp:first-child { margin-top: 0; }
.side__grp > p { padding: 0 .6rem .35rem; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.side__item { display: flex; align-items: center; gap: .65rem; height: 34px; padding: 0 .6rem; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.side__item svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
a.side__item:hover { background: var(--card); color: var(--text); }
.side__item.is-on { background: var(--card); color: var(--text); box-shadow: inset 2px 0 0 var(--gold-400); }
.side__item.is-on svg { color: var(--gold-400); }
.side__item.is-off { color: var(--faint); cursor: default; }
.side__item.is-off svg { color: var(--faint); }
.side__item em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; padding: .05rem .4rem; border-radius: 4px; background: var(--card); color: var(--faint); }
.side__item .count { margin-left: auto; min-width: 20px; height: 18px; padding: 0 .35rem; border-radius: 9px; background: var(--gold-soft); color: var(--gold-400); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.side__foot { padding: .8rem; border-top: 1px solid var(--line-soft); }
.side__never { padding: .7rem .8rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-soft); font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.side__never b { display: block; color: var(--text-2); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .2rem; }
.scrim { display: none; }

/* Top bar */
.atop { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .9rem; height: 60px; padding: 0 1.5rem; background: rgba(11,14,17,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); box-shadow: inset 0 2px 0 var(--gold-500); }
[data-env="testnet"] .atop { box-shadow: inset 0 2px 0 var(--warn); }
[data-env="mainnet"] .atop { box-shadow: inset 0 2px 0 var(--down); }
.atop .burger { display: none; }
.crumb { display: flex; align-items: center; gap: .45rem; font-size: 13px; color: var(--muted); white-space: nowrap; min-width: 0; }
.crumb b { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.crumb i { color: var(--faint); font-style: normal; }
.qs { display: flex; align-items: center; gap: .5rem; height: 36px; width: min(340px, 30vw); margin-left: 1rem; padding: 0 .7rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-soft); color: var(--faint); font-size: 13px; }
.qs svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.qs input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13px; }
.qs input::placeholder { color: var(--faint); }
.qs kbd { font: inherit; font-size: 11px; padding: .05rem .4rem; border: 1px solid var(--line); border-radius: 4px; }
.atop__r { display: flex; align-items: center; gap: .6rem; }
.env { margin-left: auto; display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm); }
.env button { display: inline-flex; align-items: center; gap: .4rem; height: 28px; padding: 0 .7rem; border: 0; border-radius: 4px; background: none; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.env button .dot { width: 6px; height: 6px; }
.env button.is-on { background: var(--card-hover); color: var(--text); }
.env button[data-env-set="testnet"].is-on { background: var(--warn-soft); color: var(--warn); }
.env button[data-env-set="mainnet"].is-on { background: var(--down-soft); color: var(--down); }
.ibtn { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: var(--surface); color: var(--muted); cursor: pointer; }
.ibtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ibtn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; box-shadow: 0 0 0 2px var(--surface); }
.who { display: flex; align-items: center; gap: .6rem; padding-left: .6rem; border-left: 1px solid var(--line-soft); }
.who__av { width: 32px; height: 32px; border-radius: 50%; background: var(--card-hover); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--text-2); }
.who__meta { display: grid; line-height: 1.2; }
.who__meta b { font-size: 12.5px; }
.who__meta span { display: inline-flex; align-items: center; gap: .3rem; font-size: 11px; color: var(--up); font-weight: 700; }
.who__meta span svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.role { display: inline-flex; align-items: center; height: 18px; padding: 0 .4rem; border-radius: 4px; background: var(--gold-soft); color: var(--gold-400); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* Main */
.main { min-width: 0; }
.content { padding: 1.5rem 1.5rem 3rem; max-width: 1480px; }
.envnote { margin-bottom: 1.25rem; }
.adm .phead { margin-bottom: 1.25rem; padding-bottom: 1rem; }
.adm .phead h1 { font-size: 1.3rem; }
.adm .phead__sub { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sec-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.75rem 0 .75rem; }
.sec-title h2 { font-size: .95rem; }

/* Denser cards + tables */
.adm .card { border-radius: var(--r-md); }
.adm .card__head { padding: .8rem 1rem; }
.adm .card__head h2, .adm .card__head h3 { font-size: .9rem; }
.adm .card__head small { color: var(--faint); font-size: 12px; font-weight: 600; }
.adm .card__body { padding: 1rem; }
.adm .t { font-size: 13px; }
.adm .t th { padding: .6rem 1rem; font-size: 11.5px; letter-spacing: .02em; }
.adm .t td { padding: .65rem 1rem; }
.adm .t tbody tr.is-sel td { background: var(--card); }
.adm .btn--sm { height: 32px; font-size: 12px; }
.adm .btn--xs { height: 26px; padding: 0 .6rem; border-radius: 5px; font-size: 11.5px; }
.adm .input, .adm .select { height: 38px; border-radius: var(--r-sm); font-size: 13px; }
.adm .textarea { border-radius: var(--r-sm); font-size: 13px; min-height: 84px; }
.adm .pill { font-size: 11px; padding: .15rem .5rem; border-radius: 4px; }
.btn--danger { background: var(--down-soft); border-color: rgba(234,57,67,.35); color: var(--down); }
.btn--danger:hover { background: var(--down); color: #fff; }
.btn--danger-solid { background: var(--down); color: #fff; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.kpi { padding: 1rem 1.1rem; background: var(--surface); min-width: 0; }
.kpi__l { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.kpi__v { display: flex; align-items: baseline; gap: .4rem; margin-top: .45rem; font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__v small { font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi__s { margin-top: .25rem; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .05rem .35rem; border-radius: 3px; }
.src--live { color: var(--up); background: var(--up-soft); }
.src--demo { color: var(--warn); background: var(--warn-soft); }
.src--off { color: var(--down); background: var(--down-soft); }

/* Layout grids */
.g-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.g-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.g-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.col { display: grid; gap: 1rem; align-content: start; min-width: 0; }

/* Chart (block times) */
.chart { padding: 1rem 1rem .6rem; }
.chart svg { width: 100%; height: 150px; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0 1rem 1rem; font-size: 12px; color: var(--muted); }
.chart__legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.chart__axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); padding: .2rem 0 0; }

/* Alerts */
.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li { display: grid; grid-template-columns: 22px 1fr auto; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); align-items: start; }
.alerts li:last-child { border-bottom: 0; }
.sev { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; }
.sev svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sev--crit { background: var(--down-soft); color: var(--down); }
.sev--warn { background: var(--warn-soft); color: var(--warn); }
.sev--info { background: var(--card-hover); color: var(--muted); }
.sev--ok { background: var(--up-soft); color: var(--up); }
.alerts b { display: block; font-size: 13px; }
.alerts p { font-size: 12px; color: var(--muted); }
.alerts time { font-size: 11.5px; color: var(--faint); white-space: nowrap; }

/* Address cell */
.addr { display: inline-flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; color: var(--text-2); }
td.addr { display: table-cell; }
.addr .copy { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 10px; }
.addr .copy:hover { background: var(--card-hover); color: var(--gold-400); }
.addr .copy svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vname { display: flex; align-items: center; gap: .6rem; }
.vav { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--gold-grad); color: var(--gold-ink); flex: none; }
.vav--g { background: var(--card-hover); color: var(--text-2); }
.vname b { display: block; font-size: 13px; }
.vname small { display: block; font-size: 11.5px; color: var(--faint); }
.mbar { display: inline-flex; align-items: center; gap: .5rem; }
.mbar .bar { width: 80px; height: 5px; }
.mbar .bar i { background: var(--up); }
.mbar--warn .bar i { background: var(--warn); }

/* Faucet */
.gauge { padding: 1rem; }
.gauge__v { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gauge__v small { font-size: 13px; color: var(--muted); font-weight: 700; }
.gauge .bar { margin: .8rem 0 .5rem; height: 6px; }
.gauge .rows > div { font-size: 12.5px; padding: .3rem 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: 13px; font-weight: 700; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 36px; height: 20px; border-radius: 10px; background: var(--card-hover); border: 1px solid var(--line); position: relative; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input:checked + i { background: var(--up-soft); border-color: rgba(22,199,132,.4); }
.switch input:checked + i::after { transform: translateX(16px); background: var(--up); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.unit { position: relative; }
.unit .input { padding-right: 4.2rem; }
.unit span { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--faint); }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.form-foot .muted { margin-right: auto; font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.bars i { flex: 1; min-width: 0; background: var(--card-hover); border-radius: 2px 2px 0 0; }
.bars i.is-hi { background: var(--gold-500); }

/* Review queue */
.review { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 1rem; align-items: start; }
.queue { list-style: none; margin: 0; padding: 0; }
.queue li { border-bottom: 1px solid var(--line-soft); }
.queue li:last-child { border-bottom: 0; }
.queue button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: .7rem; align-items: center; padding: .8rem 1rem; border: 0; background: none; text-align: left; cursor: pointer; }
.queue button:hover { background: var(--card); }
.queue .is-sel button { background: var(--card); box-shadow: inset 2px 0 0 var(--gold-400); }
.queue b { display: block; font-size: 13px; }
.queue small { display: block; font-size: 11.5px; color: var(--faint); }
.queue .tok__ico { width: 34px; height: 34px; font-size: 10px; }
.rv-head { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.rv-head .tok__ico { width: 44px; height: 44px; font-size: 12px; }
.rv-head h2 { font-size: 1.05rem; }
.rv-head p { font-size: 12px; color: var(--muted); }
.rv-head .btns { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 22px 1fr auto; gap: .7rem; align-items: start; padding: .7rem 1rem; border-bottom: 1px solid var(--line-soft); }
.checks li:last-child { border-bottom: 0; }
.checks b { font-size: 13px; display: block; }
.checks p { font-size: 12px; color: var(--muted); }
.approvals { display: flex; align-items: center; gap: .5rem; font-size: 12px; color: var(--muted); }
.approvals i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 800; font-style: normal; border: 1px dashed var(--line); color: var(--faint); }
.approvals i.is-done { border: 0; background: var(--up-soft); color: var(--up); }
.adm .kv > div { grid-template-columns: 170px 1fr; padding: .65rem 1rem; font-size: 13px; }
.logo-prev { display: flex; gap: .6rem; align-items: center; }
.logo-prev span { width: 48px; height: 48px; border-radius: 50%; border: 1px dashed var(--line); display: grid; place-items: center; font-size: 10px; color: var(--faint); }
.logo-prev span:nth-child(2) { width: 32px; height: 32px; }
.logo-prev span:nth-child(3) { width: 20px; height: 20px; font-size: 7px; }

/* Filters toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--line-soft); }
.toolbar .input, .toolbar .select { height: 34px; width: auto; min-width: 140px; }
.toolbar .input--search { flex: 1; min-width: 200px; max-width: 360px; }
.toolbar__r { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.pager div { display: flex; gap: .35rem; }
.hash { font-variant-numeric: tabular-nums; color: var(--faint); font-size: 12px; }
.res-ok { color: var(--up); font-weight: 700; }
.res-deny { color: var(--down); font-weight: 700; }
.act { font-weight: 700; color: var(--text); }
.act small { display: block; font-weight: 600; font-size: 11.5px; color: var(--faint); }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.rcard { padding: 1rem; }
.rcard h3 { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; margin-bottom: .35rem; }
.rcard p { font-size: 12px; color: var(--muted); min-height: 3.2em; }
.rcard footer { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; font-size: 12px; color: var(--faint); }
.avs { display: flex; }
.avs i { width: 24px; height: 24px; border-radius: 50%; margin-left: -6px; border: 2px solid var(--surface); background: var(--card-hover); display: grid; place-items: center; font-size: 9px; font-weight: 800; font-style: normal; color: var(--text-2); }
.avs i:first-child { margin-left: 0; }
.matrix td.c, .matrix th.c { text-align: center; }
.ck, .nx, .ap { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; }
.ck { background: var(--up-soft); color: var(--up); }
.nx { color: var(--faint); }
.ap { background: var(--warn-soft); color: var(--warn); font-size: 10px; font-weight: 800; }
.ck svg, .nx svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.matrix .grp td { background: var(--bg-2); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-top: .5rem; padding-bottom: .5rem; }
.legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }

/* Destructive confirmation modal */
.adm .modal__box { width: min(520px, 100%); border-radius: var(--r-md); }
.dz__head { display: flex; gap: .9rem; padding: 1.2rem 1.2rem .9rem; }
.dz__ico { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); background: var(--down-soft); color: var(--down); display: grid; place-items: center; }
.dz__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dz__head h2 { font-size: 1.05rem; }
.dz__head p { font-size: 13px; color: var(--muted); margin-top: .2rem; }
.dz__body { padding: 0 1.2rem 1.1rem; display: grid; gap: .9rem; }
.dz__impact { list-style: none; margin: 0; padding: .75rem .9rem; border-radius: var(--r-sm); background: var(--down-soft); border: 1px solid rgba(234,57,67,.22); display: grid; gap: .35rem; font-size: 12.5px; color: var(--text-2); }
.dz__impact li { display: flex; gap: .5rem; }
.dz__impact li::before { content: ""; width: 5px; height: 5px; margin-top: .5em; border-radius: 50%; background: var(--down); flex: none; }
.dz__target { display: flex; justify-content: space-between; gap: 1rem; font-size: 12.5px; padding: .6rem .8rem; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line-soft); }
.dz__target span { color: var(--muted); }
.dz__type code { font-family: inherit; font-weight: 800; color: var(--text); background: var(--card-hover); padding: .05rem .35rem; border-radius: 4px; }
.otp { display: flex; gap: .4rem; }
.otp input { width: 40px; height: 44px; text-align: center; font-size: 1.05rem; font-weight: 800; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); outline: 0; }
.otp input:focus { border-color: var(--gold-500); }
.dz__foot { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.dz__foot small { margin-right: auto; font-size: 11.5px; color: var(--faint); }
.mbox__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-soft); }
.mbox__head h2 { font-size: 1rem; }
.xbtn { width: 30px; height: 30px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.xbtn:hover { background: var(--card-hover); color: var(--text); }
.xbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.radio-list { display: grid; gap: .4rem; }
.radio-list label { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--bg-2); cursor: pointer; font-size: 13px; }
.radio-list label:has(input:checked) { border-color: var(--gold-500); background: var(--gold-soft); }
.radio-list input { accent-color: var(--gold-400); margin-top: .25rem; }
.radio-list small { display: block; color: var(--faint); font-size: 11.5px; }

.addr .copy.is-done { color: var(--up); }
.adm .empty code { font-family: inherit; color: var(--text-2); background: var(--card); padding: .1rem .4rem; border-radius: 4px; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 95; max-width: min(520px, calc(100% - 2rem)); padding: .75rem 1rem; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card); font-size: 13px; color: var(--text-2); transform: translate(-50%, 1rem); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1320px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qs { display: none; }
}
@media (max-width: 1100px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 80; width: 280px; transform: translateX(-100%); transition: transform .2s var(--ease); box-shadow: var(--shadow-card); }
  .side.is-open { transform: none; }
  .side__close { display: grid; }
  .scrim.is-open { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); }
  .atop .burger { display: flex; margin-left: -.5rem; }
  .g-main, .review { grid-template-columns: minmax(0, 1fr); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .atop { flex-wrap: wrap; height: auto; padding: .55rem 1rem; gap: .5rem .6rem; }
  .atop__r { gap: .4rem; }
  .atop__r { margin-left: auto; }
  .atop .env { order: 5; width: 100%; margin-left: 0; }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .atop .env button { flex: 1; justify-content: center; }
  .who { padding-left: 0; border-left: 0; }
  .who__meta, .atop .ibtn--hide { display: none; }
  .content { padding: 1rem 1rem 2.5rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: .85rem; }
  .kpi__v { font-size: 1.2rem; }
  .g-2, .g-3, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .rcard p { min-height: 0; }
  .adm .kv > div { grid-template-columns: 1fr; gap: .2rem; }
  .toolbar .input, .toolbar .select { flex: 1 1 140px; min-width: 0; }
  .toolbar .input--search { max-width: none; flex-basis: 100%; }
  .toolbar__r { margin-left: 0; width: 100%; }
  .rv-head .btns { margin-left: 0; width: 100%; }
  .rv-head .btns .btn { flex: 1; }
  .staff span { display: none; }
  .adm .phead__right { width: 100%; }
  .dz__foot { flex-wrap: wrap; }
  .dz__foot small { width: 100%; }
  .otp input { width: 38px; }
}
