/* Shared components: app shell, sidebar, buttons, fields, chips, tables, toasts, dialogs. */

/* ── App shell ─────────────────────────────────────────────── */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.shell-side { flex: 1 1 248px; max-width: 100%; background: var(--sidebar); border-right: 1px solid var(--sidebar-line); }
.shell-main {
  flex: 999 1 560px; min-width: 0;
  padding: 28px clamp(16px, 3vw, 40px) 72px;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.page { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--gap-section); }
@media (min-width: 900px) {
  .shell { flex-wrap: nowrap; }
  .shell-side { flex: 0 0 248px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}

/* ── Sidebar ───────────────────────────────────────────────── */
.nav { min-height: 100%; padding: 20px 14px 18px; display: flex; flex-direction: column; gap: 22px; }
.nav-logo { display: flex; align-items: center; gap: 12px; padding: 0 6px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px; background: #1f1712; border: 1px solid #4a2c17;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.logo-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.logo-name {
  font-size: 19px; font-weight: 800; font-stretch: 78%; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.logo-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.bot-pill {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 8px;
  background: #16201a; border: 1px solid #234231; text-decoration: none; color: var(--text);
}
.bot-pill:hover { color: var(--text); border-color: #2f5a3f; }
.bot-pill .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #57c785; box-shadow: 0 0 0 4px rgba(87, 199, 133, .18); }
.bot-pill .pill-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bot-pill .pill-title { font-size: 13px; font-weight: 600; }
.bot-pill .pill-sub { font-size: 12px; color: #93b8a2; }
.bot-pill.warn { background: #211c10; border-color: #4a3d1c; }
.bot-pill.warn .dot { background: var(--st-waiting); box-shadow: 0 0 0 4px rgba(242, 193, 78, .18); }
.bot-pill.warn .pill-sub { color: #cdb889; }
.bot-pill.bad { background: #221416; border-color: #4f2326; }
.bot-pill.bad .dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, .2); }
.bot-pill.bad .pill-sub { color: #d6a3a5; }
.sellers-pill { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.nav-group { display: flex; flex-direction: column; gap: 6px; }
.nav-group-title { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #848b93; padding: 0 10px 4px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 2px; }
.nav-link {
  flex: 1 1 170px; display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 10px; border-radius: 7px;
  text-decoration: none; font-size: 14px; font-weight: 500; color: #b4bac0; background: transparent;
}
.nav-link:hover { color: var(--text-strong); background: #1b1e22; }
.nav-link svg { flex: none; color: var(--text-faint); }
.nav-link[aria-current='page'] { background: var(--hover); color: var(--text-strong); }
.nav-link[aria-current='page'] svg { color: var(--accent); }
.nav-link .label { flex: 1; }
.nav-count { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); }
.nav-badge {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 10px;
  background: var(--selected); color: var(--text);
}
.nav-badge.hot { background: var(--accent); color: var(--accent-ink); }
.user-card {
  margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 10px;
  background: #171a1d; border: 1px solid #252a30;
}
.user-row { display: flex; align-items: center; gap: 10px; }
.user-initial {
  width: 32px; height: 32px; border-radius: 50%; background: var(--selected); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; flex: none; text-transform: uppercase;
}
.user-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.role-owner { color: #ffa463; }
.role-admin { color: #9dbdff; }
.role-helper { color: #6fd394; }
.user-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.user-actions button {
  flex: 1 1 96px; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px;
  border-radius: 6px; border: 1px solid #2c3137; background: transparent; color: var(--text-label); font-size: 12.5px; font-weight: 500;
}
.user-actions button:hover { border-color: #3a4048; color: var(--text-strong); }

/* ── Page header ───────────────────────────────────────────── */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.page-intro { color: var(--text-muted); max-width: 760px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; text-decoration: none; }

/* ── Live indicator ────────────────────────────────────────── */
.live { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #57c785; animation: arcpulse 2s infinite; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 8px; border: 1px solid #343a41; background: var(--surface-2); color: #e2e5e8;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #444b53; color: var(--text-strong); background: #1f2327; }
.btn:disabled { opacity: .5; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn-primary:hover { background: #ff8a33; border-color: #ff8a33; color: var(--accent-ink); }
.btn-danger-outline { background: transparent; border-color: var(--danger-line); color: var(--danger-text); }
.btn-danger-outline:hover { background: rgba(229, 72, 77, .08); border-color: rgba(255, 107, 107, .6); color: #ffb0b0; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 700; }
.btn-danger:hover { background: #ef5a5f; border-color: #ef5a5f; color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn-xs { min-height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.btn-lg { min-height: 46px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn-icon.btn-xs { width: 32px; }
.btn.is-on { border-color: var(--accent); color: var(--accent-text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--accent-hover); }

/* ── Segmented control ─────────────────────────────────────── */
.segmented {
  display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 10px;
  background: #14171a; border: 1px solid #23282d; max-width: 100%;
}
.segmented button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border-radius: 7px; border: 0;
  background: transparent; color: #a9afb5; font-size: 13.5px; font-weight: 600;
}
.segmented button:hover { color: var(--text-strong); }
.segmented button[aria-pressed='true'] { background: var(--selected); color: var(--text-strong); }
.segmented .seg-count { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: #80878f; }
.segmented button[aria-pressed='true'] .seg-count { color: var(--accent-text); }
.segmented.compact button { min-height: 34px; padding: 0 11px; font-size: 13px; }
.seg-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); padding: 0 6px; align-self: center; }

/* ── Toggle switch ─────────────────────────────────────────── */
.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; position: relative; }
.toggle input { position: absolute; opacity: 0; width: 40px; height: 24px; margin: 0; cursor: pointer; }
.toggle .track {
  width: 40px; height: 24px; border-radius: 999px; background: #2f353b; position: relative; flex: none; transition: background .15s;
}
.toggle .track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s;
}
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(16px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }
.toggle input:disabled + .track { opacity: .5; }
.toggle-text { display: flex; flex-direction: column; gap: 2px; }
.toggle-title { font-weight: 600; color: var(--text); }
.toggle-help { font-size: 12.5px; color: var(--text-faint); }
.onoff { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.onoff.on { color: #6fd394; border-color: rgba(87, 199, 133, .45); background: rgba(87, 199, 133, .1); }
.onoff.off { color: #a7adb4; border-color: rgba(167, 173, 180, .35); background: rgba(167, 173, 180, .08); }

/* ── Chips, badges, rarity ─────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  white-space: nowrap;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.chip.no-dot::before { display: none; }
.chip-lg { padding: 4px 11px; font-size: 13px; }
.c-waiting { --c: var(--st-waiting); }
.c-claimed { --c: var(--st-claimed); }
.c-paid { --c: var(--st-paid); }
.c-done { --c: var(--st-done); }
.c-cancelled { --c: var(--st-cancelled); }
.c-soldout { --c: var(--st-soldout); }
.c-low { --c: var(--st-waiting); }
.c-accent { --c: var(--accent-text); }
.c-blue { --c: #9dbdff; }
.c-red { --c: #ff8f8f; }
.c-green { --c: #6fd394; }
.c-amber { --c: #f2c14e; }
.c-orange { --c: #ffa463; }
.c-grey { --c: #a7adb4; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: #22262b; color: var(--text-label); border: 1px solid #30363c; white-space: nowrap;
}
.badge.soldout { color: #ffb0b0; background: rgba(229, 72, 77, .14); border-color: rgba(229, 72, 77, .4); }
.badge.low { color: var(--st-waiting); background: rgba(242, 193, 78, .1); border-color: rgba(242, 193, 78, .38); }
.badge.accent { color: var(--accent-text); background: rgba(255, 122, 26, .1); border-color: rgba(255, 122, 26, .4); }
.rarity { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--rc); white-space: nowrap; }
.rarity::before { content: ''; width: 7px; height: 7px; background: var(--rc); transform: rotate(45deg); flex: none; }
.r-Common { --rc: var(--r-common); }
.r-Uncommon { --rc: var(--r-uncommon); }
.r-Rare { --rc: var(--r-rare); }
.r-Epic { --rc: var(--r-epic); }
.r-Legendary { --rc: var(--r-legendary); }
.r-Coins { --rc: var(--r-coins); }
.r-Amplified { --rc: var(--r-amplified); }

/* ── Panels, tiles, layout helpers ─────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius-panel); }
.panel-pad { padding: 20px 22px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.panel-body { display: flex; flex-direction: column; gap: 16px; }
.panel-foot { border-top: 1px solid var(--line); background: var(--surface-3); padding: 16px 22px; border-radius: 0 0 var(--radius-panel) var(--radius-panel); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row-tight { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.spacer { flex: 1; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .main-col { flex: 999 1 520px; min-width: 0; }
.split > .side-col { flex: 1 1 340px; min-width: 0; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--surface-line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile-value { font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--text-strong); line-height: 1.15; overflow-wrap: anywhere; }
.tile-sub { font-size: 12.5px; color: var(--text-faint); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.callout { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; border: 1px solid; }
.callout-warn { background: rgba(242, 193, 78, .07); border-color: rgba(242, 193, 78, .3); color: #ecdcb0; }
.callout-orange { background: rgba(255, 122, 26, .08); border-color: rgba(255, 122, 26, .4); color: #f4e3d6; }
.callout-blue { background: rgba(122, 167, 255, .08); border-color: rgba(122, 167, 255, .32); color: #d3e0ff; }
.callout-green { background: rgba(87, 199, 133, .08); border-color: rgba(87, 199, 133, .35); color: #d7f2e1; }
.callout-red { background: rgba(229, 72, 77, .08); border-color: rgba(229, 72, 77, .4); color: #f5d0d1; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-radius: 10px; }
.banner > .banner-text { flex: 1 1 280px; }
.mono-box {
  font-family: var(--mono); font-size: 13px; color: var(--text); background: var(--field); border: 1px solid var(--line);
  padding: 9px 11px; border-radius: 6px; overflow-wrap: anywhere;
}

/* ── Forms ─────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-label); display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.field-label .counter { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--text-faint); }
.field-label .counter.over { color: var(--danger-text); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px; background: var(--field); border: 1px solid var(--field-line);
  font-size: 14px; color: var(--text);
}
textarea.input { resize: vertical; min-height: 88px; line-height: 1.45; }
select.input { padding-right: 32px; }
.input:hover { border-color: #444b53; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.input[aria-invalid='true'] { border-color: #c4464b; }
.input.mono { font-family: var(--mono); font-size: 13.5px; }
.input-sm { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.field-help { font-size: 12.5px; color: var(--text-faint); }
.field-error { font-size: 12.5px; color: var(--danger-text); }
.affix { display: flex; align-items: stretch; }
.affix .input { border-radius: 0; flex: 1; min-width: 0; }
.affix .input:first-child { border-radius: 8px 0 0 8px; }
.affix .input:last-child { border-radius: 0 8px 8px 0; }
.affix-text {
  display: flex; align-items: center; padding: 0 12px; background: #16191c; border: 1px solid var(--field-line); color: var(--text-muted);
  font-family: var(--mono); font-size: 13px; white-space: nowrap;
}
.affix-text:first-child { border-radius: 8px 0 0 8px; border-right: 0; }
.affix-text:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.search {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 8px;
  background: #16191c; border: 1px solid #2a2f35;
}
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 14px; }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search svg { flex: none; color: var(--text-faint); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.radio-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 13px 14px 13px 44px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--field-line); cursor: pointer; min-height: 44px;
}
.radio-card input { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.radio-card:has(input:checked) { border-color: var(--accent); background: #1c1611; }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.radio-card .rc-title { font-weight: 600; }
.radio-card .rc-help { font-size: 12.5px; color: var(--text-faint); }
.pill-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-radio { position: relative; display: inline-flex; }
.pill-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill-radio > span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field-line);
  background: var(--field); font-size: 13px; font-weight: 600; color: var(--text-label);
}
.pill-radio input:checked + span { border-color: var(--accent); color: var(--text-strong); background: #1c1611; }
.pill-radio .rarity-dot { padding: 0; min-height: 0; border: 0; border-radius: 0; }
.pill-radio input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Checkbox pills (a gun's attachment slots). */
.pill-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-check { position: relative; display: inline-flex; }
.pill-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill-check > span {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--field-line);
  background: var(--field); font-size: 12.5px; font-weight: 600; color: var(--text-label);
}
.pill-check input:checked + span { border-color: var(--accent); color: var(--text-strong); background: #1c1611; }
.pill-check input:checked + span::before { content: '✓'; margin-right: 6px; color: var(--accent-text); }
.pill-check input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.badge.amp { color: var(--r-amplified); background: color-mix(in srgb, var(--r-amplified) 13%, transparent); border-color: color-mix(in srgb, var(--r-amplified) 50%, transparent); }
.badge.hidden { color: #c3c8ce; background: rgba(255, 255, 255, .06); border-color: #3a4048; }
.btn.is-hidden { color: #8a9199; border-style: dashed; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ── Tables ────────────────────────────────────────────────── */
.table-box { position: relative; overflow-x: auto; border: 1px solid var(--surface-line); border-radius: 10px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th {
  text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--row-line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.table th.num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.table tr.dim td { opacity: .55; }
.table tr.tint-amber td { background: rgba(242, 193, 78, .05); }

/* ── Empty / access / loading states ──────────────────────── */
.empty { padding: 40px 20px; border-radius: 10px; border: 1px dashed #2f353b; text-align: center; color: var(--text-muted); }
.loading { padding: 40px 20px; text-align: center; color: var(--text-faint); }

/* ── Toasts ────────────────────────────────────────────────── */
.toasts { position: fixed; top: 20px; right: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-width: min(440px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; border-radius: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  background: #17271d; border: 1px solid #2f5a3f; color: #d7f2e1;
}
.toast.bad { background: #2a1517; border-color: #5c2a2d; color: #f5d0d1; }
.toast .toast-text { flex: 1; overflow-wrap: anywhere; }
.toast button { flex: none; width: 32px; height: 32px; border-radius: 6px; border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; opacity: .8; }
.toast button:hover { opacity: 1; background: rgba(255, 255, 255, .06); }

/* ── Dialogs ───────────────────────────────────────────────── */
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 7, .74); display: flex; justify-content: center; align-items: flex-start;
  padding: min(20vh, 200px) 16px 16px; overflow-y: auto;
}
.dialog {
  width: 100%; max-width: 460px; background: #181b1f; border: 1px solid #333940; border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.dialog h2 { font-size: 21px; font-weight: 700; }
.dialog p { color: #c0c5ca; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 4px; }

/* ── Copy button ───────────────────────────────────────────── */
.copy-btn {
  flex: none; width: 30px; height: 30px; border-radius: 6px; border: 1px solid #2f353b; background: transparent; color: #b4bac0;
  display: inline-flex; align-items: center; justify-content: center;
}
.copy-btn:hover { color: var(--text-strong); border-color: #444b53; }

/* ── Utilities (the security header forbids inline styles) ─── */
.between { justify-content: space-between; }
.top { align-items: flex-start; }
.end { justify-content: flex-end; }
.w500 { font-weight: 500; }
.w600 { font-weight: 600; }
.w700 { font-weight: 700; }
.fs12 { font-size: 12px; }
.fs125 { font-size: 12.5px; }
.fs13 { font-size: 13px; }
.fs135 { font-size: 13.5px; }
.fs15 { font-size: 15px; }
.mt6 { margin-top: 6px; }
.mt14 { margin-top: 14px; }
.pt6 { padding-top: 6px; }
.gap6 { gap: 6px; }
.nowrap { white-space: nowrap; }
.wrap-any { overflow-wrap: anywhere; }
.no-underline { text-decoration: none; }
.text-label { color: var(--text-label); }
.min-720 { min-width: 720px; }
.full { width: 100%; }

/* ── Small screens ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .page-title { font-size: 30px; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .panel-pad { padding: 16px; }
}
