@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/nunito-latin.woff2") format("woff2");
}
:root {
  --bg: #f4ebdd;
  --card: #fbf7ef;
  --card-hover: #fffbf3;
  --line: #eadfcb;
  --shadow: #e3d6c2;
  --ink: #1c1a17;
  --muted: #5e574d;
  --soft: #4a443b;
  --action: #3d3b38;
  --action-hover: #2c2a27;
  --orange: #f4a62a;
  --green-bg: #dde6c4;
  --green: #33400f;
  --green-line: #9db35a;
  --amber-bg: #fbe1a8;
  --amber: #6a4300;
  --blue-bg: #cfe0f2;
  --blue: #1e3f66;
  --blue-line: #6e9bcb;
  --red-bg: #fbd9c9;
  --red: #7a2509;
  --field: #fffdf8;
  --field-line: #d9cbb4;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    500 18px/1.4 Nunito,
    system-ui,
    sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--ink);
}
a:hover {
  color: #000;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}
[hidden] {
  display: none !important;
}

/* Layout */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 20px 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
main:focus {
  outline: none;
}
.side {
  display: none;
}
.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--card);
  border-top: 1px solid var(--shadow);
  padding: 8px 8px calc(12px + env(safe-area-inset-bottom));
}
.nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}
.nav a .ic {
  display: flex;
  padding: 3px 16px;
  border-radius: 999px;
}
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 800;
}
.nav a[aria-current="page"] .ic {
  background: var(--orange);
}

/* Type */
h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
}
h1.sub {
  font-size: 32px;
}
h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}
.cap {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.cap.ink {
  color: var(--ink);
}
.muted {
  color: var(--soft);
  font-size: 16px;
}
.small {
  font-size: 16px;
}
.big {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
}
.amt {
  font-size: 22px;
  font-weight: 800;
}
.u {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
}
.nowrap {
  white-space: nowrap;
}
.ell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.good {
  color: #3c4a12;
  font-weight: 700;
}
.warn {
  color: var(--red);
  font-weight: 700;
}

/* Building blocks */
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.back {
  display: flex;
  align-items: center;
  gap: 8px;
}
.back > a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -10px;
  flex: none;
}
.card {
  background: var(--card);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 1px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
a.card:hover {
  background: var(--card-hover);
  color: var(--ink);
}
.card.flat {
  box-shadow: none;
}
.card.done {
  background: #eef1e0;
  box-shadow: none;
}
.card.dark {
  background: var(--action);
  color: #fbf7ef;
  box-shadow: none;
}
.card.dark .cap {
  color: #d9cfbf;
}
.card.alert {
  background: var(--red-bg);
  color: var(--red);
  box-shadow: none;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
}
.hero > svg {
  position: absolute;
  right: -64px;
  top: -64px;
  width: 180px;
  height: 180px;
}
.hero .muted {
  max-width: 68%;
}
.home-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.home-top .hero {
  grid-column: 1 / -1;
}
.hero > div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.row > .grow {
  flex: 1;
  min-width: 0;
}
.spread {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sep {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 2px 0;
}
.blob {
  flex: none;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 999px;
  background: var(--action);
  color: #fbf7ef;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--action-hover);
  color: #fff;
}
.btn.wide {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn.ghost:hover {
  background: #efe4d2;
  color: var(--ink);
}
.btn.danger {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn.small {
  min-height: 40px;
  font-size: 15px;
  padding: 0 16px;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.start {
  align-self: flex-start;
  margin-top: 12px;
}
.round {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 999px;
  flex: none;
}
.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-size: 16px;
  min-height: 32px;
}
.lnk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 4px 18px;
  font-size: 19px;
  font-weight: 700;
  flex-direction: row;
}

.seg {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  background: #eadfcb;
  border-radius: 999px;
  padding: 4px;
}
.seg button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
}
.seg button[aria-pressed="true"] {
  background: var(--action);
  color: #fbf7ef;
}
.seg.light button[aria-pressed="true"] {
  background: var(--card);
  color: var(--ink);
}

.step {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: none;
}
.step:hover {
  background: #efe4d2;
}
.step[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
.qty {
  width: 34px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}
.counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.counter .val {
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.counter .val b {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}
.counter .val .cap {
  font-size: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inp {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 2px solid var(--field-line);
  background: var(--field);
  font-size: 20px;
  font-weight: 500;
  padding: 0 16px;
}
textarea.inp {
  min-height: 120px;
  padding: 12px 16px;
  font-size: 18px;
  resize: vertical;
}
.inp:focus {
  outline: none;
  border-color: var(--ink);
}
.inp.num {
  text-align: right;
  width: 130px;
  flex: none;
  font-size: 18px;
  font-weight: 600;
  min-height: 48px;
}
.f {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}
.f label {
  flex: 1;
  line-height: 1.25;
}
.unit-inp {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  min-height: 44px;
}
.check input {
  width: 24px;
  height: 24px;
  accent-color: var(--action);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: #efe4d2;
  color: var(--soft);
  align-self: flex-start;
}
.chip[aria-pressed="true"] {
  background: var(--green-bg);
  color: var(--green);
}
.chip svg {
  display: none;
}
.chip[aria-pressed="true"] svg {
  display: block;
}
.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.swatches button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
}
.swatches button svg {
  display: block;
  width: 100%;
  height: 100%;
}
.swatches button[aria-pressed="true"] {
  border-color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  background: #efe4d2;
  color: var(--ink);
  white-space: nowrap;
}
.pill.dark {
  background: var(--action);
  color: #fbf7ef;
  cursor: default;
}
.pill.paid {
  background: var(--green-bg);
  color: var(--green);
}
.pill.unpaid {
  background: var(--red-bg);
  color: var(--red);
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  flex: none;
}
.tag.buy {
  background: var(--red-bg);
  color: var(--red);
}
.tag.ok {
  background: var(--green-bg);
  color: var(--green);
}
.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
}
.st b {
  font-weight: 900;
}
.st.empty {
  background: var(--green-bg);
  color: var(--green);
}
.st.full {
  background: var(--amber-bg);
  color: var(--amber);
}
.st.out {
  background: var(--blue-bg);
  color: var(--blue);
  cursor: pointer;
}
.bar {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 999px;
}

/* Expandable rows */
.item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.item .nm {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chev {
  transition: transform 0.15s;
  flex: none;
}
[aria-expanded="true"] > .chev {
  transform: rotate(180deg);
}
.more {
  font-size: 17px;
  color: var(--soft);
  padding: 0 0 12px 32px;
  margin-top: -4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.more a {
  font-weight: 700;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-form .inp {
  width: 120px;
  min-height: 44px;
  font-size: 18px;
}

/* Orders */
.fl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  white-space: nowrap;
}
.lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.order-head .name {
  font-size: 22px;
  font-weight: 800;
}
.order-head .total {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.total-line b {
  font-size: 32px;
  font-weight: 900;
  white-space: nowrap;
}
.empty-state {
  text-align: center;
  padding: 30px 10px;
  color: var(--soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Bottle day */
.task-head {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--action);
  color: #fbf7ef;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.done .num {
  background: var(--green-line);
  color: var(--ink);
}
.task-head .sum {
  flex: 1;
  text-align: right;
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  overflow: hidden;
  text-overflow: ellipsis;
}
.tick {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid var(--action);
  background: transparent;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.tick::after {
  content: "";
  position: absolute;
  inset: -8px;
}
.tick:hover {
  background: #efe4d2;
  color: #9a907f;
}
.tick[aria-pressed="true"] {
  background: var(--green-line);
  border-color: var(--green-line);
  color: var(--ink);
}
.basebox {
  background: var(--bg);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.basebox .big {
  font-size: 32px;
}
.done-box {
  background: var(--green-bg);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #22300a;
}

/* Bases */
.jar-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jar-card .level {
  font-size: 18px;
  white-space: nowrap;
}
.jar-card .level b {
  font-size: 28px;
  font-weight: 800;
}
.fed {
  min-height: 54px;
  border-radius: 999px;
  background: var(--green-bg);
  color: #22300a;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}

/* Flavors */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  background: var(--card);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 1px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 196px;
}
.tile:hover {
  color: var(--ink);
  background: var(--card-hover);
}
.tile > svg {
  position: absolute;
  right: -26px;
  top: -24px;
  width: 120px;
  height: 120px;
}
.tile > * {
  position: relative;
}
.tile .nm {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile.new {
  background: transparent;
  box-shadow: none;
  border: 2px dashed #cdbea6;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}
.tile.archived {
  opacity: 0.6;
}
.label-card {
  align-items: center;
  text-align: center;
  padding: 26px 18px;
  gap: 4px;
}
.label-card .kbc {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4em;
  color: var(--muted);
}
.label-card .stage {
  position: relative;
  width: 240px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.label-card .stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.label-card .stage img {
  position: relative;
  height: 70px;
  width: auto;
}
.label-card .fname {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pre {
  white-space: pre-line;
}

/* Stock */
.status-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.out-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 17px;
}
.out-list .row {
  min-height: 44px;
}

/* Pricing table */
.res {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px 14px;
  align-items: baseline;
  font-size: 17px;
}
.res .v {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.res .m {
  color: #3c4a12;
  font-weight: 700;
  text-align: right;
}

/* Messages */
.notice {
  position: fixed;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 20;
  max-width: 520px;
  margin: 0 auto;
  background: var(--red-bg);
  color: var(--red);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 6px 20px rgba(28, 26, 23, 0.15);
}
.notice p {
  margin: 0;
  flex: 1;
}
.toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 20;
  max-width: 420px;
  margin: 0 auto;
  background: var(--action);
  color: #fbf7ef;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 8px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(28, 26, 23, 0.2);
}
.toast button {
  background: transparent;
  border: 0;
  color: var(--orange);
  font-weight: 800;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 17px;
}
.loading {
  padding: 60px 0;
  text-align: center;
  color: var(--soft);
}

/* Log */
.log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.log li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.log li span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

/* Desktop */
.desk {
  display: none;
}
@media (min-width: 1000px) {
  .app {
    flex-direction: row;
  }
  .nav {
    display: none;
  }
  .side {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 248px;
    flex: none;
    padding: 28px 18px;
    background: var(--card);
    border-right: 1px solid var(--shadow);
    position: sticky;
    top: 0;
    height: 100vh;
  }
  .side img {
    height: 52px;
    width: auto;
    align-self: flex-start;
    margin: 0 0 26px 10px;
  }
  .side a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    color: var(--soft);
  }
  .side a:hover {
    background: #efe4d2;
    color: var(--ink);
  }
  .side a[aria-current="page"] {
    background: var(--orange);
    color: var(--ink);
    font-weight: 800;
  }
  main {
    max-width: 640px;
    padding: 30px 40px 60px;
  }
  main.wide {
    max-width: 1200px;
  }
  .toast {
    bottom: 24px;
  }
  .mob {
    display: none !important;
  }
  .desk {
    display: flex;
  }
  .home-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
  }
  .home-top .hero {
    padding: 26px;
    grid-column: auto;
  }
  .home-top .hero .muted {
    max-width: none;
  }
  .home-top .hero > svg {
    width: 260px;
    height: 260px;
    right: -40px;
    top: -70px;
  }
  .home-top .jar-card {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
  .home-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
  }
  .tbl-row {
    display: grid;
    grid-template-columns:
      minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 1fr)
      minmax(0, 1fr) minmax(0, 1fr) 112px;
    align-items: center;
    column-gap: 16px;
    border-top: 1px solid var(--line);
  }
  .tbl-row.h {
    border: 0;
  }
  .tbl-row > * {
    padding: 14px 0;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .tbl-row.h > * {
    padding: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .tbl-row .r {
    text-align: right;
    justify-self: end;
  }
  .tbl-row > :nth-child(2) {
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    column-gap: 14px;
    row-gap: 4px;
  }
  .tbl-row.h > :nth-child(2) {
    display: block;
  }
  .foot {
    margin-top: auto;
    border-top: 1px solid var(--shadow);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
  }
  .foot .tot {
    display: flex;
    gap: 28px;
    flex: none;
  }
  .foot .tot div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .foot .tot .cap {
    font-size: 12px;
  }
  .foot .tot strong {
    font-size: 24px;
  }
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* spacing utilities (no inline styles: CSP) */
.g0 {
  gap: 0;
}
.g2 {
  gap: 2px;
}
.g4 {
  gap: 4px;
}
.g6 {
  gap: 6px;
}
.g14 {
  gap: 14px;
}
.g16 {
  gap: 16px;
}
.g22 {
  gap: 22px;
}
.center {
  justify-content: center;
}
.pad14 {
  padding: 14px 0;
}
.barwrap {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}
.barwrap svg {
  display: block;
  width: 100%;
  height: 10px;
}
.sepline {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

/* Sign-in */
.signed-out .nav,
.signed-out .side {
  display: none;
}
.signin {
  width: 100%;
  max-width: 380px;
  margin: 8vh auto 0;
}
.signin img {
  align-self: center;
  height: auto;
}
.signin h1 {
  text-align: center;
}
.signin-msg {
  color: var(--red);
  font-weight: 700;
  min-height: 1.3em;
  margin: 0;
}
.signin-msg:empty {
  min-height: 0;
}
.signin .muted {
  text-align: center;
}
