/* ══════════════════════════════════════════
   OUR HOME — tab bar, Chores section, household
   Uses the same tokens as the recipe pages (index.html :root).
══════════════════════════════════════════ */

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico.sm { width: 18px; height: 18px; }
.ico.lg { width: 34px; height: 34px; }
.ico.bold { stroke-width: 3; }

.app { padding-bottom: calc(110px + var(--safe-bottom) + var(--dock-h, 0px)); }

/* ── Bottom tab bar ── */
.tab-bar {
  position: fixed;
  left: max(16px, var(--safe-left));
  right: max(16px, var(--safe-right));
  bottom: calc(14px + var(--safe-bottom) + var(--dock-h, 0px));
  max-width: 420px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 32px;
  background: rgba(30,30,35,.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  z-index: 150;
}
.tab-bar button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 26px;
  background: transparent;
  color: #a9a9b3;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.tab-bar button[aria-current="page"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
}
#detailView[style*="display: block"] ~ .tab-bar { display: none; }
body.no-tabs .tab-bar { display: none; }

/* ── Chores layout ── */
.chores { padding: calc(22px + var(--safe-top)) max(20px, var(--safe-right)) 0 max(20px, var(--safe-left)); max-width: 560px; margin: 0 auto; }
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ch-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.ch-title { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 900; font-size: clamp(36px, 10vw, 44px); letter-spacing: -0.045em; line-height: .95; }
.ch-title em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ch-sub { margin-top: 8px; font-size: 14px; color: #a9a9b3; font-weight: 500; }
.ch-actions { display: flex; gap: 10px; flex-shrink: 0; }
.round-btn {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--btn-bg);
  box-shadow: inset 0 0 0 1px var(--btn-border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.round-btn:active { transform: scale(.94); }
.round-btn .badge:empty { display: none; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; border: none; background: none; color: var(--accent-2); font-size: 16px; font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 6px; }

/* progress */
.progress-link { display: block; width: 100%; margin-top: 18px; border: none; background: none; color: inherit; text-align: left; padding: 0; cursor: pointer; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 700; }
.progress-top span:last-child { color: var(--accent-2); font-size: 14px; }
.bar { margin-top: 10px; height: 12px; border-radius: 6px; background: rgba(255,255,255,.10); overflow: hidden; }
.bar > div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s cubic-bezier(.2,.8,.2,1); }

/* Up Next */
.upnext {
  margin-top: 18px;
  border-radius: 28px;
  padding: 22px 20px 20px;
  background: radial-gradient(120% 120% at 100% 0%, var(--glow, rgba(255,154,60,.2)), var(--surface) 70%);
  border: 1px solid rgba(255,255,255,.09);
  animation: card-in .35s cubic-bezier(.2,.8,.2,1);
}
.upnext.leaving { animation: card-out .3s ease forwards; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes card-out { to { opacity: 0; transform: translateX(-40px) scale(.96); } }
.upnext-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.upnext-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a9a9b3; }
.pill-tag { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.pill-tag.priority { background: #2ad8cc; color: #0b0b0d; }
.pill-tag.missed { background: rgba(255,176,32,.14); color: #ffc65c; }
.pill-tag.flex { background: rgba(255,255,255,.08); color: #c9c9d1; }
.upnext-title { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.big-tile { width: 60px; height: 60px; border-radius: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.upnext h2 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.upnext-desc { margin-top: 8px; font-size: 16px; color: #b9b9c2; line-height: 1.4; }
.steps-btn { margin-top: 12px; min-height: 44px; border: none; background: none; color: var(--accent-2); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 0; }
.steps-btn .ico { transition: transform .2s; }
.steps-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.steps { margin: 2px 0 4px; padding-left: 20px; font-size: 15px; color: #c9c9d1; line-height: 1.6; }
.safety { margin-top: 10px; display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; color: #e9d3a6; background: rgba(255,176,32,.10); border-radius: 14px; padding: 11px 12px; }
.safety .ico { color: #ffc65c; width: 20px; height: 20px; }
.done-btn {
  margin-top: 16px;
  width: 100%;
  min-height: 64px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 12px 28px rgba(255,90,31,.38);
  cursor: pointer;
  transition: transform .12s;
}
.done-btn:active { transform: scale(.97); }
.ghost-row { display: flex; gap: 10px; margin-top: 10px; }
.ghost-btn {
  flex: 1;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 12px;
}
.ghost-btn:active { background: rgba(255,255,255,.06); }
.alldone { margin-top: 22px; border-radius: 28px; padding: 36px 24px; text-align: center; background: radial-gradient(120% 120% at 50% 0%, rgba(255,154,60,.25), var(--surface) 70%); border: 1px solid rgba(255,255,255,.09); animation: card-in .4s ease; }
.alldone h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.alldone p { margin-top: 10px; font-size: 16px; color: #b9b9c2; }
.alldone .ghost-btn { margin-top: 18px; width: 100%; }

/* shortcut tiles */
.shortcuts { display: flex; gap: 10px; margin-top: 14px; }
.shortcut {
  flex: 1; min-width: 0;
  border-radius: 20px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 64px;
}
.shortcut.wide { flex: 1.4; background: var(--surface-2); border-color: transparent; }
.shortcut-k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ff6fa0; }
.shortcut-v { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shortcut-s { display: block; margin-top: 3px; font-size: 13px; color: #a9a9b3; }

/* checklist */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 4px 10px; }
.sec-h h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sec-h span { font-size: 13px; color: #a9a9b3; font-weight: 600; text-align: right; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 12px;
  transition: opacity .25s, transform .25s;
}
.row.priority { border-color: rgba(25,195,184,.5); }
.row.checking { opacity: 0; transform: translateX(30px); }
.row-main { display: flex; align-items: center; gap: 12px; }
.row-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: none; background: none; color: inherit; padding: 0; text-align: left; min-height: 44px; cursor: pointer; }
.tile { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.row-text { flex: 1; min-width: 0; }
.row-title { display: block; font-size: 15.5px; font-weight: 700; }
.row-sub { display: block; margin-top: 2px; font-size: 13px; color: #a9a9b3; }
.row .pill-tag { display: inline-block; margin-top: 4px; padding: 3px 8px; }
.row-detail { margin: 10px 0 4px 54px; font-size: 14px; color: #c9c9d1; line-height: 1.5; }
.row-detail .steps { margin-top: 8px; font-size: 14px; }
.row-detail .row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chk {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  background: transparent;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.chk.on { border: none; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.small-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.small-btn.solid { background: var(--btn-bg-on); }
.fold-btn { margin-top: 24px; width: 100%; min-height: 52px; border-radius: 16px; border: none; background: var(--btn-bg); box-shadow: inset 0 0 0 1px var(--btn-border); color: var(--text); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; cursor: pointer; }
.fold-btn > span { display: flex; align-items: center; gap: 10px; }
.done-dot { width: 24px; height: 24px; border-radius: 50%; background: #34c77b; color: #0b0b0d; display: flex; align-items: center; justify-content: center; }
.done-list { padding: 4px 16px; }
.done-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14.5px; color: var(--muted); }
.done-item span { text-decoration: line-through; }
.done-item button { min-height: 36px; border: none; background: none; color: var(--accent-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.list-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.empty-note { padding: 18px; border-radius: 18px; background: var(--surface); color: #a9a9b3; font-size: 14px; text-align: center; }

/* week */
.week-card { margin-top: 20px; border-radius: 26px; padding: 20px; background: var(--surface); border: 1px solid var(--border); }
.week-big { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 900; font-size: 52px; letter-spacing: -.05em; line-height: 1; }
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.week-nav button { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--btn-bg); box-shadow: inset 0 0 0 1px var(--btn-border); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.week-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 110px; margin-top: 18px; }
.week-bars div { border-radius: 10px; background: rgba(255,255,255,.14); min-height: 6px; transition: height .4s; }
.week-bars div.sel { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.week-bars div.future { background: rgba(255,255,255,.05); }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.week-days button { min-height: 48px; border-radius: 14px; border: none; background: var(--surface-2); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.week-days button.sel { background: var(--text); color: var(--bg); }
.week-days b { font-size: 12px; font-weight: 800; }
.week-days small { font-size: 11px; font-weight: 600; opacity: .8; }
.day-list { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 4px 16px; }
.day-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14.5px; }
.day-item:last-child { border-bottom: none; }
.yday { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 12px 16px; border: none; border-radius: 16px; background: var(--btn-bg); box-shadow: inset 0 0 0 1px var(--btn-border); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.yday b { color: var(--text, #fff); }
.yday span:last-child { color: var(--accent, #ff7a2f); font-weight: 700; }
.day-item .dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.25); }
.day-item .dot.on { border: none; background: #34c77b; color: #0b0b0d; }
.day-item span:nth-child(2) { flex: 1; }
.day-item small { font-size: 12px; color: #a9a9b3; font-weight: 600; }
.hist { display: flex; flex-direction: column; gap: 8px; }
.hist button { display: flex; align-items: center; gap: 12px; min-height: 52px; border-radius: 16px; border: none; background: var(--btn-bg); box-shadow: inset 0 0 0 1px var(--btn-border); color: var(--text); padding: 0 16px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.hist button span:first-child { width: 120px; flex-shrink: 0; }
.hist .bar { flex: 1; margin: 0; height: 8px; }
.hist b { width: 44px; text-align: right; }

/* sheets (reuse .admin-overlay / .admin-panel from the recipe pages) */
.sheet-section { display: flex; flex-direction: column; gap: 8px; }
.sheet-note { font-size: 13px; color: #a9a9b3; line-height: 1.45; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; }
.seg button { flex: 1 1 auto; min-height: 40px; padding: 0 10px; border: none; border-radius: 10px; background: transparent; color: #c9c9d1; font-size: 13px; font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--text); color: var(--bg); }
.daypick { display: flex; justify-content: space-between; gap: 6px; }
.daypick button { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--surface-2); color: #a9a9b3; font-size: 13px; font-weight: 800; cursor: pointer; }
.daypick button.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.icon-grid button { height: 44px; border-radius: 12px; border: 2px solid transparent; background: var(--surface-2); color: #c9c9d1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-grid button.on { border-color: var(--accent-2); color: var(--text); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatches button.on { border-color: var(--text); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 6px 6px 6px 14px; font-size: 15px; }
.stepper div { display: flex; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: none; background: var(--btn-bg); box-shadow: inset 0 0 0 1px var(--btn-border); color: var(--text); font-size: 20px; cursor: pointer; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-size: 15px; font-weight: 600; }
.switch { position: relative; width: 52px; height: 32px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: #3a3a42; transition: background .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: #19c3b8; }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.danger-btn { width: 100%; min-height: 48px; border-radius: 14px; border: none; background: rgba(255,77,94,.12); color: #ff6b79; font-size: 14px; font-weight: 700; cursor: pointer; }
.manage-group { margin-top: 18px; }
.manage-group h4 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a9a9b3; margin: 0 4px 8px; }

/* dinner picker */
.dinner-search { flex-shrink: 0; padding-left: 18px; }
/* Filters wrap onto lines so every one is visible, no sideways scrolling */
.dinner-filters { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.dinner-filters .cat { height: 36px; padding: 0 14px; font-size: 13px; }
#dinnerGrid, #dinnerNeed { flex-shrink: 0; }
.recipe-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.recipe-pick button { position: relative; height: 112px; border-radius: 18px; border: none; overflow: hidden; color: #fff; cursor: pointer; padding: 0; background-size: cover; background-position: center; }
.recipe-pick button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), transparent 70%); }
.recipe-pick button span { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; font-size: 12.5px; font-weight: 700; line-height: 1.2; text-align: left; }
.recipe-pick button.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent-2); }
.need-list { display: flex; flex-direction: column; }
.need { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; cursor: pointer; }
.need input { position: absolute; opacity: 0; pointer-events: none; }
.need .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid rgba(255,255,255,.25); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: transparent; }
.need input:checked + .box { border: none; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.need input:focus-visible + .box { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.need span:nth-of-type(2) { flex: 1; }
.need small { font-size: 12px; color: #a9a9b3; }
.need.have { color: #a9a9b3; }
.tonight { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: var(--surface-2); }
.tonight-img { width: 72px; height: 72px; border-radius: 16px; flex-shrink: 0; background-size: cover; background-position: center; }

/* shopping */
.essentials { display: flex; flex-wrap: wrap; gap: 8px; }
.essentials button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.35); background: transparent; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.shop-from { display: block; font-size: 12px; color: #8e8e98; margin-top: 2px; }
.shop-from.shared { color: var(--accent-2); font-weight: 600; }
.shop-view { margin: 4px 0 10px; }
.shop-checked { margin-top: 14px; }
.shop-checked summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #8e8e98); cursor: pointer; list-style: none; }
.shop-checked summary::-webkit-details-marker { display: none; }
.shop-checked summary::before { content: '▸'; font-size: 14px; transition: transform .2s; }
.shop-checked[open] summary::before { transform: rotate(90deg); }
.shop-recipe { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.shop-recipe .small-btn { min-height: 34px; text-transform: none; letter-spacing: 0; }

/* household */
.code-box { text-align: center; padding: 22px 16px; border-radius: 20px; background: var(--surface-2); }
.code-words { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 30px; font-weight: 900; letter-spacing: -.02em; color: var(--accent-2); }
.device { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; border-bottom: 1px solid rgba(255,255,255,.07); }
.device b { display: block; font-size: 15px; }
.device small { font-size: 12.5px; color: #a9a9b3; }

/* pairing gate */
.gate {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255,90,31,.22), var(--bg) 60%), var(--bg);
  overflow-y: auto;
}
.gate-inner { min-height: 100%; max-width: 440px; margin: 0 auto; box-sizing: border-box; padding: calc(64px + var(--safe-top)) 24px calc(32px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; }
.gate-logo { width: 76px; height: 76px; border-radius: 24px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px rgba(255,90,31,.4); margin-bottom: 18px; }
.gate-logo svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gate h1 { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 900; font-size: 40px; letter-spacing: -0.045em; line-height: 1; }
.gate h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate-lead { font-size: 15px; color: #a9a9b3; line-height: 1.5; margin-bottom: 14px; }
.gate-lead strong { color: var(--text); }
.gate .field-label { margin-top: 8px; }
.gate-code { font-size: 18px; font-weight: 700; }
.gate-msg { min-height: 20px; font-size: 14px; color: #ff8a95; font-weight: 600; }
.gate-foot { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.gate-note { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.05); border-radius: 18px; padding: 14px; font-size: 13px; color: #c9c9d1; line-height: 1.45; }
.gate-note svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: #3ddc89; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gate-go { min-height: 56px; border-radius: 999px; font-size: 16px; }
.gate-alt { min-height: 44px; border: none; background: none; color: var(--accent-2); font-size: 14px; font-weight: 700; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .upnext, .upnext.leaving, .alldone { animation: none; }
  .row, .bar > div, .week-bars div { transition: none; }
}

.shop-remind { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; background: rgba(255,122,47,.12); border: 1px solid rgba(255,122,47,.35); font-size: 14px; line-height: 1.35; }
.shop-remind .small-btn { flex-shrink: 0; }

.shop-text { flex: 1; cursor: text; min-height: 28px; display: flex; flex-direction: column; justify-content: center; }
.shop-edit { padding: 8px 12px; font-size: 16px; }

/* ── Disabled buttons ──
   Every tappable button above is bright text on a lighter, outlined pill.
   A button that really can't be tapped fades right back and loses its colour,
   so the two never look alike. */
button:disabled,
button[aria-disabled="true"] {
  opacity: .35;
  filter: grayscale(1);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
