@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;450;500;600&family=IBM+Plex+Serif:wght@500;600&display=swap');

/* =====================================================================
   Montana RMS — the interface is modelled on the ledger it replaces:
   ruled rows, columns that line up, figures in tabular numerals, and a
   double rule under every total.
   ===================================================================== */

:root {
  --ink:        #17211d;   /* dark spruce — sidebar, headings */
  --ink-soft:   #3d4a44;
  --paper:      #f6f4ee;   /* ledger paper — page background */
  --surface:    #ffffff;
  --rule:       #e3ddd0;   /* ruled lines */
  --rule-firm:  #c9c1ae;
  --brass:      #b0702a;   /* the one accent: bar hardware */
  --brass-soft: #f4e9db;
  --ok:         #2c6e56;
  --ok-soft:    #e4efe9;
  --watch:      #8a6a12;
  --watch-soft: #f6eed6;
  --warn:       #8a6a12;
  --warn-soft:  #f6eed6;
  --stop:       #a1382a;
  --stop-soft:  #f7e5e1;
  --muted:      #6f7a74;

  --sans:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;

  --rail: 246px;
  --pad: 26px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.01em; }

a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- layout */

.shell { display: flex; min-height: 100vh; }

.rail {
  width: var(--rail);
  flex: 0 0 var(--rail);
  background: var(--ink);
  color: #cfd8d3;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.rail__brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.rail__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.rail__mark:hover { text-decoration: none; }
/* The mark is white on transparency, so it needs no tile behind it —
   a rounded panel or ring would just draw a box around thin air. */
.rail__logo {
  width: 44px;
  height: auto;
  flex: 0 0 44px;
  display: block;
}
.rail__words { min-width: 0; }
.rail__brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  color: #fff;
  letter-spacing: .01em;
}
.rail__brand span {
  display: block;
  font-size: 12.5px;
  color: #8ea099;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail__nav { padding: 12px 0 26px; flex: 1; }
.rail__group { margin-top: 16px; }
.rail__group h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #7d8f88;
  padding: 0 20px 7px;
  margin: 0;
}
.rail a.rail__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 20px;
  color: #c3cec9;
  font-size: 14.3px;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.rail a.rail__link:hover { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; }
.rail a.rail__link.is-current {
  background: rgba(176, 112, 42, .16);
  border-left-color: var(--brass);
  color: #fff;
  font-weight: 500;
}
.ico { width: 17px; height: 17px; flex: 0 0 17px; opacity: .82; }

.rail__foot {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 14px 20px;
  font-size: 13px;
}
.rail__foot b { color: #fff; display: block; font-weight: 500; }
.rail__foot span { color: #8ea099; font-size: 12.5px; }
.rail__foot a { color: #b98f5e; font-size: 12.5px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* -------------------------------------------------------- page header */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 17px var(--pad);
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar h1 { font-size: 25px; line-height: 1.2; }
.topbar p { margin: 3px 0 0; color: var(--muted); font-size: 13.6px; }
.topbar__actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

.content { padding: var(--pad); flex: 1; }
.content > * + * { margin-top: 20px; }

/* -------------------------------------------------------------- cards */

.panel { background: var(--surface); border: 1px solid var(--rule); }
.panel__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.panel__head h2 { font-size: 17px; }
.panel__head .spacer { margin-left: auto; }
.panel__body { padding: 18px; }
.panel__body > * + * { margin-top: 14px; }
.panel__note { color: var(--muted); font-size: 13px; margin: 0; }

/* Figures band — one ruled strip divided by hairlines, not four cards. */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
}
.figure { padding: 15px 18px 16px; border-left: 1px solid var(--rule); }
.figure:first-child { border-left: 0; }
.figure__label { font-size: 12.6px; color: var(--muted); margin-bottom: 5px; }
.figure__value {
  font-family: var(--serif);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.figure__value small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 400; }
.figure__meta { font-size: 12.6px; color: var(--muted); margin-top: 4px; }
.figure--accent .figure__value { color: var(--brass); }
.figure--ok .figure__value { color: var(--ok); }
.figure--stop .figure__value { color: var(--stop); }

/* -------------------------------------------------------------- table */

.table-wrap { overflow-x: auto; }

table.grid { width: 100%; border-collapse: collapse; font-size: 14.2px; }
table.grid th {
  text-align: left;
  font-weight: 600;
  font-size: 12.8px;
  color: var(--ink-soft);
  padding: 9px 12px;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
  background: var(--surface);
}
table.grid td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.grid tbody tr:hover td { background: #fbfaf6; }
table.grid .r { text-align: right; font-variant-numeric: tabular-nums; }
table.grid .c { text-align: center; }
table.grid .w { color: var(--muted); font-size: 13.2px; }
table.grid .strong { font-weight: 600; }
table.grid tfoot td {
  font-weight: 600;
  border-top: 2px solid var(--ink);
  border-bottom: 3px double var(--ink);   /* the accountant's double rule */
  background: #faf8f3;
  font-variant-numeric: tabular-nums;
  padding: 11px 12px;
}
table.grid td.divider-l, table.grid th.divider-l { border-left: 1px solid var(--rule); }

.empty { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink); margin-bottom: 5px; }

/* ------------------------------------------------------------- badges */

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12.1px;
  font-weight: 500;
  border: 1px solid;
  white-space: nowrap;
}
.badge--ok      { color: var(--ok);    background: var(--ok-soft);    border-color: #c3ddd2; }
.badge--watch   { color: var(--watch); background: var(--watch-soft); border-color: #e4d5ab; }
.badge--warn    { color: var(--warn);  background: var(--warn-soft);  border-color: #e4d5ab; }
.badge--stop    { color: var(--stop);  background: var(--stop-soft);  border-color: #e8c6bf; }
.badge--neutral { color: var(--ink-soft); background: #f1efe8; border-color: var(--rule); }
.badge--brass   { color: var(--brass); background: var(--brass-soft); border-color: #e6d0b4; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.35;
}
.btn:hover { background: #223029; text-decoration: none; color: #fff; }
.btn .ico { width: 15px; height: 15px; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--rule-firm); }
.btn--ghost:hover { background: #f3f1ea; color: var(--ink); }
.btn--brass { background: var(--brass); border-color: var(--brass); }
.btn--brass:hover { background: #99601f; }
.btn--danger { background: var(--surface); color: var(--stop); border-color: #e0b6ad; }
.btn--danger:hover { background: var(--stop-soft); color: var(--stop); }
.btn--sm { padding: 5px 10px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--lg { padding: 12px 22px; font-size: 15.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--brass); font: inherit; font-size: 13.3px; text-decoration: underline;
}

/* -------------------------------------------------------------- forms */

.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: 13.1px; color: var(--ink-soft); margin-bottom: 5px; font-weight: 500; }
.field > span em { font-style: normal; color: var(--muted); font-weight: 400; }

input[type=text], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=password], input[type=email],
input[type=search], select, textarea {
  width: 100%;
  padding: 8px 11px;
  font-family: var(--sans);
  font-size: 14.4px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-firm);
  border-radius: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(176, 112, 42, .13); }
input[readonly], input:disabled, select:disabled { background: #f4f2ec; color: var(--ink-soft); }
textarea { min-height: 74px; resize: vertical; }
input.num, td input, td select { font-variant-numeric: tabular-nums; }

.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.row--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.row--tight { gap: 10px; }

.filters {
  display: flex;
  gap: 11px;
  align-items: flex-end;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 14px 16px;
}
.filters .field { margin: 0; min-width: 150px; }
.filters .field--grow { flex: 1; min-width: 220px; }

/* chip radio group (payment method, department) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips label {
  padding: 7px 14px;
  border: 1px solid var(--rule-firm);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}
.chips input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ------------------------------------------------------------- alerts */

.alert { padding: 11px 15px; border: 1px solid; font-size: 14.2px; display: flex; gap: 10px; }
.alert--ok   { background: var(--ok-soft);   border-color: #c3ddd2; color: #1f5641; }
.alert--warn { background: var(--warn-soft); border-color: #e4d5ab; color: #6d5310; }
.alert--stop { background: var(--stop-soft); border-color: #e8c6bf; color: #862c20; }
.alert--info { background: #eef2f5; border-color: #cfdae2; color: #2c4a5e; }

/* ------------------------------------------------------ point of sale */

.pos { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 20px; align-items: start; }

.pos__pick { background: var(--surface); border: 1px solid var(--rule); }
/* The department filters sit on paper inside the white board, so the
   chosen one still reads as the raised tab it did on the page. */
.pos__pick .tabs { background: var(--paper); padding: 6px 8px 0; }
.pos__pick .tabs button.is-current { border-bottom: 1px solid var(--surface); }
.pos__pick .tabs__away { align-self: center; padding-right: 14px; font-size: 13.5px; }

.pos__search { padding: 14px 16px; border-bottom: 1px solid var(--rule); display: flex; gap: 10px; flex-wrap: wrap; }
.pos__search input[type=search] { flex: 1; min-width: 180px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 1px; background: var(--rule); }
.tile {
  background: var(--surface);
  border: 0;
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 84px;
}
.tile:hover { background: var(--brass-soft); }
.tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.tile__name { font-weight: 500; font-size: 14.6px; color: var(--ink); line-height: 1.3; }
.tile__top .dept { flex: none; margin-top: 1px; }
.tile__price { font-variant-numeric: tabular-nums; color: var(--brass); font-weight: 600; font-size: 15px; }
.tile__stock { font-size: 12.3px; color: var(--muted); margin-top: auto; }
.tile[disabled] { opacity: .45; cursor: not-allowed; }
.tile.is-out .tile__stock { color: var(--stop); }

.pos__ticket { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--ink); position: sticky; top: 18px; }
.ticket__lines { max-height: 40vh; overflow-y: auto; }
.ticket__foot { border-top: 1px solid var(--rule); padding: 15px 16px; }
.sum { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; padding: 4px 0; font-size: 14.4px; }
.sum--total {
  border-top: 2px solid var(--ink);
  border-bottom: 3px double var(--ink);
  margin-top: 8px;
  padding: 9px 0;
  font-size: 20px;
  font-family: var(--serif);
  font-weight: 600;
}
.ticket__split { border-bottom: 1px solid var(--rule); padding-bottom: 7px; margin-bottom: 8px; }
.sum--split { font-size: 13.2px; color: var(--ink-soft); padding: 2px 0; }

.qtybox { display: inline-flex; align-items: center; border: 1px solid var(--rule-firm); }
.qtybox button { width: 27px; height: 27px; border: 0; background: #f3f1ea; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink); }
.qtybox button:hover { background: var(--brass-soft); }
.qtybox input { width: 46px; height: 27px; border: 0; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); text-align: center; padding: 0; font-size: 14px; }

/* --------------------------------------------------------- sign in */

.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ink); }
.signin__card { width: 100%; max-width: 396px; background: var(--surface); border-top: 4px solid var(--brass); }
.signin__head { padding: 30px 30px 6px; }
.signin__head h1 { font-size: 27px; }
.signin__head p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.signin__body { padding: 20px 30px 28px; }
.signin__hint { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.signin__hint code { background: #f2efe8; padding: 1px 5px; font-size: 12.5px; }

/* ----------------------------------------------------------- receipt */

.receipt {
  max-width: 360px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 24px 22px;
  font-size: 13.4px;
}
.receipt h2 { font-size: 19px; text-align: center; }
.receipt__meta { text-align: center; color: var(--muted); font-size: 12.4px; margin: 4px 0 14px; }
.receipt table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.receipt table td { padding: 4px 0; }
.receipt hr { border: 0; border-top: 1px dashed var(--rule-firm); margin: 11px 0; }
.receipt__total { border-top: 2px solid var(--ink); border-bottom: 3px double var(--ink); padding: 7px 0; font-weight: 600; font-size: 16px; }
.receipt__foot { text-align: center; color: var(--muted); font-size: 12.2px; margin-top: 14px; }
.receipt__qty { color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------- setup page */
/* Stands on its own like the sign-in screen: reachable before anyone has
   signed in, so it cannot use the app shell. */

.setup { background: var(--paper); }
.setup__wrap { max-width: 880px; margin: 0 auto; padding: 38px 24px 46px; }
.setup__wrap > * + * { margin-top: 18px; }

.setup__head h1 { font-size: 27px; }
.setup__head p { color: var(--muted); font-size: 14.4px; margin: 7px 0 0; max-width: 60ch; }

/* A credential, set apart from prose so it can be read and typed exactly. */
.key {
  font-family: ui-monospace, Consolas, 'Courier New', monospace;
  font-size: 13.4px;
  background: #f1efe8;
  border: 1px solid var(--rule);
  padding: 2px 7px;
  display: inline-block;
}
.key--warn { background: var(--stop-soft); border-color: #e8c6bf; color: var(--stop); font-weight: 600; }

.tick { display: inline-block; font-weight: 700; line-height: 1; font-size: 15px; }
.tick--ok   { color: var(--ok); }
.tick--todo { color: var(--stop); }

.setup__foot {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.setup__foot .muted code { background: #f1efe8; padding: 1px 5px; font-size: 12.5px; }

/* ------------------------------------------------- the day sheet book */
/* Laid out like the ruled page it replaces: a heading block with the date
   and the barman, the department as a banner, then one boxed grid where
   every cell has a line around it — so a manager who knows the paper book
   can read this without being taught. */

.book {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 22px 24px 18px;
}

.book__head { text-align: center; margin-bottom: 16px; }
.book__head h2 {
  font-size: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.book__meta {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
  font-size: 13.6px;
  text-align: left;
}
.book__meta span { display: flex; align-items: baseline; gap: 7px; }
.book__meta b { font-weight: 500; color: var(--ink-soft); }

/* the blank line to sign or write on */
.book__rule {
  display: inline-block;
  min-width: 150px;
  border-bottom: 1px solid var(--ink);
  height: 1em;
}

.book__dept {
  display: inline-block;
  font-size: 19px;
  letter-spacing: .08em;
  border-bottom: 2px solid var(--ink);
  padding: 0 16px 3px;
}

/* Every cell ruled, the way the book is ruled. */
.book__table, .book__table th, .book__table td { border: 1px solid var(--rule-firm); }
.book__table th {
  text-align: center;
  vertical-align: bottom;
  background: #faf8f3;
  border-bottom: 1.5px solid var(--ink);
  line-height: 1.2;
}
.book__table th.r { text-align: center; }
.book__table td { padding: 7px 10px; }
.book__table tbody tr:hover td { background: #fbfaf6; }
.book__table tfoot td { border-top: 1.5px solid var(--ink); }

.book__sign {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 13.2px;
  color: var(--ink-soft);
}
.book__sign div { display: flex; align-items: baseline; gap: 9px; }

@media print {
  /* The book carries its own heading, so the app page header is dead
     weight on paper - and its height is what pushed a short sheet on
     to a second page. */
  .topbar { display: none; }

  .book { border: 0; padding: 0; }
  .book__head { margin-bottom: 10px; }
  .book__meta { margin: 7px 0 9px; }
  .book__table, .book__table th, .book__table td { border: 0.5pt solid #000; }
  .book__table th { background: none; border-bottom: 1pt solid #000; padding: 5px 8px; }
  .book__table td { padding: 4px 8px; }
  .book__rule { border-bottom: 0.5pt solid #000; }
  .book__dept { border-bottom: 1.5pt solid #000; }
  /* The paper book lists only the product name. */
  .book__sub { display: none; }
  .book__sign { margin-top: 16px; }
}
/* -------------------------------------------------- printed statement */

.statement { background: var(--surface); border: 1px solid var(--rule); padding: 34px 38px; max-width: 940px; }
.statement__head { border-bottom: 3px double var(--ink); padding-bottom: 16px; margin-bottom: 22px; }
.statement__head h2 { font-size: 26px; }
.statement__head p { margin: 4px 0 0; color: var(--muted); font-size: 13.4px; }
.statement__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 30px; }
.statement h3 { font-size: 15.5px; margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--rule); }

/* ------------------------------------------------------------ misc */

.stackable { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono-amount { font-variant-numeric: tabular-nums; font-weight: 600; }
.hr { border: 0; border-top: 1px solid var(--rule); margin: 16px 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; align-items: flex-end; }
.tabs a, .tabs button {
  padding: 9px 15px; font-size: 14px; color: var(--ink-soft);
  border: 1px solid transparent; border-bottom: 0; text-decoration: none;
  background: transparent; font-family: var(--sans); cursor: pointer; line-height: 1.5;
}
.tabs a:hover, .tabs button:hover:not([disabled]) { color: var(--ink); text-decoration: none; }
.tabs a.is-current, .tabs button.is-current {
  background: var(--surface); border-color: var(--rule);
  color: var(--ink); font-weight: 500; margin-bottom: -1px; padding-bottom: 10px;
}
.tabs button[disabled] { opacity: .4; cursor: not-allowed; }
.tabs__n {
  font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted);
  background: #eceadf; border-radius: 9px; padding: 1px 6px; margin-left: 4px;
}
.tabs button.is-current .tabs__n { background: var(--brass-soft); color: var(--brass); }
.tabs__away { margin-left: auto; color: var(--brass); }

/* Which department a line or tile belongs to — the POS mixes them freely,
   so every item says where it came from. */
.dept {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: 1px 6px; border-radius: 2px; white-space: nowrap;
  background: #eceadf; color: var(--ink-soft);
}
.dept--bar     { background: var(--brass-soft); color: #8a5620; }
.dept--kitchen { background: var(--ok-soft);    color: var(--ok); }
.dept--other   { background: #e9edf1;           color: #4a5b68; }
.dept--rooms   { background: var(--watch-soft); color: var(--watch); }

.progress { height: 5px; background: #eceadf; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brass); }

.jump { position: fixed; left: -999px; top: 0; }
.jump:focus { left: 12px; top: 12px; background: #fff; padding: 9px 14px; border: 2px solid var(--brass); z-index: 99; }

/* ------------------------------------------------------- responsive */

.rail__toggle { display: none; }

@media (max-width: 980px) {
  .pos { grid-template-columns: 1fr; }
  .pos__ticket { position: static; }
}

@media (max-width: 860px) {
  :root { --pad: 16px; }
  .shell { flex-direction: column; }
  .rail { position: static; width: 100%; flex: none; height: auto; }
  .rail__nav { display: none; padding-bottom: 14px; }
  .rail.is-open .rail__nav { display: block; }
  .rail__brand { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .rail__toggle {
    display: inline-flex; align-items: center; gap: 7px; background: transparent;
    border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 6px 12px;
    font: 500 13.5px var(--sans); cursor: pointer;
  }
  .rail__foot { display: none; }
  .rail.is-open .rail__foot { display: block; }
  .topbar { padding: 14px var(--pad); }
  .topbar h1 { font-size: 21px; }
  .figure__value { font-size: 22px; }
  .statement { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
