/* ==========================================================================
   GitGudLab · account area (package `account`)
   User settings (profile, account & security, sessions, appearance, access
   tokens, activity log, 2FA), the admin area and the auth pages (login,
   2FA login, register, invite, error). Tokens and shared components
   (.frows, .frow, .chan, .rcards, .side-nav, .user-hero, .tabs, .ph) live in
   base.css; this file only holds what those pages add.
   ========================================================================== */

/* ---------- Notes (flash messages) ---------- */
.ac-note {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 13.5px; line-height: 1.45;
}
.ac-note > .i { margin-top: 1px; }
.ac-note.ok { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 26%, transparent); color: var(--green); }
.ac-note.err { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 30%, transparent); color: var(--red); }
.ac-note.info { background: var(--link-soft); border-color: color-mix(in srgb, var(--link) 24%, transparent); color: var(--link); }
.ac-note.warn { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 28%, transparent); color: var(--amber); }
.ac-note b { font-weight: 650; }
.ac-note .grow + .btn { margin: -3px -4px -3px 0; }

/* Anchored sections (/settings/account#password, #2fa) clear the sticky header. */
.sec[id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }
/* Section headers with an action wrap the action under the text on narrow screens. */
.sec-hd { flex-wrap: wrap; }
.sec-hd > div { min-width: min(100%, 260px); flex: 1 1 auto; }

/* ---------- Form helpers inside .frows ---------- */
.ac-fsave {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px;
  border-top: 1px solid var(--border-soft); background: var(--surface-2); border-radius: 0 0 12px 12px; flex-wrap: wrap;
}
.ac-fsave .msg { margin-right: auto; font-size: 12.5px; color: var(--text-3); }
.ac-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ac-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ac-field > label { font-size: 13px; font-weight: 600; }
.ac-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ac-inline > .input { flex: 1 1 180px; width: auto; }
.ac-inline > select.input { flex: 0 1 240px; width: auto; min-width: 140px; }
.ac-inline > form { display: contents; }
.ac-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ac-actions .msg { font-size: 12.5px; color: var(--text-3); }
.ac-helprow { display: flex; justify-content: space-between; gap: 12px; }
.ac-count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
/* Native selects: a CSS-drawn caret (the CSP blocks data: images). */
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
input.input.mono { font-family: var(--mono); font-size: 12.5px; }
input.radio { appearance: none; -webkit-appearance: none; margin: 2px 0 0; cursor: pointer; }
input.radio:checked { border-color: var(--link); border-width: 5px; }
input.radio:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.rcard > input.radio { margin-top: 2px; }
.ac-file { position: relative; overflow: hidden; cursor: pointer; }
.ac-file:focus-within { box-shadow: var(--ring); border-color: var(--link); }
.ac-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ac-avatar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-width: 0; }
.ac-avatar > img.av, .ac-avatar > .av { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 0 1px var(--border); }
.ac-avatar .acts { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ac-avatar .acts .row-flex { flex-wrap: wrap; }
.ac-filename { font-size: 12.5px; color: var(--text-3); max-width: 220px; }
.ac-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ---------- Theme cards (Appearance) ---------- */
.ac-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ac-theme {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  overflow: hidden; cursor: pointer; min-width: 0; transition: border-color .12s, box-shadow .12s;
}
.ac-theme:hover { border-color: var(--border-2); }
.ac-theme:has(input:checked) { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.ac-theme-ft { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px 12px; border-top: 1px solid var(--border-soft); }
.ac-theme-ft .t { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.ac-theme-ft .d { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.ac-pv-wrap { position: relative; height: 118px; background: var(--surface-2); }
.pv {
  --pv-bg: #f8f7f4; --pv-sf: #ffffff; --pv-bd: #e4e0d9; --pv-ln: #d9d3ca; --pv-ln2: #ebe6df; --pv-tx: #1c1a17;
  position: absolute; inset: 14px 14px 0 14px; display: flex; flex-direction: column; overflow: hidden;
  background: var(--pv-bg); border: 1px solid var(--pv-bd); border-bottom: 0; border-radius: 8px 8px 0 0;
}
.pv-dark { --pv-bg: #0a0b0d; --pv-sf: #131418; --pv-bd: #25272d; --pv-ln: #33363d; --pv-ln2: #1e2025; --pv-tx: #e6e8ec; }
.pv-hd { display: flex; align-items: center; gap: 5px; height: 16px; padding: 0 7px; border-bottom: 1px solid var(--pv-bd); flex: none; }
.pv-hd b { display: block; }
.pv-hd .lg { width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(140deg, #ffa36f, #f4694c 52%, #e8476b); }
.pv-hd .sp { flex: 1; }
.pv-hd .av { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(140deg, #ffa36f, #ee5a70); }
.pv-bd { display: flex; gap: 8px; padding: 8px; flex: 1; min-height: 0; }
.pv-side { display: flex; flex-direction: column; gap: 5px; width: 26%; flex: none; }
.pv-main { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 7px; border-radius: 5px; background: var(--pv-sf); border: 1px solid var(--pv-bd); }
.pv i { display: block; height: 4px; border-radius: 2px; background: var(--pv-ln); }
.pv-side i:first-child { background: #fd8c73; width: 80%; }
.pv-side i:nth-child(2) { width: 65%; }
.pv-side i:nth-child(3) { width: 72%; background: var(--pv-ln2); }
.pv-main i:nth-child(1) { width: 55%; background: var(--pv-tx); opacity: .7; height: 5px; }
.pv-main i:nth-child(2) { width: 85%; }
.pv-main i:nth-child(3) { width: 70%; background: var(--pv-ln2); }
.pv-main i.btn-pv { width: 26%; height: 8px; border-radius: 3px; background: #1f883d; margin-top: auto; }
.pv-split .pv-dark { clip-path: polygon(62% 0, 100% 0, 100% 100%, 38% 100%); }

/* ---------- Sessions, tokens, runners (rows built on .chan) ---------- */
.chan .ic.ok { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chan .ic.warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chan .ic.off { opacity: .7; }
.chan .t .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chan .d .sep-dot { margin: 0 3px; }
.chan .acts form { display: contents; }
.chan + .frow, .frow + .chan { border-top: 1px solid var(--border-soft); }
.chan.is-dim .t, .chan.is-dim .d { opacity: .65; }
.ac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.ac-meta > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ac-meta .i { width: 13px; height: 13px; color: var(--text-3); }
.ac-meta .warn { color: var(--amber); }
.badge-red { color: var(--red); background: var(--red-soft); border-color: transparent; }
.badge-slate { color: var(--slate); background: var(--slate-soft); border-color: transparent; }
.badge-link { color: var(--link); background: var(--link-soft); border-color: transparent; }
.ac-empty-row { padding: 18px 20px; color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.ac-empty-row .i { color: var(--text-3); }

/* Token reveal (shown once after creating a token) */
.ac-reveal { border: 1px solid color-mix(in srgb, var(--green) 30%, var(--border)); border-radius: 12px; background: var(--surface); margin-bottom: 26px; overflow: hidden; }
.ac-reveal-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--green-soft); color: var(--green); font-size: 13.5px; font-weight: 600; }
.ac-reveal-hd .i { flex: none; }
.ac-reveal-hd span { min-width: 0; font-weight: 450; color: var(--text-2); }
.ac-reveal-hd b { font-weight: 600; color: var(--green); }
.ac-reveal-bd { padding: 14px 16px; }

/* ---------- 2FA ---------- */
.ac-steps { counter-reset: step; }
.ac-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 20px; }
.ac-step + .ac-step { border-top: 1px solid var(--border-soft); }
.ac-step::before {
  counter-increment: step; content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-text); font-weight: 650; font-size: 12.5px;
}
.ac-step h3 { font-size: 14px; font-weight: 600; }
.ac-step p { font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.5; }
.ac-qr-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 12px; }
.ac-qr { background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--border); line-height: 0; flex: none; }
.ac-qr svg { width: 168px; height: 168px; display: block; }
.ac-qr-key { min-width: 0; flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.ac-qr-key .k { font-size: 12px; color: var(--text-3); font-weight: 550; }
.ac-step .ac-inline { margin-top: 12px; }
.ac-step .ac-inline .input { flex: 0 1 220px; }
.ac-code-input { font-family: var(--mono); letter-spacing: .14em; font-size: 15px; max-width: 220px; }
.ac-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; }
.ac-codes span { padding: 6px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border-soft); text-align: center; letter-spacing: .04em; }

/* ---------- Activity log ---------- */
.ac-feed { padding: 4px 0; }
.ac-act { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; min-width: 0; }
.ac-act + .ac-act { border-top: 1px solid var(--border-soft); }
.ac-act:hover { background: var(--surface-2); }
.ac-act .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text-2); }
.ac-act .ic.green { color: var(--green); }
.ac-act .ic.purple { color: var(--purple); }
.ac-act .ic.brand { color: var(--brand-text); }
.ac-act .ic.red { color: var(--red); }
.ac-act .tx { min-width: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.45; overflow-wrap: anywhere; }
.ac-act .tx .who { margin-right: 4px; }
.ac-act .tx a.what { color: var(--text); font-weight: 550; }
.ac-act .tx a.what:hover { color: var(--link); }
.ac-act .tx .in { color: var(--text-3); }
.ac-act .tx .in a { color: var(--text-2); font-weight: 550; }
.ac-act .tx .in a:hover { color: var(--link); }
.ac-act time { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.ac-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-3); background: var(--surface-2); border-radius: 0 0 10px 10px; }
.ac-pager .acts { display: flex; gap: 6px; }

/* ---------- Admin area ---------- */
.ac-adm-ic {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--brand-soft); color: var(--brand-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-line) 30%, transparent);
}
.ac-adm-ic .i { width: 22px; height: 22px; stroke-width: 1.8; }
.ac-admin .page-title { margin-bottom: 16px; }
.ac-metrics {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--border-soft);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 26px;
}
.ac-metric { display: block; padding: 14px 18px; min-width: 0; background: var(--surface); color: var(--text); }
a.ac-metric:hover { background: var(--surface-2); text-decoration: none; }
.ac-metric .k { font-size: 12px; color: var(--text-3); font-weight: 550; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ac-metric .v { font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ac-metric .s { font-size: 12px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.ac-rows { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.ac-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; min-width: 0; font-size: 13.5px; }
.ac-row + .ac-row { border-top: 1px solid var(--border-soft); }
.ac-row .lab { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.ac-row .lab .i { color: var(--text-3); }
.ac-row .lab small { display: block; color: var(--text-3); font-size: 12px; }
.ac-row .val { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-row .val.mono { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.ac-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-3); gap: 2px; margin: 2px 0 12px; }
.ac-bar span { display: block; min-width: 3px; }
.ac-bar .hot { background: var(--brand); }
.ac-bar .cold { background: var(--link); }
.ac-swatch { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.ac-swatch.hot { background: var(--brand); }
.ac-swatch.cold { background: var(--link); }
.ac-tiers { padding: 16px 18px 6px; }
.ac-tiers + .ac-row { border-top: 1px solid var(--border-soft); }

/* Users list */
.ac-users { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.ac-urow, .ac-uhead {
  display: grid; grid-template-columns: minmax(0, 1fr) 110px 90px 120px 120px; gap: 14px; align-items: center; padding: 10px 16px;
}
.ac-uhead { height: 38px; padding-top: 0; padding-bottom: 0; font-size: 12px; color: var(--text-3); font-weight: 550; background: var(--surface-2); border-bottom: 1px solid var(--border-soft); border-radius: 12px 12px 0 0; }
.ac-urow + .ac-urow { border-top: 1px solid var(--border-soft); }
.ac-urow:hover { background: var(--surface-2); }
.ac-uwho { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ac-uwho .tx { min-width: 0; }
.ac-uwho .nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ac-uwho .nm a { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-uwho .nm a:hover { color: var(--link); }
.ac-uwho .sub { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-ucell { font-size: 12.5px; color: var(--text-2); min-width: 0; white-space: nowrap; }
.ac-uacts { display: flex; justify-content: flex-end; gap: 6px; }
.ac-uacts form { display: contents; }
.ac-st { text-transform: capitalize; }
.ac-st.active { color: var(--green); background: var(--green-soft); border-color: transparent; }
.ac-st.pending { color: var(--amber); background: var(--amber-soft); border-color: transparent; }
.ac-st.disabled { color: var(--red); background: var(--red-soft); border-color: transparent; }
.ac-st.deleted { color: var(--slate); background: var(--slate-soft); border-color: transparent; }
.ac-queue { border-color: color-mix(in srgb, var(--amber-dot) 45%, var(--border)); margin-bottom: 26px; }
.ac-queue .ac-uhead { background: var(--amber-soft); color: var(--amber); border-bottom-color: color-mix(in srgb, var(--amber-dot) 25%, transparent); font-weight: 600; font-size: 12.5px; }
.ac-queue .ac-urow, .ac-queue .ac-uhead { grid-template-columns: minmax(0, 1fr) auto; }
.ac-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ac-toolbar .input { max-width: 260px; height: 32px; }

/* User detail */
.ac-narrow { max-width: 920px; }
.ac-uhero { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.ac-uhero > .av { width: 52px; height: 52px; font-size: 18px; }
.ac-uhero h1 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ac-uhero p { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.ac-uhero .acts { margin-left: auto; display: flex; gap: 8px; }
.ac-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.ac-back:hover { color: var(--link); text-decoration: none; }
.ac-plist a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: var(--text); min-width: 0; }
.ac-plist a + a { border-top: 1px solid var(--border-soft); }
.ac-plist a:hover { background: var(--surface-2); text-decoration: none; }
.ac-plist .nm { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ac-plist .badge { margin-left: auto; text-transform: capitalize; }
.ac-danger { border-color: color-mix(in srgb, var(--red) 35%, var(--border)); }
.ac-danger .frow .lab { color: var(--red); }

/* Instance settings */
.ac-rcards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-quota { max-width: 240px; }
.ac-quota .input { border-radius: 8px 0 0 8px; }
.input-group .suffix {
  display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--border-2); border-left: 0;
  border-radius: 0 8px 8px 0; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 550;
}

/* Runner registration command (the token itself is a .secret) */
.ac-cmd { margin: 10px 0 0; padding: 9px 11px; border-radius: 8px; background: var(--inset); border: 1px solid var(--border-soft); font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--text-2); overflow-x: auto; white-space: pre; }

/* ---------- Auth pages: centred cards ---------- */
.gate { display: flex; justify-content: center; padding: 28px 0 12px; min-height: calc(100vh - var(--hdr-h) - 190px); align-items: center; }
.gate-box { width: 100%; max-width: 392px; min-width: 0; }
.gate-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.gate-logo .logo-mark { width: 50px; height: 50px; border-radius: 14px; }
.gate-logo .logo-mark svg { width: 28px; height: 28px; }
.gate-logo .ac-adm-ic { width: 50px; height: 50px; border-radius: 14px; }
.gate h1 { font-size: 22px; font-weight: 650; letter-spacing: -.025em; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.gate-lead { text-align: center; color: var(--text-2); font-size: 13.5px; margin: 6px auto 0; max-width: 340px; line-height: 1.5; overflow-wrap: anywhere; }
.gate-card { padding: 22px; margin-top: 20px; box-shadow: var(--shadow-sm); }
.gate-card .ac-note { margin-bottom: 14px; }
.gate-card .ac-field + .ac-field { margin-top: 14px; }
.gate-card .ac-field .row-flex { justify-content: space-between; }
.gate-card .ac-field .row-flex a { font-size: 12.5px; }
.gate-card .btn-block { height: 36px; margin-top: 18px; font-size: 13.5px; }
.gate-card .input { height: 36px; }
.gate-code-input { text-align: center; max-width: none; height: 42px !important; font-size: 18px; }
.gate-alt { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 14px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.gate-alt a { font-weight: 600; }
.gate-theme { display: flex; justify-content: center; margin-top: 22px; }
.gate-theme .theme-seg { margin: 0; background: var(--surface); }
.gate-theme .theme-seg button { padding: 0 12px; }
.gate-code {
  font-family: var(--mono); font-size: 64px; font-weight: 600; letter-spacing: -.04em; line-height: 1; text-align: center;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px;
}
.gate-acts { display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.gate-invite { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-soft); margin-bottom: 16px; min-width: 0; }
.gate-invite .tx { min-width: 0; }
.gate-invite .p { font-family: var(--mono); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.gate-invite .r { font-size: 12.5px; color: var(--text-2); margin-top: 1px; }
.gate-invite .r b { text-transform: capitalize; color: var(--text); }
.gate-card .btn-row { display: flex; gap: 8px; }
.gate-card .btn-row .btn { flex: 1; height: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ac-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ac-metric { grid-column: span 2; }
  .ac-metric:nth-child(n+4) { grid-column: span 3; }
  .ac-urow, .ac-uhead { grid-template-columns: minmax(0, 1fr) 100px 80px 110px; }
  .ac-urow > :nth-child(4), .ac-uhead > :nth-child(4) { display: none; }
}
@media (max-width: 900px) {
  .ac-grid2 { grid-template-columns: minmax(0, 1fr); }
  .ac-rcards3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .ac-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-metric, .ac-metric:nth-child(n+4) { grid-column: auto; }
  .ac-metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ac-metric { padding: 12px 14px; }
  .ac-metric .v { font-size: 19px; }
  .ac-themes { grid-template-columns: minmax(0, 1fr); }
  .ac-pv-wrap { height: 96px; }
  .ac-cols { grid-template-columns: minmax(0, 1fr); }
  .ac-fsave { padding: 12px 16px; }
  .ac-fsave .btn { flex: 1; }
  .ac-fsave .msg { flex-basis: 100%; }
  .ac-codes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 14px 16px; font-size: 12.5px; }
  .ac-step { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
  .ac-qr svg { width: 148px; height: 148px; }
  .ac-act { grid-template-columns: 28px minmax(0, 1fr); padding: 10px 14px; }
  .ac-act time { grid-column: 2; margin-top: -6px; }
  .ac-act .ic { width: 28px; height: 28px; }
  .ac-uhead { display: none; }
  .ac-urow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; }
  .ac-urow > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .ac-urow > :nth-child(3), .ac-urow > :nth-child(4) { display: none; }
  .ac-urow > :nth-child(5) { display: none; }
  .ac-adm-band .ph-actions { display: none; }
  .ac-queue .ac-uhead { display: flex; }
  .ac-queue .ac-urow > :nth-child(2) { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
  .ac-toolbar .input { max-width: none; flex: 1 1 100%; }
  .ac-inline > select.input { flex: 1 1 140px; }
  .ac-uhero .acts { margin-left: 0; }
  .ac-row { padding: 12px 14px; flex-wrap: wrap; }
  .gate { padding-top: 8px; min-height: 0; }
  .gate-card { padding: 18px; }
  .gate-code { font-size: 52px; }
}
