/* BRWN guest app. Palette sampled from the printed menu card and deepened for screen.
   Type: Zodiak (wordmark and section heads), Gambetta (menu type), Satoshi (chrome).
   Breakpoints: phone < 760, tablet 760 to 1023, desktop >= 1024. */

:root {
  --bg: #120c0a;
  --card: #211511;
  --raise: #2c1d18;
  --line: rgba(232, 217, 197, 0.12);
  --line-soft: rgba(232, 217, 197, 0.07);
  --ink: #f0e5d7;
  --ink-2: #c0a897;
  --muted: #94786a;
  --wine: #7c2630;
  --wine-hi: #b0505a;
  --cream: #e8d9c5;
  --ok: #7ba05b;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --fast: 180ms;
  --slow: 620ms;

  --shell: min(560px, 100%);
  --gut: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body::before {
  /* Paper tooth. Fixed, never attached to a scrolling container. */
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url('/img/grain.png');
  background-size: 180px 180px;
}

body::after {
  /* One warm pool of light from above, the way the card looks under cafe lighting. */
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(176, 80, 90, 0.16), transparent 62%),
    radial-gradient(100% 60% at 50% 108%, rgba(0, 0, 0, 0.6), transparent 70%);
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 var(--gut);
  display: flex;
  flex-direction: column;
}

/* ---------- type ------------------------------------------------------- */

.wordmark {
  font-family: 'Zodiak', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--cream);
}

.serif { font-family: 'Gambetta', Georgia, serif; }

.eyebrow {
  font-family: 'Satoshi', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 { margin: 0; font-weight: 400; }

.display {
  font-family: 'Zodiak', Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 8.5vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.lede {
  font-family: 'Gambetta', Georgia, serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 12px 0 0;
}

/* ---------- double bezel ----------------------------------------------- */

.bezel {
  background: rgba(232, 217, 197, 0.045);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  padding: 6px;
}

.bezel > .core {
  background: linear-gradient(180deg, var(--card), #1b110e);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(232, 217, 197, 0.09), 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

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

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  justify-content: space-between;
  padding: 7px 7px 7px 26px;
  border-radius: 999px;
  background: var(--cream);
  color: #1b110e;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.cta:active { transform: scale(0.98); }
.cta[disabled] { opacity: 0.35; pointer-events: none; }

.cta .knob {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(27, 17, 14, 0.09);
  display: grid;
  place-items: center;
  transition: transform 380ms var(--ease), background var(--fast) var(--ease);
}
.cta:hover .knob { transform: translate(3px, -1px) scale(1.05); background: rgba(27, 17, 14, 0.16); }

.ico {
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  display: block;
}
.ico-arrow { -webkit-mask-image: url('/img/icons/arrow.svg'); mask-image: url('/img/icons/arrow.svg'); }
.ico-check { -webkit-mask-image: url('/img/icons/check.svg'); mask-image: url('/img/icons/check.svg'); }
.ico-wifi  { -webkit-mask-image: url('/img/icons/wifi.svg');  mask-image: url('/img/icons/wifi.svg'); }
.ico-phone { -webkit-mask-image: url('/img/icons/phone.svg'); mask-image: url('/img/icons/phone.svg'); }
.ico-key   { -webkit-mask-image: url('/img/icons/key.svg');   mask-image: url('/img/icons/key.svg'); }
.ico-back  { -webkit-mask-image: url('/img/icons/back.svg');  mask-image: url('/img/icons/back.svg'); }
.ico-close { -webkit-mask-image: url('/img/icons/close.svg'); mask-image: url('/img/icons/close.svg'); }
.ico-copy  { -webkit-mask-image: url('/img/icons/copy.svg');  mask-image: url('/img/icons/copy.svg'); }

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.ghost:hover { border-color: rgba(232, 217, 197, 0.28); color: var(--cream); }
.ghost:active { transform: scale(0.985); }

/* ---------- views ------------------------------------------------------- */

.view { display: none; flex: 1; flex-direction: column; }
.view.on { display: flex; }

.rise > * {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: rise var(--slow) var(--ease) forwards;
}
.rise > *:nth-child(1) { animation-delay: 40ms; }
.rise > *:nth-child(2) { animation-delay: 110ms; }
.rise > *:nth-child(3) { animation-delay: 180ms; }
.rise > *:nth-child(4) { animation-delay: 250ms; }
.rise > *:nth-child(5) { animation-delay: 320ms; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise > * { animation: none; opacity: 1; transform: none; filter: none; }
  * { transition-duration: 1ms !important; }
}

/* ---------- welcome ----------------------------------------------------- */

.welcome { justify-content: center; gap: 30px; padding: 40px 0 calc(34px + var(--safe-b)); }

.mark { position: relative; text-align: center; padding: 6px 0 2px; }
.mark .swash {
  position: absolute;
  inset: -34px 0 auto 0;
  font-family: 'Gambetta', Georgia, serif;
  font-style: italic;
  font-size: 122px;
  line-height: 1;
  color: rgba(232, 217, 197, 0.07);
  pointer-events: none;
  user-select: none;
}
.mark .name { position: relative; font-size: 44px; }
.mark .under {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mark .rule { height: 1px; width: 34px; background: var(--line); }

.tablechip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(232, 217, 197, 0.04);
}
.tablechip .n { font-family: 'Zodiak', Georgia, serif; font-size: 17px; color: var(--cream); }

.steps { padding: 24px 22px 22px; }
.steps h2 { font-family: 'Gambetta', Georgia, serif; font-size: 21px; color: var(--cream); line-height: 1.25; }
.steps ol { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 2px; }
.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}
.steps li:first-child { border-top: 0; }
.steps .dot {
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2);
}
.steps .dot .ico { width: 15px; height: 15px; }
.steps .txt { font-size: 14px; color: var(--ink-2); }
.steps .txt b { display: block; color: var(--cream); font-weight: 500; font-size: 14.5px; }

.foot { text-align: center; font-size: 12px; color: var(--muted); line-height: 1.6; }

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

.pane { padding: 26px 22px 24px; }

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  transition: border-color var(--fast) var(--ease);
}
.field:focus-within { border-color: rgba(232, 217, 197, 0.34); }
.field .pfx { color: var(--muted); font-size: 15px; }
.field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.otp { display: flex; gap: 10px; margin-top: 20px; }
.otp input {
  flex: 1;
  height: 62px;
  text-align: center;
  font-family: 'Zodiak', Georgia, serif;
  font-size: 25px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  outline: none;
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.otp input:focus { border-color: rgba(232, 217, 197, 0.4); transform: translateY(-1px); }

.hint { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.err { margin-top: 14px; font-size: 13px; color: var(--wine-hi); min-height: 18px; }

.demoflag {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(232, 217, 197, 0.2);
  font-size: 12.5px;
  color: var(--ink-2);
}
.demoflag b { font-family: 'Zodiak', Georgia, serif; color: var(--cream); letter-spacing: 0.16em; font-size: 15px; }

/* ---------- connected --------------------------------------------------- */

.creds { display: grid; gap: 1px; margin-top: 20px; }
.cred {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 0; border-top: 1px solid var(--line-soft);
}
.cred:first-child { border-top: 0; }
.cred .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cred .v { font-family: 'Zodiak', Georgia, serif; font-size: 17px; color: var(--cream); }
.copy { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.copy:hover { color: var(--cream); }

/* ---------- menu -------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 calc(var(--gut) * -1);
  padding: 12px var(--gut) 0;
  background: linear-gradient(180deg, rgba(18, 12, 10, 0.96) 62%, rgba(18, 12, 10, 0));
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.topbar .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .name { font-family: 'Zodiak', Georgia, serif; font-size: 21px; letter-spacing: 0.08em; color: var(--cream); }

.rail {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 13px 0 12px;
  margin: 0 calc(var(--gut) * -1);
  padding-left: var(--gut);
  padding-right: var(--gut);
}
.rail::-webkit-scrollbar { display: none; }
.rail button {
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.rail button[aria-current='true'] { background: var(--cream); border-color: var(--cream); color: #1b110e; }

.section { padding: 26px 0 4px; scroll-margin-top: 108px; }
.section > header { padding-bottom: 14px; }
.section h2 {
  font-family: 'Zodiak', Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream);
}
.section .note { font-family: 'Gambetta', Georgia, serif; font-size: 14px; color: var(--muted); margin-top: 7px; }

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  transition: opacity var(--fast) var(--ease);
}
.item:first-of-type { border-top: 1px solid var(--line); }
.item .nm {
  font-family: 'Gambetta', Georgia, serif;
  font-size: 17.5px;
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 1.25;
}
.item .pr { font-family: 'Zodiak', Georgia, serif; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.item .ds {
  grid-column: 1 / -1;
  font-family: 'Gambetta', Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
}
.item .tag {
  display: inline-block;
  margin-left: 9px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(176, 80, 90, 0.5);
  color: var(--wine-hi);
  font-family: 'Satoshi', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: middle;
}
.item.out { opacity: 0.4; pointer-events: none; }
.item.out .pr::after { content: ' sold out'; font-family: 'Satoshi', sans-serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- sheet ------------------------------------------------------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(9, 6, 5, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 260ms var(--ease);
}
.scrim.on { opacity: 1; }

.sheet {
  position: fixed;
  z-index: 41;
  left: 50%;
  bottom: 0;
  width: var(--shell);
  transform: translate(-50%, 100%);
  transition: transform 460ms var(--ease);
  padding: 0 12px calc(12px + var(--safe-b));
}
.sheet.on { transform: translate(-50%, 0); }
.sheet .core { max-height: 84dvh; display: flex; flex-direction: column; }
.sheet .grip { width: 40px; height: 4px; border-radius: 999px; background: var(--line); margin: 12px auto 0; }
.sheet .body { overflow-y: auto; padding: 18px 22px 4px; }
.sheet .actions { padding: 16px 18px 18px; border-top: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.2); }

.sheet .title { font-family: 'Gambetta', Georgia, serif; font-size: 25px; color: var(--cream); line-height: 1.15; }
.sheet .price { font-family: 'Zodiak', Georgia, serif; font-size: 17px; color: var(--ink-2); margin-top: 8px; }
.sheet .desc { font-family: 'Gambetta', Georgia, serif; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin-top: 14px; }

.group { margin-top: 24px; }
.group .lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.group .opts { margin-top: 10px; display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.2);
  font-size: 14.5px;
  color: var(--ink-2);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.opt[aria-pressed='true'] { border-color: rgba(232, 217, 197, 0.45); color: var(--cream); background: rgba(232, 217, 197, 0.06); }
.opt .add { font-family: 'Zodiak', Georgia, serif; font-size: 13px; color: var(--muted); }

.qty { display: flex; align-items: center; gap: 16px; }
.qty button {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 19px; color: var(--ink-2); line-height: 1;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.qty button:hover { color: var(--cream); border-color: rgba(232, 217, 197, 0.3); }
.qty .n { font-family: 'Zodiak', Georgia, serif; font-size: 19px; min-width: 22px; text-align: center; color: var(--cream); }

/* ---------- cart bar ---------------------------------------------------- */

.cartbar {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: calc(14px + var(--safe-b));
  width: calc(var(--shell) - 24px);
  transform: translate(-50%, 140%);
  transition: transform 480ms var(--ease);
}
.cartbar.on { transform: translate(-50%, 0); }
.cartbar .core { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; }
.cartbar .meta .k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cartbar .meta .v { font-family: 'Zodiak', Georgia, serif; font-size: 17px; color: var(--cream); }
.cartbar .go {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 12px 11px 20px; border-radius: 999px; background: var(--cream); color: #1b110e;
  font-weight: 700; font-size: 14px;
  transition: transform var(--fast) var(--ease);
}
.cartbar .go:active { transform: scale(0.97); }
.cartbar .go .knob { width: 30px; height: 30px; border-radius: 999px; background: rgba(27, 17, 14, 0.1); display: grid; place-items: center; }

/* ---------- cart and checkout ------------------------------------------ */

.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 15px 0; border-top: 1px solid var(--line-soft); }
.line:first-child { border-top: 0; }
.line .nm { font-family: 'Gambetta', Georgia, serif; font-size: 16.5px; color: var(--cream); }
.line .pr { font-family: 'Zodiak', Georgia, serif; font-size: 15px; color: var(--ink-2); }
.line .op { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.line .rm { grid-column: 1 / -1; justify-self: start; margin-top: 6px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.total { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.total .k { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.total .v { font-family: 'Zodiak', Georgia, serif; font-size: 26px; color: var(--cream); }

.pays { display: grid; gap: 10px; margin-top: 18px; }
.pay {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.2); text-align: left;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.pay[aria-pressed='true'] { border-color: rgba(232, 217, 197, 0.42); background: rgba(232, 217, 197, 0.06); }
.pay .t { font-size: 15px; font-weight: 500; color: var(--cream); }
.pay .s { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pay .mk { width: 20px; height: 20px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; }
.pay[aria-pressed='true'] .mk { background: var(--cream); border-color: var(--cream); color: #1b110e; }
.pay .mk .ico { width: 11px; height: 11px; opacity: 0; }
.pay[aria-pressed='true'] .mk .ico { opacity: 1; }

/* ---------- order status ------------------------------------------------ */

.ticket { padding: 26px 22px 22px; text-align: center; }
.ticket .code { font-family: 'Zodiak', Georgia, serif; font-size: 40px; letter-spacing: 0.05em; color: var(--cream); }
.ticket .sub { font-size: 13px; color: var(--muted); margin-top: 8px; }

.track { margin-top: 26px; display: grid; gap: 0; text-align: left; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.step .col { display: grid; justify-items: center; }
.step .bead { width: 11px; height: 11px; border-radius: 999px; border: 1px solid var(--line); margin-top: 5px; transition: background 400ms var(--ease), border-color 400ms var(--ease); }
.step .stem { width: 1px; flex: 1; background: var(--line-soft); min-height: 26px; }
.step:last-child .stem { display: none; }
.step .t { font-size: 14.5px; color: var(--muted); transition: color 400ms var(--ease); }
.step .d { font-size: 12px; color: var(--muted); opacity: 0.7; margin-top: 2px; padding-bottom: 12px; }
.step.done .bead { background: var(--ok); border-color: var(--ok); }
.step.done .t { color: var(--cream); }

.upibox { margin-top: 20px; padding: 20px; text-align: center; }
.upibox .qr { width: 190px; height: 190px; margin: 0 auto; padding: 12px; background: var(--cream); border-radius: 14px; }
.upibox .qr img, .upibox .qr canvas { width: 100%; height: 100%; display: block; }
.upibox .amt { font-family: 'Zodiak', Georgia, serif; font-size: 27px; color: var(--cream); margin-top: 16px; }
.upibox .why { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.55; }

/* ---------- tablet and desktop ------------------------------------------ */

@media (min-width: 760px) {
  :root { --shell: 560px; --gut: 30px; }
  .shell { border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
  .mark .name { font-size: 52px; }
  .mark .swash { font-size: 150px; inset: -42px 0 auto 0; }
}

@media (min-width: 1024px) {
  :root { --shell: 600px; }
  .welcome { padding-top: 66px; }
  .item { padding: 18px 0; }
}

/* cart bar rides as a pill, so its bezel matches */
.cartbar .bezel { border-radius: 999px; padding: 5px; }
.cartbar .core { border-radius: 999px; }

/* Flex and grid children default to min-width:auto, which lets a row of inputs
   push the whole column past the shell. Every app column is allowed to shrink. */
.view > *, .rise, .rise > *, .sheet .body > * { min-width: 0; }
.otp { min-width: 0; }
.otp input { min-width: 0; width: 100%; flex: 1 1 0; }
.field input { min-width: 0; }

/* the tracker stem only draws when the column is a flex line */
.step .col { display: flex; flex-direction: column; align-items: center; }

/* the swash sits over the B on the printed card, not over the whole word */
.mark .swash { text-align: left; padding-left: 18%; }

/* a binary choice belongs on one row, not stacked down the sheet */
.opts.seg-row { grid-auto-flow: column; grid-auto-columns: 1fr; }
.opts.seg-row .opt { justify-content: center; }

/* photography slot. Empty until BRWN supplies real shots, then it lights up. */
.shot { margin: -18px -22px 18px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--raise); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.item .tag { font-size: 9px; padding: 2px 7px; }
