@font-face { font-family: Fraunces; src: url("/static/fonts/fraunces-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Fraunces; src: url("/static/fonts/fraunces-560.woff2") format("woff2"); font-weight: 560; font-display: swap; }
@font-face { font-family: Outfit; src: url("/static/fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url("/static/fonts/outfit-560.woff2") format("woff2"); font-weight: 560; font-display: swap; }
@font-face { font-family: Outfit; src: url("/static/fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("/static/fonts/special-elite-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Outfit, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16.5px;
  line-height: 1.4;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

.langbar {
  display: flex; justify-content: flex-end;
  background: #111; color: #F2EFE6; padding: 4px 14px 2px;
}
.langbar form { display: flex; align-items: center; gap: 6px; margin: 0; }
.langbar button {
  background: transparent; color: #F2EFE6; border: 0; min-height: 36px; min-width: 36px;
  font-family: "Special Elite", ui-monospace, monospace; letter-spacing: 0.08em; font-size: 0.95rem;
}
.langbar button.on { border-bottom: 2px solid #D93A2B; }
.langbar span { opacity: .7; }
.netbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #1f6b45; color: #f6f1e8; padding: 8px 14px; font-size: 14px;
}
.netbar.offline { background: #7a4b00; }
.netbar button {
  background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px; min-height: 36px; padding: 4px 12px;
}
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #111; color: #F2EFE6; padding: 6px 14px;
  font-family: "Special Elite", ui-monospace, monospace;
  font-size: 13px; letter-spacing: 0.01em;
  border-bottom: 3px solid #D93A2B;
}
.banner form { margin: 0; }
.banner button {
  background: transparent; color: #f6f1e8; border: 1px solid #8a8175;
  border-radius: 999px; padding: 4px 10px; min-height: 32px;
}

.mast {
  display: flex; align-items: center; gap: 12px;
  background: var(--mast); color: var(--mastink);
  padding: 14px 16px 16px;
}
.mast .logo, .mark {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff;
  flex: 0 0 auto;
}
.mark { display: grid; place-items: center; background: transparent; color: var(--brand2); }
.mark svg { width: 42px; height: 42px; }
.mast h1, .mast-name { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; margin: 0; font-weight: 560; letter-spacing: -0.02em; }
.mast p { margin: 2px 0 0; color: var(--brand2); font-size: 0.92rem; }
.who { margin-left: auto; position: relative; }
.who summary {
  list-style: none; cursor: pointer; border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 8px 12px; min-height: 44px; display: flex; align-items: center;
  font-size: 0.92rem;
}
.who summary::-webkit-details-marker { display: none; }
.who-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); color: var(--ink);
  border-radius: 14px; padding: 8px; min-width: 200px; z-index: 5;
  box-shadow: 0 12px 40px rgba(20,16,12,.18);
}
.who-menu button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  padding: 10px 8px; border-radius: 10px; min-height: 44px;
}
.who-menu button[aria-current="true"] { background: var(--paper); font-weight: 700; }

.wrap { max-width: 880px; margin: 0 auto; padding: 16px 16px 20px; }
body:has(nav.nav) main.wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.kicker { font-family: "Special Elite", ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; font-weight: 400; color: #3a342c; margin: 0 0 4px; }
.mast .kicker { color: var(--mastink); }
h2 { font-family: Fraunces, Georgia, serif; font-weight: 560; font-size: 1.35rem; margin: 22px 0 10px; }
.hero h2 { font-size: clamp(2.1rem, 9vw, 3.2rem); line-height: 1; margin: 0; letter-spacing: -0.03em; }
.hero .sub { margin: 6px 0 0; color: #5c564e; }

/* Wrap instead of overflowing: five storage areas pushed the count page past a 390px phone. */
.ranges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.ranges a { white-space: nowrap; }
.ranges a, .chip {
  text-decoration: none; border-radius: 999px; padding: 8px 12px; min-height: 40px;
  background: transparent; border: 1px solid var(--line); display: inline-flex; align-items: center;
}
.ranges a.on, .chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat, .card, .loc, .line, .recv {
  background: var(--card); border-radius: 16px; padding: 12px 12px 10px;
  box-shadow: 0 1px 0 rgba(28,25,23,.04);
}
.stat span, .muted { color: #6f675e; font-size: 0.82rem; }
.stat strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.35rem; margin-top: 2px; }
.stat small { color: #6f675e; }

.prime { margin: 12px 0 4px; }
.prime-bar { height: 10px; background: #efe6d8; border-radius: 999px; overflow: hidden; }
.prime-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.prime p { margin: 6px 0 0; font-size: 0.92rem; }

.breakdown { list-style: none; padding: 0; margin: 8px 0 0; }
.breakdown li, .bill, .low, .shift, .linkrow {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.breakdown li:last-child, .stack > :last-child { border-bottom: 0; }
.breakdown li.order-line { display: block; min-width: 0; }
.order-line a { display: grid; gap: 2px; text-decoration: none; min-width: 0; }
.order-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; }
.order-top strong { min-width: 0; }
.order-qty { flex: 0 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-line .reason { display: block; margin: 0; overflow-wrap: anywhere; }
.left { font-weight: 700; }

.loc { display: flex; gap: 12px; align-items: center; text-decoration: none; margin: 8px 0; padding: 12px; }
.loc img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; }
.loc strong { display: block; }
.loc em { margin-left: auto; font-style: normal; font-family: Fraunces, Georgia, serif; font-size: 1.15rem; }

.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-family: "Special Elite", ui-monospace, monospace; border-radius: 2px; padding: 3px 8px; font-size: 0.78rem; background: #f3e6cc; color: #3a342c; }
.pill.bad { background: #f8d6d2; color: #7a201c; }
.pill.good { background: #d9efe3; color: #145c38; }
.pill.warn { background: #fde7c2; color: #7a4b00; }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: white; border: 0; border-radius: 14px;
  min-height: 48px; padding: 12px 16px; text-decoration: none; font-weight: 700; width: 100%;
}
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.good { background: #1f6b45; }
.btn.small { width: auto; min-height: 40px; padding: 8px 12px; }
.stack { display: grid; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

label.field { display: grid; gap: 4px; font-family: "Special Elite", ui-monospace, monospace; font-size: 0.92rem; font-weight: 400; }
input, select, textarea { font-family: Outfit, "Segoe UI", sans-serif; }
input, select, textarea {
  width: 100%; background: #fff; border: 1px solid #ddd2c2; border-radius: 12px;
  padding: 12px; min-height: 48px;
}
textarea { min-height: 88px; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flags label {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; min-height: 40px;
  display: inline-flex; gap: 6px; align-items: center; font-weight: 650; font-size: 0.85rem;
}
.flags input { width: auto; min-height: 0; }
.flags label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.toggle {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-height: 64px;
}
.knob {
  width: 48px; height: 28px; border-radius: 999px; background: #ddd4c6; position: relative; flex: 0 0 auto;
}
.knob i {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: white;
  transition: left .15s ease;
}
.toggle.on .knob { background: var(--brand); }
.toggle.on .knob i { left: 23px; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
  background: #111; color: #F2EFE6; padding: 12px 8px calc(8px + env(safe-area-inset-bottom));
  z-index: 4;
}
.nav::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-conic-gradient(#111111 0% 25%, #F2EFE6 0% 50%) 0 0 / 8px 8px;
}
.nav a {
  text-decoration: none; color: inherit; display: grid; justify-items: center; gap: 2px;
  font-family: "Special Elite", ui-monospace, monospace;
  font-size: 0.72rem; min-width: 56px; min-height: 48px; opacity: .82;
}
.nav a.on { opacity: 1; color: #F2EFE6; box-shadow: inset 0 3px 0 #D93A2B; }
.nav svg { width: 22px; height: 22px; }

.flash { background: #1f6b45; color: white; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.flash a { color: white; font-weight: 700; }
.flash.bad { background: #7a201c; }
.callout { border-left: 4px solid var(--brand); padding: 8px 12px; margin: 8px 0 12px; }

.shot img.receipt-img, .receipt-img {
  width: 100%; max-height: 280px; object-fit: contain; object-position: top; background: #fff; border-radius: 12px;
}
.line header { display: flex; justify-content: space-between; gap: 8px; }
.line .lowconf { outline: 2px solid #e0a15a; }
.reconcile {
  position: sticky; bottom: calc(72px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--paper); border-radius: 16px; padding: 12px; margin-top: 12px;
}
.reconcile.ok { background: #1f6b45; }
.reconcile.bad { background: #7a201c; }

.bar { height: 8px; background: #efe6d8; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; background: var(--brand); }
.login { max-width: 520px; margin: 0 auto; padding: 28px 18px 40px; }
.login h1 { font-family: Fraunces, Georgia, serif; font-size: 2.4rem; line-height: 1.05; margin: 8px 0; }
.logos { display: flex; gap: 16px; align-items: center; margin: 18px 0; }
.logos img { width: 84px; height: 84px; border-radius: 50%; background: white; object-fit: cover; }
.gap { height: 8px; }
hr.fade { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.out { color: #7a201c; font-weight: 700; }
.tools { display: grid; gap: 8px; margin: 12px 0; }
.tool {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 16px; padding: 10px 12px; min-height: 56px;
  border: 1px solid transparent;
}
.tool input { width: auto; min-height: 0; }
.tool:has(input:checked) { border-color: var(--ink); }
.badge {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 0.75rem; flex: 0 0 auto;
}
.steps { margin: 12px 0; padding-left: 1.2rem; }
.steps li { margin: 8px 0; }
.placeholder {
  border: 1px dashed #c9bfb2; border-radius: 12px; min-height: 96px;
  display: grid; place-items: center; text-align: center; color: #6f675e;
  padding: 12px; margin: 8px 0 14px;
  background: repeating-linear-gradient(-45deg, #fff, #fff 8px, #f6f1e8 8px, #f6f1e8 16px);
}
.reason { margin: 0 0 8px; }
.qtybox { max-width: 120px; }
.tool-widget { display: block; text-decoration: none; margin: 12px 0; }
.tool-widget strong { font-family: Fraunces, Georgia, serif; font-size: 1.45rem; display: block; }

@media (min-width: 800px) {
  .split { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
  .receipt-img { max-height: 70vh; position: sticky; top: 12px; }
}
.import-doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.import-doc img { width: 100%; height: auto; display: block; }
.import-frame { width: 100%; min-height: 520px; border: 0; background: #fff; }
a.dock { display: grid; gap: 2px; text-decoration: none; }
a.dock.on { outline: 2px solid var(--brand); }
@media (min-width: 720px) {
  .import-split { display: grid; grid-template-columns: minmax(260px, 0.9fr) 1.1fr; gap: 16px; align-items: start; }
  .import-doc { position: sticky; top: 12px; }
}

.brand-mark {
  width: 56px; height: 56px; object-fit: cover; flex: 0 0 auto;
  background: #F2EFE6; border: 1px solid rgba(242, 239, 230, .6);
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.login-brand h1,
.login-brand .tagline { width: 100%; text-align: center; }
.login-logo { display: block; width: min(100%, 420px); height: auto; margin: 0 auto; }
.feedback-fab {
  position: fixed; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 30; background: var(--ink); color: var(--paper); text-decoration: none;
  border-radius: 999px; padding: 10px 14px; font-weight: 700;
}
.mascot-slot { margin: 0 auto 6px; width: 100%; display: flex; justify-content: center; }
.mascot-slot img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 168px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}
.tagline, .colophon {
  font-family: "Special Elite", ui-monospace, monospace;
}
.wordmark { margin: 0 0 2px; }
.login h1.wordmark { font-size: 0; line-height: 0; margin: 0 0 4px; }
.wordmark img { display: block; width: 100%; height: auto; }
.block {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
body.platform h1 { font-family: Outfit, "Segoe UI", sans-serif; font-weight: 700; letter-spacing: -0.03em; }
.hero h1.block { font-size: 2rem; margin: 0 0 8px; }
.hero h1.block::after {
  content: "";
  display: block;
  width: 4.25rem;
  height: 4px;
  margin-top: 8px;
  background: #D93A2B;
}
.tagline { margin: 2px 0 8px; color: #3a342c; }
.nowrap { white-space: nowrap; }
.colophon {
  max-width: 880px; margin: 0 auto; text-align: center;
  padding: 8px 16px calc(96px + env(safe-area-inset-bottom));
  color: #3a342c; font-size: 0.85rem;
}
.colophon p { margin: 0; }
.colophon .powered { margin-top: 2px; }
body:not(:has(nav.nav)) .colophon { padding-bottom: 28px; }

body.platform .mast { position: relative; padding-bottom: 18px; }
body.platform .mast.preview { padding-bottom: 16px; }
body.platform .mast.preview::after { display: none; }
body.platform .mast::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-conic-gradient(#111111 0% 25%, #F2EFE6 0% 50%) 0 0 / 8px 8px;
}
body.platform .stats { margin-top: 12px; }
body.platform .stat {
  position: relative;
  background: #F7F4EC;
  border: 1.5px solid #111;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #111;
}
body.platform .stat::before {
  content: "";
  position: absolute; top: -6px; left: 50%;
  width: 28px; height: 8px;
  transform: translateX(-50%);
  background: #D93A2B;
  border-radius: 1px;
}
.view-bar {
  background: #111; color: #F2EFE6; text-align: center; padding: 8px 12px 10px;
}
.view-bar form { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0; }
.view-bar button {
  background: transparent; color: #F2EFE6; border: 0; min-height: 0; padding: 4px 12px;
  font-family: Outfit, "Segoe UI", sans-serif; font-weight: 700; font-size: 0.95rem; width: auto;
}
.view-bar button.on { color: #D93A2B; box-shadow: inset 0 -2px 0 #D93A2B; }
.view-banner { margin: 6px 0 0; font-size: 0.85rem; }
.view-banner a { color: #F2EFE6; margin-left: 8px; }
button.pick {
  width: 100%; text-align: left; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 2px;
}
body.platform .stat strong { font-family: Outfit, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; margin-top: 8px; font-size: 0.82rem; }
.legal-links a { color: #6f675e; text-decoration: underline; }
.legal h1 { font-size: 1.6rem; }
.legal h2 { font-size: 1.15rem; margin-top: 1.2rem; }
.draft-banner, .callout { border-left: 3px solid #D93A2B; }
.note {
  background: #fff; border-left: 3px solid #D93A2B; margin: 12px 0; padding: 10px 12px;
}
.map { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.map th, .map td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e4dfd4; white-space: nowrap; }
.scroll { overflow-x: auto; margin: 8px 0 16px; }
.map-col { margin: 0 0 12px; padding: 10px 12px; }
.map-col legend { font-family: "Special Elite", ui-monospace, monospace; padding: 0 4px; }
label.check { display: flex; gap: 10px; align-items: flex-start; }
label.check input[type="checkbox"] { width: 1.25rem; height: 1.25rem; min-height: 0; padding: 0; flex: 0 0 auto; margin-top: 0.2rem; }
label.check span { flex: 1; min-width: 0; line-height: 1.35; }
.dish-groups { display: grid; gap: 12px; max-height: 28rem; overflow: auto; padding-right: 2px; }
.dish-group h2 { font-size: 0.95rem; margin: 0 0 6px; }
.dish-option {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin: 0 0 6px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.dish-option input[type="radio"] { width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; flex: 0 0 auto; }
.dish-name { flex: 1; min-width: 0; }
.area-add h2, .area-list h2 { margin: 0 0 12px; font-size: 1.25rem; }
.area-list { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.area-list .area-card { margin-top: 12px; }
.recipe-editor { display: grid; gap: 12px; }
.recipe-line {
  display: grid; gap: 8px; padding: 12px; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.recipe-line .btn { width: auto; }
@media (min-width: 720px) {
  .recipe-line { grid-template-columns: minmax(140px, 1.5fr) 0.7fr 0.9fr 0.6fr auto auto; align-items: end; }
}

.wrap:has(.landing) { max-width: 1120px; }
.landing-bar, .landing-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.landing-bar { justify-content: space-between; margin-bottom: 8px; }
.landing-cta .btn { width: auto; min-width: 8.5rem; }
.landing-hero { display: grid; gap: 18px; align-items: center; }
.landing-logo { width: min(100%, 520px); height: auto; margin: 0 auto; display: block; background: #fff; }
.landing h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; margin: 8px 0; }
.landing h2 { margin: 0 0 8px; }
.checker-rule {
  height: 12px; margin: 22px 0;
  background: repeating-linear-gradient(90deg, #111 0 12px, #F2EFE6 12px 24px);
  border-top: 3px solid #D93A2B; border-bottom: 3px solid #D93A2B;
}
.tracks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.tracks li, .price-block, .faq { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.tracks h3 { margin: 2px 0 6px; font-size: 1.15rem; }
.tracks p, .faq p, .price-block p { margin: 0; }
.track-single { border-color: #D93A2B; box-shadow: inset 4px 0 0 #D93A2B; }
.price-block, .faq { margin-top: 18px; }
.price-block h2 { font-size: clamp(2rem, 4vw, 3rem); }
.faq details { padding: 8px 0; border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin: 0 0 8px; }
.shots { display: grid; gap: 14px; }
.shots figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.shots img { width: 100%; height: auto; display: block; background: #F4F0E6; }
.shots figcaption { padding: 8px 12px 12px; font-weight: 700; }
@media (min-width: 800px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shots h2, .shots > p { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .tracks { grid-template-columns: 1fr 1fr; }
  .track-single { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .landing-hero { grid-template-columns: minmax(280px, 460px) 1fr; gap: 28px; }
  .landing-logo { margin: 0; }
  .tracks { grid-template-columns: 1fr 1fr 1fr; }
  .track-single { grid-column: 1 / -1; }
}

/* Receive: each line folds its amount/cost/area/sub fields until they are needed. */
.recv-more { margin-top: 8px; border-top: 1px solid var(--line); }
.recv-more > summary {
  cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px;
  font-weight: 600; list-style: none; flex-wrap: wrap;
}
.recv-more > summary::-webkit-details-marker { display: none; }
.recv-more > summary::before { content: "▸"; transition: transform .15s; }
.recv-more[open] > summary::before { transform: rotate(90deg); }

/* Feedback: a small round button on phones so it does not sit on top of form fields,
   gone while someone is typing, and the page gets room below its last button. */
.feedback-fab { display: inline-flex; align-items: center; gap: 6px; }
.feedback-fab .fab-icon { font-size: 1.1rem; line-height: 1; }
@media (max-width: 600px) {
  .feedback-fab { width: 44px; height: 44px; padding: 0; justify-content: center; opacity: .92; }
  .feedback-fab .fab-label { display: none; }
}
body:has(input:focus, select:focus, textarea:focus) .feedback-fab { display: none; }
body:has(.feedback-fab) main { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
/* Four status chips on one row at phone width (Damaged used to wrap onto its own line). */
.recv .flags { flex-wrap: nowrap; gap: 4px; }
.recv .flags label { flex: 1 1 0; justify-content: center; padding-left: 6px; padding-right: 6px; font-size: .86rem; white-space: nowrap; }
.recv .flags label { position: relative; min-width: 0; }
.recv .flags input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.recv .flags label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Receipt check-off: a personal line stays visible but reads as set aside. */
.recv.ignored > header strong { text-decoration: line-through; opacity: .6; }
.receipt-photo > summary { font-weight: 600; }
/* Four receipt choices: two rows on a phone, one row when there is room. */
.recv .flags.kinds { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .recv .flags.kinds { grid-template-columns: repeat(4, 1fr); } }

/* Profit and loss statement */
.pnl-scroll { overflow-x: auto; margin: 8px 0; }
.pnl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.pnl th, .pnl td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.pnl th[scope=row], .pnl thead th:first-child { text-align: left; white-space: normal; font-weight: 400; }
.pnl thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted, #6f675e); }
.pnl .pnl-subtotal th, .pnl .pnl-subtotal td { font-weight: 700; }
.pnl .pnl-total th, .pnl .pnl-total td { font-weight: 800; border-top: 2px solid currentColor; border-bottom: 3px double currentColor; }
.pnl .pnl-memo th, .pnl .pnl-memo td { font-size: 0.85rem; color: var(--muted, #6f675e); font-style: italic; }
.pnl-places { display: none; }
@media (max-width: 700px) {
  .pnl .place-col { display: none; }
  .pnl-places { display: block; margin-top: 4px; }
}

/* Platform admin front page */
.stats.admin-totals { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stats.admin-totals { grid-template-columns: repeat(4, 1fr); } }
a.stat { color: inherit; text-decoration: none; }
a.stat small { display: block; }
.admin-copy { display: flex; gap: 8px; align-items: center; }
.admin-copy input { flex: 1; min-width: 0; }
.admin-copy .btn { width: auto; flex: 0 0 auto; }
.loc > .pill { margin-left: auto; flex-shrink: 0; white-space: nowrap; }

/* radio-fix-20261121: keep radios and checkboxes small and next to their labels */
input[type="radio"], input[type="checkbox"] { width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; margin: 0; flex: 0 0 auto; border-radius: revert; }
label:has(> input[type="radio"]), label:has(> input[type="checkbox"]) { display: flex; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; }
