:root{color-scheme:light;--paper:#f7f5ee;--ink:#17372c;--soft:#56645b;--green:#124332;--sage:#e2ebdb;--line:#e3e5da;--card:#fffdf8;--amber:#805018}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100dvh;background:var(--paper);color:var(--ink);font:16px/1.5 system-ui,-apple-system,sans-serif}
.shell-header{display:flex;align-items:center;justify-content:center;padding:calc(14px + env(safe-area-inset-top,0px)) 20px 14px;border-bottom:1px solid var(--line);background:#fbf9f3}
.shell-header strong{display:flex;align-items:center;gap:9px;font:700 27px/1 Georgia,serif;letter-spacing:-.05em}
.brand-wordmark{white-space:nowrap}
.brand-trademark{font:.43em/1 system-ui,sans-serif;letter-spacing:0;margin-inline-start:.15em;vertical-align:super}
.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--green);color:white;font-size:21px;letter-spacing:0}
main{max-width:1040px;margin:auto;padding:26px clamp(16px,4vw,36px) calc(96px + env(safe-area-inset-bottom,0px))}
h1,h2,p{margin:0}
h1{font:700 clamp(39px,7vw,65px)/1.03 Georgia,serif;letter-spacing:-.065em}
h2{font-size:20px;line-height:1.25;letter-spacing:-.035em;margin:0 0 10px}
p{margin:0 0 10px;overflow-wrap:anywhere}
button,input,textarea,select{font:inherit}
button{cursor:pointer;min-height:44px;padding:9px 13px;border:1px solid transparent;border-radius:11px;background:var(--sage);color:var(--ink);font-size:14px;font-weight:690}
button.primary,button[aria-pressed=true]{background:var(--green);color:white}
button:disabled{opacity:.55;cursor:default}
:focus-visible{outline:3px solid #65917c;outline-offset:3px}
.row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:19px;padding:clamp(15px,3vw,22px);margin:13px 0;box-shadow:0 4px 14px #233e2d08}
.muted{color:var(--soft)}.pending,#status{color:var(--amber)}
#status:empty{display:none}
#status{padding:10px 14px;border-radius:11px;background:#f8ecd8}
.page-head{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:13px;margin:0 0 18px}
.eyebrow{margin:0 0 5px;font-weight:710;font-size:14px;color:var(--soft)}
.page-tools button{border-color:var(--line);background:var(--card)}
.today-hero{padding:clamp(20px,5vw,34px);border-radius:23px;background:linear-gradient(120deg,#103d2e,#285d47);color:#fff}
.today-hero p{color:#e0eddf;font-size:14px; margin-bottom:5px}
.today-hero h2{font:700 clamp(27px,5vw,43px)/1.1 Georgia,serif;letter-spacing:-.045em;margin:0 0 18px}
.hero-metrics{display:flex;flex-wrap:wrap;gap:8px}
.hero-metrics span{border:1px solid #ffffff3d;background:#ffffff10;border-radius:10px;padding:6px 11px;font-size:14px}
.attention{border-inline-start:4px solid #bd8744}
.event{padding:12px 0;border-top:1px solid var(--line)}.event p{margin-bottom:6px}
form{display:grid;gap:13px;max-width:540px;margin-top:10px}
form p{margin:0;font-size:14px}
label{display:grid;gap:6px;font-size:14px;font-weight:650}
input:not([type=checkbox]),textarea,select{width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #adb9ae;border-radius:10px;background:#fff;color:var(--ink);font-size:16px}
label.check{display:flex;align-items:center;gap:8px}input[type=checkbox]{accent-color:var(--green);width:18px;height:18px}
.onboarding{max-width:460px;margin:clamp(12px,5vh,58px) auto 0}
.onboarding form button.primary{margin-top:3px}
.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center;margin-top:13px}
.grid button{padding:5px 0;background:#edf1e8}.grid button[aria-pressed=true]{background:var(--green)}
.grid span{font-size:14px}.grid .out{color:#657366}
.wide{width:100%}
.segments{display:grid;grid-template-columns:1fr 1fr;background:var(--sage);border-radius:14px;margin:16px 0;padding:4px}
.meal-list{padding:7px}.meal-row{display:grid;grid-template-columns:52px 1fr;text-align:left;width:100%;align-items:center;background:transparent}
.meal-row + .meal-row,.shopping-row + .shopping-row,.member-row + .member-row{border-top:1px solid var(--line)}
.meal-row[aria-pressed=true]{background:var(--sage);color:var(--ink)}
.shopping-group{padding:0;overflow:hidden}.shopping-group h2{background:var(--sage);padding:10px 15px;margin:0}
.shopping-row{display:flex;align-items:center;gap:6px;padding:4px 10px}
.item-toggle{display:flex;gap:10px;align-items:center;flex:1;background:transparent;text-align:left;overflow-wrap:anywhere}
.item-toggle[aria-pressed=true]{background:transparent;color:var(--soft);text-decoration:line-through}
.member-row{padding:10px 0}.member-row p{margin:4px 0}.member-row a{color:var(--green);font-weight:650}
.map-panel{margin-top:14px;padding:22px;border-radius:19px;background:var(--sage)}
nav{position:fixed;z-index:2;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:600px;margin:auto;padding:6px 6px calc(7px + env(safe-area-inset-bottom,0px));gap:3px;background:#fbf9f3;border:1px solid var(--line);border-radius:17px 17px 0 0;box-shadow:0 -5px 24px #17372c12}
nav button{display:grid;justify-items:center;align-content:center;gap:3px;color:var(--ink);background:transparent;font-size:12px;min-height:52px;padding:4px 0}
nav svg{width:22px;height:22px}
nav button[aria-current=page]{background:#dbe8d4;color:#103d2e}
@media(min-width:720px){.today-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:16px;align-items:start}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .15s ease,box-shadow .15s ease}button:hover:not(:disabled){box-shadow:inset 0 0 0 1px #65917c55}}
#family-map{height:clamp(280px,52vw,440px);border:1px solid var(--line);border-radius:20px;isolation:isolate;background:#e2ebdb;overflow:hidden;color:var(--soft)}
#family-map:not(.leaflet-container){display:grid;place-items:center;padding:20px}
.invite-field{margin:12px 0}
nav{grid-template-columns:repeat(6,minmax(0,1fr))}
nav button > [aria-hidden=true]{font-size:21px;line-height:22px}
@media(max-width:365px){nav button{font-size:11px}}
.event-notes{white-space:pre-wrap}
.event-actions{margin-top:10px}
#meal-recipe{scroll-margin-top:20px}
.shopping-add-row{display:flex;gap:8px;align-items:stretch}
.shopping-add-row input{flex:1}
.quick-add form{margin:0}
.shopping-entry+.shopping-entry{border-top:1px solid var(--line)}
.shopping-edit{padding:0 14px 14px}
.staple{display:flex;align-items:center;gap:2px}
.store-label{display:block;color:var(--soft);font-size:12px;font-weight:500}

#family-map .leaflet-tile-pane{filter:saturate(.45) sepia(.22) hue-rotate(12deg) contrast(.86) brightness(1.08)}
.family-pin{background:#204f3c;color:white;border:2px solid white;border-radius:50%;font:bold 16px/28px system-ui;text-align:center;box-shadow:0 2px 5px #29493866}
.type-Sports{--accent:#b1d49b}.type-Health{--accent:#a6cbed}.type-Family{--accent:#d1bde4}.type-School{--accent:#efd29a}.type-Other{--accent:#bfcac5}
.event{border-left:4px solid var(--accent);padding-left:.8rem}.cal-chip{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--accent);color:#192d24;border-radius:4px;font:600 10px/1.6 system-ui}
.grid button[data-date]{min-height:48px;align-self:stretch;border-radius:8px}
.shopping-entry + .shopping-entry { border-top:1px solid var(--line); }
.shopping-row { gap:8px; padding:6px 12px; }
.shopping-row .item-toggle { flex:1; min-width:0; text-align:left; }
.shopping-quantity { display:block; color:var(--muted,#526653); font-size:.8em; font-weight:500; }
.shopping-row [data-edit-shopping] { order:2; min-width:44px; padding-inline:8px; background:transparent; }
.shopping-row [data-price-item] { padding-inline:10px; white-space:nowrap; }
.shopping-edit details { margin-block:8px; }

.calendar-toolbar { display:flex; align-items:center; gap:6px; margin-block:4px 12px; }
.calendar-toolbar h1,.calendar-toolbar h2 { flex:1; margin:0; font-family:inherit; font-size:clamp(16px,4.7vw,24px); }
.calendar-toolbar button { flex:none; padding-inline:9px; min-width:40px; }
.calendar-modes,.calendar-weekdays,.calendar-cells { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.calendar-modes { grid-template-columns:repeat(3,1fr); margin-bottom:12px; border-radius:12px; background:#e8ecdf; overflow:hidden; }
.calendar-modes button { background:transparent; border-radius:0; }
.calendar-modes button[aria-pressed=true] { background:#184533; color:white; }
.calendar-weekdays { text-align:center; font-size:.75rem; padding-block:8px; }
.calendar-cells { border-top:1px solid var(--line); border-left:1px solid var(--line); }
.calendar-cells .calendar-day { border-radius:0; border:0; border-right:1px solid var(--line); border-bottom:1px solid var(--line); min-height:60px; padding:3px; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:2px; background:transparent; text-align:left; color:inherit; }
.calendar-day .calendar-number { align-self:flex-start; min-width:23px; text-align:center; line-height:23px; border-radius:50%; }
.calendar-day[aria-current=date] .calendar-number { outline:1px solid #537d62; outline-offset:-1px; }
.calendar-day[aria-pressed=true] .calendar-number { background:#184533; color:white; }
.calendar-day.calendar-out .calendar-number { opacity:.55; }
.calendar-day .cal-chip { padding-inline:3px; }
.calendar-agenda { margin-top:14px; }
.calendar-agenda .event { background:#f9faf3; border-radius:9px; margin-block:8px; padding:8px 10px; }

.brand-mark .home-check {
  position: relative;
  width: 14px;
  height: 12px;
  margin-top: 5px;
  border: 2px solid #fffbed;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}
.home-check::before, .home-check::after {
  content: "";
  position: absolute;
  transform: rotate(45deg);
}
.home-check::before {
  width: 13px;
  height: 13px;
  top: -6px;
  left: -1.5px;
  border-top: 2px solid #fffbed;
  border-left: 2px solid #fffbed;
  border-radius: 2px 0 0;
}
.home-check::after {
  width: 5px;
  height: 8px;
  left: 3px;
  top: -1px;
  border-right: 2px solid #b8d095;
  border-bottom: 2px solid #b8d095;
}

.workspace.family-board { width:min(100%,1440px); max-width:1440px; padding-bottom:24px; }
.board-head,.board-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.board-head h1 { margin:0 0 12px; }
.board-now { display:grid; text-align:right; font-variant-numeric:tabular-nums; }
.board-now strong { font-size:clamp(1.6rem,4vw,3.6rem); line-height:1.05; }
.board-toolbar { margin-bottom:14px; }
.board-toolbar .calendar-modes { margin:0; flex:1; }
.board-toolbar button { padding-inline:8px; }
.board-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:16px; align-items:start; }
.board-grid .panel { margin-top:0; }
.board-grid p { margin:.55em 0; font-size:clamp(1rem,2vw,1.35rem); }
.board-grid ul { list-style:none; padding:0; margin:0 0 14px; }
.board-event { display:grid; grid-template-columns:6.3em 1fr; gap:.6em; padding:.65em .6em; border-bottom:1px solid var(--line); border-left:4px solid var(--accent,#b6c7ad); font-size:clamp(1rem,2.1vw,1.45rem); }
.board-event span { font-variant-numeric:tabular-nums; }
.board-attention { background:#f5e6be; padding:.7em; border-radius:10px; }
.board-weather { background:#e5ede8; }
.board-weather details { margin-top:8px; font-size:.9rem; }
.board-sync { text-align:right; font-size:.8rem; }
@media (max-width:670px) {
  .board-grid { grid-template-columns:1fr; }
  .board-toolbar { flex-wrap:wrap; }
  .board-toolbar .calendar-modes { flex-basis:100%; }
}

body:has(.family-board) .shell-header { display:none; }
.board-status { justify-content:flex-start; flex-wrap:wrap; border-bottom:1px solid var(--line); padding-block:8px 12px; margin-bottom:12px; }
.board-status span + span,.board-status strong + span { padding-left:12px; border-left:1px solid var(--line); }
.board-status #board-clock { font-size:clamp(1.05rem,2.3vw,2rem); font-variant-numeric:tabular-nums; }
.board-modes { grid-template-columns:repeat(4,minmax(0,1fr)); }
.wall-week { display:grid; grid-template-columns:repeat(7,minmax(8.5rem,1fr)); overflow:auto; gap:6px; }
.wall-week-day { min-width:0; }
.wall-week-day h3,.routine-group h3 { background:#e4ebd9; padding:8px; border-radius:8px; margin:0 0 8px; }
.wall-week-day h3[aria-current=date] { background:#164434; color:#fff; }
.wall-week-day ul { list-style:none; padding:0; margin:0; }
.wall-week-day .board-event { display:block; margin-bottom:6px; border-bottom:0; border-radius:8px; background:color-mix(in srgb,var(--accent,#b6c7ad) 45%, white); font-size:clamp(.9rem,1.3vw,1.23rem); overflow-wrap:anywhere; }
.wall-week-day .board-event span,.wall-week-day .board-event strong { display:block; }
.wall-routines { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:12px; }
.routine-group { margin-block:12px; }
.routine-check { width:100%; min-height:44px; text-align:left; margin-bottom:5px; }
.routine-check > span { padding-right:.35em; }
.routine-check[aria-pressed=true] { opacity:1; color:#375a4a; background:#eef2e9; }

#nav {
  inset: auto 8px calc(8px + env(safe-area-inset-bottom, 0px));
  padding: 5px;
  border-radius: 20px;
  background: rgba(251,249,243,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px #17372c26;
}
.wall-week {
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.wall-week-day { min-height: 10rem; padding: 6px; background: #fbfaf5; }
.wall-week-day + .wall-week-day { border-inline-start: 1px solid var(--line); }
.wall-week-day:nth-child(even) { background: #f5f5ed; }
.board-agenda-day + .board-agenda-day { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 720px) {
  .wall-week { grid-template-columns: repeat(7,minmax(7rem,1fr)); }
  #nav button { font-size: clamp(.62rem,2.7vw,.8rem); padding-inline: 0; }
}

.wall-month-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; margin-bottom:1rem; }
.wall-month-header h2 { margin:0; }
.wall-month-weekdays,.wall-month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.wall-month-weekdays { text-align:center; font-size:.875rem; font-weight:700; padding-bottom:.4rem; }
.wall-month-grid { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.wall-month-grid > * { min-width:0; min-height:clamp(3.1rem,8vw,7rem); border:0; border-radius:0; border-inline-end:1px solid var(--line); border-bottom:1px solid var(--line); }
.wall-month-grid > :nth-child(7n) { border-inline-end:0; }
.wall-month-grid > :nth-last-child(-n+7) { border-bottom:0; }
.wall-month-grid .wall-month-padding { background:#f1f2ea; }
.wall-month-grid .wall-month-day { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:.2rem; padding:clamp(2px,.45vw,8px); text-align:left; background:#fbfaf5; color:inherit; }
.wall-month-grid .wall-month-day[aria-pressed=true] { background:#e7eddf; box-shadow:inset 0 0 0 2px #769182; }
.wall-month-grid .wall-month-day:focus-visible { outline:2px solid #164434; outline-offset:-3px; }
.wall-month-number { display:grid; place-items:center; width:1.55em; height:1.55em; line-height:1; font-size:clamp(.8rem,1.45vw,1.2rem); }
.wall-month-day[aria-current=date] .wall-month-number { background:#164434; color:#fff; border-radius:50%; }
.wall-month-events { display:grid; gap:3px; min-width:0; }
.wall-month-event { display:block; padding:2px 5px; border-radius:5px; border-inline-start:3px solid var(--accent,#b6c7ad); background:color-mix(in srgb,var(--accent,#b6c7ad) 45%, white); font-size:clamp(.7rem,1.1vw,.95rem); min-width:0; }
.wall-month-event span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wall-month-overflow { font-size:.7rem; padding-inline:3px; }
.wall-month-agenda { margin-top:1rem; }
.wall-month-agenda ul { list-style:none; padding:0; margin:0; }
.wall-month-agenda strong { overflow-wrap:anywhere; }
@media (max-width:600px) {
  .wall-month-panel { padding-inline:10px; }
  .wall-month-weekdays { font-size:.7rem; }
  .wall-month-events { display:flex; align-items:center; flex-wrap:wrap; }
  .wall-month-event { width:7px; height:7px; border:0; border-radius:50%; padding:0; background:var(--accent,#b6c7ad); }
  .wall-month-event span { display:none; }
  .wall-month-agenda .board-event { grid-template-columns:1fr; gap:.15rem; }
}

#nav .wall-action,#nav .wall-chores,
body:has(.family-board) #nav { display:none; }
#wall-sleep { position:fixed; inset:0; margin:0; width:100%; height:100%; max-width:none; max-height:none; border:0; padding:0; background:#080d0b; color:#9daaa2; }
#wall-sleep[open] { display:grid; }
#wall-sleep button { width:100%; height:100%; border-radius:0; background:transparent; color:inherit; }
@media (min-width:760px) {
  .wall-mode { --wall-rail-width:clamp(90px,9vw,126px); padding-inline-start:calc(var(--wall-rail-width) + 24px + env(safe-area-inset-left,0px)); }
  .wall-mode main { max-width:none; padding:clamp(16px,1.55vw,30px); }
  .wall-mode .workspace.family-board { width:100%; max-width:none; }
  .wall-mode .board-status { font-size:clamp(1rem,1.25vw,1.4rem); }
  .wall-mode .board-status #board-clock { font-size:clamp(1.5rem,2.6vw,2.65rem); }
  .wall-mode .board-status .brand-mark { width:clamp(32px,2.5vw,42px); height:clamp(32px,2.5vw,42px); }
  .wall-mode .family-board h2 { font-size:clamp(1.25rem,1.6vw,1.75rem); }
  .wall-mode .board-toolbar button,.wall-mode .family-board .row button { min-height:clamp(44px,3.2vw,58px); font-size:clamp(.875rem,1.07vw,1.125rem); }
  .wall-mode .wall-week-day { min-height:clamp(10rem,32vh,22rem); }
  body.wall-mode #nav {
    inset:calc(12px + env(safe-area-inset-top,0px)) auto calc(12px + env(safe-area-inset-bottom,0px)) calc(12px + env(safe-area-inset-left,0px));
    display:flex; flex-direction:column; width:var(--wall-rail-width); margin:0; padding:7px; overflow-y:auto; z-index:10;
  }
  .wall-mode #nav button {
    flex:none;
    min-height:clamp(48px,7.7dvh,72px);
    font-size:clamp(.75rem,1vw,1rem);
    line-height:1.18;
    gap:5px;
    padding:5px 3px;
  }
  .wall-mode #nav button svg { width:24px; height:24px; }
  .wall-mode #nav .wall-chores { max-width:9ch; text-wrap:balance; }
  .wall-mode #nav .wall-action,.wall-mode #nav .wall-chores { display:grid; }
  .wall-mode #nav .phone-chores,.wall-mode .board-exit,.wall-mode .page-tools [data-tab=Settings] { display:none; }
  .wall-mode #nav .wall-sleep { margin-top:auto; }
  .wall-mode #nav button > span[aria-hidden] { font-size:24px; line-height:24px; }
}

.priority-section { margin-block:18px; }
.priority-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(5px,2vw,14px); }
.priority-card { min-width:0; display:flex; flex-direction:column; align-items:flex-start; min-height:136px; padding:clamp(7px,2vw,17px); border-radius:17px; border:1px solid #17372c15; }
.priority-card h3 { font-size:clamp(.76rem,3.6vw,1.16rem); line-height:1.2; margin:0 0 4px; }
.priority-card p { font-size:.78rem; margin-bottom:8px; }
.priority-card button { margin-top:auto; max-width:100%; padding-inline:clamp(2px,1.5vw,11px); font-size:clamp(.66rem,2.8vw,.9rem); line-height:1.18; background:#fffdf8; border-radius:22px; }
.priority-reminders {
  background:
    radial-gradient(circle at 93% 65%, #fff8f040 0 12px, transparent 13px 18px, #a95b4625 19px 20px,
      transparent 21px 28px, #fff8f070 29px 30px, transparent 31px 39px, #a95b461c 40px 41px, transparent 42px),
    linear-gradient(145deg,#ffd6c9,#ffc4b0);
  color:#492d25;
}
.priority-tasks,.priority-inbox { position:relative; isolation:isolate; overflow:hidden; }
.priority-tasks { background:linear-gradient(145deg,#e7e9fc,#d7ddf7); color:#303962; }
.priority-inbox { background:linear-gradient(145deg,#d5ede5,#bde1d6); color:#174c40; }
.priority-tasks::before,.priority-inbox::before,.priority-inbox::after {
  content:""; position:absolute; z-index:-1; pointer-events:none;
}
.priority-tasks::before {
  inline-size:50px; block-size:65px; inset:auto 7px 28px auto;
  border:1px solid #46569528; border-radius:10px;
  background:repeating-linear-gradient(to bottom,transparent 0 7px,#46569520 7px 8px,transparent 8px 12px) center / 65% 65% no-repeat,#fff5;
  transform:rotate(15deg);
}
.priority-inbox::before,.priority-inbox::after {
  inline-size:43px; block-size:28px; inset:auto 5px 42px auto;
  border:1px solid #26685836; border-radius:13px 13px 4px 13px;
  background:#ffffff47;
  transform:rotate(-9deg);
}
.priority-inbox::after {
  inset:auto 22px 29px auto;
  border-radius:13px 13px 13px 4px;
  background:#d1ece3;
  transform:rotate(9deg);
}

.shell-header { position:sticky; top:0; z-index:11; }
.header-actions,.header-settings { display:none; }
.workspace-header .shell-header {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:4px;
  padding:calc(7px + env(safe-area-inset-top,0px)) clamp(7px,2.5vw,24px) 7px;
  background:#fbf9f3f5;
  backdrop-filter:blur(12px);
}
.workspace-header .shell-header strong { justify-self:center; gap:5px; font-size:clamp(17px,5vw,27px); }
.workspace-header .shell-header .brand-mark { width:clamp(24px,6vw,32px); height:clamp(24px,6vw,32px); }
.workspace-header .header-actions,.workspace-header .header-settings { display:flex; gap:4px; }
.workspace-header .header-settings { justify-content:flex-end; }
.shell-header button { width:44px; min-height:44px; padding:0; font-size:20px; line-height:1; }
.priority-card .priority-inbox-link { background:transparent; text-decoration:underline; text-align:left; min-height:44px; padding:0; }
.chat-heading,.chat-composer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.chat-heading h2 { margin:0; }
.chat-conversations { display:grid; gap:6px; margin-top:12px; }
.chat-conversations button { display:flex; align-items:center; justify-content:space-between; gap:10px; text-align:left; overflow-wrap:anywhere; }
.chat-panel .message-list { display:flex; flex-direction:column; gap:8px; max-height:52dvh; overflow:auto; padding:12px 3px; }
.chat-bubble { align-self:flex-start; max-width:88%; background:#f1efe7; padding:8px 12px; border-radius:15px 15px 15px 4px; }
.chat-bubble.chat-mine { align-self:flex-end; background:var(--sage); border-radius:15px 15px 4px 15px; }
.chat-bubble .event-notes { margin:3px 0 0; white-space:pre-wrap; }
.chat-photo { display:block; max-width:min(100%,360px); max-height:55vh; margin-top:6px; border-radius:10px; object-fit:contain; }
.chat-composer label { flex:1; min-width:0; }
.chat-composer input { max-width:100%; }

.nearby-stores { margin-block:10px; padding:10px; border:1px solid var(--line); border-radius:12px; }
.store-attribution { display:block; height:18px; width:auto; margin:10px 10px 5px; }

body[data-workspace-theme=blue] { --sage:#e0e8f3; --green:#233e5b; }
body[data-workspace-theme=clay] { --sage:#f2e0d5; --green:#694635; }
.board-display-title { font-weight:700; overflow-wrap:anywhere; }
.board-grid-schedule-only { grid-template-columns:1fr; }
.header-bell { position:relative; display:grid; place-items:center; }
.header-bell svg { width:20px; height:20px; }
.header-bell [data-alert-count] { position:absolute; inset:2px 2px auto auto; min-width:16px; padding:1px 3px; border-radius:10px; background:#9c3b2d; color:#fff; font:700 10px/14px system-ui,sans-serif; }
#alert-preferences fieldset { min-width:0; border:1px solid var(--line); border-radius:10px; margin:10px 0; }
#alert-preferences fieldset .check { display:inline-flex; margin:4px 12px 4px 0; }
@media (max-width:360px) {
  .workspace-header .shell-header strong { font-size:16px; }
  .workspace-header .shell-header button { width:40px; }
}

.wall-home-actions { margin-block: 0 1rem; }
.wall-home-grid { display:grid; gap:1rem; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.wall-home-column { min-width:0; display:flex; flex-direction:column; gap:12px; }
.wall-home-grid .panel { margin:0; }
.wall-countdown { background:var(--accent-soft,#e2ebdf); }
.wall-count { font-family:Georgia,serif; font-size:clamp(1.6rem,3vw,3.5rem); line-height:1.15; margin-block:.25em; }
.wall-photo-card img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; margin-bottom:.6rem; }
.wall-photo-grid,.wall-reward-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr)); gap:1rem; margin-block:1rem; }
.wall-photo-grid figure { margin:0; }
.wall-photo-grid img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; }
.wall-reward-grid article { padding:.9rem; border-radius:14px; background:#edf0e5; }
.wall-note-layer { position:fixed; inset:0; z-index:12; pointer-events:none; }
.wall-sticky { position:absolute; margin:0; width:min(46vw,13rem); height:8rem; pointer-events:auto; overflow:auto; padding:.65rem; background:#f9e6a7; color:#463819; border-radius:4px 4px 12px 4px; box-shadow:1px 4px 10px #46381928; font:1.15rem/1.25 "Segoe Print","Bradley Hand","Comic Sans MS",cursive; overflow-wrap:anywhere; white-space:pre-wrap; touch-action:none; }
.wall-sticky[tabindex] { cursor:grab; }
#wall-editor { width:min(33rem,90vw); max-height:88dvh; border:1px solid #ccd8cc; border-radius:20px; padding:1.25rem; color:inherit; background:#f9f8f1; }
#wall-frame { max-width:none; max-height:none; width:100vw; height:100dvh; padding:1rem; border:0; background:#14251f; color:white; }
#wall-frame figure { margin:0; height:calc(100% - 3.75rem); display:grid; grid-template-rows:minmax(0,1fr) auto; text-align:center; }
#wall-frame img { width:100%; height:100%; object-fit:contain; }
#wall-frame button { margin:.5rem auto 0; display:block; }
@media (max-width:600px) { .wall-home-grid { grid-template-columns:1fr; } }
@media (min-width:760px) {
  .wall-mode #nav .phone-nav { display:none; }
  .wall-mode #nav button { min-height:44px; font-size:.8rem; gap:2px; }
  .wall-mode #nav button svg { width:19px; height:19px; }
  .wall-mode #nav button > span[aria-hidden] { font-size:18px; line-height:19px; }
}
@media (min-width:1000px) and (orientation:landscape) {
  body.wall-mode:has(.wall-home-grid) { height:100dvh; overflow:hidden; }
  .wall-mode main:has(.wall-home-grid) { height:100dvh; padding-block:14px; display:flex; flex-direction:column; }
  .wall-mode .family-board:has(.wall-home-grid) { flex:1; min-height:0; display:flex; flex-direction:column; padding-bottom:0; }
  .wall-mode .family-board:has(.wall-home-grid) .board-status { padding-block:4px 9px; margin-bottom:8px; }
  .wall-mode .family-board:has(.wall-home-grid) .board-toolbar { margin-bottom:9px; }
  .wall-mode .family-board:has(.wall-home-grid) .board-toolbar button,
  .wall-mode .wall-home-actions button { min-height:42px; padding-block:6px; }
  .wall-home-actions { margin-bottom:12px; }
  .wall-home-grid { flex:1; min-height:0; display:flex; gap:12px; align-items:stretch; }
  .wall-home-column { flex:1; min-height:0; }
  .wall-home-column:has([data-card-key="schedule"]) { flex:1.3; }
  .wall-home-column > div { display:flex; flex-direction:column; min-height:0; }
  .wall-home-grid .panel { overflow:auto; padding:clamp(12px,1vw,18px); }
  .wall-home-grid .panel h2 { font-size:clamp(1.1rem,1.25vw,1.45rem); margin-bottom:7px; }
  .wall-home-grid .panel h3 { margin-block:8px 5px; }
  .wall-home-grid .board-event { font-size:clamp(.9rem,1vw,1.15rem); }
  .wall-home-grid .wall-mini-calendar button { min-height:clamp(29px,3.6dvh,40px); }
  .wall-home-grid .wall-photo-card img { height:clamp(100px,21dvh,235px); aspect-ratio:auto; }
  .wall-home-grid .wall-count { font-size:clamp(1.5rem,2.8dvh,2rem); }
  .wall-home-grid .routine-group { margin-block:4px 8px; }
  .wall-home-grid .routine-group h3 { padding-block:4px; }
  .wall-home-grid .routine-check { min-height:34px; padding-block:4px; margin-block:3px; }
}
.wall-mini-heading { font-weight:700; margin:.45rem 0; }
.wall-mini-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; margin-block:0 1rem; }
.wall-mini-calendar > span { text-align:center; font-size:.76rem; color:#486057; }
.wall-mini-calendar button { position:relative; min-width:0; min-height:37px; padding:2px; border-radius:7px; background:#edf1e8; }
.wall-mini-calendar button[aria-current] { background:#274b3c; color:white; }
.wall-mini-calendar button span { position:absolute; bottom:0; left:0; right:0; font-size:.65em; }

.person-sage { --person-color:#a8ca9f; }
.person-sky { --person-color:#9ac9e5; }
.person-lilac { --person-color:#c3b5df; }
.person-peach { --person-color:#f5bda7; }
.person-rose { --person-color:#eda6ba; }
.person-honey { --person-color:#ead08c; }
.person-teal { --person-color:#97cec5; }
.person-slate { --person-color:#bcc7d8; }
.person-avatar { display:inline-grid; place-items:center; width:1.8rem; height:1.8rem; flex:none; vertical-align:middle; border:2px solid var(--person-color); border-radius:50%; background:var(--person-color); color:#18372c; font-size:.8rem; font-weight:750; overflow:hidden; }
.person-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.person-heading,.profile-intro { display:flex; align-items:center; gap:.55rem; }
.profile-intro .person-avatar { width:4rem; height:4rem; font-size:1.7rem; }
.profile-colors { display:flex; flex-wrap:wrap; gap:.5rem; border:0; padding:0; margin:0; }
.profile-color { display:flex; align-items:center; flex-direction:row; gap:.35rem; padding:.35rem .6rem; border-radius:99px; background:var(--person-color); color:#18372c; text-transform:capitalize; cursor:pointer; }
.profile-color input { width:1rem; height:1rem; margin:0; accent-color:#18372c; }
.event-attendees { margin-block:.45rem; }
.event-attendees label { margin-top:.45rem; }
.event-people { display:block; margin-top:.35rem; }
.event-color-band { display:flex; height:.4rem; border-radius:9px; overflow:hidden; transform:skewX(-12deg); }
.event-color-band > span { flex:1; background:var(--person-color); }
.event-avatars { display:flex; flex-wrap:wrap; gap:.2rem; align-items:center; margin-top:.35rem; }
.cal-chip .event-people,.wall-month-event .event-people { margin-top:.15rem; }
.wall-month-event .event-people span { display:flex; }
.wall-month-event .event-color-band { height:.24rem; }

.wall-sticky { display:flex; flex-direction:column; }
.wall-sticky > span { min-height:0; overflow:auto; }
.wall-sticky-delete { align-self:flex-end; margin-top:auto; background:transparent; min-height:28px; min-width:30px; padding:0; color:inherit; font-size:1.1rem; }
.wall-frame-controls { justify-content:center; }
#wall-frame .wall-frame-controls button { margin:.35rem 0 0; }
