/* ============================================================
   Bridlewood — W1 screens: Garden, Shop, Vet, More
   All styles for screens/{garden,shop,vet,more}.js live here.
   Fenced per screen; SHARED fence first (used by all four).
   Design tokens per design_handoff_bridlewood/README.md.
   ============================================================ */

/* ==== SHARED (W1) ==== */

/* sub-screen header: back chip + title + right-hand pills */
.w1-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 0;
}
.w1-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.w1-back {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--btn2-bg);
  border: 1px solid var(--btn2-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim-ink);
  flex-shrink: 0;
  transition: transform .1s;
}
.w1-back:active { transform: scale(0.94); }
.w1-title {
  font-family: 'Newsreader', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--forest-ink);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w1-sub {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 1px;
}
.w1-head-pills { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* main scrolling body under a w1 header */
.w1-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 16px;
}

/* small inventory chip (satchel seeds, vet-kit herbs) */
.w1-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 6px 10px;
}
.w1-chip .name { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.w1-chip .count { font-size: 11px; font-weight: 700; color: var(--sage-faint); }

/* generic list row (shop items, More destinations) */
.w1-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px 13px;
  margin-bottom: 9px;
  width: 100%;
  text-align: left;
}
.w1-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.w1-row-main { flex: 1; min-width: 0; }
.w1-row-name { font-size: 14px; font-weight: 700; color: var(--forest-ink); }
.w1-row-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
}
.w1-owned {
  font-size: 10px;
  font-weight: 700;
  color: var(--sage-ink);
  background: var(--meadow);
  padding: 2px 7px;
  border-radius: 9px;
  white-space: nowrap;
}
.w1-name-line { display: flex; align-items: center; gap: 6px; min-width: 0; }

/* section kicker (uppercase mini heading) */
.w1-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0 4px 8px;
}

/* shorter bottom sheet (no hero) — pairs with app.css .overlay/.scrim */
.w1-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(80%, 620px);
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  animation: bwSheet .32s cubic-bezier(0.22, 1, 0.36, 1) both;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.w1-sheet-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 18px 10px;
}
.w1-sheet-title { font-size: 14px; font-weight: 700; color: var(--forest-ink); }
.w1-sheet-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim-ink);
  flex-shrink: 0;
}
.w1-sheet-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 14px;
}

/* ==== GARDEN ==== */

.gd-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 20px;
}
.gd-pill span { font-size: 12.5px; font-weight: 700; }
.gd-pill-feed { background: var(--feed-bg); }
.gd-pill-feed span { color: var(--feed-ink); }
.gd-pill-herb { background: var(--meadow); }
.gd-pill-herb span { color: var(--meadow-ink); }

.gd-harvest-all {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--forest);
  color: var(--paper-text);
  font-size: 13.5px;
  font-weight: 700;
  padding: 13px;
  border-radius: 14px;
  margin-bottom: 12px;
  transition: transform .1s;
}
.gd-harvest-all:active { transform: scale(0.97); }

.gd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}
.gd-plot {
  border-radius: 17px;
  padding: 13px 12px;
  text-align: left;
  display: block;
  width: 100%;
  transition: transform .1s;
}
.gd-plot:active { transform: scale(0.97); }
.gd-plot.ready { background: var(--sel-bg); border: 2px solid var(--sage); }
.gd-plot.growing { background: var(--card); border: 1px solid var(--card-border); }
.gd-plot.empty { background: var(--plot-empty-bg); border: 2px dashed var(--dash); }

.gd-plot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 8px;
}
.gd-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.gd-plot.ready .gd-num { color: var(--sage-dim); }
.gd-plot.growing .gd-num { color: var(--muted-2); }
.gd-plot.empty .gd-num { color: var(--faint-2); }

.gd-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 9px;
  white-space: nowrap;
}
.gd-badge.ready { letter-spacing: 0.05em; color: #2E3D30; background: var(--sage-pale); }
.gd-badge.grow { color: var(--amber-ink); background: var(--amber-bg); }
.gd-badge.empty { letter-spacing: 0.05em; color: var(--muted-2); background: var(--dim-bg); }

.gd-plot .icon { margin-bottom: 6px; display: flex; }
.gd-name { font-size: 13.5px; font-weight: 700; }
.gd-plot.ready .gd-name, .gd-plot.growing .gd-name { color: var(--forest-ink); }
.gd-plot.empty .gd-name { color: var(--muted-2); }
.gd-sub { font-size: 11px; margin-top: 2px; }
.gd-plot.ready .gd-sub { color: var(--sage-ink); }
.gd-plot.growing .gd-sub { color: var(--muted); }
.gd-plot.empty .gd-sub { color: var(--faint-2); }

.gd-bar {
  height: 6px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin-top: 8px;
}
.gd-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--sage);
  transition: width .4s;
}

/* satchel + note cards */
.gd-card {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 13px 14px;
}
.gd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.gd-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
}
.gd-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sage-ink);
  white-space: nowrap;
}
.gd-chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.gd-card-empty { font-size: 12px; color: var(--text-faint); }

.gd-note {
  margin-top: 12px;
  background: var(--btn2-bg);
  border: 1px solid var(--btn2-border);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.gd-note .txt { font-size: 12px; color: var(--text-soft); line-height: 1.5; flex: 1; }
.gd-note svg { flex-shrink: 0; }

/* seed-picker rows (inside the w1-sheet) */
.gd-seed-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
  transition: transform .1s;
}
.gd-seed-row:active { transform: scale(0.98); }
.gd-seed-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--meadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gd-seed-name { font-size: 13.5px; font-weight: 700; color: var(--forest-ink); }
.gd-seed-name .wild { font-size: 11px; font-weight: 600; color: var(--muted); }
.gd-seed-almanac { font-size: 11px; color: var(--muted); margin-top: 1px; }
.gd-seed-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sage-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.gd-picker-note { font-size: 12px; color: var(--text-faint); padding: 4px 2px 8px; }
.gd-picker-note .gd-link { font-size: 12px; }

/* ==== SHOP ==== */

.sh-blurb {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.5;
  padding: 2px 4px 10px;
}
.sh-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 10px;
}
.sh-qty-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.sh-price {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--forest);
  color: var(--paper-text);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .1s;
}
.sh-price:active { transform: scale(0.96); }
.sh-price.off { background: var(--off-bg); color: var(--muted-2); }
.sh-price.off:active { transform: none; }
.sh-price .glyph { font-size: 11px; line-height: 1; }

/* upgrade confirm sheet */
.sh-confirm { padding: 4px 4px 8px; text-align: center; }
.sh-confirm .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px auto 12px;
}
.sh-confirm .name {
  font-family: 'Newsreader', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--forest-ink);
}
.sh-confirm .gets {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 5px;
}
.sh-confirm .price-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--shoe-ink);
}
.sh-confirm-actions { display: flex; gap: 9px; margin-top: 16px; }
.sh-confirm-btn {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  padding: 13px;
  border-radius: 13px;
  transition: transform .1s;
}
.sh-confirm-btn:active { transform: scale(0.96); }
.sh-confirm-btn.yes { background: var(--forest); color: var(--paper-text); }
.sh-confirm-btn.yes.off { background: var(--off-bg); color: var(--muted-2); }
.sh-confirm-btn.no { background: var(--btn2-bg); border: 1px solid var(--btn2-border); color: var(--btn2-ink); }

/* ==== VET ==== */

.vt-patient {
  background: var(--clay-bg);
  border: 1px solid var(--clay-border);
  border-radius: 17px;
  padding: 14px 15px;
  margin-bottom: 10px;
}
.vt-prow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}
.vt-coat {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}
.vt-pmain { flex: 1; min-width: 0; }
.vt-pname { font-size: 14.5px; font-weight: 700; color: var(--forest-ink); }
.vt-cond { font-size: 11.5px; color: var(--clay-ink); font-weight: 600; margin-top: 1px; }
.vt-note {
  font-size: 12px;
  color: var(--clay-ink-2);
  line-height: 1.5;
  margin-bottom: 12px;
}
.vt-actions { display: flex; gap: 8px; }
.vt-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 11px 8px;
  border-radius: 12px;
  white-space: nowrap;
  transition: transform .1s;
}
.vt-btn:active { transform: scale(0.97); }
.vt-btn.herb { background: var(--forest); color: var(--paper-text); }
.vt-btn.herb.off { background: var(--dim-bg); color: var(--muted-2); }
.vt-btn.visit { background: var(--btn2-bg); border: 1px solid var(--btn2-border); color: var(--shoe-ink); }
.vt-btn.visit.off { color: var(--muted-2); }
.vt-btn.off:active { transform: none; }

.vt-well {
  background: var(--sel-bg);
  border: 1px solid var(--sage-pale);
  border-radius: 17px;
  padding: 18px;
  text-align: center;
  margin-bottom: 10px;
}
.vt-well .icon { display: flex; justify-content: center; margin-bottom: 7px; }
.vt-well .head {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--forest-ink);
}
.vt-well .sub { font-size: 12px; color: var(--text-soft); margin-top: 3px; }

.vt-kit {
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 13px 14px;
}
.vt-kit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.vt-kit-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
}
.vt-kit-hint { font-size: 11px; color: var(--muted-2); margin-top: 9px; }
.vt-kit-empty { font-size: 12px; color: var(--text-faint); }

.vt-hrow {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 7px;
}
.vt-coat-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}
.vt-hname { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--forest-ink); }
.vt-hstate {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.vt-hstate .dot { font-size: 9px; line-height: 1; }

/* ==== MORE ==== */

.mr-head { flex-shrink: 0; padding: 14px 20px 0; }
.mr-title {
  font-family: 'Newsreader', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--forest-ink);
  line-height: 1.05;
}

.mr-player {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--forest);
  border-radius: 18px;
  padding: 15px 16px;
  margin-bottom: 14px;
}
.mr-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', serif;
  font-size: 21px;
  font-weight: 600;
  color: #23261F;
  flex-shrink: 0;
}
.mr-pmain { flex: 1; min-width: 0; }
.mr-pname {
  font-size: 15px;
  font-weight: 700;
  color: #F4EEE2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-psub { font-size: 11.5px; color: #B6BFAC; margin-top: 1px; }

.mr-row { transition: transform .1s; }
.mr-row.nav:active { transform: scale(0.98); }
.mr-row .chev { flex-shrink: 0; color: var(--faint-2); }
/* row icons draw with currentColor (more.js) so Nightfall can re-ink them */
.mr-row .w1-row-icon { color: var(--btn2-ink); }
.mr-signout.mr-row .w1-row-icon { color: var(--rose-ink); }
.mr-row.soon .w1-row-icon,
.mr-row.soon .w1-row-name,
.mr-row.soon .w1-row-sub { opacity: 0.62; }
.mr-soon-pill {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber-ink);
  background: var(--amber-bg);
  padding: 2px 7px;
  border-radius: 9px;
  flex-shrink: 0;
}
.mr-row-name { font-size: 14.5px; }

.mr-signout { margin-top: 14px; }
.mr-signout .w1-row-icon { background: var(--rose-bg); }
.mr-signout .w1-row-name { color: var(--rose-ink); }

/* Appearance row (ruling 27): Light / Dark / System segmented control.
   Reuses app.css .sort-seg/.sort-btn styling, stretched full-width. */
.mr-theme-seg { margin-top: 9px; width: 100%; }
.mr-theme-seg .sort-btn { flex: 1; text-align: center; }

.mr-foot {
  text-align: center;
  font-size: 11px;
  color: var(--muted-2);
  padding: 8px 0 4px;
}
