/* Phase 2: calendar, filters, feed switches, event panel (loaded after app.css) */
[hidden]{display:none!important}
.acting{display:flex;align-items:center;gap:6px;margin-left:8px}
.acting-select{border:1px solid var(--line);background:#fff;border-radius:9px;padding:6px 8px;font-size:12.5px;font-weight:700;color:var(--muted)}
.linkbtn{background:none;border:none;cursor:pointer;font:inherit;font-size:12.5px;font-weight:800;color:var(--blue);padding:4px 0}
.ev{display:block;color:inherit}
a.ev:hover{background:#e1dac8}
.legend{display:flex;flex-wrap:wrap;gap:14px;font-size:11.5px;color:var(--muted);font-weight:700;padding:2px 6px 0}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend .lg{display:inline-block;width:22px;height:12px;border-radius:3px;background:#e8e2d4;border:1px solid #d6cfbd}
.legend .lg-uncovered{border-left:4px solid var(--red)}
.legend .lg-tentative{background:repeating-linear-gradient(135deg,#efe9dc 0 4px,#e0d8c6 4px 8px);border-style:dashed}
.legend .lg-cancelled{opacity:.5}

/* --- filter chips + segmented radio --- */
.filters .field{margin-bottom:12px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chipbox{cursor:pointer;position:relative}
.chipbox input{position:absolute;opacity:0;width:0;height:0}
.chipbox span{display:inline-block;border:1.5px solid var(--line);border-radius:999px;padding:4px 11px;font-size:12px;font-weight:800;color:var(--muted);background:#fff;line-height:1.3;transition:background .1s,color .1s}
.chipbox input:checked + span{background:var(--c,var(--blue));border-color:var(--c,var(--blue));color:#fff}
.chipbox input:focus-visible + span{outline:2px solid var(--blue);outline-offset:2px}
.segmented.full{display:flex;width:100%}
.segmented.full label{flex:1;text-align:center;cursor:pointer;position:relative}
.segmented.full label input{position:absolute;opacity:0;width:0;height:0}
.segmented.full label span{display:block;padding:6px 10px;border-radius:7px;font-size:12px;font-weight:700;color:var(--muted)}
.segmented.full label input:checked + span{background:#d6dff0;color:var(--blue-d)}

/* --- feed switches --- */
.switch-form{margin:0;display:flex}
.switch{position:relative;width:38px;height:22px;border-radius:999px;border:none;background:#cfc7b4;cursor:pointer;padding:0;flex-shrink:0;transition:background .15s}
.switch .knob{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .15s}
.switch.on{background:var(--green)}
.switch.on .knob{left:19px}
.lrow.off .gw{opacity:.55}

/* --- FullCalendar skin (matches the SchoolHub month grid) --- */
.cal-card{padding:0}
#calendar{--fc-border-color:var(--line);--fc-page-bg-color:#fff;--fc-neutral-bg-color:#faf6ec;
 --fc-today-bg-color:#fbf7ec;--fc-list-event-hover-bg-color:#fdf9ef;--fc-event-border-color:transparent;
 --fc-button-bg-color:#fff;--fc-button-border-color:var(--line);--fc-button-text-color:var(--blue-d);
 --fc-button-hover-bg-color:#fff;--fc-button-hover-border-color:var(--blue);
 --fc-button-active-bg-color:#d6dff0;--fc-button-active-border-color:var(--blue);
 --fc-small-font-size:11px;font-size:13px}
#calendar .fc-header-toolbar{padding:14px 18px;margin:0;background:var(--soft);border-bottom:1px solid var(--line);gap:10px;flex-wrap:wrap}
#calendar .fc-toolbar-title{font-size:18px;font-weight:800;color:var(--ink);letter-spacing:.3px}
#calendar .fc-button{border-radius:8px;font-weight:800;font-size:12.5px;padding:6px 12px;text-transform:none;box-shadow:none!important}
#calendar .fc-button-primary:not(:disabled).fc-button-active{color:var(--blue-d)}
#calendar .fc-col-header-cell{background:#fff;padding:8px 0}
#calendar .fc-col-header-cell-cushion{font-size:10px;font-weight:800;letter-spacing:.6px;color:var(--muted);text-transform:uppercase;padding:4px}
#calendar .fc-daygrid-day-number{font-size:13px;font-weight:700;color:var(--ink);padding:6px 8px}
#calendar .fc-day-other .fc-daygrid-day-number{color:var(--muted)}
#calendar .fc-dayGridMonth-view .fc-daygrid-day{cursor:pointer}
#calendar .fc-dayGridMonth-view .fc-daygrid-day:hover{background:rgba(59,89,214,.05)}
#calendar a.fc-daygrid-day-number,#calendar a.fc-col-header-cell-cushion{cursor:pointer;text-decoration:none}
#calendar a.fc-daygrid-day-number:hover,#calendar a.fc-col-header-cell-cushion:hover{text-decoration:underline}
#calendar .fc-daygrid-more-link{cursor:pointer}
#calendar .fc-day-today .fc-daygrid-day-number{background:var(--blue);color:#fff;border-radius:50%;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;padding:0;margin:4px}
#calendar .fc-daygrid-day-frame{min-height:104px}
#calendar .fc-daygrid-more-link{font-size:10px;color:var(--muted);font-weight:700}
#calendar .fc-event{border-radius:6px;border-width:0 0 0 4px!important;border-style:solid;padding:2px 5px;font-size:11px;font-weight:600;cursor:pointer;margin:1px 3px}
#calendar .fc-daygrid-event{white-space:normal}
/* Time grid (Week / Day): clip everything to the box. Line 1 = chip · time · title,
   line 2 = location, and short events collapse to line 1 only. */
#calendar .fc-timegrid-slot{height:30px}
#calendar .fc-timegrid-event{padding:2px 5px;overflow:hidden;border-radius:5px;font-size:10.5px;line-height:1.3;
 box-shadow:0 0 0 1px rgba(255,255,255,.9)}
#calendar .fc-timegrid-event .fc-event-main{overflow:hidden;min-width:0}
#calendar .fc-timegrid-event .fc-ev-inner{display:block;width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#calendar .fc-timegrid-event .fc-ev-inner > *{display:inline;white-space:nowrap}
#calendar .fc-timegrid-event .fc-av{display:inline-flex;width:14px;height:14px;font-size:9px;vertical-align:-3px;margin-right:3px}
#calendar .fc-timegrid-event .fc-tm{margin-right:4px}
#calendar .fc-timegrid-event .fc-ttl{overflow:visible}
#calendar .fc-timegrid-event .fc-who{display:none}
#calendar .fc-timegrid-event .fc-loc{display:block;margin:1px 0 0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#calendar .fc-timegrid-event.fc-timegrid-event-short .fc-loc{display:none}
#calendar .fc-timegrid-event.fc-timegrid-event-short{padding-top:1px;padding-bottom:1px;line-height:1.2}
#calendar .fc-timegrid-slot-label-cushion,#calendar .fc-timegrid-axis-cushion{font-size:10px;color:var(--muted);font-weight:700}
#calendar .fc-list{border:none}
#calendar .fc-list-day-cushion{background:var(--soft);font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--muted)}
#calendar .fc-list-event td{padding:8px 14px;font-size:12.5px}
#calendar .fc-list-event-graphic{display:none}
#calendar .fc-list-event-time{color:var(--muted);font-weight:700;font-size:11.5px;white-space:nowrap;width:1%}
#calendar .fc-list-empty{background:#fff;color:var(--muted);font-size:13px}
.fc-ev-inner{display:flex;align-items:center;gap:5px;min-width:0;flex-wrap:wrap}
.fc-ttl{font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.fc-tm{color:var(--muted);font-weight:700;font-size:10px;flex-shrink:0}
.fc-who{color:var(--muted);font-weight:600;font-size:10px}
.fc-loc{color:var(--muted);font-weight:500;font-size:10.5px;margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.fc-list-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.fc-av{width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;color:#fff;flex-shrink:0;background:var(--blue)}
.fc-av.warn{background:var(--red)}
#calendar .ev-uncovered{border-left-color:var(--red)!important}
#calendar .ev-tentative{background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.55) 0 5px,rgba(255,255,255,0) 5px 10px);border-style:dashed;border-left-style:solid}
#calendar .ev-status-cancelled,#calendar .ev-status-removed_from_feed{opacity:.55}
#calendar .ev-status-cancelled .fc-ttl,#calendar .ev-status-removed_from_feed .fc-ttl{text-decoration:line-through}

/* --- Day view: a single column; the chips on each event say who is going --- */
#calendar .fc-timeGridDay-view .fc-col-header-cell-cushion{font-size:12px;font-weight:800;letter-spacing:.2px;text-transform:none;color:var(--ink);padding:8px 6px}
#calendar .fc-license-message{display:none}

/* --- private busy blocks, manual events --- */
#calendar .ev-private{background-image:repeating-linear-gradient(135deg,rgba(110,101,88,.10) 0 4px,rgba(110,101,88,0) 4px 8px)}
#calendar .ev-private .fc-ttl{color:var(--muted);font-style:italic}
#calendar .ev-mine-private .fc-ttl::after{content:" 🔒";font-size:9px}
.legend .lg-private{background:repeating-linear-gradient(135deg,rgba(110,101,88,.18) 0 4px,#efe9dc 4px 8px);border-left:4px solid var(--muted)}
.hero .addbtn{background:#25d63a;color:var(--ink);text-decoration:none}
.hero .addbtn:hover{background:#1fbe33}
.btn.soft{background:var(--soft);color:var(--blue-d)}
.btn.ghost{background:#fff;border:1.5px solid var(--blue);color:var(--blue)}
.btn.danger{background:#fff;border:1.5px solid var(--red);color:var(--red)}
.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.grid2 > .field{min-width:0}
/* iPhone/iPad Safari gives date boxes their own oversized look; make them match the other inputs */
.panel input[type="date"].input{-webkit-appearance:none;appearance:none;display:block;width:100%;min-width:0;box-sizing:border-box;
 min-height:41px;line-height:1.3;text-align:left;font:inherit;font-size:13.5px}
.panel input[type="date"].input::-webkit-date-and-time-value{text-align:left;min-height:1.3em}
.mt6{margin-top:6px}
.fs12{font-size:12px}.fs11{font-size:11px}
.row{display:flex;align-items:center;gap:10px}
.panel-form .allday-only{display:none}
.panel-form.is-allday .allday-only{display:block}
.panel-form.is-allday .timed-only{display:none}
.panel-form .tsel select:disabled{background:#efeae0;color:#a39b8c;cursor:not-allowed}
.panel-form.is-allday .times .label{color:#a39b8c}
.panel-form .tsel{gap:6px}
.panel-form .tsel select{flex:1;min-width:0}
.panel-form .recur-block{display:none;margin-top:8px;padding:10px 12px;border:1px solid #d9d2c3;border-radius:10px;background:#f7f4ec}
.panel-form.is-recurring .recur-block{display:block}
.panel-form .has-interval-only,.panel-form .weekly-only,.panel-form .monthly-only{display:none}
.panel-form.has-interval .has-interval-only{display:block}
.panel-form.is-weekly .weekly-only{display:block}
.panel-form.is-monthly .monthly-only{display:block}
.panel-form .check{margin:4px 0}
.panel-form .ends-row .input{width:auto;flex:0 0 auto}
.panel-form .ends-row input[type=date]{width:150px}
.panel-form .errorlist{color:var(--red);font-size:12px;list-style:none;padding:0;margin:4px 0 0}
.ev.private{background:repeating-linear-gradient(135deg,#efe9dc 0 5px,#e8e2d4 5px 10px);border-left-color:var(--muted)}
.ev.private .nm{color:var(--muted);font-style:italic}

/* --- Feeds & Settings pages --- */
.sec-row .sec-btn{font-size:11px;font-weight:800;color:var(--blue);padding:4px 10px;border-radius:7px;background:#e8e2d4;border:none;cursor:pointer;text-decoration:none;line-height:1.4}
.sec-row .sec-btn.addbtn{background:#25d63a;color:var(--ink)}
.sec-row .sec-btn.addbtn:hover{background:#1fbe33}
.feed-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px}
.feedcard.off{opacity:.7}
.feedcard .ttl{font-size:15px;font-weight:800;display:block}
.feed-meta{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);margin:12px 0;font-weight:600}
.feed-meta code{font-weight:600}
.feed-meta .err{color:var(--red)}
.feed-actions{border-top:1px solid var(--line);padding-top:12px;gap:8px}
.between{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mt16{margin-top:16px}
.back-btn{display:inline-block;font-size:14px;font-weight:700;color:var(--blue);margin:0 0 12px}
.back-btn:hover{text-decoration:underline}
.howto{font-size:12.5px}
.howto dt{font-weight:800;color:var(--blue-d);margin-top:10px}
.howto dt:first-child{margin-top:0}
.howto dd{margin:2px 0 0;color:var(--muted)}
.feed-form .field{margin-bottom:14px}
.advanced summary{cursor:pointer}
.preview-box{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:12.5px}
.preview-list{list-style:none;padding:0;margin:8px 0 0}
.preview-list li{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:5px 0;border-top:1px solid var(--line)}
.preview-list .tm{color:var(--muted);font-weight:700;font-size:11.5px;min-width:130px}
.preview-list .nm{font-weight:700}
.thumb{width:38px;height:38px;border-radius:10px;background:var(--soft);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--blue);font-weight:800;font-size:13px;text-transform:uppercase}

/* --- filter rows with Y/N sliders --- */
.filters .sec-mini{font-size:9.5px;font-weight:800;letter-spacing:.7px;color:var(--muted);text-transform:uppercase;margin:12px 0 4px}
.filters .sec-mini:first-child{margin-top:0}
.filters .frow{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);cursor:pointer}
.filters .frow:last-of-type{border-bottom:none}
.filters .frow input{position:absolute;opacity:0;width:0;height:0}
.filters .frow .dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.filters .frow .nm{flex:1;font-size:12.5px;font-weight:700;color:var(--ink);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.filters .frow .yn{font-size:10px;font-weight:800;letter-spacing:.4px;color:var(--muted);width:14px;text-align:right}
.filters .frow .switch{width:34px;height:20px}
.filters .frow .switch .knob{width:14px;height:14px}
.filters .frow .frow-toggle:checked ~ .switch{background:var(--green)}
.filters .frow .frow-toggle:checked ~ .switch .knob{left:17px}
.filters .frow .frow-toggle:checked ~ .yn::after{content:"Y"}
.filters .frow .frow-toggle:not(:checked) ~ .yn::after{content:"N"}
.filters .frow .frow-toggle:not(:checked) ~ .nm{color:var(--muted);text-decoration:line-through;text-decoration-color:#cfc7b4}
.filters .frow .frow-toggle:focus-visible ~ .switch{outline:2px solid var(--blue);outline-offset:2px}

/* --- event side panel --- */
.panel-backdrop{position:fixed;inset:0;background:rgba(20,25,40,.35);z-index:40}
.panel{position:fixed;top:0;right:0;bottom:0;width:min(440px,100%);background:#fff;z-index:41;box-shadow:-12px 0 40px rgba(20,40,80,.2);overflow-y:auto;display:flex;flex-direction:column}
.panel-inner{flex:1;display:flex;flex-direction:column}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:18px 20px 12px;border-bottom:1px solid var(--line);background:var(--bg);position:sticky;top:0;z-index:1}
.panel-head h2{font-size:18px;font-weight:800;color:var(--ink);line-height:1.25;margin:0}
.panel-body{padding:16px 20px 30px}
.modal-x{background:none;border:none;font-size:26px;line-height:1;color:var(--muted);cursor:pointer;padding:0 4px}
.modal-x:hover{color:var(--ink)}
.facts{display:grid;grid-template-columns:64px 1fr;gap:8px 12px;font-size:13px;margin-bottom:16px}
.facts dt{font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);padding-top:2px}
.facts dd{margin:0;min-width:0;word-wrap:break-word}
.facts .prewrap{white-space:pre-wrap}
.loc{color:var(--blue-d);font-weight:700}
a.loc:hover{text-decoration:underline}
.panel-form{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:14px}
.panel-form .input{background:#fff}
.history{list-style:none;padding:0;margin:0;font-size:12px}
.history li{padding:6px 0;border-bottom:1px solid var(--line);display:flex;gap:6px;flex-wrap:wrap;align-items:baseline}
.history li:last-child{border-bottom:none}
body.panel-open{overflow:hidden}
@media(max-width:720px){
 .acting-select{max-width:120px}
 .topbar-inner{gap:8px}
 .brand .bw{font-size:15px}
 .brand-mascot{height:26px}
 .brand-word{height:16px}
 #calendar .fc-header-toolbar{padding:10px}
 #calendar .fc-toolbar-title{font-size:15px}
 #calendar .fc-daygrid-day-frame{min-height:64px}
}

/* --- coverage: by-schedule chips are outlined, hand-set are solid --- */
.count-pill{font-weight:800;font-size:13px;margin-left:6px}
.count-pill.has{color:var(--red)}
.count-pill.zero{color:var(--muted)}
.split-count{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:800;margin-left:10px}
.rule-row{padding:12px 0;border-top:1px solid var(--line)}
.rule-row:first-of-type{border-top:none;padding-top:0}
.rule-title{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}
.rule-cells{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.rule-cells .field{margin-bottom:0}
.linkbtn.danger-link{color:var(--red)}

/* --- inline who-is-going buttons on list rows --- */
.ev .ev-main{gap:8px}
.ev .nm{color:inherit}
.ev a.nm:hover{text-decoration:underline}

/* --- not going: darkened row, no-entry button --- */
.ev.skipped{background:#cfc7b4;border-left-color:#8f8778;color:var(--muted)}
.feed-form .input.color{width:56px;height:36px;padding:2px 4px;cursor:pointer}
/* Place finder dropdown under a location field */
.field.has-places{position:relative}
.places{position:absolute;left:0;right:0;z-index:40;margin:3px 0 0;padding:4px;list-style:none;background:#fff;border:1px solid #d9d2c3;border-radius:10px;box-shadow:0 10px 24px rgba(31,42,77,.14);max-height:240px;overflow:auto}
.places li{padding:7px 9px;border-radius:7px;cursor:pointer;font-size:12.5px;line-height:1.25}
.places li b{display:block;font-weight:800;color:var(--ink)}
.places li small{display:block;color:var(--muted);font-weight:600}
.places li:hover,.places li.on{background:#eef1fb}
.ev.skipped .nm,.ev.skipped .tm{color:var(--muted)}
.ev.skipped .nm{text-decoration:line-through;text-decoration-color:#8f8778}
.ev.skipped .ev-meta{opacity:.7}
#calendar .ev-skipped{opacity:.5;filter:saturate(.3)}
#calendar .ev-skipped .fc-ttl{text-decoration:line-through}

.ev-meta .chip{font-size:11px;padding:1px 8px}

/* Sign-in page: one small card in the middle of the screen */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--bg,#f7f4ec)}
.login-card{width:100%;max-width:360px;background:#fff;border:1px solid #d9d2c3;border-radius:16px;padding:26px 26px 22px;box-shadow:0 12px 32px rgba(31,42,77,.10)}
.login-card h1{font-size:20px;margin:16px 0 6px}
.login-card p{font-size:13px;color:var(--muted);margin:0 0 14px}
.login-card .field{margin-bottom:12px}
.login-card .input{font-size:14px}
.login-card .btn.block{margin-top:4px}
/* "+ New event" lives on the right end of the toolbar strip */
.toolbar-strip .tb-new{margin-left:auto;background:#25d63a;color:var(--ink);font-weight:800}
.toolbar-strip .tb-new:hover{background:#1fbe33}
@media (max-width:719px){.toolbar-strip .tb-new{margin-left:0}}

/* Agenda page: range picker above the list */
.agenda-bar{display:flex;align-items:center;gap:8px;margin:0}
#calendar .fc-list-event-time{white-space:nowrap;text-align:right}
.agenda-bar .input.sm{width:auto;padding:5px 28px 5px 10px;font-size:12.5px;font-weight:700}

/* Top-right Settings menu */
.menu{position:relative;margin-left:auto}
.menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;font-weight:800;font-size:13px;color:var(--blue-d);padding:7px 11px;border-radius:9px;user-select:none}
.menu summary::-webkit-details-marker{display:none}
.menu summary:hover,.menu[open] summary{background:#e8e2d4}
.menu-panel{position:absolute;right:0;top:calc(100% + 6px);min-width:210px;background:#fff;border:1px solid #d9d2c3;border-radius:12px;box-shadow:0 12px 28px rgba(31,42,77,.14);padding:6px;z-index:80}
.menu-head{display:flex;align-items:center;gap:8px;padding:8px 10px 10px;margin-bottom:4px;border-bottom:1px solid #ece7db;font-size:12.5px;font-weight:800;color:var(--ink)}
.menu-panel a,.menu-panel button{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:8px;font:inherit;font-weight:700;font-size:13px;color:var(--ink);background:none;border:none;cursor:pointer;text-decoration:none}
.menu-panel a:hover,.menu-panel button:hover{background:#eef1fb;color:var(--blue-d)}
.menu-panel form{margin:0}

/* Filter sections: "All" row on top; the rest is greyed while All is on */
.filters .frow.all-row .nm{font-weight:800}
.filters .frow .all-dot{background:linear-gradient(135deg,var(--blue) 0 50%,var(--green) 50% 100%)}
.filters .frow.dim{opacity:.45}
.filters .frow.dim:hover{opacity:.8}
.filters .frow.dim .nm{text-decoration:none}
/* Agenda rows: a | between the time and the rest of the record, in line with the people */
#calendar .fc-list-event td.fc-list-event-time{padding-right:16px}
/* Agenda day headers: a rounded square with the initial of whoever has the kids that day */
#calendar .fc-list-day-cushion{display:flex;align-items:center;gap:6px}
.day-custody{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--muted)}
.day-custody .sep{color:#cfc7b4}
.day-custody b{font-weight:800}
.day-custody.clickable{cursor:pointer}
.day-custody.clickable:hover b{text-decoration:underline dotted;text-underline-offset:3px}
.day-custody:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}
#calendar .fc-list-event td.fc-list-event-title{padding-left:0}
.fc-list-bar{color:var(--ink);font-weight:400;margin:0 11px 0 0;line-height:1;flex-shrink:0}

/* Agenda: an empty day shows one quiet row so every day is listed */
#calendar .fc-list-event.ev-empty .fc-list-event-time{color:transparent}
#calendar .fc-list-event.ev-empty:hover td{background:#fff;cursor:default}
#calendar .fc-list-event.ev-empty .fc-empty{color:var(--muted);font-weight:600;font-style:italic}
/* Agenda: a record a kid is going to with no parent yet is shaded red */
#calendar .fc-list-event.ev-uncovered td{background:#fbe3e0}
#calendar .fc-list-event.ev-uncovered:hover td{background:#f7d3ce}
#calendar .fc-list-event.ev-uncovered .fc-list-event-time{color:var(--red)}

/* Color picker chips: always show the color as a dot, fill when chosen */
.chipbox.swatch .sw{display:inline-block;width:11px;height:11px;border-radius:50%;background:var(--c);margin-right:6px;vertical-align:-1px;border:1.5px solid rgba(255,255,255,.9);box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.chipbox.swatch input:checked + span .sw{background:#fff;border-color:#fff}

/* A private event can never be shown to viewers */
.panel-form.is-private .shared-only{display:none}

/* "Add to Home Screen" hint for iPhone Safari (hidden once installed or dismissed) */
.install-hint{display:flex;align-items:center;gap:10px;background:#fff4ce;border:1px solid #e0962f;border-radius:10px;padding:8px 12px;margin:0 0 12px;font-size:12.5px;font-weight:600;color:var(--ink)}
.install-hint svg{vertical-align:-2px}
.install-hint-x{margin-left:auto;background:none;border:none;font-size:18px;line-height:1;cursor:pointer;color:var(--muted)}
@media (display-mode: standalone){.install-hint{display:none}}

/* Recent updates (sidebar): what the other parent changed since you last signed in */
.updates{padding:12px 14px}
.update-list{list-style:none;margin:0;padding:0}
.update-list li{padding:7px 0;border-bottom:1px solid var(--line);font-size:12.5px;line-height:1.35}
.update-list li:last-child{border-bottom:none}
.update-list a{color:var(--ink);font-weight:700;text-decoration:none}
.update-list a:hover{color:var(--blue-d);text-decoration:underline}
.upd-meta{display:block;font-size:10.5px;font-weight:700;color:var(--muted);margin-bottom:1px}
.upd-foot{margin:8px 0 0;font-size:10.5px;color:var(--muted)}
.upd-empty{margin:0;font-size:12.5px;font-weight:700;color:var(--muted);text-align:center;padding:6px 0}
.updates-mobile{display:none}

/* Recent updates and Filters each sit in their own tinted, rounded panel */
.side-panel{background:#f0e7d3;border-radius:14px;padding:10px 12px 12px;box-shadow:var(--shadow);margin-bottom:14px}
.side-panel > .sec,.side-panel > summary.sec{margin:0 2px 8px;color:var(--blue-d)}
.side-panel .card{margin-bottom:0;box-shadow:0 1px 2px rgba(60,40,15,.06)}
.filters-wrap:not([open]) > summary.sec{margin-bottom:0}

/* Filters fold away until needed */
.filters-wrap > summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;user-select:none}
.filters-wrap > summary::-webkit-details-marker{display:none}
.filters-wrap > summary .chev{margin-left:auto;transition:transform .15s ease;color:var(--muted)}
.filters-wrap[open] > summary .chev{transform:rotate(180deg)}
.filters-wrap > summary .fbadge{font-size:9px;font-weight:800;letter-spacing:.3px;text-transform:none;background:var(--blue);color:#fff;border-radius:999px;padding:1px 7px}

.custody-pop{position:fixed;inset:0;z-index:90;background:rgba(20,25,40,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.custody-card{background:#fff;border-radius:16px;box-shadow:0 18px 40px rgba(31,42,77,.28);padding:18px 18px 14px;width:100%;max-width:340px;margin:0}
.custody-head{font-size:16px;font-weight:800;color:var(--ink)}
.custody-day{font-size:12.5px;font-weight:700;color:var(--muted);margin:2px 0 12px}
.custody-choices{display:flex;flex-direction:column;gap:8px}
.custody-choice{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;cursor:pointer;font-weight:700;font-size:14px;color:var(--ink)}
.custody-choice input{position:absolute;opacity:0;width:0;height:0}
.custody-choice:has(input:checked){border-color:var(--blue);background:#eef1fb}
.custody-choice .av{width:26px;height:26px;font-size:12px}
.custody-note{font-size:11px;color:var(--muted);margin:10px 0 0}
.custody-err{font-size:12px;font-weight:700;color:var(--red);margin:8px 0 0}
.custody-actions{justify-content:flex-end;gap:8px;margin-top:12px}

/* Setup checklist (agenda, parents, until every step is done or it is hidden) */
.setup-card{padding:16px 18px;border:1.5px solid #d6dff0}
.setup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.setup-title{font-size:16px;font-weight:800;color:var(--ink)}
.setup-hide{margin:0}
.setup-bar{height:6px;border-radius:999px;background:var(--soft);margin:10px 0 6px;overflow:hidden}
.setup-bar i{display:block;height:100%;background:var(--green);border-radius:999px;transition:width .3s ease}
.setup-steps{list-style:none;margin:0;padding:0}
.setup-step{display:flex;align-items:flex-start;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.setup-step:last-child{border-bottom:none}
.setup-mark{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;background:var(--soft);color:var(--muted);margin-top:1px}
.setup-step.done .setup-mark{background:var(--green);color:#fff}
.setup-step.todo .setup-mark{background:var(--blue);color:#fff}
.setup-body{flex:1;min-width:0}
.setup-name{font-size:13.5px;font-weight:800;color:var(--ink)}
.setup-step.done .setup-name{color:var(--muted);text-decoration:line-through;text-decoration-color:#cfc7b4}
.setup-blurb{font-size:12px;color:var(--muted);margin-top:2px;line-height:1.4}
.setup-step.done .setup-blurb{display:none}
.setup-note{font-size:11.5px;font-weight:700;color:#8a5a00;margin-top:4px}
.setup-step .btn{flex:0 0 auto;margin-top:2px}
.btn.is-off{opacity:.55;cursor:default}
.setup-foot{margin-top:12px;line-height:1.4}

/* Guide strip on a page reached from the checklist (?setup=...) */
.setup-strip{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;background:#eef1fb;border:1.5px solid #c9d3ee;border-radius:12px;padding:10px 14px;margin:0 0 16px;font-size:12.5px;color:var(--ink);line-height:1.45}
.setup-strip.done{background:#e4f6ea;border-color:#b6e3c4}
.setup-strip-step{font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--blue-d);flex:0 0 auto}
.setup-strip.done .setup-strip-step{color:#1f7a3f}
.setup-strip-text{flex:1 1 320px;min-width:0}
.setup-strip-links{display:flex;align-items:center;gap:12px;margin-left:auto;flex:0 0 auto}
.setup-strip-links a{font-weight:700}

/* Banner: the calendar's picture before its name */
.hero-id{display:flex;align-items:center;gap:12px;min-width:0}
.hero-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2.5px solid rgba(255,255,255,.7);background:#fff}
.hero-avatar.letter{display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.18);color:#fff;font-weight:800;font-size:26px}

/* Following list */
.follow-list{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.follow-card{display:flex;align-items:center;gap:14px;padding:12px 14px;background:#fff;border-radius:14px;box-shadow:var(--shadow);text-decoration:none;color:var(--ink);border:1.5px solid transparent}
.follow-card:hover{border-color:var(--blue)}
.follow-avatar{width:56px;height:56px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#fff}
.follow-avatar.letter{display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:22px}
.follow-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.follow-body b{font-size:15px}
.follow-body small{color:var(--muted);font-size:12.5px;font-weight:600}
.follow-go{font-size:24px;color:var(--muted);line-height:1}
.toolbar-strip .tb-back{color:var(--muted)}
.toolbar-strip .tb-home{margin-left:auto}

/* Calendar Rules: picture */
.avatar-form{display:flex;align-items:center;gap:16px}
.avatar-preview{width:64px;height:64px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#fff;border:1.5px solid var(--line)}
.avatar-preview.letter{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:#fff;font-weight:800;font-size:24px}

/* Friends: tabs, badges, messages */
.friends-tabs{display:flex;gap:6px;margin:-8px 0 14px}
.friends-tabs a{padding:7px 14px;border-radius:999px;font-size:12.5px;font-weight:800;color:var(--muted);background:#fff;box-shadow:0 1px 2px rgba(60,40,15,.06);text-decoration:none}
.friends-tabs a.on{background:#d6dff0;color:var(--blue-d)}
.badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;font-size:10.5px;font-weight:800;margin-left:4px;vertical-align:middle}
.toolbar-strip a .badge{margin-left:6px}
.lrow-link{text-decoration:none;color:var(--ink)}
.lrow .av{flex-shrink:0}
.lrow-link:hover{background:#fdf9ef}
.thread{display:flex;flex-direction:column;gap:10px;padding:14px}
.msg{max-width:88%;align-self:flex-start;background:var(--soft);border-radius:14px 14px 14px 4px;padding:8px 12px}
.msg.mine{align-self:flex-end;background:#d6dff0;border-radius:14px 14px 4px 14px}
.msg.special{border:1.5px solid #c9d3ee;background:#fff}
.msg-meta{font-size:10.5px;font-weight:700;color:var(--muted);margin-bottom:2px}
.msg-body{font-size:13.5px;line-height:1.4}
.thread-wrap{width:34%;min-width:340px}
.compose textarea{resize:vertical;width:100%;display:block}
.share-box{margin-top:14px;padding:12px;border:1.5px dashed var(--line);border-radius:12px}
.chip-check{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1.5px solid var(--line);border-radius:999px;font-size:12.5px;font-weight:700;cursor:pointer;margin:0 6px 6px 0;background:#fff}
.chip-check input{margin:0}
.chip-check:has(input:checked){border-color:var(--blue);background:#eef1fb;color:var(--blue-d)}
.wsel{width:auto;max-width:170px;flex:0 0 auto}

/* Friends: a grid of small tiles (about six across on a desktop), a list on phones */
.add-friend{margin:0 0 6px}
.add-friend > summary{list-style:none;display:inline-flex;cursor:pointer;user-select:none}
.add-friend > summary::-webkit-details-marker{display:none}
.add-friend-form{margin-top:10px}
.friend-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-bottom:14px}
.friend-tile{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:14px 10px 12px;background:#fff;border-radius:14px;box-shadow:var(--shadow);min-width:0}
.friend-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;background:#fff;margin-bottom:4px}
.friend-avatar.letter{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:#fff;font-weight:800;font-size:24px}
.friend-name{font-size:13.5px;line-height:1.25;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.friend-parents{font-size:11.5px;color:var(--muted);font-weight:600;line-height:1.3;max-width:100%}
.friend-actions{display:flex;flex-direction:column;gap:6px;width:100%;margin-top:8px}
.friend-actions .btn{width:100%;justify-content:center;padding:6px 8px}

/* Messages: chain header, people menu, phone-bar badge */
.thread-head{display:flex;align-items:center;gap:10px;margin:4px 0 10px}
.thread-title{flex:1;min-width:0;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chain-menu{margin-left:0}
.chain-panel{min-width:260px;right:0}
.chain-member{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;font-size:13px;font-weight:700}
.chain-member form{margin:0}
.chain-member .linkbtn,.chain-panel .linkbtn{font-size:12px}
.linkbtn.danger{color:var(--red)}
.nav-ico{position:relative;display:inline-block}
.nav-badge{position:absolute;top:-6px;right:-12px}

/* Confirmation modal (forms with data-confirm) */
.confirm-modal{position:fixed;inset:0;z-index:95;background:rgba(20,25,40,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.confirm-card{background:#fff;border-radius:16px;box-shadow:0 18px 40px rgba(31,42,77,.28);padding:18px 18px 14px;width:100%;max-width:360px}
.confirm-title{font-size:16px;font-weight:800;color:var(--ink)}
.confirm-text{font-size:13px;color:var(--muted);margin:6px 0 0;line-height:1.45}
.confirm-actions{justify-content:flex-end;gap:8px;margin-top:14px}
.btn.danger-solid{background:var(--red);color:#fff}
.btn.danger-solid:hover{background:#c9433a}
.btn.danger-ghost{border-color:#f0c0bc;color:var(--red)}
.btn.danger-ghost:hover{background:#fbe3e1}

/* Friends tile: the ··· menu */
.friend-tile{position:relative}
.tile-menu{margin:0}
.tile-menu > summary{list-style:none;cursor:pointer;color:var(--muted);font-weight:800;font-size:16px;line-height:1;padding:2px 6px;border-radius:6px;letter-spacing:1px}
.tile-menu > summary::-webkit-details-marker{display:none}
.tile-menu > summary:hover{background:var(--soft);color:var(--ink)}
.tile-menu{position:static}
.tile-menu > summary{position:absolute;top:6px;right:8px}
.tile-menu .menu-panel{position:absolute;left:8px;right:8px;top:36px;min-width:0;text-align:left}
.tile-menu .menu-panel button{white-space:normal;line-height:1.3}
.tile-menu form{margin:0}
.menu-panel button.danger{color:var(--red)}
.menu-note{padding:8px 10px;font-size:12px;font-weight:700;color:var(--muted)}
.chain-delete{margin:0}

/* Guided setup */
.wizard{max-width:720px;margin:0 auto}
.wiz-bar{list-style:none;display:flex;gap:6px;margin:4px 0 16px;padding:0;flex-wrap:wrap}
.wiz-bar li{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:800;color:var(--muted);padding:5px 10px 5px 6px;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(60,40,15,.06)}
.wiz-bar li.current{background:#d6dff0;color:var(--blue-d)}
.wiz-bar li.done{color:#1f7a3f}
.wiz-dot{width:20px;height:20px;border-radius:50%;background:var(--soft);display:inline-flex;align-items:center;justify-content:center;font-size:10.5px}
.wiz-bar li.current .wiz-dot{background:var(--blue);color:#fff}
.wiz-bar li.done .wiz-dot{background:var(--green);color:#fff}
.wiz-card h1{font-size:22px;margin:0 0 6px}
.wiz-card > .muted{margin:0 0 16px;line-height:1.45}
.wiz-actions{display:flex;justify-content:space-between;align-items:center;margin-top:18px;gap:10px}
.wiz-sub{margin-top:12px}
.wiz-choice .choice{cursor:pointer}
.wiz-choice .choice input{position:absolute;opacity:0;width:0;height:0}
@media (max-width:719px){ .wiz-bar li .wiz-lbl{display:none} .wiz-bar li.current .wiz-lbl{display:inline} }

/* Following view: whose calendar a row belongs to */
.fc-av.cal{border-radius:5px;font-size:9px}
.menu-sub{font-size:9.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);padding:8px 10px 2px}
.menu-top{margin-top:2px}
.menu-group>summary{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:8px;font-weight:700;font-size:13px;color:var(--ink);cursor:pointer;list-style:none;user-select:none}
.menu-group>summary::-webkit-details-marker{display:none}
.menu-group>summary::after{content:'';width:7px;height:7px;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(45deg);margin:-3px 4px 0 10px;transition:transform .15s}
.menu-group[open]>summary::after{transform:rotate(-135deg);margin-top:3px}
.menu-group>summary:hover,.menu-group[open]>summary{background:#eef1fb;color:var(--blue-d)}
.menu-group>a,.menu-group>form>button{padding-left:22px;font-weight:600;font-size:12.5px}
.menu-group[open]{padding-bottom:4px}
.menu-out{margin-top:4px!important;border-top:1px solid #ece7dc;padding-top:4px}
.menu-panel button.on{background:#eef1fb;color:var(--blue-d)}

/* Calendar Rules: the one-home-or-two choice */
.homes-choice{display:flex;gap:10px;flex-wrap:wrap}
.homes-choice .btn{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 14px;min-width:200px;text-align:left}
.homes-choice .btn small{font-weight:600;font-size:11px;opacity:.8}

/* ===== Phones (under 720px). Nothing here touches the desktop layout. ===== */
.filters-btn,.fab,.sheet-head{display:none}
@media (max-width:719px){
 /* banner: one line of name + date, counts as small text underneath */
 .hero{padding:10px 14px;margin-bottom:10px;border-radius:12px;gap:2px 10px;align-items:baseline}
 .hero h1{font-size:17px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .hero-avatar{width:40px;height:40px}
 .hero-avatar.letter{font-size:17px}
 .toolbar-strip .tb-home{margin-left:0}
 .hero .date{font-size:12px;opacity:.9}
 .hero .summary-stack{flex:1 1 100%;flex-direction:row;flex-wrap:wrap;gap:3px 12px;align-items:center;margin:3px 0 0}
 .hero .summary-stack .pill{background:none;padding:0;font-size:10.5px;color:#fff;opacity:.85;box-shadow:none;border:none}
 .hero .summary-stack .pill.red{opacity:1;background:var(--red);color:#fff;padding:1px 8px}

 /* navigation: the bottom bar carries Agenda/Calendar; New event floats bottom-right */
 .toolbar-strip{display:none}
 .fab{display:flex;position:fixed;right:16px;bottom:calc(64px + env(safe-area-inset-bottom));width:54px;height:54px;border-radius:50%;
  background:#25d63a;color:var(--ink);font-size:32px;font-weight:700;line-height:1;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.28);z-index:30;text-decoration:none}
 .fab:active{transform:scale(.96)}
 body.panel-open .fab,body.filters-open .fab{display:none}
 .bottomnav{padding-bottom:calc(8px + env(safe-area-inset-bottom))}
 .content.dash{padding:12px 12px calc(90px + env(safe-area-inset-bottom))}
 .dashgrid.two{gap:0}
 .install-hint{font-size:12px}

 /* calendar header: title + arrows on the first line, range picker / Filters on the second */
 #calendar .fc-header-toolbar{flex-wrap:wrap;gap:8px;padding:10px 12px;margin-bottom:0}
 #calendar .fc-header-toolbar .fc-toolbar-chunk:first-child{order:3;flex:1 1 100%;display:flex;align-items:center;gap:8px;min-width:0}
 #calendar .fc-header-toolbar .fc-toolbar-chunk:nth-child(2){order:1;flex:1 1 auto;min-width:0}
 #calendar .fc-header-toolbar .fc-toolbar-chunk:last-child{order:2;flex:0 0 auto}
 #calendar .fc-toolbar-title{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #calendar .fc-button{padding:5px 8px;font-size:12px}
 .agenda-bar{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;margin-left:auto}
 .agenda-bar .fs12{display:none}
 .agenda-bar #agenda-range{flex:1 1 auto;min-width:0;max-width:170px}
 .filters-btn{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:7px 12px;border-radius:9px;border:1px solid var(--line);
  background:#fff;font:inherit;font-size:12.5px;font-weight:700;color:var(--ink);position:relative;cursor:pointer}
 .filters-btn .fdot{display:none;width:9px;height:9px;border-radius:50%;background:var(--red);border:2px solid #fff;position:absolute;top:-4px;right:-4px}
 .filters-btn.has{border-color:var(--blue);color:var(--blue-d)}
 .filters-btn.has .fdot{display:block}

 /* filters: a sheet that slides up from the bottom */
 #filters-col{position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-radius:18px 18px 0 0;max-height:82vh;overflow-y:auto;
  -webkit-overflow-scrolling:touch;padding:0 16px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -8px 28px rgba(0,0,0,.22);
  transform:translateY(105%);transition:transform .25s ease}
 body.filters-open #filters-col{transform:none}
 body.filters-noanim #filters-col{transition:none}
 body.filters-open{overflow:hidden}
 .filters-backdrop{position:fixed;inset:0;z-index:55;background:rgba(20,25,40,.45)}
 .sheet-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1;background:#fff;padding:14px 0 8px;font-size:16px;font-weight:800;color:var(--ink)}
 #filters-col .updates-block{display:none}
 #filters-col .filters-wrap{background:none;box-shadow:none;padding:0;margin:0}
 #filters-col .filters-wrap > summary{display:none}
 #filters-col .filters-wrap:not([open]) > form{display:block}
 .updates-mobile{display:block}
 .updates-mobile .sec.first{margin-top:0}
 .updates-mobile .card{margin-bottom:10px;border-radius:12px}
 #filters-col .card.filters{box-shadow:none;padding:0;border:none}
 .filters .frow{padding:11px 0;gap:12px}
 .filters .frow .nm{font-size:14px}
 .filters .frow .switch{width:40px;height:24px}
 .filters .frow .switch .knob{width:18px;height:18px}
 .filters .frow .frow-toggle:checked ~ .switch .knob{left:19px}

 .thread-wrap{width:100%;min-width:0}
 .friend-grid{grid-template-columns:1fr}
 .friend-tile{display:grid;grid-template-columns:48px 1fr;grid-template-areas:"av name" "av parents" "av actions";column-gap:12px;row-gap:2px;text-align:left;align-items:center;padding:10px 12px}
 .friend-tile .friend-avatar{grid-area:av;width:48px;height:48px;margin:0;align-self:start}
 .friend-tile .friend-name{grid-area:name}
 .friend-tile .friend-parents{grid-area:parents}
 .friend-tile .friend-actions{grid-area:actions;flex-direction:row;margin-top:6px;width:auto}
 .friend-tile .friend-actions .btn{width:auto}
 .setup-card{padding:14px;border-radius:12px;margin-bottom:10px}
 .setup-step{gap:10px}
 .setup-strip-links{margin-left:0;width:100%;justify-content:space-between}

 /* event form: start date, end date, starts and ends each on their own line */
 .panel .grid2{grid-template-columns:minmax(0,1fr);gap:8px}
 .panel input[type="date"].input{font-size:16px;min-height:44px} /* 16px stops iOS zooming into the field */
 .panel .grid2 .tsel select{flex:1 1 auto;min-width:0}

 /* agenda rows: time on top, people + title, then the place; nothing runs off the right edge */
 #calendar .fc-list-table,#calendar .fc-list-table tbody{display:block;width:100%}
 #calendar .fc-list-table tr{display:block}
 #calendar .fc-list-table th,#calendar .fc-list-table td{display:block;width:auto}
 #calendar .fc-list-event td{padding:0 12px;border:none}
 #calendar .fc-list-event td.fc-list-event-time{padding:8px 12px 1px;text-align:left;font-size:11px}
 #calendar .fc-list-event td.fc-list-event-title{padding:0 12px 9px}
 #calendar tr.fc-list-event{border:none;border-bottom:1px solid var(--line)}
 #calendar .fc-list-event td.fc-list-event-graphic{display:none}
 #calendar .fc-list-event .fc-list-bar{display:none}
 #calendar .fc-list-event .fc-ttl{white-space:normal;flex:1 1 auto;line-height:1.3}
 #calendar .fc-list-event .fc-loc{flex:1 1 100%;margin:1px 0 0;max-width:none;white-space:normal;font-size:11px}
 #calendar .fc-list-day-cushion{padding:6px 12px}
 #calendar .fc-list-event.ev-empty td.fc-list-event-time{padding-top:4px;height:6px;font-size:0}
 .day-custody{font-size:10px}

 /* month: one short line per event (no chips or times); tap a day for the full picture */
 #calendar .fc-daygrid-day-frame{min-height:58px}
 #calendar .fc-daygrid-day-number{font-size:11px;padding:2px 4px}
 #calendar .fc-daygrid-event{margin:1px 2px 0;padding:1px 3px;border-radius:4px}
 #calendar .fc-daygrid-event .fc-ev-inner{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9.5px;line-height:1.25}
 #calendar .fc-daygrid-event .fc-av,#calendar .fc-daygrid-event .fc-tm,#calendar .fc-daygrid-event .fc-loc{display:none}
 #calendar .fc-daygrid-event .fc-ttl{white-space:nowrap;display:inline}
 #calendar .fc-daygrid-more-link{font-size:9.5px}

 /* week: narrower hour column */
 #calendar .fc-timegrid-slot-label-cushion,#calendar .fc-timegrid-axis-cushion{font-size:9px;padding:0 3px}
 #calendar .fc-col-header-cell-cushion{font-size:10.5px;padding:4px 1px}
 #calendar .fc-timegrid-event .fc-ev-inner{font-size:9.5px}
}

/* ---- to-dos: a dated task with a Done tick instead of a location ---- */
#calendar .fc-list-event.ev-todo td{background:#fcf0c4}
#calendar .fc-list-event.ev-todo:hover td{background:#f8e7ad}
#calendar .fc-list-event.ev-todo td:first-child{box-shadow:inset 4px 0 0 #d9a800}
/* done: the same light shade, in green */
#calendar .fc-list-event.ev-todo.ev-done td{background:#d9f0de}
#calendar .fc-list-event.ev-todo.ev-done:hover td{background:#cbe9d2}
#calendar .fc-list-event.ev-todo.ev-done td:first-child{box-shadow:inset 4px 0 0 var(--green)}
#calendar .ev-todo:not(.fc-list-event){background-image:repeating-linear-gradient(135deg,rgba(0,0,0,.05) 0 5px,rgba(0,0,0,0) 5px 10px)}
#calendar .ev-done .fc-ttl{text-decoration:line-through;color:var(--muted)}
#calendar .ev-done .fc-av{opacity:.55}
.fc-todo{display:inline-flex;align-items:center;gap:5px;cursor:pointer;color:var(--muted);font-weight:700;font-size:11px;margin-left:auto;padding:2px 4px;border-radius:6px;user-select:none}
.fc-todo:hover{background:rgba(0,0,0,.05)}
.fc-todo input{width:16px;height:16px;margin:0;accent-color:#2e7d32;cursor:pointer}
.fc-todo input:disabled{cursor:default}
.fc-todo.is-done{color:#2e7d32}
.fc-todo.busy{opacity:.5;pointer-events:none}
#calendar .fc-daygrid-event .fc-todo{padding:0 2px;margin-left:auto}
#calendar .fc-daygrid-event .fc-todo input{width:13px;height:13px}
.panel-form.is-todo .not-todo{display:none}
.todo-done-form{margin:0 0 12px}
.pill.green{background:#e3f1e4;color:#2e7d32}

.btn.danger-text{color:var(--red)}
.btn.danger-text:hover{background:#fbe9e7}

/* ---- overdue to-dos: rolled forward at midnight, bright red until done ---- */
#calendar .fc-list-event.ev-overdue td{background:#ff5a4d}
#calendar .fc-list-event.ev-overdue:hover td{background:#f04a3d}
#calendar .fc-list-event.ev-overdue td:first-child{box-shadow:inset 4px 0 0 #a3170c}
#calendar .ev-overdue .fc-ttl,#calendar .ev-overdue .fc-list-event-time,#calendar .ev-overdue .fc-since{color:#fff}
#calendar .ev-overdue .fc-todo{color:#fff}
#calendar .ev-overdue .fc-todo:hover{background:rgba(255,255,255,.18)}
#calendar .ev-overdue .fc-list-bar{color:#fff}
#calendar .ev-overdue:not(.fc-list-event){background:#ff5a4d!important;border-color:#a3170c!important}
#calendar .ev-overdue:not(.fc-list-event) .fc-ttl{color:#fff}
.fc-since{font-size:10.5px;font-weight:700;opacity:.9;white-space:nowrap}

.alert.warn{background:#fff4d6;color:#7a4b00;border:1px solid #f0d48a;border-radius:8px;padding:8px 10px}

/* ---- event link: sits halfway between the title and the location ---- */
.fc-link{margin-left:auto;color:var(--blue-d);font-weight:700;font-size:11px;text-decoration:none;white-space:nowrap;padding:2px 8px;border-radius:999px;background:#e6edf8;flex-shrink:0}
.fc-link:hover{background:#d6dff0;text-decoration:underline}
.fc-link + .fc-loc,.fc-link + .fc-todo{margin-left:auto}
#calendar .fc-timegrid-event .fc-link{display:none}
@media (max-width:719px){
  .fc-link{margin-left:0}
}

/* ---- Month: who has the kids, at the top of each day cell ---- */
#calendar .fc-daygrid-day-top .day-custody.month{margin-right:auto;padding:7px 0 0 8px;font-size:9.5px;letter-spacing:.4px;align-self:center}
.day-custody.month .short{display:none;width:16px;height:16px;font-size:9px}
#calendar .fc-day-other .day-custody.month{opacity:.5}
@media (max-width:719px){
  .day-custody.month .full{display:none}
  .day-custody.month .short{display:inline-flex}
  #calendar .fc-daygrid-day-top .day-custody.month{padding:4px 0 0 4px}
}

/* ---- People: colors another owner or kid already has ---- */
.chipbox.swatch .taken-by{font-weight:600;opacity:.75}
.chipbox.swatch.locked{opacity:.45;cursor:not-allowed}
.chipbox.swatch.locked input:checked + span{opacity:1}

/* ---- locations open in Apple or Google Maps ---- */
.fc-loc.maps{cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
.fc-loc.maps:hover{color:var(--blue-d)}
a.loc[data-maps]{cursor:pointer}
/* agenda: the place is a button like the web link, so it is easy to tap for Maps */
.fc-brk{display:none}
#calendar .fc-list-event .fc-brk{display:block;flex-basis:100%;height:0}
#calendar .fc-list-event .fc-loc.maps{flex:0 1 auto;margin:3px 0 0;max-width:100%;white-space:normal;color:var(--blue-d);font-weight:700;font-size:11px;line-height:1.3;text-decoration:none;padding:3px 9px 3px 7px;border-radius:999px;background:#e6edf8;border:1px solid #d6dff0}
#calendar .fc-list-event .fc-loc.maps::before{content:"📍 ";font-size:10px}
#calendar .fc-list-event .fc-loc.maps:hover{background:#d6dff0;text-decoration:underline}
#calendar .fc-list-event .fc-loc.maps:active{background:#c7d3ea}
/* the event panels: place and web link as the same buttons */
.facts a.loc{display:inline-block;padding:3px 10px;border-radius:999px;background:#e6edf8;border:1px solid #d6dff0;text-decoration:none;line-height:1.35;max-width:100%;word-wrap:break-word}
.facts a.loc:hover{background:#d6dff0;text-decoration:underline}
.maps-pick-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 10px}
.maps-pick-choices .btn{justify-content:center;text-align:center;text-decoration:none;font-weight:800;padding:12px 10px}
.maps-apple{background:#1f1f1f;color:#fff}
.maps-google{background:#1a73e8;color:#fff}
#maps-pick-place{word-break:break-word}
/* suggestions from Google carry Google's mark */
.places li.powered{cursor:default;padding:4px 9px 2px;text-align:right;font-size:10.5px;color:var(--muted);font-weight:700}
.places li.powered:hover{background:none}

/* ---- Share buttons (AirDrop, Messages, Quick Share) ---- */
.panel-head .share-btn{align-self:flex-start;margin:2px 8px 0 0;white-space:nowrap}


/* ---- hidden events: only their owner ever sees them ---- */
#calendar .ev-mine-hidden .fc-ttl::after{content:" 🙈";font-size:9px}

/* ---- setup: fold-out with every option a calendar has ---- */
.wiz-more{margin-top:10px;border:1.5px solid var(--line);border-radius:12px;padding:8px 12px;background:#fcfaf5}
.wiz-more summary{cursor:pointer;font-weight:800;color:var(--blue-d);font-size:13px}
.wiz-more[open] summary{margin-bottom:4px}

/* ---- one-time import checklist ---- */
/* .card.flush hides overflow; this list must scroll on its own (and grow on phones) */
.import-list.card.flush{max-height:70vh;overflow:auto;-webkit-overflow-scrolling:touch}
@media (max-width:719px){.import-list.card.flush{max-height:none;overflow:visible}}
.import-row{display:grid;grid-template-columns:auto 1fr 190px 76px;gap:8px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line);cursor:pointer}
.import-row.head > span:first-child{min-width:64px}
.import-pick{display:flex;align-items:center;gap:6px;min-width:64px}
.who-picks{display:inline-flex;gap:3px}
.who-pick{position:relative;cursor:pointer;line-height:0}
.who-pick input{position:absolute;opacity:0;width:0;height:0;margin:0}
.who-pick .av{width:20px;height:20px;font-size:10px;background:var(--c,var(--blue));border:2px solid #fff;box-shadow:0 0 0 1.5px var(--c,var(--blue))}
.who-pick:has(input:not(:checked)) .av{background:#fff;color:var(--muted);box-shadow:0 0 0 1.5px var(--line)}
.who-pick:has(input:focus-visible) .av{outline:2px solid var(--blue);outline-offset:2px}
.import-row.head{font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);background:var(--soft);cursor:default}
.import-row.have{opacity:.5;cursor:default}
.import-row input[type=checkbox]{width:18px;height:18px;accent-color:var(--blue)}
.import-row .gw b{display:block}
.import-row .gw small{display:block;color:var(--muted);font-weight:600;font-size:11px}
.import-row:last-child{border-bottom:none}
@media (max-width:719px){
  .import-row{grid-template-columns:auto 1fr 60px}
  .import-pick{flex-wrap:wrap;max-width:96px;min-width:0}
  .import-row.head > span:first-child{min-width:0}
  .import-row .fs12{grid-column:2;font-size:11px;color:var(--muted)}
  .import-row.head span:nth-child(3){display:none}
}

/* ---- custody pattern grid ---- */
.cp-grid{display:grid;gap:4px;margin:6px 0 8px}
.cp-row{display:grid;grid-template-columns:64px repeat(7,1fr);gap:4px;align-items:center}
.cp-row.head span{font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted);text-align:center}
.cp-week{font-size:11px;font-weight:800;color:var(--muted)}
.cp-cell{display:inline-flex;align-items:center;justify-content:center;height:34px;border-radius:9px;border:1.5px solid transparent;font-weight:800;font-size:13px;cursor:pointer;color:#fff}
.cp-cell.a{background:var(--blue)}
.cp-cell.b{background:var(--amber)}
.cp-cell:hover{filter:brightness(1.08)}
.cp-legend .cp-cell{height:22px;width:26px;font-size:11px;cursor:default;vertical-align:middle}
@media (max-width:719px){.cp-row{grid-template-columns:48px repeat(7,1fr)}.cp-cell{height:30px;font-size:12px}.cp-week{font-size:10px}}
.btn.go{background:var(--green);color:#fff;border-color:var(--green)}
.btn.go:hover{filter:brightness(1.06);color:#fff}

.import-howto p{font-size:12.5px;line-height:1.5;margin:8px 0}

.btn.pri#confirm-ok{background:var(--blue);color:#fff}

.plain-list{margin:0;padding-left:18px;font-size:13px;line-height:1.6}

/* drop an .ics on the New event panel */
.ics-drop{display:flex;align-items:center;gap:9px;margin:8px 0 0;padding:9px 12px;border:1.5px dashed #b9c3dc;border-radius:11px;background:#f5f7fc;color:var(--blue-d);font-size:12.5px;font-weight:700;cursor:pointer;line-height:1.35}
.ics-drop svg{flex:none}
.ics-drop:hover,.ics-drop.over{background:#e8edf9;border-color:var(--blue)}
.ics-drop.busy{opacity:.6;pointer-events:none}

/* the color a followed calendar gets, on the Friends and Following tabs */
.follow-color{display:flex;align-items:center;gap:6px;margin:8px 0 0;justify-content:center}
.follow-color .dot{width:12px;height:12px;border-radius:50%;flex:none}
.follow-wrap{display:flex;flex-direction:column;gap:0}
.follow-wrap .follow-color{justify-content:flex-end;margin:4px 0 8px}

/* Calendar Rules: three sections and a housekeeping line */
.rules-page{max-width:1180px;margin:0 auto}
.this-cal{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:center}
.this-cal .avatar-form{gap:12px}
.this-name{flex:1 1 300px;gap:8px}
.this-name .input{flex:1;min-width:0}
.homes-line{flex-wrap:wrap;gap:10px 14px;align-items:center;margin-bottom:4px}
.homes-line .homes-choice .btn{padding:7px 12px}
.rules-split{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px;margin-top:14px;padding-top:14px;border-top:1px solid #efeae0}
@media (max-width:760px){.rules-split{grid-template-columns:1fr}}
.fold{margin-top:12px;border-top:1px solid #efeae0;padding-top:4px}
.fold>summary{cursor:pointer;font-weight:800;font-size:13px;padding:8px 0;list-style:none;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fold>summary::-webkit-details-marker{display:none}
.fold>summary::before{content:'';width:7px;height:7px;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(-45deg);margin:0 4px 0 2px;flex:none;transition:transform .15s}
.fold[open]>summary::before{transform:rotate(45deg);margin-top:-3px}
.fold>summary .muted{font-weight:600}
.fold-body{padding:6px 0 4px}
.card>.fold:first-child{margin-top:0;border-top:0;padding-top:0}
.hk-line{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin-top:18px}
.hk-line>form{margin:0}

/* setup: the calendars screen and the family screen */
.app-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.app-chip{font:inherit;font-size:13px;font-weight:700;color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:8px 14px;min-height:40px;cursor:pointer}
.app-chip.on{background:var(--blue);border-color:var(--blue);color:#fff}
.ask-note{display:flex;gap:10px;align-items:flex-start;margin:0 0 14px;padding:10px 12px;background:#f1f4fb;border:1px solid #d6dff0;border-radius:0 12px 12px 12px}
.ask-av{background:var(--green);color:#fff;flex:none;font-size:11px}
.ask-text{font-size:13px;line-height:1.45}
.or-line{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;margin:14px 0 10px}
.or-line span{flex:1;height:1px;background:var(--line)}
.found-card{border:1.5px solid var(--green)}
.found-ev{display:flex;gap:10px;padding:7px 10px;background:var(--soft);border-radius:8px;font-size:13px;margin-top:6px}
.found-ev .muted{width:76px;flex:none}
.kid-row[hidden]{display:none}
/* the Finish setting up card on the Agenda */
.checklist{border:1.5px solid var(--green);margin:0 0 12px}
.ck-row{padding:8px 0}
.ck-ring{width:20px;height:20px;border-radius:50%;border:2px solid var(--line);flex:none}
.ck-close{font-size:20px;line-height:1;padding:2px 6px;color:var(--muted)}
.hk-line .muted{flex:1 1 220px}

/* the event panel: share with another family */
.share-pop{margin-top:8px;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff}
.share-list{max-height:220px;overflow:auto;margin-top:8px;display:flex;flex-direction:column;gap:2px}
.share-row{display:flex;gap:8px;align-items:center;padding:7px 4px;font-size:13px;cursor:pointer;border-radius:6px}
.share-row:hover{background:var(--soft)}
.share-row input{width:18px;height:18px;margin:0}
.share-row[hidden]{display:none}

/* Messages: an inbox beside the conversation on a computer, one at a time on a phone */
.msgs-wrap{max-width:720px;margin:0 auto}
.msgs-split{display:grid;grid-template-columns:360px minmax(0,1fr);gap:16px;max-width:1180px;margin:0 auto;align-items:start}
.inbox-head{display:flex;align-items:center;justify-content:space-between;margin:4px 2px 10px}
.inbox-head b{font-size:18px}
.btn.pill{border-radius:999px}
.ask-card{border:1.5px solid #f4b942;border-radius:12px;background:#fff;padding:10px 12px;margin:0 0 12px}
.ask-head{font-size:9.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#8a5a00;margin-bottom:6px}
.ask-item{display:flex;flex-direction:column;gap:8px;padding:6px 0}
.ask-item+.ask-item{border-top:1px solid #efeae0;padding-top:10px}
.ask-actions{display:flex;gap:6px;align-items:center;margin:0}
.ask-actions .btn{flex:1}
.ask-menu{flex:0 0 auto}
.ask-menu summary{min-width:40px}
.inbox-list{overflow:hidden}
.inbox-row{display:flex;gap:12px;align-items:center;padding:11px 14px;text-decoration:none;color:var(--ink);border-bottom:1px solid #efeae0}
.inbox-row:last-child{border-bottom:0}
.inbox-row:hover{background:#fdf9ef}
.inbox-row.on{background:#eef1fb;box-shadow:inset 3px 0 0 var(--blue)}
.inbox-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.inbox-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.inbox-top b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbox-when{font-size:11px;color:var(--muted);flex:none}
.inbox-preview{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbox-preview.unread{color:var(--ink);font-weight:600}
.inbox-dot{width:10px;height:10px;border-radius:50%;background:var(--red);flex:none}
.av.l{width:44px;height:44px;font-size:17px}
.convo-empty{min-height:320px;display:flex;align-items:center;justify-content:center}
.convo{display:flex;flex-direction:column;min-height:min(78vh,760px);max-height:calc(100vh - 150px)}
.convo-head{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #efeae0}
.convo-back{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:var(--blue-d);text-decoration:none;font-size:24px;font-weight:700;margin-left:-6px}
.convo-name{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.convo-who{display:block;font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.convo-menu .menu-panel{right:0;min-width:230px}
.convo-menu form{margin:0}
.convo-tools{padding:10px 14px;border-bottom:1px solid #efeae0;background:#fbf9f3}
.bubbles{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.day-sep{text-align:center;font-size:11px;font-weight:700;color:var(--muted);margin:4px 0}
.bubble-wrap{align-self:flex-start;max-width:84%;display:flex;flex-direction:column;gap:3px}
.bubble-wrap.mine{align-self:flex-end;align-items:flex-end}
.bubble-who{font-size:11px;color:var(--muted);padding-left:6px}
.bubble{background:#fff;border:1px solid #e6e0d2;border-radius:16px 16px 16px 4px;padding:9px 13px;font-size:14px;line-height:1.4}
.mine .bubble{background:var(--blue);color:#fff;border-color:var(--blue);border-radius:16px 16px 4px 16px}
.bubble.special{border:1.5px solid #c9d3ee}
.bubble-time{font-size:11px;color:var(--muted);padding-right:6px}
.ev-card{background:#fff;border:1.5px solid var(--green);border-radius:16px 16px 16px 4px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;min-width:240px}
.mine .ev-card{border-radius:16px 16px 4px 16px}
.ev-badge{width:44px;border-radius:8px;background:var(--blue);color:#fff;text-align:center;padding:4px 0;flex:none;display:flex;flex-direction:column;line-height:1.1}
.ev-badge span{font-size:9px;font-weight:800;letter-spacing:.5px}
.ev-badge b{font-size:18px}
.ev-state{font-size:12px;color:var(--muted);font-weight:700}
.ev-state.ok{color:#1f7a3f}
.compose-bar{display:flex;gap:8px;align-items:flex-end;padding:10px 12px;border-top:1px solid #efeae0;background:#fff;position:sticky;bottom:0;margin:0}
.compose-bar textarea{flex:1;border-radius:20px;padding:10px 14px;min-height:44px;max-height:160px;resize:none;line-height:1.35}
.send-btn{width:44px;height:44px;border-radius:50%;background:var(--blue);color:#fff;border:0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.send-btn:hover{background:var(--blue-d)}
.newmsg{padding:12px 14px}
.to-box{display:flex;flex-wrap:wrap;gap:6px;align-items:center;border:1.5px solid var(--blue);border-radius:12px;padding:8px 10px;min-height:44px;background:#fff}
.to-chips{display:contents}
.to-chip{display:inline-flex;align-items:center;gap:4px;background:#eef1fb;color:var(--blue-d);border-radius:999px;padding:4px 8px 4px 10px;font-size:13px;font-weight:700}
.to-chip button{font:inherit;background:none;border:0;color:inherit;padding:0 2px;font-size:15px;line-height:1;cursor:pointer}
.to-search{font:inherit;font-size:14px;border:0;outline:0;flex:1;min-width:140px;background:transparent;min-height:28px}
.pick-list{overflow:hidden;margin-bottom:4px}
.pick-row{display:flex;gap:12px;align-items:center;padding:10px 14px;border-bottom:1px solid #efeae0;cursor:pointer;min-height:48px;box-sizing:border-box}
.pick-row:last-child{border-bottom:0}
.pick-row input{width:20px;height:20px;margin:0}
.pick-row[hidden]{display:none}
@media (max-width:899px){
 .msgs-split{display:block}
 .only-inbox .convo-empty{display:none}
 .only-convo .inbox{display:none}
 .convo{max-height:none;min-height:calc(100vh - 230px)}
}
@media (max-width:720px){
 .compose-bar{bottom:calc(64px + env(safe-area-inset-bottom))}
}
.ask-item .av,.inbox-row .av,.convo-head .av,.pick-row .av{flex-shrink:0}
.pick-row .gw b,.pick-row .gw small,.ask-item .gw b,.ask-item .gw small{display:block}
.pick-row .gw small,.ask-item .gw small{color:var(--muted);font-size:12px;font-weight:600}
@media (max-width:899px){ .convo{height:calc(100vh - 236px);min-height:420px} }
.av.m{width:36px;height:36px;font-size:14px}

/* trips */
.trip-pin{display:flex;gap:10px;align-items:center;padding:10px 14px;background:#f1f4fb;border-bottom:1px solid #d6dff0;text-decoration:none;color:var(--ink)}
.trip-pin-icon{width:32px;height:32px;border-radius:50%;background:var(--blue);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:15px;flex:none}
.trip-pin .gw b{display:block;font-size:13px}
.trip-pin .gw small{display:block;font-size:11.5px;color:var(--muted)}
.trip-page .trip-head{padding:12px 14px 0}
.trip-tabs{display:flex;gap:4px;margin-top:8px;border-top:1px solid #efeae0}
.trip-tab{font:inherit;font-size:13px;font-weight:700;color:var(--muted);background:none;border:0;border-bottom:2.5px solid transparent;padding:10px 12px;cursor:pointer;min-height:44px}
.trip-tab.on{color:var(--blue-d);border-bottom-color:var(--blue)}
.trip-panel{margin-top:12px}
.trip-option{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #efeae0}
.trip-option:last-of-type{border-bottom:0}
.trip-option.chosen{background:#f0f8f2;margin:0 -12px;padding:10px 12px;border-radius:8px}
.trip-option .gw b{display:block;font-size:13.5px}
.trip-option .gw small{display:block;font-size:12px;color:var(--muted)}
.trip-item .gw b,.trip-item .gw small{display:block}
.trip-item .gw small{font-size:12px;color:var(--muted)}
.cost-grid{display:flex;flex-direction:column;gap:4px}
.cost-row{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:8px;font-size:13px;padding:6px 0;border-bottom:1px solid #efeae0}
.cost-row .ok{color:#1f7a3f;font-weight:700}
.cost-row .err{color:var(--red);font-weight:700}
.sharing-line{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin-top:10px}
@media (max-width:600px){.cost-row{grid-template-columns:1fr 1fr}}
