/* Home Hub - earthy, calm, with a little flare */
:root {
  --bg: #F4EEE4;
  --surface: #FFFCF6;
  --ink: #2E2924;
  --muted: #7B6F61;
  --line: #E7DCCB;

  --clay: #B5603A;
  --clay-soft: #F3DFD2;
  --sage: #6F8466;
  --sage-soft: #E2E8DA;
  --ochre: #B5893A;
  --ochre-soft: #F2E5C8;
  --bark: #5B4A3A;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 8px 24px -12px rgba(60, 40, 20, .18);
  --display: 'Questrial', 'Century Gothic', 'Jost', system-ui, sans-serif;
  --body: 'Century Gothic', CenturyGothic, 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(181, 96, 58, .10), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(111, 132, 102, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select { font: inherit; font-size: 16px; color: inherit; }
svg { width: 1em; height: 1em; display: block; }
[hidden] { display: none !important; }

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 8px) 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px);
}

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 4px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--clay); color: var(--surface); font-size: 19px;
}
.brand-name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.person {
  border: 1px solid var(--line); background: var(--surface);
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { padding: 18px 2px 14px; }
.hero-date { margin: 0 0 4px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.hero-title {
  margin: 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 8vw, 38px); line-height: 1.08; letter-spacing: -.02em;
}
.hero-title em { font-style: italic; color: var(--clay); }
.hero-sub { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- cards ---------- */
.card {
  --accent: var(--clay); --accent-soft: var(--clay-soft);
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent);
}
.card-daily { --accent: var(--clay); --accent-soft: var(--clay-soft); }
.card-weekly { --accent: var(--sage); --accent-soft: var(--sage-soft); }
.card-monthly { --accent: var(--ochre); --accent-soft: var(--ochre-soft); }
.card-settings { --accent: var(--bark); --accent-soft: var(--line); }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head h2, .week-head h3 {
  margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.01em;
}
.week-head h3 { font-size: 19px; }
.card-range { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.card-count { text-align: right; line-height: 1; white-space: nowrap; }
.card-count strong { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--accent); }
.card-count span { color: var(--muted); font-size: 14px; margin-left: 4px; }
.card-foot { margin: 10px 2px 0; font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.bar { height: 6px; border-radius: 99px; background: var(--accent-soft); margin: 14px 0 6px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .45s cubic-bezier(.3, .7, .3, 1); }

.stamp {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-soft); color: var(--accent);
  padding: 6px 11px 6px 9px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.stamp svg { width: 15px; height: 15px; }
.card.is-done { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--accent-soft) 45%, var(--surface))); }
.card.celebrate .stamp { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }

/* ---------- tasks ---------- */
.task-list, .manage-list, .log, .months { list-style: none; margin: 0; padding: 0; }
.task {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: none; border: 0; text-align: left;
  padding: 12px 4px; min-height: 56px;
  border-top: 1px solid var(--line);
}
.task-list li:first-child .task { border-top: 0; }
.box {
  flex: none; width: 28px; height: 28px; border-radius: 9px;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  display: grid; place-items: center; color: transparent;
  transition: background .2s, border-color .2s, transform .15s;
}
.box svg { width: 18px; height: 18px; }
.task:active .box { transform: scale(.9); }
.task.done .box { background: var(--accent); border-color: var(--accent); color: var(--surface); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.task-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task-title { font-size: 17px; font-weight: 500; }
.task.done .task-title { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.tick-by { font-size: 13px; color: var(--accent); font-weight: 500; }
.day-chip {
  flex: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
}
.day-chip.today { background: var(--accent); color: var(--surface); }
.empty { color: var(--muted); font-size: 15px; margin: 10px 2px 4px; }

@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- history ---------- */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); margin: 0 2px 14px; }
.legend .dot { width: 22px; height: 22px; font-size: 10px; margin-left: 6px; }
.legend .dot:first-child { margin-left: 0; }
.week summary { list-style: none; cursor: pointer; }
.week summary::-webkit-details-marker { display: none; }
.week { --accent: var(--sage); --accent-soft: var(--sage-soft); }
.week-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0 10px; }
.dot {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--bg); border: 1.5px solid var(--line);
  max-width: 40px; justify-self: center; width: 100%;
}
.dot.full { background: var(--clay); border-color: var(--clay); color: var(--surface); }
.dot.part { background: var(--clay-soft); border-color: var(--clay); color: var(--clay); }
.dot.empty { border-style: dashed; border-color: color-mix(in srgb, var(--clay) 50%, var(--line)); }
.dot.future, .dot.none { opacity: .45; }
.week-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 14px; color: var(--muted); }
.week-stats strong { color: var(--ink); }
.pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.pill-warn { background: var(--clay-soft); color: var(--clay); }
.log { margin-top: 12px; border-top: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; padding: 9px 2px; font-size: 14px; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log-when { color: var(--muted); }
.log-who { color: var(--sage); font-weight: 600; }
.months li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); }
.months li:first-child { border-top: 0; margin-top: 8px; }
.month-name { flex: 1; font-weight: 500; }
.month-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-check { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--ochre); color: var(--surface); }
.mini-check.off { background: var(--bg); border: 1.5px dashed var(--line); }
.mini-check svg { width: 15px; height: 15px; }

/* ---------- manage ---------- */
.manage-list { margin-top: 10px; }
.manage-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.manage-row:first-child { border-top: 0; }
.manage-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.manage-meta { font-size: 13px; color: var(--accent); font-weight: 600; }
.manage-actions { display: flex; gap: 4px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; font-size: 18px; color: var(--muted);
}
.icon-btn:disabled { opacity: .35; cursor: default; }
.settings { margin-top: 6px; }
.setting {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: none; border: 0; border-top: 1px solid var(--line); padding: 14px 2px; text-align: left; font-size: 16px;
}
.setting:first-child { border-top: 0; }
.setting strong { color: var(--clay); font-weight: 600; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 16px; min-height: 46px;
}
.btn-primary { background: var(--clay); border-color: var(--clay); color: #FFF8F0; }
.btn-danger { color: #A23B2A; border-color: #EBC9BF; }
.btn-small { padding: 7px 12px; min-height: 36px; font-size: 14px; border-radius: 11px; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.btn-small svg { width: 15px; height: 15px; }

/* ---------- bottom tabs ---------- */
.tabs {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  width: min(calc(100% - 32px), 420px); height: var(--nav-h);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(46, 41, 36, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 24px; padding: 8px; z-index: 10;
  box-shadow: 0 14px 30px -12px rgba(46, 41, 36, .5);
}
.tabs button {
  border: 0; background: none; color: rgba(244, 238, 228, .62);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 17px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.tabs button svg { width: 22px; height: 22px; }
.tabs button.active { background: rgba(244, 238, 228, .12); color: #F4EEE4; }
.tabs button.active svg { color: #E59A72; }

/* ---------- gate (PIN + who) ---------- */
.gate { min-height: 88vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 0; }
.gate-mark {
  width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; font-size: 38px;
  background: var(--clay); color: var(--surface); box-shadow: 0 16px 30px -14px rgba(181, 96, 58, .7);

}
.gate-title { font-family: var(--display); font-weight: 500; font-size: 34px; margin: 22px 0 6px; letter-spacing: -.02em; }
.gate-sub { color: var(--muted); margin: 0 0 24px; }
.pin-dots { display: flex; gap: 16px; margin-bottom: 28px; }
.pin-dots span { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--clay); transition: background .15s, transform .15s; }
.pin-dots span.on { background: var(--clay); transform: scale(1.1); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; }
.key {
  width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--display); font-size: 28px; box-shadow: var(--shadow);
}
.key:active { background: var(--clay-soft); }
.key-ghost { background: none; box-shadow: none; border: 0; font-family: var(--body); font-size: 24px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; max-width: 360px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.who-form { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.who-form input, .field input, .field select {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); min-height: 48px;
}
.who-form input:focus, .field input:focus, .field select:focus { outline: 2px solid color-mix(in srgb, var(--clay) 50%, transparent); outline-offset: 1px; }

/* ---------- sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(46, 41, 36, .35); z-index: 20; animation: fade .2s; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 21;
  width: min(100%, 560px); background: var(--surface);
  border-radius: 26px 26px 0 0; padding: 22px 18px calc(env(safe-area-inset-bottom) + 18px);
  box-shadow: 0 -10px 40px rgba(46, 41, 36, .2); animation: rise .28s cubic-bezier(.2, .9, .3, 1);
}
.sheet h2 { font-family: var(--display); font-weight: 600; margin: 0 0 14px; font-size: 24px; }
.sheet-note { color: var(--muted); margin: -6px 0 14px; font-size: 15px; }
.field { display: block; border: 0; margin: 0 0 14px; padding: 0; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: 14px; padding: 4px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 10px 4px; border-radius: 11px; font-weight: 600; cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--clay); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 2px solid var(--clay); }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.spacer { flex: 1; }
.form-error { color: #A23B2A; margin: -4px 0 0; font-size: 14px; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + var(--nav-h) + 22px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: opacity .25s, transform .25s; z-index: 30; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translate(-50%, 100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.loading { text-align: center; color: var(--muted); padding-top: 40vh; margin: 0; }

/* weekly: day headings */
.day-head {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 10px 2px 4px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}
.day-head:first-child { margin-top: 0; padding-top: 2px; }
.day-head.today { color: var(--ink); }
.day-head .day-chip { padding: 3px 8px; font-size: 11px; }
.day-head + li .task, .day-head + .manage-row { border-top: 0; }
.task-rule { font-size: 13px; color: var(--accent); font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row select:only-child, .field-row select:first-child:has(+ [hidden]) { grid-column: 1 / -1; }
.settings-btn {
  width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; font-size: 21px; color: var(--muted);
}
.settings-btn.active { color: var(--clay); border-color: color-mix(in srgb, var(--clay) 40%, var(--line)); }

/* sign in + people */
.tabs.tabs-2 { grid-template-columns: repeat(2, 1fr); width: min(calc(100% - 32px), 300px); }
.gate-note { color: var(--muted); font-size: 14px; margin: 18px 0 0; max-width: 300px; }
.link-btn { margin-top: 22px; border: 0; background: none; color: var(--clay); font-weight: 600; font-size: 15px; padding: 10px; }
.setup-form { max-width: 340px; }
.setup-form .form-error { text-align: left; }
.setting-static { cursor: default; }
.setting em.you { font-style: normal; color: var(--muted); font-size: 14px; }
.setting strong.role-helper { color: var(--sage); }
.segmented-2 { grid-template-columns: repeat(2, 1fr); }
.field-hint { margin: 6px 2px 0; font-size: 13px; color: var(--muted); }

/* calendar */
.cal-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-card { --accent: var(--bark); padding: 14px 10px 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head span { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0 6px; }
.cal-cell {
  aspect-ratio: 1 / 1.05; border: 0; border-radius: 12px; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 2px;
}
.cal-cell.out { opacity: .35; }
.cal-num { font-size: 15px; font-weight: 500; line-height: 1; }
.cal-cell.today .cal-num { color: var(--clay); font-weight: 700; }
.cal-cell.all-done { background: var(--sage-soft); }
.cal-cell.sel { background: var(--clay); color: var(--surface); }
.cal-cell.sel .cal-num { color: var(--surface); }
.cal-dots { display: flex; gap: 2px; height: 6px; }
.dot-w, .dot-m { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.dot-m { background: var(--ochre); }
.cal-cell.sel .dot-w, .cal-cell.sel .dot-m { background: var(--surface); }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--muted); margin: 12px 4px 0; }
.cal-legend i { margin-left: 6px; }
.cal-legend i:first-child { margin-left: 0; }
.cal-legend-done { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--sage-soft); margin-left: 6px; }
.cal-anytime { font-size: 14px; color: var(--muted); margin: 10px 4px 0; }
.cal-anytime strong { color: var(--ink); font-weight: 600; }
.task-static { cursor: default; }

/* unfinished work */
.day-chip.overdue { background: #F6D9CC; color: #9A3B1E; }
.card-missed { --accent: #9A3B1E; --accent-soft: #F6D9CC; background: #FFF7F2; }
.cal-cell.missed .cal-num { text-decoration: underline wavy #C2693E; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.cal-cell.sel.missed .cal-num { text-decoration-color: var(--surface); }
.cal-legend-missed { text-decoration: underline wavy #C2693E; text-underline-offset: 3px; margin-left: 6px; }

/* shopping */
.shop-add { display: flex; gap: 8px; padding: 10px; }
.shop-add::before, .shop-progress::before, .shop-aisle-card::before { display: none; }
.shop-add input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); min-height: 48px; }
.shop-add .shop-qty-input { flex: 0 0 72px; }
.shop-add .btn { min-width: 48px; padding: 0; font-size: 22px; }
.shop-progress { --accent: var(--sage); --accent-soft: var(--sage-soft); padding-bottom: 12px; }
.shop-progress .bar { margin-bottom: 0; }
.shop-aisle-card { --accent: var(--clay); padding-top: 14px; }
.shop-aisle-card .card-head h2 { font-size: 18px; }
.shop-row { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); }
.shop-row:first-child { border-top: 0; }
.shop-row .task { border-top: 0; flex: 1; min-width: 0; }
.shop-qty { color: var(--muted); font-weight: 500; font-size: 15px; }
.shop-meta { font-size: 12px; color: var(--muted); }
.shop-row.done .shop-meta { color: var(--sage); }
.shop-aisle { max-width: 34px; width: 34px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: transparent; padding: 0; font-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h10M4 17h6' stroke='%237B6F61' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 18px; -webkit-appearance: none; appearance: none; }
.shop-aisle option { color: var(--ink); }
.shop-del { width: 36px; height: 36px; font-size: 16px; }
.tabs button span { white-space: nowrap; }

/* people lists, one-offs, notes */
.who-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px; scrollbar-width: none; }
.who-chips::-webkit-scrollbar { display: none; }
.who-chip { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.who-chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.owner-pill { display: inline-block; vertical-align: 2px; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; background: var(--bg); color: var(--bark); }
.task-notes { font-size: 13px; color: var(--muted); line-height: 1.35; }
.card-once { --accent: var(--bark); --accent-soft: #EADFD2; }
.dot-o { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bark); }
.cal-cell.sel .dot-o { background: var(--surface); }
.manage-who { font-size: 12px; color: var(--muted); font-weight: 500; }
.segmented-4 { grid-template-columns: repeat(4, 1fr); }
.segmented-4 span { font-size: 14px; padding: 10px 2px; }
.field textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 16px; resize: vertical; }
.field input[type="date"] { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); min-height: 48px; }
.sheet { max-height: 92vh; overflow-y: auto; }

/* shift bar */
.shift-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 18px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--sage) 60%, var(--line)); }
.shift-bar div { display: flex; flex-direction: column; gap: 2px; }
.shift-bar strong { font-size: 15px; }
.shift-bar span { font-size: 13px; color: var(--muted); }
.shift-bar.on { background: var(--sage-soft); border: 1px solid var(--sage); }
.shift-bar.on strong { color: var(--sage); }

/* notes board */
.card-board { --accent: var(--sage); --accent-soft: var(--sage-soft); }
.board-add { display: flex; gap: 8px; margin: 12px 0 4px; }
.board-add input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); min-height: 46px; }
.board-add .btn { min-width: 46px; padding: 0; font-size: 22px; }
.board-list { list-style: none; margin: 8px 0 0; padding: 0; }
.board-list li { padding: 10px 2px; border-top: 1px solid var(--line); }
.board-list li:first-child { border-top: 0; }
.board-body { margin: 0; font-size: 16px; white-space: pre-wrap; }
.board-meta { margin: 4px 0 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.board-meta .link-btn, .card-board > .link-btn { margin: 0; padding: 4px 6px; font-size: 13px; }

/* info + hours */
.back-link { margin: 0 0 6px -6px; padding: 6px; font-size: 15px; }
.add-info { margin: 0 0 14px; }
.card-info { --accent: var(--ochre); }
.info-body { margin: 10px 2px 2px; white-space: pre-wrap; line-height: 1.5; }
.card-hours { --accent: var(--sage); }
.hours-person { border-top: 1px solid var(--line); }
.hours-person:first-of-type { border-top: 0; }
.hours-person summary { display: flex; justify-content: space-between; padding: 12px 2px; cursor: pointer; font-size: 16px; list-style: none; }
.hours-person summary::-webkit-details-marker { display: none; }
.hours-person summary strong { color: var(--sage); }
.hours-shifts { list-style: none; margin: 0 0 8px; padding: 0; }
.hours-shifts li { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 8px; align-items: center; font-size: 14px; padding: 6px 2px; color: var(--muted); }
.hours-shifts .link-btn { margin: 0; padding: 2px 4px; font-size: 13px; }
.loading-inline { color: var(--muted); text-align: center; }
.shift-log-link { display: block; margin: -8px 0 12px auto; padding: 4px 6px; font-size: 13px; }
.field input[type="time"] { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); min-height: 48px; }
.field-row .field { margin-bottom: 0; }

/* calendar: numbered badges instead of dots */
.cal-dots { height: auto; min-height: 15px; gap: 2px; flex-wrap: wrap; justify-content: center; }
.b-w, .b-m, .b-o {
  font-style: normal; display: inline-grid; place-items: center;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  font-size: 10px; font-weight: 700; line-height: 1; color: #fff;
}
.b-w { background: var(--sage); }
.b-m { background: var(--ochre); }
.b-o { background: var(--bark); }
.cal-cell.sel .b-w, .cal-cell.sel .b-m, .cal-cell.sel .b-o { background: var(--surface); }
.cal-cell.sel .b-w { color: var(--sage); }
.cal-cell.sel .b-m { color: var(--ochre); }
.cal-cell.sel .b-o { color: var(--bark); }
.cal-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13px; color: var(--ink); margin: 14px 4px 0; }
.cal-legend > span { display: flex; align-items: center; gap: 6px; }
.cal-legend i { margin: 0; }
.cal-legend-done { margin-left: 0; width: 15px; height: 15px; }
.cal-legend-missed { margin-left: 0; font-weight: 600; }
.cal-legend-note { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.info-body a { color: var(--clay); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--clay) 40%, transparent); }
.info-body a.tel::before { content: '☎ '; font-weight: 400; }

/* header + side menu */
.top { justify-content: flex-start; gap: 12px; }
.menu-btn { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 22px; color: var(--ink); }
#drawer-root .drawer-backdrop { position: fixed; inset: 0; background: rgba(46, 41, 36, .35); z-index: 40; opacity: 0; transition: opacity .2s; }
#drawer-root .drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 41; width: min(84vw, 320px);
  background: var(--surface); box-shadow: 10px 0 40px rgba(46, 41, 36, .18);
  padding: calc(env(safe-area-inset-top) + 18px) 14px calc(env(safe-area-inset-bottom) + 18px);
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(-105%); transition: transform .22s cubic-bezier(.2, .9, .3, 1);
}
#drawer-root.open .drawer-backdrop { opacity: 1; }
#drawer-root.open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; padding: 0 6px 10px; }
.drawer-group { margin: 16px 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer-item { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: none; padding: 12px 10px; border-radius: 14px; font-size: 17px; text-align: left; }
.drawer-item svg { width: 22px; height: 22px; color: var(--muted); }
.drawer-item.on { background: var(--clay-soft); color: var(--clay); font-weight: 600; }
.drawer-item.on svg { color: var(--clay); }
.drawer-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.drawer-foot .link-btn { margin: 0; padding: 6px; }

/* contacts */
.card-contacts { --accent: var(--sage); }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; }
.contact { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-top: 1px solid var(--line); }
.contact:first-child { border-top: 0; }
.contact-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contact-name { font-size: 17px; font-weight: 500; }
.contact-sub { font-size: 14px; color: var(--muted); }
.contact-notes { font-size: 13px; color: var(--muted); }
.contact-actions { display: flex; gap: 6px; flex: none; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 19px; color: var(--ink); text-decoration: none; }
.round-btn.call { background: var(--sage); border-color: var(--sage); color: #fff; }

/* always-on sidebar for computers and iPads; phones keep the drawer + bottom tabs */
.sidebar { display: none; }
@media (min-width: 860px) {
  #app.with-menu { max-width: 640px; margin-left: max(300px, calc(50vw - 320px + 130px)); padding-bottom: 40px; }
  #app.with-menu .sidebar {
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: 260px; z-index: 5;
    background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px 18px; overflow-y: auto;
  }
  #app.with-menu .menu-btn, #app.with-menu .tabs { display: none; }
  #app.with-menu .top .brand { visibility: hidden; }
  #app.with-menu .top { padding: 10px 0 0; }
  #app.with-menu .sheet { left: calc(50% + 130px); }
  #app.with-menu #toast { left: calc(50% + 130px); bottom: 24px; }
}

/* tonight's meals on Today */
.tonight { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 14px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--ochre-soft); background: #FBF4E6; }
.tonight-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ochre); color: #fff; font-size: 20px; flex: none; }
.tonight-text { display: flex; flex-direction: column; gap: 2px; font-size: 16px; font-weight: 500; }
.tonight-text em, .meal-row em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ochre); margin-right: 6px; }

/* meals page */
.card-ideas { --accent: var(--ochre); --accent-soft: var(--ochre-soft); }
.idea-list { list-style: none; margin: 8px 0 0; padding: 0; }
.idea-list li { display: flex; align-items: center; gap: 8px; padding: 10px 2px; border-top: 1px solid var(--line); }
.idea-list li:first-child { border-top: 0; }
.idea-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; display: flex; flex-direction: column; }
.idea-title small { font-size: 12px; color: var(--muted); font-weight: 400; }
.idea-list .icon-btn { width: 36px; height: 36px; font-size: 16px; }
.card-meals { --accent: var(--ochre); padding: 8px 14px; }
.meal-week { list-style: none; margin: 0; padding: 0; }
.meal-day { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.meal-day:first-child { border-top: 0; }
.meal-date { margin: 4px 0 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: flex; flex-direction: column; gap: 2px; }
.meal-date strong { font-size: 22px; color: var(--ink); letter-spacing: 0; }
.meal-day.today .meal-date strong { color: var(--clay); }
.meal-date .day-chip { align-self: flex-start; padding: 2px 6px; font-size: 10px; }
.meal-slots { display: flex; flex-direction: column; gap: 6px; }
.meal-row { display: flex; align-items: baseline; gap: 4px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 12px; }
.meal-row:disabled { cursor: default; opacity: 1; color: inherit; }
.meal-title { display: flex; flex-direction: column; font-size: 16px; font-weight: 500; }
.meal-title small { font-size: 12px; color: var(--muted); font-weight: 400; }
.meal-row.empty-slot { border-style: dashed; color: var(--muted); background: none; }
.meal-row.empty-slot span { font-size: 14px; }
.meal-none { font-size: 14px; color: var(--muted); padding: 8px 0; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 2px 2px 8px; }
.check-row input { width: 20px; height: 20px; accent-color: var(--clay); }

/* pay */
.card-rates { --accent: var(--sage); }
.pay-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 4px 2px 12px; font-size: 15px; font-weight: 600; }
.pay-line small { font-weight: 400; color: var(--muted); }
.pay-line .btn { margin-left: auto; }
.pay-line.muted { color: var(--muted); font-weight: 400; font-size: 13px; }
.paid-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--sage); background: var(--sage-soft); padding: 4px 8px; border-radius: 8px; }
.paid-badge svg { width: 13px; height: 13px; }

button.brand, button.drawer-head { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit; }
button.drawer-head { padding: 0 6px 10px; width: 100%; }

/* Headings in Questrial (one weight only, so keep them regular) */
.brand-name, .hero-title, .card-head h2, .week-head h3, .card-count strong, .gate-title, .sheet h2, .drawer-head, .meal-date strong { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
.key { font-family: var(--display); }

/* notifications */
.notify-msg { font-size: 15px; color: var(--muted); margin: 10px 2px 12px; line-height: 1.45; }
.notify-on { width: 100%; }
.notify-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.notify-row:first-of-type { border-top: 0; margin-top: 6px; }
.notify-row .check-row { margin: 0; flex: 1; }
.notify-row input[type="time"] { padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.notify-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }

.hero-title em { font-style: normal; }

/* top-right help, settings, avatar */
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-btn { width: 40px; height: 40px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 20px; color: var(--muted); }
.top-btn.active { color: var(--clay); border-color: color-mix(in srgb, var(--clay) 40%, var(--line)); }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); background: var(--av, var(--clay)); color: #fff; font-family: var(--display); font-size: 16px; display: grid; place-items: center; padding: 0; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; flex: none; }
.account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.account-head h2 { margin: 0; }
.account-head .sheet-note { margin: 2px 0 0; }
.card-help { --accent: var(--sage); }
.help-body p { margin: 8px 2px 0; line-height: 1.5; font-size: 15px; }
@media (max-width: 380px) { .brand-name { display: none; } }

/* small capital labels in Questrial too */
.hero-date, .day-head, .drawer-group, .field > span, .meal-date, .cal-head span, .card-foot, .tonight-text em, .meal-row em { font-family: var(--display); }

/* ---------- dark theme ---------- */
:root[data-theme="dark"] {
  --bg: #1C1916; --surface: #28231F; --ink: #F1E9DF; --muted: #A99D8E; --line: #3A332D;
  --clay: #D9825A; --clay-soft: #473024; --sage: #9DB38F; --sage-soft: #2E3829;
  --ochre: #D4AA5B; --ochre-soft: #40361F; --bark: #C9B39A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1916; --surface: #28231F; --ink: #F1E9DF; --muted: #A99D8E; --line: #3A332D;
    --clay: #D9825A; --clay-soft: #473024; --sage: #9DB38F; --sage-soft: #2E3829;
    --ochre: #D4AA5B; --ochre-soft: #40361F; --bark: #C9B39A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] body { background: radial-gradient(120% 60% at 100% 0%, rgba(217, 130, 90, .08), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(157, 179, 143, .07), transparent 60%), var(--bg); }
:root[data-theme="dark"] .btn-danger, :root[data-theme="dark"] .form-error { color: #E8907C; }
:root[data-theme="dark"] .btn-danger { border-color: #5A3328; }
:root[data-theme="dark"] .day-chip.overdue { background: #4A2A1E; color: #F0A585; }
:root[data-theme="dark"] .card-missed { --accent-soft: #4A2A1E; --accent: #F0A585; background: #2E2420; }
:root[data-theme="dark"] .tonight { background: var(--surface); }
:root[data-theme="dark"] .card-once { --accent-soft: #3A3129; }
:root[data-theme="dark"] .tabs { background: rgba(14, 12, 10, .94); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .brand-mark, :root[data-theme="dark"] .gate-mark, :root[data-theme="dark"] .day-chip.today, :root[data-theme="dark"] .dot.full, :root[data-theme="dark"] .cal-cell.sel, :root[data-theme="dark"] .cal-cell.sel .cal-num, :root[data-theme="dark"] .task.done .box, :root[data-theme="dark"] .round-btn.call, :root[data-theme="dark"] .b-w, :root[data-theme="dark"] .b-m, :root[data-theme="dark"] .b-o, :root[data-theme="dark"] .avatar { color: #1C1916; }
:root[data-theme="dark"] .btn-primary { color: #1C1916; }
:root[data-theme="dark"] .who-chip.on { background: var(--ink); color: var(--bg); }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body { background: radial-gradient(120% 60% at 100% 0%, rgba(217, 130, 90, .08), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(157, 179, 143, .07), transparent 60%), var(--bg); }
  :root:not([data-theme="light"]) .btn-danger, :root:not([data-theme="light"]) .form-error { color: #E8907C; }
  :root:not([data-theme="light"]) .btn-danger { border-color: #5A3328; }
  :root:not([data-theme="light"]) .day-chip.overdue { background: #4A2A1E; color: #F0A585; }
  :root:not([data-theme="light"]) .card-missed { --accent-soft: #4A2A1E; --accent: #F0A585; background: #2E2420; }
  :root:not([data-theme="light"]) .tonight { background: var(--surface); }
  :root:not([data-theme="light"]) .card-once { --accent-soft: #3A3129; }
  :root:not([data-theme="light"]) .tabs { background: rgba(14, 12, 10, .94); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
  :root:not([data-theme="light"]) .brand-mark, :root:not([data-theme="light"]) .gate-mark, :root:not([data-theme="light"]) .day-chip.today, :root:not([data-theme="light"]) .dot.full, :root:not([data-theme="light"]) .cal-cell.sel, :root:not([data-theme="light"]) .cal-cell.sel .cal-num, :root:not([data-theme="light"]) .task.done .box, :root:not([data-theme="light"]) .round-btn.call, :root:not([data-theme="light"]) .b-w, :root:not([data-theme="light"]) .b-m, :root:not([data-theme="light"]) .b-o, :root:not([data-theme="light"]) .avatar { color: #1C1916; }
  :root:not([data-theme="light"]) .btn-primary { color: #1C1916; }
  :root:not([data-theme="light"]) .who-chip.on { background: var(--ink); color: var(--bg); }
  :root:not([data-theme="light"]) input, :root:not([data-theme="light"]) select, :root:not([data-theme="light"]) textarea { color-scheme: dark; }
}

/* job rows: "more" button, steps, turns, skipped */
.task-li { display: flex; align-items: center; border-top: 1px solid var(--line); }
.task-list li.task-li:first-child, .task-list .day-head + li.task-li { border-top: 0; }
.task-li .task { border-top: 0; flex: 1; min-width: 0; }
.task-more { flex: none; width: 34px; height: 34px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: var(--muted); }
.task-more:active { background: var(--bg); }
.task-steps { font-size: 12px; font-weight: 600; color: var(--accent); }
.owner-pill.turn { background: var(--ochre-soft); color: var(--ochre); }
.task.skipped .box { background: var(--muted); border-color: var(--muted); }
.task.skipped .task-title { text-decoration: none; font-style: italic; }
.card-every { --accent: var(--sage); --accent-soft: var(--sage-soft); }
.segmented-5 { grid-template-columns: repeat(5, 1fr); }
.segmented-5 span { font-size: 12.5px; padding: 10px 1px; }
.field-row-3 { grid-template-columns: 90px 1fr; }
.field-row-3 input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); min-height: 48px; }
.field-sub { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.field-sub input { flex: 1; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.turns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.turns .check-row { margin: 4px 0; }
.step-list { list-style: none; margin: 4px 0 0; padding: 0; }
.step-list li .task { border-top: 1px solid var(--line); }
.step-list li:first-child .task { border-top: 0; }

/* ---------- compact sizing (about 10-15% smaller; typing boxes stay 16px so iPhones do not zoom) ---------- */
:root { --nav-h: 60px; --radius: 18px; }
#app { padding-left: 14px; padding-right: 14px; }
.hero { padding: 12px 2px 10px; }
.hero-date { font-size: 12px; }
.hero-title { font-size: clamp(25px, 6.6vw, 31px); }
.hero-sub { font-size: 14.5px; margin-top: 6px; }
.card { padding: 14px 14px 11px; margin-bottom: 11px; }
.card-head h2 { font-size: 19px; }
.week-head h3 { font-size: 17px; }
.card-range { font-size: 13px; }
.card-count strong { font-size: 24px; }
.card-count span { font-size: 13px; }
.bar { height: 5px; margin: 11px 0 4px; }
.task { padding: 9px 2px; min-height: 48px; gap: 12px; }
.box { width: 24px; height: 24px; border-radius: 8px; }
.box svg { width: 15px; height: 15px; }
.task-title { font-size: 15.5px; }
.tick-by, .task-notes, .task-rule, .shop-meta, .manage-meta, .manage-who { font-size: 12px; }
.day-chip { font-size: 11px; padding: 4px 8px; }
.day-head { font-size: 12px; padding: 8px 2px 2px; }
.card-foot { font-size: 11.5px; margin-top: 8px; }
.btn { padding: 10px 16px; min-height: 42px; font-size: 15px; border-radius: 13px; }
.btn-small { padding: 6px 11px; min-height: 32px; font-size: 13px; }
.icon-btn { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; }
.top { padding: 6px 0 2px; }
.menu-btn, .top-btn, .avatar { width: 36px; height: 36px; font-size: 18px; border-radius: 12px; }
.avatar { border-radius: 12px; font-size: 14px; }
.brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 17px; }
.brand-name { font-size: 17px; }
.tabs { padding: 6px; border-radius: 22px; }
.tabs button { font-size: 11px; border-radius: 15px; }
.tabs button svg { width: 20px; height: 20px; }
.who-chip { padding: 6px 12px; font-size: 13px; }
.setting { padding: 12px 2px; font-size: 15px; }
.task-more { width: 30px; height: 30px; font-size: 16px; }
.shop-add input, .board-add input { min-height: 44px; }
.shop-add .btn, .board-add .btn { min-width: 44px; }
.board-body, .contact-name, .idea-title, .meal-title { font-size: 15px; }
.round-btn { width: 38px; height: 38px; font-size: 17px; }
.cal-num { font-size: 14px; }
.dot { font-size: 11px; }
.sheet { padding: 18px 16px calc(env(safe-area-inset-bottom) + 16px); }
.sheet h2 { font-size: 21px; margin-bottom: 12px; }
.field { margin-bottom: 12px; }
.gate-title { font-size: 30px; }
.keypad { grid-template-columns: repeat(3, 68px); gap: 12px; }
.key { width: 68px; height: 68px; font-size: 25px; }
.tonight { padding: 10px 12px; margin-bottom: 11px; }
.tonight-icon { width: 34px; height: 34px; font-size: 18px; }
.tonight-text { font-size: 15px; }
.shift-bar { padding: 10px 12px; margin-bottom: 11px; }

/* top icons: no boxes; avatar keeps its rounded square in a soft earthy colour */
.top-btn, .menu-btn { border: 0; background: none; box-shadow: none; color: var(--ink); opacity: .75; }
.top-btn:hover, .menu-btn:hover { opacity: 1; }
.top-btn.active { color: var(--clay); opacity: 1; }
.top-actions { gap: 4px; }
.avatar { border: 0; box-shadow: none; margin-left: 4px; }
