/* Material 3, light scheme, blue source colour.
 *
 * Tokens first, components after: every colour below is an M3 role, not a
 * one-off hex, so the whole app can be re-themed by editing this block alone.
 * Roboto is asked for but never fetched — the CSP is default-src 'self' with no
 * font-src, so a Google Fonts link would be blocked and the page would silently
 * fall back anyway. It falls back on purpose instead. */

:root {
  color-scheme: light;

  /* ── colour roles ─────────────────────────────────────────────────────── */
  --primary: #0b57d0;
  --on-primary: #ffffff;
  --primary-container: #d3e3fd;
  --on-primary-container: #041e49;

  --secondary: #565f71;
  --secondary-container: #dae2f9;
  --on-secondary-container: #131c2b;

  --error: #b3261e;
  --on-error: #ffffff;
  --error-container: #f9dedc;
  --on-error-container: #410e0b;

  /* Success and caution are not M3 roles; these follow the same tonal logic. */
  --success: #146c2e;
  --success-container: #c4eed0;
  --on-success-container: #072711;
  --caution: #6c4e00;
  --caution-container: #ffefc7;
  --on-caution-container: #231a00;

  /* Depth is carried by tone, not by shadow: the page sits back, containers sit
     on it in white, and anything nested inside a container takes a tint again. */
  --surface: #eaedf3;
  --surface-lowest: #ffffff;
  --surface-low: #f6f8fb;
  --surface-container: #e4e8ef;
  --surface-high: #dde2ea;
  --surface-highest: #d6dce6;
  --on-surface: #1b1b1f;
  --on-surface-variant: #44474e;
  --outline: #74777f;
  --outline-variant: #c4c6d0;

  /* ── shape ────────────────────────────────────────────────────────────── */
  --shape-xs: 4px;
  --shape-sm: 8px;
  --shape-md: 12px;
  --shape-lg: 16px;
  --shape-xl: 28px;
  --shape-full: 999px;

  /* ── elevation ────────────────────────────────────────────────────────── */
  --elev-1: 0 1px 2px rgba(0, 0, 0, .30), 0 1px 3px 1px rgba(0, 0, 0, .15);
  --elev-2: 0 1px 2px rgba(0, 0, 0, .30), 0 2px 6px 2px rgba(0, 0, 0, .15);
  --elev-3: 0 1px 3px rgba(0, 0, 0, .30), 0 4px 8px 3px rgba(0, 0, 0, .15);

  --rail: 232px;
  --mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* body-medium */
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font: 400 14px/20px Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .25px;
}

/* ── navigation drawer ────────────────────────────────────────────────────
 * A standard M3 drawer: 56dp destination rows, fully rounded, the active one
 * carrying a secondary-container state layer rather than an underline. */

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 20;
  display: flex; flex-direction: column; padding: 12px;
  background: transparent;
}
.brand {
  display: block; padding: 16px 16px 18px;
  font: 400 22px/28px Roboto, system-ui, sans-serif; letter-spacing: 0;
  color: var(--on-surface);
}
.brand .part {
  display: inline-block; vertical-align: middle;
  font: 500 11px/16px var(--mono); letter-spacing: .5px;
  color: var(--on-surface-variant); background: var(--surface-highest);
  border-radius: var(--shape-sm); padding: 3px 8px; margin-left: 8px;
}
.tabs { display: flex; flex-direction: column; gap: 4px; }
/* A drawer group: the row opens to reveal its destinations underneath, so the
   rail stays short until you are actually going somewhere inside it. */
.navgroup { display: flex; flex-direction: column; gap: 4px; }
.subnav { display: flex; flex-direction: column; gap: 4px; }
button.tab.group .chev { margin-left: auto; }
.chev {
  width: 7px; height: 7px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .15s ease;
}
button.tab.group.open .chev { transform: rotate(-135deg) translate(-1px, -1px); }
.whoacts { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -12px; }
.who {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  margin-top: auto; padding: 16px; border-top: 1px solid var(--outline-variant);
  font: 400 12px/16px Roboto, system-ui, sans-serif; letter-spacing: .4px;
  color: var(--on-surface-variant);
}

button.tab {
  display: flex; align-items: center; gap: 12px;
  width: 100%; height: 56px; text-align: left;
  padding: 0 24px; border: none; border-radius: var(--shape-full);
  background: none; color: var(--on-surface-variant);
  font: 500 14px/20px Roboto, system-ui, sans-serif; letter-spacing: .1px;
}
/* 24dp leading icon, inked with the row so it follows every state. */
.ic { flex: 0 0 24px; width: 24px; height: 24px; fill: currentColor; }
button.tab:hover { background: rgba(27, 27, 31, .08); color: var(--on-surface); }
button.tab.on {
  background: var(--secondary-container); color: var(--on-secondary-container);
}
button.tab.dev.on { background: var(--caution-container); color: var(--on-caution-container); }
/* Sub-item labels line up under their parent's label, not under its icon. */
button.tab.sub { padding-left: 60px; }
button.tab:disabled { opacity: .38; cursor: not-allowed; }

/* ── layout ───────────────────────────────────────────────────────────────*/

.view {
  width: auto; margin: 0 0 0 var(--rail); padding: 16px;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px;
}
.hide { display: none !important; }

.flashview { padding-bottom: 104px; }
.col { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; min-width: 0; }
.col.main { flex: 3 1 620px; }
.col.main > .card { flex: 1 1 calc(50% - 8px); min-width: 300px; }
.col.side { flex: 1 1 380px; position: sticky; top: 16px; }
.col.side .log { height: min(340px, calc(100vh - 320px)); }
.log:empty { display: none; }

/* ── cards ────────────────────────────────────────────────────────────────
 * Elevated cards: surface at the lowest container tone, level-1 shadow, 12dp
 * corners. The header keeps a hairline divider — not canonical M3, but this is
 * a dense tool and the sections need to read apart at arm's length. */

.card {
  flex: 1 1 360px; min-width: 0;
  background: var(--surface-lowest); border-radius: var(--shape-lg);
  padding: 16px;
}
.card:has(.tablewrap), .card:has(.log) { flex-basis: 100%; }
.card.danger { background: #fef6f5; }

.card > h2, .card > .rowhead {
  margin: -16px -16px 16px; padding: 8px 16px; min-height: 56px;
  border-bottom: 1px solid #eaedf3;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card.danger > h2 { color: var(--error); background: var(--error-container); border-bottom-color: #f0d3d0; }
.card.danger > h2 { border-radius: var(--shape-lg) var(--shape-lg) 0 0; }

/* headline-small / title-medium */
h1 { font: 400 24px/32px Roboto, system-ui, sans-serif; letter-spacing: 0; margin: 0 0 24px; }
h2 {
  font: 500 16px/24px Roboto, system-ui, sans-serif; letter-spacing: .15px;
  color: var(--on-surface); margin: 0; text-transform: none;
}
.rowhead { flex-wrap: wrap; }

/* ── text fields ──────────────────────────────────────────────────────────*/

label {
  display: block; margin: 16px 0 6px;
  font: 400 12px/16px Roboto, system-ui, sans-serif; letter-spacing: .4px;
  color: var(--on-surface-variant);
}
label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
label.inline > span { white-space: nowrap; }
label.check { cursor: pointer; }

/* M3 filled fields: a tinted container with one line under it, rather than a
   box drawn around empty white. */
input[type=text], input[type=password], input[type=email], input[type=date],
input:not([type]), select, input[type=file] {
  width: 100%; height: 48px; padding: 0 16px;
  font: 400 14px/20px Roboto, system-ui, sans-serif; letter-spacing: .25px;
  color: var(--on-surface); background: var(--surface-high);
  border: none; border-bottom: 1px solid var(--on-surface-variant);
  border-radius: var(--shape-xs) var(--shape-xs) 0 0;
}
input[type=file] { padding: 12px; height: auto; }
input::placeholder { color: var(--on-surface-variant); }
input:hover, select:hover { background: var(--surface-highest); }
input:focus, select:focus {
  outline: none; background: var(--surface-highest);
  border-bottom: 2px solid var(--primary);
}
button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
select, input[type=file] { width: auto; max-width: 100%; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); }

/* ── buttons ──────────────────────────────────────────────────────────────
 * filled (.primary) · filled error (.warn) · outlined (default) ·
 * text (.ghost, .link). All 40dp tall and fully rounded, label-large. */

button {
  height: 40px; padding: 0 24px; border-radius: var(--shape-full);
  border: 1px solid var(--outline); background: transparent; color: var(--primary);
  font: 500 14px/20px Roboto, system-ui, sans-serif; letter-spacing: .1px;
  cursor: pointer;
}
button:hover:not(:disabled) { background: rgba(11, 87, 208, .08); }
button:active:not(:disabled) { background: rgba(11, 87, 208, .12); }
button:disabled { opacity: .38; cursor: not-allowed; }

button.primary { background: var(--primary); border-color: transparent; color: var(--on-primary); }
button.primary:hover:not(:disabled) { background: #0a4cb8; box-shadow: var(--elev-1); }
button.warn { background: var(--error); border-color: transparent; color: var(--on-error); }
button.warn:hover:not(:disabled) { background: #9c211a; box-shadow: var(--elev-1); }
button.ghost { border-color: var(--outline); }
button.link {
  height: auto; padding: 6px 12px; border-color: transparent;
  border-radius: var(--shape-full); background: none; color: var(--primary);
}
button.link:hover { background: rgba(11, 87, 208, .08); }

/* Extended FAB: the one action of the flash screen. */
button.big {
  height: 56px; padding: 0 24px; border-radius: var(--shape-lg);
  font: 500 16px/24px Roboto, system-ui, sans-serif; letter-spacing: .15px;
  box-shadow: var(--elev-3);
}
button.big:disabled { box-shadow: none; }

.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.controls.end { justify-content: flex-end; margin-top: 24px; }
.controls input:not([type=checkbox]), .controls select { flex: 0 1 240px; width: auto; }
.card > input:not([type=checkbox]), .card > select { max-width: 520px; }

/* ── chips: state at a glance ─────────────────────────────────────────────*/

.pill {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: var(--shape-sm); border: 1px solid transparent;
  background: var(--surface-high); color: var(--on-surface-variant);
  font: 500 11px/16px var(--mono); letter-spacing: .5px; text-transform: uppercase;
  white-space: nowrap;
}
.pill.good { background: var(--success-container); border-color: transparent; color: var(--on-success-container); }
.pill.bad { background: var(--error-container); border-color: transparent; color: var(--on-error-container); }
.pill.busy { background: var(--caution-container); border-color: transparent; color: var(--on-caution-container); }

/* A headline number: display-small, with its unit beside it rather than above,
   so the figure is what the eye lands on from across the room. */
.metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 4px 0 8px; }
.metric-value {
  font: 400 36px/44px Roboto, system-ui, sans-serif; letter-spacing: 0;
  color: var(--on-surface);
}
.metric-value.bad { color: var(--error); }
.metric-label {
  color: var(--on-surface-variant);
  font: 400 14px/20px Roboto, system-ui, sans-serif; letter-spacing: .25px;
}

/* ── content ──────────────────────────────────────────────────────────────*/

.kv {
  display: grid; grid-template-columns: minmax(112px, max-content) 1fr;
  gap: 8px 16px; margin: 16px 0 0;
}
.kv dt {
  color: var(--on-surface-variant);
  font: 400 12px/16px Roboto, system-ui, sans-serif; letter-spacing: .4px;
}
.kv dd { margin: 0; font: 400 12px/16px var(--mono); word-break: break-all; }

.hint {
  color: var(--on-surface-variant); margin: 12px 0 0;
  font: 400 12px/16px Roboto, system-ui, sans-serif; letter-spacing: .4px;
}
.hint b { color: var(--on-surface); font-weight: 500; }
code {
  font: 400 12px/16px var(--mono); background: var(--surface-high);
  padding: 2px 6px; border-radius: var(--shape-xs);
}
.err { color: var(--error); margin: 12px 0 0; min-height: 1px; font-size: 12px; letter-spacing: .4px; }
.ok { color: var(--success); margin: 12px 0 0; min-height: 1px; font-size: 12px; letter-spacing: .4px; }

/* Linear progress indicator. */
.bar { height: 4px; background: var(--surface-high); border-radius: var(--shape-full); overflow: hidden; margin-bottom: 16px; }
.bar > div { height: 100%; width: 0; background: var(--primary); border-radius: var(--shape-full); transition: width .15s linear; }
.bar.done > div { background: var(--success); }
.bar.failed > div { background: var(--error); }

.status {
  margin: 0; min-height: 24px;
  font: 500 16px/24px Roboto, system-ui, sans-serif; letter-spacing: .15px;
}
.status.good { color: var(--success); }
.status.bad { color: var(--error); }

.log {
  font: 400 12px/18px var(--mono);
  background: var(--surface-low); color: var(--on-surface-variant);
  border-radius: var(--shape-md); padding: 12px 16px;
  overflow: auto; white-space: pre-wrap; margin: 16px 0 0; max-height: 300px;
}

/* ── data tables ──────────────────────────────────────────────────────────*/

.tablewrap {
  overflow-x: auto; margin-top: 16px;
  background: var(--surface-low); border-radius: var(--shape-md);
}
.tablewrap.scroll { max-height: 340px; overflow-y: auto; }
.tablewrap.scroll th { position: sticky; top: 0; z-index: 1; box-shadow: inset 0 -1px 0 var(--outline-variant); }
table { border-collapse: collapse; width: 100%; }
th, td {
  text-align: left; padding: 12px 16px; white-space: nowrap;
  border-bottom: 1px solid #e7eaf0;
}
th {
  background: var(--surface-container); color: var(--on-surface-variant);
  font: 500 12px/16px Roboto, system-ui, sans-serif; letter-spacing: .5px;
}
td { font: 400 14px/20px Roboto, system-ui, sans-serif; letter-spacing: .25px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, tr:hover td { background: rgba(11, 87, 208, .04); }
td.mono { font: 400 12px/16px var(--mono); }

/* ── dialog ───────────────────────────────────────────────────────────────*/

.modal {
  position: fixed; inset: 0; background: rgba(27, 27, 31, .32);
  display: grid; place-items: center; z-index: 50; padding: 24px;
}
.modalbox {
  background: var(--surface-lowest); border-radius: var(--shape-xl);
  padding: 24px; max-width: 460px; width: 100%; box-shadow: var(--elev-3);
}
.modalbox h2 {
  font: 400 24px/32px Roboto, system-ui, sans-serif; letter-spacing: 0;
  color: var(--on-surface); margin: 0 0 16px;
}
/* Dialog actions are text buttons in M3. */
.modalbox .controls.end button { background: none; border-color: transparent; color: var(--primary); }
.modalbox .controls.end button:hover { background: rgba(11, 87, 208, .08); }
.modalbox .controls.end button.warn { color: var(--error); }
.modalbox .controls.end button.warn:hover { background: rgba(179, 38, 30, .08); box-shadow: none; }

/* A checkbox standing where a field would: label.inline zeroes its margin so it
   can sit next to a control, which leaves it flush against the select above it
   in a dialog. */
.modalbox label.inline { margin: 16px 0 0; }
.modalbox label.inline + .hint { margin-top: 6px; }

/* A field with a reveal beside it: what you are typing can be checked, what is
   stored never can — it is a hash. */
.reveal { display: flex; align-items: center; gap: 8px; }
.reveal input { flex: 1 1 auto; min-width: 0; }
.reveal button { flex: 0 0 auto; }

/* ── bottom app bar ───────────────────────────────────────────────────────*/

/* The action bar is a container of its own, floating clear of the page. */
.flashbar {
  position: fixed; left: calc(var(--rail) + 16px); right: 16px; bottom: 16px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 80px; padding: 0 16px 0 24px;
  background: var(--surface-lowest); border-radius: var(--shape-xl);
  box-shadow: var(--elev-2);
}
.flashbar #flashWhy { margin: 0; flex: 1 1 auto; min-width: 0; }
.flashbar #doFlash { flex: 0 0 auto; white-space: nowrap; }

/* ── sign in ──────────────────────────────────────────────────────────────*/

/* ── sign in ──────────────────────────────────────────────────────────────
 * Its own screen, not a card dropped into the app frame: the rail is hidden
 * (body.signedout), the card is centred in the viewport, and the pad is sized
 * for a thumb at arm's length rather than a mouse. */

body.signedout .sidebar { display: none; }

/* Shown only while the page is deciding whether it is signed in. Anything more
   elaborate would flash on a fast connection; anything less is a blank page
   that looks broken on a slow one. */
.boot {
  position: fixed; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--on-surface-variant);
  font: 400 14px/20px Roboto, system-ui, sans-serif; letter-spacing: .25px;
}
.view.login {
  margin: 0; min-height: 100vh; min-height: 100dvh; padding: 24px;
  flex-direction: column; align-items: center; justify-content: center;
}
.signin { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 20px; }
.signin-brand { display: flex; align-items: center; gap: 14px; padding: 0 4px; }
.signin-brand .mark {
  flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border-radius: var(--shape-md);
  background: var(--primary-container); fill: var(--on-primary-container);
}
.signin-name { font: 400 22px/28px Roboto, system-ui, sans-serif; letter-spacing: 0; }
.signin-part {
  font: 500 11px/16px var(--mono); letter-spacing: .5px;
  color: var(--on-surface-variant); text-transform: uppercase;
}
.signin-foot {
  margin: 0; text-align: center;
  font: 400 12px/16px Roboto, system-ui, sans-serif; letter-spacing: .4px;
  color: var(--on-surface-variant);
}

.card.auth {
  flex: 1 1 auto; width: 100%; padding: 28px 24px 24px;
  border-radius: var(--shape-xl); box-shadow: var(--elev-1);
  display: flex; flex-direction: column;
}
.card.auth h1 { margin: 0 0 4px; }
.card.auth .sub {
  margin: 0 0 24px;
  font: 400 14px/20px Roboto, system-ui, sans-serif; letter-spacing: .25px;
  color: var(--on-surface-variant);
}
.card.auth .sub:empty { display: none; }
.card.auth .err { margin: 12px 0 0; min-height: 20px; }
.card.auth > .link { align-self: center; margin-top: 20px; }
.signin-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 20px;
}

/* The mailed code. Wide tracking and a mono face so six digits read as six
   digits — a transposed pair is the whole failure mode of typing one in. */
.codefield {
  text-align: center;
  font: 500 26px/32px var(--mono) !important;
  letter-spacing: 10px !important;
  text-indent: 10px;   /* the tracking pads the right; this re-centres it */
  height: 60px !important;
}
.card.auth > button.big { margin-top: 28px; }

/* Who the machine remembers. The initial is not decoration: it is the fastest
   way to see, before typing anything, that the pad is going to unlock YOUR
   account and not the shift before yours. */
.avatar {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 0 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-container); color: var(--on-primary-container);
  font: 400 24px/32px Roboto, system-ui, sans-serif; text-transform: uppercase;
}

/* One dot per digit of the PIN, never the digits: a PIN typed on a bench is
   read over a shoulder otherwise. */
.pindots { display: flex; gap: 14px; margin: 20px 0 0; min-height: 18px; }
.pindots span {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--outline-variant);
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.pindots span.on { background: var(--primary); border-color: var(--primary); transform: scale(1.1); }
.pindots.wrong { animation: shake .3s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .pindots span { transition: none; }
  .pindots.wrong { animation: none; }
}

.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.pinkey {
  display: flex; align-items: center; justify-content: center;
  height: 64px; padding: 0; border: none; border-radius: var(--shape-lg);
  background: var(--surface-container); color: var(--on-surface);
  font: 400 24px/32px Roboto, system-ui, sans-serif; letter-spacing: 0;
  transition: background-color .1s ease;
}
.pinkey svg { width: 24px; height: 24px; fill: currentColor; }
.pinkey:hover:not(:disabled) { background: var(--surface-highest); }
.pinkey:active:not(:disabled) { background: var(--outline-variant); }
.pinkey.ghost { background: none; color: var(--on-surface-variant); }
.pinkey.ghost:hover:not(:disabled) { background: var(--surface-container); }
.pinkey.primary { background: var(--primary); color: var(--on-primary); }
.pinkey.primary:hover:not(:disabled) { background: #0a4cb8; }
.pinkey.primary:disabled { opacity: 1; background: var(--surface-container); color: var(--on-surface-variant); }

.devbanner, .oldbanner {
  background: var(--caution-container); color: var(--on-caution-container);
  border-radius: var(--shape-md); padding: 12px 16px; margin-bottom: 16px;
  font: 400 14px/20px Roboto, system-ui, sans-serif; letter-spacing: .25px;
}

/* ── primary tabs, inside a card ──────────────────────────────────────────
 * M3 primary tabs: 48dp, label-large, a 3dp indicator under the active one.
 * They sit flush at the top of the card, where a card header would be. */

.tabstrip {
  display: flex; margin: -16px -16px 16px; padding: 0 8px;
  border-bottom: 1px solid var(--outline-variant);
}
.tabstrip-tab {
  position: relative; height: 48px; padding: 0 16px;
  border: none; border-radius: 0; background: none;
  color: var(--on-surface-variant);
  font: 500 14px/20px Roboto, system-ui, sans-serif; letter-spacing: .1px;
}
.tabstrip-tab:hover:not(:disabled) { background: rgba(27, 27, 31, .08); }
.tabstrip-tab.on { color: var(--primary); }
.tabstrip-tab.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--primary); border-radius: 3px 3px 0 0;
}

/* Controls that live in a panel header. */
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filters .hint { margin: 0; }
.filters select, .filters input[type=date] { height: 36px; padding: 0 12px; font-size: 13px; }

/* Detail an operator has no use for: probe and chip readouts, the RDP
   explanations, the build's hash and addresses, and the log. They are working a
   jig, not debugging a target. Safety text stays for everyone. */
body.operator .detail { display: none !important; }

/* Too narrow for a drawer: it becomes a top bar. */
@media (max-width: 760px) {
  .sidebar {
    position: static; width: auto; flex-direction: row; align-items: center;
    gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--outline-variant);
  }
  .brand { padding: 0 8px; font-size: 18px; }
  .tabs { flex-direction: row; }
  button.tab { width: auto; height: 40px; padding: 0 16px; }
  button.tab.sub { padding-left: 16px; }
  .who { flex-direction: row; align-items: center; gap: 10px; margin: 0 0 0 auto; padding: 0; border-top: none; }
  .view { margin-left: 0; }
  .flashbar { left: 0; }
}

@media (max-width: 600px) {
  .view { padding: 12px; }
  .kv { grid-template-columns: 1fr; }
  .view.login { padding: 16px; }
}
