/* TeaBuddy web app: cream paper, kraft, ink, tea-stain amber. */

:root {
  --paper: #F7F1E2;
  --paper-deep: #EFE6D0;
  --card: #FFFDF6;
  --ink: #3B322A;
  --ink-soft: #5E5244;
  --stain: #B97A2E;
  --kraft: #C9A173;
  --kraft-deep: #A97F4F;
  --clay: #46362D;
  --liquor: #D98F2B;
  --leaf: #7A7C4E;
  --cream: #F3E9D4;
  --hand: "Caveat", "Bradley Hand", cursive;
  --marker: "Permanent Marker", "Marker Felt", cursive;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
/* The cream page with faint tea-stain blotches behind every screen. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 260px 160px at 82% 4%, rgba(185,122,46,0.08), transparent 70%),
    radial-gradient(ellipse 200px 140px at 6% 92%, rgba(185,122,46,0.07), transparent 70%),
    radial-gradient(circle 60px at 78% 46%, transparent 52px, rgba(185,122,46,0.10) 54px, rgba(185,122,46,0.10) 59px, transparent 61px);
  z-index: 0;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid rgba(185,122,46,0.4); outline-offset: 1px; }

#page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 18px 96px;
  min-height: 100%;
}

/* MARK: Tab bar */
#tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(255,253,246,0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(169,127,79,0.35);
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
#tabbar button {
  flex: 0 1 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--kraft-deep);
}
#tabbar button svg { width: 24px; height: 24px; }
#tabbar button.active { color: var(--stain); }
#tabbar button:hover { background: var(--paper-deep); }

/* MARK: Shared bits */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.hand { font-family: var(--hand); }
.marker { font-family: var(--marker); }

.card-box {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(70,54,45,0.12);
}

.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
}
.chip.filled { background: var(--kraft); color: #fff; }
.chip.auto { border: 1.5px dashed var(--kraft-deep); color: var(--clay); }
.chip.tag-off { background: var(--paper-deep); color: var(--ink-soft); }
.chip.tag-on { background: var(--stain); color: #fff; }
button.chip { cursor: pointer; }

.chip-flow { display: flex; flex-wrap: wrap; gap: 6px; }

.stars { display: inline-flex; gap: 2px; color: var(--liquor); }
.stars .off { color: rgba(169,127,79,0.4); }
.star-picker { display: flex; gap: 8px; align-items: center; }
.star-picker button { font-size: 22px; color: rgba(169,127,79,0.5); line-height: 1; }
.star-picker button.on { color: var(--liquor); }
.star-picker .count { font-size: 12px; font-weight: 600; color: var(--ink-soft); }

.swatch {
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(70,54,45,0.3), inset 2px 3px 6px rgba(255,255,255,0.35);
  border: 0.5px solid rgba(70,54,45,0.15);
  flex: none;
}

.session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 2px 5px rgba(70,54,45,0.12);
  margin-bottom: 8px;
}
.session-row .title { font-family: var(--hand); font-size: 22px; line-height: 1.1; color: var(--ink); }
.session-row .sub { font-size: 12px; color: var(--ink-soft); }
.session-row .spacer { flex: 1; }
.session-row .chev { color: var(--kraft-deep); font-weight: 700; }
.session-row .fav { color: var(--liquor); font-size: 13px; }
.session-row:hover { box-shadow: 0 3px 9px rgba(70,54,45,0.2); }

.kraft-pad {
  background: linear-gradient(135deg, var(--kraft), #BD905E);
  border-radius: 4px;
  padding: 14px;
  transform: rotate(-0.6deg);
  box-shadow: 0 3px 6px rgba(70,54,45,0.25);
  margin: 6px 0;
}
.kraft-pad .pad-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #5D4630; margin-bottom: 6px;
}
.kraft-pad textarea {
  width: 100%;
  background: transparent;
  border: none;
  resize: vertical;
  font-family: var(--hand);
  font-size: 20px;
  color: #3D2C1A;
  min-height: 64px;
}
.kraft-pad textarea::placeholder { color: #5D4630; opacity: 0.8; }
.kraft-pad textarea:focus { outline: none; }

.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--stain);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 3px 9px rgba(185,122,46,0.35);
}
.primary-btn:hover { filter: brightness(1.05); }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--stain);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.icon-btn:hover { background: #E7DCC2; }

.text-input {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  border: 1.5px solid var(--kraft);
  background: var(--paper-deep);
  font-size: 15px;
}
.text-input::placeholder { color: var(--ink-soft); opacity: 0.8; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state .glyph { font-size: 44px; color: var(--kraft-deep); }
.empty-state .big { font-family: var(--hand); font-size: 28px; color: var(--ink); margin: 8px 0 4px; }

.washi-photo {
  position: relative;
  display: inline-block;
  background: #fff;
  padding: 5px 5px 14px;
  box-shadow: 0 3px 8px rgba(70,54,45,0.3);
}
.washi-photo img { display: block; width: 100%; }
.washi-photo::before {
  content: "";
  position: absolute;
  width: 56%; height: 16px;
  background: rgba(201,161,115,0.75);
  top: -8px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 1px 2px rgba(70,54,45,0.2);
}
.dashed-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1.5px dashed var(--kraft-deep);
  border-radius: 999px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 600;
}
.dashed-btn:hover { background: rgba(201,161,115,0.15); }

/* MARK: Home */
.home-header { display: flex; align-items: flex-start; gap: 12px; padding-top: 8px; margin-bottom: 22px; }
.home-header .greeting { font-family: var(--hand); font-size: 30px; line-height: 1.1; }
.home-header .date {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--kraft-deep); margin-top: 6px;
}
.home-header .spacer { flex: 1; }

.pet-tray {
  position: relative;
  height: 160px;
  border-radius: 22px;
  background: linear-gradient(var(--kraft), var(--kraft-deep));
  box-shadow: 0 4px 10px rgba(70,54,45,0.25);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pet-tray .slats {
  position: absolute;
  inset: 21px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.pet-tray .slats div { height: 3px; border-radius: 2px; background: rgba(70,54,45,0.10); }
.pet-tray svg { position: relative; margin-top: -12px; }
.pet-headline { text-align: center; font-family: var(--hand); font-size: 21px; margin: 10px 0 22px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.stat-card {
  background: var(--paper-deep);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
}
.stat-card .top { display: flex; justify-content: space-between; align-items: center; }
.stat-card .value { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-card .label { font-size: 12px; color: var(--ink-soft); }
.stat-card .sym { font-size: 17px; }
button.stat-card:hover { background: #E7DCC2; }

.tea-strip {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 12px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 2px 5px rgba(70,54,45,0.12);
}
.tea-strip .packet { width: 38px; height: 48px; border-radius: 8px; flex: none; box-shadow: 0 2px 3px rgba(70,54,45,0.2); background-size: cover; background-position: center; }
.tea-strip .name { font-family: var(--hand); font-size: 22px; line-height: 1.1; }
.tea-strip .sub { font-size: 12px; color: var(--ink-soft); }

/* MARK: Journal */
.day-title {
  display: inline-block;
  font-family: var(--hand);
  font-size: 24px;
  border-bottom: 2px solid var(--stain);
  padding-bottom: 1px;
  margin: 16px 0 10px;
}

/* MARK: Shelf */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.tea-card {
  position: relative;
  text-align: left;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 3px 7px rgba(70,54,45,0.18);
  padding: 0;
}
.tea-card:hover { box-shadow: 0 5px 12px rgba(70,54,45,0.28); }
.tea-card .art {
  height: 118px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.tea-card .art .leaf {
  position: absolute;
  font-size: 60px;
  color: rgba(255,255,255,0.25);
  right: 6px; bottom: -8px;
  transform: rotate(-24deg);
}
.tea-card .art .shade { position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,0.18)); }
.tea-card .label-band { padding: 8px 10px; }
.tea-card .name { font-family: var(--hand); font-size: 20px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tea-card .meta { font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tea-card .count {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(70,54,45,0.85);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
}

/* MARK: Calendar */
.month-header { display: flex; align-items: center; margin-bottom: 14px; }
.month-header h2 {
  font-family: var(--marker);
  font-size: 26px;
  font-weight: 400;
  border-bottom: 2.5px solid var(--stain);
  padding-bottom: 2px;
}
.month-header .nav { margin-left: auto; display: flex; gap: 10px; }
.month-header .nav button { font-size: 18px; color: var(--stain); font-weight: 700; padding: 4px 8px; }
.weekday-row, .month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.weekday-row div { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.day-cell {
  height: 46px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.day-cell .dots { display: flex; gap: 2px; height: 6px; }
.day-cell .dots span { width: 6px; height: 6px; border-radius: 50%; }
.day-cell.selected { background: var(--stain); color: #fff; font-weight: 700; }
.day-cell.today { box-shadow: inset 0 0 0 1.5px var(--kraft-deep); }
.day-cell:hover:not(.selected) { background: var(--paper-deep); }

/* MARK: Detail pages */
.detail-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.detail-topbar .title { font-weight: 600; font-size: 15px; }
.detail-topbar .spacer { flex: 1; }
.page-title {
  font-family: var(--marker);
  font-size: 32px;
  line-height: 1.2;
  display: inline-block;
  border-bottom: 2.5px solid var(--stain);
  padding-bottom: 2px;
}
.aka-line { font-family: var(--hand); font-size: 20px; color: var(--ink-soft); margin-top: 4px; }
.vendor-line { font-size: 13px; color: var(--ink-soft); margin: 10px 0; }

.steep-table { padding: 14px; background: var(--card); border-radius: 14px; box-shadow: 0 2px 5px rgba(70,54,45,0.12); }
.steep-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(94,82,68,0.15);
}
.steep-row:last-child { border-bottom: none; }
.steep-row .idx { width: 44px; flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; color: var(--stain); }
.steep-row .idx.rinse { color: var(--ink-soft); }
.steep-row .secs { width: 40px; flex: none; font-size: 13px; font-weight: 600; color: var(--clay); font-variant-numeric: tabular-nums; }
.steep-row .note { flex: 1; font-family: var(--hand); font-size: 20px; line-height: 1.2; }
.steep-row .note.rinse { color: var(--ink-soft); }
.steep-row .del { color: var(--kraft-deep); font-size: 13px; opacity: 0; transition: opacity 0.15s; }
.steep-row:hover .del { opacity: 1; }

.photo-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.photo-grid .washi-photo { width: 108px; }
.photo-add {
  width: 100px; height: 125px;
  border: 1.5px dashed var(--kraft-deep);
  border-radius: 6px;
  color: var(--clay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.photo-add:hover { background: rgba(201,161,115,0.15); }

/* MARK: Sheet (new entry) and dialogs */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(59,50,42,0.4);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  background: var(--paper);
  width: 100%;
  max-width: 720px;
  max-height: 94dvh;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  animation: sheet-up 0.25s ease;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(169,127,79,0.25);
}
.sheet-header .title { flex: 1; text-align: center; font-weight: 700; font-size: 15px; }
.sheet-header button { font-size: 15px; color: var(--stain); font-weight: 600; min-width: 60px; }
.sheet-header button:disabled { opacity: 0.4; cursor: default; }
.sheet-body { overflow-y: auto; padding: 18px 18px 40px; }

.match-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  background: var(--card);
  border-radius: 10px;
  margin-top: 6px;
}
.match-row:hover { background: #FBF6E8; }
.match-row .t { font-family: var(--hand); font-size: 21px; line-height: 1.15; }
.match-row .s { font-size: 12px; color: var(--ink-soft); }

.prefill-card {
  background: var(--card);
  border: 1.5px solid var(--kraft);
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
}
.prefill-card .head { display: flex; align-items: baseline; gap: 8px; }
.prefill-card .head .name { font-family: var(--hand); font-size: 24px; flex: 1; }
.prefill-card .head button { font-size: 12px; color: var(--stain); font-weight: 600; }
.prefill-card .row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.field-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--paper-deep);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--clay);
}
.field-chip input { background: transparent; border: none; font-size: 12px; font-weight: 600; color: var(--clay); }
.field-chip input:focus { outline: none; }
.prefill-note { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-soft); margin-top: 12px; }
.prefill-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--stain); }
select.type-select {
  appearance: none;
  background: var(--kraft);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border: none;
  border-radius: 999px;
}
input.origin-input {
  background: transparent; border: none;
  font-size: 12px; font-weight: 600; color: var(--clay);
  flex: 1; min-width: 90px;
}

.timer-card {
  background: var(--clay);
  border-radius: 16px;
  padding: 14px;
  color: var(--cream);
  margin-top: 14px;
}
.timer-card .main { display: flex; align-items: center; gap: 10px; }
.timer-card .time { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.timer-card .subtitle { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: rgba(243,233,212,0.75); margin-top: 3px; }
.timer-card .adjust {
  width: 27px; height: 27px;
  border-radius: 50%;
  border: 1.3px solid rgba(243,233,212,0.45);
  color: var(--cream);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.timer-card .playpause {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--liquor);
  color: #3D2C1A;
  font-size: 17px;
  display: grid;
  place-items: center;
  margin-left: auto;
  flex: none;
}
.timer-card .cat-note { font-size: 11px; color: rgba(243,233,212,0.65); margin: 8px 0; }
.timer-card .log-row { display: flex; gap: 8px; }
.timer-card .log-row input {
  flex: 1;
  background: rgba(243,233,212,0.15);
  border: none;
  border-radius: 10px;
  padding: 9px;
  font-family: var(--hand);
  font-size: 18px;
  color: var(--cream);
}
.timer-card .log-row input::placeholder { color: rgba(243,233,212,0.6); }
.timer-card .log-btn {
  background: var(--stain);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
}
.timer-card .grandpa-title { font-family: var(--hand); font-size: 24px; color: var(--cream); }

.style-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.style-blurb { font-size: 11px; color: var(--ink-soft); margin-top: 6px; }
select.temp-select {
  appearance: none;
  background: var(--kraft);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border: none;
  border-radius: 999px;
  margin-left: auto;
}

.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--stain); }

.section-gap { margin-top: 18px; }
.hint { font-size: 11px; color: var(--ink-soft); margin-top: 6px; }

.tag-input-row { display: flex; gap: 8px; margin-bottom: 8px; }
.tag-input-row input {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 10px;
  background: var(--paper-deep);
  font-size: 14px;
}
.tag-input-row button { font-size: 22px; color: var(--stain); }
.tag-input-row button:disabled { opacity: 0.35; }

/* Confirm dialog */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(59,50,42,0.45);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}
.dialog {
  background: var(--card);
  border-radius: 16px;
  max-width: 340px;
  width: 100%;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(70,54,45,0.4);
}
.dialog .d-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.dialog .d-msg { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.dialog .d-actions { display: grid; gap: 8px; }
.dialog .d-actions button { padding: 11px; border-radius: 11px; font-size: 14px; font-weight: 600; }
.dialog .destructive { background: #B3402A; color: #fff; }
.dialog .cancel { background: var(--paper-deep); color: var(--ink); }

@media (max-width: 480px) {
  .stats-grid { gap: 10px; }
  .shelf-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Share this page: the scrapbook preview */
.dialog.share-dialog { max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto; }
.share-preview {
  margin: 4px 0 14px; min-height: 160px; display: grid; place-items: center;
  font-size: 19px; color: var(--ink-soft);
}
.share-preview img {
  width: 100%; height: auto; display: block; border-radius: 6px;
  box-shadow: 0 8px 22px rgba(70,54,45,0.25);
}
.share-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; margin-bottom: 14px; cursor: pointer; }
.share-toggle input { width: 18px; height: 18px; accent-color: var(--stain); }
.dialog .primary { background: var(--stain); color: #fff; }
.dialog .d-actions button:disabled { opacity: 0.5; cursor: default; }

/* MARK: Stock, dose and Brew again */
.primary-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--stain); color: #fff; border: 0; border-radius: 999px;
  padding: 9px 18px; font: 600 14px var(--body); cursor: pointer;
}
.primary-pill:hover { background: var(--kraft-deep); }
.text-btn { background: none; border: 0; font: 600 13px var(--body); color: var(--stain); cursor: pointer; padding: 4px 6px; }
.plan-note { margin-top: 8px; font-size: 12px; color: var(--clay); background: var(--paper-deep); border-radius: 10px; padding: 6px 10px; }
.stock-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.stock-input {
  width: 56px; padding: 5px 10px; border: 0; border-radius: 999px; background: var(--paper-deep);
  font: 600 13px var(--body); color: var(--clay); text-align: center;
}
.stock-gauge { height: 10px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; margin: 6px 0 2px; }
.stock-gauge i { display: block; height: 100%; background: var(--kraft); border-radius: 999px; }
.stock-gauge.is-low i { background: var(--stain); }
.tea-card .stock-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--stain); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 3px 8px;
}
.tea-card .stock-badge.is-finished { background: rgba(70,54,45,0.85); }
