/* Squidbox account — the website's one stylesheet.
   The app's material on the page: the shipped theme's grey plate (#3b3b3b) with every panel a
   window sunk into it (#2e2f30), the splash's great X as a faint backdrop, every input and
   readout an LCD, keys with a raised face, small lamps for states, highlight 1 (#f36432) for the
   one action of a page, and the app's own typefaces. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  /* The app's shipped theme, "Squidbox Default" (frontend/src/lib/builtInThemes.ts). */
  --plate: #3b3b3b;                  /* flatGroundColor — the grey the windows sit in */
  --window: #2e2f30;                 /* flatGroundWindowColor */
  --band: #2b2c2c;                   /* the top bar, a shade below the windows */
  --lcd: #1b1c1d;                    /* the transport LCD's fill */
  --lcd-ink: #bcbcbc;                /* transportValueColor — figures on a screen */
  --ink: #cccdcd;                    /* textMain */
  --ink-bright: #ececec;
  --ink-soft: #a9abab;
  --label: #949696;                  /* textMuted */
  --dim: #6d7070;
  --brand-grey: #c9c9c7;             /* the mark on the splash */
  --accent: #f36432;                 /* highlight 1 */
  --lit: #f68b65;                    /* --lcd-lit: highlight 1, a quarter toward white */
  --ok: #7fd6a0;
  --warn: #e5a93b;
  --err: #ff6b6b;                    /* the mute key's red */
  --ring: rgba(130, 130, 130, 0.36); /* the active-window frame */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --radius: 8px;                     /* flatGroundRadius */
  --radius-small: 6px;

  /* A window is SUNK into the plate: a dark line along its inner top and sides, a faint light at
     the bottom. Four separate edges, as the app draws its control recess. */
  --window-recess:
    inset 0 1px 0 rgba(0, 0, 0, 0.5),
    inset 1px 0 0 rgba(0, 0, 0, 0.28),
    inset -1px 0 0 rgba(0, 0, 0, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 0 10px 18px -12px rgba(0, 0, 0, 0.55);
  /* An LCD: one flat fill, as the app's transport screens are, with its recess drawn as edges and
     the light caught on its lower lip. The stylesheet holds no gradient at all: on lamps a few
     pixels tall, and as a ramp over only a few shades, one showed as bands instead of a ramp. */
  --lcd-edges:
    inset 0 1px 0 rgba(0, 0, 0, 0.62),
    inset 1px 0 0 rgba(0, 0, 0, 0.32),
    inset -1px 0 0 rgba(0, 0, 0, 0.32),
    inset 0 -1px 0 rgba(135, 135, 135, 0.26),
    inset 0 5px 8px -5px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html { background: var(--plate); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  background: var(--plate);
}

a { color: var(--ink-bright); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.28); text-underline-offset: 3px; }
a:hover { color: var(--lit); text-decoration-color: currentColor; }
strong { color: var(--ink-bright); font-weight: 600; }
::selection { background: rgba(243, 100, 50, 0.38); color: #fff; }

/* ---- The splash's X, faint, behind everything -------------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* Above the backdrop: at z-index -1 it would sit under the body's own background and vanish. */
body > :not(.backdrop) { position: relative; z-index: 1; }
.backdrop svg {
  position: absolute;
  /* Taller than the window, so the bars run off both edges instead of ending in mid-air. */
  top: -18vh;
  left: -12vw;
  height: 136vh;
  width: auto;
  color: #ffffff;
  opacity: 0.035;
}
body.is-app .backdrop svg { left: auto; right: -22vw; opacity: 0.025; }

/* ---- Brand lockup -------------------------------------------------------------------------------- */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-grey);
  text-decoration: none;
}
.brand-lockup:hover { color: #e6e6e4; }
.brand-mark { display: block; height: 28px; width: auto; }
.brand-wordmark { display: block; height: 17px; width: auto; }

/* ---- Top bar (signed-in pages): a darker band as wide as the window ------------------------------ */
.topbar-band {
  background: var(--band);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.035);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 24px;
}
/* The page's name on a small screen with its lamp, like the app's toolbar display. */
.topbar-section {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 26px;
  margin-left: 18px;
  padding: 0 11px 0 10px;
  border-radius: 5px;
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
  color: var(--lcd-ink);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.topbar-section::before, .chip::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lit);
  box-shadow: 0 0 6px rgba(243, 100, 50, 0.85);
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.topbar-user .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Page bodies ----------------------------------------------------------------------------------- */
.content {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}
.content.is-narrow { max-width: 620px; }

.page-head { margin-bottom: 28px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: var(--label);
  font: 600 11px/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.page-head > .eyebrow::before, .auth-card > .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lit);
  box-shadow: 0 0 6px rgba(243, 100, 50, 0.85);
}
h1 {
  margin: 0;
  color: var(--ink-bright);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 670;
  letter-spacing: -0.02em;
}
h2 {
  margin: 0;
  color: var(--ink-bright);
  font-size: 20px;
  font-weight: 660;
  letter-spacing: -0.012em;
}
.lede { margin: 10px 0 0; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--label); }
.small { font-size: 13px; }

/* ---- Panels: windows sunk into the plate, as in the app ---------------------------------------- */
.panel {
  position: relative;
  padding: 26px 28px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--window);
  box-shadow: var(--window-recess);
  outline: 0 solid transparent;
  outline-offset: 2.5px;
  transition: outline-color 160ms ease;
}
/* The window you type in wears the app's active-window frame. */
.panel:focus-within { outline: 3px solid var(--ring); }
.panel-title {
  margin: 0;
  color: var(--label);
  font: 600 11px/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lit { color: var(--lit); }
code, .mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }

/* ---- Sign-in pages: brand on one side, the form on the other ------------------------------------ */
.auth {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 420px);
  gap: 72px;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px;
}
.auth-brand .brand-mark { height: 96px; color: var(--brand-grey); }
.auth-brand .brand-wordmark { height: 40px; margin-top: 28px; color: var(--brand-grey); }
/* "Your account" on a small screen with its lamp. */
.auth-brand .eyebrow {
  display: inline-flex;
  height: 26px;
  margin: 24px 0 0;
  padding: 0 11px 0 10px;
  border-radius: 5px;
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
  color: var(--lcd-ink);
  letter-spacing: 0.14em;
}
.auth-brand .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lit);
  box-shadow: 0 0 6px rgba(243, 100, 50, 0.85);
}
.auth-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  color: var(--ink-soft);
}
.auth-points li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
}
/* One lit segment of the seat meter. */
.auth-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 10px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 7px rgba(243, 100, 50, 0.55);
}
.auth-card { padding: 34px 32px; }
.auth-card h1 { font-size: 26px; }
.auth-card .lede { font-size: 14px; }
.auth-card > .small { margin-top: 16px; }
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 13px;
}

/* ---- Forms --------------------------------------------------------------------------------------- */
form { margin: 0; }
.field { margin-top: 18px; }
.field:first-of-type { margin-top: 0; }
label, .field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}
/* Every input is a screen: an LCD sunk into the window. */
input[type=email], input[type=password], input[type=text], select, textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-small);
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
  color: var(--ink-bright);
  font: 15px var(--font);
  caret-color: var(--accent);
  outline: none;
  transition: box-shadow 140ms ease;
}
textarea {
  display: block;
  height: auto;
  min-height: 150px;
  padding: 12px 14px;
  font: 12.5px/1.6 var(--mono);
  resize: vertical;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23949696' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--lcd);
  background-repeat: no-repeat, no-repeat;
  background-position: right 16px center, 0 0;
  background-size: 12px 8px, 100% 100%;
  cursor: pointer;
}
input::placeholder, textarea::placeholder { color: #55595c; }
input:focus, select:focus, textarea:focus {
  box-shadow: var(--lcd-edges), inset 0 0 0 1px rgba(243, 100, 50, 0.8), 0 0 0 3px rgba(243, 100, 50, 0.16);
}
input[readonly] { color: var(--ink-soft); }
textarea[readonly] { color: var(--lit); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink-bright);
  -webkit-box-shadow: var(--lcd-edges), inset 0 0 0 100px #1d1f22;
  transition: background-color 9999s;
}

.password-input { position: relative; }
.password-input input { padding-right: 76px; }
.reveal {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--label);
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.js .reveal { display: block; }
.reveal:hover { color: var(--ink-bright); background: rgba(255, 255, 255, 0.05); }
.reveal[aria-pressed=true] { color: var(--lit); }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border-radius: 4px;
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
  cursor: pointer;
}
.check input:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.8 8.4l2.7 2.7 5.7-6.1' fill='none' stroke='%23140a05' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 0 10px rgba(243, 100, 50, 0.45);
}
.check input:focus-visible { box-shadow: var(--lcd-edges), 0 0 0 3px rgba(243, 100, 50, 0.4); }

form .small { margin-top: 14px; }
form .panel-actions { margin-top: 22px; }

/* The password rules, ticked off while typing (account.js): one lamp each. Without the script
   they stay a plain list. */
.rules {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  color: var(--label);
  font-size: 13px;
}
.rules li {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 140ms ease;
}
.rules li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
  transition: box-shadow 140ms ease;
}
.rules li.is-met { color: var(--ink); }
.rules li.is-met::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.3 8.4l2.4 2.4 5-5.4' fill='none' stroke='%230f2a1a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 10px no-repeat,
    var(--ok);
  box-shadow: 0 0 8px rgba(127, 214, 160, 0.5);
}
.rules li.is-broken { color: var(--err); }
.rules li.is-broken::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23360c0c' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 9px 9px no-repeat,
    var(--err);
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.45);
}
.rules li[hidden] { display: none; }

/* ---- Keys ---------------------------------------------------------------------------------------- */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font: 600 14.5px var(--font);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms ease, box-shadow 120ms ease, color 120ms ease, opacity 120ms ease, transform 60ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
/* The lit key: highlight 1 with dark ink, as a lit key in the app's footer tray. */
.btn-primary {
  border-color: #5a230f;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 0 rgba(0, 0, 0, 0.3), 0 6px 20px -8px rgba(243, 100, 50, 0.6);
  color: #170904;
}
.btn-primary:hover { color: #170904; background: #f7774a; }
.btn-primary:active { background: #e5592a; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.25), 0 0 12px -2px rgba(243, 100, 50, 0.5); }
.btn-block { width: 100%; margin-top: 24px; }
/* An unlit key: raised grey face, a dark frame, the light along its top. */
.btn-quiet {
  border-color: #121313;
  background: #464748;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.28);
  color: #dfe0e0;
}
.btn-quiet:hover { color: #fff; background: #4f5051; }
.btn-quiet:active { background: #3d3e3f; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.45); }
.btn-danger {
  border-color: #4e1210;
  background: #d9473d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 1px 0 rgba(0, 0, 0, 0.3), 0 6px 18px -8px rgba(217, 71, 61, 0.6);
  color: #fff;
}
.btn-danger:hover { color: #fff; background: #e05349; }
.btn-small { height: 32px; padding: 0 12px; font-size: 13px; }
button:disabled, .btn[aria-disabled=true] { opacity: 0.45; cursor: not-allowed; transform: none; }
/* A lit key that cannot be pressed yet goes dark, as an unlit key in the app does. */
.btn-primary:disabled {
  opacity: 1;
  border-color: #121313;
  background: #3a3b3c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #77797a;
}
button:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid rgba(243, 100, 50, 0.75);
  outline-offset: 2px;
}

/* ---- Notices: a line on a screen, with its lamp -------------------------------------------------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-small);
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
  color: var(--ink);
  font-size: 14px;
}
.notice::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-1px);
  background: var(--ok);
  box-shadow: 0 0 7px rgba(127, 214, 160, 0.8);
}
.notice.is-warn::before { background: var(--warn); box-shadow: 0 0 7px rgba(229, 169, 59, 0.8); }
.notice.is-error::before { background: var(--err); box-shadow: 0 0 7px rgba(255, 107, 107, 0.8); }
.panel .notice { margin-bottom: 0; }

/* ---- A license and its computers ---------------------------------------------------------------- */
.license-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.license-head h2 { font-size: 24px; }
.license-id {
  display: flex;
  align-items: center;
  width: max-content;
  height: 28px;
  margin-top: 10px;
  padding: 0 11px;
  border-radius: 5px;
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 11px 0 10px;
  border-radius: 5px;
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
  color: var(--lit);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chip.is-off { color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* A download's checksum: the whole hash on its own line, broken anywhere it has to. */
.checksum { display: block; margin-top: 6px; color: var(--dim); font-size: 11.5px; letter-spacing: 0.04em; word-break: break-all; }
.chip.is-off::before { background: var(--err); box-shadow: 0 0 6px rgba(255, 107, 107, 0.8); }

/* The seats: a small screen with one lit segment per computer the license holds. */
.seats {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  padding: 9px 14px 9px 10px;
  border-radius: var(--radius-small);
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
}
.seat-cells { display: flex; gap: 4px; }
.seat {
  width: 30px;
  height: 10px;
  border-radius: 2px;
  background: #26282a;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
}
.seat.is-used {
  background: var(--accent);
  box-shadow: 0 0 9px rgba(243, 100, 50, 0.6);
}
.seats-text { color: var(--lcd-ink); font: 600 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

.machines { list-style: none; margin: 0; padding: 0; }
.machines li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.machine-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-small);
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
  color: var(--lcd-ink);
}
.machine-icon svg { width: 20px; height: 20px; }
.machine-name { display: block; color: var(--ink-bright); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.machine-meta { display: block; color: var(--label); font-size: 13px; }
.machine-code { display: block; margin-top: 2px; color: var(--dim); font-size: 11.5px; letter-spacing: 0.06em; }
.empty {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-small);
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---- Steps (offline activation) ---------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 14px;
}
.steps li::before {
  content: counter(step);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
  color: var(--lit);
  font: 700 12px var(--mono);
}
.steps li span { padding-top: 2px; }

/* ---- The license agreement --------------------------------------------------------------------- */
.legal-text {
  margin: 0;
  white-space: pre-wrap;
  font: 14px/1.7 var(--font);
  color: var(--ink-soft);
}

/* ---- Footer: its links on a small tray, like the app's footer keys ----------------------------- */
.footer {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--label);
  font-size: 12.5px;
}
.footer nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  padding: 0 4px;
  border-radius: 6px;
  background: var(--lcd);
  box-shadow: var(--lcd-edges);
}
.footer a {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--label);
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer a:hover { color: #170904; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 10px rgba(243, 100, 50, 0.4); }
body.is-auth .footer { max-width: 1040px; }

.brand-lockup-row { display: flex; align-items: center; min-width: 0; }
.divider {
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
.auth-card form + form, .auth-card .divider + form { margin-top: 0; }
.auth-card .panel-title { margin-top: 22px; margin-bottom: 4px; }
.auth-card form:first-of-type .panel-title { margin-top: 26px; }

/* Inside a panel every block stands 16px below the one before. Placed after the blocks' own rules,
   which reset their margins, so this spacing is the one that holds. */
.panel > * + * { margin-top: 16px; }

/* ---- Narrow screens ------------------------------------------------------------------------------ */
@media (max-width: 880px) {
  .auth { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 32px 16px 48px; }
  .auth-brand .brand-mark { height: 64px; }
  .auth-brand .brand-wordmark { height: 30px; margin-top: 18px; }
  .auth-points { display: none; }
}
@media (max-width: 560px) {
  .topbar { padding: 14px 16px; }
  .topbar-section { display: none; }
  .topbar-user .who { display: none; }
  .content { padding: 24px 16px 56px; }
  .panel { padding: 22px 18px; }
  .auth-card { padding: 26px 20px; }
  h1 { font-size: 25px; }
  .machines li { grid-template-columns: minmax(0, 1fr) auto; }
  .machine-icon { display: none; }
  .seat { width: 24px; }
  .panel-actions > .btn, .panel-actions > form, .panel-actions > form .btn { width: 100%; }
  .footer { padding: 18px 16px 26px; }
}
