/*
 * Outlet Warehouse — internal UI.
 *
 * Desktop-first: the dashboard is where work gets planned and measured.
 * Responsive down to a phone with large touch targets, because receiving and
 * photography happen standing next to a pallet with cold hands.
 *
 * Palette follows the Black Jett family: navy, royal blue, light blue-gray.
 */

:root {
  --navy: #0a1b30;
  --navy-soft: #12263f;
  --blue: #0b4ea0;
  --blue-bright: #1668cc;
  --mist: #e7edf5;
  --paper: #f7f9fc;
  --white: #ffffff;

  --ink: #10233a;
  --ink-muted: #46556b;   /* 7:1 on white — readable for older eyes */
  --line: #d5dfec;

  --ok: #1c7c4a;
  --warn: #a5670a;
  --danger: #a32020;

  --radius: 8px;
  --shadow: 0 1px 2px rgba(10, 27, 48, 0.08), 0 4px 12px rgba(10, 27, 48, 0.06);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { font-size: 17px; }
html.text-xl { font-size: 19px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--blue); }
a:hover { color: var(--blue-bright); }

/* ---------------------------------------------------------------- topbar */

.topbar {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid var(--blue-bright);
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy-soft) 100%);
  flex: 0 0 auto;
}

.brand-lg { font-size: 20px; margin-bottom: 18px; color: var(--ink); }
.brand-lg .brand-name { color: var(--ink); }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.user-chip {
  font-size: 15px;
  color: var(--mist);
  white-space: nowrap;
}

/* ------------------------------------------------------------------- nav */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0 12px;
  background: var(--navy-soft);
  max-width: 1400px;
  margin: 0 auto;
}

.nav-link {
  padding: 12px 16px;
  color: var(--mist);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-link.is-active { color: var(--white); border-bottom-color: var(--blue-bright); }
.nav-link.is-pending { color: #a3b1c4; cursor: default; }
.nav-link.is-pending:hover { background: none; color: #7d8ea3; }

/* ------------------------------------------------------------------ page */

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.lead { font-size: 1.06em; }
.muted { color: var(--ink-muted); }
.inline { display: inline; }

/* --------------------------------------------------------------- banners */

.banner {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 16px;
  border-left-width: 4px;
}

.banner-info { border-left-color: var(--blue); }
.banner-warn { border-left-color: var(--warn); background: #fffaf0; }
.banner-danger { border-left-color: var(--danger); background: #fff5f5; }
.banner-ok { border-left-color: var(--ok); background: #f3fbf6; }

/* ----------------------------------------------------------------- cards */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.card h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }

/* ----------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;   /* a long value (a timezone, a code) wraps instead of pushing the page sideways */
}
.stat { min-width: 0; }

.stat-sub { font-size: 15px; color: var(--ink-muted); margin-top: 4px; }

/* ----------------------------------------------------------- placeholder */

.placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
  margin-bottom: 20px;
}

.placeholder-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.placeholder p { margin: 0; color: var(--ink-muted); }

/* ------------------------------------------------------------ milestones */

.milestones { margin: 12px 0 0; padding-left: 22px; }
.milestones li { margin-bottom: 6px; }

.tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink-muted);
  margin-left: 6px;
  vertical-align: 1px;
}

.tag-done { background: #dff2e6; color: var(--ok); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}

.btn:hover { background: var(--blue-bright); border-color: var(--blue-bright); color: var(--white); }

.btn-quiet {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--mist);
}

.btn-quiet:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

/* ------------------------------------------------------------ bare pages */

body.bare {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--mist);
}

.bare-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  width: 100%;
  max-width: 460px;
}

/* ---------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
}

/* --------------------------------------------------------------- mobile */

@media (max-width: 720px) {
  html { font-size: 17px; }
  html.text-xl { font-size: 19px; }

  .topbar-inner { padding: 10px 14px; flex-wrap: wrap; row-gap: 8px; }
  .topbar-right { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
  .brand-name { font-size: 15px; }
  .nav { padding: 0 6px; overflow-x: auto; flex-wrap: nowrap; }
  .nav-link { padding: 12px 12px; }
  .page { padding: 16px 14px 48px; }
  .page-title { font-size: 24px; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .user-chip { display: none; }

  /* Receiving and photography happen one-handed on a phone. */
  .btn { min-height: 48px; padding: 12px 18px; font-size: 17px; }
}

/* ----------------------------------------------------------------- forms */

.form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 5px; }

.field-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.field-input {
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  min-height: 44px;
  width: 100%;
}

.field-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 78, 160, 0.15);
}

.field-hint { font-size: 14px; color: var(--ink-muted); }

.btn-block { width: 100%; text-align: center; }

@media (max-width: 720px) {
  /* Warehouse phone use: bigger targets, and 16px prevents iOS zoom-on-focus. */
  .field-input { min-height: 48px; font-size: 17px; }
}

/* ---------------------------------------------------------------- subnav */

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: -4px 0 20px;
  border-bottom: 1px solid var(--line);
}

.subnav-link {
  padding: 10px 16px;
  font-size: 16px;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.subnav-link:hover { color: var(--ink); }
.subnav-link.is-active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* ---------------------------------------------------------------- tables */

/* Wide tables scroll inside their own box; the page never scrolls sideways. */
.table-wrap { overflow-x: auto; margin: 0 -4px; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.table th {
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--mist);
  vertical-align: middle;
}

.table tbody tr:hover { background: var(--paper); }
.table .ta-r { text-align: right; font-variant-numeric: tabular-nums; }

.empty { padding: 16px 0; }
.small { font-size: 14px; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--mist);
  padding: 1px 5px;
  border-radius: 4px;
}

.code-lg { font-size: 17px; font-weight: 600; letter-spacing: 0.04em; }

/* ----------------------------------------------------------------- pills */

.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink-muted);
  white-space: nowrap;
}

.pill-ok      { background: #dff2e6; color: var(--ok); }
.pill-warn    { background: #fdf0d9; color: var(--warn); }
.pill-danger  { background: #fbe0e0; color: var(--danger); }
.pill-blue    { background: #dde9f8; color: var(--blue); }

/* ------------------------------------------------------- definition list */

.kv { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { font-size: 15px; color: var(--ink-muted); }
.kv dd { margin: 0; }

.policy {
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  background: var(--mist);
  border-radius: var(--radius);
  display: inline-block;
}

/* --------------------------------------------------------- form variants */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: end;
}

.form-grid .btn { height: 44px; }

.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.field-inline { min-height: 40px; padding: 6px 10px; font-size: 15px; width: auto; }
.inline-form .field-inline[type="text"] { min-width: 180px; flex: 1; }

.btn-small { min-height: 40px; padding: 6px 14px; font-size: 15px; }

.req { color: var(--danger); margin-left: 2px; }

select.field-input {
  appearance: auto;
  background: var(--white);
}

@media (max-width: 720px) {
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .subnav { overflow-x: auto; flex-wrap: nowrap; }
}

/* ------------------------------------------------------- acquisition bits */

.lead-sub { margin: -8px 0 20px; max-width: 70ch; }
.form-section { font-size: 16px; font-weight: 600; margin: 18px 0 4px; }

.total-line {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 2px solid var(--line);
  font-size: 17px;
}

.total-line strong { font-variant-numeric: tabular-nums; }

.reconciled { color: var(--ok); font-weight: 600; margin: 6px 0 0; }
.stat-total { border-color: var(--blue); border-width: 2px; }
.allocate-form { margin-top: 10px; }

/* -------------------------------------------------------------- evidence */

.doc-checklist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.doc-check {
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.doc-check.is-present { background: #dff2e6; color: var(--ok); border-color: #bfe3cd; }
.doc-check.is-missing { background: var(--white); color: var(--ink-muted); }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.evidence-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.evidence-thumb {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--mist);
}

.evidence-doc {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  background: var(--mist);
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
}

.evidence-item figcaption { padding: 10px; font-size: 14px; display: block; }
.evidence-caption { display: block; margin: 2px 0 4px; }
.void-form { display: flex; gap: 5px; margin-top: 8px; }
.void-form .field-inline { min-width: 0; flex: 1; }

.btn-quiet-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-quiet-danger:hover { background: var(--danger); color: var(--white); }

.voided-block { margin: 4px 0 18px; }
.voided-block summary { cursor: pointer; color: var(--ink-muted); font-size: 15px; }
.voided-list { margin: 10px 0 0; padding-left: 20px; font-size: 15px; }
.voided-list li { margin-bottom: 8px; }

.upload-status { margin: 8px 0 0; font-size: 15px; min-height: 18px; }
.upload-info { color: var(--ink-muted); }
.upload-ok { color: var(--ok); font-weight: 600; }
.upload-warn { color: var(--warn); }
.upload-danger { color: var(--danger); font-weight: 600; }

input[type="file"].field-input { padding: 8px; }

/* ---------------------------------------------------------------- imports */

.is-hidden { display: none; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--mist); }
.action-row { margin: -8px 0 20px; }

.claim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.kv-narrow { grid-template-columns: 130px 1fr; }

.lineage-chain { font-size: 15px; line-height: 2; }
.lineage-chain .arrow { color: var(--ink-muted); margin: 0 8px; }

.raw-json {
  background: var(--navy);
  color: #cfe0f5;
  padding: 14px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  margin: 0;
}

@media (max-width: 720px) {
  .claim-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* --------------------------------------------------------------- receiving */

.row-confirm {
  padding: 8px 0;
  border-bottom: 1px solid var(--mist);
}

.row-desc { min-width: 240px; font-weight: 500; }
.blocker-list { margin: 8px 0; padding-left: 20px; }
.blocker-list li { margin-bottom: 4px; }

@media (max-width: 720px) {
  .row-confirm { flex-direction: column; align-items: stretch; gap: 6px; }
  .row-desc { min-width: 0; }
  .inline-form .field-inline { width: 100%; }
}

/* ---------------------------------------------------------------- listings */

.listing-body { white-space: pre-wrap; }

.photo-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.photo-pick {
  display: block;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  background: var(--white);
}

.photo-pick:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,78,160,0.12); }
.photo-pick img { display: block; width: 100%; height: 100px; object-fit: cover; border-radius: 4px; margin: 6px 0; }

/* ------------------------------------------------------- provenance sheets */

.print-body { background: #e9edf3; }
.print-toolbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 18px; background: var(--navy); color: var(--white);
}
.btn-quiet-dark { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--mist); }
.btn-quiet-dark:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.print-main { max-width: 900px; margin: 0 auto; padding: 20px 14px 60px; }

.sheet {
  background: var(--white); color: #000; border: 1px solid var(--line);
  padding: 28px 32px; margin: 0 auto 24px; font-size: 13px; line-height: 1.4;
  page-break-after: always; break-after: page;
}
.sheet:last-child { page-break-after: auto; break-after: auto; }
.sheet h2 { font-size: 15px; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #000; break-after: avoid; }
.sheet h3 { font-size: 12.5px; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.04em; color: #333; break-after: avoid; }
.sheet section { break-inside: auto; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 3px solid #000; padding-bottom: 10px; }
.sheet-brand { font-size: 18px; font-weight: 700; }
.sheet-title { text-align: right; }
.sheet-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #333; }
.sheet-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; }
.kv-sheet { grid-template-columns: 210px 1fr; gap: 3px 14px; }
.kv-sheet dt { color: #333; font-size: 12px; }
.kv-sheet dd { font-size: 13px; }
.table-sheet { font-size: 12px; margin: 4px 0 8px; }
.table-sheet th, .table-sheet td { padding: 4px 6px; border-bottom: 1px solid #ccc; vertical-align: top; }
.table-sheet th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: #333; text-align: left; background: none; }
.sheet .hash { font-size: 10.5px; word-break: break-all; }
.sheet .raw summary { cursor: pointer; margin: 6px 0; }
.sale-block { border: 1px solid #000; padding: 4px 14px 12px; margin-top: 18px; }
.sheet-foot { margin-top: 24px; padding-top: 8px; border-top: 1px solid #000; font-size: 11px; color: #333; }

@media print {
  @page { margin: 14mm 12mm; }
  .no-print, .topbar, .nav, .footer { display: none !important; }
  body, .print-body { background: #fff; }
  .print-main { max-width: none; padding: 0; }
  .sheet { border: 0; padding: 0; margin: 0; font-size: 11.5px; }
  .sheet .raw { display: block; }
  .sheet .raw[open] summary, .sheet .raw summary { display: none; }
  .sheet .raw table { display: table; }
  a { color: inherit; text-decoration: none; }
}

/* Customer acknowledgement on the checkout page. Read on a phone, tapped with
   a thumb: the text must wrap and the whole row must be the target. */
.ack-check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; margin: 4px 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 17px; line-height: 1.4; cursor: pointer; background: var(--white);
}
.ack-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.ack-check:has(input:checked) { border-color: var(--blue); background: #eef4fc; }
.table-sheet td:first-child, .table-sheet th:first-child { white-space: nowrap; }
.stat-danger { border-color: var(--danger); border-width: 2px; }

/* ---------------------------------------------------- text size (Aa toggle) */
/* Older eyes: the whole UI is set in rem, so one switch on <html> scales it.
   The choice is remembered per browser in localStorage (public/js/textsize.js). */
.btn-text-size { font-weight: 700; letter-spacing: 0.02em; min-width: 44px; padding-left: 10px; padding-right: 10px; }
html.text-xl .page { max-width: 1500px; }
html.text-xl .stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --------------------------------------------------------- read-only forms */
form[data-readonly] input, form[data-readonly] select, form[data-readonly] textarea, form[data-readonly] button {
  pointer-events: none; opacity: 0.55;
}
form[data-readonly] { position: relative; }
.btn-acting-admin { border-color: #f0b35a; color: #ffd79a; }
.role-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.role-choice .btn { min-height: 72px; font-size: 18px; }
.role-choice .btn-quiet { color: var(--ink); border-color: var(--line); }
.recovery-codes { columns: 2; font-family: var(--mono); font-size: 18px; line-height: 1.8; padding-left: 0; list-style: none; }
.qr { display: block; width: 220px; height: 220px; margin: 8px 0; }
@media (max-width: 720px) { .role-choice { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ the floor */
/* Phone and tablet screens: two jobs, big targets, camera first. Everything
   here is sized for a thumb on a cold dock, not a mouse at a desk. */
body.floor .page { max-width: 760px; padding-top: 16px; }
body.floor .page-title { font-size: 1.6rem; }
.nav-floor { gap: 0; }
.nav-floor .nav-link { flex: 1 1 auto; text-align: center; min-height: 48px; }
@media (max-width: 720px) {
  /* Four tabs, two rows, nothing scrolled off the side of a phone. */
  .nav-floor { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .nav-floor .nav-link { white-space: normal; padding: 12px 8px; font-size: 15px; }
}
.floor-choice { display: grid; gap: 16px; margin: 8px 0 20px; }
.floor-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  min-height: 132px; padding: 22px 24px;
  background: var(--blue); color: var(--white); text-decoration: none;
  border-radius: 12px; box-shadow: var(--shadow);
}
.floor-btn:hover, .floor-btn:focus { background: var(--blue-bright); color: var(--white); }
.floor-btn-alt { background: var(--navy-soft); }
.floor-btn-alt:hover, .floor-btn-alt:focus { background: var(--navy); }
.floor-btn-title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.floor-btn-sub { font-size: 1rem; opacity: 0.9; }
.floor-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.floor-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; min-height: 64px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
}
.floor-row:hover, .floor-row:focus { border-color: var(--blue); color: var(--ink); }
.floor-row-title { font-size: 1.15rem; font-weight: 600; }
.floor-row-sub { color: var(--ink-muted); font-size: 0.95rem; }
.floor-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.floor-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); background: var(--paper); }
.floor-step.is-done { background: #dff2e6; }
.floor-step-mark { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--white); border: 1px solid var(--line); color: var(--ink-muted); }
.floor-step.is-done .floor-step-mark { background: var(--ok); border-color: var(--ok); color: var(--white); }
.floor-id { font-size: 1.6rem; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; min-height: 60px; text-align: center; }
body.floor .btn { min-height: 52px; font-size: 1.05rem; }
body.floor .field-input { min-height: 48px; }
@media (min-width: 721px) { .floor-choice { grid-template-columns: 1fr 1fr; } }
