/* Layout for the Billeter Home site. Colors, sizes and fonts all come from tokens.css and the design system. */

html, body { margin: 0; }
body { background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font-sans); -webkit-text-size-adjust: 100%; }
h1, h2, h3, p { margin-top: 0; }

.app-stickyhead { position: sticky; top: 0; z-index: 20; }
.app-header { background: var(--surface-raised); border-bottom: var(--border-width) solid var(--border); }
.app-header-inner, .app-tabs, .app-main { box-sizing: border-box; max-width: var(--container); margin: 0 auto; padding-left: var(--space-4); padding-right: var(--space-4); }
.app-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); padding-bottom: var(--space-4); }
.app-user { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.app-tabs-wrap { position: relative; background: var(--surface-raised); border-bottom: var(--border-width) solid var(--border); }
.app-tabs { padding-top: var(--space-3); padding-bottom: var(--space-3); overflow-x: auto; }
.app-tabsfold { display: none; }
@media (max-width: 640px) {
  .app-tabsfold { display: flex; width: 100%; align-items: center; justify-content: center; gap: 4px; min-height: 26px; padding: 0; border: 0; background: var(--surface-sunken); color: var(--ink-muted); font: 600 11px/1 var(--font-sans); letter-spacing: .02em; cursor: pointer; }
  .app-tabs-wrap.is-folded .app-tabs, .app-tabs-wrap.is-folded .app-menu { display: none; }
}
.app-main { padding-top: var(--space-5); padding-bottom: var(--space-8); }

.app-center { box-sizing: border-box; max-width: 720px; margin: 0 auto; padding: var(--space-7) var(--space-4) var(--space-8); display: flex; flex-direction: column; align-items: center; gap: var(--space-5); text-align: center; }
.app-center .bh-wordmark { align-items: center; }
.app-center .bh-card { width: 100%; text-align: left; }
.app-notice { width: 100%; box-sizing: border-box; text-align: left; }

.app-stack { display: flex; flex-direction: column; gap: var(--space-5); }
.app-lead { margin: 0; font: 500 18px/28px var(--font-sans); color: var(--ink-muted); }
.app-small { margin: 0; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.app-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: var(--surface-sunken); padding: 1px 6px; border-radius: var(--radius-sm); }
.app-flash { margin: 0; }

/* People */
.app-people { display: flex; flex-direction: column; }
.app-person { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; border-bottom: var(--border-width) solid var(--border); }
.app-person:last-child { border-bottom: 0; }
.app-person.is-off { opacity: 0.8; }
.app-person-who { flex: 1 1 200px; display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.app-person-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.app-person-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.app-form { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-sunken); }
.app-form .bh-input { background: var(--surface-raised); }
.app-form-wide { grid-column: 1 / -1; }
.app-swatch { display: inline-flex; align-items: center; gap: var(--space-2); }

/* Settings */
.app-settings-group { margin: 0 0 var(--space-5); }
.app-settings-group:last-child { margin-bottom: 0; }
.app-dl { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 1.4fr); gap: 0 var(--space-4); margin: 0; }
.app-dl dt, .app-dl dd { margin: 0; padding: var(--space-3) 0; border-top: var(--border-width) solid var(--border); }
.app-dl dt { font-weight: 600; }
.app-dl dd { word-break: break-word; }
.app-dl .app-small { display: block; margin-top: 2px; }
@media (max-width: 600px) {
  .app-dl { grid-template-columns: 1fr; }
  .app-dl dd { border-top: 0; padding-top: 0; }
}

/* Sign-in tiles should use the full width of the page column */
.app-center .bh-signin { width: 100%; }
.bh-card-head .bh-btn { white-space: nowrap; }

/* People list: name a touch larger, Edit/Unlock small (the tap area stays comfortable via the invisible margin) */
.app-person-who .bh-person { font-size: 18px; }
.app-person-who .bh-dot { width: 36px; height: 36px; font-size: 18px; }
.app-person-actions .bh-btn { position: relative; min-height: 32px; padding: 0 var(--space-4); border-width: 1px; font-size: 14px; }
.app-person-actions .bh-btn::after { content: ""; position: absolute; inset: -8px -4px; }

/* Light / Dark / Auto */
.app-theme { align-self: flex-start; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface-raised); }
.app-theme-btn { position: relative; min-height: 32px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); font: 600 14px/1 var(--font-sans); cursor: pointer; }
.app-theme-btn::after { content: ""; position: absolute; inset: -8px -2px; }
.app-theme-btn.is-on { background: var(--primary); color: var(--on-primary); }
.app-theme-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* Editable settings */
.app-setting { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.app-setting-input { flex: 1 1 200px; max-width: 320px; }
.app-saved { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--ok); font: 600 14px/20px var(--font-sans); }
.app-dl dd .bh-error { margin-top: var(--space-2); }

/* Board: compact, so a kid sees most of the day without scrolling */
.app-board-page { gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--kid, transparent) 14%, var(--surface)); }
.app-kidtabs .bh-tab.is-active { background: var(--kid); border-color: var(--kid); color: var(--kid-ink); }
.app-board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.app-board-headleft { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.app-board-head .bh-heading { font-size: 24px; line-height: 28px; }
.app-weeknav { display: flex; align-items: center; gap: var(--space-2); }
.app-weeknav .bh-btn { min-width: 40px; min-height: 40px; padding: 0; font-size: 20px; }
.app-weeklabel { font: 600 15px/24px var(--font-sans); color: var(--ink-muted); min-width: 110px; text-align: center; }
.app-board-page .bh-tab { min-height: 40px; padding: 0 var(--space-3); font-size: 15px; }
.app-board-page .bh-tabs { gap: var(--space-1); }
.app-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-3); align-items: start; }
.app-board .bh-card-head { padding: var(--space-2) var(--space-4); min-height: 48px; }
.app-board .bh-card-head h3 { font-size: 17px; line-height: 24px; }
.app-board .bh-card-body { padding: var(--space-2) var(--space-4) var(--space-3); }
.app-board .app-mytodos-card.bh-card { border: 2px solid var(--kid, var(--accent)); }
.app-stack--tight { gap: var(--space-2); }
.app-chores { display: flex; flex-direction: column; }
.app-chores .bh-eyebrow { margin: var(--space-2) 0 0; }
.app-board .bh-chore { padding: var(--space-2) 0; gap: var(--space-2) var(--space-3); }
.app-board .bh-chore-main { gap: 0; }
.app-board .bh-chore-title { font-size: 13px; line-height: 19px; }
.app-board .bh-chore-meta { line-height: 18px; font-size: 13px; }
.app-board .bh-points { padding: 4px 8px; font-size: 15px; }
.app-board .bh-check { width: 32px; height: 32px; margin: -7px; }
.app-board .bh-check-box { width: 13px; height: 13px; border-width: 1.5px; border-radius: 4px; }
.app-board .bh-check-box svg { width: 8px; height: 8px; }
.app-board .bh-card-head { background: var(--primary-tint); }
.app-head-aside { display: inline-flex; align-items: center; gap: var(--space-2); }
.app-count { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--accent); font: 700 13px/18px var(--font-sans); white-space: nowrap; }
.app-board .bh-chore-details { margin-top: var(--space-1); }

/* Header: a small Sign out */
.app-user .bh-btn { position: relative; min-height: 34px; padding: 0 var(--space-4); border-width: 1px; font-size: 14px; }
.app-user .bh-btn::after { content: ""; position: absolute; inset: -7px -4px; }
/* Wide screens: every page uses the same wide frame, so the menu row never moves between tabs (tablets and phones are unchanged) */
@media (min-width: 1200px) {
  .app-header-inner, .app-tabs, .app-main { max-width: 1760px; }
}
.app-board .bh-chore { align-items: start; }
.app-board .bh-chore-side { align-self: start; }

/* Points balance on the board */
.app-balance { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); font: 600 15px/22px var(--font-sans); color: var(--ink-muted); }
.app-balance strong { padding: 1px 10px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--accent); font: 700 17px/24px var(--font-impact); letter-spacing: 0.02em; }

/* Approvals (parents) */
.app-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); }
.app-balance-card { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-sunken); }
.app-balance-num { font: 700 22px/1 var(--font-impact); color: var(--accent); }
.app-balance-num small { font: 600 13px/1 var(--font-sans); color: var(--ink-muted); }
.app-approvals { display: flex; flex-direction: column; }
.app-approval { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; border-top: var(--border-width) solid var(--border); }
.app-approval:first-child { border-top: 0; padding-top: 0; }
.app-approval { flex-wrap: nowrap; padding: var(--space-2) 0; gap: var(--space-3); }
.app-approval-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.app-approval-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); }
.app-approval-title { font-weight: 600; }
.app-approval-when { white-space: nowrap; }
.app-approval-more summary { cursor: pointer; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.app-approval-more ul { margin: var(--space-1) 0 0; padding-left: var(--space-5); font: 400 14px/20px var(--font-sans); }
.app-pick { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 32px; min-height: 40px; cursor: pointer; font: 600 14px/20px var(--font-sans); color: var(--ink-muted); }
.app-pick input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.app-selectbar { position: sticky; bottom: var(--space-3); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: var(--border-width) solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.app-selectbar-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (max-width: 640px) { .app-approval { flex-wrap: wrap; } .app-approval-main { flex-basis: calc(100% - 60px); } }

/* Morning announcements */
.app-announce { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: var(--border-width) solid var(--border); border-left: 6px solid var(--kid, var(--primary)); }
.app-announce .bh-eyebrow { margin: 0 0 var(--space-1); }
.app-announce-item p { margin: 0; font: 500 17px/26px var(--font-sans); }
.app-announce-item + .app-announce-item { margin-top: var(--space-2); }
.app-approval-actions { display: flex; gap: var(--space-2); }
.app-approval-actions .bh-btn, .app-board-page ~ * .bh-card-head .bh-btn, .app-approvals ~ * .bh-btn { position: relative; min-height: 36px; padding: 0 var(--space-4); border-width: 1px; font-size: 14px; }
.app-approval-actions .bh-btn::after { content: ""; position: absolute; inset: -6px -4px; }

/* Packing list */
.app-packline { align-self: flex-start; display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--accent); font: 600 14px/22px var(--font-sans); text-decoration: none; }
.app-packline:hover { text-decoration: underline; }
.app-packline:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.app-packadd { display: grid; grid-template-columns: minmax(180px, 3fr) minmax(90px, 1fr) minmax(140px, 1.5fr) auto; gap: var(--space-3); align-items: end; }
@media (max-width: 720px) { .app-packadd { grid-template-columns: 1fr 1fr; } .app-packadd > :first-child { grid-column: 1 / -1; } }

/* Settings: condensed */
.app-grid { display: flex; flex-direction: column; }
.app-gridrow { display: grid; grid-template-columns: minmax(150px, 1.6fr) repeat(3, minmax(110px, 1fr)); gap: var(--space-3); align-items: center; padding: var(--space-1) 0; border-top: var(--border-width) solid var(--border); }
.app-gridrow--head { border-top: 0; font: 600 12px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.app-gridname { font-weight: 600; }
.app-gridselect { min-height: 36px; padding: 0 var(--space-2); font-size: 14px; width: 100%; max-width: 150px; }
.app-gridcell-err { display: block; font-size: 12px; line-height: 16px; }
.app-settings-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-4); align-items: start; }
.app-settings-cols .app-dl dt, .app-settings-cols .app-dl dd { padding: var(--space-2) 0; }
.app-settings-cols .app-dl { grid-template-columns: minmax(120px, 1fr) minmax(0, 1.3fr); }
.app-settings-cols .bh-input { min-height: 36px; font-size: 14px; }
@media (max-width: 640px) {
  .app-gridrow { grid-template-columns: 1fr 1fr 1fr; }
  .app-gridrow--head { display: none; }
  .app-gridname { grid-column: 1 / -1; padding-top: var(--space-1); }
  .app-gridrow > div[data-label]::before { content: attr(data-label); display: block; font: 600 11px/14px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
}
.app-appearance { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }

/* Home */
.app-homegrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); align-items: start; }
@media (min-width: 900px) { .app-homegrid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); } }
.app-dinner { margin: 0; font: 600 22px/30px var(--font-sans); color: var(--ink); }
.app-upcoming, .app-goingon { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); font: 500 16px/24px var(--font-sans); }
.app-goingon li { position: relative; padding-left: var(--space-5); }
.app-goingon li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.app-agenda { display: flex; flex-direction: column; gap: var(--space-3); }
.app-agenda-day .bh-eyebrow { margin: 0 0 var(--space-1); }
.app-agenda-day.is-today .bh-eyebrow { color: var(--primary); }
.app-event { display: flex; align-items: baseline; gap: var(--space-3); padding: 2px 0; }
.app-event-time { flex: 0 0 80px; white-space: nowrap; font-variant-numeric: tabular-nums; font: 600 14px/22px var(--font-sans); color: var(--ink-muted); }
.app-event-title { font: 400 16px/24px var(--font-sans); }
.app-dot { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.25); }
.app-legend { display: inline-flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font: 500 13px/18px var(--font-sans); color: var(--ink-muted); }
.app-legend-item { display: inline-flex; align-items: center; gap: 6px; }

/* Announcements: solid green so they stand out */
.app-announce { padding: var(--space-4) var(--space-5); border: 0; border-radius: var(--radius-md); background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.app-announce .bh-eyebrow { color: inherit; opacity: 0.85; }
.app-announce-item p { font: 600 20px/28px var(--font-sans); color: inherit; }
.app-announce-item .app-small { display: block; color: inherit; opacity: 0.85; }
.app-announce-item + .app-announce-item { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, 0.35); }

/* Calendar views */
.app-calviews { flex-wrap: wrap; align-self: flex-start; max-width: 100%; padding: 5px; row-gap: 4px; }
.is-loading { opacity: 0.55; transition: opacity 0.15s; }
.app-monthnav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.app-monthnav .bh-btn { min-width: 40px; min-height: 36px; padding: 0 var(--space-3); font-size: 18px; }
.app-monthlabel { min-width: 150px; text-align: center; font: 700 17px/24px var(--font-sans); }
.app-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.app-month-head { padding: 2px 0; text-align: center; font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.app-mcell { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 92px; padding: 4px 5px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); text-align: left; cursor: pointer; font: inherit; overflow: hidden; }
.app-mcell:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.app-mcell.is-out { background: var(--surface-sunken); color: var(--ink-muted); }
.app-mcell.is-today .app-mcell-num { background: var(--primary); color: var(--on-primary); }
.app-mcell.is-picked { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.app-mcell-num { align-self: flex-start; min-width: 22px; padding: 0 5px; border-radius: var(--radius-pill); text-align: center; font: 700 13px/22px var(--font-sans); }
.app-mevent { display: flex; align-items: center; gap: 4px; font: 500 12px/16px var(--font-sans); min-width: 0; }
.app-mevent > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-mevent .app-dot { width: 8px; height: 8px; }
.app-mmore { font: 600 11px/14px var(--font-sans); color: var(--ink-muted); }
@media (max-width: 640px) {
  .app-mcell { min-height: 54px; align-items: center; }
  .app-mcell-num { align-self: center; }
  .app-mevent > span { display: none; }
  .app-mevent { display: inline-flex; }
  .app-mcell { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: flex-start; }
  .app-mcell-num { flex: 0 0 100%; }
  .app-mmore { display: none; }
}

/* Birthdays & anniversaries strip, and the Edit Home panel on the right (parents) */
.app-celebrate { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-sunken); border: var(--border-width) solid var(--border); border-left: 4px solid var(--primary); }
.app-celebrate .bh-eyebrow { margin: 0 0 2px; font-size: 11px; line-height: 16px; }
.app-celebrate ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px var(--space-4); font: 500 15px/22px var(--font-sans); }
.app-celebrate li { display: flex; gap: var(--space-2); align-items: baseline; }
.app-celebrate-when { font: 600 11px/18px var(--font-sans); text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; }
.app-celebrate li.is-today { font-weight: 700; }
.app-celebrate li.is-today .app-celebrate-when { color: var(--primary); opacity: 1; }
.app-homewrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; }
@media (min-width: 1000px) { .app-homewrap { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); } .app-homeedit { position: sticky; top: var(--space-3); max-height: calc(100vh - 2 * var(--space-3)); overflow: auto; } }
.app-homeform { display: grid; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.app-homeform textarea.bh-input { resize: vertical; min-height: 44px; font-family: inherit; }
.app-homeform-dates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.app-homelist ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.app-homelist li { display: flex; justify-content: space-between; gap: var(--space-2); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.app-homelist li.is-past { opacity: 0.55; }
.app-homelist li > div { display: flex; flex-direction: column; min-width: 0; }
.app-homelist-text { font: 600 16px/22px var(--font-sans); overflow-wrap: anywhere; }
.app-homelist-actions { display: flex; gap: var(--space-1); flex: none; }
.app-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
/* Two short fields that should always sit side by side, even on a narrow phone (no wrap to one wide column). */
.app-row2 { display: flex; gap: var(--space-2); }
.app-row2 > .bh-field { flex: 1 1 0; min-width: 0; }
.app-homelist-actions .bh-btn { position: relative; min-height: 32px; padding: 0 var(--space-3); border-width: 1px; font-size: 14px; }
.app-homelist-actions .bh-btn::after { content: ""; position: absolute; inset: -6px -3px; }
.app-dots { display: inline-flex; gap: 2px; flex: 0 0 auto; align-items: center; }
.app-calviews + * , .app-legend { }
.app-legend { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.app-dots { flex: 0 0 48px; width: 48px; flex-wrap: nowrap; align-items: center; height: 22px; }
.app-dots .app-dot { box-sizing: border-box; width: 10px; height: 10px; }
.app-dots .app-dot + .app-dot { margin-left: -3px; }
.app-keybar { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.app-keybar .app-legend { margin: var(--space-2) 0 0; padding: 0; border: 0; }
.app-keybtn { background: none; border: 0; padding: 6px 0; min-height: 32px; font: 600 13px/18px var(--font-sans); color: var(--ink-muted); text-decoration: underline; cursor: pointer; }
.app-keybtn { display: block; }
.app-keybar .app-legend { display: flex; }


/* Dinner card: Today, a divider, then the next few days with the day names in one column */
.app-dinnercard { display: flex; flex-direction: column; gap: var(--space-3); }
.app-dinner-today .bh-eyebrow, .app-dinner-next .bh-eyebrow { margin: 0 0 var(--space-1); }
.app-dinner-next { padding-top: var(--space-3); border-top: 1px solid var(--border); }
.app-dinner-next .app-upcoming li { display: flex; gap: var(--space-3); align-items: baseline; }
.app-dinner-day { flex: 0 0 96px; font: 600 13px/22px var(--font-sans); color: var(--ink-muted); }

/* Collapsible Tasks cards */
.app-collapsible.is-collapsed .bh-card-body { display: none; }
.app-collapsible.is-collapsed .bh-card-head { border-bottom: 0; }
.app-foldbar { display: flex; gap: var(--space-2); justify-content: flex-end; }

/* Edit Home / Add buttons: small */
.app-board-head .bh-btn, .app-homeedit .bh-card-head .bh-btn { position: relative; min-height: 32px; padding: 0 var(--space-4); border-width: 1px; font-size: 14px; line-height: 20px; }
.app-board-head .bh-btn::after, .app-homeedit .bh-card-head .bh-btn::after { content: ""; position: absolute; inset: -6px -3px; }
.app-homeform .bh-btn { min-height: 36px; font-size: 14px; padding: 0 var(--space-4); }
.app-celebrate-icon { display: flex; flex: none; color: #3A3F44; }
.app-celebrate-body { min-width: 0; flex: 1; }
:root[data-theme="dark"] .app-celebrate-icon { color: #D5D8DB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-celebrate-icon { color: #D5D8DB; } }

.app-pointspanel { display: grid; gap: var(--space-3); margin-top: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); max-width: 460px; }
.app-pointshead { margin: 0; font: 600 15px/22px var(--font-sans); }
.app-pointsactions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.app-history { font: 500 14px/22px var(--font-sans); color: var(--ink-muted); }
.app-history summary { cursor: pointer; font-weight: 600; }
.app-history ul { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.app-history small { color: var(--ink-muted); }
.app-hist-pos { font-weight: 700; color: var(--accent); }
.app-hist-neg { font-weight: 700; color: var(--danger, #A33A2E); }
/* ---------- Compact pass: smaller type, tighter spacing, shorter pills (inspired by the church site) ---------- */
body { font: 400 15px/22px var(--font-sans); }
.app-header-inner { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.app-header .bh-wordmark-name { font-size: 24px; }
.app-header .bh-wordmark-sub { font-size: 12px; }
.app-tabs { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.bh-tab { position: relative; min-height: 34px; padding: 0 var(--space-3); font-size: 14px; line-height: 20px; white-space: nowrap; }
.bh-tab::after { content: ""; position: absolute; inset: -5px -2px; }
.app-board-page .bh-tab { min-height: 34px; padding: 0 var(--space-3); font-size: 14px; }
.app-user .bh-btn, .app-user .bh-chip { min-height: 30px; font-size: 13px; }
.app-main { padding-top: var(--space-4); }
.app-stack { gap: var(--space-4); }
.bh-heading { font-size: 22px; line-height: 26px; }
.app-board-head .bh-heading { font-size: 22px; line-height: 26px; }
.bh-card-head { padding: var(--space-3) var(--space-4); }
.bh-card-head h3 { font-size: 16px; line-height: 22px; }
.bh-card-body { padding: var(--space-4); }
.bh-eyebrow, .bh-label { font-size: 11px; line-height: 14px; }
.bh-input { min-height: 38px; font-size: 15px; }
.bh-btn { min-height: 38px; padding: 0 var(--space-4); font-size: 14px; }
.app-weeknav .bh-btn { min-width: 34px; min-height: 34px; }
.app-dinner { font-size: 18px; line-height: 24px; }
.app-balance-num { font-size: 18px; }

/* Announcements: a soft green instead of the dark one */
.app-announce { padding: var(--space-3) var(--space-4); background: var(--accent-soft); color: var(--on-accent-soft); box-shadow: none; border-radius: var(--radius-md); }
.app-announce .bh-eyebrow { color: inherit; opacity: 0.8; }
.app-announce-item p { font: 600 16px/24px var(--font-sans); }
.app-announce-item + .app-announce-item { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }

/* ---------- Compact pass 2: body text 14px at most, smaller chores ---------- */
body { font: 400 14px/20px var(--font-sans); }
.app-lead { font-size: 14px; line-height: 20px; }
.app-weeklabel, .app-balance { font-size: 13px; line-height: 20px; }
.app-balance strong { font-size: 14px; line-height: 20px; padding: 0 8px; }
.app-announce-item p { font-size: 14px; line-height: 20px; }
.app-upcoming, .app-goingon, .app-event-title, .app-homelist-text { font-size: 14px; line-height: 20px; }
.app-celebrate ul { font-size: 13px; line-height: 18px; }
.app-dinner { font-size: 15px; line-height: 20px; }
.app-monthlabel { font-size: 14px; }
.app-monthnav .bh-btn { font-size: 15px; }
.bh-input, .bh-btn, select { font-size: 14px; }
.app-board-page .bh-tab { font-size: 13px; min-height: 30px; }
.app-board .bh-card-head h3 { font-size: 15px; line-height: 20px; }
.app-board .bh-card-head { padding: var(--space-2) var(--space-3); }
.app-board .bh-card-body { padding: var(--space-2) var(--space-3); }
.app-board .app-stack--tight { gap: var(--space-2); }

/* Chores: one tight line each; the room or category sits on the same line, and points are a small tag */
.app-board .bh-chore { padding: 3px 0; gap: var(--space-2); align-items: center; }
.app-board .bh-chore-main { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-2); }
.app-board .bh-chore-title { font-size: 13px; line-height: 19px; }
.app-board .bh-chore-title--btn { width: auto; }
.app-board .bh-chore-meta { font-size: 12px; line-height: 20px; }
.app-board .bh-chore-details { flex: 1 0 100%; font-size: 13px; line-height: 18px; padding: var(--space-1) var(--space-2); }
.app-board .bh-chore-tags { margin: 0; }
.app-board .bh-chore-side { align-self: center; }
.app-board .bh-points { padding: 2px 6px; font-size: 12px; line-height: 16px; }
.app-board .bh-check { width: 32px; height: 32px; margin: -7px; }
.app-board .bh-check-box { width: 13px; height: 13px; border-width: 1.5px; border-radius: 4px; }
.app-board .bh-check-box svg { width: 8px; height: 8px; }
.app-board .bh-eyebrow { font-size: 10px; margin: 0; }
.app-board .app-chores { margin: 0; }
.app-board .app-chores + .app-chores { margin-top: var(--space-1); }

/* Compact pass 2: People, Settings, header chip, tags */
.app-person { padding: var(--space-2) 0; }
.app-person-who .bh-person { font-size: 14px; }
.app-person-who .bh-dot { width: 26px; height: 26px; font-size: 13px; }
.app-person-actions .bh-btn { min-height: 28px; font-size: 13px; padding: 0 var(--space-3); }
.bh-tag { padding: 1px 6px; font-size: 10px; line-height: 14px; }
.app-gridselect { min-height: 30px; font-size: 13px; max-width: 130px; }
.app-gridrow--head { font-size: 11px; }
.app-settings-cols .app-dl dt, .app-settings-cols .app-dl dd { padding: var(--space-1) 0; }
.app-settings-group { margin-bottom: var(--space-4); }
.app-user .bh-person { font-size: 14px; }
.app-user .bh-person .bh-dot { width: 26px; height: 26px; font-size: 13px; }
.app-small { font-size: 13px; line-height: 18px; }
.app-balance-card { padding: var(--space-2) var(--space-3); }
.app-balance-num { font-size: 16px; }

/* Tidy Turfs: their own divider and the palette's soft green so they stand apart from the blue cards */
.app-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-3); margin: var(--space-2) 0 0; font: 700 12px/16px var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.app-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); opacity: 0.5; }
.app-board .app-turfcard .bh-card-head { background: var(--turf-tint); }
.app-board .app-turfcard .bh-card { border-color: var(--turf-line); }
:root { --turf-tint: #E7ECE6; --turf-line: #C5D2C6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --turf-tint: #2A372E; --turf-line: #3D5143; } }
:root[data-theme="dark"] { --turf-tint: #2A372E; --turf-line: #3D5143; }

/* Brighter: lighter washes so the page reads as clean white */
.app-board-page { background: color-mix(in srgb, var(--kid, transparent) 7%, var(--surface)); }
.app-board .bh-card-head { background: color-mix(in srgb, var(--primary) 7%, var(--surface-raised)); }
.app-board .app-turfcard .bh-card-head { background: var(--turf-tint); }
:root { --turf-tint: #E7ECE6; --turf-line: #C5D2C6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --turf-tint: #2A372E; --turf-line: #3D5143; } }
:root[data-theme="dark"] { --turf-tint: #2A372E; --turf-line: #3D5143; }
.app-celebrate { background: var(--surface-sunken); }
.app-announce { background: var(--announce-bg); }
:root { --announce-bg: #DDE7DE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --announce-bg: var(--accent-soft); } }
:root[data-theme="dark"] { --announce-bg: var(--accent-soft); }

/* ---------- Crisp refresh: white, brighter blue and green, soft shadows, rounder cards ---------- */
:root { --announce-bg: #DDF0E4; --turf-line: transparent; --radius-lg: 14px; }
.bh-card { border-color: var(--border); border-radius: 14px; }
.bh-card-head { background: transparent; border-bottom-color: var(--border); }
.bh-card-head h3 { color: var(--headline); font-weight: 700; }
.app-board .bh-card-head { background: transparent; }
.app-board-page { background: color-mix(in srgb, var(--kid, transparent) 9%, var(--surface)); }
.app-announce { box-shadow: none; }
/* Tidy Turfs: a solid green header bar so they are clearly their own group */
.app-board .app-turfcard .bh-card { border-color: var(--accent); }
.app-board .app-turfcard .bh-card-head { background: var(--accent); border-bottom-color: var(--accent); }
.app-board .app-turfcard .bh-card-head h3 { color: var(--on-accent); }
.app-divider { color: var(--accent); }
.app-divider::after { background: var(--accent); opacity: 0.35; }
.app-celebrate { background: var(--surface-sunken); border-left-color: var(--primary); }
.bh-tab.is-active, .bh-btn--primary { box-shadow: 0 1px 2px rgba(18, 48, 74, 0.2); }
.app-board .app-turfcard .app-chevbtn { color: var(--ink); }

/* Board background: a neutral cool gray (so the kid's color stands out against it), with a bar of their color on top */
:root { --board-bg: #F5F8FA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --board-bg: var(--surface-sunken); } }
:root[data-theme="dark"] { --board-bg: var(--surface-sunken); }
.app-board-page { background: var(--board-bg); border-top: 5px solid var(--kid, var(--border)); }

/* Tidy Turfs headers take the kid's own color */
.app-board .app-turfcard .bh-card { border-color: var(--kid, var(--accent)); }
.app-board .app-turfcard .bh-card-head { background: var(--kid, var(--accent)); border-bottom-color: var(--kid, var(--accent)); }
.app-board .app-turfcard .bh-card-head h3 { color: var(--kid-ink, var(--on-accent)); }
.app-divider { color: var(--ink-muted); }
.app-divider::after { background: var(--kid, var(--border-strong)); opacity: 0.8; }

/* On a kid's board, points, counts and ticks take that kid's color, with dark charcoal text on it */
.app-board-page .bh-points, .app-board-page .app-count, .app-board-page .app-balance strong, .app-board-page .app-packline { background: color-mix(in srgb, var(--kid) 38%, var(--surface-raised)); color: #1F2933; }
.app-board-page .bh-chore.is-done .bh-check-box { background: var(--kid); border-color: var(--kid); }
.app-board-page .bh-chore .bh-check { color: #1F2933; }
.app-board-page .app-balance-label { color: #1F2933; }
.app-board .app-turfcard .app-count { background: var(--surface-raised); }
.app-board-page .bh-tab.is-active { background: var(--kid); border-color: var(--kid); color: #1F2933; box-shadow: none; }

/* Todoist */
.app-tdwrap { border-bottom: 1px solid var(--border); }
.app-tdwrap:last-child { border-bottom: 0; }
.app-tdrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; padding: 6px 0; }
.app-tdcheck { position: relative; width: 18px; height: 18px; margin-top: 1px; padding: 0; border: var(--border-width) solid var(--border-strong); border-radius: 5px; background: var(--surface-raised); cursor: pointer; flex: none; }
.app-tdcheck::after { content: ""; position: absolute; inset: -10px; }
.app-tdmain { display: flex; flex-direction: column; min-width: 0; text-align: left; border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.app-tdtitle { font: 600 14px/20px var(--font-sans); overflow-wrap: anywhere; }
.app-tdtitle.is-urgent { color: var(--danger, #A33A2E); }
.app-tdrepeat { color: var(--ink-muted); font-weight: 400; }
.app-tdnote { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); overflow-wrap: anywhere; white-space: pre-line; max-height: 32px; overflow: hidden; }
.app-tdmeta { font: 500 12px/20px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.app-linkbtn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--primary); text-decoration: underline; cursor: pointer; }
.app-tddetail { display: grid; gap: var(--space-2); padding: var(--space-3); margin: 0 0 var(--space-2) 32px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.app-tdform { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-2) var(--space-3); align-items: end; }
.app-tdsec-div { grid-column: 1 / -1; height: 1px; margin: 2px 0; background: var(--border); border: 0; }
.app-tdfield--wide { grid-column: 1 / -1; }
.app-tdfield { display: grid; gap: 4px; min-width: 0; }
.app-tdfield--btn { align-self: end; }
.app-tdactions { display: flex; gap: var(--space-2); }
.app-tdsubs { display: grid; gap: 4px; }
.app-tdsub { display: flex; align-items: center; gap: var(--space-3); }
.app-tdinline { display: flex; gap: var(--space-2); }
.app-tdnotes { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font: 400 13px/18px var(--font-sans); white-space: pre-line; }
.app-tdnotes li { padding: 4px 8px; background: var(--surface-raised); border-radius: var(--radius-sm); }
.app-tdbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.app-tdproject { width: auto; min-width: 160px; max-width: 260px; }
/* One step at a time (focus mode) */
.app-focuspreview { align-self: start; }
.app-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.app-step { display: inline-flex; align-items: center; gap: var(--space-2); padding: 4px 12px 4px 4px; border-radius: var(--radius-pill); background: var(--surface-raised); border: 1px solid var(--border); font: 600 13px/20px var(--font-sans); color: var(--ink-muted); }
.app-stepnum { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-sunken); font: 700 12px/1 var(--font-sans); }
.app-step.is-now { background: var(--kid); border-color: var(--kid); color: var(--kid-ink); }
.app-step.is-now .app-stepnum { background: var(--surface-raised); color: var(--kid-ink); }
.app-step.is-done { color: var(--ink-muted); }
.app-step.is-done .app-stepnum { background: var(--kid); color: var(--kid-ink); }
.app-stephead { grid-column: 1 / -1; margin: 0; font: 700 18px/26px var(--font-sans); color: var(--headline); }
.app-board--one { grid-template-columns: minmax(0, 640px); }
.app-focus .bh-card-head h3 { font-size: 20px; line-height: 28px; }
.app-focus .bh-chore { padding: 10px 0; }
.app-focus .bh-chore-title { font-size: 15px; line-height: 21px; }
.app-focus .bh-check { width: 36px; height: 36px; margin: -8px; }
.app-focus .bh-check-box { width: 14px; height: 14px; border-radius: 4px; }
.app-focus .bh-check-box svg { width: 9px; height: 9px; }
.app-focus .bh-points { font-size: 14px; }
.app-focusdetails { margin: 0 0 var(--space-2) 40px; padding: var(--space-2) var(--space-3); list-style: none; background: var(--surface-sunken); border-radius: var(--radius-md); font: 400 16px/24px var(--font-sans); }
.app-focusdetails li + li { margin-top: 4px; }
/* Showing more than one task at once in one-step mode: only the next-up one (first, undimmed) stays bold and dark. */
.app-focusnext, .app-focusnext .app-focusrow { opacity: .62; }
.app-focusnext .bh-chore-title { font-size: 15px; font-weight: 500; color: var(--ink-muted); }
.app-donemsg { margin: 0; font: 600 18px/26px var(--font-sans); }

/* Approvals: points and balances take each kid's color; the preview checkbox too */
.app-balance-card[style] { background: color-mix(in srgb, var(--kid) 38%, var(--surface-raised)); }
.app-balance-card[style] .app-balance-num, .app-balance-card[style] .app-balance-num small { color: #1F2933; }
.app-kidgroup .bh-points { background: color-mix(in srgb, var(--kid) 38%, var(--surface-raised)); color: #1F2933; }
.app-kidgroup .bh-card-head { background: color-mix(in srgb, var(--kid) 22%, var(--surface-raised)); }
.app-focuspreview input { accent-color: var(--kid); }

/* Todoist colors: priority rings, project dots, label chips. These are Todoist's own colors, not the kids' colors. */
.app-tdcheck { border-color: var(--pri, var(--border-strong)); background: color-mix(in srgb, var(--pri, transparent) 14%, var(--surface-raised)); }
.app-tdwrap.is-sub { border-bottom: 0; }
.app-tdwrap.is-sub > .app-tdrow { padding: 3px 0; }
.app-tdsubs { padding-left: 2px; border-left: 3px solid color-mix(in srgb, var(--pri, var(--border)) 40%, transparent); padding-left: 10px; }
.app-tddetail .app-tddetail { margin-left: 8px; }
.app-tdchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.app-tdchip, .app-tdproj { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; min-height: 20px; border-radius: 999px; font: 600 11px/18px var(--font-sans); color: #1F2933; background: color-mix(in srgb, var(--chip) 24%, var(--surface-raised)); border: 1px solid color-mix(in srgb, var(--chip) 60%, transparent); }
.app-tdproj { background: transparent; border-color: transparent; padding-left: 0; color: var(--ink-muted); }
.app-tdproj::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--chip); flex: none; }
.app-tdchip--pick { cursor: pointer; font-family: inherit; min-height: 28px; padding: 0 10px; opacity: .75; }
.app-tdchip--pick.is-on { opacity: 1; background: var(--chip); color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.35); }
.app-tdpris { display: flex; gap: 6px; }
.app-tdpri { flex: 1; min-height: 34px; border-radius: var(--radius-sm); border: 2px solid var(--pri); background: color-mix(in srgb, var(--pri) 12%, var(--surface-raised)); color: var(--ink); font: 700 13px/1 var(--font-sans); cursor: pointer; }
.app-tdpri.is-on { background: var(--pri); color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.35); }
.app-tdbar { align-items: center; }
.app-tdbar .app-tdproject { border-width: 2px; }

/* A parent's Home has no tinted page behind it, so no frame either; the greeting gets room to breathe */
.app-home--plain { border: 0 !important; box-shadow: none !important; border-radius: 0; }
.app-home--plain > .app-board-head { padding-top: 2px; }
.app-palette { width: auto; min-width: 200px; max-width: 280px; }

/* Todoist scheduler (quick days, calendar, time) and multi-select reschedule */
.app-tdfield--due { grid-column: 1 / -1; }
.app-tddue { display: grid; gap: var(--space-2); }
.app-tdpickbtn { flex: none; min-width: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-raised); cursor: pointer; font-size: 18px; line-height: 1; }
.app-tdsched, .app-tdbulk { display: grid; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); }
.app-tdbulk { border-color: var(--primary); position: sticky; top: 4px; z-index: 5; box-shadow: var(--shadow-sm); }
.app-tdquick { display: flex; flex-wrap: wrap; gap: 6px; }
.app-tdq { display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 40px; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 600 13px/16px var(--font-sans); cursor: pointer; }
.app-tdq small { font: 500 11px/14px var(--font-sans); color: var(--ink-muted); }
.app-tdq.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.app-tdq.is-on small { color: var(--on-primary); }
.app-tdq:disabled { opacity: .45; cursor: default; }
.app-tdwhen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-2) var(--space-3); }
.app-tdcheck.is-select { display: inline-flex; align-items: center; justify-content: center; color: var(--on-primary); font: 700 13px/1 var(--font-sans); }
.app-tdcheck.is-picked { background: var(--primary); border-color: var(--primary); }

/* Show Tab: pick which kids see a card */
.app-whochips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.app-whochip { min-height: 28px; padding: 0 10px; border-radius: 999px; border: 2px solid var(--kid, var(--border-strong)); background: var(--surface-raised); color: var(--ink); font: 600 12px/1 var(--font-sans); cursor: pointer; }
.app-whochip.is-on { background: var(--kid, var(--primary)); color: #1F2933; }

/* Chore Board: unclaimed jobs with a Claim button, and the parent's posting form */
.app-oorow { display: flex; align-items: center; gap: var(--space-3); padding: 6px 0; border-bottom: 1px solid var(--border); }
.app-oorow:last-child { border-bottom: 0; }
.app-oomain { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.app-oomain strong { font: 600 14px/20px var(--font-sans); }
.app-oorow .bh-btn { min-height: 32px; padding: 0 var(--space-4); font-size: 14px; }
.app-oomine { display: flex; align-items: center; gap: var(--space-2); }
.app-oomine > :first-child { flex: 1; min-width: 0; }
.app-oneoffform { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); padding: var(--space-2) var(--space-3); }
.app-oneoffform summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.app-oneoffform .app-tdform { margin-top: var(--space-2); }

/* Work tab: compact boxes, category stripe and tag, the add / edit form */
.app-work .bh-check { width: 34px; height: 34px; margin: -9px; }
.app-work .bh-check-box { width: 16px; height: 16px; border-width: 2px; border-radius: 5px; }
.app-work .bh-check-box svg { width: 10px; height: 10px; }
.app-workhead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.app-workrow { display: flex; align-items: center; gap: var(--space-3); border-left: 4px solid var(--cat, transparent); padding: 2px 0 2px var(--space-3); border-radius: 2px; }
.app-workmain { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.app-workmain strong { font: 600 14px/20px var(--font-sans); }
.app-workcat { display: inline-block; max-width: 40%; padding: 1px 8px; border: 1px solid var(--cat); border-radius: 999px; background: color-mix(in srgb, var(--cat) 20%, var(--surface)); color: var(--text); font: 600 12px/18px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-workedit { border: 0; background: transparent; color: var(--primary); font: 600 13px/20px var(--font-sans); padding: 6px 4px; cursor: pointer; }
.app-workform { display: flex; flex-direction: column; gap: var(--space-3); }
.app-wkrow { display: flex; align-items: center; gap: var(--space-2); }
.app-wkrow .bh-input { flex: 1; min-width: 0; }
.app-wkrow .app-wkpick { flex: 0 0 auto; width: 150px; }
.app-wkdot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; border: 1px solid var(--border-strong); }
.app-wkdays { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.app-wkday { min-width: 44px; min-height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-raised); color: var(--text); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.app-wkday.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.app-wkbtns { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.app-catrow { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: 4px 0; }
.app-catpick { width: 40px; height: 32px; padding: 0; border: 1px solid var(--border-strong); border-radius: 8px; background: transparent; cursor: pointer; }
.app-catname { flex: 1; min-width: 120px; }
.app-cathex { width: 110px; font-family: var(--font-mono, monospace); }
.app-workarchive summary { cursor: pointer; font: 600 14px/20px var(--font-sans); padding: 6px 0; }

/* Work: the Categories section is collapsed and compact */
.app-workcats > summary { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; font: 600 14px/20px var(--font-sans); list-style: none; }
.app-workcats > summary::-webkit-details-marker { display: none; }
.app-workcats > summary::before { content: '\25B8'; color: var(--text-muted, var(--text)); font-size: 12px; }
.app-workcats[open] > summary::before { content: '\25BE'; }
.app-catdots { display: flex; gap: 3px; margin-left: auto; }
.app-catdots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--border-strong); }
.app-catlist { display: flex; flex-direction: column; gap: 2px; margin-top: var(--space-2); }
.app-catlist .app-catrow { gap: 6px; padding: 1px 0; flex-wrap: nowrap; }
.app-catlist .bh-input { min-height: 28px; height: 28px; padding: 0 8px; font-size: 13px; }
.app-catlist .app-catpick { width: 26px; height: 24px; border-radius: 6px; flex: 0 0 auto; }
.app-catlist .app-catname { min-width: 0; }
.app-catlist .app-cathex { width: 88px; flex: 0 0 auto; }
.app-catlist .bh-btn { min-height: 28px; padding: 0 10px; font-size: 13px; }
.app-catlist .app-workedit { padding: 2px 4px; font-size: 12px; }
.app-catlist .app-small { margin: 4px 0 0; font-size: 12px; }

/* Work: a small checkbox on each row of All tasks */
.app-wkcheck { display: grid; place-items: center; width: 34px; height: 34px; margin: -9px -6px -9px -9px; padding: 0; border: 0; background: transparent; color: var(--on-accent); cursor: pointer; flex: 0 0 auto; }
.app-wkcheck:disabled { cursor: default; opacity: 0.45; }
.app-wkbox { box-sizing: border-box; display: grid; place-items: center; width: 16px; height: 16px; border: var(--border-width) solid var(--border-strong); border-radius: 5px; background: var(--surface-raised); }
.app-wkcheck.is-done .app-wkbox { background: var(--accent); border-color: var(--accent); }

/* Work: Start / Due tags, compact tools row, aligned rows */
.app-work .bh-chore { align-items: center; }
.app-wktag { padding: 0 7px; border-radius: 999px; font: 700 11px/18px var(--font-sans); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; border: 1px solid; }
.app-wktag--start { color: #0E6F88; background: color-mix(in srgb, #148FAD 16%, var(--surface)); border-color: #148FAD; }
.app-wktag--due { color: #8A4F00; background: color-mix(in srgb, #C77100 16%, var(--surface)); border-color: #C77100; }
.app-wktag--work { color: #1F6B2A; background: color-mix(in srgb, #369307 16%, var(--surface)); border-color: #369307; }
:root[data-theme="dark"] .app-wktag--start { color: #7FD3E8; }
:root[data-theme="dark"] .app-wktag--due { color: #F2B057; }
:root[data-theme="dark"] .app-wktag--work { color: #8EDB7A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-wktag--start { color: #7FD3E8; } :root:not([data-theme="light"]) .app-wktag--due { color: #F2B057; } :root:not([data-theme="light"]) .app-wktag--work { color: #8EDB7A; } }
.app-wkselect { min-height: 28px; height: 28px; padding: 0 24px 0 8px; font-size: 13px; width: auto; }
.app-wktools { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0; }
.app-workall > summary { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; font: 600 14px/20px var(--font-sans); list-style: none; }
.app-workall > summary::-webkit-details-marker { display: none; }
.app-workall > summary::before { content: '\25B8'; font-size: 12px; }
.app-workall[open] > summary::before { content: '\25BE'; }
.app-work .bh-chore { align-items: flex-start; }
.app-work .bh-chore .bh-check { margin-top: -5px; }

/* The task lists' view switch and calendar */
.app-wkviews { display: flex; gap: 4px; margin-left: auto; margin-right: var(--space-2); }
.app-wkviews .app-wkday { min-width: 0; min-height: 28px; padding: 0 10px; font-size: 12px; }
.app-wknum { max-width: 76px; flex: 0 0 76px !important; }
.app-wkcheckline { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.app-calspan { margin: 0 0 var(--space-2); }
.app-calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.app-calhead { font: 600 11px/1 var(--font-sans); color: var(--text-muted); text-align: center; padding: 2px 0; }
.app-calcell { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 64px; padding: 3px; text-align: left; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-raised); color: var(--text); cursor: pointer; overflow: hidden; font: inherit; }
.app-calcell.is-out { opacity: .45; }
.app-calcell.is-today .app-calnum { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 5px; }
.app-calcell.is-sel { outline: 2px solid var(--accent); outline-offset: -1px; }
.app-calnum { align-self: flex-start; font: 600 11px/16px var(--font-sans); }
.app-calchip { display: block; font: 500 10px/14px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; border-left: 3px solid var(--cat, #808080); border-radius: 2px; background: color-mix(in srgb, var(--cat, #808080) 18%, transparent); }
.app-calchip.is-done { text-decoration: line-through; opacity: .6; }
.app-calchip.is-start { font-style: italic; background: transparent; border-left-style: dashed; }
.app-calmore { font: 600 10px/12px var(--font-sans); color: var(--text-muted); }
.app-caldaylist { margin-top: var(--space-3); }
@media (max-width: 560px) { .app-calcell { min-height: 48px; } .app-calchip { font-size: 9px; } }
.app-wkrow .app-wkunit { flex: 0 0 auto; width: 110px; }
.app-workhead .bh-btn { min-height: 32px; padding: 0 14px; font-size: 13px; }
.app-wkbox svg { width: 10px; height: 10px; }
.app-wkpri { flex: 0 0 auto; font: 700 11px/16px var(--font-sans); padding: 0 6px; border-radius: 4px; color: var(--pri); border: 1px solid var(--pri); background: color-mix(in srgb, var(--pri) 12%, transparent); }
.app-catrow.is-child { margin-left: 18px; }
.app-catparent { max-width: 130px; flex: 0 0 auto; min-height: 32px; height: 32px; font-size: 13px; padding: 0 22px 0 8px; }

/* Settings: section picker, tab order, active/paused switch */
.app-sectionpick { max-width: 220px; margin-left: auto; min-height: 32px; height: 32px; font-size: 13px; }
.app-taborder { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.app-taborder-row { display: flex; align-items: center; justify-content: space-between; padding: 2px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.app-taborder-btns { display: flex; gap: 4px; }
.app-iconbtn { min-width: 32px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-raised); color: var(--text); cursor: pointer; font-size: 14px; }
.app-iconbtn:disabled { opacity: .35; cursor: default; }
.app-switch { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); color: var(--text-muted); font: 600 12px/1 var(--font-sans); cursor: pointer; }
.app-switch-knob { width: 18px; height: 18px; border-radius: 50%; background: #9AA5B1; }
.app-switch.is-on { color: var(--text); border-color: var(--accent); }
.app-switch.is-on .app-switch-knob { background: var(--accent); }
.app-switch:disabled { opacity: .5; cursor: default; }
.app-dl--tiny dt, .app-dl--tiny dd { padding: 3px 0; }
.app-dl--tiny dt { font-size: 13px; }
.app-dl--tiny .app-small { font-size: 10px; line-height: 13px; margin-top: 1px; opacity: .85; }
.app-dl--tiny .bh-input { min-height: 28px; height: 28px; font-size: 13px; max-width: 160px; }
.app-pagegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px var(--space-4); }
.app-pagecell { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0; }
.app-pagecell .app-gridname { font-size: 13px; }
.app-pagecell .app-gridselect { width: 90px; }
.app-gridrow { padding: 2px 0; }
.app-sheetnote { margin: 0; font-size: 12px; color: var(--ink-muted); }
.app-sheetnote summary { cursor: pointer; padding: 2px 0; }
.app-sheetnote .app-small { font-size: 11px; line-height: 15px; }
.app-tinynote { font-size: 11px !important; line-height: 15px; margin: 0 0 6px; }
.app-focuskid { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; }
.app-focuskid + .app-focuskid { margin-top: 8px; }
.app-focuskidhead { cursor: pointer; display: flex; align-items: center; gap: 8px; font: 700 14px/1.3 var(--font-sans); }
.app-focuskidhead .app-small { font-weight: 600; color: var(--ink-muted); }
.app-focuskid[open] .app-focuskidhead { margin-bottom: 4px; }
.app-focusoff { opacity: .45; }
.app-taborder-row { gap: 8px; }
.app-taborder-name { display: inline-flex; align-items: center; gap: 6px; }
.app-taborder-dot { width: 10px; height: 10px; border-radius: 50%; }
.app-taborder-btns { align-items: center; flex-wrap: nowrap; }
.app-taborder-btns .app-cathex { width: 78px; min-height: 28px; height: 28px; font-size: 12px; padding: 0 6px; }
.app-taborder-btns .app-catpick { width: 28px; height: 28px; }
.bh-tab.has-color { color: var(--tab-color); }
.bh-tab.has-color.is-active { background: var(--tab-color); color: var(--tab-ink); }
.bh-tab.has-color:hover { background: color-mix(in srgb, var(--tab-color) 18%, transparent); }
.bh-tab.has-color.is-active:hover { background: var(--tab-color); }
.app-taborder-name.is-hidden { opacity: .5; } .app-taborder-name input { margin: 0; }

/* Menu pills */
.bh-tab-caret { font-size: 10px; margin-left: 2px; opacity: .8; }
.app-menu { position: absolute; top: calc(100% + 2px); z-index: 60; min-width: 180px; max-width: calc(100vw - 16px); padding: 6px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.app-menuitem { display: block; width: 100%; min-height: 34px; padding: 0 12px; text-align: left; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 600 14px/1 var(--font-sans); cursor: pointer; }
.app-menuitem:hover, .app-menuitem:focus-visible { background: var(--primary-tint); }
.app-menuitem.is-current { background: var(--primary-tint); box-shadow: inset 3px 0 0 var(--primary); }
.app-taborder-sub { padding-left: 24px; font-size: 13px; opacity: .9; }
.app-taborder-sub .app-iconbtn { min-width: 28px; height: 24px; font-size: 12px; }

/* ---- Meal plan on Home ---- */
.app-weeknav { display: inline-flex; align-items: center; gap: 4px; }
.app-navbtn, .app-navlabel { min-height: 32px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.app-navbtn { width: 32px; padding: 0; font-size: 18px; }
.app-navbtn:disabled, .app-navlabel:disabled { opacity: 0.45; cursor: default; }
.app-mdays { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.app-mday { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: var(--space-3); align-items: center; padding: 8px 12px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.app-mday-date { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.app-mday-dow { font: 700 14px/18px var(--font-sans); color: var(--ink); }
.app-mday-num { font: 500 12px/16px var(--font-sans); color: var(--ink-muted); }
.app-mday-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; justify-content: center; }
.app-mday.is-past { background: var(--surface-sunken); border-color: transparent; }
.app-mday.is-past .app-mday-body, .app-mday.is-past .app-mday-date { opacity: 0.55; }
.app-mday.is-today { background: var(--accent-tint); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); padding-top: 12px; padding-bottom: 12px; }
.app-mday.is-today .app-mday-dow { padding: 1px 10px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 18px; }
.app-mday.is-today .app-mday-num { padding-left: 2px; }
.app-mday.is-today .app-meal-name { font-size: 18px; line-height: 24px; }
/* Today's dinner is bold and large; days still to come are a dark charcoal (a soft light gray in dark mode). */
.app-mday.is-today .app-meal-name { font-weight: 800; }
.app-mday:not(.is-today):not(.is-past) .app-meal-name, .app-mday:not(.is-today):not(.is-past) .app-mday-dow { color: #3A3F45; }
:root[data-theme="dark"] .app-mday:not(.is-today):not(.is-past) .app-meal-name, :root[data-theme="dark"] .app-mday:not(.is-today):not(.is-past) .app-mday-dow { color: #D5D9DD; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-mday:not(.is-today):not(.is-past) .app-meal-name, :root:not([data-theme="light"]) .app-mday:not(.is-today):not(.is-past) .app-mday-dow { color: #D5D9DD; } }
.app-meal { display: flex; flex-direction: column; gap: 1px; }
.app-meal-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.app-meal-name { font: 600 15px/20px var(--font-sans); color: var(--ink); text-align: left; }
.app-meal-name.is-recipe { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.app-meal-name.is-recipe:hover { text-decoration-style: solid; }
.app-meal-sides, .app-meal-notes { margin: 0; font: 500 13px/18px var(--font-sans); color: var(--ink-muted); }
.app-meal-sidename.is-recipe { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-muted); cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; text-decoration-color: var(--accent); }
.app-meal-sidename.is-recipe:hover { text-decoration-style: solid; }
.app-meal-notes { font-style: italic; }
.app-meal-other { margin: 2px 0 0; font: 400 12.5px/17px var(--font-sans); color: var(--ink-muted); }
.app-meal-othermeal { font-weight: 600; color: var(--ink); }
.app-meal-othermeal--lunch { color: #2468c9; }
:root[data-theme="dark"] .app-meal-othermeal--lunch { color: #6fa8e6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-meal-othermeal--lunch { color: #6fa8e6; } }
.app-meal-othername.is-recipe { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-muted); cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; text-decoration-color: var(--accent); }
.app-meal-othername.is-recipe:hover { text-decoration-style: solid; }
.app-meal-link { font: 600 12px/16px var(--font-sans); color: var(--accent); }
.app-meal-edit, .app-meal-add { padding: 0 6px; border: 0; background: none; color: var(--ink-muted); font: 600 12px/20px var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.app-meal-add { align-self: flex-start; padding: 2px 8px; border: 1px dashed var(--border-strong); border-radius: var(--radius-pill); text-decoration: none; min-height: 26px; }
.app-meal-add:hover, .app-meal-edit:hover { color: var(--ink); }

/* ---- Dialog (recipe card and the dinner sheet) ---- */
.app-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 5vh var(--space-3); background: rgba(20, 28, 38, 0.55); overflow: auto; }
.app-dialog { width: 100%; max-width: 560px; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; max-height: 90vh; }
.app-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.app-dialog-title { margin: 0; font: 700 18px/24px var(--font-sans); color: var(--ink); }
.app-dialog-x { width: 32px; height: 32px; border: 0; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink); font: 400 22px/1 var(--font-sans); cursor: pointer; }
.app-dialog-body { padding: 12px 14px 14px; overflow: auto; }
.app-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.app-pill { padding: 3px 9px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--ink); font: 600 12px/16px var(--font-sans); }
.app-recipe-day { padding: 8px 10px; border-radius: var(--radius-md); background: var(--surface-sunken); font: 500 14px/20px var(--font-sans); }
.app-recipe-day p { margin: 0; }
.app-recipe-sec { margin-top: 10px; }
.app-recipe-h { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 6px; padding: 0 0 4px; border: 0; border-bottom: 2px solid var(--accent); background: none; text-align: left; font: 800 15px/20px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); cursor: pointer; }
.app-recipe-sec.is-closed .app-recipe-h { margin-bottom: 0; border-bottom-style: dashed; }
.app-recipe-arrow { width: 14px; font-size: 13px; }
.app-recipe-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.app-printnote { margin: 0; padding: 4px 10px; border-left: 3px solid var(--accent); background: var(--surface-sunken); font: 500 13px/18px var(--font-sans); color: var(--ink); }
.app-printbtn { min-height: 30px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.app-rich p { margin: 0 0 6px; font: 400 14px/21px var(--font-sans); color: var(--ink); }
.app-rich p strong { font-weight: 700; }
.app-rich-gap { height: 4px; }
.app-meal-tag { padding: 0 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1px solid var(--border-strong); color: var(--ink-muted); font: 600 11px/18px var(--font-sans); }

/* ---- Dinner sheet ---- */
.app-mealform { display: flex; flex-direction: column; gap: var(--space-3); }
.app-combo { position: relative; }
.app-combo-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 2px 0 0; padding: 4px; list-style: none; max-height: 240px; overflow: auto; background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.app-combo-list button { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: 500 14px/20px var(--font-sans); text-align: left; cursor: pointer; }
.app-combo-list button:hover { background: var(--accent-tint); }
.app-combo-tag { font: 600 11px/20px var(--font-sans); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.app-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.app-chips:not(.app-chips--pick) { min-height: 40px; padding: 4px 8px; border: var(--border-width) solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.app-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--ink); font: 600 13px/20px var(--font-sans); }
.app-chip button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; font: 400 15px/1 var(--font-sans); }
.app-chip.is-pick { padding: 2px 10px; border: 1px dashed var(--border-strong); background: none; color: var(--ink-muted); cursor: pointer; }
.app-chip-input { flex: 1 1 120px; min-width: 100px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 15px/24px var(--font-sans); }
.app-chip-input:focus-visible { outline: 0; }
@media (max-width: 560px) { .app-mday { grid-template-columns: 74px minmax(0, 1fr); } }

.app-meal-plus { width: 22px; height: 22px; padding: 0; border: 1px dashed var(--border-strong); border-radius: 50%; background: none; color: var(--ink-muted); font: 600 15px/18px var(--font-sans); cursor: pointer; align-self: center; }
.app-meal-plus:hover { color: var(--ink); border-style: solid; }

/* ---- Groceries ---- */
.app-gadd { display: flex; flex-direction: column; gap: 4px; }
.app-gaddrow { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.app-gaddrow .bh-input { min-height: 40px; }
.app-gaddtext { flex: 1 1 200px; }
.app-gaddamt { flex: 0 1 100px; min-width: 80px; }
.app-gaddsel { flex: 0 1 150px; min-width: 120px; }
.app-gdetailsrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.app-gdetailsrow .bh-input { min-height: 36px; }
.app-gaddprice { flex: 0 1 100px; }
.app-gaddnotes { flex: 1 1 200px; }
.app-gflash { display: flex; align-items: center; gap: 8px; margin: 0; }
.app-gtotal { font: 600 13px/1 var(--font-sans); color: var(--ink-muted); }
.app-gstores { display: flex; flex-wrap: wrap; gap: 6px; }
.app-gpill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink); font: 600 14px/1 var(--font-sans); cursor: pointer; }
.app-gpill.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.app-gpill-n { margin-left: 6px; padding: 1px 7px; border-radius: var(--radius-pill); background: rgba(127, 127, 127, 0.18); font: 700 11px/16px var(--font-sans); }
.app-gpill.is-on .app-gpill-n { background: rgba(255, 255, 255, 0.28); }
.app-gstaples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.app-gstaples .bh-eyebrow { margin: 0 4px 0 0; }
.app-ggroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-3); align-items: start; }
.app-ggroup { background: var(--surface-raised); border: 1px solid var(--border); border-left: 5px solid var(--dept, var(--border-strong)); border-radius: var(--radius-md); overflow: hidden; }
.app-ghead { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 6px 10px; background: color-mix(in srgb, var(--dept, #8F9BA8) 18%, transparent); font: 700 13px/18px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.app-glist { margin: 0; padding: 0; list-style: none; }
.app-gitem { display: flex; align-items: center; gap: 8px; padding: 1px 10px; border-top: 1px solid var(--border); min-height: 30px; }
.app-gitem:first-child { border-top: 0; }
.app-gcheck { position: relative; flex: 0 0 18px; width: 18px; height: 18px; padding: 0; border: var(--border-width) solid var(--border-strong); border-radius: 5px; background: var(--surface); color: var(--on-accent); font: 700 12px/1 var(--font-sans); cursor: pointer; }
.app-gcheck::after { content: ''; position: absolute; inset: -9px; }
.app-gitem.is-done .app-gcheck { background: var(--accent); border-color: var(--accent); }
.app-gitem.is-done .app-gname { text-decoration: line-through; color: var(--ink-muted); }
.app-gtext { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 2px 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.app-gname { font: 600 14px/20px var(--font-sans); }
.app-gqty { flex: 0 0 auto; min-width: 40px; padding: 0 6px; border-radius: 6px; background: var(--surface-sunken); color: var(--ink-muted); font: 700 12px/20px var(--font-sans); text-align: center; white-space: nowrap; }
.app-gamount { font-weight: 500; color: var(--ink-muted); }
.app-gnotes { font: 500 12px/16px var(--font-sans); color: var(--ink-muted); }
.app-gstore { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-muted); font: 600 11px/16px var(--font-sans); }
.app-gprice { font: 600 13px/16px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.app-gdone { display: flex; flex-direction: column; gap: 6px; }
.app-gdone .app-glist { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.app-checkrow { display: flex; align-items: center; gap: 8px; font: 500 14px/20px var(--font-sans); }

.app-gstore { border: 1px solid transparent; }
.app-gpill { border-width: 2px; }
.app-gpill .app-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
/* A lighter, softer pill for picking from a plain list (no color-coding of its own, like a section name) so it reads as a suggestion, not a bold toggle. */
.app-gpill--soft { border-width: 1px; border-color: var(--border); background: var(--surface-sunken); color: var(--ink-muted); font-weight: 600; }
.app-gpill--soft.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.app-gmanage-sec { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.app-gmrow { display: flex; align-items: center; gap: 6px; }
.app-gmrow .bh-input { flex: 1; min-height: 36px; }
.app-gcolor { flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 2px solid var(--border-strong); border-radius: 50%; background: none; cursor: pointer; }
.app-gmbtn { width: 30px; height: 30px; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink); cursor: pointer; font: 600 15px/1 var(--font-sans); }
.app-gmbtn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Faith ---------- */
.app-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-3); align-items: start; }
.app-fcard { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--surface-raised); border: 1px solid var(--border); border-left: 5px solid var(--fc, var(--accent)); border-radius: var(--radius-md); }
.app-fwide { grid-column: 1 / -1; }
.app-fhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-fh { margin: 0; font: 700 15px/20px var(--font-sans); color: var(--ink); }
.app-fstreak { padding: 1px 9px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--ink); font: 700 12px/18px var(--font-sans); white-space: nowrap; }
.app-fchecks { display: flex; flex-wrap: wrap; gap: 6px; }
.app-fcheck { min-height: 28px; padding: 0 12px; border: 2px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 700 13px/1 var(--font-sans); cursor: pointer; }
.app-faith .app-gcheck { flex-basis: 15px; width: 15px; height: 15px; border-width: var(--border-width); border-radius: 4px; font-size: 11px; }
.app-fnote { min-height: 36px; }
.app-fdots { display: inline-flex; gap: 8px; }
.app-fdot { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.app-fdot i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); }
.app-fdot.is-on i { background: var(--accent); border-color: var(--accent); }
.app-fdot b { font: 600 10px/12px var(--font-sans); color: var(--ink-muted); }
.app-fdone { margin: 0; color: var(--ink-muted); }
.app-fverses { display: flex; flex-wrap: wrap; gap: 6px; }
.app-fverse { display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 34px; padding: 3px 12px; border: 2px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 700 14px/18px var(--font-sans); cursor: pointer; }
.app-fverse em { font: 600 11px/14px var(--font-sans); font-style: normal; color: var(--ink-muted); }
.app-fitem { border-left: 0; border-top: 0; flex-wrap: wrap; row-gap: 0; padding: 7px 10px; margin: 2px 0; border-radius: 10px; background: color-mix(in srgb, var(--fc, transparent) 6%, transparent); }
.app-fitem.is-sub { background: none; margin: 0; border-radius: 0; }
.app-fitem .app-gtext { flex: 1 1 55%; min-width: 150px; }
.app-fitem .app-gcheck { align-self: flex-start; margin-top: 5px; }
.app-fdotmark { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--fc, var(--border-strong)); }
.app-fitem.is-sub .app-fdotmark { width: 6px; height: 6px; opacity: .7; }
.app-fitem.is-done .app-fdotmark { opacity: .4; }
.app-ftag { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-muted); font: 600 11px/16px var(--font-sans); }
.app-ftrans { margin-left: 8px; font: 600 11px/16px var(--font-sans); color: var(--ink-muted); }
.app-fpractice { flex: 0 0 auto; min-height: 28px; padding: 0 12px; border: 2px solid var(--accent); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 700 13px/1 var(--font-sans); cursor: pointer; }
.app-fbar .bh-btn { min-height: 34px; }
.app-fcatsel { margin-left: auto; flex: 0 1 160px; min-height: 32px; }
.app-ffam { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-3); }
.app-fperson { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--pc, #8F9BA8) 14%, var(--surface)); }
.app-fpname { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-fperson .app-small { margin: 0; }
.app-fbar2 { height: 8px; border-radius: 4px; background: var(--surface-sunken); overflow: hidden; }
.app-fbar2 i { display: block; height: 100%; background: var(--fc, var(--accent)); border-radius: 4px; }
.app-freadings { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.app-fnotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-3); align-items: start; }
.app-fnote-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.app-fnote-head { display: flex; flex-direction: column; gap: 1px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink); }
.app-fnote-type { padding: 1px 8px; border: 1px solid transparent; border-radius: var(--radius-pill); font: 700 11px/16px var(--font-sans); }
.app-fnote-peek { margin: 0; font: 500 13px/18px var(--font-sans); color: var(--ink-muted); }
.app-fnote-body { display: flex; flex-direction: column; gap: 6px; }
.app-fnote-text { margin: 0; white-space: pre-wrap; font: 500 14px/20px var(--font-sans); }
.app-fverse-text { margin: 0; font: 500 clamp(26px, 3.6vw, 34px)/1.55 var(--font-serif, Fraunces, Georgia, serif); }
.app-dialog:has(.app-fverse-text), .app-dialog:has(.app-fshow) { max-width: min(860px, 96vw); }
.app-fline { margin: 0 0 0.45em; }
.app-fgap { height: 0.6em; }
.app-fverse-text.is-long { font-size: clamp(21px, 2.8vw, 26px); }
.app-fverse-text.is-xl { font-size: clamp(18px, 2.2vw, 21px); }
.app-fletters { letter-spacing: 0.08em; }
.app-blank { display: inline-block; height: 1.1em; vertical-align: -0.15em; padding: 0; border: 0; border-bottom: 3px solid var(--accent); border-radius: 2px; background: var(--accent-tint); cursor: pointer; }
.app-wok { color: var(--ink); }
.app-wmiss { color: #C0453F; text-decoration: underline; }
.app-fshow { width: 100%; min-height: 120px; border: 2px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink-muted); font: 600 15px/20px var(--font-sans); cursor: pointer; }
.app-flevel { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font: 600 12px/1 var(--font-sans); color: var(--ink-muted); }
.app-fl { width: 26px; height: 26px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-sans); cursor: pointer; }
.app-fl.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.app-fresult { margin: 0; font: 700 17px/24px var(--font-sans); }
.app-fdue { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-muted); font: 700 11px/16px var(--font-sans); white-space: nowrap; }
.app-fdue.is-late { background: var(--primary-tint); color: var(--primary); }
.app-gwide { grid-column: 1 / -1; }
.app-fsort { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font: 600 12px/1 var(--font-sans); color: var(--ink-muted); }
.app-fsort .bh-input { min-height: 32px; flex: 0 0 auto; }
.app-fcats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.app-fcat { display: flex; align-items: center; gap: 8px; }
.app-fcat .bh-input { flex: 1; min-height: 36px; }
.app-fcolor { width: 36px; height: 36px; padding: 0; border: 2px solid var(--border-strong); border-radius: 50%; background: none; cursor: pointer; }
.app-fhist { display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.app-fupform { display: flex; flex-direction: column; gap: 6px; }
.app-fupdate { flex: 0 1 170px; min-height: 36px; }
.app-fups { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.app-fups li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 6px 10px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.app-fupmeta { grid-column: 1 / -1; font: 700 11px/16px var(--font-sans); color: var(--ink-muted); }
.app-fuptext { font: 500 14px/20px var(--font-sans); white-space: pre-wrap; }
.app-fups .app-keybtn { min-height: 0; padding: 0; font-size: 12px; align-self: end; }
@media (max-width: 520px) { .app-fgrid, .app-fnotes { grid-template-columns: 1fr; } }

@media print {
  body > :not(.app-overlay) { display: none !important; }
  body.app-printing-one > .app-overlay:not(.app-recipeprint):not(.app-planprint) { display: none !important; }
  body { background: #fff !important; }
  .app-overlay { position: static !important; display: block !important; padding: 0 !important; background: none !important; overflow: visible !important; }
  .app-dialog { max-width: none !important; max-height: none !important; border: 0 !important; box-shadow: none !important; background: #fff !important; color: #000 !important; }
  .app-dialog-body { overflow: visible !important; padding: 0 !important; }
  .app-dialog-head { padding: 0 0 6px !important; }
  .app-dialog-x, .app-printbtn, .app-printnote, .app-recipe-tools, .app-recipe-day, .app-recipe-arrow { display: none !important; }
  .app-recipe-sec.is-closed { display: none !important; }
  .app-recipe-h { color: #000 !important; border-bottom-color: #000 !important; font-size: 13pt !important; }
  .app-rich p { font-size: 11pt !important; line-height: 1.45 !important; color: #000 !important; }
  .app-rich p.is-check::before { content: '\2610  '; }
  .app-pill { background: none !important; border: 1px solid #000; color: #000 !important; }
  .app-recipe-sec { break-inside: avoid; }
}

/* reading plans */
.app-rtitle { font-weight: 400; color: var(--ink-muted); }
.app-rnotes { display: block; margin-top: 2px; font-size: 0.85em; font-style: italic; color: var(--ink-muted); white-space: pre-wrap; }
.app-fdays { display: flex; align-items: center; gap: 3px; }
.app-fdays i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-sunken); color: var(--ink-muted); }
.app-fdays i.is-on { background: #C9A227; color: #fff; }
.app-fdays .app-small { margin-left: 8px; }
.app-prows { display: flex; flex-direction: column; gap: 6px; max-height: 42vh; overflow: auto; padding-right: 2px; }
.app-prow { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.app-prow .bh-input { min-height: 36px; }
.app-prow-btns { display: flex; gap: 2px; }
.app-prow-btns .app-keybtn.is-on { color: var(--accent); font-weight: 700; }
.app-prow-notes { grid-column: 1 / -1; }
.app-prow-book { width: auto; min-height: 32px; }
@media (max-width: 560px) { .app-prow { grid-template-columns: 1fr; } }
.app-prow-btns .app-keybtn { text-decoration: none; min-width: 28px; min-height: 34px; font-size: 16px; line-height: 1; }
.app-prow-btns .app-keybtn:disabled { opacity: 0.3; }

/* Awana verses */
.app-awver { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.app-awverhead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.app-awtrans { width: 104px; min-height: 32px; }
.app-awkids { display: flex; flex-direction: column; gap: 6px; }
.app-awkid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-awkidname { min-width: 72px; padding: 3px 10px; border: 1px solid; border-radius: var(--radius-pill); font: 600 14px/20px var(--font-sans); text-align: center; }
.app-gpill.is-none.is-on { background: var(--surface-sunken); color: var(--ink-muted); border-color: var(--border); }
.app-psheet { margin-bottom: 20px; }
.app-psheet-who { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; padding-bottom: 4px; border-bottom: 3px solid; font: 700 20px/28px var(--font-sans); }
.app-psheet-who span { font: 400 13px/20px var(--font-sans); color: var(--ink-muted); }
.app-psheet-verse { padding: 8px 0 12px; border-bottom: 1px solid var(--border); break-inside: avoid; }
.app-psheet-verse h3 { margin: 0; font: 700 17px/24px var(--font-sans); }
.app-psheet-verse h3 span { font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.app-psheet-meta { margin: 0 0 4px; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.app-psheet-text { margin: 0; font: 400 17px/26px var(--font-sans); white-space: pre-line; }
@media print {
  .app-psheet { break-after: page; margin: 0; }
  .app-psheet:last-of-type { break-after: auto; }
  .app-psheet-who { font-size: 20pt !important; color: #000 !important; }
  .app-psheet-who span, .app-psheet-meta, .app-psheet-verse h3 span { color: #444 !important; }
  .app-psheet-verse h3 { font-size: 15pt !important; }
  .app-psheet-text { font-size: 14pt !important; line-height: 1.5 !important; color: #000 !important; }
  .app-psheet-verse { border-bottom-color: #bbb !important; }
}
.app-dialog .app-printnote.app-row { border: 0; background: none; padding: 0; margin: 0 0 10px; align-items: center; gap: 10px; }
.app-printnote strong { white-space: nowrap; }

/* formatted notes */
.app-rich-t { white-space: pre-wrap; }
.app-sup { font-size: 0.7em; line-height: 0; font-weight: 700; margin-right: 1px; color: var(--accent); }
.app-richhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-richhead.is-bare { justify-content: flex-end; }
.app-richwrap { display: flex; flex-direction: column; gap: 4px; }
.app-rtools { display: inline-flex; gap: 2px; margin-bottom: 2px; }
.app-rtool { min-width: 28px; min-height: 28px; padding: 0 6px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--font-sans); cursor: pointer; }
.app-rtool:hover:not(:disabled) { background: var(--accent-tint); }
.app-rtool.is-i { font-style: italic; font-weight: 500; }
.app-rtool.is-u { text-decoration: underline; }
.app-rtool.is-n { color: var(--accent); }
.app-richprev { margin-top: 4px; padding: 6px 10px; border: 1px dashed var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); font: 400 14px/20px var(--font-sans); }
.app-richwrap .app-rtools { align-self: flex-end; }

/* a grouped Awana verse in the parent's list */
.app-printnote select.app-gaddsel { min-width: 170px; }

.app-awreview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-awrev { display: inline-flex; align-items: center; gap: 2px; }
.app-awrev .bh-input { min-height: 34px; width: 150px; }

/* ---- verses page: folds of compact cards that fill the width ---- */
.app-vgroups { display: grid; gap: var(--space-3); }
.app-vgroup { display: grid; gap: 6px; }
.app-vhead { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 13px/18px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.app-vheadbtn { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.app-vchev { color: var(--ink-muted); font-size: 12px; }
.app-vtext { font: 500 12px/17px var(--font-sans); color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-vlink { padding: 0; border: 0; background: none; color: var(--ink-muted); font: 600 12px/16px var(--font-sans); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.app-vgroup.is-closed { gap: 0; }
.app-gpill--sm { padding: 2px 10px; font-size: 12px; line-height: 18px; min-height: 0; }
.app-studybook { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); }
.app-studybook .bh-input { min-height: 34px; }
.app-studybook > input:first-child { flex: 1 1 180px; min-width: 0; }
.app-sbcount { width: 72px; }
.app-sbword { width: auto; }

/* ---- verse filters ---- */
.app-vfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.app-vfsel { width: auto; max-width: 100%; min-height: 32px; padding-top: 3px; padding-bottom: 3px; font-size: 13px; }
.app-vfsel.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.app-vsub { margin: var(--space-2) 0 0; font: 700 13px/18px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }

/* ---- Awana units and section cards ---- */
.app-units { display: grid; gap: var(--space-3); }
.app-unit { display: grid; gap: 6px; }
.app-uhead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.app-utitle { font: 700 14px/20px var(--font-sans); letter-spacing: 0.02em; }
.app-sgrid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; align-items: start; }
.app-scard { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 10px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); }
.app-scard.is-link { cursor: pointer; }
.app-scard.is-link:hover { border-color: var(--border-strong); }
.app-scard.is-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.app-scard.is-review { background: var(--surface-sunken); }
.app-scard.is-now { border-color: var(--primary); }
.app-shead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.app-snum { padding: 0 7px; border-radius: var(--radius-pill); background: var(--surface-sunken); font: 700 12px/20px var(--font-sans); color: var(--ink-muted); }
.app-stitle { font: 700 14px/20px var(--font-sans); min-width: 0; }
.app-snow { font: 700 11px/18px var(--font-sans); color: var(--primary); }
.app-sdue { margin-left: auto; font: 600 12px/18px var(--font-sans); color: var(--ink-muted); }
.app-slist { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.app-srow { display: flex; align-items: center; gap: 8px; padding: 3px 0; border-top: 1px solid var(--border); }
.app-sref { font: 600 14px/20px var(--font-sans); color: var(--ink); }
.app-smeta { font: 500 12px/18px var(--font-sans); font-style: normal; color: var(--ink-muted); }
.app-srow:first-child { border-top: 0; }
.app-sempty { margin: 0; }
.app-silver { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.app-silver em { font: 700 11px/16px var(--font-sans); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-right: 2px; }
.app-silverchip { padding: 1px 9px; border: 1px solid var(--kid, var(--border-strong)); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 600 12px/18px var(--font-sans); cursor: default; }
button.app-silverchip { cursor: pointer; }
.app-silverchip.is-on { background: color-mix(in srgb, var(--kid, #8F9BA8) 40%, var(--surface)); }

/* ---- the unit dialog ---- */
.app-unitname { display: grid; grid-template-columns: 90px 1fr; gap: var(--space-3); }
.app-secrows { display: grid; gap: 6px; }
.app-secrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.app-secrow.is-review .app-sectitle { font-style: italic; }
.app-secnum { width: 64px; }
.app-sectitle { flex: 1 1 140px; min-width: 0; }
.app-secdate { width: auto; flex: 0 0 auto; }
.app-secrev { display: inline-flex; align-items: center; gap: 4px; font: 500 13px/18px var(--font-sans); color: var(--ink-muted); }
.app-secgen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); }

/* ---- verses page, compact and neutral ---- */
.app-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 560px) { .app-row3 { grid-template-columns: 1fr; } }
.app-awsel { width: auto; min-height: 34px; padding-top: 3px; padding-bottom: 3px; }
.app-plist { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 0 var(--space-4); }
.app-prow2 { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 6px 2px 8px; border-bottom: 1px solid var(--border); border-left: 3px solid var(--lvl, var(--border-strong)); }
.app-pmain { flex: 1; display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0; min-height: 30px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.app-prow2 .app-vtext { display: block; flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-pmain .app-sref { flex: none; }
.app-pmain .app-dots { flex: none; width: auto; height: auto; margin: 0; }
.app-lvl { flex: none; font: 600 11px/16px var(--font-sans); font-style: normal; color: var(--lvl, var(--ink-muted)); }
.app-check { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--primary); }
.app-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); position: sticky; top: 0; z-index: 5; font: 600 13px/18px var(--font-sans); }
.app-selbar .bh-btn { min-height: 32px; }
.app-more { position: relative; display: inline-block; }
.app-menuback { position: fixed; inset: 0; z-index: 59; }
.app-menu--more { right: 0; left: auto; top: calc(100% + 4px); }
.app-menusort { display: flex; align-items: center; gap: 6px; }
.app-menusort select { width: auto; min-height: 30px; padding-top: 2px; padding-bottom: 2px; }
.app-secedit { display: grid; grid-template-columns: 1fr 170px auto; gap: var(--space-3); align-items: end; }
@media (max-width: 560px) { .app-secedit { grid-template-columns: 1fr; } }
.app-dlist { margin: 0; padding: 0; list-style: none; display: grid; }
.app-drow { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--border); }
.app-drow:first-child { border-top: 0; }
.app-dmain { flex: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.app-arrows { display: inline-flex; gap: 2px; flex: none; }
.app-arrow { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 700 14px/1 var(--font-sans); cursor: pointer; }
.app-arrow:disabled { opacity: .35; cursor: default; }
.app-arrow:hover:not(:disabled) { background: var(--primary-tint); }

/* ---- Faith: title dropdown, one row of same-size controls, journal tags ---- */
.app-titlesel { max-width: 100%; padding: 2px 30px 2px 0; border: 0; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231F6F9A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 4px center; color: var(--headline); font: 600 24px/28px var(--font-impact); letter-spacing: 0.01em; text-transform: uppercase; appearance: none; -webkit-appearance: none; cursor: pointer; }
.app-titlesel:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.app-fbar { align-items: center; gap: 8px; }
.app-fbar .bh-btn, .app-fbar .app-vfsel { min-height: 34px; height: 34px; padding-top: 0; padding-bottom: 0; font: 600 14px/1 var(--font-sans); }
.app-fbar .bh-btn { padding-left: 14px; padding-right: 14px; }
.app-search { min-width: 150px; flex: 1 1 150px; max-width: 260px; }
.app-srow .app-smeta { margin-left: auto; }
.app-dnames { margin-left: auto; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 6px; font: 500 12px/16px var(--font-sans); font-style: normal; color: var(--ink-muted); }
.app-fnote-top { display: flex; align-items: center; gap: 8px; }
.app-fnote-top .app-fnote-head { flex: 1; min-width: 0; }
.app-tags { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; }
.app-tag { padding: 0; border: 0; background: none; color: var(--primary); font: 600 12px/16px var(--font-sans); cursor: pointer; }
.app-tag:hover { text-decoration: underline; }

/* ---- Faith: layout and contrast ---- */
.app-pagetitle { margin: 0; font: 600 24px/28px var(--font-impact); letter-spacing: 0.01em; text-transform: uppercase; color: var(--headline); }
.app-faith { background: var(--surface-sunken); padding: var(--space-3); border-radius: var(--radius-lg); }
.app-fbar .app-fright { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-linkbtn { padding: 0; border: 0; background: none; color: var(--primary); font: 600 14px/20px var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.app-linkbtn:hover { color: var(--accent); }
.app-fpanel { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-raised); }
.app-uhead { padding: 7px 12px; border-radius: var(--radius-md); background: var(--unit-bg); color: var(--unit-ink); }
.app-uhead .app-vheadbtn, .app-uhead .app-utitle { color: var(--unit-ink); }
.app-uhead .app-gnotes { color: color-mix(in srgb, var(--unit-ink) 78%, transparent); }
.app-uhead .app-vlink { color: var(--unit-ink); margin-left: auto; }
.app-uhead .app-vchev { color: var(--unit-ink); }
.app-scard { border-color: var(--border-strong); box-shadow: 0 1px 2px rgba(18, 48, 74, .10); }
.app-scard.is-review { border-top: 3px solid var(--accent); }
.app-snum { background: var(--accent-tint); color: var(--on-accent-soft); }
.app-schev { padding: 0 4px 0 0; border: 0; background: none; color: var(--ink-muted); font-size: 12px; cursor: pointer; }
.app-scard.is-closed { gap: 0; }
.app-sfoot { display: flex; justify-content: flex-end; padding-top: 4px; border-top: 1px solid var(--border); }
.app-vhead { padding-bottom: 3px; border-bottom: 1px solid var(--border-strong); color: var(--ink-muted); }
.app-dtools { justify-content: flex-end; margin: 0; }
.app-drow--review { flex-wrap: wrap; }
.app-chk { display: grid; gap: 4px; padding: 8px 12px; border: 1px solid var(--border-strong); border-left: 4px solid var(--primary); border-radius: var(--radius-md); background: var(--surface-raised); }
.app-chk p { margin: 0; }
.app-chklist { margin: 0; padding-left: 18px; font: 500 13px/20px var(--font-sans); color: var(--ink-muted); }

.app-memo { margin-left: auto; font: 700 10px/16px var(--font-sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-pill); padding: 0 7px; flex: none; }
.app-smeta + .app-memo { margin-left: 8px; }
.app-dmain .app-memo { margin-left: 0; }
.app-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--kid, #8F9BA8); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); flex: none; }
.app-dots { display: inline-flex; gap: 3px; align-items: center; margin-left: 2px; }
.app-dname { display: inline-flex; align-items: center; gap: 4px; }
.app-silverchip { display: inline-flex; align-items: center; gap: 5px; }
.app-chk { justify-items: start; }

/* A Gold verse: one yellow star beside the reference. */
.app-star { margin-left: 5px; color: #E8B30C; font-size: 14px; line-height: 1; vertical-align: 1px; }
.app-rname { padding: 1px 4px; border: 0; border-radius: var(--radius-pill); background: none; font: 500 12px/16px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.app-rname.is-on { color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--kid, #8F9BA8) 18%, var(--surface)); }
button.app-rname:disabled { cursor: default; opacity: .75; }
.app-backlink { align-self: flex-start; }

.app-notices { margin: 4px 0 0; color: var(--ink-muted); font-size: 11px; line-height: 15px; }
.app-notices a { color: inherit; }

/* Save, Cancel and Delete (and the arrows) at the top of a verse window. */
.app-dtop { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.app-dnav { display: inline-flex; align-items: center; gap: 6px; }
.app-dnav .app-arrow { min-width: 30px; font-size: 18px; line-height: 1; }
.app-dacts { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.app-dtop .bh-btn { min-height: 28px; height: 28px; padding: 0 12px; font: 600 13px/1 var(--font-sans); border-radius: var(--radius-pill); }
.app-dacts { gap: 4px; }

/* No verse text yet: the reference is italic and a little lighter. */
.app-sref.is-notext { font-style: italic; color: var(--ink-muted); }

.app-awtools { margin-left: auto; display: inline-flex; }
.app-awtools .app-rtools { margin-bottom: 0; }

.app-reflink { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.app-reflink:hover { text-decoration: underline; }

.app-dtitle { display: inline-flex; align-items: center; gap: 6px; }
.app-dtitle .app-arrow { min-width: 26px; padding: 0 4px; font-size: 18px; line-height: 1; }

.app-fpractice { min-width: 28px; min-height: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; border-radius: 50%; }
.app-dbot { gap: 4px; }
.app-dbot .bh-btn { min-height: 28px; height: 28px; padding: 0 12px; font: 600 13px/1 var(--font-sans); border-radius: var(--radius-pill); }
.app-dot.is-done { position: relative; width: 14px; height: 14px; }
.app-dot.is-done::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font: 800 10px/1 var(--font-sans); text-shadow: 0 0 2px rgba(0, 0, 0, .55); }
.app-dot.is-wait { opacity: .4; }
.app-sready { margin-left: 2px; }
.app-foldall { margin: 0 0 4px; text-align: right; }
.app-scard.is-past { background: var(--surface-sunken); border-color: var(--border); box-shadow: none; }
.app-scard.is-past .app-stitle, .app-scard.is-past .app-sdue, .app-scard.is-past .app-sref { color: var(--ink-muted); }
.app-scard.is-past .app-snum { background: var(--surface); color: var(--ink-muted); }
.app-scard.is-now { background: #E4F1F8; border-color: var(--primary); box-shadow: inset 4px 0 0 var(--primary); }
:root[data-theme="dark"] .app-scard.is-now { background: #17384C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-scard.is-now { background: #17384C; } }
.app-shead { flex-wrap: nowrap; }
.app-shead .app-stitle { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shead .app-sdue { white-space: nowrap; }
.app-uhead .app-ufold + .app-vlink { margin-left: 12px; }
.app-uhead .app-ufold { margin-left: auto; }
.app-uhead .app-vlink:only-of-type { margin-left: auto; }

.app-plist { gap: 6px var(--space-3); }
.app-prow2 { padding: 2px 6px 2px 8px; border: 1px solid var(--border-strong); border-left: 4px solid var(--lvl, var(--border-strong)); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: 0 1px 2px rgba(18, 48, 74, .08); }

/* Tasks and Work lists: one tight line per task (title, then the due date beside it), snug cards */
.app-work .bh-card-head { padding: 6px var(--space-3); }
.app-work .bh-card-head h3 { font-size: 15px; line-height: 20px; }
.app-work .bh-card-body { padding: 4px var(--space-3) 6px; }
.app-work .bh-chore { padding: 0; gap: var(--space-2); align-items: center; }
.app-work .bh-chore-main { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-2); gap: 0 var(--space-2); }
.app-work .bh-chore-title { font-size: 14px; line-height: 22px; }
.app-work .bh-chore-meta { font-size: 12px; line-height: 22px; }
.app-work .bh-chore-details { flex: 1 0 100%; font-size: 13px; line-height: 18px; padding: 2px var(--space-2); }
.app-work .bh-chore .bh-check { margin-top: 0; }
.app-workrow { padding: 0 0 0 var(--space-2); gap: var(--space-2); min-height: 30px; }
.app-workedit { padding: 2px 4px; }
.app-work .app-stack, .app-work.app-stack { gap: var(--space-2); }
.app-work .app-chores { gap: 0; }
.app-work .app-chores .bh-eyebrow { margin: 6px 0 0; line-height: 16px; }

/* Tasks tab: each section has its own soft look so they stop blending */
.app-sec { border-left-width: 5px; }
.app-sec .bh-card-head { border-bottom-color: transparent; }
.app-sec--overdue { border-left-color: #B85C3E; }
.app-sec--overdue .bh-card-head { background: #F7E6DE; }
.app-sec--overdue .bh-card-head h3 { color: #8F4329; }
.app-sec--today { border-left-color: var(--primary); }
.app-sec--today .bh-card-head { background: #E4F1F8; }
.app-sec--nodate { border-left-color: var(--border-strong); }
.app-sec--nodate .bh-card-head { background: var(--surface-sunken); }
.app-sec--up { border-left-color: var(--accent); }
.app-sec--up .bh-card-head { background: var(--accent-tint); }
.app-sec--up .bh-card-head h3 { color: var(--on-accent-soft); }
.app-sec--all { border-left-color: #8FA6BA; }
.app-sec--all .app-workall > summary { background: #E9EEF3; color: #12304A; border-radius: 8px; padding: 6px 10px; }
.app-sec--all .app-workall > summary .app-count { background: #fff; color: #12304A; }
:root[data-theme="dark"] .app-sec--overdue .bh-card-head { background: #3A2620; }
:root[data-theme="dark"] .app-sec--overdue .bh-card-head h3 { color: #E7A58E; }
:root[data-theme="dark"] .app-sec--today .bh-card-head { background: #17384C; }
:root[data-theme="dark"] .app-sec--up .bh-card-head h3 { color: #7CC4C9; }
:root[data-theme="dark"] .app-sec--all .app-workall > summary { background: #22313F; color: #DCE6EE; }
:root[data-theme="dark"] .app-sec--all .app-workall > summary .app-count { background: #12202C; color: #DCE6EE; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-sec--overdue .bh-card-head { background: #3A2620; }
  :root:not([data-theme="light"]) .app-sec--overdue .bh-card-head h3 { color: #E7A58E; }
  :root:not([data-theme="light"]) .app-sec--today .bh-card-head { background: #17384C; }
  :root:not([data-theme="light"]) .app-sec--up .bh-card-head h3 { color: #7CC4C9; }
  :root:not([data-theme="light"]) .app-sec--all .app-workall > summary { background: #22313F; color: #DCE6EE; }
  :root:not([data-theme="light"]) .app-sec--all .app-workall > summary .app-count { background: #12202C; color: #DCE6EE; }
}

/* Home: a touch of color on the two main cards' headers so the page does not read as flat */
.app-homecal-body { max-height: 420px; overflow-y: auto; }
.app-homecal .bh-card-head { background: #E4F1F8; }
.app-homecal .bh-card-head h3 { color: #1B5A82; }
.app-homedinner .bh-card-head { background: var(--accent-tint); }
.app-homedinner .bh-card-head h3 { color: var(--on-accent-soft); }
:root[data-theme="dark"] .app-homecal .bh-card-head { background: #17384C; }
:root[data-theme="dark"] .app-homecal .bh-card-head h3 { color: #8FC8EC; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-homecal .bh-card-head { background: #17384C; }
  :root:not([data-theme="light"]) .app-homecal .bh-card-head h3 { color: #8FC8EC; }
}
.app-lchips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.app-lchip { padding: 0 7px; border-radius: 999px; font: 600 11px/18px var(--font-sans); color: var(--ink-muted); border: 1px solid var(--border-strong); background: var(--surface); }
.app-lchip--c { color: #1F2933; border-color: color-mix(in srgb, var(--chip) 60%, transparent); background: color-mix(in srgb, var(--chip) 24%, var(--surface-raised)); }
.app-workedit[title^="Move"] { color: var(--ink-muted); font-weight: 500; }

.app-tdimport > summary, .app-tdhist > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font: 700 15px/22px var(--font-sans); color: var(--headline); }
.app-tdimport > summary .app-small { font-weight: 400; }
.app-tdsum { margin: 0; padding-left: 18px; font: 400 13px/20px var(--font-sans); }
.app-tdhlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.app-tdhlist li { display: flex; align-items: baseline; gap: 8px; padding: 2px 0; border-bottom: 1px solid var(--border); font: 400 14px/20px var(--font-sans); }
.app-tdhlist .app-small { flex: 0 0 74px; }
.app-tdsearch { width: 100%; max-width: 320px; min-height: 34px; height: 34px; }

.app-pverses { display: flex; flex-wrap: wrap; gap: 4px; }
.app-pverse { display: inline-flex; align-items: baseline; gap: 5px; min-height: 28px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 12px/26px var(--font-sans); cursor: pointer; }
.app-pverse em { font: 500 11px/26px var(--font-sans); font-style: normal; color: var(--ink-muted); }
.app-pverse.is-on { background: var(--accent-tint); border-color: var(--accent); color: var(--on-accent-soft); }

/* Tasks: collapsible sections and thin rows */
.app-fsec { border: 1px solid var(--border); border-left-width: 4px; border-radius: 12px; background: var(--surface-raised); overflow: hidden; }
.app-fsechead { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 4px; min-height: 30px; }
.app-fsecbtn { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 6px; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: 700 14px/20px var(--font-sans); }
.app-fchev { width: 10px; font-size: 11px; color: var(--ink-muted); }
.app-fsectitle { font: 700 14px/20px var(--font-sans); }
.app-fsecbody { padding: 0 10px 4px; }
.app-fsecbody > .app-small { margin: 2px 0 4px; }
.app-fsecacts { display: inline-flex; gap: 8px; align-items: center; }
.app-fact { min-height: 24px; padding: 0 10px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: 700 12px/22px var(--font-sans); cursor: pointer; }
.app-fsec--overdue { border-left-color: #B85C3E; }
.app-fsec--overdue .app-fsechead { background: #F7E6DE; color: #8F4329; }
.app-fsec--today { border-left-color: var(--primary); }
.app-fsec--today .app-fsechead { background: #E4F1F8; }
.app-fsec--up { border-left-color: var(--accent); }
.app-fsec--up .app-fsechead { background: var(--accent-tint); color: var(--on-accent-soft); }
.app-fsec--nodate { border-left-color: var(--border-strong); }
.app-fsec--nodate .app-fsechead { background: var(--surface-sunken); }
:root[data-theme="dark"] .app-fsec--overdue .app-fsechead { background: #3A2620; color: #E7A58E; }
:root[data-theme="dark"] .app-fsec--today .app-fsechead { background: #17384C; }
:root[data-theme="dark"] .app-fsec--up .app-fsechead { color: #7CC4C9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-fsec--overdue .app-fsechead { background: #3A2620; color: #E7A58E; } :root:not([data-theme="light"]) .app-fsec--today .app-fsechead { background: #17384C; } :root:not([data-theme="light"]) .app-fsec--up .app-fsechead { color: #7CC4C9; } }
.app-trow { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 0; border-bottom: 1px solid var(--border); }
.app-trow:last-child { border-bottom: 0; }
.app-tick { position: relative; flex: 0 0 auto; width: 18px; height: 18px; padding: 0; border: 2px solid var(--pri, var(--border-strong)); border-radius: 50%; background: color-mix(in srgb, var(--pri, transparent) 10%, var(--surface-raised)); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.app-tick::after { content: ""; position: absolute; inset: -9px; }
.app-tick.is-done { background: var(--pri, var(--border-strong)); }
.app-tick.is-select { border-radius: 5px; border-color: var(--primary); background: var(--surface-raised); }
.app-tick.is-select.is-on { background: var(--primary); }
.app-tick.is-none { border-style: dashed; opacity: .5; cursor: default; }
.app-tick:disabled { cursor: default; opacity: .6; }
.app-ttitle { min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); font: 600 14px/22px var(--font-sans); cursor: pointer; overflow-wrap: anywhere; }
button.app-ttitle:hover { text-decoration: underline; text-underline-offset: 2px; }
.app-trow.is-done .app-ttitle { text-decoration: line-through; color: var(--ink-muted); }
.app-trow.is-picked { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.app-tnote { font: 400 12px/22px var(--font-sans); color: var(--ink-muted); }
.app-tcat { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 500 12px/22px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.app-tcat i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.app-trow .app-lchips { margin-left: 4px; }
.app-trow .app-wktag { margin: 0; }
.app-selbar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--primary); border-radius: 12px; background: var(--surface-raised); position: sticky; top: 4px; z-index: 5; }
.app-selbar span { flex: 1; font: 600 13px/20px var(--font-sans); }
.app-selbar .bh-btn, .app-wkbtns.app-dbot .bh-btn { min-height: 28px; height: 28px; padding: 0 12px; font: 600 13px/1 var(--font-sans); border-radius: var(--radius-pill); }
.app-rsq { display: flex; flex-wrap: wrap; gap: 6px; }
.app-tmove { display: flex; align-items: center; gap: 10px; padding: 0 0 6px; }
.app-workhead { gap: 12px; }
.app-fsec--all { border-left-color: #8FA6BA; }
.app-fsec--all .app-fsechead { background: #E9EEF3; color: #12304A; }
:root[data-theme="dark"] .app-fsec--all .app-fsechead { background: #22313F; color: #DCE6EE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-fsec--all .app-fsechead { background: #22313F; color: #DCE6EE; } }
.app-fsec--all .app-wktools { margin: 4px 0; }
.app-dname--off { opacity: .45; }
.app-addwho { font-size: 12px; padding: 0 2px; }
.app-trow.is-sub { margin-left: calc(var(--depth, 0) * 18px); }

/* ---- Tasks: left rail, board, sections ---- */
.app-wkwrap { display: block; }
.app-wkwrap.has-nav { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.app-wkmain { min-width: 0; }
.app-wknav { position: sticky; top: 8px; display: flex; flex-direction: column; gap: var(--space-3); padding: 8px 6px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 14px; max-height: calc(100vh - 24px); overflow-y: auto; }
.app-wknavgrp { display: flex; flex-direction: column; gap: 1px; }
.app-wknavgrp .bh-eyebrow { margin: 4px 8px 2px; font-size: 10px; }
.app-wknavbtn { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.app-wknavbtn:hover { background: var(--surface-sunken); }
.app-wknavbtn.is-on { background: #E0F2F3; color: #14565B; font-weight: 600; }
:root[data-theme="dark"] .app-wknavbtn.is-on { background: #1E3A3D; color: #7CC4C9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-wknavbtn.is-on { background: #1E3A3D; color: #7CC4C9; } }
.app-wknavbtn.is-sub { padding-left: 22px; }
.app-navname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-navn { font-size: 11px; color: var(--ink-muted); }
.app-navdot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.app-navhash { color: var(--ink-muted); font-size: 12px; width: 9px; text-align: center; }
.app-navtoggle { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1; cursor: pointer; flex: none; margin-right: 6px; }
.app-scopehead { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.app-scopehead strong { font-size: 15px; }
.app-bcols { display: flex; gap: 10px; overflow-x: auto; align-items: flex-start; padding-bottom: 6px; }
.app-bcol { flex: 0 0 248px; min-width: 0; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.app-bcol.is-over { outline: 2px dashed #1F7F86; outline-offset: -2px; }
.app-bcolhead { display: flex; align-items: center; gap: 6px; padding: 2px 4px; font-size: 13px; }
.app-bcolhead .app-linkbtn { margin-left: auto; font-size: 16px; line-height: 1; padding: 0 4px; }
.app-bcolbody { display: flex; flex-direction: column; gap: 5px; min-height: 34px; }
.app-bcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding-right: 22px; cursor: grab; }
.app-bcard.is-drag { opacity: .45; }
.app-bcol .app-trow { flex-wrap: wrap; row-gap: 0; background: transparent; }
.app-bcols--proj .app-tcat { display: none; }
.app-bmore { position: absolute; top: 2px; right: 2px; width: 22px; height: 24px; border: 0; background: transparent; color: var(--ink-muted); font-size: 16px; line-height: 1; cursor: pointer; }
.app-bmenu { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 4px 8px 8px; }
.app-bmenubtn { border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.app-bmenubtn.is-on { background: #E0F2F3; border-color: #BFE4E6; color: #14565B; }
.app-secline { gap: 4px; }
.app-secline .bh-input { flex: 1; min-width: 0; }
@media (max-width: 759px) {
  .app-wkwrap.has-nav { grid-template-columns: 1fr; gap: var(--space-2); }
  .app-wknav { position: static; max-height: 38vh; flex-direction: column; flex-wrap: nowrap; gap: var(--space-2); box-shadow: var(--shadow-md); }
  .app-wknavgrp { flex-direction: column; align-items: stretch; }
  .app-wknavbtn.is-sub { padding-left: 24px; }
  .app-bcol { flex-basis: 230px; }
}
.app-bcard .app-trow { border-bottom: 0; min-height: 0; padding-top: 4px; padding-bottom: 4px; }
.app-bcol .app-tnote { flex: 1 0 100%; order: 5; padding-left: 26px; margin-top: -2px; }
.app-bcol .app-tcat, .app-bcol .app-lchips { order: 6; }
.app-workhead { flex-wrap: wrap; row-gap: 6px; }
.app-workhead .app-linkbtn { margin-right: 8px; }

/* ---- task line: title, description, quiet meta line ---- */
.app-trow { align-items: flex-start; padding-top: 3px; padding-bottom: 3px; }
.app-trow .app-tick { margin-top: 3px; }
.app-trow.is-open { cursor: pointer; }
.app-trow.is-open:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.app-tbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-ttop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-tdesc { font: 400 12px/17px var(--font-sans); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.app-tmeta { display: flex; align-items: center; flex-wrap: wrap; font: 400 12px/18px var(--font-sans); color: var(--ink-muted); }
.app-tmeta > * + *::before { content: '|'; margin: 0 7px; color: var(--border-strong); font-weight: 300; }
.app-m { display: inline-flex; align-items: center; gap: 3px; }
.app-m .app-ico { opacity: .85; }
.app-m--rep { color: var(--accent); }
.app-m--late { color: #B85C3E; }
:root[data-theme="dark"] .app-m--late { color: #E7A58E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-m--late { color: #E7A58E; } }
.app-tmeta .app-lchips { margin: 0; }
.app-trow .app-tcat { padding-top: 3px; }
.app-bcol .app-tcat { display: none; }
.app-bcol .app-tdesc { display: none; }

.app-fbtn { position: relative; }
.app-fbtn.is-on { color: var(--accent); font-weight: 600; }
.app-fdot { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.app-fpanel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 12px; }
.app-fpanel .app-wkselect { flex: 1 1 130px; min-width: 0; }

.app-navrow { display: flex; align-items: center; }
.app-navrow .app-wknavbtn { flex: 1; min-width: 0; }
.app-navfold { width: 18px; height: 28px; border: 0; background: none; color: var(--ink-muted); font-size: 10px; cursor: pointer; flex: none; }

.app-more { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.app-morebtn { width: 32px; height: 32px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; }
.app-moremenu { position: absolute; bottom: 38px; right: 0; z-index: 5; min-width: 210px; display: flex; flex-direction: column; padding: 4px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); }
.app-moreitem { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 8px; font: 500 14px/20px var(--font-sans); color: var(--ink); cursor: pointer; }
.app-moreitem:hover { background: var(--surface-sunken); }

.app-tmv { display: inline-flex; gap: 2px; margin-left: auto; align-self: center; }
.app-tmv .app-arrow { width: 26px; height: 26px; }

.app-catmv { display: flex; align-items: flex-start; gap: 6px; }
.app-catmv > .app-tmv { margin-left: 0; padding-top: 4px; }
.app-catmv > :last-child { flex: 1; min-width: 0; }

.app-thread { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-3); }
.app-thsec { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); padding-top: var(--space-2); }
.app-thkid { text-align: left; border: 0; background: none; padding: 3px 0 3px 4px; font: 500 14px/20px var(--font-sans); color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--border); }
.app-thkid.is-done { text-decoration: line-through; color: var(--ink-muted); }
.app-thcom { display: flex; flex-direction: column; gap: 0; padding: 2px 0 6px; border-bottom: 1px solid var(--border); }
.app-thtext { margin: 0; white-space: pre-wrap; font: 400 14px/20px var(--font-sans); color: var(--ink); }
.app-thx { margin-left: 4px; font-size: 14px; text-decoration: none; }
.app-thwhen { color: var(--ink-muted); }

.app-reminders { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px; background: #E0F2F3; border: 1px solid #BFE4E6; border-radius: 12px; }
:root[data-theme="dark"] .app-reminders { background: #1E3A3D; border-color: #2B5256; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-reminders { background: #1E3A3D; border-color: #2B5256; } }
.app-remrow { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.app-remrow .app-linkbtn { margin-left: auto; }

/* ---- task card: head, crumbs, sub-tasks, done-before, pinned buttons ---- */
.app-cardhead { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.app-cardhl { display: grid; gap: 4px; min-width: 0; flex: 1; }
.app-cardhead .app-tmove { padding: 0; }
.app-cardhead .app-more { margin-left: 0; flex: none; }
.app-cardhead .app-moremenu { bottom: auto; top: 38px; z-index: 6; }
.app-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; min-width: 0; font: 500 13px/1.3 var(--font-sans); color: var(--ink-muted); }
.app-crumb, .app-crumbup { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--ink-muted); font: inherit; cursor: pointer; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-crumbup { max-width: none; font-size: 15px; line-height: 1; color: var(--accent); }
.app-crumb:hover, .app-crumbup:hover { background: var(--surface-sunken); color: var(--ink); }
.app-crumbsep { opacity: .55; }
.app-kids { display: grid; gap: 2px; }
.app-kid { display: flex; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--border); }
.app-kid:last-of-type { border-bottom: 0; }
.app-kidt { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 2px 0; color: var(--ink); font: 500 14px/1.35 var(--font-sans); cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.app-kid.is-done .app-kidt { color: var(--ink-muted); text-decoration: line-through; }
.app-kidadd { justify-self: start; margin-top: 2px; }
.app-done { display: grid; gap: 2px; }
.app-donesum { margin: 0; font: 400 13px/1.45 var(--font-sans); color: var(--ink-muted); }
.app-donesum strong { color: var(--ink); font-weight: 600; }
.app-donesum .app-linkbtn { margin-left: 8px; }
.app-donelist { margin: 2px 0 0; font: 400 12px/1.6 var(--font-sans); color: var(--ink-muted); }
.app-dtinput { width: 100%; max-width: 250px; min-width: 0; }
.app-thtext { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-workform > .app-wkbtns { position: sticky; bottom: 0; z-index: 5; margin-top: auto; padding: 8px 0; background: var(--surface); border-top: 1px solid var(--border); }

/* ---- date panel and its pills ---- */
.app-pills { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: flex-end; }
.app-pillgrp { display: grid; gap: 4px; min-width: 0; flex: 0 1 auto; }
.app-pillgrp--date { flex: 0 1 auto; max-width: 100%; }
.app-dpwrap { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
.app-dppill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 500 14px/1 var(--font-sans); cursor: pointer; }
.app-dppill:hover:not(:disabled) { background: var(--surface-sunken); }
.app-dppill:disabled { opacity: .45; cursor: default; }
.app-dppill.is-empty { color: var(--ink-muted); }
.app-dpico { color: var(--accent); font-size: 14px; line-height: 1; flex: none; }
.app-dppill.is-empty .app-dpico { color: var(--ink-muted); }
.app-dplabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-dpx { flex: none; width: 22px; height: 22px; margin-left: 2px; border: 0; border-radius: 50%; background: none; color: var(--ink-muted); font-size: 16px; line-height: 1; cursor: pointer; }
.app-dpx:hover { background: var(--surface-sunken); color: var(--ink); }
.app-dpback { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 4vh var(--space-3); background: rgba(20, 28, 38, .45); overflow: auto; }
.app-dp { width: 100%; max-width: 340px; display: grid; gap: 10px; padding: 12px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 36px rgba(0, 0, 0, .28); color: var(--ink); }
.app-dpin { height: 36px; }
.app-dpprev { text-align: left; border: 0; border-radius: 8px; background: var(--surface-sunken); color: var(--ink-muted); padding: 6px 10px; font: 500 13px/1.3 var(--font-sans); cursor: default; }
.app-dpprev.is-ok { color: var(--accent); cursor: pointer; }
.app-dpquick { display: grid; border-top: 1px solid var(--border); }
.app-dprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--ink); font: 600 14px/1 var(--font-sans); text-align: left; cursor: pointer; }
.app-dprow:hover { background: var(--surface-sunken); }
.app-dprow.is-on { color: var(--accent); }
.app-dpsub { color: var(--ink-muted); font-weight: 400; font-size: 13px; }
.app-dphead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; font: 600 14px/1 var(--font-sans); }
.app-dpnav { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--ink-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.app-dpnav:hover { background: var(--surface-sunken); color: var(--ink); }
.app-dpgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.app-dpdow { padding: 2px 0; color: var(--ink-muted); font: 600 11px/1 var(--font-sans); }
.app-dpday { position: relative; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--ink); font: 500 14px/1 var(--font-sans); cursor: pointer; }
.app-dpday:hover { background: var(--surface-sunken); }
.app-dpday.is-other { color: var(--ink-muted); opacity: .55; }
.app-dpday.is-today { color: var(--accent); font-weight: 700; }
.app-dpday.is-hint { box-shadow: inset 0 0 0 1px var(--border-strong); }
.app-dpday.is-sel { background: var(--accent); color: #fff; opacity: 1; }
.app-dpdot { position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: .55; }
.app-dprep { display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.app-dprepbtn { border: 1px solid var(--border-strong); border-radius: var(--radius-pill); justify-content: center; }
.app-dpchip { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding-right: 4px; }
.app-dpchipt { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 12px; text-align: left; color: var(--ink); font: 600 14px/1.2 var(--font-sans); cursor: pointer; }
.app-dped { display: grid; gap: 8px; padding: 8px; border-radius: 12px; background: var(--surface-sunken); }
.app-dpdom { width: 9em; }
.app-dptime { display: flex; align-items: center; gap: 10px; }
.app-dpfoot { display: flex; justify-content: flex-end; gap: 8px; }
.app-legacy { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.app-dp { box-sizing: border-box; overflow: hidden; }
.app-dp > *, .app-dped > * { min-width: 0; }
.app-dp .bh-input { min-width: 0; box-sizing: border-box; }
.app-dpin { width: 100%; }
.app-dped .app-wkrow { flex-wrap: wrap; }
.app-dped .app-wkday { padding: 0 10px; }
.app-dped .app-wkdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.app-dped .app-wkdays .app-wkday { padding: 0; min-width: 0; }
.app-dped .app-wknum { width: 64px; }
.app-dped .app-wkunit { width: auto; flex: 1 1 90px; }

/* ---- label picker ---- */
.app-lbwrap { position: relative; }
.app-lbmenu { max-width: 300px; max-height: 86vh; overflow: auto; gap: 2px; }
.app-lbopt { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14px/1.2 var(--font-sans); text-align: left; cursor: pointer; }
.app-lbopt:hover { background: var(--surface-sunken); }
.app-lbopt.is-sub { padding-left: 26px; }
.app-lbchk { width: 16px; height: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 4px; color: #fff; font-size: 11px; line-height: 1; }
.app-lbopt.is-on .app-lbchk { background: var(--accent); border-color: var(--accent); }
.app-lbnew { padding-top: 6px; border-top: 1px solid var(--border); margin-top: 4px; }
.app-lbnew .bh-input { min-width: 0; flex: 1; }
.app-subsec { border-top: 1px solid var(--border); padding-top: var(--space-2); }
.app-settings > summary .app-small { margin-left: 6px; font-weight: 400; }

/* Undo bar after ticking a task */
.app-undo { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: var(--space-3); max-width: min(92vw, 420px); padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-raised); box-shadow: var(--shadow-md); font-size: var(--text-sm, 14px); }
.app-undotxt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); }

/* Tasks: search box, View menu, sub-task fold chip, results */
.app-wksearch { width: 9rem; min-width: 0; padding-block: 4px; font-size: var(--text-sm, 14px); }
.app-vmenuwrap { position: relative; display: inline-block; }
.app-vbackdrop { position: fixed; inset: 0; z-index: 40; }
.app-vmenu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 41; min-width: 190px; display: flex; flex-direction: column; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-md, 10px); background: var(--surface-raised); box-shadow: var(--shadow-md); }
.app-vmenu button { text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.app-vmenu button:hover, .app-vmenu button:focus-visible { background: var(--surface-sunken); }
.app-vmenufile { display: block; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--ink); font: inherit; cursor: pointer; }
.app-vmenufile:hover { background: var(--surface-sunken); }
.app-subbtn { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.app-subchev { margin-left: 3px; font-size: .8em; }
.app-srow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.app-srow:hover { background: var(--surface-sunken); }
.app-srowmain { display: flex; flex-direction: column; min-width: 0; }

/* Settings: priority rows */
.app-pri-color { width: 26px; height: 26px; padding: 0; border: 1px solid var(--border-strong); border-radius: 50%; background: none; cursor: pointer; }
.app-pri-short { width: 2rem; color: var(--ink-muted); font-size: var(--text-sm, 14px); }
.app-pri-name { max-width: 12rem; padding-block: 3px; }

/* Habit Tracker rows */
.app-habit { justify-content: space-between; }
.app-habnext { flex: none; font-size: var(--text-sm, 14px); color: var(--ink-muted); }
.app-habnext.is-late { color: #B85C3E; }

/* Settings: older start dates list, one task per block */
.app-convlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.app-convlist li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.app-convlist li:last-child { border-bottom: 0; }

/* Tasks: "N done" link, search on its own line on phones */
.app-donebtn { margin-left: auto; font-size: var(--text-sm, 14px); }
.app-donetoday { padding-bottom: 6px; border-bottom: 1px dashed var(--border); margin-bottom: 6px; }
.app-wkbreak { display: none; }
@media (max-width: 640px) {
  .app-wkbreak { display: block; flex: 0 0 100%; height: 0; }
  .app-wksearch { flex: 0 1 14rem; width: 14rem; max-width: 100%; min-width: 0; }
}

.app-delconfirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Groceries: store menu, itinerary, returns */
.app-gstoremenu .app-vmenu { min-width: 200px; }
.app-vmenu--left { right: auto; left: 0; }
.app-gstoremenu .app-vmenu button { display: flex; align-items: center; gap: 8px; }
.app-gstoremenu .app-vmenu button.is-on { font-weight: 700; }
.app-gstoremenu .app-vmenu .app-gpill-n { margin-left: auto; }
.app-dot--none { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--border-strong); }
.app-gstoremenu .app-fbtn { display: inline-flex; align-items: center; gap: 6px; }
.app-gerrs { display: flex; flex-direction: column; gap: 4px; }
.app-gerr { border-bottom: 1px solid var(--border); }
.app-gerr-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 0; border: 0; background: transparent; color: var(--ink); font: 600 14px/1.2 var(--font-sans); cursor: pointer; text-align: left; }
.app-gerr-chev { color: var(--ink-muted); width: 1em; }
.app-gerr-body { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 10px; }
.app-gerr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.app-gerr-row { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.app-gerr-row.is-done .app-gerr-text { text-decoration: line-through; color: var(--ink-muted); }
.app-gerr-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.app-gerr-when { min-width: 62px; padding: 2px 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink); font: 600 12px/18px var(--font-sans); cursor: pointer; }
.app-gerr-when.is-empty { border-style: dashed; color: var(--ink-muted); font-weight: 500; }
.app-gerr-ret { padding: 1px 8px; border-radius: var(--radius-pill); background: color-mix(in srgb, #B85C3E 16%, transparent); color: var(--ink); font: 600 11px/18px var(--font-sans); white-space: nowrap; }
.app-gerr-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.app-gerr-in { flex: 1 1 10rem; min-width: 0; }
.app-gerr-sel { flex: 0 1 8rem; min-width: 0; }
.app-gerr-time { flex: 0 0 auto; width: 7.5rem; }

/* Tasks: drag handle, drop line, spacing, task window footer */
.app-wksearch + .app-vmenuwrap { margin-left: 12px; }
.app-grip { flex: 0 0 auto; align-self: center; width: 18px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); font: 700 16px/1 var(--font-sans); cursor: grab; touch-action: none; opacity: 0; }
.app-trow:hover .app-grip, .app-grip:focus-visible, .app-trow.is-dragging .app-grip { opacity: 1; }
@media (hover: none) { .app-grip { opacity: 0.45; } }
.app-trow.is-dragging { opacity: 0.55; }
.app-trow.is-drop-before { box-shadow: 0 -2px 0 0 var(--primary); }
.app-trow.is-drop-after { box-shadow: 0 2px 0 0 var(--primary); }
.app-dialog-body:has(.app-workform) { padding-bottom: 0; }
.app-dialog .app-workform > .app-wkbtns { padding-bottom: 14px; background: var(--surface-raised); box-shadow: 0 8px 0 0 var(--surface-raised); }

/* Boards: group-by bar, foldable columns */
.app-bboardby { display: flex; align-items: center; gap: 8px; }
.app-bboardby .app-wkselect { width: auto; min-width: 9rem; }
.app-bcolbtn { display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.app-bcol.is-shut { align-self: flex-start; }
.app-navrow .app-navfold { width: 22px; }

/* Groceries: itinerary and returns in a side menu */
.app-gwrap.has-nav { grid-template-columns: 280px minmax(0, 1fr); }
.app-gnav { gap: 4px; padding: 8px 10px; }
@media (max-width: 760px) { .app-gwrap.has-nav { grid-template-columns: 1fr; } .app-gnav { flex-direction: column; flex-wrap: nowrap; } }
.app-gnav .app-gerrs { gap: 6px; }
.app-gnav .app-gerr-row { flex-wrap: wrap; gap: 3px 5px; }
.app-gnav .app-gerr-text { flex: 1 1 5rem; min-width: 4rem; }
.app-gnav .app-gmbtn { width: 22px; height: 22px; flex: none; font-size: 12px; }
.app-gnav .app-gerr-when { min-width: 0; padding: 0 6px; font-size: 11px; flex: none; }
.app-gnav .app-gerr-ret, .app-gnav .app-gstore { font-size: 10px; padding: 0 6px; flex: none; }
.app-gnav .app-gerr-in { flex: 1 1 100%; }
.app-gnav .app-gerr-add { gap: 6px; }
.app-gnav .app-gerr-sel, .app-gnav .app-gerr-time { flex: 1 1 6rem; width: auto; }

.app-gonline { padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--ink-muted); font: 600 11px/16px var(--font-sans); white-space: nowrap; }
.app-gonlinecheck { margin-left: auto; font-size: var(--text-sm, 14px); }
.app-gerr-ret--items { background: var(--surface-sunken); color: var(--ink-muted); }
.app-gerr-row.is-auto .app-gerr-text { color: var(--ink); }

.app-gerr-name { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.app-gerr-row.is-done .app-gerr-name { text-decoration: line-through; color: var(--ink-muted); }

/* Itinerary and Returns: two cards that read as different lists */
.app-gnav { background: transparent; border: 0; padding: 0; gap: 10px; box-shadow: none; }
.app-gerr { border: 1px solid var(--border); border-left-width: 4px; border-radius: 12px; background: var(--surface-raised); padding: 2px 10px 4px; }
.app-gerr--stop { border-left-color: var(--accent); }
.app-gerr--return { border-left-color: var(--primary); }
.app-gerr--stop .app-gerr-head { color: var(--accent); }
.app-gerr--return .app-gerr-head { color: var(--primary); }
.app-gerr-head { text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; }
.app-gerr-icon { font-size: 13px; }

.app-gerr--stop { background: color-mix(in srgb, var(--accent) 9%, var(--surface-raised)); }
.app-gerr--return { border-left-color: var(--ink); }
.app-gerr--return .app-gerr-head { color: var(--ink); }
.app-gnav .app-gerr-row .app-gmbtn:first-of-type { margin-left: auto; }

/* Habit tracker detail page */
.app-habtop { display: flex; justify-content: space-between; align-items: center; }
.app-habtitle { margin: 0; font-size: var(--text-lg, 18px); }
.app-habstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.app-habstats > div { display: flex; flex-direction: column; gap: 2px; }
.app-habstats strong { font-size: 18px; color: var(--ink); }
.app-habstats strong.is-late { color: #B85C3E; }
.app-habline { width: 100%; height: auto; display: block; }
.app-habaxis { stroke: var(--border-strong); stroke-width: 2; }
.app-habtick { stroke: var(--border-strong); stroke-width: 1; }
.app-habtext { fill: var(--ink-muted); font-size: 11px; }
.app-habnow { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.app-habdot { fill: var(--accent); fill-opacity: .85; }
.app-habnextdot { fill: none; stroke: var(--accent); stroke-width: 2; }
.app-habnextdot.is-late { stroke: #B85C3E; }
.app-habbars { display: flex; align-items: flex-end; gap: 4px; height: 82px; }
.app-habbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
.app-habbar i { display: block; width: 100%; max-width: 22px; background: var(--accent); border-radius: 3px 3px 0 0; }
.app-habbar i.is-zero { background: var(--border); }
.app-habbarn { font-size: 11px; color: var(--ink-muted); min-height: 13px; }
.app-habadd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-habdate { width: auto; }
.app-habdates { display: flex; flex-wrap: wrap; gap: 6px; }
.app-habchip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--ink); background: var(--surface-sunken); }
.app-habx { border: 0; background: none; color: var(--ink-muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }

/* Small round + (opens an add box). One look everywhere. */
.app-plus { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px dashed var(--border-strong); border-radius: 50%; background: var(--surface-raised); color: var(--ink-muted); cursor: pointer; }
.app-plusico { width: 14px; height: 14px; }
.app-plus:hover, .app-plus:focus-visible { color: var(--accent); border-color: var(--accent); }
.app-plus.is-on { border-style: solid; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.app-gerr-top { display: flex; align-items: center; gap: 6px; }
.app-gerr-top .app-gerr-head { flex: 1; min-width: 0; }

/* Prayers: the person on top in bold, the request under it; sub-requests fold under their card like sub-tasks */
.app-fitem .app-gname { font-weight: 600; }
.app-freq { font: 500 14px/19px var(--font-sans); color: var(--ink); }
.app-fitem.is-done .app-freq { color: var(--ink-muted); }
.app-fitem.is-closed .app-gname, .app-fitem.is-closed .app-freq { color: var(--ink-muted); }
.app-fsubbtn { display: inline-flex; align-items: center; gap: 3px; border: 0; cursor: pointer; }
.app-fstate--answered { background: var(--accent-tint); color: var(--on-accent-soft); }
.app-fsubs { flex: 1 1 100%; margin: 2px 0 4px 22px; border-left: 2px solid color-mix(in srgb, var(--fc, var(--border-strong)) 45%, transparent); }
.app-fsubs .app-gitem { border-top: 0; border-left: 0; padding-left: 8px; min-height: 26px; }
.app-fitem.is-sub .app-gname { font-weight: 500; }
.app-fitem .app-plus { width: 22px; height: 22px; align-self: flex-start; margin-top: 2px; }
.app-fquick { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; margin: 4px 0 6px 23px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); }
.app-fquick-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.app-hlsecnamein { flex: 1 1 200px; max-width: 220px; }
.app-fquick-date { flex: 1 1 9rem; min-width: 0; }
.app-fquick-time { flex: 0 1 7.5rem; min-width: 0; }

/* Card heading icons: one size, one color */
.app-cardtitle { display: inline-flex; align-items: center; gap: 8px; }
.app-cardico { flex: none; color: var(--accent); }
.app-fh .app-cardico { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }

/* View as (parents): a small picker in the header, and a bar while looking at the app as someone else */
.app-viewas { position: relative; display: inline-flex; align-items: center; color: var(--on-accent); }
.app-viewas select { appearance: none; -webkit-appearance: none; width: 28px; min-height: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: var(--accent); color: transparent; font: 600 13px/28px var(--font-sans); cursor: pointer; }
.app-viewas select option { color: #14212b; background: #fff; }
.app-viewas-ico { position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; pointer-events: none; }
.app-viewas select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.app-chevbtn { position: relative; background: none; border: 0; padding: 0 6px; min-height: 28px; color: var(--ink-muted); font: 400 15px/1 var(--font-sans); cursor: pointer; }
.app-chevbtn::after { content: ""; position: absolute; inset: -8px -4px; }
.app-viewbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 6px var(--space-4); background: var(--primary-tint); color: var(--ink); font: 500 14px/20px var(--font-sans); border-bottom: 1px solid var(--border); }
.app-offlinebar { text-align: center; padding: 6px var(--space-4); background: var(--accent-tint); color: var(--ink); font: 500 13px/20px var(--font-sans); border-bottom: 1px solid var(--border); }
.app-queuebar { text-align: center; padding: 4px var(--space-4); background: var(--surface-sunken); font: 500 13px/20px var(--font-sans); border-bottom: 1px solid var(--border); }
.app-queuebar p { margin: 0; }
.app-queuefail { color: var(--primary); }
.app-queuefail .app-linkbtn { margin-left: 6px; }
.app-fmeta { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 1px 0 3px 23px; }
.app-fitem > .app-plus { margin-left: auto; }
/* Type and Status side by side in the prayer window (stacked on a narrow phone) */
.app-fpills { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.app-fpills > .bh-field { flex: 1 1 200px; min-width: 0; }
.app-dialog-title .app-plus { margin-left: 4px; }

/* Icons on tabs, menu items, page titles and group headings (same set as the card headings) */
.app-tabico { flex: none; width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px; }
.app-menuitem .app-tabico { color: var(--accent); }
.app-headico { display: flex; align-items: center; gap: 8px; }
.app-pageico { flex: none; width: 22px; height: 22px; color: var(--accent); }
.app-groupico { flex: none; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; color: var(--ink); }
.app-groupdot { display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--dept, var(--accent)); vertical-align: 1px; }
.app-ghead { justify-content: flex-start; }
.app-ghead > .app-gpill-n { margin-left: auto; }

/* The settings gear, upper right of a tab. One look everywhere. */
.app-gear { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; margin-left: auto; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); cursor: pointer; }
.app-gear:hover, .app-gear:focus-visible { color: var(--accent); background: var(--surface-sunken); }
.app-gearico { width: 20px; height: 20px; }


/* Settings sits at the far right of the menu */
.bh-tabs .app-tab-end { margin-left: auto; }

/* ---------- Notes ---------- */
/* A note's background: its own color at full strength, or its category's as a soft tint (--nmix). Dark mode uses a deeper shade. */
:root { --note-dark: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --note-dark: 1; } }
:root[data-theme="dark"] { --note-dark: 1; }
.has-nbg { --nbg: color-mix(in srgb, var(--nbase) var(--nmix, 100%), var(--surface-raised)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .has-nbg { --nbg: color-mix(in srgb, var(--nbase) calc(var(--nmix, 100%) * 0.32), var(--surface-raised)); } }
:root[data-theme="dark"] .has-nbg { --nbg: color-mix(in srgb, var(--nbase) calc(var(--nmix, 100%) * 0.32), var(--surface-raised)); }
.app-nhead-bar { flex-wrap: wrap; row-gap: 6px; }
.app-nhead-bar .bh-heading { margin-right: auto; }
.app-nhead-bar .app-gear { margin-left: 0; }
.app-nnew { display: inline-flex; align-items: center; gap: 6px; }
.app-nnewmore { min-height: 30px; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--primary); font: 600 12px/1 var(--font-sans); cursor: pointer; }
.app-vmenu--wide { min-width: 240px; }
.app-nfmenu { display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.app-nfsel { display: flex; flex-direction: column; gap: 2px; }
.app-nfsel .app-wkselect { width: 100%; }
.app-nmenuhead { margin: 6px 10px 2px; }
.app-ngroup { display: flex; flex-direction: column; gap: 8px; }
.app-neyebrow { margin: 6px 2px 0; }
/* cards */
.app-ncards { columns: 250px; column-gap: 14px; }
.app-ncard { break-inside: avoid; display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; padding: 14px 16px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--nbg, var(--surface-raised)); box-shadow: 0 1px 2px rgba(15, 30, 45, .06); cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.app-ncard.has-nbg { border-color: color-mix(in srgb, var(--nbg) 80%, var(--ink) 8%); }
.app-ncard:hover, .app-ncard:focus-visible { box-shadow: 0 6px 18px rgba(15, 30, 45, .12); transform: translateY(-1px); outline: none; }
.app-nhead { display: flex; align-items: flex-start; gap: 6px; }
.app-nhead > :first-child { flex: 1; min-width: 0; }
.app-ntitle-s { margin: 0; font: 700 15px/21px var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.app-nclip { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 250px, transparent 300px); mask-image: linear-gradient(#000 250px, transparent 300px); }
.app-nfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.app-nwhen { margin-left: auto; }
.has-nbg .app-ftag { background: color-mix(in srgb, var(--surface-raised) 55%, transparent); }
.app-nprog.is-done { color: var(--accent); }
.app-nrem.is-due { color: #B85C3E; font-weight: 700; }
.app-ntagico { width: 12px; height: 12px; margin-right: 2px; vertical-align: -2px; }
.app-ntags { font: 600 11px/16px var(--font-sans); color: var(--ink-muted); }
/* a note's words */
.app-nbody { font: 400 14px/21px var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.app-nbody ul, .app-nbody ol { margin: 2px 0; padding-left: 22px; }
.app-np { min-height: 21px; }
.app-nh1 { margin: 4px 0 2px; font: 700 17px/23px var(--font-sans); }
.app-nh2 { margin: 4px 0 1px; font: 700 14px/20px var(--font-sans); letter-spacing: .02em; color: var(--ink-muted); text-transform: uppercase; }
.app-nhr { margin: 8px 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.app-nimg { display: block; max-width: 100%; max-height: 240px; margin: 4px 0; border-radius: 10px; object-fit: cover; }
.app-nfile { display: inline-flex; align-items: center; gap: 6px; margin: 3px 0; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); color: var(--ink); font: 600 13px/18px var(--font-sans); text-decoration: none; }
.app-nfileico { width: 14px; height: 14px; }
.app-nchk { display: flex; align-items: flex-start; gap: 7px; }
.app-nchk.is-on > span { color: var(--ink-muted); text-decoration: line-through; }
.app-nbox { flex: none; width: 14px; height: 14px; margin-top: 4px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 4px; background: var(--surface-raised); color: var(--on-accent); font: 700 10px/1 var(--font-sans); cursor: pointer; }
.app-nchk.is-on .app-nbox { background: var(--accent); border-color: var(--accent); }
.app-nbox:disabled { cursor: default; }
.app-nlink { display: inline; padding: 0 2px; border: 0; border-bottom: 1.5px dotted var(--accent); background: none; color: var(--accent); font: inherit; cursor: pointer; }
.app-urllink { color: var(--primary); overflow-wrap: anywhere; }
.app-hl { padding: 0 1px; border-radius: 3px; color: #1F2933; }
/* list view */
.app-nlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.app-nrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--nbg, var(--surface-raised)); }
.app-nrowmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 2px 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.app-npeek { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.app-nrowmeta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 6px; }
@media (max-width: 560px) { .app-nrow { flex-wrap: wrap; } .app-nrowmeta { flex: 1 1 100%; justify-content: flex-start; } }
/* tiles view */
.app-ntiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.app-ntile { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--nbg, var(--surface-raised)); text-align: left; cursor: pointer; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 30, 45, .06); transition: box-shadow .15s ease, transform .15s ease; }
.app-ntile:hover, .app-ntile:focus-visible { box-shadow: 0 6px 18px rgba(15, 30, 45, .12); transform: translateY(-1px); }
.app-ntile .app-npeek { white-space: normal; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.app-ntilepin { position: absolute; top: 10px; right: 10px; }
/* pin */
.app-npinbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); cursor: pointer; opacity: .5; }
.app-npinbtn:hover, .app-npinbtn:focus-visible, .app-npinbtn.is-on { opacity: 1; color: var(--accent); }
.app-npinico { width: 16px; height: 16px; }
.app-npinbtn.is-on .app-npinico path, .app-ntilepin path { fill: currentColor; }
/* the note window */
.app-nform { gap: 12px; margin: -4px -6px 0; padding: 12px; border-radius: 14px; background: var(--nbg, transparent); }
.app-ntitle { font: 700 16px/22px var(--font-sans); }
.app-nform.has-nbg .bh-input, .app-nform.has-nbg .app-ntagbox { background: color-mix(in srgb, var(--surface-raised) 70%, transparent); }
.app-btnrow-sm .bh-btn { min-height: 32px; padding: 0 14px; font-size: 13px; }
.app-ncheckrow { display: flex; align-items: center; gap: 8px; font: 500 13px/18px var(--font-sans); color: var(--ink); }
.app-neditwrap { display: flex; flex-direction: column; gap: 4px; }
.app-ntools { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.app-ntool { min-width: 26px; height: 28px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.app-ntool:hover, .app-ntool:focus-visible { border-color: var(--border); background: var(--surface-raised); color: var(--accent); }
.app-ntool.is-b { font-weight: 800; } .app-ntool.is-i { font-style: italic; } .app-ntool.is-u { text-decoration: underline; }
.app-ntoolico { width: 16px; height: 16px; }
.app-nsep { width: 1px; height: 18px; margin: 0 2px; background: var(--border); }
.app-nA { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.app-nA i { display: block; width: 14px; height: 3px; margin-top: 2px; border-radius: 2px; }
.app-nHl { padding: 2px 3px; border-radius: 3px; color: #1F2933; font-size: 12px; }
.app-npopwrap { position: relative; }
.app-npop { position: absolute; z-index: 20; top: 32px; left: 0; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); box-shadow: var(--shadow-md); }
.app-nlinkpop { display: flex; flex-direction: column; gap: 4px; width: 230px; }
.app-nlinkopt { padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 13px/18px var(--font-sans); text-align: left; cursor: pointer; }
.app-nlinkopt:hover, .app-nlinkopt:focus-visible { background: var(--surface-sunken); }
/* color dots: small, round, with a dashed + for any color */
.app-ndots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 320px; }
.app-ndot { position: relative; flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); cursor: pointer; }
.app-ndot.is-on { box-shadow: 0 0 0 2px var(--surface-raised), 0 0 0 3.5px var(--ink); }
.app-ndot.is-none { background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.app-ndot.is-none::after { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.5px; background: var(--ink-muted); transform: rotate(-45deg); }
.app-ndot.is-none.is-on { box-shadow: inset 0 0 0 1.5px var(--border-strong), 0 0 0 2px var(--surface-raised), 0 0 0 3.5px var(--ink); }
.app-ndot-add { display: inline-flex; align-items: center; justify-content: center; border: 1.5px dashed var(--border-strong); box-shadow: none; background: transparent; color: var(--ink-muted); font: 600 14px/1 var(--font-sans); overflow: hidden; }
.app-ndot-add:hover { border-color: var(--accent); color: var(--accent); }
.app-ndot-add input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
/* tags */
.app-ntagbox { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-md, 10px); background: var(--surface-raised); }
.app-ntag { display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px 1px 8px; border-radius: 999px; background: var(--surface-sunken); font: 600 12px/18px var(--font-sans); color: var(--ink); }
.app-ntag button { border: 0; background: none; color: var(--ink-muted); font: 600 14px/1 var(--font-sans); cursor: pointer; padding: 0 3px; }
.app-ntagin { flex: 1; min-width: 90px; border: 0; outline: none; background: transparent; color: var(--ink); font: 400 14px/20px var(--font-sans); }
/* version history */
.app-nhist { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); }
.app-nhistrow { display: flex; align-items: center; gap: 8px; }
.app-nhistrow + .app-nhistrow { border-top: 1px solid var(--border); padding-top: 6px; }
.app-nhistmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* the editor */
.app-nedit { min-height: 170px; max-height: 50vh; overflow-y: auto; padding: 10px 12px; font: 400 15px/22px var(--font-sans); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
.app-nedit:empty::before { content: attr(data-placeholder); color: var(--ink-muted); }
.app-nedit ul, .app-nedit ol { margin: 2px 0; padding-left: 24px; }
.app-nedit h3 { margin: 6px 0 2px; font: 700 18px/24px var(--font-sans); }
.app-nedit h4 { margin: 6px 0 2px; font: 700 14px/20px var(--font-sans); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-muted); }
.app-nedit hr { margin: 10px 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.app-nedit .n-chk { position: relative; padding-left: 30px; }
.app-nedit .n-chk::before { content: ''; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 4px; background: var(--surface-raised); cursor: pointer; }
.app-nedit .n-chk[data-on="1"] { color: var(--ink-muted); text-decoration: line-through; }
.app-nedit .n-chk[data-on="1"]::before { background: var(--accent); border-color: var(--accent); }
.app-nedit .n-chk[data-on="1"]::after { content: '\2713'; position: absolute; left: 4px; top: 0; color: var(--on-accent); font: 700 10px/22px var(--font-sans); }
.app-nedit .n-link { color: var(--accent); border-bottom: 1.5px dotted var(--accent); text-decoration: none; }
.app-nedit .n-media { margin: 4px 0; user-select: none; }
.app-nedit .n-media img { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; }
.app-nedit .n-filechip { display: inline-block; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); font: 600 13px/18px var(--font-sans); }
/* the gear's category list */
.app-ncatrow { display: flex; align-items: center; gap: 8px; }
.app-ncatrow .bh-input { flex: 1; min-width: 0; }
.app-ncolorin { width: 28px; height: 24px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; cursor: pointer; }
/* print */
.app-nprint-t { margin: 0 0 8px; font: 700 18pt/1.3 var(--font-sans); }
@media print { .app-nprint .app-nbox { border-color: #000 !important; background: #fff !important; color: #000 !important; } .app-nprint .app-nimg { max-height: none; } }
/* choosing notes to delete or archive */
.app-npick { flex: none; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 50%; background: var(--surface-raised); color: var(--on-accent); font: 700 12px/1 var(--font-sans); }
.is-picked .app-npick { background: var(--accent); border-color: var(--accent); }
.app-ncard.is-picked, .app-ntile.is-picked, .app-nrow.is-picked { box-shadow: 0 0 0 2.5px var(--accent); }
.app-ntile .app-npick { position: absolute; top: 10px; right: 10px; }
.app-nhead > .app-npick { flex: none; margin-top: 1px; }
@media (max-width: 600px) { .app-nhead-bar .app-wksearch { order: 9; flex: 1 1 100%; width: auto; } }

/* Kids' boards: neutral words and icons on every card, so they suit any kid's color; smaller points */
.app-board-page .bh-card-head h3, .app-kidgroup .bh-card-head h3 { color: var(--ink); }
.app-board-page .app-cardico, .app-kidgroup .app-cardico, .app-board-page .app-pageico { color: var(--ink-muted); }
.app-board-page .bh-heading em { color: var(--ink); }
.app-board-page .bh-points, .app-kidgroup .bh-points { padding: 1px 7px; font-size: 11px; line-height: 16px; }
/* the Settings tab is just a gear */
.bh-tabs .app-tab-gear { padding-left: 10px; padding-right: 10px; }
.bh-tabs .app-tab-gear .app-gearico { width: 18px; height: 18px; vertical-align: -4px; }
/* Home's gear */
.app-hgitem { flex-wrap: wrap; align-items: center; }
.app-hgitem .app-groupdot { margin: 0 2px 0 4px; }
.app-hgform { flex: 1 1 100%; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 8px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-sunken); }
.app-tidylist { margin: 0; padding-left: 18px; font: 400 14px/21px var(--font-sans); color: var(--ink); }
/* Save and Cancel stay at the bottom of the note window */
.app-nform .app-nsave { position: sticky; bottom: -14px; z-index: 3; margin: 0 -12px -12px; padding: 10px 12px 12px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); border-radius: 0 0 14px 14px; background: var(--nbg, var(--surface-raised)); }
.app-board-page .app-stephead, .app-board-page .app-weeklabel { color: var(--ink); }
/* list lines on cards (3 levels) */
.app-nli { display: flex; gap: 6px; }
.app-nmark { flex: none; min-width: 14px; color: var(--ink-muted); text-align: right; }
.app-nedit .n-chk[data-level="1"] { margin-left: 24px; }
.app-nedit .n-chk[data-level="2"] { margin-left: 48px; }
.app-nedit ul ul, .app-nedit ol ol, .app-nedit ul ol, .app-nedit ol ul { margin: 0; }
.app-nedit ul ul { list-style: circle; } .app-nedit ul ul ul { list-style: square; }
.app-nedit ol ol { list-style: lower-alpha; }
/* smaller note cards */
.app-ncards { columns: 210px; column-gap: 10px; }
.app-ncard { gap: 6px; margin-bottom: 10px; padding: 10px 12px 9px; border-radius: 14px; }
.app-ncard .app-ntitle-s { font-size: 14px; line-height: 19px; }
.app-ncard .app-nbody { font-size: 13px; line-height: 19px; }
.app-ncard .app-nh1 { font-size: 15px; line-height: 21px; }
.app-ncard .app-nh2 { font-size: 12px; line-height: 18px; }
.app-ncard .app-nclip { max-height: 240px; -webkit-mask-image: linear-gradient(#000 200px, transparent 240px); mask-image: linear-gradient(#000 200px, transparent 240px); }
.app-ncard .app-nimg { max-height: 180px; }
.app-ntiles { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.app-ntile { padding: 10px; border-radius: 14px; }
/* the note window: thin lines, a box you can drag taller or shorter, settings behind the gear */
.app-nform .bh-input, .app-nform .app-ntagbox { border-width: 1px; border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.app-nform .bh-input:focus, .app-nform .bh-input:focus-within { border-color: var(--accent); }
.app-nform .app-ntitle { min-height: 38px; }
.app-nedit { height: 46vh; min-height: 280px; max-height: none; resize: vertical; }
.app-nsettings { display: flex; flex-direction: column; gap: 10px; }
.app-nsettings .bh-input { min-height: 36px; font-size: 14px; }
.app-ncolortags { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.app-ncolortags > .bh-field:first-child { flex: 0 1 auto; }
.app-ncolortags > .bh-field:last-child { flex: 1 1 140px; min-width: 120px; max-width: 220px; }
.app-ncolortags .app-ntagbox { min-height: 30px; padding: 2px 6px; }
.app-ncolortags .app-ntagin { min-width: 60px; font-size: 13px; line-height: 18px; }
.app-nsave .app-gear { margin-left: auto; }
.app-nshare .app-vmenu { min-width: 170px; }
.app-nshareopt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font: 500 14px/20px var(--font-sans); color: var(--ink); cursor: pointer; }
.app-nshareopt:hover { background: var(--surface-sunken); }
.app-nshareopt input { accent-color: var(--accent); }
.app-nshareopt .app-groupdot { margin: 0; }
.app-nshare .app-vmenu { top: auto; bottom: calc(100% + 4px); }

/* Notes: drag to reorder, and a taller note window */
.app-nhead-r { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.app-ngrip { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 26px; padding: 0; border: 0; background: none; color: var(--ink-muted); opacity: .55; font: 700 13px/1 var(--font-sans); letter-spacing: -2px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.app-ngrip::after { content: ""; position: absolute; inset: -8px -4px; }
.app-ngrip:hover, .app-ngrip:focus-visible { opacity: 1; }
.app-ngrip span { transform: rotate(90deg); }
.app-ntile .app-ngrip { position: absolute; right: 2px; bottom: 2px; }
.is-dragging { opacity: .45; }
.is-dropat { filter: brightness(.95); }

/* Project order menu and grips */
.app-navhead { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.app-navheadr { display: inline-flex; align-items: center; gap: 6px; }
.app-navhead .app-fbtn { font-size: 11px; padding: 0 6px; min-height: 22px; }
.app-navrow .app-ngrip { width: 16px; height: 26px; opacity: .3; }
.app-navrow:hover .app-ngrip, .app-navrow .app-ngrip:focus-visible { opacity: .9; }
.app-navrow.is-dropat, .app-catmv.is-dropat, .app-ncatrow.is-dropat { background: var(--accent-tint, rgba(0,0,0,.05)); border-radius: 8px; }
.app-catmv { align-items: center; }
.app-catmv > .app-ngrip { margin-top: 0; }

/* Note categories: compact rows */
.app-ncathead { display: flex; align-items: center; justify-content: space-between; }
.app-ncats { display: flex; flex-direction: column; gap: 4px; }
.app-ncatrow { gap: 6px; flex-wrap: nowrap; }
.app-ncatrow.is-sub { padding-left: 22px; }
.app-ncatrow .bh-input { min-height: 28px; height: 28px; padding: 0 8px; font-size: 13px; border-width: 1px; }
.app-ncatname { flex: 1 1 auto; min-width: 0; }
.app-ncatpar { flex: 0 0 auto; width: 86px; padding: 0 4px !important; font-size: 12px !important; }
.app-ncatrow .bh-btn { min-height: 28px; padding: 0 12px; font-size: 13px; }
.app-ncatrow .app-keybtn { flex: none; font-size: 12px; }
.app-ncolorin { flex: none; width: 24px; height: 22px; }
@media (max-width: 520px) { .app-ncatrow { flex-wrap: wrap; } .app-ncatpar { width: auto; flex: 1 1 100px; } }

/* Notebook view: a stack of cards for each category */
.app-nbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; align-items: start; padding: 4px 0 14px; }
.app-nbstack { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 92px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--nc) 45%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--nc) 16%, var(--surface-raised)); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.app-nbstack { --nf1: color-mix(in srgb, var(--nc) 11%, var(--surface-raised)); --nf2: color-mix(in srgb, var(--nc) 7%, var(--surface-raised)); --nbd: color-mix(in srgb, var(--nc) 40%, var(--border)); }
.app-nbstack.s2 { box-shadow: 0 7px 0 -4px var(--nf1), 0 7px 0 -3px var(--nbd); }
.app-nbstack.s3 { box-shadow: 0 7px 0 -4px var(--nf1), 0 7px 0 -3px var(--nbd), 0 14px 0 -8px var(--nf2), 0 14px 0 -7px var(--nbd); }
.app-nbstack:hover, .app-nbstack:focus-visible { outline: none; filter: brightness(.98); }
.app-nbstack.is-open { outline: 2px solid var(--nc); outline-offset: 1px; }
.app-nbhead { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.app-nbhead strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nbdot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--nc); }
.app-nbpeek { display: flex; flex-direction: column; gap: 1px; font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.app-nbpeek span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nbsubs { font-size: 11px; color: var(--ink-muted); }
.app-nbopen { grid-column: 1 / -1; padding: 10px 10px 2px; border: 1px solid color-mix(in srgb, var(--nc) 40%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--nc) 6%, var(--surface)); }
.app-nbsub { margin-top: 6px; }
.app-nbsubh { display: flex; align-items: center; gap: 7px; margin: 4px 0 8px; font-size: 13px; font-weight: 700; }
.app-ncatpar--none { visibility: hidden; }
@media (max-width: 520px) { .app-ncatpar--none { display: none; } }
.app-navorder { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--accent); font: 600 11px/16px var(--font-sans); padding: 2px 2px 2px 6px; cursor: pointer; text-decoration: underline; max-width: 90px; }

/* Dragging: a lifted copy follows the finger and a bar shows where it will land */
.app-dragghost { position: fixed !important; z-index: 10000; margin: 0 !important; pointer-events: none; opacity: .96; transform: scale(1.03) rotate(-1.2deg); box-shadow: 0 14px 30px rgba(15, 30, 45, .32); transition: none; }
.app-navrow.app-dragghost, .app-catmv.app-dragghost, .app-ncatrow.app-dragghost { background: var(--surface-raised); border-radius: 10px; padding: 3px 4px; }
.app-dropline { position: fixed; z-index: 9999; height: 4px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); pointer-events: none; }
body.is-dragging-now, body.is-dragging-now * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.is-dragging { opacity: .35; }
.app-minus { flex: none; }
.app-ncatrow .app-ncatpar { flex: 0 0 86px; width: 86px; min-width: 0; }
@media (max-width: 520px) { .app-ncatrow .app-ncatpar { flex: 0 0 86px; } }

/* The little menu on each note */
.app-nmenubox { display: inline-flex; align-items: center; }
.app-nmore { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 26px; padding: 0; border: 0; background: none; color: var(--ink-muted); font: 700 17px/1 var(--font-sans); cursor: pointer; text-decoration: none; }
.app-nmore::after { content: ""; position: absolute; inset: -8px -3px; }
.app-nmore:hover, .app-nmore:focus-visible { color: var(--ink); }
.app-nmenubox .app-vmenu { min-width: 190px; font-size: 14px; }
.app-nmpane { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
.app-nmpane > button, .app-nmpane > .app-nmback { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14px/20px var(--font-sans); text-align: left; cursor: pointer; }
.app-nmpane > button:hover, .app-nmpane > button:focus-visible { background: var(--surface-sunken); outline: none; }
.app-nmpane > button.is-danger { color: #B3261E; font-weight: 700; }
.app-nmpane .app-nmback { color: var(--ink-muted); font-size: 13px; }
.app-nmpane .bh-input { min-height: 32px; height: 32px; padding: 0 8px; font-size: 14px; border-width: 1px; }
.app-nmpane .app-ndots { padding: 4px 6px; max-width: 220px; }
.app-nmsep { width: 100%; margin: 3px 0; border: 0; border-top: 1px solid var(--border); }
.app-ntile { position: relative; text-align: left; cursor: pointer; }
.app-ntilemenu { position: absolute; right: 2px; top: 2px; }
.app-ntile .app-ngrip { right: 2px; bottom: 2px; }
.app-nrow .app-nmenubox { margin-left: 2px; }
.app-ntile { overflow: visible; }
.app-ntilepin { right: 30px; top: 8px; }
.app-ncard:has(.app-vmenu), .app-ntile:has(.app-vmenu), .app-nrow:has(.app-vmenu) { position: relative; z-index: 60; transform: none !important; }

/* Cards read across, then down (like a page), so the order you see is the order you drag. */
.app-ncards { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; align-items: start; }
.app-ncards > .app-ncard { margin: 0; }
.app-ngrip { touch-action: none; }
body.is-dragging-now .app-ncard:hover, body.is-dragging-now .app-ntile:hover { transform: none; box-shadow: none; }
.app-nsaved { color: var(--ink-muted); align-self: center; }
.app-nmico { flex: none; margin-right: 8px; vertical-align: -3px; color: var(--ink-muted); }

.app-kidshead { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
.app-chev { display: inline-block; font-size: 15px; line-height: 1; color: var(--ink-muted); transition: transform .15s; }
.app-chev.is-open { transform: rotate(90deg); }
.app-kid { display: flex; align-items: center; gap: 8px; }
.app-kid .app-kidt { flex: 1 1 auto; text-align: left; }
.app-kid .app-ngrip { opacity: 0; }
.app-kid:hover .app-ngrip, .app-kid .app-ngrip:focus-visible { opacity: .7; }
.app-kidmore { border: 0; background: none; color: var(--ink-muted); font-size: 18px; line-height: 1; padding: 0 6px; cursor: pointer; opacity: 0; }
.app-kid:hover .app-kidmore, .app-kidmore:focus-visible, .app-kidmore[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .app-kid .app-kidmore, .app-kid .app-ngrip { opacity: .7; } }
.app-kidlast { white-space: nowrap; }
.app-kiddone { align-self: flex-start; }
.app-donearrow { border: 0; background: none; padding: 0 4px 0 0; cursor: pointer; }
.app-donesum { display: flex; align-items: center; gap: 4px; margin: 0; }
.app-moverow { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.app-moverow:hover { background: var(--accent-tint, rgba(0,0,0,.05)); }
.app-movelist { max-height: 50vh; overflow: auto; }
.app-thsec .app-wkrow button { padding: 4px 12px; min-height: 0; font-size: 13px; }

.app-habtiles { gap: 4px; }
.app-habit { padding: 6px 12px !important; background: color-mix(in srgb, var(--hc, transparent) 13%, var(--surface-raised)) !important; }
.app-habgroup { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }

.app-quick { display: inline-flex; gap: 6px; margin-right: 4px; }
.app-quickbtn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-raised); color: var(--ink-muted); cursor: pointer; }
.app-quickbtn:hover, .app-quickbtn:focus-visible { color: var(--accent); border-color: var(--accent); }
.app-quickico { width: 15px; height: 15px; }

/* Habit tiles: the usual quiet tile with a bar in the project's color */
.app-habit { background: var(--surface-raised) !important; border-left: 4px solid var(--hc, var(--border)) !important; }
.app-habwrap { display: flex; align-items: center; gap: 2px; border-radius: 10px; }
.app-habwrap .app-habit { flex: 1 1 auto; min-width: 0; }
.app-habwrap .app-ngrip { opacity: .4; }
.app-habctl { display: inline-flex; gap: 6px; }

.app-habwrap .app-ngrip { opacity: .85; width: 28px; height: 34px; color: var(--accent); }
.app-habwrap .app-ngrip span { font-size: 16px; }

.app-fread { font-size: 1.35em; line-height: 1.7; }

.app-savestat { position: fixed; left: 12px; bottom: 12px; z-index: 9000; padding: 6px 12px; border-radius: 999px; background: var(--surface-raised); color: var(--ink-muted); border: 1px solid var(--border); box-shadow: var(--shadow-md); font-size: 13px; pointer-events: none; }
.app-savestat.is-retry { color: var(--ink); border-color: var(--accent); }
.app-fufrow { align-items: center; gap: 6px; margin-top: 4px; flex-wrap: nowrap; }
.app-fufrow .bh-input { min-width: 0; }
.app-speedchk { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.app-catlist .app-wkrow .app-wkday { min-width: 0; min-height: 22px; padding: 0 8px; font-size: 11px; border-width: 1px; }
.app-catlist .app-plus { flex: none; }
.app-habcheck { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 600; color: var(--ink); }
.app-donebar { color: var(--border-strong); margin: 0 6px; }
.app-donesum .app-donelast { color: var(--accent); }
.app-newsubs .app-newsub, .app-parentpick .app-newsub { flex: 1; min-width: 0; font-size: 14px; }
.app-tickself { margin-right: 6px; flex: none; }
.app-tmove { display: flex; align-items: center; }
/* lighter boxes inside task cards and notes */
.app-workform .bh-input, .app-workform select, .app-workform textarea, .app-nform .bh-input, .app-nform select, .app-nform textarea, .app-nform .app-ntagbox { border-color: color-mix(in srgb, var(--border) 55%, transparent); background: transparent; box-shadow: none; }
.app-workform .bh-input:focus, .app-workform select:focus, .app-workform textarea:focus, .app-nform .bh-input:focus, .app-nform textarea:focus, .app-nform select:focus { border-color: var(--accent); }
.app-gripspace { flex: 0 0 18px; width: 18px; height: 28px; }
.app-donelist { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.app-donechip { padding: 1px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font: 400 12px/1.5 var(--font-sans); cursor: pointer; }
.app-donechip:hover, .app-donechip.is-on { background: var(--surface-sunken); color: var(--ink); }
.app-donechip.has-note { color: var(--accent); }

.app-catlist .app-plus { width: 16px; height: 16px; }
.app-catlist .app-plus svg { width: 9px; height: 9px; }

/* Awana week card: one small bubble marks the whole week */
.app-weekbub { flex: none; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--on-accent); font: 700 11px/1 var(--font-sans); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.app-weekbub.is-on { background: var(--accent); border-color: var(--accent); }
.app-snum.is-tap { cursor: pointer; }
.app-shead { flex-wrap: wrap; row-gap: 2px; }
.app-shead .app-stitle { order: 5; flex: 1 1 100%; overflow: visible; text-overflow: clip; white-space: normal; line-height: 18px; }
.app-shead .app-sdue { order: 2; margin-left: auto; }
.app-shead .app-fpractice { order: 3; }

/* grocery item card: small Save / Cancel / Delete */
.app-gcardbtns { gap: 6px; }
.app-gcardbtns .bh-button, .app-gcardbtns button { min-height: 0; padding: 3px 12px; font-size: 13px; line-height: 20px; }

/* Verses page: lighter, cleaner cards */
.app-units { gap: 14px; }
.app-scard { border: 0; border-radius: 14px; padding: 10px 12px; gap: 3px; background: var(--surface-raised); box-shadow: 0 1px 3px rgba(18, 48, 74, .10), 0 0 0 1px color-mix(in srgb, var(--border) 60%, transparent); }
.app-scard.is-link:hover { box-shadow: 0 2px 8px rgba(18, 48, 74, .14), 0 0 0 1px var(--border-strong); }
.app-scard.is-now { border: 0; background: color-mix(in srgb, var(--primary) 7%, var(--surface-raised)); box-shadow: inset 3px 0 0 var(--primary), 0 1px 3px rgba(18, 48, 74, .10); }
.app-scard.is-review { border-top: 0; box-shadow: inset 3px 0 0 var(--accent), 0 1px 3px rgba(18, 48, 74, .08); }
.app-scard.is-past { box-shadow: 0 0 0 1px color-mix(in srgb, var(--border) 60%, transparent); }
.app-scard .app-snum { background: transparent; padding: 0; font: 800 13px/20px var(--font-sans); color: var(--primary); }
.app-scard .app-stitle { font: 700 15px/19px var(--font-sans); letter-spacing: -.005em; }
.app-scard .app-sdue { font: 600 11px/18px var(--font-sans); padding: 0 8px; border-radius: 999px; background: var(--surface-sunken); }
.app-scard .app-slist { gap: 0; margin-top: 2px; }
.app-scard .app-srow { width: auto; padding: 6px 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent); border-radius: 0; background: transparent; gap: 8px; }
.app-scard .app-srow:first-child { border-top: 0; }
.app-scard .app-srow:hover { background: transparent; }
.app-scard .app-memo { border: 0; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); padding: 0 7px; letter-spacing: .06em; font-size: 9px; }
.app-scard .app-sready { flex: none; width: auto; height: 14px; margin: 0 0 0 26px; gap: 3px; }
.app-scard .app-sready::before { content: 'Silver'; font: 600 10px/14px var(--font-sans); color: var(--ink-muted); margin-right: 4px; letter-spacing: .04em; text-transform: uppercase; }
.app-scard .app-sready .app-dot + .app-dot { margin-left: 0; }
.app-uhead { border-radius: 12px; }

/* Task card: tick and date beside the name, small more button up by the X, shorter pills, firmer fields */
.app-tasktop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app-taskline { display: flex; align-items: center; gap: 8px; }
.app-taskline .bh-input { flex: 1 1 auto; min-width: 0; }
.app-taskline .app-tickself { flex: none; }
.app-dialog:has(.app-workform) { position: relative; }
.app-dialog:has(.app-workform) .app-cardhead .app-more { position: absolute; top: 9px; right: 52px; z-index: 7; }
.app-dialog:has(.app-workform) .app-cardhead .app-morebtn { width: 24px; height: 24px; font-size: 13px; }
.app-dialog:has(.app-workform) .app-cardhead .app-moremenu { top: 28px; right: 0; }
.app-workform .app-pills .app-dppill, .app-workform .app-pills button { min-height: 26px; padding-top: 2px; padding-bottom: 2px; font-size: 12.5px; line-height: 20px; }
.app-workform { gap: 10px; }
.app-workform .bh-input, .app-workform select, .app-workform textarea { border-color: color-mix(in srgb, var(--border-strong) 80%, transparent); background: color-mix(in srgb, var(--surface-sunken) 55%, var(--surface)); }

/* View As: roomier picker; smaller task checkboxes */
.app-tdcheck { width: 18px; height: 18px; border-radius: 5px; }
.app-tdcheck.is-select { font-size: 12px; }
.app-viewas { position: relative; }
.app-viewas-btn { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); cursor: pointer; position: relative; }
.app-viewas-btn .app-viewas-ico { left: 6px; top: 6px; }
.app-viewmenu { position: absolute; top: 34px; right: 0; bottom: auto; min-width: 150px; padding: 6px; }
.app-viewmenu .app-moreitem { padding: 8px 14px; text-align: left; white-space: nowrap; }

/* Smaller sort / filter pills everywhere, and a divider in the side menu */
.app-wkselect { min-height: 24px; height: 24px; padding: 0 20px 0 8px; font-size: 12px; line-height: 20px; }
.app-vfsel { min-height: 26px; padding-top: 1px; padding-bottom: 1px; padding-right: 22px; font-size: 12px; }
.app-wkviews .app-wkday { min-height: 24px; padding: 0 9px; font-size: 11.5px; }
.app-nfmenu select, .app-nfmenu .bh-input { min-height: 26px; font-size: 12px; }
.app-wknavgrp + .app-wknavgrp { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border); }

.app-trow.is-drop-into { box-shadow: inset 0 0 0 2px var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); border-radius: 8px; }

/* History: heading, Record row, years that fold */
.app-histhead { margin: 0; font: 700 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.app-histrec { align-items: center; gap: 6px; }
.app-histlbl { font: 600 13px/20px var(--font-sans); }
.app-histyearbtn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: transparent; color: var(--ink); font: 700 13px/20px var(--font-sans); cursor: pointer; }
.app-histyearbtn em { font-style: normal; font-weight: 600; color: var(--ink-muted); font-size: 12px; }
.app-habdatebtn { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.app-habchip.has-note { border-color: var(--accent); }
.app-habdotg { cursor: pointer; }
.app-habdot.has-note { stroke: var(--accent); stroke-width: 2; }

/* Verses page, lighter and tighter */
.app-uhead { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); color: var(--ink); padding: 5px 12px; box-shadow: inset 3px 0 0 var(--primary); }
.app-uhead .app-vheadbtn, .app-uhead .app-utitle, .app-uhead .app-vchev, .app-uhead .app-vlink { color: var(--ink); }
.app-uhead .app-gnotes { color: var(--ink-muted); }
.app-uhead .app-vlink { font-weight: 600; text-decoration: none; color: var(--primary); }
.app-dots { gap: 4px; width: auto; flex: 0 0 auto; }
.app-dots .app-dot + .app-dot { margin-left: 0; }
.app-scard { padding: 7px 10px; gap: 1px; }
.app-scard .app-stitle { font-size: 14px; line-height: 17px; }
.app-scard .app-srow { padding: 4px 0; }
.app-scard .app-sready { margin: 0; height: 12px; gap: 4px; }
.app-scard .app-sready::before { font-size: 9px; line-height: 12px; letter-spacing: .06em; opacity: .7; }
.app-scard .app-sready .app-dot { width: 8px; height: 8px; }
.app-scard .app-sready .app-dot.is-done { width: 10px; height: 10px; }
.app-silverdot { width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 2px solid var(--kid, var(--border-strong)); background: var(--surface); color: #fff; font: 800 12px/1 var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.app-silverdot.is-on { background: var(--kid, #8F9BA8); }
/* Today's Check-In week dots: a stray style elsewhere was squashing them */
.app-fdots .app-fdot { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; width: auto; height: auto; margin: 0; background: transparent; border-radius: 0; vertical-align: top; }
.app-fdots { gap: 10px; margin-top: 2px; }

/* past weeks stay readable; unit headers stand out; every verse row the same size */
.app-scard.is-past { background: var(--surface-raised); box-shadow: 0 0 0 1px var(--border); }
.app-scard.is-past .app-stitle { color: var(--ink); opacity: .78; }
.app-scard.is-past .app-sdue { color: var(--ink-muted); }
.app-uhead { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); box-shadow: inset 4px 0 0 var(--primary), 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent); }
.app-scard .app-srow .app-dot, .app-scard .app-srow .app-dot.is-done { width: 12px; height: 12px; }
.app-scard .app-srow .app-dot.is-done::after { font-size: 9px; }

/* Awana page: units on the left, weeks on the right */
.app-awlayout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 14px; align-items: start; }
.app-awlayout.is-solo { grid-template-columns: minmax(0, 1fr); }
.app-awrail { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 8px; }
.app-awbtn { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 600 13px/16px var(--font-sans); text-align: left; cursor: pointer; }
.app-awbtn:hover { background: var(--surface-sunken); }
.app-awbtn.is-on { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); box-shadow: inset 3px 0 0 var(--primary); }
.app-awname { display: flex; flex-direction: column; min-width: 0; }
.app-awname em { font: 500 11px/14px var(--font-sans); font-style: normal; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-awn { flex: none; font: 700 11px/16px var(--font-sans); padding: 0 7px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink-muted); }
.app-awbtn.is-on .app-awn { background: var(--primary); color: var(--on-primary, #fff); }
.app-awcol { min-width: 0; display: grid; gap: 8px; }
.app-awsel { display: none; }
.app-awhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.app-awtitle { font: 800 16px/20px var(--font-sans); }
.app-awmeta { font: 500 12px/18px var(--font-sans); color: var(--ink-muted); }
.app-awhead .app-vlink { margin-left: auto; }
.app-awhead .app-vlink + .app-vlink { margin-left: 10px; }
@media (max-width: 760px) {
  .app-awlayout { grid-template-columns: minmax(0, 1fr); }
  .app-awrail { display: none; }
  .app-awsel { display: block; }
}

/* copyright note sits in its own strip at the bottom, not on the tinted section */
.app-faith .app-notices { margin: var(--space-3) calc(-1 * var(--space-3)) calc(-1 * var(--space-3)); padding: 10px var(--space-3); background: var(--surface); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); color: var(--ink-muted); font-size: 11px; line-height: 15px; }
/* Awana: the units list is its own panel, like the project list in Tasks */
.app-awrail { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: 0 1px 2px rgba(18, 48, 74, .06); }
.app-awlayout { gap: 18px; }

/* Kid Daybreak verses: a small check beside each verse, links to both verse pages */
.app-fverse-links { display: inline-flex; gap: 6px; }
.app-fverse-row { display: inline-flex; align-items: center; gap: 6px; }
.app-fverse-row.is-got .app-fverse { opacity: .6; text-decoration: line-through; }
.app-dotbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; min-height: 26px; padding: 0; margin: -6px 0; border: 0; background: none; cursor: pointer; }
.app-weekbub { width: 15px; height: 15px; font-size: 10px; }

/* Kid color theme: a kid's own color on every tab, the same tint Home and Kids already use */
.app-kidtheme .app-header { border-bottom: 4px solid var(--kid); }
.app-kidtheme .app-main { background: color-mix(in srgb, var(--kid) 8%, var(--surface)); border-radius: var(--radius-lg); }
.app-kidtheme .app-main .app-board-page { background: transparent; border-top: 0; }
.app-kidtheme .app-tabs-wrap .bh-tab.is-active { background: var(--kid); border-color: var(--kid); color: var(--kid-ink); }
.app-kidtheme .app-fcard { border-color: var(--kid); }

/* Work list: icons instead of word pills, deadline pin on the right */
.app-trow .app-wktag { padding: 0; border: 0; background: none; line-height: 1; display: inline-flex; align-items: center; }
.app-trow .app-wktag .app-ico { width: 13px; height: 13px; }
.app-tdl { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; padding-left: 8px; font: 600 11.5px/1 var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.app-m .app-ico { margin-right: 3px; vertical-align: -1px; }

/* Awana views: cards, list, table */
.app-vsw { margin-left: auto; display: inline-flex; gap: 2px; }
.app-vswbtn { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.app-vswbtn.is-on { background: var(--surface-sunken); color: var(--ink); }
.app-vlist, .app-vtables { display: flex; flex-direction: column; gap: 14px; }
.app-lweek { display: flex; flex-direction: column; gap: 2px; }
.app-lwhead { display: flex; align-items: baseline; gap: 8px; padding: 2px 0 4px; border-bottom: 1px solid var(--border); font: 700 13px/1.3 var(--font-sans); }
.app-lrows { margin: 0; padding: 0; list-style: none; }
.app-lrow { display: flex; align-items: center; gap: 10px; padding: 3px 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.app-lrow > :first-child { flex: 1; min-width: 0; }
.app-lchecks { display: inline-flex; gap: 2px; align-items: center; }
.app-vcheck .app-dot { width: 16px; height: 16px; box-sizing: border-box; }
.app-vcheck .app-dot:not(.is-done) { background: transparent; border: 2px solid var(--kid); }
.app-vcheck .app-dot.is-done { width: 16px; height: 16px; }
.app-vtable { width: 100%; border-collapse: collapse; font: 500 14px/1.3 var(--font-sans); }
.app-vtable th, .app-vtable td { padding: 4px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.app-vtable th { font: 700 12px/1.3 var(--font-sans); color: var(--ink-muted); }
.app-vtable .app-vtc { text-align: center; width: 64px; }

/* Todoist-style View panel: layout tiles, then Sort and Filter */
.app-vpanel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 41; width: min(320px, 92vw); max-height: 80vh; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); box-shadow: var(--shadow-md); }
.app-vptitle { font: 700 13px/1 var(--font-sans); }
.app-vtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-sunken); }
.app-vtile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-muted); font: 600 11.5px/1 var(--font-sans); cursor: pointer; }
.app-vtile.is-on { background: var(--surface-raised); color: var(--ink); box-shadow: 0 0 0 1px var(--border-strong); }
.app-vpsec { border-top: 1px solid var(--border); padding-top: 10px; }
.app-vpsec > summary { cursor: pointer; font: 700 13px/1 var(--font-sans); list-style: none; display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.app-vpsec > summary::-webkit-details-marker { display: none; }
.app-vpsec > summary::after { content: '\25be'; margin-left: auto; color: var(--ink-muted); }
.app-vpsec:not([open]) > summary::after { content: '\25b8'; }
.app-vpclear { margin-left: 4px; font-size: 12px; }
.app-vprow { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; padding: 4px 0; font: 500 13px/1.2 var(--font-sans); }
.app-vptoggle { grid-template-columns: 1fr auto; }
.app-vprow .app-wkselect { width: 100%; min-width: 0; }
.app-vpmore { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding-top: 6px; }
.app-vpmore button { text-align: left; padding: 7px 4px; border: 0; background: none; color: var(--ink); font: 500 13px/1.2 var(--font-sans); cursor: pointer; border-radius: 6px; }
.app-vpmore button:hover { background: var(--surface-sunken); }
/* Table layout */
.app-ttablewrap { overflow-x: auto; }
.app-ttable { width: 100%; border-collapse: collapse; font: 500 13.5px/1.3 var(--font-sans); }
.app-ttable th { text-align: left; padding: 6px 8px; font: 700 12px/1.3 var(--font-sans); color: var(--ink-muted); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.app-ttable td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.app-ttable tbody tr { cursor: pointer; }
.app-ttable tbody tr:hover { background: var(--surface-sunken); }
.app-ttable .app-tpri { font: 700 12px/1 var(--font-sans); }
.app-wkhead .app-wksearch { margin-left: auto; }

.app-stico { display: inline-flex; width: 20px; justify-content: center; color: var(--ink-muted); }
.app-stsel { width: 92px; flex: none; }
.app-m--status { color: var(--ink-muted); display: inline-flex; align-items: center; }

/* Kids Tasks editor */
.app-ktbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.app-ktsel { max-width: 260px; }
.app-ktbar .bh-btn, .app-ktbar button { margin-left: auto; }
.app-ktlist { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.app-ktrow { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid var(--border); }
.app-ktrow:last-child { border-bottom: 0; }
.app-ktrow.is-hidden .app-ktmain { opacity: .55; }
.app-ktrow.is-dragging { opacity: .4; }
.app-ktrow.is-dropat { box-shadow: 0 -2px 0 var(--accent); }
.app-ktmain { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 2px 4px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.app-kttitle { font: 600 14px/1.3 var(--font-sans); }
.app-kthid { font: 600 11px/1 var(--font-sans); color: var(--ink-muted); font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
.app-ktmeta { font: 500 12px/1.3 var(--font-sans); color: var(--ink-muted); }
.app-ktico { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.app-ktico:hover { background: var(--surface-sunken); }
.app-ktico .app-ico { width: 15px; height: 15px; }
.app-ktchips { display: flex; flex-wrap: wrap; gap: 6px; }
.app-ktchip { min-height: 28px; padding: 0 12px; border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.app-ktchip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.app-ktcheck { display: flex; align-items: center; gap: 6px; font: 500 14px/1.3 var(--font-sans); }

/* Super Sweep */
.app-sweepclock { font: 700 clamp(48px, 14vw, 84px)/1 var(--font-sans); text-align: center; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.app-sweepclock.is-over { color: #C77100; }
.app-sweepcount { text-align: center; margin: 0; }
.app-sweeplist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
ul.app-sweeplist:not(.app-sweepitems) li { padding: 4px 2px; font: 500 14px/1.3 var(--font-sans); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; }
.app-sweepitem { display: flex; align-items: flex-start; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--border); font: 500 14px/1.3 var(--font-sans); }
.app-sweepitem .app-sweepbub { margin-top: 1px; }
.app-sweepitem.is-done .app-sweeptext { color: var(--ink-muted); text-decoration: line-through; }
.app-sweeptext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-sweepdesc { text-decoration: none; color: var(--ink-muted); }
.app-sweeponce { font: 600 11px/1 var(--font-sans); color: var(--ink-muted); font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
.app-sweepby { font: 600 12px/1 var(--font-sans); color: var(--ink-muted); }
.app-sweepbub { width: 20px; height: 20px; font-size: 12px; }
.app-sweepplus { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--ink); font: 600 18px/1 var(--font-sans); cursor: pointer; }
.app-sweepadd { display: flex; gap: 8px; align-items: center; }
.app-sweepadd .bh-input { flex: 1; }
.app-sweepwho { margin: 2px 0; font: 500 14px/1.4 var(--font-sans); }
.app-sweepstartrow { align-items: center; gap: 10px; }
.app-sweepstartrow .bh-btn { min-height: 32px; padding: 0 var(--space-3); font-size: 13px; }
.app-sweeprow { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.app-sweeprow .bh-input:first-child { flex: 0 0 38%; }
.app-sweeprow .bh-input:nth-child(2) { flex: 1; }
.app-spacer { flex: 1; }

/* Kids' focus timer */
.app-kidtools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.app-ktimer { display: flex; flex-direction: column; gap: 8px; }
.app-ktimerbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--kid, var(--accent)); border-radius: 999px; background: color-mix(in srgb, var(--kid, var(--accent)) 14%, var(--surface)); color: var(--ink); font: 700 16px/1 var(--font-sans); cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.app-ktimerbtn.is-live { background: var(--kid, var(--accent)); border-color: var(--kid, var(--accent)); color: var(--kid-ink, var(--on-accent)); }
.app-ktimerbtn .app-ico { width: 22px; height: 22px; }
.app-ktimerbtn--icon { width: 44px; padding: 0; justify-content: center; }
.app-ktimerbox { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.app-ktimerbox .bh-btn--accent { border-color: var(--kid, var(--accent)); background: var(--kid, var(--accent)); color: var(--kid-ink, var(--on-accent)); }
.app-ktring { position: relative; display: flex; align-items: center; gap: 14px; }
.app-ktclock { position: absolute; left: 0; width: 110px; top: 0; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 24px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.app-ktclock small { font: 600 11px/1.4 var(--font-sans); color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.app-ktpick { display: flex; flex-direction: column; gap: 2px; font: 600 12px/1 var(--font-sans); color: var(--ink-muted); }
.app-ktdone { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.app-ktcelebrate { font-size: 28px; animation: ktpop .9s ease-out 1; }
@keyframes ktpop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .app-ktcelebrate { animation: none; } }

/* Habit line stays on one row */
.app-donesum { flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
.app-donesum .app-donelast { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.app-donesum .app-linkbtn, .app-donesum .app-habcheck { flex: none; white-space: nowrap; }
.app-m--last { opacity: .7; font-style: italic; }

/* Birthdays: event icons, relationship, sort and groups */
.app-bdbadge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--bd) 18%, var(--surface)); color: var(--bd); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bd) 40%, transparent); }
.app-bdbadge svg { width: 13px; height: 13px; }
.app-bdtext { display: flex; align-items: center; gap: 8px; }
.app-bdtext .app-gname { flex: 1; min-width: 0; }
.app-bdrel { font-style: italic; font-weight: 400; font-size: 12px; color: var(--ink-muted); }
.app-bdwhen { margin-left: auto; white-space: nowrap; }
.app-bdtools { display: flex; align-items: center; gap: 12px; }
.app-bdsort { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-sans); color: var(--ink-muted); }
.app-bdsort .bh-input { width: auto; min-height: 30px; padding-block: 2px; font-size: 13px; }
.app-bdgroup { display: flex; flex-direction: column; }
.app-bdghead { display: flex; align-items: center; gap: 6px; width: 100%; padding: 5px 2px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--ink); text-align: left; font: 700 13px/1.2 var(--font-sans); cursor: pointer; }
.app-hgsec { display: flex; align-items: center; gap: 8px; }
.app-hgtoggle { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.app-celebrate li .app-bdbadge { margin-right: 6px; vertical-align: middle; }
.app-gtext.app-bdtext { flex-direction: row; align-items: center; text-align: left; }
.app-gtext.app-gtext--steprow { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
.app-hgitem:has(.app-bdtext) { flex-wrap: wrap; }
/* Color pickers are round everywhere */
input[type="color"].app-catpick, input[type="color"].app-gcolor, input[type="color"].app-fcolor, input[type="color"].app-ncolorin, input[type="color"].app-pri-color {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; min-width: 22px; padding: 0; border: 1.5px solid var(--border-strong); border-radius: 50%; overflow: hidden; background: none; cursor: pointer; }
input[type="color"].app-catpick::-webkit-color-swatch-wrapper, input[type="color"].app-gcolor::-webkit-color-swatch-wrapper, input[type="color"].app-fcolor::-webkit-color-swatch-wrapper, input[type="color"].app-ncolorin::-webkit-color-swatch-wrapper, input[type="color"].app-pri-color::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"].app-catpick::-webkit-color-swatch, input[type="color"].app-gcolor::-webkit-color-swatch, input[type="color"].app-fcolor::-webkit-color-swatch, input[type="color"].app-ncolorin::-webkit-color-swatch, input[type="color"].app-pri-color::-webkit-color-swatch { border: 0; border-radius: 50%; }
input[type="color"].app-catpick::-moz-color-swatch, input[type="color"].app-gcolor::-moz-color-swatch, input[type="color"].app-fcolor::-moz-color-swatch, input[type="color"].app-ncolorin::-moz-color-swatch, input[type="color"].app-pri-color::-moz-color-swatch { border: 0; border-radius: 50%; }
/* Quiet save note: tiny, no pill, fades in and out */
.app-savestat { left: 10px; bottom: 6px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 11px; opacity: .55; animation: app-fadein .25s ease both; }
.app-savestat.is-retry { opacity: 1; padding: 4px 10px; border: 1px solid var(--accent); border-radius: 999px; background: var(--surface-raised); font-size: 12px; }
@keyframes app-fadein { from { opacity: 0; } }
/* Notes: Keep-style quick icons along the bottom of a card */
.app-nacts { display: flex; align-items: center; gap: 2px; margin-top: 4px; opacity: .55; transition: opacity .15s; }
.app-ncard:hover .app-nacts, .app-ncard:focus-within .app-nacts { opacity: 1; }
.app-nacts .app-vmenuwrap { display: inline-flex; }
.app-nact, .app-nacts .app-nmore { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); cursor: pointer; font-size: 18px; line-height: 1; }
.app-nact:hover, .app-nact:focus-visible, .app-nacts .app-nmore:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.app-nact .app-nmico { width: 16px; height: 16px; }
.app-nact-more { margin-left: auto; display: inline-flex; }
.app-nfoldbtn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.app-nfoldbtn span { color: var(--ink-muted); font-size: 13px; width: 12px; }
.app-projmore { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.app-projmore:hover { background: var(--surface-sunken); color: var(--ink); }
.app-scopehead .app-vmenuwrap { margin-left: auto; }
.app-navarch summary { cursor: pointer; }
/* Habit Tracker Sort and Group: roomy, readable selects like the View panel */
.app-habctl { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.app-habctl .app-navorder { max-width: none; height: 32px; padding: 0 28px 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238a97a3' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--ink); font: 500 13px/1 var(--font-sans); text-decoration: none; }
.app-habctl .app-navorder:hover { border-color: var(--accent); }
.app-vpanel .app-wkselect, .app-vpanel select { min-height: 32px; font-size: 13px; padding: 0 10px; }
.app-vprow { min-height: 36px; gap: 12px; }
/* Follow-up dates: the date never gets cut off */
.app-fufrow { flex-wrap: wrap; }
.app-fufrow .app-fquick-date { flex: 0 0 12.5rem; min-width: 12.5rem; }
.app-fufrow > .bh-input:not(.app-fquick-date) { flex: 1 1 10rem; min-width: 0; }

/* ---- Kids Tasks editor: a full page, compact in-place table, one calm accent ---- */
.app-ktwrap { gap: 10px; }
.app-ktpagehead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--border-strong); }
.app-ktpagehead .app-pagetitle { margin: 0; }
.app-ktpagehead .app-ktsel { max-width: 280px; padding-right: 36px; font-weight: 600; }
.app-ktback { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--ink); text-decoration: none; font-size: 20px; line-height: 1; }
.app-ktback:hover { background: var(--surface-sunken); }
.app-ktadd { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font-size: 20px; line-height: 1; cursor: pointer; }
.app-ktadd:hover { filter: brightness(1.1); }
.app-ktwrap .app-ktbar { align-items: end; gap: 8px 10px; padding: 8px 10px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: 10px; }
.app-ktwrap .app-ktbar button { margin-left: 0; }
.app-ktsearch { max-width: 190px; height: 30px; }
.app-ktpick { display: inline-flex; flex-direction: column; gap: 2px; font-size: 10px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; }
.app-ktpick .bh-input { height: 30px; padding: 0 8px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); min-width: 92px; }
.app-ktsum { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-muted); }
.app-ktfold { display: inline-flex; gap: 12px; }
.app-kttable { border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--surface-raised); }
.app-ktthead, .app-ktwrap .app-ktrow { display: grid; align-items: center; gap: 6px; padding: 0 10px; }
.app-ktthead { position: sticky; top: 0; z-index: 2; height: 26px; background: color-mix(in srgb, var(--accent) 16%, var(--surface-raised)); color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.app-ktwrap .app-ktrow { min-height: 30px; border-bottom: 1px solid var(--border); background: transparent; }
.app-ktwrap .app-ktrow:last-child { border-bottom: 0; }
.app-ktwrap .app-ktrow:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.app-ktwrap .app-ktrow.is-hidden .app-ktcell { opacity: .5; }
.app-ktcell { width: 100%; min-width: 0; height: 26px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; }
.app-ktcell:hover { border-color: var(--border-strong); background: var(--surface); }
.app-ktcell:focus { outline: 0; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.app-ktcell--task { font-weight: 600; }
.app-ktcell--taskwrap { display: flex; flex-direction: column; min-width: 0; gap: 0; }
.app-ktpaused { padding: 0 6px; }
.app-ktcell--pts { text-align: center; }
.app-kttier { padding: 0 2px; font-size: 12px; color: var(--ink-muted); cursor: pointer; }
.app-kteye, .app-ktdots { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--accent); cursor: pointer; font-size: 18px; line-height: 1; }
.app-kteye:hover, .app-ktdots:hover { background: var(--surface-sunken); }
.app-ktdots { color: var(--ink-muted); }
.app-kteye.is-off { color: var(--ink-muted); opacity: .55; }
.app-kteye.is-off .app-kteyeico { background: linear-gradient(to top right, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%); }
.app-kteyeico { width: 16px; height: 16px; }
.app-ktgroup { border-top: 1px solid var(--border-strong); }
.app-ktgroup:first-of-type { border-top: 0; }
.app-ktgh { display: flex; align-items: center; gap: 10px; padding: 0 10px; min-height: 32px; background: color-mix(in srgb, var(--accent) 9%, var(--surface-raised)); border-bottom: 1px solid var(--border); }
.app-ktgtoggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; flex: 1; text-align: left; min-height: 32px; }
.app-ktchev { width: 12px; color: var(--ink-muted); font-size: 12px; }
.app-ktdot { display: none; }
.app-ktcount { padding: 0 6px; border-radius: 999px; background: transparent; color: var(--ink-muted); font-size: 11px; font-weight: 500; }
.app-ktgeye { padding: 2px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); font: inherit; font-size: 11.5px; cursor: pointer; }
.app-ktgeye:hover { background: var(--surface-sunken); color: var(--ink); }
@media (max-width: 640px) { .app-ktthead { display: none; } .app-ktwrap .app-ktrow { grid-template-columns: 30px 1fr 26px !important; padding: 4px 8px; } .app-ktwrap .app-ktrow .app-ktcell:not(.app-ktcell--task) { display: none; } }

/* Sub-task fold: a small, quiet chevron under the tick of any task that has sub-tasks */
.app-tickcol { display: inline-flex; flex-direction: column; align-items: center; align-self: flex-start; }
.app-treechev { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 14px; margin-top: 1px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink-muted); font-size: 11px; line-height: 1; cursor: pointer; }
.app-treechev:hover { background: var(--surface-sunken); color: var(--ink); }
.app-treeall { margin-left: auto; font-size: 12px; white-space: nowrap; }
/* Quiet note saving: a faint check in a fixed spot, so nothing moves or flashes while typing */
.app-nsaved { display: inline-block; width: 16px; text-align: center; color: var(--ink-muted); font-size: 12px; opacity: 0; transition: opacity .6s ease; }
.app-nsaved.is-on { opacity: .45; }

/* Birthdays: plain black-and-white line icons, no colored circles */
.app-bdbadge { width: 16px; height: 16px; border-radius: 0; background: none; box-shadow: none; color: var(--ink); }
.app-bdbadge svg { width: 15px; height: 15px; }

/* ---------- Edit Tasks, modern table (PR 54): no boxes, thin row lines, cells look like text until touched ---------- */
.app-ktpagehead { border-bottom: 0; padding-bottom: 2px; }
.app-ktback { border-color: var(--border); }
.app-ktwrap .app-ktbar { padding: 0; background: none; border: 0; border-radius: 0; gap: 8px 12px; }
.app-ktpick { font-size: 10.5px; font-weight: 600; }
.app-kttable { border: 0; border-radius: 0; overflow: visible; background: transparent; }
.app-ktthead { position: sticky; top: 0; height: 32px; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--ink-muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.app-ktth { display: inline-flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.app-ktsortbtn { padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
.app-ktsortbtn:hover, .app-ktsortbtn.is-on { color: var(--ink); }
.app-ktwrap .app-ktrow { min-height: 38px; border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); gap: 6px; }
.app-ktwrap .app-ktrow:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.app-ktcell { height: 30px; border: 0; }
.app-ktcell:hover { background: var(--surface-sunken); }
.app-ktcell:focus { background: var(--surface); box-shadow: 0 0 0 1.5px var(--accent); }
.app-ktcell--task { font-weight: 500; }
.app-kttier { -webkit-appearance: none; appearance: none; padding: 0 6px; color: var(--tc); font-weight: 600; font-size: 12.5px; }
.app-ktgroup { border-top: 0; }
.app-ktgh { min-height: 40px; padding: 10px 10px 2px; gap: 8px; background: none; border-bottom: 1px solid var(--border); }
.app-ktgtoggle { flex: none; gap: 6px; font-size: 14px; min-height: 28px; }
.app-ktgname { font-size: 14px; }
.app-ktgspace { flex: 1; }
.app-ktdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gc); }
.app-ktcount { padding: 0; font-size: 12px; }
.app-ktnone { display: block; }
.app-ktpick2 { display: block; min-width: 0; }

/* Dropdowns with checkboxes, pick-or-add lists and the little i notes */
.app-cpwrap { position: relative; display: inline-block; min-width: 0; }
.app-cpbtn { display: flex; align-items: center; gap: 4px; width: 100%; min-width: 0; height: 30px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.app-cpbtn:hover, .app-cpbtn[aria-expanded="true"] { background: var(--surface-sunken); }
.app-cpbtn.is-empty .app-cptext { color: var(--ink-muted); }
.app-cptext { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-cpcaret { flex: none; font-size: 10px; color: var(--ink-muted); opacity: 0; }
.app-cpbtn:hover .app-cpcaret, .app-cpbtn:focus-visible .app-cpcaret, .app-cpbtn[aria-expanded="true"] .app-cpcaret { opacity: 1; }
.app-tdfield .app-cpwrap { display: block; }
.app-tdfield .app-cpbtn { height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 15px; }
.app-tdfield .app-cpcaret { opacity: 1; }
.app-popback { position: fixed; inset: 0; z-index: 1000; }
.app-poppanel { position: fixed; z-index: 1001; min-width: 170px; max-width: min(320px, calc(100vw - 16px)); max-height: 340px; overflow: auto; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); box-shadow: var(--shadow-md); color: var(--ink); }
.app-cpopt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.app-cpopt:hover { background: var(--surface-sunken); }
.app-cpopt input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.app-cpopt--all { border-bottom: 1px solid var(--border); border-radius: 6px 6px 0 0; margin-bottom: 2px; }
.app-cppanel--grid { display: grid; grid-template-columns: repeat(4, auto); min-width: 0; }
.app-cppanel--grid .app-cpopt--all { grid-column: 1 / -1; }
.app-cpsearch { width: 100%; height: 32px; margin-bottom: 4px; font-size: 14px; }
.app-cplist { display: flex; flex-direction: column; }
.app-cpitem { padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.app-cpitem:hover { background: var(--surface-sunken); }
.app-cpitem.is-on { color: var(--accent); font-weight: 600; }
.app-cpitem--none { color: var(--ink-muted); }
.app-cpitem--add { color: var(--accent); }
.app-cpdate { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding: 8px 8px 4px; border-top: 1px solid var(--border); font-size: 12px; color: var(--ink-muted); }
.app-cpdate .bh-input { height: 32px; font-size: 14px; }
.app-infowrap { display: inline-flex; vertical-align: middle; }
.app-info { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; padding: 0; border: 1.2px solid currentColor; border-radius: 50%; background: none; color: var(--ink-muted); font: italic 600 10px/1 Georgia, serif; text-transform: none; letter-spacing: 0; cursor: pointer; }
.app-info:hover, .app-info[aria-expanded="true"] { color: var(--accent); }
.app-infopanel { max-width: 300px; padding: 10px 12px; }
.app-infotitle { display: block; margin-bottom: 6px; font-size: 12px; }
.app-infopanel dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; margin: 0; font-size: 12.5px; line-height: 1.35; }
.app-infopanel dt { font-weight: 600; white-space: nowrap; }
.app-infopanel dd { margin: 0; color: var(--ink-muted); }
.app-ktlabel { display: inline-flex; align-items: center; gap: 6px; }

/* Icon picker for a Daily Domain category */
.app-iconpick { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.app-iconpick:hover { background: var(--surface-sunken); }
.app-iconpickico { width: 18px; height: 18px; }
.app-iconpanel { display: grid; grid-template-columns: repeat(6, 34px); gap: 4px; min-width: 0; }
.app-iconopt { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.app-iconopt:hover { background: var(--surface-sunken); }
.app-iconopt.is-on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }

/* The one delete button: Delete, then red Tap Again */
.app-delbtn.is-sure, .app-delbtn.is-sure:hover { background: var(--danger, #B3261E); border-color: var(--danger, #B3261E); color: #fff; }
.app-delbtn--sm { min-height: 28px; padding: 0 10px; font-size: 13px; }
.app-delbtn .app-nmico { width: 14px; height: 14px; }

/* Zones page */
.app-znav { display: flex; align-items: center; gap: 8px; }
.app-znavbtn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: none; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.app-znavbtn:hover { background: var(--surface-sunken); }
.app-znavlabel { font-weight: 600; font-size: 14px; }
.app-ztable .app-ktthead .is-now { color: var(--accent); }
.app-zwho { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.app-zdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

@media (max-width: 640px) {
  .app-kttable:not(.app-ztable) .app-ktrow > :not(.app-kteye):not(.app-ktcell--task):not(.app-ktdots) { display: none; }
  .app-ztable .app-ktthead { display: grid; }
  .app-ztable .app-ktrow { grid-template-columns: var(--zgrid) !important; }
  .app-ztable .app-ktrow > * { display: block !important; }
}
.app-nmpane > button.is-danger, .app-vmenu button.is-danger { background: var(--danger, #B3261E); color: #fff; border-radius: 6px; }
.app-nmpane > button.is-danger .app-nmico { color: #fff; }
.app-iconopt .app-cardico, .app-iconopt svg { color: var(--ink); }
.app-iconopt.is-on svg { color: var(--accent); }

/* Zones: a long list of zones wraps inside its own week instead of running into the next one */
.app-ztable [role="cell"], .app-kttable .app-ktrow > * { min-width: 0; }
.app-ztable .app-ktrow { align-items: start; padding-top: 4px; padding-bottom: 4px; }
.app-ztable .app-zwho { padding-top: 6px; }
.app-ztable .app-cpwrap { display: block; }
.app-ztable .app-cpbtn { height: auto; min-height: 30px; padding: 5px 6px; align-items: flex-start; }
.app-ztable .app-cptext { white-space: normal; overflow: visible; line-height: 1.4; }
.app-settools { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Settings > Pages: each page name sits right on top of its own dropdown, so it is clear which goes with which */
.app-pagegrid { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.app-pagecell { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 0; }
.app-pagecell .app-gridname { font-size: 12px; color: var(--ink-muted); }
.app-pagecell .app-gridselect { width: 96px; }
.app-pageafter { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.app-pageafter .app-dl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.app-pageafter .app-dl dt { padding: 0; border: 0; font-size: 12px; color: var(--ink-muted); }
.app-pageafter .app-dl dd { padding: 0; border: 0; max-width: 340px; width: 100%; }

/* Home: birthdays and special days, one per line */
.app-celebrate ul { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
.app-celebrate li { align-items: center; }
.app-celebrate-when { min-width: 92px; }

/* ---------- Packing ---------- */
.app-packhead { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.app-packhead .bh-heading { margin: 0; }
.app-packtools { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.app-packtools .app-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.app-packtools .app-iconbtn:hover { background: var(--surface-sunken); }
.app-packwho { width: auto; min-width: 150px; height: 36px; font-size: 14px; }
.app-packadd2 { display: flex; align-items: center; gap: 8px; max-width: 640px; }
.app-packadd2 .bh-input { height: 36px; font-size: 14px; }
.app-packadd2 > .bh-input:first-child { flex: 1; min-width: 0; }
.app-packqty { width: 52px; text-align: center; }
.app-packadd2 .app-ktadd, .app-packnew .app-ktadd { margin-left: 0; flex: none; }
.app-packadd2 .app-ktadd:disabled, .app-packnew .app-ktadd:disabled { opacity: .35; cursor: default; }
.app-packcat { margin: 8px 0 2px; font-size: 10.5px; }
.app-packcat:first-child { margin-top: 0; }
.app-trippane { min-width: 220px; }
.app-trippane > button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.app-tripname { font-weight: 600; }
.app-packnew { display: flex; align-items: center; gap: 8px; max-width: 520px; }
.app-packnew .bh-input { height: 34px; font-size: 14px; flex: 1; }
.app-tripcheck { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.app-ktrow.is-hidden .app-ktcell, .app-ktrow.is-hidden .app-cpbtn { opacity: .5; }
.app-rowdel { min-height: 26px; width: 30px; padding: 0; justify-content: center; border-color: transparent; background: none; color: var(--ink-muted); }
.app-rowdel:hover { background: var(--surface-sunken); }
.app-rowdel.is-sure { width: auto; padding: 0 8px; white-space: nowrap; }
.app-overlay.app-packprint { display: none; }
@media print {
  .app-overlay.app-packprint { display: block !important; color: #000; font-family: var(--font-sans); }
  .app-printlist { break-after: page; }
  .app-printlist:last-child { break-after: auto; }
  .app-printlist h2 { margin: 0 0 10px; padding-bottom: 4px; border-bottom: 2px solid #000; font-size: 20pt; }
  .app-printcat { break-inside: avoid; margin-bottom: 10px; }
  .app-printcat h3 { margin: 8px 0 4px; font-size: 13pt; }
  .app-printcat ul { margin: 0; padding: 0; list-style: none; }
  .app-printcat li { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 13pt; border-bottom: 1px solid #ddd; }
  .app-printcat em { color: #444; font-size: 11pt; }
  .app-printbox { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 14px; height: 14px; border: 1.5px solid #000; font-size: 11px; line-height: 1; }
}
@media (max-width: 640px) {
  .app-packtools { margin-left: 0; }
  .app-packwho { min-width: 0; }
}
.app-rowdel { justify-self: end; }
@media (max-width: 640px) {
  .app-kttable:not(.app-ztable) .app-ktrow > .app-tripcheck, .app-kttable:not(.app-ztable) .app-ktrow > .app-rowdel { display: inline-flex; }
  .app-kttable .app-ktrow:has(.app-tripcheck) { grid-template-columns: 26px 1fr 88px !important; }
}

/* ---------- Packing v2 ---------- */
/* Tap Again uses the one calm accent color everywhere (not red) */
.app-delbtn.is-sure, .app-delbtn.is-sure:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.app-nmpane > button.is-danger, .app-vmenu button.is-danger { background: var(--accent); color: var(--on-accent); }
.app-nmpane > button.is-danger .app-nmico { color: var(--on-accent); }
.app-days { display: inline-flex; align-items: center; gap: 6px; }
.app-dayslabel { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.app-daysnum { min-width: 20px; text-align: center; font-size: 15px; }
label.app-packcat { display: flex; align-items: center; gap: 6px; margin: 10px 0 2px; font: 600 10.5px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); cursor: pointer; }
label.app-packcat input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.app-chores > label.app-packcat:first-child { margin-top: 0; }
.app-packfor { margin: 12px 0 0; padding-top: 8px; border-top: 1px solid var(--border); font: 700 14px/1.2 var(--font-sans); }
.app-chores > .app-packfor:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.app-printlist h2 small { font-size: 11pt; font-weight: 400; }
@media print { .app-printfor { margin: 14px 0 4px; font-size: 15pt; } }
.app-pksetbtn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; }
.app-pksetico { width: 16px; height: 16px; }
.app-pksetbtn + .app-ktadd { margin-left: 0; }
.app-pkqty { font-size: 12.5px; color: var(--ink-muted); }
.app-pkname { min-width: 0; padding: 4px 2px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.app-pktable .app-ktrow { gap: 8px; }
.app-pksharedtag { font-size: 11px; color: var(--accent); font-weight: 600; }
.app-ktgh .app-plus { flex: none; }
.app-pkdelall { min-height: 24px; font-size: 11.5px; padding: 0 8px; border-color: transparent; background: none; color: var(--ink-muted); }
.app-pkdelall:hover { background: var(--surface-sunken); }
.app-pkamt { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.app-pknum .bh-input { width: 72px; text-align: center; }
.app-seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.app-seg button { min-height: 38px; padding: 0 12px; border: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.app-seg button + button { border-left: 1px solid var(--border-strong); }
.app-seg button.is-on { background: var(--accent); color: var(--on-accent); }
.app-pkby { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.app-pkbyrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.app-pkbyrow .bh-input { width: 56px; height: 34px; text-align: center; }
.app-pksetup { display: flex; flex-direction: column; gap: 6px; }
.app-pksrow { display: flex; align-items: center; gap: 8px; }
.app-pksrow .bh-input { height: 36px; font-size: 14px; }
.app-pksrow .bh-input:first-child { flex: 1; min-width: 0; }
.app-pkaddp { align-self: flex-start; font-size: 13px; }
.app-pkcatrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); font-size: 14px; }
.app-pkshared { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.app-pkshared input { accent-color: var(--accent); }
.app-ktgroup.is-dropat { box-shadow: 0 -2px 0 var(--accent); }
.app-ktgroup.is-dragging { opacity: .4; }
/* narrow screens: Edit Packing keeps its own short rows (the checkbox, the name, the amount, ⋯) */
@media (max-width: 640px) {
  .app-pktable .app-ktrow > * { display: revert !important; }
  .app-ktwrap .app-pktable .app-ktrow.app-pkrow { grid-template-columns: var(--pkgrid) !important; }
}
.app-pksrow > select.bh-input { flex: none; width: auto; }
.app-pksrow > input.bh-input { flex: 1; min-width: 0; width: auto; }

/* Packing checkboxes: small; a category's box a little bigger than its items' */
.app-packlist .bh-chore { padding: 4px 0; gap: 4px 10px; }
.app-packlist .bh-check { width: 30px; height: 30px; margin: -8px; }
.app-packlist .bh-check-box { width: 14px; height: 14px; border-width: 1.5px; border-radius: 4px; }
.app-packlist .bh-check-box svg { width: 10px; height: 10px; }
.app-packlist .bh-chore-title { font-size: 14px; line-height: 20px; font-weight: 500; }
.app-packlist .bh-chore-meta { font-size: 12.5px; line-height: 16px; }
.app-packlist label.app-packcat input { width: 16px; height: 16px; }
.app-pktype { -webkit-appearance: none; appearance: none; padding: 0 6px; font-size: 13px; cursor: pointer; }
.app-pkqtycell { position: relative; display: block; }
.app-pkqtydot { position: absolute; top: 4px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.app-pkfold { display: flex; align-items: center; gap: 6px; padding-top: 4px; }
.app-pkfoldbtn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink-muted); font: 600 11px/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.app-pkfoldbtn .app-ktcount { text-transform: none; letter-spacing: 0; }
.app-dialog .app-poppanel, .app-poppanel { z-index: 3001; }
.app-popback { z-index: 3000; }
.app-pkcatrow { justify-content: flex-start; }
.app-pkcatname { flex: 1; }
.app-pkcatrow.is-dragging { opacity: .4; }
.app-pkcatrow.is-dropat { box-shadow: 0 -2px 0 var(--accent); }
/* One person's packing list: categories spread across the screen in columns */
.app-packone { display: block; }
.app-packcols { display: block; columns: 4 230px; column-gap: 28px; }
.app-packcols .app-packblock { break-inside: avoid; display: flex; flex-direction: column; margin-bottom: 10px; }
.app-packcols .app-packfor { column-span: all; }
.app-packcols .app-packblock label.app-packcat { margin-top: 0; }
.app-packcols .bh-chore-main { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }

/* Packing: category and item checkboxes are the same small box */
.app-packlist .app-packcat { display: flex; align-items: center; gap: 4px 10px; margin: 10px 0 2px; padding: 4px 0; font: 600 10.5px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.app-packlist .app-packcat:first-child, .app-packcols .app-packblock .app-packcat { margin-top: 0; }
.app-packlist .app-packcat .bh-check { flex: none; }
.app-packlist .app-packcatname { cursor: pointer; }
.app-packlist .bh-check-box, .app-packlist .bh-chore.is-done .bh-check-box { box-sizing: border-box; width: 15px; height: 15px; border-width: 1.5px; border-radius: 4px; }
.app-packlist .bh-check-box svg { width: 10px; height: 10px; }
.app-packlist .app-packcat.is-done .bh-check-box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Packing: category names read as headings */
.app-packlist .app-packcat { margin: 14px 0 2px; font: 700 13px/1.3 var(--font-sans); letter-spacing: .05em; color: var(--ink); }
.app-packlist .app-packcat:first-child, .app-packcols .app-packblock .app-packcat { margin-top: 0; }
.app-packlist .app-packcat .bh-check-box { width: 17px; height: 17px; }
.app-packlist .app-packcat .bh-check-box svg { width: 12px; height: 12px; }
.app-packlist .app-packcat { font-size: 14.5px; }
.app-packlist .app-packcat .bh-check-box { width: 18px; height: 18px; }

/* Vacation: Holidays and Trips */
.app-evpick { width: auto; max-width: 200px; min-height: 34px; height: 34px; padding: 0 28px 0 10px; font-size: 14px; }
.app-evdays { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.app-evchip { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 52px; padding: 6px 8px 5px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); color: var(--ink); font: inherit; cursor: pointer; }
.app-evchip:hover { border-color: var(--border-strong); }
.app-evchip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.app-evchip.is-today:not(.is-on) { border-color: var(--accent); }
.app-evdow { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.app-evnum { font-size: 17px; font-weight: 600; line-height: 22px; display: inline-flex; align-items: center; }
.app-evoico { width: 18px; height: 18px; }
.app-evdotmark { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.app-evdotmark.is-has { background: currentColor; opacity: .55; }
.app-evdayhead { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.app-evboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.app-evboard > .app-evstay { grid-column: 1 / -1; }
.app-evstay { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-sunken); color: var(--ink); font-size: 14px; }
.app-evstayaddr { color: var(--ink-muted); font-size: 13px; }
.app-evlist { display: flex; flex-direction: column; }
.app-evempty { margin: 0; color: var(--ink-muted); font-size: 14px; }
.app-evgroup { margin: 10px 0 2px; font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.app-evgroup:first-child { margin-top: 0; }
.app-evrow { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.app-evrow:first-child, .app-evgroup + .app-evrow { border-top: 0; }
.app-evrow .app-tick { margin-top: 2px; }
.app-evdot { flex: none; width: 6px; height: 6px; margin: 8px 6px 0; border-radius: 50%; background: var(--accent); }
.app-evmain { flex: 1; min-width: 0; }
.app-evtitle { font-size: 15px; line-height: 22px; font-weight: 500; overflow-wrap: anywhere; }
.app-evrow.is-done .app-evtitle { text-decoration: line-through; color: var(--ink-muted); }
.app-evlink { color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.app-evlink:hover { text-decoration: underline; }
.app-evlinkico { width: 14px; height: 14px; flex: none; }
.app-evmeta { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }
.app-evnotes { margin-top: 2px; font-size: 13.5px; line-height: 19px; color: var(--ink-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.app-evacts { flex: none; display: inline-flex; gap: 0; margin-top: 0; }
.app-evact { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); cursor: pointer; }
.app-evact:hover, .app-evact:focus-visible { color: var(--accent); background: var(--surface-sunken); }
.app-evactico { width: 16px; height: 16px; }
.app-evdates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-evcopydate { width: auto; }
@media (max-width: 560px) {
  .app-evboard { grid-template-columns: 1fr; }
  .app-evpick { max-width: 150px; }
}
.app-evstayadd { margin-left: auto; display: inline-flex; }

/* Reality Challenge verses (a card and a week) */
.app-rcchip { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; padding: 0 6px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-raised); font: 700 14px/1 var(--font-sans); letter-spacing: .02em; color: var(--ink); }
.app-rcdates { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 500; color: var(--ink-muted); }
.app-prow2.is-rcnow { box-shadow: inset 3px 0 0 var(--accent); }
.app-rcform { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }

/* Holidays: bigger add/edit window, buttons at the top, dishes */
.app-dialog--wide { max-width: 680px; max-height: 94vh; }
.app-dialog--full { max-width: 96vw; width: 96vw; height: 94vh; max-height: 94vh; }
.app-dialog--full .app-dialog-body { flex: 1; display: flex; flex-direction: column; }
.app-dialog--full .app-dialog-body > form { flex: 1; display: flex; flex-direction: column; }
.app-dialog--full .app-dialog-body .app-neditwrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.app-dialog--full .app-dialog-body .app-nedit { flex: 1; min-height: 0; overflow: auto; }
.app-dialog--wide .app-dialog-head { gap: 8px; }
.app-evform { padding-bottom: 6px; }
.app-evrowgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-evdishes { display: flex; flex-direction: column; gap: 8px; }
.app-evdishhead { display: flex; align-items: center; justify-content: space-between; }
.app-evdish { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.app-evdishtop { display: flex; align-items: center; gap: 6px; }
.app-evdishname { flex: 1; min-width: 0; }
.app-evdishlist { list-style: none; margin: 3px 0 0; padding: 0 0 0 2px; display: flex; flex-direction: column; gap: 1px; }
.app-evdishline { display: flex; align-items: center; gap: 4px; font-size: 13.5px; line-height: 20px; color: var(--ink-muted); }
.app-evdishline::before { content: '+'; color: var(--ink-muted); opacity: .6; width: 10px; flex: none; }
.app-evtime { margin-right: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.app-evkind { color: var(--ink-muted); margin-right: 4px; vertical-align: -2px; }
.app-evrecipe { width: 24px; height: 24px; vertical-align: middle; }
@media (max-width: 560px) { .app-evrowgrid { grid-template-columns: 1fr; } .app-dialog--wide { max-height: 96vh; } }

/* Holidays: tidier add/edit window */
.app-evrowgrid--wide { grid-template-columns: 2fr 1fr; }
.app-evdish { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 6px; padding: 0; border: 0; }
.app-evdish .app-evdishname, .app-evdish .app-cpbtn { width: 100%; }
.app-evfold { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.app-evlabelico { display: inline-flex; align-items: center; gap: 5px; }
.app-evtitle .app-evlinkico { margin-left: 2px; }
.app-evtextwrap { display: block; min-width: 0; }
.app-evtextwrap .bh-input { width: 100%; }

/* Packing: items are blue, whole-category boxes are gray, and all the boxes are the same size */
.app-packlist .bh-check-box, .app-packlist .app-packcat .bh-check-box { box-sizing: border-box; width: 16px; height: 16px; }
.app-packlist .bh-check-box svg, .app-packlist .app-packcat .bh-check-box svg { width: 11px; height: 11px; }
.app-packlist .bh-chore.is-done .bh-check-box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.app-packlist .app-packcat .bh-check-box { border-color: var(--ink-muted); }
.app-packlist .app-packcat.is-done .bh-check-box { background: var(--ink-muted); border-color: var(--ink-muted); color: var(--surface-raised); }
.app-packlist .bh-chore.is-done .bh-check-box { width: 16px; height: 16px; }
.app-packlist .app-packcat { color: var(--primary); }

/* Packing: Edit Item is compact, with its buttons at the top */
.app-pkitemrow { display: flex; align-items: flex-end; gap: 12px; }
.app-pkitemrow .bh-field { flex: 1; min-width: 0; }
.app-libshelfrow { display: flex; align-items: center; gap: 8px; }
.app-libshelfrow .app-hlexpick { flex: 1; min-width: 0; }
.app-pktake { flex: none; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
.app-pkby { gap: 6px 12px; margin-top: 6px; }
.app-pkbyrow { font-size: 13.5px; }
.app-pkbyrow .bh-input { width: 44px; height: 28px; min-height: 28px; padding: 0 4px; font-size: 14px; }

/* Packing: checkboxes are blue, and a bar sits between an item and its names */
.app-tripcheck, .app-pktake input, .app-pkshared input { accent-color: var(--primary); }
.app-pkbar { color: var(--ink-muted); margin: 0 2px; }

/* Packing: category colors, sub-categories, picking many items, editing categories */
.app-packlist .app-packcat.has-color { box-shadow: inset 3px 0 0 var(--cc); padding-left: 8px; }
.app-packlist .app-packcat.has-color .app-packcatname { color: var(--cc); }
.app-packlist .app-packcat.is-sub { margin-left: 14px; font-size: 13px; }
.app-packitems { margin-left: 14px; }
.app-packitems.is-sub { margin-left: 28px; }
.app-ktgroup.is-colored .app-ktgh { background: color-mix(in srgb, var(--gc) 9%, var(--surface-raised)); box-shadow: inset 3px 0 0 var(--gc); }
.app-ktgroup.is-colored .app-ktgh strong { color: var(--gc); }
.app-ktgroup.is-sub .app-ktgh { padding-left: 24px; min-height: 28px; }
.app-ktgroup.is-sub .app-ktgh strong { font-weight: 600; font-size: 13px; }
.app-ktgroup.is-sub .app-ktrows { padding-left: 14px; }
.app-selcheck { accent-color: var(--primary); }
.app-ktrow.is-picked { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.app-pkbulk { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-raised); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.app-pkbulk strong { font-size: 14px; }
.app-pkbulkwho { display: flex; gap: 8px; align-items: center; }
.app-pkbulkwho > select { flex: none; width: auto; }
.app-pkbulkwho > * + * { flex: 1; min-width: 0; }
.app-pkcatrow { flex-wrap: wrap; gap: 6px 8px; }
.app-pkcatrow.is-sub { margin-left: 18px; }
.app-pkcatin { flex: 1 1 110px; min-width: 0; height: 34px; font-size: 14px; }
.app-pkunder { flex: 0 0 118px; width: auto; height: 34px; font-size: 13px; }
.app-pkcolor { flex: none; width: 26px; height: 24px; }
.app-pkclr { flex: none; margin-left: -4px; padding: 0 3px; border: 0; background: none; color: var(--ink-muted); font-size: 15px; line-height: 1; cursor: pointer; }
.app-pkcatrow > .app-plus { margin-left: auto; }

/* Picking items to change looks different from the "taking it" box: a round button */
input.app-selcheck { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 2px solid var(--ink-muted); border-radius: 50%; background: transparent; display: inline-grid; place-content: center; cursor: pointer; }
input.app-selcheck:checked { background: var(--primary); border-color: var(--primary); }
input.app-selcheck:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-size: 13px; background-position: center; background-repeat: no-repeat; }
.app-pkbulk .bh-btn { min-height: 36px; padding: 0 16px; font-size: 14px; }
.app-pkbulk .bh-btn:disabled { opacity: .5; }
.app-packitem { display: flex; align-items: center; gap: 2px; }
.app-packitem > .bh-chore { flex: 1; min-width: 0; }
.app-packitem > .app-ktdots { flex: none; }

/* Libraries */
.app-libbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-libbar .app-ktsearch { flex: 1 1 180px; min-width: 0; }
.app-libsel { width: auto; max-width: 200px; flex: none; min-height: 36px; height: 36px; padding-top: 0; padding-bottom: 0; font-size: 14px; }
.app-libpick { max-width: 260px; }
.app-libsum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
.app-libchip { border: 1px solid var(--border-strong); background: var(--surface-raised); color: var(--ink); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.app-liblist2 { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); overflow: hidden; }
.app-libentry { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 14px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.app-libentry:first-child { border-top: 0; }
.app-libentry:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.app-libmain { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.app-libmain strong { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.app-libmain .app-small { overflow-wrap: anywhere; }
.app-libthumb { flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--surface-sunken); overflow: hidden; display: inline-flex; }
.app-libthumb img { width: 100%; height: 100%; object-fit: cover; }
.app-libmore { align-self: center; }
.app-libshowmore { align-self: center; font-size: 13px; font-weight: 500; }
.app-libimg { display: block; max-width: 160px; max-height: 160px; border-radius: 8px; margin-top: 6px; }
.app-liblink { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.app-liblink .bh-input { flex: 1 1 200px; min-width: 0; }
.app-librate { display: inline-flex; gap: 2px; }
.app-librate button { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--border-strong); cursor: pointer; padding: 2px; }
.app-librate button.is-on { color: var(--primary); }
.app-libro { font-size: 15px; overflow-wrap: anywhere; }
.app-libpre { white-space: pre-wrap; }
.app-liblist { margin: 0; padding-left: 18px; }
.app-libfields { display: flex; flex-direction: column; }
.app-libfield { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); }
.app-libfield:first-child { border-top: 0; }
.app-libfield.is-dragging { opacity: .4; }
.app-libfield.is-dropat { box-shadow: 0 -2px 0 var(--accent); }
.app-libfieldbtn { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; padding: 2px 0; }
.app-libfile { position: relative; cursor: pointer; }
.app-libfile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* Birthdays & Anniversaries on Home: one per line at every width */
.app-celebrate ul { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
.app-celebrate li { align-items: center; }
.app-celebrate-when { min-width: 92px; }
.app-gear--share { margin-left: 0; }

/* Libraries: entry form layout, choices, pickers, list controls */
.app-libform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: start; }
.app-libcell { min-width: 0; }
.app-libsub { margin: 8px 0 0; padding-bottom: 4px; border-bottom: 2px solid var(--border); font: 700 15px/22px var(--font-sans); color: var(--ink); }
.app-libhint { display: block; margin-top: 2px; }
.app-libsec { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--border); }
.app-libnum { display: inline-flex; align-items: center; gap: 8px; }
.app-libnum .bh-input { min-width: 0; width: 100%; }
.app-libstep { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong, var(--border)); background: var(--surface-raised); color: var(--ink); font: 600 14px/1 var(--font-sans); cursor: pointer; }
.app-libstep:hover { background: var(--surface-sunken); }
.app-libcolor { width: 40px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.app-libcolor--sm { width: 32px; height: 28px; }
.app-libswatch { display: inline-block; width: 28px; height: 18px; border-radius: 6px; border: 1px solid var(--border); }
.app-libradios { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.app-libchoice { display: inline-block; padding: 0 8px; border-radius: 999px; line-height: 22px; }
.app-libchoice.has-c { font-weight: 600; font-size: 13px; }
.app-libchoices { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.app-libpickwrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
.app-libpicked { display: flex; flex-wrap: wrap; gap: 6px; }
.app-libpill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--surface-sunken); border: 1px solid var(--border); font-size: 14px; }
.app-libpill button { border: 0; background: none; color: var(--ink-muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 6px; }
.app-libfind { display: flex; flex-direction: column; gap: 4px; width: 100%; max-height: 220px; overflow: auto; }
.app-libfound { text-align: left; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised); color: var(--ink); font: inherit; cursor: pointer; }
.app-libfound:hover { background: var(--surface-sunken); }
.app-libfound--tag { padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.app-libchoicelist { display: flex; flex-direction: column; gap: 4px; }
.app-libchoicerow { display: flex; align-items: center; gap: 6px; }
.app-libchoicerow .bh-input { flex: 1; min-width: 0; }
.app-libchoicerow.is-dragging { opacity: .4; }
.app-libchoicerow.is-dropat { box-shadow: 0 -2px 0 var(--accent); }
.app-iconbtn--ghost { visibility: hidden; }
.app-libentrywrap { display: flex; align-items: center; border-top: 1px solid var(--border); }
.app-libentrywrap:first-child { border-top: 0; }
.app-libentrywrap .app-libentry { border-top: 0; flex: 1; min-width: 0; }
.app-libctl { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; padding-right: 12px; }
.app-libdirect { display: inline-flex; align-items: center; gap: 6px; }
.app-libdv { min-width: 34px; text-align: center; font-weight: 600; }
@media (max-width: 420px) { .app-libform { gap: 8px; } }

/* Libraries: grouping */
.app-libgroupbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-libgroups { display: flex; flex-direction: column; gap: 6px; }
.app-libgroup > .app-liblist2, .app-libgroup > .app-libgroups { margin-top: 6px; }
.app-libgroup--d1 { margin-left: 14px; }
.app-libghead { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-sunken); color: var(--ink); font: 600 15px/22px var(--font-sans); text-align: left; cursor: pointer; }
.app-libghead:hover { background: color-mix(in srgb, var(--primary) 8%, var(--surface-sunken)); }
.app-libgcaret { width: 14px; color: var(--ink-muted); }
.app-libgname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.app-libgcount { flex: none; }
.app-libgroup--d1 .app-libghead { font-weight: 500; }
.app-librate button { color: #C9CED3; }
.app-librate button.is-on { color: #F2B01E; }
.app-libpill--wait { background: transparent; border: 1px dashed currentColor; opacity: .8; }
.app-libtabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.app-libtab { flex: 0 0 auto; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); color: var(--ink); font: inherit; cursor: pointer; white-space: nowrap; }
.app-libtab.is-on { background: var(--accent, #3b6e5c); color: #fff; border-color: transparent; }
.app-libpagerow { align-items: center; flex-wrap: nowrap; }
.app-libpagerow .bh-input { flex: 1 1 auto; min-width: 0; }
/* library views: compact list, cards, images */
.app-libentrywrap--compact .app-libentry--compact { padding: 6px 10px; min-height: 0; }
.app-libentrywrap--compact .app-libmain strong { font-weight: 600; }
.app-libcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.app-libcardwrap { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); overflow: hidden; }
.app-libcard { display: flex; flex-direction: column; flex: 1 1 auto; text-align: left; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.app-libcardimg { display: block; aspect-ratio: 4 / 3; background: var(--surface-sunken); overflow: hidden; }
.app-libcardimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-libcardbody { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; min-width: 0; }
.app-libcardbody strong { overflow-wrap: anywhere; }
.app-libcardbody .app-small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app-libcardwrap .app-libctl { padding: 0 10px 8px; }
.app-libimages { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.app-libtilewrap { min-width: 0; position: relative; }
/* Selecting entries: a round mark on each one, filled when picked. */
.app-libentrywrap.is-picking, .app-libentrywrap--compact.is-picking { cursor: pointer; }
.app-libentrywrap.is-picked, .app-libcardwrap.is-picked, .app-libtilewrap.is-picked { box-shadow: 0 0 0 2.5px var(--accent); }
.app-libcardwrap { position: relative; }
.app-libcardwrap > .app-npick, .app-libtilewrap > .app-npick { position: absolute; top: 8px; right: 8px; z-index: 1; }
.app-libtile { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-sunken); overflow: hidden; cursor: pointer; color: var(--ink); font: inherit; }
.app-libtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-libtilecap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 12px; font-weight: 600; line-height: 1.2; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); text-align: left; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.app-libtile:not(:has(img)) .app-libtilecap { position: static; background: none; color: var(--ink); padding: 8px; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; }
.app-libactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-libactions .bh-btn { min-height: 40px; display: inline-flex; align-items: center; }
/* libraries: shelves, side navigation, settings */
.app-libshell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.app-libnavwrap { position: sticky; top: 8px; max-height: calc(100vh - 24px); overflow: auto; }
.app-libmainwrap { min-width: 0; }
.app-libnavbtn { display: none; border: 1px solid var(--border); background: var(--surface-raised); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; cursor: pointer; }
.app-libnav { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); }
.app-libnavshelf { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.app-libnavhead { margin: 4px 6px 2px; }
.app-libnavlink { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.app-libnavlink:hover { background: var(--surface-sunken); }
.app-libnavlink.is-on { background: var(--accent-tint); color: var(--accent); font-weight: 700; }
.app-libnavname { min-width: 0; overflow-wrap: anywhere; }
.app-libnavset { margin-top: 10px; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; padding-top: 10px; }
.app-libdot { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-sunken); color: var(--ink-muted); }
.app-libdot--big { width: 44px; height: 44px; border-radius: 50%; }
.app-libdotsvg { width: 16px; height: 16px; }
.app-libdot--big .app-libdotsvg { width: 24px; height: 24px; }
.app-libtitle { display: flex; align-items: center; gap: 10px; }
.app-libtitle > span { display: flex; flex-direction: column; }
.app-libtitle strong { font-size: 20px; }
.app-libshelfhead { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--surface-sunken); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.app-libshelfhead .app-small { margin-left: auto; }
.app-libtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 10px 0 4px; }
.app-libtilebtn { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); color: var(--ink); text-decoration: none; }
.app-libtilebtn:hover { border-color: var(--accent); }
.app-libtilename { font-weight: 700; overflow-wrap: anywhere; }
.app-libseg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.app-libseg button { border: 0; background: var(--surface-raised); color: var(--ink); padding: 6px 14px; font: inherit; cursor: pointer; }
.app-libseg button.is-on { background: var(--accent); color: #fff; }
.app-libsetshelf { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.app-libsethead { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface-sunken); }
.app-libsetrow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-top: 1px solid var(--border); }
.app-libsetname { flex: 1 1 auto; min-width: 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.app-libsethead .app-libsetname { font-weight: 700; }
.app-libsetbtns { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.app-libren { flex: 1 1 auto; flex-wrap: nowrap; }
.app-libren .bh-input { flex: 1 1 auto; min-width: 0; }
.app-libbulk { position: sticky; bottom: 8px; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface-raised); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.app-libicons { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.app-libiconbtn { display: inline-flex; align-items: center; justify-content: center; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); color: var(--ink); cursor: pointer; }
.app-libiconbtn.is-on { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.app-libreport { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.app-libreport .is-failed strong { color: var(--danger, #b3261e); }
.app-libopt { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); color: var(--ink); font: inherit; cursor: pointer; }
.app-libopt.is-on { border-color: var(--accent); color: var(--accent); }
.app-libopts { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); }
.app-libopsrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.app-libopsrow .app-libsel { flex: 1 1 140px; }
.app-attnbtn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1.5px solid color-mix(in srgb, #B45309 40%, transparent); border-radius: 8px; background: color-mix(in srgb, #B45309 10%, var(--surface)); color: #92400E; font: 600 13px/1 var(--font-sans); white-space: nowrap; cursor: pointer; }
.app-attnbtn.is-on { background: #B45309; border-color: #B45309; color: #fff; }
@media (max-width: 760px) {
  .app-libshell { grid-template-columns: minmax(0, 1fr); }
  .app-libnavbtn { display: inline-flex; }
  .app-libnavwrap { display: none; position: static; max-height: none; }
  .app-libnavwrap.is-open { display: block; }
}

.app-libtilebtn { flex-direction: row; align-items: center; gap: 12px; }
.app-libtiletext { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.app-libtiles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.app-nsaved, .app-nsaved.is-on { display: none; }
/* The main Settings gear is always blue so it stands out from the gears on individual pages. */
.bh-tabs .app-tab-gear, .bh-tabs .app-tab-gear:hover, .bh-tabs .app-tab-gear.is-active, .bh-tabs .app-tab-gear[aria-current] { background: var(--primary); color: var(--on-primary); border-radius: 999px; }
.bh-tabs .app-tab-gear .app-gearico { color: var(--on-primary); }

/* Library icons: flat pictures on round colored backgrounds */
.bhi .a { fill: #f6f2e4; } .bhi .b { fill: #4e5d78; } .bhi .c { fill: #cb5f5d; } .bhi .d { fill: #f3cc8b; } .bhi .e { fill: #77c3ac; } .bhi .f { fill: #78b3d6; } .bhi .g { fill: #df9965; }
.bhi { stroke-width: 3.5; }
.bhi [class^="k"] { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bhi .ka { stroke: #f6f2e4; } .bhi .kb { stroke: #4e5d78; } .bhi .kc { stroke: #cb5f5d; } .bhi .kd { stroke: #f3cc8b; } .bhi .ke { stroke: #77c3ac; } .bhi .kf { stroke: #78b3d6; } .bhi .kg { stroke: #df9965; }
.app-libglyph { display: block; width: 100%; height: 100%; }
.app-libglyph svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1.5px 0 rgba(0,0,0,.18)); }
.app-libdot--glyph { overflow: hidden; }
.app-libdot--pick { width: 44px; height: 44px; }
.app-libpick { display: flex; flex-direction: column; gap: 8px; }
.app-libpickcats { display: flex; flex-wrap: wrap; gap: 6px; }
.app-libpickcat { padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.app-libpickcat.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.app-libpick .app-libicons { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); max-height: 300px; overflow: auto; padding: 2px; }
.app-libpick .app-libiconbtn { height: 52px; border: 2px solid transparent; background: transparent; border-radius: 50%; padding: 0; }
.app-libpick .app-libiconbtn.is-on { border-color: var(--ink); background: transparent; }
.app-libpick { width: 100%; min-width: 0; }
.bh-field:has(> .app-libpick) { display: block; width: 100%; }
.app-libpick .app-libpicksearch { max-width: 360px; }
.app-libpick .app-libicons { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); max-height: 440px; width: 100%; }
.app-libpick .app-libiconbtn { width: 56px; height: 56px; justify-self: center; }
.app-libpick .app-libdot--pick { width: 48px; height: 48px; }
.app-libpick { max-width: none !important; width: 100% !important; }

/* On a light background the cream parts of an icon turn navy (and navy turns cream) so nothing disappears. */
.app-libdot.is-light .bhi .a { fill: #4e5d78; } .app-libdot.is-light .bhi .b { fill: #f6f2e4; }
.app-libdot.is-light .bhi .ka { stroke: #4e5d78; } .app-libdot.is-light .bhi .kb { stroke: #f6f2e4; }

.app-libsetcaret { border: 0; background: transparent; color: var(--ink-muted); cursor: pointer; padding: 0 4px; font: inherit; }

.app-libshelfdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.app-libshelfcol { gap: 6px; align-items: center; }

/* Folder-style tabs (Health) */
.app-ftabs { display: flex; gap: 3px; align-items: flex-end; overflow-x: auto; padding: 0 6px; margin-bottom: -1px; position: relative; z-index: 1; }
.app-ftab { flex: none; padding: 9px 18px 8px; border: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 12px 12px 0 0; background: var(--surface-sunken); color: var(--ink-muted); font: inherit; font-weight: 600; cursor: pointer; }
.app-ftab:hover { color: var(--ink); }
.app-ftab.is-on { background: var(--surface-raised); color: var(--accent); border-bottom-color: var(--surface-raised); padding-top: 11px; }
.app-fpanel { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); padding: 14px; }
.app-fpanel .bh-card { box-shadow: none; }
/* Health */
.app-hldaynav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-hldate { min-width: 120px; text-align: center; font-size: 17px; }
.app-hlpick { width: auto; }
.app-hlbtn { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-raised); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.app-hlbtn:disabled { opacity: .4; cursor: default; }
.app-hlgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.app-hlfield { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.app-hlwide { grid-column: 1 / -1; margin-top: 10px; }
.app-hlbp { display: flex; align-items: center; gap: 6px; }
.app-hlbp .bh-input { min-width: 0; width: 100%; }
.app-hlsteps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.app-hlstep { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; }
.app-hlstepbtns { display: inline-flex; align-items: center; gap: 10px; }
.app-hlval { min-width: 28px; text-align: center; font-size: 18px; }
.app-hlgoals { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.app-hlgoalrow { display: flex; justify-content: space-between; gap: 8px; }
.app-hlbar { height: 8px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; margin-top: 4px; }
.app-hlbar span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.app-hlgoal.is-met .app-hlbar span { background: #3f9b6b; }
.app-hlgoal.is-over .app-hlbar span { background: #c9504e; }
.app-hltiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.app-hltile { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border: 1px solid var(--border); border-radius: 12px; }
.app-hltile strong { font-size: 20px; }
.app-hltile.is-met { border-color: #3f9b6b; }
.app-hltile.is-over { border-color: #c9504e; }
/* Vehicle Trends: the generic .app-fpanel > .app-stack rule turns direct children into an auto-fit card grid, which
   is right for the Fuel/Service log panels but scatters Trends' header, Summary card and chart sideways into
   columns instead of stacking them. Force this one back to a plain top-to-bottom stack. */
.app-fpanel > .app-stack.app-vehtrends { display: flex; flex-direction: column; }
.app-vehtrendctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-vehrangesel { width: auto; }
.app-vehcustdates { display: flex; align-items: center; gap: 6px; }
.app-vehcustdates .bh-input { width: auto; }
.app-vehtiles { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 760px) { .app-vehtiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .app-vehtiles { grid-template-columns: repeat(2, 1fr); } }
.app-hlfoods, .app-hlchecks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.app-hlfoodbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.app-hlfoodbtn.app-hlrecrow { justify-content: flex-start; }
.app-hlrecthumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-sunken); }
.app-hlrecthumb--none { display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.app-hlrecrowtext { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* phones: the details sit under the name, lined up on the left, instead of a ragged right column that wraps */
@media (max-width: 640px) { .app-hlrecrowtext { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; text-align: left; } }
.app-hlfoods > li.is-picked { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 8px; }
.app-hlfoodname { font-weight: 600; }
.app-hlfoodbrand { font-weight: 400; font-size: 0.85em; color: var(--ink-muted); }
.app-hlchecks li { padding: 6px 0; }
.app-hlsugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.app-hlsuggbtn { padding: 5px 10px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-raised); color: var(--ink); font: inherit; cursor: pointer; }
.app-fpanel > .app-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.app-fpanel > .app-stack > * { margin: 0; min-width: 0; }
/* Kids' chore board brings its own grid (.app-board) a level or two down, not as a direct child of this wrapper -
   ":has(> .app-board)" never matched it, so the whole board page (heading, day tabs, chore cards and all) was being
   torn apart into the auto-fit grid meant for simple card lists. Same for Approvals and Super Sweep: a single
   top-to-bottom page, not a set of cards to tile. */
.app-fpanel > .app-stack:has(.app-board), .app-fpanel > .app-stack.app-focus, .app-fpanel > .app-stack.app-approvalpg, .app-fpanel > .app-stack.app-sweep { display: block; }
/* The kid board's own heading row, points line and day tabs are furniture above the chore cards, not cards
   themselves - each needs the full row to itself (not an auto-fit column next to its neighbor), with a bit more air
   between them than the grid's own gap gives bunched single-line items. */
.app-board-page > .app-board-head, .app-board-page > .app-kidtools, .app-board-page > .app-focuspreview,
.app-board-page > .app-oneoffform, .app-board-page > .app-balance, .app-board-page > .app-history,
.app-board-page > .bh-tabs, .app-board-page > .app-stack--tight { grid-column: 1 / -1; }
/* A card's own title sits in from its edge by the card head's own padding - inside the kid board that's
   --space-3 horizontally (the board narrows it from the app-wide --space-4), not --space-4. Match that on the
   plain (card-less) lines above the cards so their text lines up with it, instead of sitting flush with the
   page edge while every card title is indented past it. */
.app-board-page > .app-board-head, .app-board-page > .app-balance, .app-board-page > .bh-tabs,
.app-board-page > .app-kidtools, .app-board-page > .app-focuspreview,
.app-board-page > .app-history { padding-left: var(--space-3); }
/* The "Chore Board" poster is its own bordered, backgrounded box (not plain text), so it already has its own
   --space-3 of padding inside that border - giving it padding-left here would just add to that and push its
   label in twice as far. What it's missing is space outside the border: a left margin so the border itself
   starts where the plain furniture's text starts, instead of flush with the page edge. */
.app-board-page > .app-oneoffform { margin-left: var(--space-3); }
/* display:block above (not grid) means the grid's own 14px gap no longer does anything for these rows - without
   it a kid with nothing between the heading and the Chore Board poster (no Focus Mode preview checkbox, no
   kid-only timer controls) gets none at all and the two sit flush against each other. One shared rule for every
   pair of these rows, so the gap is the same whichever of them happen to be present for a given kid. */
.app-board-page > * + * { margin-top: var(--space-2); }
.app-board-page > .app-balance { margin-top: 6px; }
.app-board-page > .bh-tabs { margin-top: 4px; }
.app-hlworkbtn { flex-wrap: wrap; }
.app-hllifts { display: flex; flex-direction: column; gap: 12px; }
.app-hllift { border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.app-hlliftname { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.app-hlliftname .bh-input { flex: 1 1 200px; min-width: 0; }
.app-hlset { display: flex; align-items: center; gap: 8px; }
.app-hlset .bh-input { width: 90px; }
.app-hlsave { margin-top: 20px; }
.app-hlgrid + .app-hlsave, p.app-small + .app-hlgrid { margin-top: 14px; }
.app-hlpts { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.app-hlptsbig { font-size: 38px; line-height: 1; color: var(--accent); }
.app-hlpts.is-over .app-hlptsbig { color: #c9504e; }
.app-hlstreak { margin-top: 10px; }
.app-hlsearch { display: flex; flex-direction: column; gap: 8px; }
.app-hlresults { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 0 10px; }
.app-hlresults .app-hlfoodbtn { flex-wrap: wrap; }
.app-hlsave { margin-top: 20px; }
p.app-small + .app-hlgrid { margin-top: 14px; }
.app-hlpts { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.app-hlptsbig { font-size: 38px; line-height: 1; color: var(--accent); }
.app-hlpts.is-over .app-hlptsbig { color: #c9504e; }
.app-hlstreak { margin-top: 10px; }
.app-hlsearch { display: flex; flex-direction: column; gap: 8px; }
.app-hlresults { list-style: none; margin: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 0 10px; }
.app-hlresults .app-hlfoodbtn { flex-wrap: wrap; }
.app-hlqual { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-sunken); color: var(--ink-muted); }
.app-hlqual.is-whole { background: #dff1e7; color: #25704a; }
.app-hlqual.is-simple { background: #e0f0ee; color: #1d6f6a; }
.app-hlqual.is-additives { background: #f7e0df; color: #a33a38; }
.app-hlqual.is-warn { background: #fbe9d0; color: #8a5a10; }
.app-hlplans { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.app-hlplan { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); color: var(--ink); font: inherit; cursor: pointer; }
.app-hlplan.is-on { border: 2px solid var(--accent); padding: 13px 15px; }
.app-hlplan strong { font-size: 17px; }
.app-hlplanon { color: var(--accent); font-size: 13px; }
.app-hlplanline { font-weight: 600; }
.app-fpanel > .app-stack.app-hlsingle { display: flex; flex-direction: column; max-width: 620px; margin: 0 auto; }
.app-hlhero { display: grid; grid-template-columns: 1fr 2.2fr 1fr; align-items: end; gap: 6px; margin-bottom: 12px; }
.app-hlside { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 14px; }
.app-hlside strong { font-size: 30px; line-height: 1; color: var(--primary); }
.app-hlside span { font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); margin-top: 6px; }
.app-hlgauge { position: relative; }
.app-hlgauge svg { width: 100%; display: block; }
.app-hlgtrack, .app-hlgfill { fill: none; stroke-width: 8; stroke-linecap: round; }
.app-hlgtrack { stroke: var(--surface-sunken); }
.app-hlgfill { stroke: var(--accent); }
.app-hlgauge.is-over .app-hlgfill { stroke: #c9504e; }
.app-hlgend { font-size: 12px; fill: var(--ink-muted); }
.app-hlgnum { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; flex-direction: column; align-items: center; }
.app-hlgnum strong { font-size: 44px; line-height: 1; color: var(--accent); }
.app-hlgauge.is-over .app-hlgnum strong { color: #c9504e; }
.app-hlgnum span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); margin-top: 4px; }
.app-hlgoalset { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 10px; }
.app-hlmacros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; text-align: center; font-size: 13px; }
.app-hlmacro { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.app-hlmacro.is-over .app-hlbar span { background: #c9504e; }
.app-hlmeal { border-bottom: 1px solid var(--border); padding: 4px 0 8px; }
.app-hlmeal:last-child { border-bottom: 0; }
.app-hlmealrow { display: flex; align-items: center; gap: 10px; padding: 8px 0 2px; }
.app-hlmealcal { margin-left: auto; }
.app-hlmealrow .app-plus { flex: none; }
.app-hlwater { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-hltiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-hltile2 { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.app-hltile2 .app-cardico { color: var(--accent); }
.app-hlsingle > * { width: 100%; box-sizing: border-box; align-self: stretch; }
.app-hlgtrack { stroke: var(--border); }
.app-hlgnum { bottom: 14px; }
.app-hlranges { display: flex; gap: 8px; }
.app-hlrange { padding: 6px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-raised); color: var(--ink); font: inherit; cursor: pointer; }
.app-hlrange.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.app-hlchart svg { width: 100%; display: block; touch-action: pan-y; }
.app-hlgrid { stroke: var(--border); stroke-width: 1; }
.app-hlax { font-size: 10px; fill: var(--ink-muted); }
.app-hlgoalline { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 4 4; }
.app-hlbar1 { fill: var(--accent); }
.app-hlline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.app-hldot { fill: var(--accent); stroke: var(--surface-raised); stroke-width: 2; }
.app-hlchart g.is-b .app-hlline { stroke: #4e5d78; stroke-dasharray: 6 3; }
.app-hlchart g.is-b .app-hldot { fill: #4e5d78; }
.app-hlcross { stroke: var(--ink-muted); stroke-width: 1; }
.app-hllegend { display: flex; gap: 14px; font-size: 13px; margin-bottom: 4px; }
.app-hlkey { display: inline-block; width: 16px; height: 0; border-top: 3px solid var(--accent); margin-right: 6px; vertical-align: middle; }
.app-hlkey.is-b { border-top: 3px dashed #4e5d78; }
.app-hltip { min-height: 1.4em; margin: 4px 0 0; }
.app-hltable ul { margin: 6px 0 0; padding-left: 18px; max-height: 180px; overflow: auto; }
.app-hlsupptools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.app-hlsupptools .app-hlfield { max-width: 240px; }
.app-hlsuppgroup { margin-top: 14px; }
.app-hlsupphead { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.app-hlsuppfold { border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; padding: 4px 0; text-align: left; }
.app-hlsuppitem { display: flex; align-items: center; gap: 10px; }
.app-hlsuppitem .app-hlfoodbtn { flex: 1; }
.app-hlplanday { border-top: 1px solid var(--border); padding: 4px 0 8px; }
.app-hlplanday.is-prep { background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.app-hlfamily { margin: 4px 0 0; }
.app-hlsession { margin-top: 14px; }
.app-hlprep { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin: 8px 0; }
.app-hlprep summary { cursor: pointer; }
.app-hlprepsec p { margin: 2px 0; }
.app-hlplanned { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px dashed var(--border); font-size: 14px; }
.app-hlzero { margin: 12px 0 4px; font-weight: 700; }
/* the gear stays the Settings blue whatever tab colors are set */
.bh-tabs .app-tab-gear, .bh-tabs .app-tab-gear:hover, .bh-tabs .app-tab-gear.is-active, .bh-tabs .app-tab-gear[aria-current] { background: var(--primary) !important; color: var(--on-primary) !important; }
/* Health: tighter, wider */
.app-hlhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.app-hlhead .app-hldaynav { gap: 8px; }
.app-hlhead .app-hlbtn { width: 32px; height: 32px; font-size: 18px; }
.app-hlhead .app-hldate { min-width: 80px; font-size: 16px; }
.app-fpanel { padding: 10px; }
.app-fpanel > .app-stack { gap: 10px; }
.app-hltoday { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.app-hlcol { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 860px) { .app-hltoday { grid-template-columns: minmax(0, 1fr); } }
/* an older rule makes the panel a wrapping flex row; let the page inside fill it so its columns can spread out */
.app-fpanel > .app-stack, .app-fpanel > .app-hltoday { flex: 1 1 100%; width: 100%; box-sizing: border-box; }
/* two-column pages (Food, Meal Plan, Workouts...) */
.app-fpanel > .app-stack.app-hlcols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-hlcols2 > .app-hlspan { grid-column: 1 / -1; }
.app-hlspan .app-hltiles { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
@media (max-width: 860px) { .app-fpanel > .app-stack.app-hlcols2 { grid-template-columns: minmax(0, 1fr); } }
/* Meal plan: the days on the left, freezer prep, saved plans and links on the right */
.app-hltoday.app-hlplancols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.app-hlrecfoldrow { grid-column: 1 / -1; justify-content: flex-end; margin-bottom: -4px; }
.app-hlcart { display: flex; flex-direction: column; gap: 10px; }
.app-hlcartline { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--surface-raised); display: flex; flex-direction: column; gap: 8px; }
.app-hlcarthead { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.app-hlcarthead > .bh-input { flex: 1 1 180px; min-width: 0; }
.app-hlserv { display: flex; flex-direction: column; gap: 2px; width: 84px; }
.app-hlcartmore > summary { cursor: pointer; font-size: 14px; color: var(--text-muted, #52606d); padding: 4px 0; }
.app-hlcartmore[open] > summary { margin-bottom: 8px; }
@media (max-width: 860px) { .app-hltoday.app-hlplancols { grid-template-columns: minmax(0, 1fr); } }
.app-hlgrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.app-hlgrow > .bh-input:first-child { flex: 1 1 170px; min-width: 0; }
.app-hlgin { width: 64px; }
/* Interval timer */
.app-hlwk .app-hlserv { width: 78px; }
.app-hlred { color: #c0392b; } .app-hlblue { color: #2468c9; }
.app-hlfoodtag { color: #2468c9; font-style: italic; }
.app-hlbigtime { font-size: 36px; font-weight: 700; margin: 0 0 6px; }
.app-hlrun { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; padding: 14px 16px 20px; overflow-y: auto; color: #1f2933; --ring: #2468c9; background: #e7f0fd; }
.app-hlrun.is-active { background: #fde8e6; --ring: #d64545; }
.app-hlrun.is-rest { background: #e3eefc; --ring: #2468c9; }
.app-hlrun.is-done { background: #e4f4ea; --ring: #2f9e5b; }
.app-hlrunbar { width: 100%; max-width: 520px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.app-hlrunmain { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.app-hlrunkind { margin: 6px 0 0; font-weight: 800; letter-spacing: .18em; font-size: 20px; color: var(--ring); }
.app-hlrunname { margin: 0; font-size: 26px; font-weight: 700; text-align: center; }
.app-hlrunring { position: relative; width: min(72vw, 300px); aspect-ratio: 1; }
.app-hlrunring svg { width: 100%; height: 100%; }
.app-hlring-bg { fill: none; stroke: rgba(0,0,0,.1); stroke-width: 18; }
.app-hlring-fg { fill: none; stroke: var(--ring); stroke-width: 18; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.app-hlrunnum { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.app-hlrunnum strong { font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.app-hlrunset { font-size: 15px; opacity: .75; margin-bottom: 4px; }
.app-hlruntotal { margin: 4px 0; font-size: 15px; opacity: .75; }
.app-hlnext { width: 100%; background: #fff; border: 3px solid var(--ring); border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.app-hlnext strong { font-size: 22px; }
.app-hlnextlbl { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--ring); }
.app-hllater { width: 100%; list-style: none; margin: 4px 0 0; padding: 0 6px; opacity: .5; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.app-hlrundone { text-align: center; padding-top: 80px; flex: 1; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.app-hlrundone h2 { font-size: 44px; margin: 0; }
.app-hlrunmsg { margin-top: 60px; }
.app-hlruncontrols { display: flex; gap: 10px; align-items: center; justify-content: center; padding-top: 14px; flex-wrap: wrap; }
.app-hlrunbtn { border: 0; border-radius: 999px; padding: 14px 20px; font-size: 18px; font-weight: 700; background: #fff; color: #1f2933; box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; min-width: 56px; }
.app-hlrunbtn.is-big { background: var(--ring); color: #fff; padding: 16px 34px; font-size: 20px; }
.app-hlrunbtn.is-stop { background: #1f2933; color: #fff; }
/* Reality Challenge: the whole deck, grouped by suit */
.app-rcview { display: inline-flex; gap: 14px; margin: 2px 0 12px; padding: 0; border: 0; }
.app-rcviewbtn { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 4px 2px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; color: #6b7280; }
.app-rcviewbtn:hover { color: #1b1d21; }
.app-rcviewbtn.is-on { color: #1b1d21; border-bottom-color: #c8312b; }
.app-rcsuits { display: flex; flex-direction: column; gap: 14px; }
.app-rcsuithead { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 16px; letter-spacing: .02em; }
.app-rcsuithead.is-Hearts, .app-rcsuithead.is-Diamonds { color: #c0392b; }
.app-rcglyph { font-size: 20px; line-height: 1; }
.app-rcempty { opacity: .65; border: 1px dashed var(--border-strong, #cbd2d9); border-radius: 12px; list-style: none; }
.app-rcempty .app-pmain { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: transparent; border: 0; text-align: left; cursor: pointer; }
.app-rcslot { display: inline-flex; min-width: 44px; justify-content: center; font-weight: 700; border: 1px solid var(--border-strong, #cbd2d9); border-radius: 8px; padding: 3px 6px; background: #fff; }
.app-rcslot.is-red, .app-rcchip--red { color: #c0392b; }

/* Verses: tips strip + the Reality Challenge pages, in the site's own navy, light blue and teal */
.app-vinfo { position: relative; display: grid; gap: 8px; padding: 12px 56px 12px 14px; border-radius: 12px; background: #14324d; color: #e6f0f7; border: 1px solid #86b4c8; font-size: 13px; line-height: 19px; }
.app-vinfo.is-shut { display: block; padding: 2px 4px; background: none; border: 0; }
.app-vinfo p { margin: 0; }
.app-vinfo b { color: #fff; }
.app-vinfohead { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7cc4c9; font-size: 12px; }
.app-vinfohide { position: absolute; top: 8px; right: 12px; color: #bedcec; }
.app-vinfo .app-rcfacts { font-size: 15px; line-height: 22px; color: #fff; font-weight: 600; }
.app-vinfokeys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 14px; }
.app-vinfokeys li { display: flex; align-items: baseline; gap: 6px; }
.app-vinfokeys b { color: #bedcec; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.app-vinfokeys .app-rcglyph { font-size: 16px; }
.app-vinfokeys li.is-Hearts .app-rcglyph, .app-vinfokeys li.is-Diamonds .app-rcglyph { color: #ff7b72; }
.app-vinfoking { justify-self: start; padding: 3px 14px; background: #86b4c8; color: #0f2639; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; border-radius: 3px; }
.app-vinfobar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-rcprogbar { display: block; width: 180px; max-width: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.app-rcprogbar i { display: block; height: 100%; background: #7cc4c9; }
.app-rcproglbl { font-size: 12px; color: #bedcec; }
.app-rcrailhead { margin: 10px 8px 2px; font: 800 11px/14px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.app-awbtn--suit { padding-left: 14px; }
.app-awbtn--suit .app-awname { flex-direction: row; align-items: center; gap: 6px; }
.app-awbtn--suit.is-Hearts .app-rcglyph, .app-awbtn--suit.is-Diamonds .app-rcglyph { color: #c0392b; }
.app-rcpage { position: relative; display: grid; gap: 14px; padding: 18px 16px 20px; border-radius: 14px; color: #e6f0f7;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 0%, #1f4668 0%, #14324d 62%);
  box-shadow: inset 0 0 0 5px #14324d, inset 0 0 0 6px #86b4c8, inset 0 0 0 9px #14324d, inset 0 0 0 10px rgba(134, 180, 200, .6); }
.app-rcpage > * { position: relative; }
.app-rchead { display: grid; gap: 2px; text-align: center; }
.app-rcmark { margin: 0; font: 800 18px/24px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.app-rcmark--s { font-size: 13px; line-height: 20px; color: #7cc4c9; }
.app-rcsub { margin: 0; font-size: 13px; color: #bedcec; }
.app-rcnote { margin: 0; color: #bedcec; font-size: 13px; }
.app-rcblock { display: grid; gap: 6px; }
.app-rckeys { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.app-rckey { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 12px 8px; border: 1px solid #86b4c8; border-radius: 10px; background: #f3f8fb; color: #1f2933; cursor: pointer; font: inherit; }
.app-rckey:hover { background: #fff; }
.app-rckey .app-rcglyph { font-size: 26px; }
.app-rckey.is-Hearts .app-rcglyph, .app-rckey.is-Diamonds .app-rcglyph { color: #c0392b; }
.app-rckeyname { font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #1f7f86; }
.app-rckeyline { font-size: 12.5px; color: #3a4650; }
.app-rckeyn { font-size: 11.5px; color: #5b6670; }
.app-rcpaper { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: #f3f8fb; color: #1f2933; font-size: 14px; line-height: 21px; text-align: center; }
.app-rcpaper p { margin: 0; }
.app-rcsuitkey { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.app-rcsuitkey li { display: flex; align-items: center; gap: 8px; }
.app-rcsuitkey b { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #1f7f86; min-width: 84px; }
.app-rcsuitkey li.is-Hearts .app-rcglyph, .app-rcsuitkey li.is-Diamonds .app-rcglyph, .app-rcpage .app-rcglyph.is-Hearts, .app-rcpage .app-rcglyph.is-Diamonds { color: #ff7b72; }
.app-rcsuitkey li.is-Hearts .app-rcglyph, .app-rcsuitkey li.is-Diamonds .app-rcglyph { color: #c0392b; }
.app-rcpage .app-rcnote .app-rcglyph { margin-right: 2px; }
.app-rcpage .app-prow2 { --ink: #1f2933; --ink-muted: #5b6670; --surface: #f3f8fb; --surface-raised: #f3f8fb; --surface-sunken: #e3f1f8; --border: #bedcec; background: #f3f8fb; color: #1f2933; border-radius: 10px; }
.app-rcpage .app-plist { gap: 8px; }
.app-rcpage .app-rcempty { opacity: 1; background: transparent; border: 1px dashed #86b4c8; color: #bedcec; }
.app-rcpage .app-rcempty .app-small { color: #bedcec; }
.app-rcpage .app-rcslot { background: #f3f8fb; color: #1f2933; border-color: #86b4c8; }
.app-rcpage .app-rcslot.is-red { color: #c0392b; }

.app-vinfo { gap: 6px; }
.app-vinforule { width: 100%; height: 0; margin: 4px 0; border: 0; border-top: 1px solid rgba(134, 180, 200, .45); }
.app-vinfostrong { font-weight: 800; color: #fff; }
.app-vinfokeys { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.app-vinfokeys b { min-width: 84px; }

.app-rchow { text-align: left; }
.app-rchr { width: 100%; height: 0; margin: 6px 0; border: 0; border-top: 1px solid #bedcec; }
.app-rcstrong { font-weight: 800; }
.app-rcking { justify-self: start; padding: 3px 14px; background: #86b4c8; color: #0f2639; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; border-radius: 3px; }

/* suit pages: the name, its line and the suit read big */
.app-rchead .app-rcmark { font-size: 30px; line-height: 36px; letter-spacing: .14em; }
.app-rchead .app-rcsub { font-size: 18px; line-height: 26px; font-weight: 700; color: #fff; }
.app-rcpage > .app-rcnote { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: #fff; letter-spacing: .04em; }
.app-rcpage > .app-rcnote .app-rcglyph { font-size: 38px; line-height: 1; margin: 0; color: #fff; }
.app-rcpage > .app-rcnote .app-rcglyph.is-Hearts, .app-rcpage > .app-rcnote .app-rcglyph.is-Diamonds { color: #ff7b72; }
.app-rchow .app-rcsuitkey { gap: 8px; }
.app-rchow .app-rcsuitkey li { display: grid; grid-template-columns: 32px 130px 1fr; align-items: center; }
.app-rchow .app-rcsuitkey b { font-size: 18px; letter-spacing: .1em; min-width: 0; }
.app-rchow .app-rcsuitkey li span:last-child { font-size: 17px; font-weight: 700; color: #1f2933; }
.app-rchow .app-rcsuitkey .app-rcglyph { font-size: 28px; line-height: 1; }
/* This week's verse sits in the middle of the Challenge page */
.app-rcblock { width: min(640px, 100%); justify-self: center; text-align: center; }
.app-rcblock .app-rcmark--s { font-size: 15px; letter-spacing: .16em; }
.app-rcblock .app-plist { text-align: left; }

/* Health settings: show/hide and order the tabs */
.app-hltabset { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.app-hltabrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); }
.app-hltabrow.is-off .app-hltabname { opacity: .55; }
.app-hltabname { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.app-hltabmv { display: inline-flex; gap: 4px; }

/* Points numbers per plan */
.app-hlbudgets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-hlbudrow { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(70px, 110px) minmax(70px, 110px); gap: 10px; align-items: end; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); }
.app-hlbudrow > strong { align-self: center; }
@media (max-width: 520px) { .app-hlbudrow { grid-template-columns: 1fr 1fr; } .app-hlbudrow > strong { grid-column: 1 / -1; } }

/* Add Food, laid out like Healthi: serving card, meal pills, macro rings, nutrition list, one Track button */
.app-hlfooddlg { gap: 12px; }
.app-hlh3 { margin: 6px 0 0; font: 600 17px/22px var(--font-sans); }
.app-hlfoodtitle { font-weight: 700; font-size: 17px; }
.app-hlservcard { display: grid; gap: 2px; justify-items: center; width: 100%; padding: 12px 10px 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-raised); box-shadow: 0 6px 16px rgba(18, 48, 74, .12); cursor: pointer; font: inherit; color: var(--ink); }
.app-hlservtop { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--border); width: 100%; text-align: center; }
.app-hlservqty { font: 500 46px/52px var(--font-sans); color: var(--accent); }
.app-hlservunit { font-size: 17px; color: var(--accent); }
.app-hlmealpills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.app-hlmealpill { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border: 1.5px solid transparent; border-radius: 12px; background: var(--surface-sunken); color: var(--ink); font: 600 14px/18px var(--font-sans); cursor: pointer; }
.app-hlmealpill.is-on { border-color: var(--accent); color: var(--accent); background: var(--surface-raised); }
.app-hldateline { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px; border-radius: 12px; background: var(--surface-raised); font-weight: 600; }
.app-hlrings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 8px; border: 1px solid var(--border); border-radius: 14px; }
.app-hlring { display: grid; justify-items: center; gap: 6px; }
.app-hlringc { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--ring); font-size: 14px; }
.app-hlringl { font-size: 11px; letter-spacing: .04em; color: var(--ink-muted); }
.app-hlptsbox { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--accent-tint); }
.app-hlptsbox strong { font-size: 24px; }
.app-hlptsin { max-width: 130px; }
.app-hlnutr { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.app-hlnrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 15px; }
.app-hlnrow:last-child { border-bottom: 0; }
.app-hlnrow.is-sub { color: var(--ink-muted); font-size: 14px; }
.app-hlnin { display: inline-flex; align-items: center; gap: 4px; }
.app-hlnin input { width: 84px; text-align: right; border-color: transparent; background: transparent; padding: 4px 6px; font-size: 16px; }
.app-hlnin input:focus { border-color: var(--border-strong, var(--border)); background: var(--surface); }
.app-hlnin em { font-style: normal; color: var(--ink-muted); }
.app-hltrack { position: sticky; bottom: 0; width: 100%; padding: 14px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: 700 15px/20px var(--font-sans); letter-spacing: .04em; cursor: pointer; box-shadow: 0 -8px 12px var(--surface); }
.app-hltrack:disabled { opacity: .5; cursor: default; }
/* serving picker */
.app-hlpicker { display: grid; gap: 10px; }
.app-hlpickfoot { display: flex; justify-content: flex-end; }
.app-hltabs3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-sunken); border-radius: 999px; padding: 3px; }
.app-hltab3 { border: 0; background: transparent; padding: 7px 4px; border-radius: 999px; font: 700 12px/15px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.app-hltab3.is-on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.app-hlpickname { margin: 0; text-align: center; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.app-hlbigin { font-size: 26px; text-align: center; padding: 6px; border-radius: 999px; }
.app-hlunits { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.app-hlunit { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--surface-sunken); color: var(--ink-muted); font: 600 13px/16px var(--font-sans); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.app-hlunit.is-on { background: var(--primary); color: #fff; }
.app-hlwheels { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
.app-hlwheel { font-size: 18px; text-align: center; padding: 10px 4px; }
.app-hlfrac { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Checks counted from food, water goal */
.app-hlautochecks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.app-hlautochecks li { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 10px; align-items: center; font-weight: 600; }
.app-hlautochecks li.is-met .app-hlbar span { background: #3f8f5a; }

/* Food search tabs, barcode scanner, recipe form */
.app-hlsearchtop { display: flex; justify-content: flex-end; gap: 10px; }
.app-hlround { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-raised); color: var(--accent); font: inherit; font-size: 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.app-hlstabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; }
.app-hlstab { flex: none; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-raised); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.app-hlstab.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.app-hlsbox { border-radius: 99px; padding: 12px 18px; }
.app-hlfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-hlfpill { padding: 6px 14px; border-radius: 99px; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.app-hlfpill.is-on { background: var(--surface-sunken); font-weight: 700; }
.app-hlselrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.app-hlbig .app-hlfoodrow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; }
.app-hlbig .app-hlfoodname { font-size: 17px; }
.app-hlbrand { opacity: .75; }
.app-hlstar { color: #d9a31a; }
.app-hlstarbtn { font-size: 22px; line-height: 1; }
.app-hlstarbtn.is-on { color: #d9a31a; }
.app-hlvideo { width: 100%; max-height: 300px; background: #000; border-radius: 12px; object-fit: cover; }
.app-hlbigplus { width: 100%; padding: 16px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.app-hlbigplus.is-light { background: var(--surface-raised); color: var(--accent); border: 1px solid var(--border); }
.app-hlingrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.app-hlingrow > .app-hlfoodname { flex: 1; }
.app-hlingrow textarea { flex: 1; }
.app-hlqty { width: 5.5em; }

.app-hlgroupbyrow { display: flex; align-items: flex-end; gap: 10px; }
.app-hlgroupbyrow .app-hlfield { flex: 1; }
.app-hlsmallbtn { padding: 6px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-raised); color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin-bottom: 4px; }
.app-hlsuppfoot { margin-top: 14px; }

/* Library card: compact header, icon buttons under a picture */
.app-dialog-head--stack { flex-wrap: wrap; }
.app-dialog-head--stack .app-dialog-title { flex: 1 1 100%; }
.app-dialog-head--stack .app-head-aside { flex: 1 1 100%; justify-content: space-between; }
.app-dialog-head--stack .app-head-aside .app-dialog-x:only-child { margin-left: auto; }
.app-dialog-head--stack .app-head-aside .app-dtop { flex: 1; }
.app-libtop { flex-wrap: nowrap; }
.app-libmore { min-width: 30px; height: 28px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-raised); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.app-libmedia { flex-direction: column; align-items: flex-start; }
.app-libicons { display: inline-flex; align-items: center; gap: 6px; }
.app-libicon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-raised); color: var(--accent); cursor: pointer; padding: 0; text-decoration: none; font: inherit; }
.app-libicon:hover, .app-libicon:focus-visible { background: var(--surface-sunken); }
.app-libupload { display: inline-flex; gap: 6px; align-items: center; }
.app-hlimgrow { display: flex; gap: 8px; align-items: center; }
.app-hlimgrow .bh-input { flex: 1; min-width: 0; }
.app-hleditimg { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex: none; }
.app-hlimgthumb { padding: 0; border: 0; background: none; cursor: pointer; flex: none; line-height: 0; }
.app-recipe-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }

/* Round 2: smaller Edit Food, white button bar, back arrow, food lines */
.app-hlbacktitle { display: inline-flex; align-items: center; gap: 8px; }
.app-hlback { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.app-hlback:hover, .app-hlback:focus-visible { background: var(--surface-sunken); }
.app-hltopacts { flex-wrap: nowrap; gap: 6px; }
.app-hlfooddlg { gap: 9px; font-size: 14px; }
.app-hlfooddlg .app-hlh3 { font-size: 15px; line-height: 19px; margin-top: 2px; }
.app-hlfooddlg .app-hlfoodtitle { font-size: 15px; }
.app-hlfooddlg .app-hlservcard { padding: 8px 8px 10px; border-radius: 14px; }
.app-hlfooddlg .app-hlservtop { font-size: 12px; padding-bottom: 5px; }
.app-hlfooddlg .app-hlservqty { font-size: 34px; line-height: 38px; }
.app-hlfooddlg .app-hlservunit { font-size: 14px; }
.app-hlfooddlg .app-hlmealpill { padding: 7px 2px; font-size: 12px; line-height: 15px; border-radius: 10px; }
.app-hlfooddlg .app-hldateline { padding: 6px; font-size: 13px; }
.app-hlfooddlg .app-hlrings { padding: 8px 6px; }
.app-hlfooddlg .app-hlringc { width: 48px; height: 48px; font-size: 12px; }
.app-hlfooddlg .app-hlringl { font-size: 10px; }
.app-hlfooddlg .app-hlnrow { padding: 5px 12px; font-size: 13px; }
.app-hlfooddlg .app-hlnrow.is-sub { font-size: 12px; }
.app-hlfooddlg .app-hlnin input { font-size: 14px; padding: 2px 4px; }
.app-hlfooddlg .app-hlptsbox strong { font-size: 20px; }
.app-hltrackbar { position: sticky; bottom: -14px; margin: 4px -14px -14px; padding: 10px 14px 14px; background: #fff; border-top: 1px solid var(--border); z-index: 2; }
.app-hltrackbar .app-hltrack { position: static; box-shadow: none; padding: 12px; }
.app-hlfline { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 4px; }
.app-hlfico { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-muted); opacity: .55; }
.app-hlfbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-hlfbody .app-hlfoodname, .app-hlbig .app-hlfoodname { font-weight: 700; }
.app-hlfsub { font-weight: 400; color: var(--ink-muted); font-size: 14px; }
.app-hlfsub strong { font-weight: 700; color: var(--ink); }
.app-hlmealpts { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--ink-muted); }
.app-hlpickhead .app-hlback { flex: none; }

/* Recipes, filters, courses, multi-delete (round 3) */
.app-hlminus { width: 18px; height: 18px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--ink-muted); font: 600 12px/1 var(--font-sans); cursor: pointer; }
.app-hlminus:hover, .app-hlminus:focus-visible { color: #b3402f; border-color: #b3402f; }
.app-hlechev { display: inline-block; color: var(--ink-muted); font-size: 11px; }
.app-hlchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.app-hlchip { border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 11px; background: var(--surface-raised); color: var(--ink); font: 600 13px/16px var(--font-sans); cursor: pointer; }
.app-hlchip.is-on { background: var(--primary); border-color: #0d4f73; color: var(--on-primary); }
.app-hlchips--soft .app-hlchip { font-weight: 500; }
.app-hlsort { width: auto; max-width: 100%; padding: 5px 8px; font-size: 13px; margin-left: auto; }
.app-hlbrowser { display: flex; flex-direction: column; gap: var(--space-2, 8px); }
.app-hlnewrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-hlsmallbtn { border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 14px; background: var(--surface-raised); color: var(--accent); font: 600 13px/16px var(--font-sans); cursor: pointer; }
.app-hlsmallbtn[aria-pressed="true"] { background: var(--surface-sunken); }
.app-hlcopybar { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface-sunken); margin-bottom: 8px; }
.app-hlpartrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.app-hlpartrow .app-hlfoodname { flex: 1 1 60%; font-weight: 400; }
.app-hlpartrow .app-hlrole { flex: 1 1 140px; min-width: 0; }
.app-hlpartrow .app-hlqty { width: 72px; flex: none; }
.app-hlingline { flex: 1 1 60%; min-width: 0; }
.app-hlingrow.is-loose { flex-wrap: wrap; }
.app-hldish { max-width: 220px; }
.app-hlselbar { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.app-hltrash { color: #b3402f; }
.app-hltrash:disabled { opacity: .35; }
.app-hlpick { display: flex; align-items: center; gap: 8px; }
.app-hlpick > input { flex: none; width: 20px; height: 20px; }
.app-hlpick > :last-child { flex: 1; min-width: 0; }
.app-hlpick .app-hlfline { width: auto; flex: 1; min-width: 0; }
.app-hlpick .app-hlfline { justify-content: flex-start; } .app-hlpick .app-hlfbody { flex: 1; }
.app-hlsearchrow { display: flex; gap: 8px; align-items: center; }
.app-hlsearchrow .bh-input { flex: 1; min-width: 0; }
.app-hlfsbtn { flex: none; white-space: nowrap; }
.app-hlfsbtn.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.app-hlfspanel { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-sunken); }
.app-hlfspanel > .app-linkbtn { justify-self: start; align-self: end; }
.app-hlgrp { margin: 10px 0 2px; }

/* ---------- Recipes v2: condensed card, categories as multiple-choice, Filter & Sort ---------- */
.app-hlcardsearch { width: 150px; max-width: 42vw; padding: 5px 10px; font-size: 13px; }
.app-hlrecbtns { gap: 6px; }
.app-hlrecbtns .app-hlsmallbtn { padding: 5px 10px; font-size: 13px; }
.app-hlfsbtn, .app-hlfsbtn.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.app-hlfsbtn:hover { background: var(--headline); border-color: var(--headline); }
.app-hlfspanel { display: flex; flex-direction: column; gap: 10px; padding: 10px; margin: 8px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-sunken); }
.app-hlmultibtn { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; text-align: left; cursor: pointer; min-height: 34px; }
.app-hlmultibtn:not(.has-value) { color: var(--ink-muted); }
.app-hlmultitxt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.app-hlmultiarrow { flex: none; font-size: 11px; color: var(--ink-muted); }
.app-hlchecks { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow: auto; }
.app-hlchecks li { padding: 5px 0; border-bottom: 1px solid var(--border); }
.app-hltabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.app-hltab { flex: none; padding: 7px 11px; font: 600 13px/1.2 var(--font-sans); color: var(--ink-muted); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.app-hltab.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.app-hlrecdlg .app-hlgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.app-hlrecdlg .bh-label { font-size: 11px; }
.app-hlrich { font-size: 14px; line-height: 1.45; }
.app-hlrichp { margin: 0 0 2px; }
.app-hlrichgap { height: 8px; }
.app-hlrichhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-hlinghead { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.app-hlinghinput { flex: 1; min-width: 0; font-weight: 700; letter-spacing: .04em; font-size: 12px; text-transform: uppercase; }
.app-hlmatchbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 1px solid var(--border); background: var(--surface-raised); color: var(--ink-muted); border-radius: 50%; cursor: pointer; }
.app-hlmatchbtn:hover { color: var(--accent); border-color: var(--accent); }
.app-hlmatchbtn.is-on { color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }
.app-hlminilinks { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.app-hlingl .app-hlingrow { gap: 6px; padding: 3px 0; }

/* ---------- Print the meal plan: compact ---------- */
.app-planprint { display: none; }
@media print {
  .app-overlay.app-planprint { display: block !important; color: #000; font: 9.5pt/1.3 var(--font-sans); }
  .app-dialog-print-hide { display: none !important; }
  .app-planprint h2 { margin: 0 0 6px; padding-bottom: 3px; border-bottom: 2px solid #000; font-size: 14pt; }
  .app-planprint ul { margin: 0; padding: 0; list-style: none; }
  .app-ppDays { column-count: 2; column-gap: 24px; margin-bottom: 16px; }
  .app-ppDay { break-inside: avoid; margin-bottom: 12px; }
  .app-ppDay > strong { display: block; margin-bottom: 3px; border-bottom: 1px solid #999; font-size: 10pt; }
  .app-ppDay li { padding: 2px 0; }
  .app-ppMeal { font-size: 8pt; text-transform: uppercase; letter-spacing: .04em; color: #444; }
  .app-ppRecs { column-count: 2; column-gap: 24px; border-top: 2px solid #000; padding-top: 10px; }
  .app-ppRec { break-inside: avoid-column; margin: 0 0 20px; }
  .app-ppRec h3 { margin: 0 0 8px; padding-bottom: 3px; font-size: 11pt; border-bottom: 1px solid #000; }
  .app-ppRec h3 small { font-size: 8pt; font-weight: 400; color: #444; }
  .app-ppIng { margin-bottom: 8px; }
  .app-ppIng > div { margin-bottom: 7px; }
  .app-ppIng strong { display: block; margin-bottom: 3px; font-size: 8pt; letter-spacing: .05em; }
  .app-ppIng li { padding: 1.5px 0; font-size: 9pt; }
  .app-ppDir { margin-top: 10px; font-size: 9pt; }
  .app-ppFz { margin-top: 12px; font-size: 9pt; }
  .app-planprint .app-hlrich { font-size: 9pt; line-height: 1.4; }
  .app-planprint .app-hlrichgap { height: 7px; }
  .app-planprint .app-hlrichp { margin: 0 0 4px; }
  .app-ppFz { padding-top: 8px; border-top: 1px dashed #666; }
  .app-ppFzh { display: block; margin-bottom: 4px; font-size: 8pt; text-transform: uppercase; letter-spacing: .05em; }
  .app-ppFz > div { margin-bottom: 5px; }
  .app-ppFz em { display: block; margin-bottom: 1px; font-size: 8pt; color: #444; }
  .app-ppNut { margin-top: 12px; padding-top: 8px; border-top: 1px dashed #666; font-size: 9pt; }
}

/* ---------- Print one recipe (from its own card, with a choice of sections) ---------- */
.app-recipeprint { display: none; }
@media print {
  .app-overlay.app-recipeprint { display: block !important; color: #000; font: 10pt/1.3 var(--font-sans); }
  .app-recipeprint .app-ppRec h2 { margin: 0 0 8px; padding-bottom: 4px; border-bottom: 2px solid #000; font-size: 15pt; }
  .app-recipeprint .app-ppRec h2 small { display: block; margin-top: 2px; font-size: 9pt; font-weight: 400; color: #444; }
  .app-recipeprint ul { margin: 0; padding: 0; list-style: none; }
}
.app-hlpartrow { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.app-hlpartrow .app-hlfoodname { flex: 1; min-width: 0; }
.app-hlpartrow .app-hlqty { width: 56px; flex: none; }
.app-hlservlbl { flex: none; min-width: 52px; }
.app-hlpinned { position: sticky; top: 0; z-index: 2; padding: 6px 0 8px; background: var(--surface-raised); border-bottom: 1px solid var(--border); }
.app-hlpinrow { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.app-hlpinrow .app-hlfoodname { flex: 1; min-width: 0; font-size: 14px; }
.app-hlpartshead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 36px; }
.app-hlpartsinfo { display: inline-flex; align-items: center; gap: 5px; }
.app-hlinfo { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; border: 1.5px solid var(--ink-muted); border-radius: 50%; background: none; color: var(--ink-muted); font: italic 700 10px/1 Georgia, serif; cursor: pointer; text-transform: none; }
.app-hlinfo:hover, .app-hlinfo[aria-expanded="true"] { color: var(--primary); border-color: var(--primary); }
.app-hlinfotext { margin: 0; padding: 6px 8px; border-radius: 8px; background: var(--surface-sunken); }
.app-hlmove { flex: none; display: inline-flex; flex-direction: column; gap: 1px; }
.app-hlmv { width: 22px; height: 14px; padding: 0; border: 0; background: none; color: var(--ink-muted); font-size: 9px; line-height: 1; cursor: pointer; }
.app-hlmv:hover:not(:disabled) { color: var(--primary); }
.app-hlmv:disabled { opacity: .3; cursor: default; }
.app-hlpartsub { display: block; }
.app-hlgrpbtn { display: flex; align-items: center; gap: 6px; width: 100%; margin: 8px 0 2px; padding: 4px 2px; border: 0; background: none; color: var(--accent); font: 700 12px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; text-align: left; cursor: pointer; }
.app-hlgrparrow { width: 12px; font-size: 11px; }
.app-hlgrpn { color: var(--ink-muted); font-weight: 600; letter-spacing: 0; }
.app-hlgrpbtn + .app-hlresults { margin-left: 14px; border-left: 2px solid var(--border); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.app-hlbrowser .app-hlfoodbtn { font-size: 14px; line-height: 1.3; padding: 7px 2px; }
.app-hlbrowser .app-hlfoodname { font-size: 14px; font-weight: 400; }
.app-hlbrowser .app-hlfoodbtn .app-small { font-size: 12px; }

/* Calendar rows: the dot column is a fixed width so times and titles line up whether an event has one dot or several. */
.app-event .app-dots { flex: 0 0 44px; width: 44px; margin-left: 0; gap: 3px; overflow: hidden; }
.app-event .app-dots .app-dot + .app-dot { margin-left: 0; }
.app-event .app-event-time { flex: 0 0 76px; }
/* Plan line: compact */
.app-hlcartline { gap: 6px; }
.app-hlcartrow2 { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.app-hlcartrow2 .app-hldish { flex: 0 0 130px; }
.app-hlcartrow2 .app-checkrow { font-size: 14px; padding-bottom: 8px; }
.app-hlcartmore { font-size: 14px; }
.app-hlcartmore > summary { cursor: pointer; padding: 2px 0; color: var(--ink-muted); font-weight: 600; font-size: 13px; }
.app-hlcartmore[open] > * + * { margin-top: 6px; }
.app-hlnutbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 12px; }
.app-hlnutbar .app-hlunits { margin: 0; }
.app-hlnutbar .app-hlunit { padding: 4px 10px; font-size: 12px; }
.app-hlmakes { display: inline-flex; align-items: center; gap: 6px; }
.app-hlmakes input { width: 64px; padding: 4px 8px; }
.app-hlnutgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; }
.app-hlnutgrid .bh-label { font-size: 10px; letter-spacing: .04em; }
.app-hlnutgrid input { padding: 5px 8px; min-height: 0; font-size: 14px; }
.app-hlqsel { flex: 1 1 160px; }
.app-hlqsel select { padding: 5px 8px; font-size: 14px; }
.app-hlnutbar .app-checkrow { font-size: 13px; padding-bottom: 6px; }
/* Plan Meals: one even rhythm (10px between rows, 4px from a label to its field) */
.app-hlplandlg { gap: 10px; }
.app-hlplandlg > *, .app-hlplandlg .app-hlsearch > * { margin: 0; }
.app-hlplandlg .app-hlsearch { display: flex; flex-direction: column; gap: 10px; }
.app-hlplandlg .app-hlfield, .app-hlplandlg .app-hlserv { gap: 4px; }
.app-hlcartline { gap: 10px; padding: 12px; }
.app-hlcartmore[open] > * + * { margin-top: 10px; }
.app-hlnutgrid { gap: 10px 8px; }
.app-hlnutbar { gap: 10px 12px; }
.app-hlcartrow2 { gap: 10px 12px; }
.app-hlcarthead { gap: 8px; align-items: flex-end; }
.app-hlcartshut { flex-direction: row; align-items: center; justify-content: space-between; padding: 8px 12px; }
.app-hlcartsum { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; white-space: nowrap; }
.app-hlcartsum strong { overflow: hidden; text-overflow: ellipsis; }
.app-hlcartcollapse { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--accent); font: 700 11px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }

/* Health: the heart lines up with the house in the menu; smaller tabs that wrap instead of scrolling; the recipe list uses the page's scroll */
.app-hlhead { padding-left: 12px; }
.app-hltabsrow { flex-wrap: wrap; overflow: visible; gap: 2px; padding: 0 4px; }
.app-hltabsrow .app-ftab { padding: 6px 11px 5px; font-size: 13px; border-radius: 10px 10px 0 0; }
.app-hltabsrow .app-ftab.is-on { padding-top: 7px; }
.app-hlbrowser .app-hlresults { max-height: none; overflow: visible; }

/* Food search dialogs: small and dense */
.app-hlround { width: 30px; height: 30px; font-size: 15px; }
.app-hlstabs { gap: 5px; padding: 2px 0 4px; }
.app-hlstab { padding: 4px 11px; font-size: 13px; }
.app-hlsbox { padding: 6px 14px; font-size: 15px; }
.app-hlsearchwrap { gap: 6px; }
.app-hlmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.app-hlmetahead { margin: 0; font: 700 13px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.app-hlmeta .app-hlfilter { gap: 2px; }
.app-hlmeta .app-hlfpill { padding: 2px 9px; font-size: 12px; }
.app-hlmetaend { margin-left: auto; display: inline-flex; gap: 6px; }
.app-hlsearchwrap .app-hlbig .app-hlfoodrow { padding: 6px 8px; gap: 0; }
.app-hlsearchwrap .app-hlbig .app-hlfoodname { font-size: 15px; line-height: 1.25; }
.app-hlsearchwrap .app-hlfsub { font-size: 12px; }
.app-hlsearchwrap .app-hlresults { max-height: none; overflow: visible; }
.app-dialog:has(.app-hlsearchwrap) { max-height: 96vh; }

/* Plan Meals: sections of compact lines */
.app-hlcart { display: flex; flex-direction: column; gap: 4px; }
.app-hlpllist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); }
.app-hlpl + .app-hlpl { border-top: 1px solid var(--border); }
.app-hlplrow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.app-hlplname { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.app-hlplt { font: 600 14px/1.3 var(--font-sans); }
.app-hlicobtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--accent); cursor: pointer; }
.app-hlicobtn:hover { background: var(--surface-sunken); }
.app-hlplbody { padding: 2px 10px 10px 38px; display: flex; flex-direction: column; gap: 8px; }
.app-hlplopts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.app-hlplopts .bh-input { padding: 4px 8px; font-size: 14px; }
.app-hlplname2 { flex: 1 1 100%; }
.app-hlplqty { width: 70px; }
.app-hlplfz { font-size: 14px; padding-bottom: 6px; }
.app-hlplnut { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.app-hlplnut .app-hlunit { padding: 3px 10px; font-size: 12px; }
.app-hlplbits { margin: 0; }
.app-hlplsec { display: flex; flex-direction: column; }

/* ---------- Recipe card: reading view, editing, ingredient sections ---------- */
.app-hlasidebar { display: inline-flex; align-items: center; gap: var(--space-2); }
.app-hlvhead { display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.app-hlvname { margin: 0; font-size: 1.3rem; line-height: 1.2; font-weight: 700; color: var(--headline); }
.app-hlvstars { color: var(--accent); letter-spacing: 1px; font-size: 1rem; }
.app-hlvlink { color: var(--primary); font-size: .85rem; text-decoration: none; }
.app-hlvcats, .app-hlvmeta { margin: 0; font-size: .8rem; color: var(--ink-muted); }
.app-hlvmeta { color: var(--ink); font-weight: 600; }
.app-hlfavmark { color: var(--accent); font-size: 1.1rem; }
.app-hlvsec { display: flex; flex-direction: column; gap: 2px; }
.app-hlvsechead { margin: var(--space-2) 0 2px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--accent); display: flex; align-items: center; gap: var(--space-2); }
.app-hlvlist { list-style: none; margin: 0; padding: 0 0 0 var(--space-3); display: flex; flex-direction: column; gap: 2px; }
.app-hlvrow { display: flex; align-items: flex-start; gap: var(--space-2); font-size: .9rem; line-height: 1.35; cursor: pointer; }
.app-hlvrow.is-done span { text-decoration: line-through; color: var(--ink-muted); }
.app-hlcheck { width: 14px; height: 14px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.app-hlscalelnk { font-size: .8rem; color: var(--primary); padding: 0; }
.app-hlscalebox { margin-top: var(--space-2); padding: var(--space-2); border: 1px solid var(--border); border-radius: 8px; background: var(--surface-sunken); display: flex; flex-direction: column; gap: var(--space-2); }
.app-hlsegrow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.app-hlsegrow .bh-label { min-width: 44px; margin: 0; }
.app-hlscalein { width: 56px; padding: 2px 6px; font-size: .8rem; }
.app-hlstar1 { background: none; border: 0; padding: 0 1px; font-size: 1.15rem; color: var(--border); cursor: pointer; }
.app-hlstar1.is-on { color: var(--accent); }
.app-hlstarsrow { display: flex; align-items: center; gap: var(--space-2); }
.app-hlstarsrow .bh-label { min-width: 52px; margin: 0; }
.app-hlnamein { font-weight: 700; font-size: 1.05rem; }
.app-hldiv { padding-top: var(--space-2); border-top: 1px solid var(--border); }
.app-hlrecdlg .bh-label { color: var(--accent); font-weight: 600; font-size: .72rem; letter-spacing: .02em; }
.app-hlrecdlg .bh-input { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 3px 2px; font-size: .88rem; box-shadow: none; }
.app-hlrecdlg textarea.bh-input { border: 1px solid var(--border); border-radius: 6px; padding: 5px 6px; }
.app-hlgrid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.app-hlspan2 { grid-column: span 2; }
.app-hlsuffix { display: flex; align-items: baseline; gap: 2px; }
.app-hlsuffix input { min-width: 0; width: 100%; }
.app-hlminilinks { display: flex; justify-content: flex-end; }
.app-hleditlist { list-style: none; margin: 0; padding: 0 0 0 var(--space-3); display: flex; flex-direction: column; gap: 2px; }
.app-hlerowtop { display: flex; align-items: center; gap: var(--space-2); }
.app-hlename { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 2px 0; font-size: .88rem; color: var(--ink); cursor: pointer; }
.app-hlmove { display: inline-flex; flex-direction: column; }
.app-hlmv { background: none; border: 0; padding: 0 3px; line-height: 1; font-size: .55rem; color: var(--primary); cursor: pointer; }
.app-hlmv:disabled { color: var(--border); cursor: default; }
.app-hleopen { padding: var(--space-2) 0 var(--space-2) var(--space-4); }
.app-hlrichhead { display: flex; align-items: center; justify-content: space-between; }
.app-hlrichtools { display: inline-flex; gap: 4px; align-items: center; }
.app-hlbold { font-weight: 800; font-size: .8rem; width: 24px; height: 22px; border: 1px solid var(--border); background: var(--surface-raised); color: var(--primary); border-radius: 4px; cursor: pointer; }
.app-hlheads { font-size: .75rem; padding: 2px 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-raised); color: var(--primary); }
.app-hlrichview { white-space: pre-wrap; font-size: .9rem; }

/* Multi-select fields are real dropdowns: a small checkbox list under the field */
.app-hlmulti { position: relative; }
.app-hlmultipop { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 2px; max-height: 220px; overflow-y: auto; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 4px 0; min-width: 160px; }
.app-hlmultiopt { display: flex; align-items: center; gap: var(--space-2); padding: 4px 10px; font-size: .85rem; cursor: pointer; }
.app-hlmultiopt:hover { background: var(--surface-sunken); }
.app-hlmulticlr { display: block; margin: 2px 10px 4px; font-size: .78rem; color: var(--primary); }

/* Smaller action buttons on the recipe card and the old pop-ups */
.app-hltrackbar { display: flex; gap: var(--space-2); justify-content: flex-end; padding-top: var(--space-2); border-top: 1px solid var(--border); }
.app-hlrecdlg .app-hltrack, .app-hlrecdlg .app-hlcancel { width: auto; min-height: 0; padding: 5px 14px; font-size: .78rem; border-radius: 999px; box-shadow: none; }
.app-hlmv { width: 18px; height: 12px; font-size: .6rem; }

/* Recipe Fields editor and your own fields on the card */
.app-hlspanall { grid-column: 1 / -1; }
.app-hlflist .app-hlerow.is-off .app-hlename { color: var(--ink-muted); text-decoration: line-through; }
.app-hlflink { font-size: .78rem; color: var(--primary); padding: 0 4px; }
.app-hlxrow { margin: 0; display: flex; gap: var(--space-2); font-size: .9rem; }
.app-hlxlab { color: var(--accent); font-weight: 600; font-size: .78rem; min-width: 90px; }

/* Compact ingredient editor: the parts sit together on two short rows, tucked under their ingredient */
.app-hleopen { margin: 2px 0 6px var(--space-4); padding: 2px 0 2px var(--space-3); border-left: 2px solid var(--accent); }
.app-hlegrid { display: grid; grid-template-columns: 46px 64px minmax(0, 1fr); gap: 2px var(--space-2); align-items: end; }
.app-hlegrid .bh-label { font-size: .62rem; margin: 0; }
.app-hlegrid .bh-input { padding: 1px 2px; font-size: .84rem; min-height: 0; height: 24px; }
.app-hlegrid select.bh-input { padding-right: 2px; }
.app-hlg-desc { grid-column: 1 / 3; }
.app-hlg-sec { grid-column: 3; }
.app-hlg-q { grid-column: 1 / 3; }
.app-hlerow { border-bottom: 0; }
.app-hlrichedit { min-height: 5em; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-raised); font-size: .9rem; line-height: 1.35; white-space: pre-wrap; outline: none; overflow-wrap: anywhere; }
.app-hlrichedit:focus { border-color: var(--accent); }
.app-hlrecdlg .app-hlrichedit.bh-input { border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }
.app-hlunmatch { grid-column: 3; justify-self: start; font-size: .78rem; color: var(--primary); padding: 0; }

/* A logged food sits next to its icon, not pushed to the far right */
.app-hlfline { justify-content: flex-start; }
.app-hlfline .app-hlfbody { flex: 1; align-items: flex-start; }

/* Formatted recipe text */
.sz-s { font-size: .85em; } .sz-l { font-size: 1.2em; } .sz-h { font-size: 1.4em; font-weight: 700; }
.c-accent { color: var(--accent); } .c-primary { color: var(--primary); } .c-headline { color: var(--headline); } .c-muted { color: var(--ink-muted); }
.hl-accent { background: color-mix(in srgb, var(--accent) 24%, transparent); } .hl-primary { background: color-mix(in srgb, var(--primary) 20%, transparent); } .hl-muted { background: color-mix(in srgb, var(--ink-muted) 22%, transparent); }
.app-hlrichedit ul, .app-hlrichedit ol, .app-hlrichhtml ul, .app-hlrichhtml ol { margin: 2px 0; padding-left: 1.4em; }
.app-hlrichedit ul.cl, .app-hlrichhtml ul.cl { list-style: none; padding-left: 0; }
.app-hlrichedit ul.cl > li::before, .app-hlrichhtml ul.cl > li::before { content: '\2610\00a0'; color: var(--accent); }
.app-hlrichhtml ul.cl > li { cursor: pointer; }
.app-hlrichhtml ul.cl > li.done { text-decoration: line-through; color: var(--ink-muted); }
.app-hlrichhtml ul.cl > li.done::before { content: '\2611\00a0'; }
.app-hlrichtools { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; margin: 2px 0 4px; }
.app-hlrichtools .app-hlbold { min-width: 24px; }
.app-hlrichtools .app-hlheads { max-width: 86px; }

/* Health settings: compact rows, no boxes */
.app-hltabset { gap: 0; }
.app-hltabrow { padding: 1px 2px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; }
.app-hltabname { font-size: .88rem; font-weight: 500; gap: 6px; }
.app-hltabname input { width: 14px; height: 14px; accent-color: var(--accent); }
.app-hltabmv .app-hlbtn { padding: 0 6px; min-height: 0; height: 22px; font-size: .75rem; line-height: 1; }

/* Ingredient editor, round 3: section first; "Servings of:" gets its own line so the food name is never clipped,
   with the serving size, the servings count and the action icons on a second line below it. */
.app-hlg-sec1 { grid-column: 1 / -1; }
.app-hlg-desc1 { grid-column: 1 / -1; }
.app-hlg-match { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.app-hlg-matchrow1 { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.app-hlg-matchrow1 .bh-label { margin: 0; flex: none; }
.app-hlg-matchrow2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.app-hlfoodlink { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; font-size: .84rem; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; white-space: normal; word-break: break-word; }
.app-hlstaleflag { flex: none; color: #b3402f; font-size: .9rem; cursor: default; }
.app-hlmq { width: 52px; flex: none; text-align: right; }
.app-hlg-match .app-hlunmatch { grid-column: auto; flex: none; }
.app-hlsmfrac { white-space: nowrap; }
.app-hlsmfrac sup, .app-hlsmfrac sub { font-size: .62em; line-height: 0; }

/* Ingredient alternatives: a row of pills (the main food, plus each alternative) to say which one you actually used */
.app-hlg-alts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.app-hlg-alts .bh-label { margin: 0; flex: none; }
.app-hlaltchip { display: inline-flex; align-items: center; gap: 2px; }
.app-hlaltchip .app-hlminus { width: 18px; height: 18px; font-size: 13px; }

/* Recipe card: tabs stay at the top while you scroll; pencil; bottom + Add; category lines */
.app-hlrecdlg > .app-hltabs { position: sticky; top: 0; z-index: 6; background: var(--surface-raised, #fff); margin-top: 0; }
.app-hlpencil { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--primary); cursor: pointer; }
.app-hladdbar { margin-right: auto; display: inline-flex; }
.app-hlvcatlist { display: flex; flex-direction: column; gap: 1px; }
.app-hlvcat { margin: 0; display: flex; gap: var(--space-2); font-size: .8rem; color: var(--ink-muted); }
.app-hlvcat .app-hlxlab { min-width: 78px; font-size: .72rem; }

/* Add Food: compact like the recipe card */
.app-hlfoodcompact { gap: 6px; }
.app-hlfoodcompact .bh-label { font-size: .68rem; }
.app-hlserv4 { display: grid; grid-template-columns: 54px minmax(0, 1fr) 60px 56px; gap: var(--space-2); }
.app-hlfoodcompact .app-hlnutr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3); border: 0; border-radius: 0; }
.app-hlfoodcompact .app-hlnrow { padding: 2px 2px; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.app-hlfoodcompact .app-hlnrow:last-child { border-bottom: 1px solid var(--border); }
.app-hlfoodcompact .app-hlnin input { width: 54px; text-align: right; }
.app-hlfoodcompact .app-hlh3 { margin: 4px 0 0; font-size: .8rem; color: var(--accent); letter-spacing: .03em; text-transform: uppercase; }
.app-hlfoodcompact .app-hlmealpill { padding: 4px 2px; border-radius: 8px; }
.app-hlfoodcompact .app-hlrings { padding: 2px 4px; }
.app-hlfoodcompact .app-hlringc { width: 40px; height: 40px; }

/* Workout Plan */
.app-hlplansel { padding: 2px 6px; font-size: .8rem; max-width: 130px; }
.app-hlplanname { margin: 0; }
.app-hlivhead { width: 100%; text-align: left; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.app-hlivhead .app-small { font-weight: 400; color: var(--ink-muted); letter-spacing: 0; text-transform: none; }
.app-hlwilist { list-style: none; margin: 0; padding: 0 0 0 var(--space-3); display: flex; flex-direction: column; gap: 1px; }
.app-hlwisub { list-style: none; margin: 0; padding: 0 0 0 var(--space-3); }
.app-hlwiday { border-bottom: 1px solid var(--border); padding: 2px 0; }
.app-hlwiday.is-today .app-hlwidate { color: var(--accent); font-weight: 700; }
.app-hlwidayhead { display: flex; align-items: center; justify-content: space-between; }
.app-hlwidate { font-size: .82rem; font-weight: 600; }
.app-hlwiadd { width: 20px; height: 20px; font-size: .9rem; line-height: 1; }
.app-hlwirow { display: flex; align-items: center; gap: var(--space-2); font-size: .88rem; padding: 1px 0; }
.app-hlwirow.is-done .app-hlwiname { text-decoration: line-through; color: var(--ink-muted); }
.app-hlwiname { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.app-hlwitype { color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.app-hlivrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 4px; align-items: center; }
.app-hlivrow .bh-input { font-size: .8rem; padding: 2px 3px; min-width: 0; }
.app-hlseg4 { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.app-hlseg4 .bh-label { margin: 0; }

/* Health round 5: toggle switch, thin tiles, theme color on the Points Plan page */
.app-hltogwrap { margin: 8px 0 4px; }
.app-hltogrow { display: flex; align-items: center; gap: 8px; }
.app-hltog { position: relative; flex: none; width: 34px; height: 20px; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-sunken); cursor: pointer; transition: background .15s; }
.app-hltog:disabled { opacity: .5; cursor: default; }
.app-hltogknob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #9AA5B1; transition: left .15s, background .15s; }
.app-hltog.is-on { background: color-mix(in srgb, var(--accent) 22%, var(--surface-raised)); border-color: var(--accent); }
.app-hltog.is-on .app-hltogknob { left: 16px; background: var(--accent); }
.app-hltoglabel { font-weight: 600; font-size: 14px; color: var(--primary); }
.app-hlbudgets.is-auto .bh-input { background: var(--surface-sunken); color: var(--ink-muted); }
.app-hlbudgets .bh-input:disabled { cursor: not-allowed; }
.app-hlbudrow > strong { color: var(--primary); }
/* the thin light tile (like the Trends summary), used everywhere */
.app-hlplan, .app-hlbudrow, .app-hltile2 { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-sunken); padding: 8px 12px; gap: 2px; }
.app-hlplan.is-on { border: 1px solid var(--accent); padding: 8px 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface-sunken)); }
.app-hlplan strong { font-size: 15px; color: var(--primary); }
.app-hlplans { gap: 8px; margin-top: 10px; }
.app-hlplanon { color: var(--accent); font-size: 12px; font-weight: 700; }
.app-hlplanline { font-size: 13px; }
.app-hltile2 { font-size: 14px; }
.app-hlbudrow { padding: 6px 10px; }
.app-hlh3 { color: var(--primary); }
.app-hlfield .bh-label { color: var(--accent); }
.app-hlgrip { cursor: grab; touch-action: none; user-select: none; padding: 2px 8px 2px 2px; color: var(--ink-muted); letter-spacing: -2px; font-weight: 700; }
.app-hltabrow.is-drag { opacity: .5; }
.app-hltabrow.is-over { box-shadow: 0 -2px 0 var(--accent); }
.app-hltabrow { justify-content: flex-start; }
.app-hlcatfold { align-self: flex-start; background: none; border: 0; padding: 2px 0; font: 700 13px/1.2 var(--font-sans); color: var(--primary); cursor: pointer; }
.app-hlingshead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-hlvcatlist { display: grid; grid-template-columns: max-content 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline; }
.app-hlvcatlist .app-hlvcat { display: contents; }
.app-hlvcatlist .app-hlvcat > span:first-child { color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
/* supplement colors by time of day (theme colors) */
.app-hlwhen { margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid currentColor; }
.app-hlwhen--morning { color: var(--accent); }
.app-hlwhen--afternoon { color: var(--primary); }
.app-hlwhen--evening { color: var(--headline); }
.app-hlchecks .app-checkrow { border-left: 3px solid var(--accent); padding-left: 8px; }

/* Thin buttons everywhere */
.bh-btn { min-height: 30px; padding: 0 12px; font-size: 13px; line-height: 1.2; }
.app-hltrack, .app-hltrackbar .app-hltrack { padding: 8px 14px; font-size: 14px; line-height: 18px; }
.app-hlbigplus { padding: 8px 14px; font-size: 14px; border-radius: 999px; }
.app-dtop .bh-btn { min-height: 28px; }
.app-delbtn { min-height: 28px; padding: 0 10px; }
.app-hlsmallbtn { padding: 3px 10px; font-size: 12px; }

/* Recipe card round: inline add buttons, drag rows, sub-heads, markers, key */
.app-dialog-body:has(.app-hlrecdlg) { padding-top: 0; }
.app-hlrecdlg > :first-child:not(.app-hltabs) { margin-top: 10px; }
.app-hlrecdlg > .app-hltabs { top: 0; padding-top: 4px; box-shadow: 0 -8px 0 0 var(--surface-raised, #fff); }
.app-hladdbtns { display: inline-flex; gap: 6px; margin-right: auto; }
.app-hlpartadd { margin: 2px 0 6px; }
.app-hlnutfold { border-top: 1px solid var(--border); padding-top: var(--space-2); margin-top: var(--space-2); display: flex; flex-direction: column; gap: 6px; }
.app-hlnutfold .app-hlcatfold { font-size: 14px; }
.app-hlerowtop .app-ngrip, .app-hlpartrow .app-ngrip { flex: none; padding: 2px 4px; font-size: 12px; color: var(--ink-muted); background: none; border: 0; cursor: grab; touch-action: none; }
.app-hlesub .app-hlesubin { flex: 1; min-width: 0; font-weight: 700; color: var(--primary); }
.app-hlvsubhead { list-style: none; margin: 8px 0 2px; font-weight: 700; font-size: .9rem; color: var(--primary); }
.app-hlmarks { grid-column: 1 / -1; display: inline-flex; gap: 4px; }
.app-hlmark, .app-hlmarktb { min-width: 22px; height: 22px; padding: 0 5px; border: 1px solid var(--border); border-radius: 6px; background: none; color: var(--accent); font: 700 12px/1 var(--font-sans); cursor: pointer; }
.app-hlmark.is-on { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); }
.app-hlkeybtn { margin-left: auto; align-self: center; flex: none; }
.app-hlkeypanel { padding: 8px 10px; border-left: 2px solid var(--accent); background: var(--surface-sunken); border-radius: 0 8px 8px 0; font-size: .82rem; }
.app-hlkeyhead { margin: 0 0 2px; font-weight: 700; color: var(--primary); font-size: .72rem; letter-spacing: .06em; }
.app-hlkeyline { margin: 0 0 3px; color: var(--ink); }
.app-hlkeygap { height: 6px; }
.app-hlkeyedit { font-size: .82rem; }
.app-hlvname .app-hlinfo { vertical-align: middle; }

/* ---------- Meal plan: grouped meals, icons, Log It ---------- */
.app-hlmi { display: inline-flex; align-items: center; flex: none; }
.app-hlmi--pan { color: var(--accent); }
.app-hlmi--snow { color: var(--primary); }
.app-hlmi--flame { color: #D9822B; }
.app-hlmi--log { color: var(--accent); }
.app-hlplanday { border-top: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); padding: 6px 0 8px; }
.app-hldayhead { padding-top: 2px; }
.app-hldayname { font: 600 13px/18px var(--font-sans); letter-spacing: 0.04em; color: var(--headline); text-transform: uppercase; }
.app-hlplanday.is-today { background: var(--accent-tint, color-mix(in srgb, var(--accent) 9%, transparent)); border-top-color: var(--accent); border-radius: 8px; padding-left: 10px; padding-right: 10px; }
.app-hlplanday.is-today .app-hldayname { color: var(--accent); font-weight: 800; letter-spacing: 0.08em; }
.app-hlmb { padding: 4px 0 6px; }
.app-hlmb + .app-hlmb { border-top: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); margin-top: 2px; }
.app-hlmbhead { display: flex; align-items: center; gap: 8px; }
.app-hlmbname { border: 0; background: none; padding: 0; cursor: pointer; font: 700 11.5px/16px var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.app-hlmbpts { margin-left: auto; font: 500 12px/16px var(--font-sans); color: var(--ink-muted); }
.app-hllogbtn { border: 0; background: none; padding: 3px; border-radius: 6px; cursor: pointer; display: inline-flex; line-height: 0; }
.app-hlmbpts:empty + .app-hllogbtn, .app-hlmbhead .app-hllogbtn:first-of-type { margin-left: auto; }
.app-hlmbpts ~ .app-hllogbtn { margin-left: 0; }
.app-hllogbtn:hover { background: var(--accent-tint, color-mix(in srgb, var(--accent) 12%, transparent)); }
.app-hllogbtn.is-done { opacity: 0.35; cursor: default; }
.app-hlmbbody { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.app-hlmls { display: flex; flex-direction: column; gap: 4px; }
/* Stacked like an already-logged food (app-hlfbody): icon + name on top, the points/calorie stat on its own line
   below, left-aligned under the name - not pinned far over on the right, so it reads as one item, not two columns. */
.app-hlml { display: flex; flex-direction: column; gap: 1px; padding: 1px 0; }
.app-hlmltop { display: flex; align-items: center; gap: 6px; }
/* Same weight as the already-logged food names below it (app-hlfoodname is 700 only inside app-hlfbody), kept a
   notch lighter than the "Lunch"/"Dinner" meal heading above it (app-hltoday .app-hlmealrow strong) so a planned
   dish doesn't read as more important than the meal it belongs to. */
.app-hlml.is-main .app-hlmlname { font: 600 16px/22px var(--font-sans); color: var(--ink); }
.app-hlml.is-side { padding-left: 12px; }
.app-hlml.is-side .app-hlmlname { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.app-hlmlx { font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.app-hlmlcal { margin-left: 21px; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.app-hlml.is-side .app-hlmlcal { margin-left: 19px; }
.app-hlml.is-logged .app-hlmlname { text-decoration: none; }
.app-hlml.is-logged .app-hlmlname::after { content: '\2713  Logged'; margin-left: 8px; font: 500 12px/1 var(--font-sans); color: #4A7A96; white-space: nowrap; }
/* Health Today only: the "Lunch"/"Dinner" meal heading is the most prominent thing in the card - bold, colored,
   a size up from everything under it - so it never gets lost behind the planned dish names below it. */
.app-hltoday .app-hlmealrow strong { font: 800 16px/22px var(--font-sans); color: var(--accent); letter-spacing: .01em; }
.app-hlplanned { display: block; padding: 4px 0 6px; border-bottom: 0; border-top: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); margin-top: 4px; }
.app-hlplhead { display: flex; align-items: center; justify-content: space-between; }
.app-hlplab { font: 700 11px/16px var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
/* Log It window */
.app-hllghead { display: flex; justify-content: space-between; font: 700 11px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); border-bottom: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); padding-bottom: 2px; }
.app-hllgrow { display: flex; flex-direction: column; gap: 4px; padding: 2px 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); }
.app-hllgrowtop { display: flex; align-items: center; gap: 8px; }
.app-hllgname { flex: 1; min-width: 0; display: flex; flex-direction: column; font: 600 14px/20px var(--font-sans); }
.app-hllgname .app-small { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.app-hllgqty { width: 64px; min-height: 30px; padding: 0 8px; text-align: center; }
.app-hllgpad { width: 22px; flex: none; }
.app-hllgalts { display: flex; flex-direction: column; gap: 4px; padding-left: 4px; }
.app-hllgalt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.app-hllgaltname { color: var(--ink-muted); }
.app-hllgname-link { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.app-hllgname-link:hover { text-decoration-style: solid; }
/* Lines in the plan window */
.app-hlplkind { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.app-hlkindbtn { width: 24px; height: 24px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--ink-faint, #b7bcc2); cursor: pointer; }
.app-hlkindbtn:hover, .app-hlkindbtn:focus-visible { border-color: var(--border); }
.app-hlkindbtn.is-on { color: inherit; background: color-mix(in srgb, currentColor 14%, transparent); border-color: color-mix(in srgb, currentColor 30%, transparent); }
.app-hlkindbtn.app-hlmi--pan.is-on { color: var(--accent); }
.app-hlkindbtn.app-hlmi--snow.is-on { color: var(--primary); }
.app-hlkindbtn.app-hlmi--carrot.is-on { color: #D9822B; }
.app-hlpl[data-pl].is-over, .app-hlpl.is-over { box-shadow: 0 -2px 0 var(--accent); }
.app-hlasksec { display: flex; flex-wrap: wrap; gap: 8px; }
.app-hlasksecbtn { min-height: 30px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); border-radius: 8px; background: none; color: var(--primary); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.app-hlasksecbtn.is-on, .app-hlasksecbtn:hover { background: var(--primary); color: var(--on-primary, #fff); }
/* Home dinner card */
.app-mday.is-today .app-mday-dow { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.app-meal-name { font-weight: 700; }
.app-mday:not(.is-today) .app-meal-name { font-weight: 600; font-size: 15px; }
.app-meal-sides { font: 400 12.5px/17px var(--font-sans); padding-left: 2px; }

/* ---------- Freezer Prep: spacing ---------- */
.app-hlprefs { gap: 8px 12px; margin-bottom: 10px; align-items: end; }
.app-hlprefs .bh-input { min-height: 32px; }
.app-hlsession { margin-top: 12px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); }
.app-hlsession > .bh-eyebrow { margin: 0 0 6px; color: var(--primary); }
.app-hlprep { margin: 0; padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); }
.app-hlprep > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; cursor: pointer; }
.app-hlprep > summary strong { font-weight: 700; }
.app-hlprepn { font: 500 12.5px/18px var(--font-sans); color: var(--accent); }
.app-hlprepfor { flex-basis: 100%; }
.app-hlprepadd .app-linkbtn { margin-left: 6px; font-size: 12px; }

/* My Tabs: one round swatch (the picker holds the hex code) and a round reset arrow */
.app-taborder-btns .app-catpick { width: 22px; height: 22px; padding: 0; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.app-taborder-btns .app-catpick::-webkit-color-swatch-wrapper { padding: 0; }
.app-taborder-btns .app-catpick::-webkit-color-swatch { border: 0; border-radius: 50%; }
.app-resetbtn { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); background: none; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.app-resetbtn:disabled { opacity: 0.3; cursor: default; }
.app-tabico-pick { flex: none; width: 16px; height: 16px; color: var(--ink); }
.app-iconpick { width: 92px; min-height: 28px; height: 28px; font-size: 12px; padding: 0 4px; text-transform: capitalize; }

/* ---------- Workouts: thin, rounded, light dialogs; dropdown list; condensed plan; theme timer colors ---------- */
.app-hlwdlg .bh-input { min-height: 30px; padding: 3px 9px; border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent); border-radius: 8px; background: var(--surface-raised, #fff); color: var(--ink); font-size: 13.5px; box-shadow: none; }
.app-hlwdlg .bh-input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent); }
.app-hlwdlg select.bh-input { padding-right: 24px; }
.app-hlwdlg .bh-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--accent); }
.app-hlunits--sm { gap: 6px; }
.app-hlunits--sm .app-hlunit, .app-hlwdlg .app-hlunit { padding: 3px 10px; font-size: 11.5px; line-height: 18px; font-weight: 600; }
.app-hlunit { background: transparent; border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent); color: var(--primary); }
.app-hlunit.is-on { background: var(--primary); color: var(--on-primary, #fff); border-color: var(--primary); }
.app-hlexpick { position: relative; display: block; width: 100%; }
.app-hlexpick > .bh-input { width: 100%; padding-right: 26px; }
.app-hlexbtn { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 24px; border: 0; background: none; color: var(--primary); cursor: pointer; font-size: 12px; }
.app-hlexlist { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 2px); margin: 0; padding: 3px; list-style: none; max-height: 210px; overflow-y: auto; background: var(--surface-raised, #fff); border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent); border-radius: 8px; box-shadow: 0 6px 18px rgba(20, 40, 60, 0.14); }
.app-hlexlist button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 6px; font: 500 13.5px/18px var(--font-sans); color: var(--ink); cursor: pointer; }
.app-hlexlist button:hover { background: var(--accent-tint, color-mix(in srgb, var(--accent) 12%, transparent)); }
.app-hlgrow2 { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); }
.app-hlgrow2 > .app-hlexpick { flex: 1 1 130px; min-width: 0; }
.app-hlgrow2 .app-hlgin, .app-hlallrow .app-hlgin { width: 52px; flex: none; text-align: center; padding: 3px 4px; }
.app-hlallrow { display: flex; align-items: center; gap: 6px; padding: 2px 0 6px; }
.app-hlwk > .bh-input { flex: 1 1 110px; min-width: 0; }
.app-hlwk .app-hlserv { width: 62px; display: flex; flex-direction: column; gap: 1px; }
.app-hlwklab { font: 700 11px/14px var(--font-sans); letter-spacing: 0.04em; color: var(--ink-muted); }
.app-hlwklab.app-hlact { color: var(--accent); }
.app-hlwklab.app-hlrst { color: var(--primary); }
.app-hlred { color: var(--accent); } .app-hlblue { color: var(--primary); }
.app-hldows { display: flex; gap: 4px; flex-wrap: wrap; padding: 2px 0 4px; }
.app-hldow { width: 30px; height: 26px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent); background: none; color: var(--primary); font: 600 11.5px/1 var(--font-sans); cursor: pointer; }
.app-hldow.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.app-hlinline { display: flex; align-items: center; gap: 6px; }
.app-hlchips { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 4px; }
.app-hlchip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px 1px 9px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font: 500 12px/20px var(--font-sans); color: var(--accent); }
.app-hlchip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; }
.app-hllogbtn.is-play { color: var(--accent); }
.app-hltfilter { min-height: 28px; padding: 2px 8px; font-size: 13px; margin-bottom: 4px; border-radius: 8px; }
.app-hltphead { list-style: none; font: 700 11px/16px var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); padding: 6px 0 1px; }
/* condensed plan: a date, its workouts, a small plus, all on one line */
.app-hlivsec { padding: 0; }
.app-hlivhead { padding: 3px 0; font-size: 12.5px; }
.app-hlwilist { gap: 0; padding-left: 4px; }
.app-hlwiday { display: flex; align-items: center; gap: 8px; padding: 1px 0; border-bottom: 1px solid color-mix(in srgb, var(--primary) 12%, transparent); }
.app-hlwidate { flex: none; width: 74px; font: 600 12px/18px var(--font-sans); color: var(--ink-muted); }
.app-hlwiday.is-today .app-hlwidate { color: var(--accent); }
.app-hlwisub { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.app-hlwiadd { flex: none; width: 18px; height: 18px; font-size: 12px; opacity: 0.7; }
.app-hlwirow { padding: 0; font-size: 13px; }
.app-hlwirow .app-hlcheck, .app-hlwirow input[type=checkbox], .app-hlrunbar input[type=checkbox] { accent-color: var(--accent); }
/* running screen: theme colors, controls kept on screen */
.app-hlrun { --ring: var(--primary); background: color-mix(in srgb, var(--primary) 9%, #fff); padding-bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 4000; }
.app-hlrun.is-active { background: color-mix(in srgb, var(--accent) 13%, #fff); --ring: var(--accent); }
.app-hlrun.is-rest { background: color-mix(in srgb, var(--primary) 11%, #fff); --ring: var(--primary); }
.app-hlrun.is-done { background: color-mix(in srgb, var(--accent) 9%, #fff); --ring: var(--accent); }
.app-hlrunbtn { padding: 8px 14px; font-size: 14px; min-width: 40px; }
.app-hlrunbtn.is-big { padding: 9px 24px; font-size: 15px; }
.app-hlrunbtn.is-stop { background: var(--headline, #1f2933); }
.app-hlruncontrols { padding-top: 8px; padding-bottom: 8px; }
.app-hlmi--edit { color: var(--primary); }
.app-hlmi--play { color: var(--accent); }

/* Focus for adults + Quiet screen */
.app-focusfs { position: fixed; inset: 0; z-index: 60; background: var(--surface); display: flex; flex-direction: column; padding: 14px 18px; overflow: auto; }
.app-focusbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-focuslabel { font: 700 15px/1 var(--font-sans); color: var(--headline); }
.app-focusbaracts { display: flex; align-items: center; gap: 10px; }
.app-focusnote { margin: 2px 0 0; text-align: center; }
.app-ficon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--primary); font: 400 18px/1 var(--font-sans); cursor: pointer; }
.app-ficon .app-nmico { margin-right: 0; vertical-align: 0; } /* a round icon-only button: no label follows, so drop the label-spacing margin that was pushing the icon off-center */
.app-ficon[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.app-ficon .app-ico { width: 15px; height: 15px; }
.app-homedinner-edit { margin-top: 10px; text-decoration: none; }
.app-focusbody { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; max-width: 520px; width: 100%; margin: 0 auto; }
.app-focuscard { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.app-focustitle { margin: 0; font: 600 26px/1.25 var(--font-sans); color: var(--headline); }
.app-focusacts { display: flex; align-items: center; gap: 16px; }
.app-forder { display: flex; flex-direction: column; gap: 0; }
.app-forow { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); font: 400 13px/1.2 var(--font-sans); color: var(--ink); }

/* Supplements: category headings in the accent color, supplements indented under them */
.app-hlsuppfold { color: var(--accent); font-weight: 700; }
.app-hlsuppgroup .app-hlfoods { margin-left: 18px; padding-left: 10px; border-left: 1px solid var(--border); }
/* Recipe image: small, to the right of the title */
.app-hlvhead.has-img { position: relative; padding-right: 76px; min-height: 64px; }
.app-hlvimg { position: absolute; top: 0; right: 0; width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

/* Colors are always circles */
input[type="color"] { -webkit-appearance: none; appearance: none; width: 24px !important; height: 24px !important; min-height: 0; padding: 0 !important; border-radius: 50% !important; border: 1px solid var(--border-strong); background: none; cursor: pointer; overflow: hidden; flex: 0 0 auto; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0 !important; border-radius: 50%; }
input[type="color"]::-webkit-color-swatch { border: 0 !important; border-radius: 50% !important; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }
.app-foldico { flex: 0 0 auto; }
.app-ficon.is-danger { background: var(--accent-tint); border-color: var(--primary); color: var(--primary); }
.app-ficon--note { width: 22px; height: 22px; font-size: 14px; border-color: transparent; background: transparent; color: var(--ink-muted); cursor: default; }
/* The description/brand part of a food's name on a pill button - de-emphasized so it reads as a distinct, lesser
   piece next to the plain, bold-free name rather than one shouted, all-caps string. */
.app-foodtitle-sub { text-transform: none; font-style: italic; font-weight: 400; color: var(--ink-muted); }
/* Against the solid blue of a selected pill, the muted gray is unreadable - use the pill's own (white) text color. */
.app-hlunit.is-on .app-foodtitle-sub { color: var(--on-primary, #fff); }
.app-ficon[disabled] { opacity: .45; cursor: default; }
.app-libactions .app-ficon input[type="file"] { display: none; }
.app-libactions { gap: 8px; }
.app-hlfoodbtn.has-box { display: grid !important; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.app-hlfoodbtn.has-box > input[type="checkbox"] { grid-row: 1 / span 3; grid-column: 1; margin: 0; }
.app-hlfoodbtn.has-box > span { grid-column: 2; }
.app-hlcheckgrp + .app-hlcheckgrp { margin-top: 16px; }
.app-hlcheckhead { margin: 0 0 4px; color: var(--accent); }
/* Inventory: left menu */
.app-hllibhead { align-items: center; }
.app-hlinv { display: flex; gap: 14px; align-items: flex-start; }
.app-hlinvside { display: flex; flex-direction: column; gap: 8px; flex: 0 0 120px; }
.app-hlinvnav { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--border); padding-right: 8px; }
.app-hlinvbtn { text-align: left; border: 0; border-left: 3px solid transparent; background: none; padding: 6px 8px; font: 500 13px/1.25 var(--font-sans); color: var(--ink); cursor: pointer; }
.app-hlinvbtn.is-on { border-left-color: var(--accent); color: var(--accent); font-weight: 700; background: var(--accent-tint); }
.app-hlinvmain { flex: 1; min-width: 0; }
@media (max-width: 560px) { .app-hlinv { flex-direction: column; } .app-hlinvside { flex: none; width: 100%; } .app-hlinvnav { flex-direction: row; flex-wrap: wrap; border-right: 0; padding-right: 0; } }
.app-hlfoodsbar { align-items: center; gap: 6px; }
.app-hlfoodsq { flex: 1; min-width: 0; }
.app-hlfoodsrow { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.app-hlfoodsrow .app-hlfoodbtn { flex: 1; text-align: left; }
.app-hlfoodsdupe { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.app-hlrotlist { list-style: none; margin: 0; padding: 0; }
.app-hlrotrow { display: flex; align-items: center; gap: 8px; border-left: 3px solid var(--accent); padding-left: 8px; border-bottom: 1px solid var(--border); }
.app-hlrotrow .app-hlfoodbtn { flex: 1; text-align: left; }
.app-hlrotlist .app-hlfoodname { font-weight: 400; }
/* Menu plans: clean and compact */
.app-hlplanday { border-left: 3px solid var(--accent); padding: 2px 0 2px 10px; margin-bottom: 6px; }
.app-hlplanday .app-hlmealrow strong { color: var(--accent); font-weight: 700; font-size: 14px; }
.app-hlspirow { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); padding: 3px 0; }
.app-hlspirow .app-hlfoodname { flex: 1; font-size: 13px; }
.app-hlspdays { align-items: center; gap: 8px; }
.app-hlsplink { gap: 6px; align-items: center; flex-wrap: wrap; }
.app-hlsplink .bh-input { flex: 1 1 90px; min-width: 0; }
.app-hlmprow { display: flex; align-items: center; gap: 8px; border-left: 3px solid var(--accent); padding-left: 8px; }
.app-hlmprow .app-hlfoodname { flex: 1; }
/* Check-In: cards pack upward in columns, no empty gaps */
.app-fpanel > .app-stack.app-hlmason { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px; align-items: start; }
.app-hlmcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.app-hlmcol > * { margin: 0; }
/* Supplements card */
.app-hlschecks { list-style: none; margin: 0; padding: 0; }
.app-hlsrow { display: flex; align-items: center; gap: 8px; padding: 3px 0 3px 8px; border-left: 3px solid var(--accent); border-bottom: 1px solid var(--border); margin-bottom: 2px; }
.app-hlsrow input[type="checkbox"] { flex: none; }
.app-hlsthumb { flex: none; width: 34px; height: 34px; border-radius: 6px; overflow: hidden; background: var(--bg-soft, transparent); }
.app-hlsthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-hlsmain { display: flex; flex-direction: column; min-width: 0; }
.app-hlsname { font-size: 13px; font-weight: 600; color: var(--headline); }
.app-hlstoggles { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.app-funnel { position: relative; flex: none; }
.app-funnel .app-fundot { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.app-libsechead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-libsechead .app-libsec { margin: 0; }
/* Home agenda: the colour dots sit indented under the day heading */
.app-agenda-day .app-event { padding-left: 14px; }
/* My Tabs: round fold icon, list on the left, theme checkboxes */
.app-taborder-row { justify-content: flex-start; }
.app-taborder-row .app-taborder-name { flex: 1 1 auto; justify-content: flex-start; text-align: left; }
.app-taborder-row .app-taborder-btns { margin-left: auto; }
.app-tabfoldgap { flex: none; width: 30px; height: 30px; }
.app-taborder-row .app-foldico { flex: none; }
.app-taborder-sub { padding-left: 38px; }
.app-taborder-name input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }

/* Fields: a clicked field gets a thin teal border and a faint glow, never the heavy dark ring (sitewide). */
.bh-input:focus, .bh-input:focus-visible, .bh-input:focus-within,
input.bh-input:focus-visible, select.bh-input:focus-visible, textarea.bh-input:focus-visible {
  outline: 0; outline-offset: 0; border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Meal Plan days: every day is the same rounded row with the teal bar; names line up; meals sit indented; a gap starts each week. */
.app-hlplanday, .app-hlplanday.is-prep, .app-hlplanday.is-today {
  border: 0; border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 4px 10px 6px 12px; margin: 0 0 5px;
  background: color-mix(in srgb, var(--primary) 3%, transparent);
}
.app-hlplanday.is-prep { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.app-hlplanday.is-today { background: var(--accent-tint, color-mix(in srgb, var(--accent) 10%, transparent)); }
.app-hlplanday.is-weekstart { margin-top: 16px; }
.app-hlplanday .app-hlmb { margin-left: 16px; }

/* Kid grocery requests: thin rows; a round ✓ to add and a round ⊖ to decline (parents); a short status word (kids). */
.app-greq { border-left: 3px solid var(--accent); border-radius: 10px; padding: 4px 10px 6px 12px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.app-greqhead { margin: 2px 0 2px; color: var(--accent); }
.app-greqlist { list-style: none; margin: 0; padding: 0; }
.app-greqrow { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid color-mix(in srgb, var(--primary) 12%, transparent); }
.app-greqrow:last-child { border-bottom: 0; }
.app-greqrow.is-busy { opacity: .55; }
.app-greqname { flex: 1; min-width: 0; font-size: 14px; color: var(--headline, var(--ink)); }
.app-greqamt { color: var(--ink-muted); font-size: 13px; }
.app-greqwho { color: var(--ink-muted); font-size: 12px; white-space: nowrap; }
.app-greqbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; border: 1px solid var(--accent); color: var(--accent); }
.app-greqbtn.is-no { border-color: color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary); }
.app-greqbtn:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.app-greqbtn:disabled { cursor: default; }
.app-greqstat { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.app-greqstat.is-added { color: var(--accent); }
.app-greqstat.is-declined { color: var(--primary); }
.app-greqtrigger { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); font: 600 14px/1 var(--font-sans); cursor: pointer; }
.app-greqtablewrap { overflow-x: auto; margin: 0 -4px; }
.app-greqtable { width: 100%; border-collapse: collapse; }
.app-greqtable th { text-align: left; padding: 4px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); border-bottom: 1px solid var(--border); }
.app-greqtable td { padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, var(--primary) 10%, transparent); vertical-align: middle; }
.app-greqtable tr.is-busy { opacity: .55; }
.app-greqitemin { width: 160px; min-height: 32px; }
.app-greqqtyin { width: 90px; min-height: 32px; }
.app-greqstorein { width: 140px; min-height: 32px; }
.app-greqtableactions { display: flex; gap: 6px; white-space: nowrap; }
.app-trashlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.app-trashrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px; border-bottom: 1px solid color-mix(in srgb, var(--primary) 10%, transparent); }
.app-trashinfo { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.app-trashsum { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-kidgroc { max-width: 560px; }
.app-kidgrocadd { display: flex; align-items: center; gap: 8px; }
.app-kidgrocadd .bh-input { min-height: 36px; border-width: 1px; border-radius: 999px; padding: 0 14px; font-size: 15px; }
.app-kidgrocadd .bh-input:first-child { flex: 1 1 auto; min-width: 0; }
.app-kidgrocqty { flex: 0 0 56px; width: 56px; min-width: 56px; padding: 0 6px !important; text-align: center; }
.app-todolist { list-style: none; margin: 0; padding: 0; }
.app-todorow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.app-todorow:last-child { border-bottom: 0; }
.app-todocheck { display: flex; align-items: center; gap: 10px; flex: 1; font-size: 15px; cursor: pointer; }
.app-todocheck input { width: 18px; height: 18px; flex: none; }
.app-todocheck .is-done { color: var(--ink-muted); text-decoration: line-through; }
.app-kidgrocflash { color: var(--accent); }
.app-kidtabs .app-hltabsrow { margin-top: 4px; }

/* Recipes page: + menu and the Recipes / Mix + Match / Plates pills on one line; pills in food search */
.app-hlrecbtns { align-items: center; flex-wrap: wrap; gap: 8px; }
.app-hlrkinds { margin: 2px 0 4px; }
.app-mpspan { margin-left: auto; }
.app-vitem.is-on { color: var(--accent); font-weight: 700; }

/* Today: Daily Remaining under the arch is the number she looks at most - make it the biggest thing on the card. */
.app-hlgnum strong { font-size: 60px; font-weight: 800; }
.app-hlgnum span { font-size: 13px; font-weight: 700; }
/* On a phone, the gauge's own column (the middle third of a 1fr/2.2fr/1fr row) is narrow enough that the full-size
   number's top edge runs into the arch above it - scale it back down so it fits inside the arch again. */
@media (max-width: 480px) {
  .app-hlgnum { bottom: 6px; }
  .app-hlgnum strong { font-size: 34px; }
  .app-hlgnum span { font-size: 10px; }
}

/* Vehicles */
.app-formsub { margin: 10px 0 0; font: 700 14px/20px var(--font-sans); color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.app-vehphoto { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.app-vehphoto img { max-width: 260px; max-height: 180px; border-radius: 10px; border: 1px solid var(--border); object-fit: cover; }
.app-filebtn { display: inline-block; cursor: pointer; width: fit-content; }
.bh-strip--warn { background: #fbe9d0; color: #8a5a10; }
.app-hlwarnico { display: inline-block; margin-left: 6px; font-size: 13px; line-height: 1; color: #8a5a10; cursor: default; }
.app-meal-editico { width: 22px; height: 22px; border: 0; background: transparent; color: var(--ink-muted); vertical-align: middle; }
.app-meal-editico .app-nmico { width: 13px; height: 13px; }

/* Home calendar, refined list: one fixed dot slot, muted aligned times, regular titles, faded past, a Now line. */
.app-homecal .bh-card-head { background: var(--accent-tint); }
.app-homecal .bh-card-head h3 { color: var(--on-accent-soft); }
:root[data-theme="dark"] .app-homecal .bh-card-head { background: var(--accent-tint); }
:root[data-theme="dark"] .app-homecal .bh-card-head h3 { color: var(--on-accent-soft); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-homecal .bh-card-head { background: var(--accent-tint); }
  :root:not([data-theme="light"]) .app-homecal .bh-card-head h3 { color: var(--on-accent-soft); }
}
.app-homecal .app-event { align-items: center; gap: var(--space-3); padding: 9px 0; border-top: 1px solid var(--border); }
.app-homecal .app-event:first-of-type { border-top: 0; }
.app-homecal .app-agenda-day .app-event { padding-left: 4px; }
.app-evslot { flex: 0 0 14px; width: 14px; display: inline-flex; align-items: center; justify-content: center; }
.app-evdot2 { display: block; width: 9px; height: 9px; border-radius: 50%; }
.app-homecal .app-event .app-event-time { flex: 0 0 72px; font: 400 13px/20px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.app-homecal .app-event .app-event-title { font-weight: 400; }
.app-homecal .app-event.is-past .app-event-title, .app-homecal .app-event.is-past .app-event-time { color: var(--ink-muted); opacity: .7; }
.app-homecal .app-event.is-past .app-evdot2 { filter: grayscale(1); opacity: .45; }
.app-nowline { display: flex; align-items: center; gap: var(--space-3); height: 18px; margin: 2px 0; padding-left: 4px; }
.app-nowline::before { content: ''; flex: 0 0 14px; height: 2px; background: var(--primary); }
.app-nowline::after { content: ''; flex: 1; height: 2px; background: var(--primary); }
.app-nowline + .app-event { border-top: 0; }
.app-nowline span { order: 0; font: 400 11px/16px var(--font-sans); letter-spacing: .04em; color: var(--primary); }
.app-calbar { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.app-caldate { position: relative; overflow: hidden; cursor: pointer; }
.app-caldate input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.app-calstep { align-self: flex-start; }
.app-mmore { font-weight: 400; color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.app-mcell:hover .app-mmore { text-decoration-thickness: 2px; }

/* ---------- Today's Schedule ---------- */
.app-homegrid--sched { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .app-homegrid.app-homegrid--sched { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.app-homesched .bh-card-head { background: var(--primary-tint); }
.app-homesched .bh-card-head h3 { color: var(--on-primary-soft); }
.app-dp-aside { display: inline-flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }
.app-dp-wrap { padding: 8px 2px 8px 0; }
.app-dp-grid { position: relative; margin-left: 56px; }
.app-dp-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--border); }
.app-dp-line.is-hour { border-top-style: solid; }
.app-dp-hourlabel { position: absolute; left: -56px; width: 48px; top: -8px; text-align: right; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.app-dp-nowhour { position: absolute; left: -4px; right: -2px; border: 1.5px solid var(--primary); border-radius: 8px; background: var(--primary-tint); opacity: .75; pointer-events: none; }
.app-dp-nowline { position: absolute; left: -6px; right: 0; height: 0; border-top: 2px solid var(--primary); pointer-events: none; z-index: 3; }
.app-dp-nowline::before { content: ''; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.app-dp-area { position: absolute; inset: 0; cursor: copy; }
.app-dp-block { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; gap: 1px; overflow: hidden; padding: 4px 8px 6px 9px; border-radius: 6px; border-left: 4px solid var(--dp); background: color-mix(in srgb, var(--dp) 16%, var(--surface)); color: var(--ink); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; z-index: 2; }
.app-dp-block:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.app-dp-block.is-dragging { cursor: grabbing; z-index: 4; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); opacity: .95; }
.app-dp-block.is-info { border-left-width: 2px; border-style: dashed; border-color: var(--dp); background: color-mix(in srgb, var(--dp) 7%, var(--surface)); opacity: .9; }
.app-dp-block.is-short { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.app-dp-title { font: 400 13px/17px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.app-dp-time { font: 400 11px/14px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.app-dp-block.is-short .app-dp-time { flex: none; }
.app-dp-note { font: 400 11px/14px var(--font-sans); color: var(--ink-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.app-dp-infoico { width: 13px; height: 13px; flex: none; }
.app-dp-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; cursor: ns-resize; touch-action: none; }
.app-dp-resize::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 22px; margin-left: -11px; height: 2px; border-radius: 2px; background: var(--dp); opacity: .5; }
.app-dp-empty { margin: var(--space-2) 0 0; }
.app-dp-notes { min-height: 72px; resize: vertical; font: inherit; }
.app-dp-cats { display: flex; flex-direction: column; gap: var(--space-2); }
.app-dp-cat { display: flex; flex-direction: column; gap: 6px; }
.app-dp-catrow { display: flex; align-items: center; gap: var(--space-2); }
.app-dp-catrow .bh-input { flex: 1; min-width: 0; }
.app-dp-swatch { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; padding: 0; }
.app-dp-pastbar { display: flex; align-items: center; gap: 8px; width: 100%; margin: 4px 0 2px; padding: 6px 10px; border: 1px dashed var(--border-strong); border-radius: 8px; background: var(--surface-sunken); color: var(--ink-muted); font: 400 12px/16px var(--font-sans); cursor: pointer; text-align: left; }
.app-dp-pastbar:hover { color: var(--ink); border-color: var(--primary); }
.app-callist-search { display: flex; gap: var(--space-2); align-items: center; }
.app-callist-search .bh-input { flex: 1; min-width: 0; }
.app-calchips { gap: 6px; }
.app-agenda-day.is-before .bh-eyebrow { color: var(--ink-muted); }

/* Lindsie's paint colors (Valspar): Warm Eucalyptus 8004-28F and Cottage Door 8004-38E, for highlights. */
:root { --eucalyptus: #7C7F70; --eucalyptus-tint: #E8EBE0; --eucalyptus-ink: #4E5245; --cottage: #7A8F97; --cottage-tint: #E2EAED; --cottage-ink: #3F535B; }
:root[data-theme="dark"] { --eucalyptus: #A7AB98; --eucalyptus-tint: #30342B; --eucalyptus-ink: #CDD1C0; --cottage: #A0B4BC; --cottage-tint: #26333A; --cottage-ink: #C7D6DC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --eucalyptus: #A7AB98; --eucalyptus-tint: #30342B; --eucalyptus-ink: #CDD1C0; --cottage: #A0B4BC; --cottage-tint: #26333A; --cottage-ink: #C7D6DC; } }
/* Birthdays & anniversaries banner: the same soft tone as Announcements, in blue. */
:root { --celebrate-bg: #DCEBF5; }
:root[data-theme="dark"] { --celebrate-bg: #1E3442; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --celebrate-bg: #1E3442; } }
.app-celebrate, .app-celebrate.app-celebrate { background: var(--celebrate-bg); border: 0; color: var(--on-primary-soft); }
.app-celebrate .bh-eyebrow, .app-celebrate .app-celebrate-when { color: inherit; }
.app-celebrate li.is-today { background: color-mix(in srgb, var(--primary) 14%, transparent); border-radius: 6px; padding: 0 6px; margin-left: -6px; }
.app-celebrate li.is-today .app-celebrate-when { color: var(--primary); }
/* Calendar toolbar: view buttons on wide screens; on a phone a compact drop-down, the date icon and ‹ Today › on one line. */
.app-calviewsel { display: none; width: auto; min-width: 0; height: 36px; padding: 0 30px 0 12px; border-radius: 999px; font: 400 14px/1 var(--font-sans); }
.app-calbar .app-calstep { margin-left: auto; }
@media (max-width: 640px) {
  .app-calbar { flex-wrap: nowrap; gap: 6px; }
  .app-calbar .app-calviews { display: none; }
  .app-calviewsel { display: inline-block; flex: 0 1 auto; }
  .app-calbar .app-calstep { flex: none; gap: 4px; }
  .app-calbar .app-calstep .app-navlabel { padding: 0 10px; }
}

/* Slim sticky header (once scrolled): the name/buttons row tucks away, the menu is one sideways-scrolling row,
   and each page's own title row (with its arrows and gear) sticks just below it. */
.app-stickyhead.is-slim .app-header-inner { display: none; }
.app-stickyhead.is-slim .app-header { border-bottom: 0; }
.app-stickyhead.is-slim .app-tabsfold { display: none; }
.app-stickyhead.is-slim .app-tabs-wrap.is-folded .app-tabs { display: block; }
.app-stickyhead.is-slim .app-tabs { padding-top: 6px; padding-bottom: 6px; }
.app-stickyhead.is-slim .app-tabs > * { flex-wrap: nowrap !important; }
.app-stickyhead.is-slim .app-tabs-wrap { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.app-main *:has(> .bh-heading):not(:has(.bh-card)):not(:has(.app-main)) { position: sticky; top: var(--headh, 0px); z-index: 15; background: var(--surface); transition: padding .15s; }
html.is-slimhead .app-main *:has(> .bh-heading):not(:has(.bh-card)) { padding-top: 6px; padding-bottom: 6px; box-shadow: 0 6px 8px -8px rgba(0, 0, 0, .25); }
html.is-slimhead .app-main .bh-heading { font-size: 22px; line-height: 28px; }
.app-stickyhead.is-slim .bh-tab { min-height: 32px; padding-top: 2px; padding-bottom: 2px; font-size: 14px; }
.app-dp-rep { flex: none; font-size: 11px; color: var(--ink-muted); }
/* Schedule: suggestions tray and link icons */
.app-dp-sug { margin: 0 0 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-sunken); padding: 4px 8px 6px; }
.app-dp-sughead { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 0; border: 0; background: none; color: var(--ink); font: 400 14px/20px var(--font-sans); cursor: pointer; text-align: left; }
.app-dp-suglist { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.app-dp-sugrow { display: flex; align-items: center; gap: 8px; padding: 4px 2px; border-top: 1px solid var(--border); }
.app-dp-sugrow:first-child { border-top: 0; }
.app-dp-sugrow.is-dismissed { opacity: .6; }
.app-dp-sugico { flex: none; display: inline-flex; color: var(--ink-muted); }
.app-dp-sugico svg { width: 16px; height: 16px; }
.app-dp-sugtext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-dp-sugtitle { font: 400 13px/18px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-dp-sugsub { font: 400 11px/14px var(--font-sans); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-dp-sugbtns { flex: none; display: inline-flex; gap: 6px; align-items: center; }
.app-dp-dismiss { font-size: 16px; line-height: 1; }
.app-dp-showdis { margin-top: 4px; }
.app-dp-linkpick { display: flex; gap: 8px; flex-wrap: wrap; }
.app-dp-linkbtn.is-on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.app-dp-links { display: flex; gap: 4px; margin-top: auto; }
.app-dp-link { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 1px solid color-mix(in srgb, var(--dp) 40%, transparent); border-radius: 6px; background: var(--surface); color: var(--ink-muted); cursor: pointer; }
.app-dp-link svg { width: 13px; height: 13px; }
.app-dp-link:hover { color: var(--primary); border-color: var(--primary); }
/* Calendar filter: one icon, a drop-down of checkboxes (none checked = every calendar) */
.app-calfilter { position: relative; }
.app-calfilter .app-ficon { position: relative; }
.app-calfilter .app-ficon.is-on { color: var(--primary); border-color: var(--primary); }
.app-calfilter-n { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font: 400 10px/16px var(--font-sans); text-align: center; }
.app-calfilter-menu { min-width: 230px; max-height: 60vh; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.app-calfilter-row { display: flex; align-items: center; gap: 8px; padding: 5px 2px; font: 400 14px/18px var(--font-sans); cursor: pointer; }
.app-calfilter-row .app-evdot2 { flex: none; }
.app-calresults-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
/* Calendar Week grid */
.app-wk { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.app-wk-in { min-width: 640px; }
.app-wk-row { display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); }
.app-wk-head { position: sticky; top: 0; z-index: 2; background: var(--surface-raised); }
.app-wk-day { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 0 6px; border: 0; background: none; color: var(--ink-muted); font: 400 11px/14px var(--font-sans); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.app-wk-day strong { font: 400 20px/26px var(--font-sans); color: var(--ink); letter-spacing: 0; }
.app-wk-day.is-today { color: var(--primary); }
.app-wk-day.is-today strong { color: var(--on-primary); background: var(--primary); border-radius: 50%; width: 30px; height: 30px; line-height: 30px; }
.app-wk-allday { border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.app-wk-gut { font: 400 10px/14px var(--font-sans); color: var(--ink-muted); text-align: right; padding-right: 6px; }
.app-wk-cell { display: flex; flex-direction: column; gap: 2px; padding: 0 1px; min-width: 0; }
.app-wk-chip { display: block; padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--dp) 22%, var(--surface)); border-left: 3px solid var(--dp); font: 400 11px/16px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-wk-body { position: relative; margin-top: 6px; }
.app-wk-hours { position: relative; }
.app-wk-hours span { position: absolute; right: 6px; transform: translateY(-50%); white-space: nowrap; }
.app-wk-col { position: relative; border-left: 1px solid var(--border); }
.app-wk-col.is-today { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.app-wk-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); }
.app-wk-ev { position: absolute; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; padding: 2px 5px; border-radius: 5px; border-left: 3px solid var(--dp); background: color-mix(in srgb, var(--dp) 20%, var(--surface)); z-index: 1; }
.app-wk-ev.is-past { opacity: .55; }
.app-wk-evt { font: 400 11px/14px var(--font-sans); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.app-wk-evtime { font: 400 10px/13px var(--font-sans); color: var(--ink-muted); }
.app-wk-now { position: absolute; left: -1px; right: 0; border-top: 2px solid var(--primary); z-index: 2; }
.app-wk-now::before { content: ''; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.app-homecal .app-homecal-body:has(.app-wk) { max-height: none; }

/* ---------- Wish Lists ---------- */
.app-wl-pick { gap: 6px; }
.app-wl-lock { font-size: 11px; }
.app-wl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.app-wl-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); }
.app-wl-item.is-dragging { opacity: .5; }
.app-wl-item.is-dropat { box-shadow: 0 -3px 0 var(--primary); }
.app-wl-item.is-bought { background: color-mix(in srgb, var(--eucalyptus, #7C7F70) 10%, var(--surface-raised)); }
.app-wl-rank { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-tint); color: var(--on-primary-soft); font: 400 12px/22px var(--font-sans); text-align: center; }
.app-wl-thumb { flex: none; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--surface-sunken); }
.app-wl-thumb--none { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.app-wl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-wl-title { font: 400 15px/20px var(--font-sans); overflow-wrap: anywhere; }
.app-wl-title a { color: var(--primary); text-decoration: none; }
.app-wl-title a:hover { text-decoration: underline; }
.app-wl-tag { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--cottage-tint, #E2EAED); color: var(--cottage-ink, #3F535B); font: 400 11px/16px var(--font-sans); vertical-align: 1px; }
.app-wl-meta, .app-wl-notes { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.app-wl-gift { font: 400 12px/16px var(--font-sans); color: var(--primary); }
.app-wl-acts { flex: none; display: inline-flex; gap: 6px; align-items: center; }
.app-wl-acts .app-ficon.is-on { color: var(--primary); border-color: var(--primary); }
.app-wl-received { margin-top: 6px; }
.app-wl-pic { display: flex; gap: 12px; align-items: center; }
.app-wl-picimg, .app-wl-picnone { flex: none; width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: var(--surface-sunken); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.app-wl-upload { position: relative; overflow: hidden; cursor: pointer; }
.app-wl-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* Buttons stay in view at the bottom of these pop-ups */
.app-dialog-body .app-dlgfoot { position: sticky; bottom: -14px; z-index: 3; margin: 4px -14px -14px; padding: 10px 14px 12px; background: var(--surface-raised); border-top: 1px solid var(--border); }
/* Selected link icons turn white */
.app-dp-linkbtn.is-on .app-cardico { color: currentColor; }
/* Suggestions: one compact line, the dismissed eye on the right */
.app-dp-sug { padding: 2px 8px; }
.app-dp-sugbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-dp-sugbar .app-dp-sughead { width: auto; flex: 1; }
.app-dp-disbtn { width: 28px; height: 28px; min-height: 28px; }
.app-dp-disbtn .app-cardico { width: 15px; height: 15px; }
.app-dp-disbtn.is-on { color: var(--primary); border-color: var(--primary); }
.app-dp-disbtn.is-on .app-cardico { color: currentColor; }
.app-wl-receipt { flex-wrap: wrap; gap: 8px; align-items: center; } .app-wl-receipt .bh-input { flex: 1; min-width: 160px; }
.app-wl-rename { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); }
.app-wl-mark { width: 30px; height: 30px; min-height: 30px; }
.app-wl-mark .app-cardico { width: 15px; height: 15px; }
.app-wl-mark.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.app-wl-mark.is-on .app-cardico { color: currentColor; }
.app-wl-totals { margin: 0; font: 400 12px/16px var(--font-sans); color: var(--primary); }
.app-wl-ttable { width: 100%; border-collapse: collapse; font: 400 14px/20px var(--font-sans); }
.app-wl-ttable th, .app-wl-ttable td { padding: 6px 4px; border-bottom: 1px solid var(--border); text-align: right; font-weight: 400; }
.app-wl-ttable th:first-child, .app-wl-ttable td:first-child { text-align: left; }
.app-wl-ttable thead th { color: var(--ink-muted); font-size: 12px; }
.app-wl-ttable tfoot th { border-bottom: 0; color: var(--ink); }
@media (max-width: 520px) { .app-wl-item { flex-wrap: wrap; } .app-wl-acts { width: 100%; justify-content: flex-end; } }
/* Lit-up icon buttons: white icon on the blue (beats the older blue-outline rules) */
.app-wl-acts .app-ficon.app-wl-mark.is-on, .app-dp-linkpick .app-ficon.app-dp-linkbtn.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.app-wl-acts .app-ficon.app-wl-mark.is-on svg, .app-wl-acts .app-ficon.app-wl-mark.is-on .app-cardico,
.app-dp-linkpick .app-ficon.app-dp-linkbtn.is-on svg, .app-dp-linkpick .app-ficon.app-dp-linkbtn.is-on .app-cardico { color: #fff; stroke: #fff; }
/* The calendar's toolbar follows the card's own width (it can be narrow beside the Schedule on a wide screen). */
.app-homecal { container-type: inline-size; container-name: homecal; }
@container homecal (max-width: 720px) {
  .app-calbar { flex-wrap: nowrap; gap: 6px; }
  .app-calbar .app-calviews { display: none; }
  .app-calviewsel { display: inline-block; flex: 0 1 auto; }
  .app-calbar .app-calstep { flex: none; gap: 4px; }
  .app-calbar .app-calstep .app-navlabel { padding: 0 10px; }
}
/* Calendar filter list opens to the right of its icon and stays on screen */
.app-calfilter .app-calfilter-menu { left: 0; right: auto; width: max-content; max-width: min(300px, calc(100vw - 32px)); }
.app-calfilter-row { align-items: flex-start; }
.app-calfilter-row input { margin-top: 2px; flex: none; }
.app-calfilter-row .app-evdot2 { margin-top: 5px; }
.app-calfilter-menu > .app-small { margin: 0 0 4px; }
/* Let the calendar's filter list spill past the card's edge instead of being cut off; keep the header's round corners. */
.bh-card.app-homecal { overflow: visible; }
.app-homecal > .bh-card-head { border-top-left-radius: inherit; border-top-right-radius: inherit; }
/* A smaller, lighter filter list */
.app-calfilter .app-calfilter-menu { max-width: min(240px, calc(100vw - 32px)); max-height: 50vh; padding: 4px 6px; gap: 0; z-index: 60; }
.app-calfilter-row { gap: 6px; padding: 3px 2px; font: 400 12px/16px var(--font-sans); }
.app-calfilter-row input { width: 14px; height: 14px; margin-top: 1px; }
.app-calfilter-row .app-evdot2 { width: 8px; height: 8px; margin-top: 4px; }
/* Home Menu card: every meal label (Breakfast, Lunch...) in the standard brand blue */
.app-homedinner .app-meal-othermeal, .app-homedinner .app-meal-othermeal--lunch { color: var(--primary); }
.app-dp-sugbar .app-dp-disbtn + .app-dp-disbtn { margin-left: 4px; }
/* A block whose source changed (task finished, dinner swapped, event moved) */
.app-dp-stale { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: #fff; font: 400 12px/18px var(--font-sans); text-align: center; cursor: pointer; z-index: 1; }
/* Schedule settings: calendars as a compact drop-down checklist */
.app-dp-calsbtn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; }
.app-dp-calslist { margin-top: 4px; max-height: 240px; overflow-y: auto; padding: 4px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); }
/* Schedule header: the arrows, +, gear and fold arrow stay on one line in a narrow card */
.app-homesched { container-type: inline-size; container-name: homesched; }
.app-homesched .app-head-aside, .app-dp-aside { flex-wrap: nowrap; }
@container homesched (max-width: 560px) {
  .app-homesched .bh-card-head { padding-left: var(--space-3); padding-right: var(--space-3); gap: 6px; }
  .app-homesched .app-cardtitle { font-size: 16px; white-space: nowrap; }
  .app-dp-aside { gap: 4px; }
  .app-dp-aside .app-navbtn { width: 30px; height: 30px; min-height: 30px; }
  .app-dp-aside .app-navlabel { padding: 0 8px; font-size: 13px; }
  .app-dp-aside .app-plus, .app-dp-aside .app-ficon { width: 28px; height: 28px; min-height: 28px; }
}
@container homesched (max-width: 400px) { .app-homesched .app-cardtitle .app-cardico { display: none; } }
@container homesched (max-width: 560px) {
  .app-homesched .bh-card-head > :first-child { flex: 1 1 auto; min-width: 0; }
  .app-homesched .app-cardtitle { display: flex; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .app-homesched .bh-card-head > .app-head-aside { flex: none; }
}
.app-dp-cattoggle { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; }
.app-dp-catsort { align-self: flex-start; margin: 2px 0 6px; }
.app-dp-cat.is-dragging { opacity: .5; }
.app-dp-cat.is-dropat { box-shadow: 0 -2px 0 var(--primary); }
.app-tasknav { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.app-tasknav .app-navbtn { width: 30px; height: 30px; min-height: 30px; }
/* Block link icons (and the ! for a changed block): always top-right, in line with the title, on every block */
.app-dp-block .app-dp-links { position: absolute; top: 3px; right: 4px; margin: 0; display: flex; gap: 3px; z-index: 1; }
.app-dp-block .app-dp-link { width: 19px; height: 19px; border-radius: 5px; }
.app-dp-block .app-dp-link svg { width: 12px; height: 12px; }
.app-dp-block .app-dp-links .app-dp-stale { position: static; width: 19px; height: 19px; font-size: 11px; line-height: 19px; }
.app-dp-block.is-short .app-dp-links { top: 50%; transform: translateY(-50%); }
/* Dragging a suggestion onto the schedule */
.app-dp-sugrow.is-draggable { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.app-dp-droppreview { position: absolute; left: 2px; right: 2px; z-index: 5; box-sizing: border-box; border: 2px dashed var(--primary); border-radius: 6px; background: color-mix(in srgb, var(--primary) 10%, transparent); padding: 2px 8px; font: 400 11px/14px var(--font-sans); color: var(--primary); pointer-events: none; }
.app-dp-dragghost { position: fixed; z-index: 3000; max-width: 220px; padding: 4px 10px; border-radius: 8px; background: var(--primary); color: #fff; font: 400 12px/16px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); pointer-events: none; }
/* Announcements and Birthdays: the same light tones, less gray (more color) */
:root { --announce-bg: #CFF3DB; --celebrate-bg: #CFE6FA; }
:root[data-theme="dark"] { --announce-bg: #164A33; --celebrate-bg: #133F5E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --announce-bg: #164A33; --celebrate-bg: #133F5E; } }
/* Kids board (All and each kid): a little room between the top row (kid pills, week arrows) and the Chore Board box,
   and the day buttons' text lined up with the pills, the box and the points (the buttons carry 10px of padding). */
.app-board-page > .app-board-head:has(.app-kidtabs) { margin-bottom: 10px; }
.app-board-page > nav.bh-tabs { margin-left: -11px; }
/* ...and the same small gap under the day buttons on every kid tab (some tabs' first card sat right against them) */
.app-board-page > nav.bh-tabs + .app-stack:not(:has(> .app-foldbar:first-child)) { padding-top: 10px; }
/* Kids board: the task cards start where the pills, Chore Board box, points and days start (they sat 11px further out) */
.app-fpanel .app-board-page > .app-stack, .app-fpanel .app-board-page > .bh-card { margin-left: 12px; }
/* Kids settings: change several tasks at once */
input[type=checkbox].app-ktsel { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.app-ktbulk { position: sticky; top: calc(var(--headh, 0px) + 4px); z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0; padding: 8px 12px; border: 1px solid var(--primary); border-radius: 12px; background: var(--surface-raised); box-shadow: var(--shadow-sm); }
.app-ktbulkf { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.app-ktbulkf .bh-input { height: 32px; min-height: 32px; padding-top: 0; padding-bottom: 0; }
.app-ktsum > .app-linkbtn { margin-left: 12px; margin-right: auto; }
.app-ktbulkf > span:first-child { white-space: nowrap; }
.app-ktbulkf select.bh-input { width: auto; min-width: 110px; }
.app-tasknav { margin-right: 36px; } /* clear the task's … menu, which sits just left of the close button */
.app-navheadr { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.app-navsort { width: 26px; height: 26px; min-height: 26px; padding: 0; }
.app-navsort .app-cardico { width: 15px; height: 15px; }
.app-navheadr .app-vmenuwrap .app-vmenu { right: 0; left: auto; min-width: 0; width: max-content; }
/* Tasks: a project with no color picked shows white, with a thin outline so it reads on white */
.app-navdot, .app-tcat i { box-shadow: 0 0 0 1px var(--border-strong); }
/* Labels inside a task: each picked label with its own colored # */
.app-lbsel { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; }
.app-lbselone { white-space: nowrap; }
.app-lbhash { margin-right: 2px; color: var(--ink-muted); }

/* Statuses: colored label on task lines, and the settings rows */
.app-stchip { gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 0.8em; color: var(--st, var(--ink-muted)); background: color-mix(in srgb, var(--st, var(--ink-muted)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--st, var(--ink-muted)) 40%, transparent); }
.app-stsorthead { display: flex; justify-content: flex-end; }
.app-strow { flex-direction: column; align-items: stretch; gap: 6px; }
.app-strowmain { display: flex; align-items: center; gap: 6px; }
.app-strowmain .app-pri-name { flex: 1; min-width: 0; }

/* Tasks Focus timer, full screen like Health intervals */
.app-ftbig .app-hlrunmain { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.app-ftbig .app-hlrunring { width: min(80vw, 62vh, 420px); }
.app-ftbig .app-hlrunnum strong { font-size: clamp(64px, 14vw, 104px); }
.app-ftbig .app-hlrunname { font-weight: 400; max-width: 90vw; }
.app-ftbig.is-paused .app-hlring-fg { opacity: .45; }
.app-ftbig .app-ficon { color: #1f2933; }

/* Kids board header: the "see it as the kid" eye sits just left of the gear */
.app-board-headacts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.app-previewbtn.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
/* points line and the first focus step were touching */
.app-board-page > .app-balance + .app-focus, .app-board-page > .app-balance + * { margin-top: var(--space-3); }

/* Super Sweep: settings window, compact */
.app-sweepedit { display: flex; flex-direction: column; gap: 10px; }
.app-sweepmins { display: flex; align-items: center; gap: 10px; }
.app-sweepmins .bh-input { width: 80px; }
.app-sweeprows { display: flex; flex-direction: column; gap: 6px; }
.app-sweepedit .app-sweeprow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 6px; align-items: center; }
.app-sweepedit .app-sweeprow .bh-input { min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
@media (max-width: 520px) { .app-sweepedit .app-sweeprow { grid-template-columns: minmax(0, 1fr) auto; } .app-sweepedit .app-sweeprow > .bh-input:nth-child(2) { grid-column: 1; grid-row: 2; } .app-sweepedit .app-sweeprow > :last-child { grid-row: 1 / span 2; grid-column: 2; } }
.app-sweepeditacts { justify-content: flex-end; }
/* space between the heading, the Ready card and Last Sweep */
.app-fpanel > .app-stack.app-sweep > * + *, .app-stack.app-sweep > * + * { margin-top: 14px; }

/* Prayer window: buttons stay at the bottom while the window scrolls */
.app-dialog-body .app-dlgfoot { position: sticky; bottom: -14px; z-index: 2; background: var(--surface-raised, #fff); padding: 10px 14px 12px; margin: 8px -14px -14px; border-top: 1px solid var(--border); align-items: center; }
.app-fprayday { align-items: center; gap: 6px; }
.app-fprayday .app-ficon.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.app-fpastfu li { align-items: center; }
.app-fpcheck { color: var(--accent); font-weight: 700; margin-left: auto; }

/* Library entries: the select circle is a real button with room on its left */
.app-npickbtn { padding: 0; cursor: pointer; font: 700 12px/1 var(--font-sans); color: #fff; }
.app-libentrywrap > .app-npickbtn { margin-left: 12px; }
.app-libentrywrap.is-picked > .app-npickbtn, .app-libcardwrap.is-picked > .app-npickbtn, .app-libtilewrap.is-picked > .app-npickbtn { background: var(--accent); border-color: var(--accent); }
/* +/- under an image tile */
.app-libtilewrap > .app-libctl { padding: 4px 0 0; align-items: center; }
/* two-tap delete icon */
.app-sureico { display: inline-flex; align-items: center; gap: 4px; }
.app-sureico.is-sure .app-minus { background: #c0392b; color: #fff; border-color: #c0392b; }
/* Health inventories: the name, search, filter and pencil share one row with +, the fold and the gear */
.app-libbar--head { flex-wrap: wrap; }
.app-hllibheadl, .app-hllibheadr { display: inline-flex; align-items: center; gap: 6px; }
.app-libbar--head .app-ktsearch { flex: 0 1 220px; }
.app-libbar .app-spacer { flex: 1 1 0; }
@media (max-width: 600px) { .app-libbar--head .app-hllibheadl { flex: 1 0 100%; } }

/* Printer icon on a teal button: white, not gray */
.bh-btn--accent .app-nmico, .bh-btn--accent svg { color: #fff; stroke: #fff; }

/* ---------- Printouts, styled (recipe and meal plan) ---------- */
@media print {
  .app-recipeprint, .app-planprint { -webkit-print-color-adjust: exact; print-color-adjust: exact; --pp: #1f6f78; --pptint: #eef5f5; }
  /* titles: big, with a thin teal rule */
  .app-recipeprint .app-ppRec h2, .app-planprint > h2 { margin: 0 0 4px; padding: 0 0 6px; border-bottom: 2.5px solid var(--pp); font: 700 20pt/1.15 Georgia, 'Times New Roman', serif; color: #111; }
  .app-planprint > h2 small { display: block; margin-top: 3px; font: 400 10pt/1.2 var(--font-sans); color: #555; letter-spacing: .02em; }
  .app-planprint > h2.app-ppRecsh { margin-top: 18px; font-size: 15pt; break-after: avoid; }
  /* the little facts under a recipe name: soft pills */
  .app-ppMeta { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 10px; }
  .app-ppMeta span { padding: 1.5px 8px; border-radius: 999px; background: var(--pptint); color: #234; font-size: 8.5pt; }
  /* one recipe: ingredients in a tinted column beside the directions */
  .app-recipeprint .app-ppRec { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .app-recipeprint .app-ppRec > h2, .app-recipeprint .app-ppRec > .app-ppMeta, .app-recipeprint .app-ppRec > .app-ppFz, .app-recipeprint .app-ppRec > .app-ppNut { grid-column: 1 / -1; }
  .app-recipeprint .app-ppRec > .app-ppIng { grid-column: 1; }
  .app-recipeprint .app-ppRec > .app-ppDir { grid-column: 2; margin-top: 0; }
  .app-recipeprint .app-ppRec:not(:has(.app-ppIng)) > .app-ppDir, .app-recipeprint .app-ppRec:not(:has(.app-ppDir)) > .app-ppIng { grid-column: 1 / -1; }
  .app-ppIng { padding: 9px 11px; border-radius: 8px; background: var(--pptint); }
  .app-ppIng strong { color: var(--pp); text-transform: uppercase; }
  .app-ppIng li { position: relative; padding-left: 14px; }
  .app-ppIng li::before { content: ''; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border: 1px solid #567; border-radius: 2px; }
  .app-recipeprint .app-hlrich, .app-recipeprint .app-ppDir { font-size: 10pt; line-height: 1.5; }
  .app-ppFz, .app-ppNut { margin-top: 12px; padding: 8px 11px; border: 1px solid #c9d6d6; border-radius: 8px; border-top-style: solid; }
  .app-ppFzh { color: var(--pp); }
  /* meal plan: each day a soft box, the meal names in teal */
  .app-ppDays { column-count: 2; column-gap: 14px; margin: 10px 0 6px; }
  .app-ppDay { padding: 7px 10px 6px; border: 1px solid #c9d6d6; border-radius: 8px; margin-bottom: 9px; }
  .app-ppDay > strong { border-bottom: 0; margin-bottom: 4px; color: #111; font-size: 10.5pt; }
  .app-ppDay li { padding: 2.5px 0; border-top: 1px solid #edf1f1; }
  .app-ppDay li:first-child { border-top: 0; }
  .app-ppMeal { display: inline-block; min-width: 76px; color: var(--pp); font-weight: 700; }
  .app-ppRecs { border-top: 0; padding-top: 4px; }
  .app-ppRec h3 { margin: 0; padding-bottom: 3px; border-bottom: 1.5px solid var(--pp); font: 700 12.5pt/1.2 Georgia, 'Times New Roman', serif; }
}
@media print {
  .app-ppFz em { display: block; margin: 6px 0 1px; font-style: normal; font-weight: 700; font-size: 8pt; text-transform: uppercase; letter-spacing: .05em; color: #555; }
  .app-ppFz { column-count: 2; column-gap: 18px; }
  .app-ppFz > .app-ppFzh { column-span: all; }
  .app-ppFz > div { break-inside: avoid; }
}

/* Goals: a category label in its own color */
.app-gcatchip[style] { color: var(--st); background: color-mix(in srgb, var(--st) 14%, transparent); border-color: color-mix(in srgb, var(--st) 40%, transparent); }
/* Action Steps: the new step and its date stay on one line */
.app-glist + .app-fquick-row, .app-stack--tight > .app-fquick-row { flex-wrap: nowrap; }
.app-stack--tight > .app-fquick-row > .bh-input:first-child { flex: 1 1 auto; min-width: 0; }
.app-stack--tight > .app-fquick-row > .app-fquick-date { flex: 0 0 auto; width: 150px; }

/* Libraries page: search, sort, pencil on one row; picking libraries */
.app-libhomebar { flex-wrap: nowrap; align-items: center; }
.app-libhomebar .app-ktsearch { flex: 0 1 260px; min-width: 0; }
.app-libhomebar .app-spacer { flex: 1 1 0; }
button.app-libtilebtn { font: inherit; text-align: left; cursor: pointer; }
.app-libtilebtn.is-picking { position: relative; }
.app-libtilebtn.is-picking > .app-npick { flex: 0 0 auto; }
.app-libtilebtn.is-picked { outline: 2px solid var(--accent); outline-offset: -2px; }
.app-libtilebtn.is-picked > .app-npick { background: var(--accent); border-color: var(--accent); color: #fff; }
.app-libhits .app-hlvrow { display: flex; justify-content: space-between; gap: 10px; }
.app-libhits { margin: 0; }
.app-libhits .app-hleditlist { margin: 4px 0 0; padding: 0; list-style: none; }
.app-libhits .app-hlvrow { padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; align-items: baseline; }
.app-libhits .app-hlvrow:hover, .app-libhits .app-hlvrow:focus-visible { background: var(--surface-sunken, #f2f5f7); }
.app-libhits .app-hlvrow .app-small { color: var(--ink-muted); }
/* Nutrition (and Goals) lists while picking: circle, then the name on the left, then the details */
.is-picking > .app-hlfoodbtn { display: flex; align-items: center; gap: 10px; padding-left: 10px; text-align: left; }
.is-picking > .app-hlfoodbtn > .app-hlfoodname { flex: 1 1 auto; min-width: 0; text-align: left; }
.is-picking > .app-hlfoodbtn > .app-npick { flex: 0 0 auto; }
.is-picked > .app-hlfoodbtn > .app-npick { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Notes, Keep style ---------- */
/* web links in notes: teal, underlined */
.app-nurl, .app-nedit a.n-url, .app-nedit a[href] { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
/* the note's color fills the window; no boxes around the title or the words */
.app-dialog.app-notedlg.has-nbg, .app-dialog.app-notedlg.has-nbg .app-dialog-head { background: var(--nbg); }
.app-dialog.app-notedlg .app-dialog-body { padding-top: 0; }
.app-dialog.app-notedlg .app-nform { margin: 0 -14px; padding: 0 14px 0; border-radius: 0; background: transparent; }
.app-dialog.app-notedlg .app-nform .app-ntitle, .app-dialog.app-notedlg .app-nform .app-nedit { background: transparent; border: 0; box-shadow: none; outline: none; padding-left: 2px; padding-right: 2px; }
.app-dialog.app-notedlg .app-nform .app-ntitle { font: 700 19px/26px var(--font-sans); }
.app-dialog.app-notedlg .app-nedit, .app-dialog--full .app-dialog-body .app-nedit { height: auto; max-height: none; flex: 0 0 auto; min-height: 40vh; overflow: visible; resize: none; }
/* the title and toolbar stay at the top while a long note scrolls */
.app-dialog.app-notedlg .app-nform > .app-ntitle { position: sticky; top: 0; z-index: 3; margin: 0 -14px; padding: 12px 16px 6px; background: var(--nbg, var(--surface-raised)); }
.app-dialog.app-notedlg .app-neditwrap > .app-ntools { position: sticky; top: 44px; z-index: 3; margin: 0 -14px; padding: 4px 14px 6px; background: var(--nbg, var(--surface-raised)); border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.app-dialog.app-notedlg .app-nform .app-nsave { position: sticky; bottom: -14px; z-index: 3; margin: 0 -14px -14px; padding: 10px 14px 14px; background: var(--nbg, var(--surface-raised)); border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
/* full screen means the whole screen */
.app-dialog--full { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; margin: 0; border: 0; }
.app-overlay:has(> .app-dialog--full), .app-dialog-backdrop:has(> .app-dialog--full) { padding: 0; }
.app-dialog--full .app-dialog-body .app-nedit { overflow: visible; flex: 1 0 auto; }
.app-dialog--full .app-nform { max-width: 900px; width: 100%; align-self: center; }
/* card icons sit dead-center in their hover circle (the menu icon spacing does not apply here) */
.app-nact .app-nmico, .app-nact svg { margin: 0; flex: 0 0 auto; }

/* Kids section tabs: icon + name, or icon only */
.app-kidftab { display: inline-flex; align-items: center; gap: 6px; }
.app-kidftabico { width: 16px; height: 16px; flex: 0 0 auto; }
.app-kidftab.is-iconly { padding-left: 12px; padding-right: 12px; }
/* Kids Settings: each kid's Focus Mode folds up, with a bar in their color */
.app-focuskid { border-left: 4px solid var(--kidbar, var(--border)); border-radius: 8px; padding-left: 10px; background: color-mix(in srgb, var(--kidbar, transparent) 6%, transparent); }
.app-focuskidhead { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 6px 4px; }
.app-focuskidhead::-webkit-details-marker { display: none; }
.app-focuskidname { font-weight: 700; }
/* big focus timer: what to do now, and what is next */
.app-ftbig .app-ftlbl { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.app-ftbig .app-hlrunname { font-size: clamp(20px, 4.5vw, 30px); text-align: center; }
.app-ftbig .app-ftnext { margin: 0; text-align: center; font-size: clamp(15px, 3vw, 19px); opacity: .8; }

/* ---------- Super Sweep / Deep Sweep switch (an on/off switch, like a phone setting) ---------- */
.app-switch { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; border: 0; background: none; cursor: pointer; color: var(--ink-muted); font: 500 13px/1 var(--font-sans); }
.app-switchtrack { position: relative; width: 40px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: background .15s; }
.app-switchknob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.app-switch.is-on { color: var(--accent); }
.app-switch.is-on .app-switchtrack { background: var(--accent); }
.app-switch.is-on .app-switchknob { left: 20px; }
.app-switch:focus-visible .app-switchtrack { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-switch--sm .app-switchtrack { width: 34px; height: 19px; }
.app-switch--sm .app-switchknob { width: 15px; height: 15px; }
.app-switch--sm.is-on .app-switchknob { left: 17px; }

/* ---------- Deep Sweep ---------- */
.app-fpanel > .app-stack.app-deep > * + *, .app-stack.app-deep > * + * { margin-top: 14px; }
.app-dsoverall { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--surface-raised)); }
.app-dsoverall strong { font: 700 26px/1 var(--font-sans); font-variant-numeric: tabular-nums; margin-right: auto; }
.app-dsoverall.is-over strong { color: #c0392b; }
.app-dspeople { display: flex; flex-wrap: wrap; gap: 6px; }
.app-dspill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid var(--border); border-left: 4px solid var(--pc, var(--border)); border-radius: 999px; background: var(--surface-raised); color: var(--ink); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.app-dspill.is-on { background: color-mix(in srgb, var(--pc, var(--accent)) 18%, var(--surface-raised)); border-color: var(--pc, var(--accent)); }
.app-dsturfhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-dsturfhead .app-fh { margin: 0; margin-right: auto; }
.app-dsturftime { font: 700 30px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--accent); }
.app-dsturftime.is-over { color: #c0392b; }
.app-dsstep { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.app-dsstep .app-fh { display: flex; align-items: center; gap: 8px; margin: 0; }
.app-dsstepico { width: 18px; height: 18px; }
.app-dspts { color: var(--accent); }
.app-dssets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.app-dssets li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.app-dsopts { flex-wrap: wrap; align-items: center; gap: 8px; }
.app-dstier { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); color: var(--ink-muted); font: 600 12px/1 var(--font-sans); cursor: pointer; }
.app-dstier.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.app-dstier.is-off { text-decoration: line-through; opacity: .7; }
.app-dstierico { width: 15px; height: 15px; }
.app-dsmins { display: inline-flex; align-items: center; gap: 6px; }
.app-dsmins .bh-input { width: 74px; }
.app-dsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.app-dsset { padding: 10px; border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.app-dsfree { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.app-dssethead { display: flex; align-items: center; gap: 6px; }
.app-dssetname { flex: 1; min-width: 0; font-weight: 700; }
.app-dsturfs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.app-dsturfs li { display: flex; align-items: center; gap: 6px; }
.app-dsturfname { flex: 1; min-width: 0; }
.app-dsturfmin { width: 62px; min-height: 30px; padding: 2px 6px; }
.app-dsowner { width: auto; min-height: 30px; padding: 2px 6px; }
/* Task settings lists: the trashcan and + a little bigger (they were 16px) */
.app-catlist .app-plus { width: 20px; height: 20px; }
.app-catlist .app-plus svg { width: 12px; height: 12px; }

/* Today's Schedule: a small circle to check a block off */
.app-dp-check { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-right: 5px; padding: 0; vertical-align: -2px; border: 1.5px solid color-mix(in srgb, var(--dp) 70%, #000); border-radius: 50%; background: rgba(255,255,255,.7); color: #fff; font: 700 9px/1 var(--font-sans); cursor: pointer; }
.app-dp-check.is-on { background: var(--dp); border-color: var(--dp); }
.app-dp-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.app-dp-block.is-done { opacity: .62; }
.app-dp-block.is-done .app-dp-title { text-decoration: line-through; }
/* status on a task line: a small, quiet icon in its color */
.app-m.app-stline { color: var(--st, var(--ink-muted)); opacity: .9; }
.app-m.app-stline svg { width: 13px; height: 13px; }
/* in the open task, the chosen status as a colored pill under its drop-down */
.app-tdfield > .app-stchip { align-self: flex-start; margin-top: 4px; }
/* open task: Done On (check it off for the day it was really done) */
.app-wkdoneon input[type=date] { width: auto; }
.app-wkdoneonbtn { font-weight: 700; color: var(--accent); }
.app-wkdoneon .app-row { flex-wrap: nowrap; align-items: center; } .app-wkdoneon .app-row > .bh-input { flex: 0 1 180px; width: 180px; }
.app-wkdoneon { grid-column: 1 / -1; }
/* the pinned footer of a Health recipe/food window follows the window's rounded bottom corners */
.app-hltrackbar { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
.app-hladdbar--ing { display: flex; padding: 4px 0; }
/* windows with a scrollbar (Windows shows a wide one): the scrolling area follows the rounded bottom corners, so the
   scrollbar's square end no longer pokes out past the corner */
.app-dialog > .app-dialog-body { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.app-dialog { scrollbar-gutter: auto; }
.app-dialog-body::-webkit-scrollbar { width: 10px; }
.app-dialog-body::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.app-dialog-body::-webkit-scrollbar-track { background: transparent; margin-bottom: 12px; }
/* Tab to the next field in a window: it scrolls into view clear of the pinned bars at the top and bottom */
.app-dialog-body { scroll-padding-top: 64px; scroll-padding-bottom: 96px; }
.app-vitem--danger { color: #b3261e; }
/* recipe text boxes: the formatting bar stays at the top while long directions scroll (like Notes) */
.app-dialog-body .app-hlrichtools { position: sticky; top: -12px; z-index: 3; margin: 0 -2px 4px; padding: 6px 2px; background: var(--surface-raised); border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.app-hlrichtools .app-hlmarksel { max-width: 96px; }
/* in a recipe the tabs are pinned at the top, so the formatting bar pins just under them; the Save bar stays on top */
.app-dialog-body:has(.app-hltabs) .app-hlrichtools { top: 36px; }
.app-dialog-body .app-hlrichtools { z-index: 2; }
.app-hltrackbar { z-index: 5; }

/* recipe view: the ⇄ beside an ingredient with alternatives, and the picked alternative's own amount in the editor */
.app-hlvlist > li.app-hlvhasalt { display: flex; align-items: flex-start; gap: 6px; }
.app-hlvlist > li.app-hlvhasalt > .app-hlvrow { flex: 1; }
.app-hlvswap { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 1rem; padding: 2px 6px; line-height: 1.2; }
.app-hlaltamt { margin-top: 6px; }

/* Recipe editor: blue (the site's main color) for structure and links, gray labels, teal kept for the action buttons - so each kind of thing reads differently */
.app-hlrecdlg .app-hlvsechead { color: var(--primary); }
.app-hlrecdlg .bh-label { color: var(--ink-muted); }
.app-hlrecdlg .app-hleopen { border-left-color: var(--primary-soft); }
.app-hlrecdlg .app-hlfoodlink { color: var(--primary); }
.app-hlmatchbtn { width: 26px; height: 26px; }
.app-hlmatchbtn.is-on { color: var(--primary); border-color: var(--primary-soft); background: var(--primary-tint); }
.app-hlmatchbtn:hover { color: var(--primary); border-color: var(--primary); }
.app-hlrecdlg .app-hltabsrow .app-ftab.is-on, .app-hlrecdlg .app-hltabs [aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.app-cartico { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.app-shopgrp { margin-top: 8px; color: var(--primary); font-weight: 600; font-size: .85rem; }
.app-shopall { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
/* Recipe Nutrition tab: small auto/typed toggle with the points beside it */
.app-hlnutbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-hlnutmode { display: inline-flex; align-items: center; gap: 6px; }
.app-hlnutico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink-muted); cursor: pointer; }
.app-hlnutico.is-on { color: var(--primary); background: var(--primary-tint); }
.app-hlnutmode .app-switch.is-on .app-switchtrack, .app-hlnutmode .app-switch .app-switchtrack { background: var(--primary-soft); }
.app-hlnutpts { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 12px; border-radius: 999px; background: var(--primary-tint); color: var(--primary); }
.app-hlnutpts strong { font-size: 22px; }
.app-hlnutpts span { font-size: 13px; }
.app-hlnutsum { margin: 0; }
/* the open recipe's photo: a bit bigger than a thumbnail */
.app-hlvhead.has-img { padding-right: 112px; min-height: 100px; }
.app-hlvimg { width: 100px; height: 100px; border-radius: 12px; }
/* little recipe-card mark on an ingredient that is one of your own recipes */
.app-recbtn { background: none; border: 0; padding: 6px; margin: -6px 0; cursor: pointer; color: var(--primary); line-height: 0; display: inline-flex; vertical-align: middle; }
.app-recico { width: 14px; height: 14px; margin: 0 4px; vertical-align: -2px; color: var(--primary); flex: none; }
.app-hlunit .app-recico { color: currentColor; margin: 0 4px 0 0; }
.app-hlmatchbtn { width: 22px; height: 22px; }
/* compact ingredient editor */
.app-hlegrid { grid-template-columns: 46px 64px minmax(0, 200px) auto; justify-content: start; }
.app-hlg-opts { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; margin: 2px 0 4px; }
.app-hloptsel { flex: 0 1 auto; max-width: 100%; min-width: 0; height: 26px; border-radius: 8px; padding: 0 6px !important; color: var(--primary); }
.app-hlg-tools { display: inline-flex; align-items: center; gap: 4px; align-self: end; }
.app-hlmarksel2 { width: 44px; padding: 0 2px !important; text-align: center; }
.app-ficon--sm { width: 24px; height: 24px; min-width: 24px; font-size: 12px; }
.app-ficon.is-on .app-recico { color: var(--primary); fill: var(--primary-tint); }
.app-hlg-servline { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: 12px; color: var(--ink-muted); margin-top: 6px; }
.app-hlg-servline .app-hlfoodlink { flex: 0 1 auto; font-size: 12px; font-weight: 500; }
.app-hlg-servline .app-hlmq { width: 36px; height: 20px; font-size: 12px; text-align: center; }
.app-hlstaleflag { color: var(--gold-edge); }
.app-hlmultipop { z-index: 70; }
.app-hlcopybar { position: relative; } .app-hlcopyx { position: absolute; top: 4px; right: 6px; background: none; border: 0; font-size: 18px; color: var(--ink-muted); cursor: pointer; }
.app-hlrichtools .app-hlmarksel { max-width: 84px; padding-left: 4px; padding-right: 2px; font-size: 12px; }
/* search results: My Foods in blue with a blue edge, so they stand apart from the food database */
.app-hlfoodrow.is-mine { box-shadow: inset 3px 0 0 var(--primary); }
.app-hlfoodrow.is-mine .app-hlfoodname { color: var(--primary); }
.app-hlplanbtns { display: flex; gap: 6px; align-items: center; } .app-hlplanbtns .app-ficon.is-on { color: var(--primary); background: var(--primary-tint); } .app-hlplanbtns .app-ficon:disabled { opacity: .4; }
/* New / Edit Food: compact, 0 points beside Weight Measure */
.app-hlnewfood .app-hlgrid { gap: 2px 14px; }
.app-hlnewfood .bh-label { font-size: 10px; margin: 0; }
.app-hlnewfood .bh-input { height: 30px; min-height: 0; padding-top: 2px; padding-bottom: 2px; }
.app-hlnewfood .app-hlfield { gap: 0; }
@media (min-width: 560px) { .app-hlnewfood .app-hlgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app-hlpersv { margin: 8px 0 0; }
.app-hlzerocell { justify-content: flex-end; align-self: end; padding-bottom: 4px; }
.app-hlzerorow { flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; flex-wrap: wrap; }
.app-hlrest { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-muted); font: 500 13px/1 var(--font-sans); }
.app-hlrest input { margin: 0; width: 15px; height: 15px; accent-color: #1F3A4D; }
.app-switch.app-hlzero { border: 0; height: auto; padding: 0; background: none; border-radius: 0; outline: none; }
.app-switch.app-hlzero:focus-visible .app-switchtrack { outline: 2px solid var(--primary); outline-offset: 2px; }
/* garnishes offered when logging a recipe */
.app-hlgarn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.app-hlgarnbtn { border: 1px dashed var(--primary-soft); background: var(--primary-tint); color: var(--primary); border-radius: 999px; padding: 2px 10px; font: 500 12px/1.6 var(--font-sans); cursor: pointer; }
.app-hlgarnrow { display: flex; align-items: center; gap: 8px; }
.app-hlgarnrow .app-hlmq { width: 52px; }
/* Today's Schedule on a phone: pinch-zoom works over the blocks, and the done circle is easy to hit */
.app-dp-block { touch-action: pan-y pinch-zoom; }
.app-dp-check { position: relative; }
.app-dp-check::before { content: ''; position: absolute; inset: -12px -10px -12px -14px; }
@media (pointer: coarse) { .app-dp-check { width: 18px; height: 18px; margin-right: 7px; } }
/* Home Menu: every meal labeled the same way; each meal's main dish bold, Dinner's a touch bigger (not a headline) */
.app-homedinner .app-meal-dinnerlbl { font: 600 12.5px/17px var(--font-sans); margin-right: -2px; }
.app-homedinner .app-meal-name, .app-homedinner .app-mday.is-today .app-meal-name, .app-homedinner .app-mday:not(.is-today) .app-meal-name { font-size: 14.5px; line-height: 19px; font-weight: 700; }
.app-homedinner .app-meal-othername.is-main { font-weight: 700; color: var(--ink); }
.app-homedinner .app-meal-othername.is-recipe.is-main { color: var(--ink); }
@media (pointer: coarse) { .app-dp-check { width: 14px; height: 14px; margin-right: 5px; } } /* small circle again; the wide invisible tap area stays */
.app-ppImg { float: right; width: 2.2in; height: 1.65in; object-fit: cover; border-radius: 8px; margin: 0 0 8px 12px; }
/* the date/repeat panel: shorter, tighter pills */
.app-dped .app-wkrow { gap: 5px; }
.app-dped .app-wkday { min-height: 26px; min-width: 0; padding: 0 9px; font: 500 12px/1 var(--font-sans); }
.app-dped .app-wkdays .app-wkday { min-height: 28px; }
.app-hlpager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 4px; }
/* Birthdays & anniversaries #def8ff, Announcements #eaffdf (light mode), with dark readable text instead of teal */
:root { --announce-bg: #EAFFDF; --celebrate-bg: #DEF8FF; }
.app-celebrate, .app-celebrate.app-celebrate, .app-celebrate .bh-eyebrow, .app-celebrate .app-celebrate-when, .app-celebrate li.is-today .app-celebrate-when { color: #1F2A33; }
.app-announce, .app-announce .bh-eyebrow, .app-announce * { color: #1F2A33; }
:root[data-theme="dark"] .app-celebrate, :root[data-theme="dark"] .app-celebrate *, :root[data-theme="dark"] .app-announce, :root[data-theme="dark"] .app-announce * { color: #EEF4F7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-celebrate, :root:not([data-theme="light"]) .app-celebrate *, :root:not([data-theme="light"]) .app-announce, :root:not([data-theme="light"]) .app-announce * { color: #EEF4F7; } }
/* Menu: one line with the gear at the end (tabs tighten up on narrower screens), and Hide menu is a small icon at the right */
.app-tabs .bh-tabs { flex-wrap: nowrap; }
@media (max-width: 1000px) {
  .app-tabs .bh-tabs { gap: 0; }
  .app-tabs .bh-tab { padding-left: 8px; padding-right: 8px; font-size: 13.5px; gap: 5px; white-space: nowrap; }
  .app-tabs .bh-tab svg { width: 15px; height: 15px; }
}
@media (max-width: 640px) {
  .app-tabs-wrap { padding-right: 34px; }
  .app-tabsfold { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; min-height: 26px; height: 26px; border-radius: 50%; background: var(--surface-sunken); font-size: 13px; z-index: 2; }
  .app-tabs-wrap.is-folded { min-height: 34px; }
  .app-tabs .bh-tab { padding-left: 6px; padding-right: 6px; font-size: 12.5px; }
}
/* calendar days: true circles (not stretched to the column width), and the picked day a soft tint instead of dark teal */
.app-dpday { width: 36px; height: 36px; justify-self: center; padding: 0; }
.app-dpday.is-sel { background: var(--primary-tint); color: var(--primary); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--primary-soft); }
.app-dpday.is-today { color: var(--primary); }
/* Food search window: lighter. Regular-weight names a bit smaller, a thin blue edge for My Foods, soft tab pills. */
.app-hlsearchwrap .app-hlbig .app-hlfoodname { font-size: 14px; font-weight: 500; }
.app-hlsearchwrap .app-hlfsub, .app-hlsearchwrap .app-hlfsub strong { font-weight: 400; font-size: 12px; }
.app-hlsearchwrap .app-hlfsub strong { color: var(--ink); }
.app-hlfoodrow.is-mine { box-shadow: inset 2px 0 0 var(--primary-soft); }
.app-hlstab { font-weight: 500; border-color: var(--border); color: var(--ink-muted); }
.app-hlstab.is-on { background: var(--primary-tint); border-color: var(--primary-soft); color: var(--primary); }
/* blocks side by side: the title gets two lines, and the link icons sit at the bottom right instead of over the title */
.app-dp-block.is-narrow:not(.is-short) .app-dp-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 16px; }
.app-dp-block.is-narrow:not(.is-short) .app-dp-links { top: auto; bottom: 6px; }

.app-dp-zoom { width: auto; min-width: 36px; padding: 0 8px; gap: 2px; display: inline-flex; align-items: center; font-size: 15px; }
.app-dp-zoom small { font-size: 11px; }
.app-dp-peektime { color: var(--ink-muted); margin: 0; }
.app-dp-peeknote { white-space: pre-wrap; margin: 0; }
.app-dp-block.is-short { flex-wrap: wrap; align-content: flex-start; row-gap: 400px; overflow: hidden; line-height: 17px; padding-top: max(0px, calc((var(--bh) - 1lh) / 2)); }
.app-dp-block.is-short .app-dp-title { max-width: 100%; }
.app-rcdone { flex: none; gap: 4px; align-self: center; margin-right: 2px; }
.app-rcdone .app-rcdot, .app-rcdone .app-rcdot + .app-rcdot { width: 20px; height: 20px; margin: 0; box-sizing: border-box; padding: 0; cursor: pointer; background: transparent; border: 2px solid var(--kid, #8F9BA8); box-shadow: none; }
.app-rcdone .app-rcdot.is-on { background: var(--kid, #8F9BA8); }
.app-rcdone .app-rcdot.is-late { box-shadow: 0 0 0 2px var(--danger, #C62828); }
.app-prow2.is-rcmissed { box-shadow: inset 0 0 0 2px var(--danger, #C62828); border-radius: 10px; }
.app-dp-resize--top { top: 0; bottom: auto; }
.app-dp-resize--top::after { top: 3px; bottom: auto; }
.app-dp-dragtime { position: absolute; left: 8px; top: -24px; z-index: 5; padding: 2px 8px; border-radius: 10px; background: var(--ink, #1F2933); color: #fff; font: 400 12px/18px var(--font-sans); white-space: nowrap; pointer-events: none; }
.app-dp-block.is-dragging, .app-dp-block.is-short.is-dragging { overflow: visible; }
.app-dp-catuse { display: grid; gap: 6px; padding: 4px 0 8px 32px; }
.app-dp-catuse .app-gstores { align-items: center; }
.app-dssets > li > .app-small { flex-basis: 100%; } /* a set's turfs always start under its name */
.app-dsturfs .app-ngrip { margin-right: 4px; }
.app-balance-card { min-width: 0; }
.app-balance-card .app-chip, .app-balance-card > :first-child { min-width: 0; }
.app-balance-pm { flex: none; font-size: 20px; line-height: 1; }
.app-ktsweepbtn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); font: inherit; color: inherit; cursor: pointer; text-align: left; }
.app-ktsweepbtn > span { flex: 1; }
.app-kidtaborder { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.app-kidtaborder li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: var(--radius-sm, 6px); background: var(--surface-raised); }
.app-kidtaborder li > span { flex: 1; }
.app-kidtaborder li.is-off > span, .app-kidtaborder li.is-off > svg { opacity: .45; }
/* the name and time always show; the note shows only when it fits whole, otherwise it wraps out of sight */
.app-dp-block:not(.is-short) { flex-wrap: wrap; align-content: flex-start; column-gap: 400px; }
.app-dp-block:not(.is-short) > .app-dp-title, .app-dp-block:not(.is-short) > .app-dp-time { flex: none; max-width: 100%; }
.app-dp-block:not(.is-short) > .app-dp-note { flex: none; max-width: 100%; }
.app-dsplay { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 18px; cursor: pointer; }
.app-dsplay.is-pause { background: var(--surface-raised); color: var(--primary); border: 2px solid var(--primary); font-size: 13px; letter-spacing: -2px; }
.app-dsturftime.is-held { opacity: .6; }
.app-dsmytotal { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; }
.app-dsmytotal.is-over strong { color: var(--danger); }
.app-dsjoin { width: auto; }
/* no square blue flash when a finger taps a button (Android); the round buttons show their own pressed color */
html { -webkit-tap-highlight-color: transparent; }
.bh-key:active { transform: scale(.96); }
/* the handles sit in the middle only, clear of the check bubble and the link icons */
.app-dp-resize { left: 50%; right: auto; width: 72px; margin-left: -36px; }
.app-fuellist { list-style: none; margin: 0; padding: 0; }
.app-fuellist > li + li { border-top: 1px solid var(--border); }
.app-fuelrow { display: grid; gap: 2px; width: 100%; padding: 10px 4px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.app-fuelrow:disabled { cursor: default; }
.app-fueltop, .app-fuelbits { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.app-fueltop strong { font-size: 17px; }
.app-fuelloc { color: var(--ink); }
.app-fuelbits { color: var(--ink-muted); font-size: 13px; }
.app-fuelmpg { color: var(--primary); font-weight: 600; white-space: nowrap; }
.app-mergerow { display: grid; gap: 4px; }
.app-mergepills { display: flex; flex-wrap: wrap; gap: 6px; }
.app-hlshare { gap: 4px; padding: 0; background: none; border: 0; }
.app-hlshare .app-hlshareico { width: 14px; height: 14px; color: var(--ink-muted); }
.app-hlshare.is-on .app-hlshareico { color: var(--primary); }
.app-hldirsteps { position: relative; }
.app-hldirsteps .is-step { cursor: pointer; border-radius: 6px; transition: background .15s; }
.app-hldirsteps .is-stepdone { text-decoration: line-through; color: var(--ink-muted); background: var(--accent-tint, #E7ECE6); }
.app-hlstepsclear { position: absolute; top: -34px; right: 0; }
/* ---------- Family Display ---------- */
.fd { position: fixed; inset: 0; display: flex; background: var(--surface, #F8F7F6); color: var(--ink); font-family: var(--font-sans); overflow: hidden; }
.fd-side { width: 112px; flex: none; background: #E6EDF0; display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 2px; overflow-y: auto; }
.fd-mark { font: 700 30px/40px Oswald, var(--font-sans); color: #1F3A4D; text-decoration: none; margin-bottom: 12px; }
.fd-nav { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; min-height: 72px; padding: 10px 0; border: 0; background: none; color: #62666A; font: 500 14px/18px var(--font-sans); cursor: pointer; }
.fd-nav.is-on { background: #FFFFFF; color: #386579; font-weight: 600; }
.fd-nav svg { width: 28px; height: 28px; }
.fd-main { flex: 1; min-width: 0; padding: 24px 32px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.fd-top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.fd-date { font: 600 40px/48px Oswald, var(--font-sans); color: #1F3A4D; }
.fd-time { font: 500 38px/46px var(--font-sans); }
.fd-wx { display: inline-flex; align-items: center; gap: 10px; font: 500 32px/40px var(--font-sans); }
.fd-days { display: inline-flex; gap: 18px; padding-left: 20px; border-left: 1px solid var(--border); }
.fd-day { display: inline-flex; flex-direction: column; align-items: center; font: 600 18px/22px var(--font-sans); }
.fd-bday { display: inline-flex; align-items: center; gap: 14px; background: #F3D9E6; border: 2px solid #D9A5C1; border-radius: 999px; padding: 6px 22px 6px 8px; color: #5E2443; font: 400 18px/22px var(--font-sans); }
.fd-bday strong { display: block; font: 600 22px/28px var(--font-sans); }
.fd-bdayico { width: 50px; height: 50px; border-radius: 999px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.fd-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(120px, 1fr); grid-auto-flow: dense; gap: 16px; }
.fd-card { border: 1px solid rgba(0,0,0,.08); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; }
.fd-tall, .fd-sz-t { grid-row: span 2; }
.fd-sz-w { grid-column: span 2; }
.fd-sz-l { grid-column: span 2; grid-row: span 2; }
.fd-ct { margin: 0; font: 600 24px/30px Oswald, var(--font-sans); letter-spacing: .01em; text-transform: uppercase; color: #1F3A4D; }
.fd-lbl { display: block; font: 600 13px/18px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: #62666A; }
.fd-lbl--blue { color: #386579; }
.fd-list { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; }
.fd-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-content: start; gap: 16px; }
.fd-ev { border-radius: 12px; padding: 10px 14px; }
.fd-ev.is-now { box-shadow: inset 0 0 0 2px #386579; }
.fd-evt { font: 600 21px/27px var(--font-sans); }
.fd-evm { font: 400 17px/23px var(--font-sans); color: #62666A; }
.fd-muted { margin: 0; color: #62666A; font: 400 18px/24px var(--font-sans); }
.fd-center { margin: auto; }
.fd-mealday { display: flex; flex-direction: column; gap: 6px; }
.fd-dish, .fd-dishtxt { font: 500 21px/28px var(--font-sans); color: inherit; }
.fd-dish { background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: #9DB7C3; text-underline-offset: 4px; cursor: pointer; }
.fd-dish.is-big, .fd-dishtxt.is-big { font: 600 26px/32px var(--font-sans); }
.fd-store { display: flex; flex-direction: column; gap: 6px; }
.fd-pill { align-self: flex-start; background: #CDEBF2; color: #1F5566; border-radius: 999px; padding: 3px 12px; font: 600 13px/18px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.fd-gitem { font: 400 21px/28px var(--font-sans); }
.fd-photos { padding: 0; border: 0; }
.fd-photo { width: 100%; height: 100%; object-fit: cover; animation: fdfade 1.2s ease; }
@keyframes fdfade { from { opacity: 0; } to { opacity: 1; } }
.fd-full { flex: 1; }
.fd-full .fd-photo { object-fit: contain; background: #111; }
.fd-kid { display: flex; flex-direction: column; gap: 6px; }
.fd-kidrow { display: flex; align-items: center; gap: 12px; }
.fd-kidn { flex: 1; font: 500 20px/26px var(--font-sans); }
.fd-dot { width: 36px; height: 36px; flex: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font: 700 16px var(--font-sans); color: #2B2B2B; }
.fd-dot--sm { width: 24px; height: 24px; font-size: 12px; }
.fd-whos { display: flex; gap: 4px; margin-top: 4px; }
.fd-ok { color: #3F6B4A; font: 500 17px/23px var(--font-sans); }
.fd-bar { height: 12px; background: #EFEDEA; border-radius: 999px; overflow: hidden; }
.fd-bar i { display: block; height: 100%; }
.fd-news { margin: 0; font: 400 20px/28px var(--font-sans); }
.fd-soon { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font: 400 17px/24px var(--font-sans); color: #5E2443; }
.fd-soon > div { display: flex; align-items: center; gap: 6px; }
.fd-tabbody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.fd-tabbody > .fd-card { flex: 1; }
.fd-toolbar { display: flex; align-items: center; gap: 20px; }
.fd-seg { display: inline-flex; border: 1px solid #C9D6DD; border-radius: 999px; overflow: hidden; }
.fd-seg button { min-height: 48px; padding: 0 22px; border: 0; background: #fff; font: 500 18px var(--font-sans); cursor: pointer; }
.fd-seg button.is-on { background: #DCE8EE; color: #1F3A4D; font-weight: 600; }
.fd-calcols { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
.fd-calcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow: hidden; }
.fd-sleep { position: fixed; inset: 0; background: #000; border: 0; color: #3a3a3a; font: 500 64px var(--font-sans); cursor: pointer; }
.fd-setlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fd-setlist li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fd-swatch { width: 30px; height: 30px; border-radius: 999px; border: 1px solid #80848A; cursor: pointer; padding: 0; }
.fd-swatch.is-on { box-shadow: 0 0 0 3px #386579; }
.fd-swatches { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.fd-calwho { display: flex; align-items: center; gap: 10px; }
.fd-calname { flex: 1; }
@media (max-width: 900px) { .fd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fd-side { width: 84px; } .fd-date { font-size: 28px; } }
.fd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fd-plus { width: 52px; height: 52px; border-radius: 999px; border: 2px dashed #80848A; background: none; color: #386579; font: 400 30px/1 var(--font-sans); cursor: pointer; flex: none; }
button.fd-gitem { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 4px 0; text-align: left; color: inherit; cursor: pointer; min-height: 44px; }
.fd-gbox { width: 26px; height: 26px; border: 2px solid #80848A; border-radius: 6px; flex: none; }
.fd-bigin { font-size: 26px; min-height: 64px; }
.fd-szsel { width: auto; min-height: 40px; }
.fd-on .app-dialog { width: min(820px, 94vw); max-width: none; max-height: 92vh; }
.fd-cheer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(248,247,246,.6); cursor: pointer; }
.fd-cheerbox { position: relative; background: #fff; border: 1px solid #E3E1DE; border-radius: 24px; box-shadow: 0 8px 24px rgba(30,33,40,.12); padding: 40px 56px; display: flex; flex-direction: column; align-items: center; gap: 12px; font: 400 24px/30px var(--font-sans); color: #62666A; animation: fdpop .5s ease; }
.fd-cheerbox strong { font: 600 40px/48px Oswald, var(--font-sans); color: #1F3A4D; text-align: center; }
@keyframes fdpop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fd-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fd-confetti i { position: absolute; top: -20px; width: 14px; height: 22px; border-radius: 3px; animation: fdfall 3.2s linear infinite; }
@keyframes fdfall { to { transform: translateY(110vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .fd-confetti i, .fd-cheerbox, .fd-photo { animation: none; } .fd-confetti { display: none; } }
.fd-setsec { border-top: 1px solid var(--border); }
.fd-sethead { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; background: none; border: 0; padding: 0; font: 600 13px/18px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); cursor: pointer; }
.fd-setbody { display: grid; gap: 10px; padding-bottom: 14px; }
.fd-setname { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.fd-swatches { flex-basis: 100%; }
.fd-sw .app-switchlbl { color: var(--ink); font-weight: 400; }
.fd-reset { justify-self: start; }
.fd-card { position: relative; }
.fd-card.is-arranging { outline: 2px dashed #386579; outline-offset: -2px; }
.fd-card.is-dropat { box-shadow: 0 0 0 4px #386579; }
.fd-move { position: absolute; top: 10px; right: 10px; width: 52px; height: 52px; border-radius: 999px; border: 0; background: #386579; color: #fff; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; z-index: 2; }
.fd-resize { position: absolute; right: 0; bottom: 0; width: 44px; height: 44px; cursor: nwse-resize; touch-action: none; z-index: 2; background: linear-gradient(135deg, transparent 55%, #386579 55%, #386579 62%, transparent 62%, transparent 72%, #386579 72%, #386579 79%, transparent 79%); border-bottom-right-radius: 16px; }
.fd-grid.is-arranging { user-select: none; }
.fd-calwho.is-off .fd-calname, .fd-calwho.is-off .fd-dot { opacity: .45; }
/* display: neutral charcoal titles, quieter dishes, icon toggles, gray switches */
.fd-lbl--blue { color: #2B2F33; font-weight: 700; }
.fd-mealday .fd-lbl { color: #2B2F33; font-weight: 700; margin-top: 4px; }
.fd-dayname { display: block; font: 700 20px/26px var(--font-sans); color: #2B2F33; }
.fd-list > .fd-mealday + .fd-mealday { border-top: 1px solid rgba(43,47,51,.18); padding-top: 12px; }
.fd-dish, .fd-dishtxt { font-size: 19px; line-height: 26px; font-weight: 400; text-align: left; }
.fd-dish.is-big, .fd-dishtxt.is-big { font-size: 21px; line-height: 28px; font-weight: 500; }
.fd-dish { text-decoration-color: rgba(43,47,51,.3); }
.fd-gbox { width: 20px; height: 20px; border-radius: 5px; }
.fd-seg--ico button { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; color: #2B2F33; }
.fd-seg--ico button.is-on { background: #DCE8EE; color: #1F3A4D; }
.fd-toolbar { display: flex; gap: 12px; align-items: center; }
body.fd-on .app-switch.is-on .app-switchtrack { background: #4A4E52; }
.fd-card { overflow: hidden; min-height: 0; }
.fd-wxcard { display: flex; flex-direction: column; gap: 10px; touch-action: pan-y; }
.fd-wxnav { display: inline-flex; align-items: center; gap: 6px; }
.fd-places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fd-x { border: 0; background: none; font-size: 18px; cursor: pointer; color: inherit; padding: 0 2px; }
.fd-places .app-gpill.is-on { background: #4A4E52; border-color: #4A4E52; color: #fff; }
.fd-free { display: block; position: relative; overflow-y: auto; overflow-x: hidden; }
.fd-free > .fd-card { margin: 0; }
.fd-card.is-arranging { outline: 1.5px dashed rgba(43,47,51,.45); outline-offset: -1px; }
.fd-card.is-lifted { box-shadow: 0 10px 28px rgba(0,0,0,.18); z-index: 3; }
.fd-grab { position: absolute; inset: 0; z-index: 1; cursor: grab; touch-action: pinch-zoom; }
.fd-edge { position: absolute; z-index: 2; touch-action: pinch-zoom; }
.fd-edge::after { content: ''; position: absolute; background: rgba(43,47,51,.55); border-radius: 99px; }
.fd-edge--r { top: 15%; bottom: 15%; right: 0; width: 44px; cursor: ew-resize; }
.fd-edge--r::after { right: 8px; top: 50%; margin-top: -24px; width: 5px; height: 48px; }
.fd-edge--b { left: 15%; right: 15%; bottom: 0; height: 44px; cursor: ns-resize; }
.fd-edge--b::after { bottom: 8px; left: 50%; margin-left: -24px; height: 5px; width: 48px; }
.fd-edge--c { right: 0; bottom: 0; width: 44px; height: 44px; cursor: nwse-resize; }
.fd-edge--c::after { right: 8px; bottom: 8px; width: 10px; height: 10px; }
.fd-free > .fd-card { box-sizing: border-box; }
.fd-photobox { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #1E2124; touch-action: pan-y pinch-zoom; }
.fd-photobox .fd-photo { position: absolute; inset: 0; }
.fd-photo.is-fit { object-fit: contain; }
.fd-photobg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(28px) brightness(.75) saturate(1.1); }
.fd-pnav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(20,22,24,.38); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: .55; transition: opacity .2s, background .2s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 1; }
.fd-pnav:hover, .fd-pnav:focus-visible { opacity: 1; background: rgba(20,22,24,.6); }
.fd-pnav--l { left: 14px; } .fd-pnav--r { right: 14px; }
.fd-pcount { position: absolute; right: 14px; bottom: 14px; padding: 3px 10px; border-radius: 999px; background: rgba(20,22,24,.45); color: #fff; font: 500 13px/18px var(--font-sans); letter-spacing: .04em; z-index: 1; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fd-photoopts { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 12px; }
.fd-seg--sm button { min-height: 38px; padding: 0 16px; font-size: 14px; }
.fd-seg--sm button.is-on { background: #DCE8EE; color: #1F3A4D; font-weight: 600; }
.fd-lbl--late { color: #A4473F; }
.app-cpbulk { display: flex; gap: 16px; padding: 4px 10px 8px; }
.fd-dline { display: flex; gap: 10px; align-items: flex-start; }
.fd-mico { flex: none; margin-top: 4px; color: #62666A; }
.fd-soon, .fd-soon > div { color: #2B2F33; }
.fd-soon .fd-lbl { margin-bottom: 2px; }
.fd-daypill { border: 0; background: none; font: 600 15px/20px var(--font-sans); color: #2B2F33; padding: 4px 8px; border-radius: 999px; cursor: pointer; min-width: 92px; }
.fd-daypill:not(.is-today) { background: rgba(43,47,51,.08); }
/* recipes as tabs / side by side */
.app-overlay.is-hidden { display: none; }
.app-overlay--l { right: 50%; padding-right: 8px; }
.app-overlay--r { left: 50%; padding-left: 8px; }
.app-dialog--half { max-width: none; }
.app-rtabs { display: flex; align-items: center; gap: 8px; padding: 8px 10px 0; border-bottom: 1px solid var(--border); }
.app-rtabrow { display: flex; gap: 4px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.app-rtab { display: inline-flex; align-items: center; flex: none; max-width: 200px; border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface); color: var(--ink-2, #5B6168); }
.app-rtab.is-on { background: var(--surface-raised); color: var(--ink); border-color: var(--border-strong); margin-bottom: -1px; padding-bottom: 1px; }
.app-rtab.is-other { opacity: .55; }
.app-rtabname { border: 0; background: none; color: inherit; font: inherit; font-size: 14px; padding: 7px 4px 7px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; max-width: 170px; }
.app-rtab.is-on .app-rtabname { font-weight: 600; }
.app-rtabx { border: 0; background: none; color: inherit; font-size: 17px; line-height: 1; padding: 6px 9px 6px 2px; cursor: pointer; }
.app-rsplit.is-on { background: var(--primary); color: #fff; }
.app-hlbcrow { display: flex; gap: 8px; align-items: center; }
.app-hlbcrow .bh-input { flex: 1; min-width: 0; }
.app-hlbcfound { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md, 10px); }
.app-hlbclist { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; }
.app-hlbcitem { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; border: 0; border-bottom: 1px solid var(--border); background: none; padding: 10px 4px; font: inherit; color: var(--ink); cursor: pointer; }
.hl-scaled { background: rgba(56,101,121,.12); border-radius: 4px; padding: 0 2px; font-weight: 600; }
.app-pgrid { display: grid; gap: 6px 8px; align-items: stretch; overflow-x: auto; }
.app-pgh { }
.app-pghead { font: 600 13px/18px var(--font-sans); color: var(--ink); padding: 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.app-pghead.is-on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--surface-raised); }
.app-pghead.is-static { cursor: default; background: none; border-color: transparent; padding-left: 0; }
.app-pglabel { font: 600 11px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted, #6B7178); align-self: center; }
.app-pgcell { font: inherit; font-size: 14px; color: var(--ink); text-align: left; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; overflow-wrap: anywhere; }
.app-pgcell.is-on { background: rgba(56,101,121,.12); border-color: var(--primary); font-weight: 600; }
.app-pgall { grid-column: 1 / -1; }
/* photos: one at a time or a collage, in a panel, the Photos tab, or full screen */
.ph-show { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; touch-action: pan-y pinch-zoom; user-select: none; }
.ph-frame { position: fixed; inset: 0; border-radius: 0; z-index: 50; cursor: none; }
.ph-empty { display: flex; align-items: center; justify-content: center; background: var(--surface) !important; }
.ph-slide { position: absolute; inset: 0; display: grid; box-sizing: border-box; grid-template-columns: 1fr; grid-template-rows: 1fr; }
.ph-n2 { grid-template-columns: 1fr 1fr; }
.ph-n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.ph-n3 > :first-child { grid-row: 1 / 3; }
.ph-n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ph-n5, .ph-n6 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ph-tile { position: relative; overflow: hidden; min-width: 0; min-height: 0; background: #111; }
.ph-blur { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(28px) brightness(.72) saturate(1.1); }
.ph-kbwrap { position: absolute; inset: 0; }
.ph-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: center; }
.ph-kb { animation-timing-function: linear; animation-fill-mode: both; }
.ph-kb0 { animation-name: phkb0; } .ph-kb1 { animation-name: phkb1; } .ph-kb2 { animation-name: phkb2; } .ph-kb3 { animation-name: phkb3; }
@keyframes phkb0 { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -2%); } }
@keyframes phkb1 { from { transform: scale(1.12) translate(2%, 0); } to { transform: scale(1) translate(0, 0); } }
@keyframes phkb2 { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(2%, 2%); } }
@keyframes phkb3 { from { transform: scale(1.12) translate(-2%, 1%); } to { transform: scale(1) translate(0, 0); } }
.ph-in, .ph-out { animation-timing-function: ease; animation-fill-mode: both; }
.ph-out { z-index: 0; } .ph-in { z-index: 1; }
.ph-in-fade-f, .ph-in-fade-b { animation-name: phfadein; }
.ph-out-fade-f, .ph-out-fade-b { animation-name: phfadeout; }
.ph-in-slide-f { animation-name: phslidein; } .ph-out-slide-f { animation-name: phslideout; }
.ph-in-slide-b { animation-name: phslideinb; } .ph-out-slide-b { animation-name: phslideoutb; }
@keyframes phfadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes phfadeout { from { opacity: 1; } to { opacity: 0; } }
@keyframes phslidein { from { transform: translateX(100%); } to { transform: none; } }
@keyframes phslideout { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes phslideinb { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes phslideoutb { from { transform: none; } to { transform: translateX(100%); } }
.ph-cap { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(20,22,24,.5); color: #fff; font: 500 13px/18px var(--font-sans); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); max-width: calc(100% - 70px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-hide { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(20,22,24,.35); color: #fff; display: flex; align-items: center; justify-content: center; opacity: .0; transition: opacity .2s; cursor: pointer; z-index: 2; }
.ph-show:hover .ph-hide, .ph-hide:focus-visible { opacity: .85; }
@media (hover: none) { .ph-hide { opacity: .45; } }
.ph-sound, .ph-full { position: absolute; bottom: 14px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(20,22,24,.42); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ph-sound { right: 14px; } .ph-full { right: 64px; }
.ph-frame .ph-sound { right: auto; left: 18px; bottom: 18px; }
.ph-clock { position: absolute; right: 28px; bottom: 24px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.55); pointer-events: none; }
.ph-clockt { font: 300 64px/1 var(--font-sans); letter-spacing: -.01em; }
.ph-clockd { font: 500 18px/26px var(--font-sans); opacity: .92; }
.ph-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: #2B2F33; color: #fff; padding: 10px 16px; border-radius: 999px; font: 500 15px/20px var(--font-sans); display: flex; gap: 6px; align-items: center; }
.ph-toast .app-linkbtn { color: #fff; text-decoration: underline; }
.ph-look { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin-top: 6px; }
.ph-places { align-self: flex-start; }
.ph-setline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph-setline > span:first-child { min-width: 110px; font-size: 14px; color: var(--ink); }
.ph-setline .bh-input { width: auto; min-width: 180px; }
.ph-setline input[type=range] { flex: 1; min-width: 140px; accent-color: #2B2F33; }
.ph-val { min-width: 90px; font-size: 13px; color: var(--ink-muted, #6B7178); }
.ph-setrow { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ph-hidlist { display: flex; flex-direction: column; gap: 6px; }
.ph-hidgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-hidbtn { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); padding: 0; cursor: pointer; font-size: 12px; color: var(--ink-muted, #6B7178); }
.ph-hidbtn img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.8); }
.ph-hidx { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 999px; background: #fff; color: #2B2F33; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.fd-photos .ph-show .fd-pnav { z-index: 3; }
.ph-setline input[type=range] { flex: 0 1 320px; }
.app-gerr-rcpt { display: inline-flex; align-items: center; gap: 4px; }
.app-gerr-rcptadd { position: relative; overflow: hidden; cursor: pointer; opacity: .55; }
.app-gerr-rcptadd:hover, .app-gerr-rcptadd:focus-within { opacity: 1; }
.app-gerr-rcptadd input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fd-seg button + button { border-left: 1px solid #C9D6DD; }
.fd-tablist { display: flex; flex-direction: column; }
.fd-tabrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); color: #2B2F33; }
.fd-tabrow.is-off > svg, .fd-tabrow.is-off .fd-calname { opacity: .45; }
.fd-tabrow .fd-calname { flex: 1; }
.fd-tabgrip0 { width: 28px; }
.fd-pagebg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.fd-pagebgpick { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* Games: score cards */
.app-games { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.app-gmhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-gmsec { display: flex; flex-direction: column; gap: 8px; }
.app-gmrow { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 12px; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised, #fff); cursor: pointer; font: inherit; color: var(--ink); }
.app-gmname { font-weight: 600; }
.app-gmwhen { grid-row: 1; grid-column: 2; }
.app-gmstand { display: flex; flex-direction: column; gap: 6px; }
.app-gmstandrow { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: #E6EDF0; }
.app-gmpick { display: flex; flex-wrap: wrap; gap: 8px; }
.app-gmchip { padding: 9px 14px; border-radius: 999px; border: 1px solid #C9D6DD; background: var(--surface-raised, #fff); font: inherit; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.app-gmchip.is-on { background: #DCE8EE; color: #1F3A4D; font-weight: 600; border-color: #9DB7C4; }
.app-gmchip.is-soon { opacity: .5; cursor: default; }
.app-gmsoon { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted, #6B7178); }
.app-gmguest { display: flex; gap: 8px; align-items: center; max-width: 360px; }
.app-gmline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-gmline > .bh-label { min-width: 90px; }
.app-gmnum { width: 100%; min-width: 0; text-align: center; }
.app-gmline .app-gmnum { width: 110px; }
.app-gmkeep { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.app-gmteams { display: flex; flex-direction: column; gap: 6px; }
.app-gmgrid { display: grid; gap: 4px 6px; align-items: center; overflow-x: auto; }
.app-gmth { font: 600 13px/18px var(--font-sans); text-align: center; color: var(--ink); padding: 6px 2px; border-bottom: 2px solid #C9D6DD; overflow-wrap: anywhere; }
.app-gmth.is-lead, .app-gmtot.is-lead { color: #1F3A4D; background: #DCE8EE; border-radius: 8px; }
.app-gmrn { border: 0; background: none; color: var(--ink-muted, #6B7178); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 0; border-radius: 6px; }
.app-gmrn.is-on { background: #DCE8EE; color: #1F3A4D; }
.app-gmcell { text-align: center; padding: 6px 2px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.app-gmcell.is-edit { background: #F1F6F8; }
.app-gmtot { text-align: center; font-weight: 700; font-size: 18px; padding: 8px 2px; font-variant-numeric: tabular-nums; }
.app-gmentry { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.app-gmwin { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; background: #DCE8EE; color: #1F3A4D; font-weight: 600; font-size: 18px; }
.app-gmwins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.app-gmwinbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; border-radius: 14px; border: 1px solid #C9D6DD; background: var(--surface-raised, #fff); cursor: pointer; font: inherit; color: var(--ink); }
.app-gmwinbtn.is-lead { background: #DCE8EE; border-color: #9DB7C4; }
.app-gmwinname { font-weight: 600; }
.app-gmwinn { font-size: 34px; font-weight: 700; color: #1F3A4D; font-variant-numeric: tabular-nums; }
.app-gmform { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.app-gmform .app-gmline { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; }
.app-gmform .app-gmline > :nth-child(2):last-child { grid-column: 2 / 4; }
.app-gmsel { width: 100%; }
.app-gmat { width: 96px !important; }
.app-gmform .app-gmguest { display: flex; gap: 8px; grid-column: 2 / 4; }
.app-gmteams { display: flex; flex-direction: column; gap: 8px; }
.app-gmform .app-cpbtn { width: 100%; justify-content: space-between; text-align: left; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-strong, #C9CDD1); border-radius: 10px; background: var(--surface-raised, #fff); }
.app-gmbid { display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.2; }
.app-gmbid .is-neg { color: #A4473F; }
.app-gmbags { display: block; font-weight: 400; }
.app-gmbidin { display: flex; flex-direction: column; gap: 4px; }
.app-gmph { display: block; font-weight: 400; }
.app-gmmade { display: flex; align-items: center; gap: 4px; font-size: 13px; justify-content: center; }
.app-gmyzgrid { gap: 3px 6px; }
.app-gmyzl { font-size: 14px; color: var(--ink); padding: 4px 0; }
.app-gmyzl.is-out { text-decoration: line-through; color: var(--ink-muted, #6B7178); }
.app-gmyzsub { color: var(--ink-muted, #6B7178); font-size: 13px; }
.app-gmyzin { height: 36px; padding: 4px; }
.app-gmyz { height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-raised, #fff); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.app-gmyz.is-on { background: #DCE8EE; color: #1F3A4D; border-color: #9DB7C4; }
.app-gmyz.is-x { color: #A4473F; background: #FBEFEE; }
.app-gmstep { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 2px; border-radius: 8px; }
.app-gmstep.is-lead { background: #DCE8EE; color: #1F3A4D; }
.app-gmqx { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)) 40px; gap: 3px; padding: 5px; border-radius: 10px; align-items: center; }
.app-gmqxn { aspect-ratio: 1; min-width: 0; border-radius: 6px; border: 0; background: rgba(255,255,255,.88); font: 600 13px/1 var(--font-sans); color: #2B2F33; cursor: pointer; padding: 0; }
.app-gmqxn.is-on { background: #2B2F33; color: #fff; }
.app-gmqxlock.is-on { background: #fff; outline: 2px solid #2B2F33; }
.app-gmqxsc { text-align: center; color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.app-gmpen { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #C9D6DD; background: #fff; font-weight: 700; color: #A4473F; cursor: pointer; }
.app-gmcrib { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.app-gmcrib.is-lead { border-color: #9DB7C4; background: #F1F6F8; }
.app-gmcribtop { display: flex; align-items: baseline; justify-content: space-between; }
.app-gmcribbar { height: 8px; border-radius: 99px; background: #E6EDF0; overflow: hidden; }
.app-gmcribbar > span { display: block; height: 100%; background: #386579; border-radius: 99px; }
.app-gmcribbtns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.app-gmcribbtn { padding: 10px 0; border-radius: 10px; border: 1px solid #C9D6DD; background: #fff; font: 600 16px/1 var(--font-sans); color: #1F3A4D; cursor: pointer; }
.app-gmcribbtn:active { background: #DCE8EE; }
.app-gmclue { gap: 3px 4px; }
.app-gmcluegrp { padding-top: 10px; }
/* the menu down the left */
body.app-side-pinned { padding-left: 232px; }
body.app-side-rail { padding-left: 64px; }
.app-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; width: 64px; background: #E6EDF0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; transition: width .18s ease; scrollbar-width: thin; }
.app-side.is-wide { width: 232px; }
.app-side.is-float { box-shadow: 8px 0 24px rgba(20,28,38,.16); }
.app-side.is-drawer { width: min(280px, 84vw); box-shadow: 8px 0 28px rgba(20,28,38,.22); animation: sideIn .18s ease; }
@keyframes sideIn { from { transform: translateX(-100%); } to { transform: none; } }
.app-side-scrim { position: fixed; inset: 0; z-index: 39; background: rgba(20,28,38,.35); }
.app-side-top { display: flex; justify-content: flex-end; padding: 10px 10px 4px; }
.app-side:not(.is-wide) .app-side-top { justify-content: center; }
.app-side-pin { width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: #5B6B75; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; }
.app-side-pin:hover { background: rgba(56,101,121,.1); }
.app-side-pin.is-on { color: #1F3A4D; background: rgba(56,101,121,.14); }
.app-side-list { list-style: none; margin: 0; padding: 4px 8px; display: flex; flex-direction: column; gap: 2px; }
.app-side-end { margin-top: auto; padding-bottom: 14px; }
.app-side-item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: #33424C; font: 500 15px/1.2 var(--font-sans); text-align: left; cursor: pointer; white-space: nowrap; }
.app-side-item:hover { background: rgba(56,101,121,.08); }
.app-side-item.is-on { background: #fff; color: #1F3A4D; font-weight: 600; box-shadow: 0 1px 2px rgba(20,28,38,.06); }
.app-side-item.is-sub { min-height: 36px; font-size: 14px; padding-left: 14px; }
.app-side-ico { flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: #386579; }
.app-side-ico .app-cardico { width: 20px; height: 20px; }
.app-side-lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.app-side-caret { color: #6B7880; transition: transform .15s; font-size: 18px; }
.app-side-caret.is-open { transform: rotate(90deg); }
.app-side-subs { list-style: none; margin: 2px 0 4px 22px; padding: 0 0 0 8px; border-left: 1px solid #C9D6DD; display: flex; flex-direction: column; gap: 1px; }
.app-side-subs .app-side-ico { width: 20px; height: 20px; }
.app-burger { width: 42px; height: 42px; border-radius: 12px; border: 0; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; margin-right: 4px; flex: none; }
.app-burger:hover { background: rgba(56,101,121,.08); }
[data-theme=dark] .app-side { background: #1E2830; }
[data-theme=dark] .app-side-item { color: #D5DEE3; }
[data-theme=dark] .app-side-item.is-on { background: #2A3741; color: #fff; }
.app-burger + * { margin-right: auto; }
.app-header-inner:has(.app-burger) { justify-content: flex-start; column-gap: 8px; }
/* Cycle tracker */
.app-cy { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.app-cyhero { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 16px; background: #F3EEF8; }
.app-cyhero.is-period { background: #FBE9EC; }
.app-cyhero.is-fertile { background: #F0EAFB; }
.app-cyhero.is-ovu { background: #EFE6F7; }
.app-cyheadrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app-cyhead { font: 700 30px/1.1 var(--font-display, var(--font-sans)); color: #1F3A4D; }
.app-cysub { color: #3F4A52; font-size: 15px; }
.app-cymode { width: auto; min-width: 170px; }
.app-cystats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: #3F4A52; padding: 0 4px; }
.app-cycal, .app-cycard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-raised, #fff); }
.app-cycalhead { display: flex; align-items: center; justify-content: space-between; }
.app-cygrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px 4px; }
.app-cydow { text-align: center; font: 600 11px/1 var(--font-sans); letter-spacing: .06em; color: #6B7178; padding: 4px 0; }
.app-cyday { position: relative; width: 34px; height: 34px; justify-self: center; padding: 0; border: 0; border-radius: 999px; background: none; font: 500 14px/1 var(--font-sans); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.app-cyday:hover { background: #F1F4F6; }
.app-cyday.is-other { opacity: .35; }
.app-cyday.is-today { box-shadow: inset 0 0 0 2px #1F3A4D; font-weight: 700; }
.app-cyday.is-per { background: #F4B6C2; color: #6B1E31; }
.app-cyday.is-per.is-light { background: #F9D5DC; }
.app-cyday.is-per.is-heavy { background: #E07A90; color: #fff; }
/* spotting: a dot in the same row as the other little marks under the day, so every dot sits the same distance from the circle */
.app-cylogdot.is-spotdot { background: #E07A90; }
.app-cyday.is-mb { background: #D9C3CC; }
.app-cyday.is-pr-period { box-shadow: inset 0 0 0 2px #F4B6C2; border: 0; background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(244,182,194,.35) 4px 7px); }
.app-cyday.is-pr-fertile { background: #E6DDF8; color: #5B3A8A; }
.app-cyday.is-pr-ovu, .app-cyday.is-ovuc { background: #9B4DE0; color: #fff; }
.app-cyday.is-ovuc::before { content: none; position: absolute; top: -4px; left: -2px; font-size: 11px; color: #8E5BB5; }
.app-cymark { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); font-size: 9px; line-height: 1; color: #C2405E; letter-spacing: .02em; }
.app-cylegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #4A545C; }
.app-cyk { display: inline-flex; align-items: center; gap: 6px; }
.app-cyk::before { content: ''; width: 12px; height: 12px; border-radius: 99px; }
.app-cyk.is-per::before { background: #F4B6C2; } .app-cyk.is-pr-period::before { box-shadow: inset 0 0 0 2px #F4B6C2; }
.app-cyk.is-pr-fertile::before { background: #E6DDF8; } .app-cyk.is-pr-ovu::before { background: #9B4DE0; } .app-cyk.is-spot::before { width: 7px; height: 7px; background: #E07A90; }
.app-cybars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 6px; }
.app-cybar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; min-width: 0; }
.app-cybarf { width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: #9DB7C4; }
.app-cybarn { font-size: 11px; color: #3F4A52; }
.app-cybarl { font-size: 10px; color: #6B7178; }
.app-cybbt { width: 100%; height: auto; }
.app-cylog .app-cyline { grid-template-columns: 96px 1fr; }
.app-cypair { display: flex; gap: 8px; } .app-cypair > * { flex: 1; min-width: 0; }
.app-cysyms { display: flex; flex-direction: column; gap: 4px; padding-left: 106px; }
.app-cysym { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.app-cylvl { display: inline-flex; gap: 6px; }
.app-cydot { width: 18px; height: 18px; border-radius: 99px; border: 1.5px solid #9DB7C4; background: #fff; cursor: pointer; padding: 0; }
.app-cydot.is-on { background: #386579; border-color: #386579; }
@media (max-width: 520px) { .app-cysyms { padding-left: 0; } }
.app-cycd { position: absolute; top: -5px; right: -6px; font: 600 9px/1 var(--font-sans); color: #9AA0A6; background: var(--surface-raised, #fff); border-radius: 6px; padding: 1px 2px; }
.app-cymonth { display: flex; align-items: center; gap: 8px; }
.app-cymsel { width: auto; font-weight: 700; border-color: transparent; background-color: transparent; }
.app-cytoday { border: 0; border-radius: 999px; padding: 4px 10px; background: #DCE8EE; color: #1F3A4D; font: 600 12px/1.2 var(--font-sans); cursor: pointer; }
.app-cyhead { display: flex; align-items: baseline; gap: 10px; }
.app-cybig { font: 800 64px/0.9 var(--font-display, var(--font-sans)); color: #1F3A4D; }
.app-cybiglbl { font: 600 13px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: #5B6670; }
.app-cyheadrow .app-gear { align-self: flex-start; }
.app-cybarf { background: #C9D6DD; }
.app-cybar.is-used .app-cybarf { background: #386579; }
.app-cybar.is-skip .app-cybarf { background: repeating-linear-gradient(135deg, #E4E7EA 0 4px, #F4F5F6 4px 8px); }
.app-cybar.is-skip .app-cybarn { color: #9AA0A6; }
.app-cybary { font-size: 10px; font-weight: 700; color: #3F4A52; min-height: 12px; }
.app-cyk.is-used::before { background: #386579; } .app-cyk.is-old::before { background: #C9D6DD; } .app-cyk.is-skip::before { background: repeating-linear-gradient(135deg, #D5D9DD 0 3px, #F4F5F6 3px 6px); }
.app-cymark { display: inline-flex; align-items: center; gap: 2px; }
.app-cylogdot { display: inline-block; width: 6px; height: 6px; border-radius: 99px; background: #F2B84B; }
.app-cyk.is-log::before { width: 7px; height: 7px; background: #F2B84B; }
.app-evdrag { display: flex; align-items: flex-start; gap: 4px; }
.app-evdrag > .app-ngrip { margin-top: 6px; }
.app-evdrag > .app-evrow { flex: 1; min-width: 0; }
.app-hlpasteprev { max-height: 240px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.app-hlpasterow { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 3px 0; }
.app-hlpasteamt { color: #3F4A52; font-weight: 600; }
.app-hlpastehead { font: 700 12px/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: #1F3A4D; margin-top: 6px; }
.fd-music { display: flex; flex-direction: column; gap: 8px; }
.fd-musicpick { width: 100%; }
.fd-spotify { width: 100%; height: 152px; border: 0; border-radius: 12px; }
.fd-spotify.is-full { height: min(70vh, 560px); }
.fd-musicset { display: flex; flex-direction: column; gap: 8px; }
.fd-musicrow { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; align-items: center; }
.fd-musicrow .is-bad { border-color: #C2405E; }
.fd-spset { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.fd-sp { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.fd-spnow { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fd-spart { flex: none; width: 88px; height: 88px; border-radius: 10px; background: #EEF1F3; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #6B7680; }
.fd-spart img { width: 100%; height: 100%; object-fit: cover; }
.fd-sp.is-full { width: 100%; max-width: 900px; margin: 40px auto 0; box-sizing: border-box; gap: 22px; }
.fd-sp.is-full .fd-spart { width: 260px; height: 260px; border-radius: 16px; }
.fd-sp.is-full .fd-spnow { gap: 28px; }
.fd-sp.is-full .fd-sptitle { font-size: 34px; }
.fd-sp.is-full .fd-spwho { font-size: 22px; }
.fd-sp.is-full .fd-spctl { justify-content: center; gap: 18px; }
.fd-sp.is-full .fd-spbtn { width: 56px; height: 56px; }
.fd-sp.is-full .fd-spbtn svg { width: 30px; height: 30px; }
.fd-sp.is-full .fd-spplay { width: 72px; height: 72px; }
.fd-sp.is-full .fd-spplay svg { width: 36px; height: 36px; }
.fd-sp.is-full .fd-spvol { flex-basis: 260px; }
.fd-sp.is-full .fd-sppick select { font-size: 18px; padding: 8px 10px; }
.fd-spmeta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.fd-sptitle { font-size: 20px; line-height: 1.3; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-spwho { line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-spbar { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.fd-sptime { font-size: 12px; color: #6B7680; font-variant-numeric: tabular-nums; min-width: 34px; }
.fd-spbar .fd-sptime:last-child { text-align: right; }
.fd-sptrack { flex: 1; height: 6px; border-radius: 3px; background: #E3E8EB; cursor: pointer; position: relative; padding: 6px 0; background-clip: content-box; }
.fd-spfill { position: absolute; left: 0; top: 6px; height: 6px; border-radius: 3px; background: #1F3A4D; }
.fd-spctl { display: flex; align-items: center; gap: 6px; }
.fd-spbtn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #2B2F33; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fd-spbtn:hover { background: #EEF1F3; }
.fd-spplay { width: 48px; height: 48px; background: #DCE8EE; color: #1F3A4D; }
.fd-spplay:hover { background: #CCDDE6; }
.fd-spvol { display: flex; align-items: center; gap: 6px; margin-left: auto; color: #6B7680; flex: 0 1 180px; min-width: 110px; }
.fd-spvol input { flex: 1; min-width: 0; accent-color: #1F3A4D; }
.fd-spvol.is-off { opacity: .45; }
.fd-sppicks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fd-sppick { display: flex; align-items: center; gap: 6px; color: #6B7680; min-width: 0; }
.fd-sppick select { flex: 1; min-width: 0; padding: 5px 8px; min-height: 0; }
.fd-spmsg { margin: 0; font-size: 13px; color: #A23B4F; }
.fd-sphint { margin: 0; font-size: 12px; }
/* Game cards */
.app-gmheadwrap { display: contents; }
.app-ggtabs { align-self: flex-start; }
.app-ggcard { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.app-ggtitle { text-align: center; font: 800 28px/1.1 var(--font-display, var(--font-sans)); color: #C8102E; }
.app-ggsub { text-align: center; font-weight: 700; color: #2B2F33; }
.app-ggsub2 { text-align: center; color: #4A4E52; margin-top: -4px; }
.app-ggstats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; margin: 6px 0; }
.app-ggstats > div { display: flex; flex-direction: column; gap: 2px; }
.app-ggstatl { font-weight: 700; color: #2B2F33; }
.app-ggsec h4 { margin: 8px 0 4px; font: 800 17px/1.2 var(--font-sans); color: #C8102E; }
.app-ggtext p { margin: 0 0 6px; line-height: 1.45; }
.app-gglab { color: #C8102E; }
.app-gglist { display: flex; flex-direction: column; }
.app-ggitem { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.app-ggitem .app-small { margin-left: auto; }
.app-ggitem.is-empty { color: #6B7178; }
.app-gghead5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.app-ggarea textarea { width: 100%; }
.app-gerr--stop .app-gerr-text { flex: 0 1 auto; }
.app-gerr-retpill { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; background: #ECEEF0; color: #4A4E52; font: 600 11px/18px var(--font-sans); flex: none; }
.app-gerr-retico { width: 12px; height: 12px; }
.app-gerr-cnt { margin-left: auto; width: 54px; flex: none; text-align: right; font: 600 11px/18px var(--font-sans); color: #6B7178; white-space: nowrap; }
.app-gmbtn-sp { width: 30px; flex: none; }
.app-gnav .app-gmbtn-sp { width: 22px; }
.app-gstore--gray { background: #ECEEF0 !important; border-color: #D5D9DD !important; color: #4A4E52 !important; }
.app-gtools { display: flex; gap: 8px; align-items: center; }
.app-gseg button { padding: 5px 9px; }
.app-gstorecols { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); align-items: start; }
.app-gstorecol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.app-gstorehead { display: flex; align-items: center; gap: 8px; margin: 0; padding: 2px 4px; font: 700 15px/1.3 var(--font-sans); color: #2B2F33; }
.app-gstorehead .app-gpill-n { margin-left: 2px; }
.app-gseg button { min-height: 32px; }
.app-gbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-evchip.is-on { background: var(--evacc, var(--accent)); border-color: var(--evacc, var(--accent)); }
.app-evchip.is-today:not(.is-on) { border-color: var(--evacc, var(--accent)); }
.app-evwrap .app-evdayhead { color: var(--evacc, inherit); display: flex; align-items: center; justify-content: space-between; }
.app-evwrap .bh-card-head .app-cardico { color: var(--evacc, currentColor); }
.app-evcw .bh-card-head { background: var(--evh); }
.app-evcw > .bh-card { border-color: color-mix(in srgb, var(--evh) 60%, #C9D6DD); }
.app-evx { margin-left: auto; }
.app-evfoot { position: sticky; bottom: 0; z-index: 5; padding: 12px 0; background: var(--surface, #fff); border-top: 1px solid var(--border); }
.app-evcolrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-evsw { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.app-evsw .fd-swatch { width: 26px; height: 26px; }
.fd-setlist li.is-off .fd-setname { color: #9AA0A6; text-decoration: line-through; }
.app-holstrip { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.app-holcard { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--evacc, #386579) 35%, #fff); background: color-mix(in srgb, var(--evacc, #386579) 9%, #fff); color: var(--ink); text-decoration: none; }
.app-holhead { display: flex; align-items: center; gap: 8px; color: var(--evacc, #386579); }
.app-holhead strong { color: var(--ink); }
.app-holitems { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.app-holitem.is-done { text-decoration: line-through; color: #8A9096; }
.app-holtime, .fd-holtime { font-weight: 700; color: var(--evacc, #386579); margin-right: 5px; }
.fd-hol { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--evacc, #386579) 10%, #fff); border-left: 5px solid var(--evacc, #386579); }
.fd-holhead { font-weight: 700; font-size: 1.05em; margin-bottom: 4px; }
.fd-holitem { padding: 2px 0; }
.fd-hol { font-size: 18px; } .fd-holhead { font-size: 19px; }
.fd-chorelist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; font-size: 17px; }
.fd-chorelist li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.fd-chorelist li.is-done { color: #8A9096; text-decoration: line-through; }
.fd-gbox.is-on { background: #DCE8EE; color: #1F3A4D; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.fd-mark { border: 0; cursor: pointer; position: relative; overflow: hidden; -webkit-user-select: none; user-select: none; touch-action: none; }
.fd-mark::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: #386579; }
.fd-mark.is-holding::after { width: 100%; transition: width 1.5s linear; }
.fd-mark { background: none; padding: 0; }
.app-wl-six { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.app-wl-slot { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; background: var(--surface-raised, #fff); display: flex; flex-direction: column; gap: 8px; }
.app-wl-slot.is-empty { border-style: dashed; background: #F7F8F9; }
.app-wl-slothead { display: flex; align-items: center; gap: 8px; color: #1F3A4D; }
.app-wl-slothead .app-small { color: #6B7178; }
.app-wl-slothead > :last-child { margin-left: auto; }
.app-wl-six { align-items: start; }
/* Games: heading tools beside the title; How to Play beside the games */
.app-gmhead { justify-content: flex-start; }
.app-gmhead > .app-h2 { margin-right: 6px; }
.app-gmlayout.has-guide { display: grid; grid-template-columns: minmax(0, 900px) minmax(380px, 1fr); gap: 20px; align-items: start; }
.app-ggpanel { position: sticky; top: 12px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-raised, #fff); overflow: hidden; }
.app-ggbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.app-ggpick { flex: 1; min-width: 0; font-weight: 600; }
.app-ggbar .app-dialog-x { margin-left: 2px; }
.app-ggtabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.app-ggtabs button { border: 0; background: none; padding: 10px 12px 9px; font: 600 14px/1 var(--font-sans); color: #6B7178; border-bottom: 3px solid transparent; cursor: pointer; }
.app-ggtabs button.is-on { color: #1F3A4D; border-bottom-color: #1F3A4D; }
.app-ggscroll { overflow: auto; padding: 14px 16px 18px; }
.app-ggbody { display: flex; flex-direction: column; gap: 8px; }
.app-ggbody .app-ggtitle { text-align: left; font: 800 22px/1.15 var(--font-sans); color: #C8102E; }
.app-ggmeta { display: flex; flex-wrap: wrap; gap: 6px; }
.app-ggmeta span { padding: 2px 9px; border-radius: 999px; background: #ECEEF0; color: #3F4A52; font: 600 12px/18px var(--font-sans); }
.app-ggcols { column-width: 300px; column-gap: 24px; font-size: 14px; }
.app-ggsec { break-inside: avoid-column; margin: 0 0 10px; }
.app-ggsec h4 { margin: 4px 0 4px; font: 800 14px/1.2 var(--font-sans); color: #C8102E; text-transform: uppercase; letter-spacing: .04em; }
.app-ggtext p { margin: 0 0 4px; line-height: 1.4; }
.app-ggtext .app-ggbul { padding-left: 14px; position: relative; }
.app-ggtext .app-ggbul::before { content: '\2022'; position: absolute; left: 2px; color: #C8102E; }
.app-ggsp { height: 6px; }
.app-gglink { align-self: flex-start; }
@media (max-width: 1000px) {
  .app-gmlayout.has-guide { display: block; }
  .app-ggpanel { position: fixed; inset: 0; z-index: 60; max-height: none; border-radius: 0; border: 0; }
}
.app-ggtabs { align-self: stretch; }
.app-vg { display: flex; flex-direction: column; border: 1.5px solid #2B2F33; border-radius: 4px; overflow: hidden; }
.app-vgrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) 56px; border-bottom: 1.5px solid #2B2F33; }
.app-vgrow:last-child { border-bottom: 0; }
.app-vgcell { min-height: 64px; padding: 6px; border: 0; border-right: 1.5px solid #2B2F33; background: #fff; display: flex; align-items: flex-end; font: 500 17px/1.2 var(--font-sans); color: #1F3A4D; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.app-vgcell.is-open { font-size: 14px; background: #F7F8F9; }
.app-vgrow > .app-vgcell:nth-child(6) ~ .app-vgcell { grid-column: auto; }
.app-vgcolor { grid-column: 7; min-height: 64px; }
.app-vg--sm .app-vgcell { min-height: 40px; font-size: 14px; cursor: default; }
.app-vg--sm .app-vgcolor { min-height: 40px; }
.app-vgtools { align-items: center; }
.app-vgedit { font-family: var(--font-sans); }
@media (max-width: 520px) { .app-vgrow { grid-template-columns: repeat(3, minmax(0, 1fr)) 28px; } .app-vgcolor { grid-column: 4; grid-row: 1 / span 2; } .app-vgcell { min-height: 52px; font-size: 15px; border-bottom: 1px solid #C9CED3; } }
.app-vmodes { padding: 0; overflow-x: auto; flex-wrap: nowrap; } .app-vmodes button { white-space: nowrap; }
/* Docs & Links */
.app-docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.app-docnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; }
.app-docnavitem { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: 500 14px/1.25 var(--font-sans); color: #2B2F33; text-align: left; cursor: pointer; }
.app-docnavitem:hover { background: #F1F4F6; }
.app-docnavitem.is-on { background: #DCE8EE; color: #1F3A4D; font-weight: 700; }
.app-docnavsub { padding-left: 22px; font-size: 13px; }
.app-docmain { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.app-docbar { display: flex; gap: 8px; align-items: center; }
.app-docsearch { flex: 1; max-width: 420px; }
.app-doccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.app-doccard { position: relative; border: 1px solid var(--border); border-left: 5px solid var(--dc, #9DB7C4); border-radius: 12px; background: var(--surface-raised, #fff); }
.app-doccardmain { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 12px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.app-docico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--dc, #9DB7C4) 16%, #fff); color: var(--dc, #386579); }
.app-doctext { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.app-doctext strong { font-size: 15px; color: #1F3A4D; }
.app-docfold { font: 600 11px/1.2 var(--font-sans); color: #6B7178; text-transform: uppercase; letter-spacing: .04em; }
.app-docsnip { font-size: 13px; color: #5B6670; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-docedit { position: absolute; top: 8px; right: 8px; }
.app-docupl { cursor: pointer; } .app-docupl input { display: none; }
.md-edit { font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; min-height: 320px; }
.md-doc { font-size: 15px; line-height: 1.55; color: #2B2F33; overflow-wrap: anywhere; }
.md-doc--box { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; max-height: 60vh; overflow: auto; }
.md-doc h2 { font: 800 22px/1.2 var(--font-sans); color: #1F3A4D; margin: 18px 0 8px; }
.md-doc h3 { font: 800 18px/1.25 var(--font-sans); color: #1F3A4D; margin: 16px 0 6px; }
.md-doc h4, .md-doc h5, .md-doc h6 { font: 700 15px/1.3 var(--font-sans); color: #386579; margin: 12px 0 4px; }
.md-doc p { margin: 0 0 8px; }
.md-doc ul, .md-doc ol { margin: 0 0 8px; padding-left: 22px; }
.md-doc li { margin: 2px 0; }
.md-doc hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }
.md-doc blockquote { margin: 6px 0; padding: 4px 12px; border-left: 3px solid #9DB7C4; color: #3F4A52; }
.md-doc .md-tablewrap { overflow-x: auto; margin: 8px 0 12px; }
.md-doc table { border-collapse: collapse; min-width: 100%; font-size: 14px; }
.md-doc th, .md-doc td { border: 1px solid #D5D9DD; padding: 6px 8px; text-align: left; vertical-align: top; }
.md-doc th { background: #EEF2F4; color: #1F3A4D; }
.md-doc code { background: #F1F4F6; padding: 0 4px; border-radius: 4px; }
.md-doc .md-img { display: block; max-width: 100%; height: auto; margin: 8px 0; border: 1px solid var(--border); border-radius: 6px; }
.md-doc a { color: #1F3A4D; }
@media (max-width: 760px) {
  .app-docs { grid-template-columns: 1fr; }
  .app-docnav { position: static; flex-direction: row; overflow-x: auto; }
  .app-docnavitem { white-space: nowrap; }
}
.app-apoltabs { overflow-x: auto; flex-wrap: nowrap; padding: 0; } .app-apoltabs button { white-space: nowrap; }
.app-apoldl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; margin: 0; }
.app-apoldl dt { font: 700 12px/1.4 var(--font-sans); color: #6B7178; text-transform: uppercase; letter-spacing: .04em; }
.app-apoldl dd { margin: 0; }
@media (max-width: 600px) { .app-apoldl { grid-template-columns: 1fr; } .app-apoldl dd { margin-bottom: 6px; } }
/* Weekly check-in */
.app-ci { max-width: 1200px; }
.app-cihead { flex-wrap: wrap; }
.app-cinav { display: inline-flex; align-items: center; gap: 6px; }
.app-ciweek { width: auto; }
.app-cigroup { display: flex; flex-direction: column; gap: 8px; }
.app-cigrouphead { margin: 8px 0 0; font: 800 15px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--cic, #1F3A4D); }
.app-cigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.app-cigrid.is-one { grid-template-columns: 1fr; }
.app-cisec { border: 1px solid var(--border); border-top: 4px solid var(--cic, #9DB7C4); border-radius: 12px; background: var(--surface-raised, #fff); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.app-cisechead { font: 700 14px/1.2 var(--font-sans); color: #1F3A4D; }
.app-cinote { width: 100%; resize: vertical; font-size: 14px; }
.app-cidays { display: flex; flex-direction: column; gap: 6px; }
.app-ciday { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: start; }
.app-cidayname { display: flex; flex-direction: column; font-size: 13px; color: #5B6670; padding-top: 6px; }
.app-cidayname strong { color: #1F3A4D; font-size: 14px; }
.app-cidaybody { display: flex; flex-direction: column; gap: 4px; }
.app-cievents { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: #6B7178; }
.app-cimeals { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; font-size: 14px; }
.app-cimeal { display: flex; gap: 8px; } .app-cimeal strong { width: 34px; flex: none; color: #1F3A4D; }
.app-citpl, .app-citpls { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.app-citplg { border: 1px solid var(--border); border-left: 5px solid var(--cic, #9DB7C4); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.app-citpls { padding-left: 24px; }
.app-citplrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-citplrow > input { flex: 1; min-width: 140px; }
.app-citplname { font-weight: 700; }
.app-citpltype { width: auto; }
@media print { .app-side, .app-burger, .app-cinav button, .app-cihead .app-fright { display: none !important; } .app-cinote { border: 0; } }
@media (max-width: 600px) { .app-ciday { grid-template-columns: 1fr; gap: 2px; } }
.app-gmth:empty { border-bottom-color: transparent; }
.app-balance-card { min-width: 0; }
.app-balance-card .bh-chip, .app-balance-card > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.app-balance-num { white-space: nowrap; flex: none; }
@media (max-width: 600px) {
  .app-balance-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-2); }
  .app-balance-card > :first-child { grid-column: 1 / -1; justify-self: start; max-width: 100%; }
}
.app-hlrecbtns { margin-bottom: 10px; }
.app-hlvdesc { font-size: .86em; font-style: italic; color: var(--ink-muted); }
.app-hltimes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.app-hltime { display: inline-flex; align-items: center; gap: 6px; }
.app-hltimel { font: 700 11px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.app-hltimev { font-weight: 600; color: var(--ink); }
.app-hltimebtn { border: 0; background: transparent; color: var(--accent); cursor: pointer; padding: 2px 4px; display: inline-flex; align-items: center; font-size: 13px; }
.app-hltimebtn svg { width: 16px; height: 16px; }
.app-hltimerun { display: inline-flex; align-items: center; gap: 2px; background: #DCE8EE; color: #1F3A4D; border-radius: 6px; padding: 1px 4px 1px 8px; font-variant-numeric: tabular-nums; }
.app-hltimerun.is-done { background: #F6D9D3; color: #8A2A1B; }
.app-hlegrid .app-hlg-ord { grid-column: 1; }
.app-hlegrid .app-hlg-ord + .app-hlg-sec1 { grid-column: 2 / -1; }
.app-hlordtog { display: inline-flex; gap: 4px; margin-left: auto; }
.app-hlordnum { font: 700 11px/1 var(--font-sans); }
.app-hlvord { display: inline-block; min-width: 1.4em; font-size: .8em; font-weight: 700; color: var(--ink-muted); }

.app-hltimein { display: flex; align-items: center; gap: 6px; }
.app-hltimein .bh-input { width: 3.2em; text-align: center; }
.app-hltimein span { font-size: .85rem; color: var(--ink-muted); }
.app-hlinfo { width: 13px; height: 13px; border-width: 1px; font-size: 9px; font-weight: 600; vertical-align: middle; opacity: .8; }
.bh-label .app-hlinfo { margin-left: 4px; }
.app-hlpartamt { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.app-hlpartamt .app-hlqty { width: 3.6em; text-align: center; }
.app-hlpartunit { width: auto; min-width: 5.5em; padding: 2px 4px; }
.app-hlpartmakes { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; }
.app-hlpartmakes .app-hlqty { width: 3.6em; text-align: center; }
.app-hlpartview li { padding: 3px 0; }
.app-hlrotrow .app-hlfoodbtn.app-hlkindbtn { display: flex; align-items: center; justify-content: flex-start; gap: 10px; border-bottom: 0; color: var(--ink); }
.app-hlkindbtn > .app-hlfoodname { flex: 1 1 auto; min-width: 0; text-align: left; color: var(--ink); }
.app-hlkindbtn > .app-small { flex: none; }
.app-hlrotlist .app-hlrotrow:has(.app-hlkindbtn) { border-left: 0; padding-left: 0; }
.app-hlrotrow .app-hlfoodbtn.app-hlkindbtn { min-height: 54px; padding: 8px 0; height: auto; overflow: visible; }
.app-hlkindbtn > .app-hlrecthumb { width: 38px; height: 38px; }
.app-hlrotlist .app-hlrotrow:has(.app-hlkindbtn) { min-height: 54px; }
.app-hlrecbtns { padding-left: 4px; }
.app-hlbrowser > .app-hlreccount { margin: 8px 0 4px; padding-left: 4px; }
.app-hlrecthumb.is-broken { display: inline-block; background: var(--surface-sunken); border: 1px dashed var(--border); }
.app-hlimprow { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; } .app-hlimpsec { margin-top: 6px; }
.app-hlnav { display: flex; flex-direction: column; }
.app-hlmaintabs { padding: 0; flex-wrap: wrap; gap: 2px; border-bottom: 0; }
.app-hlmaintabs button { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; padding: 10px 14px 9px; border-radius: 10px 10px 0 0; border-bottom: 3px solid transparent; }
.app-hlmaintabs button svg { width: 18px; height: 18px; opacity: .75; }
.app-hlmaintabs button:hover { color: #1F3A4D; }
.app-hlmaintabs button.is-on { background: #DCE8EE; color: #1F3A4D; border-bottom-color: #DCE8EE; }
.app-hlmaintabs button.is-on svg { opacity: 1; }
.app-hlsubtabs { background: #DCE8EE; border-radius: 0 12px 12px 12px; padding: 2px 10px; flex-wrap: wrap; border-bottom: 0; margin-bottom: 4px; }
.app-hlsubtabs button { font-size: 13px; padding: 9px 10px 7px; border-bottom-width: 2px; color: #4A5A66; }
.app-hlsubtabs button.is-on { color: #1F3A4D; border-bottom-color: #1F3A4D; }
.app-dochidden { display: none; }
.app-hlsset { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 13px; }
.app-hlssrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-hlssrow > .bh-label { width: 44px; margin: 0; }
.app-hlssrow label { display: inline-flex; align-items: center; gap: 4px; }
.app-hlssrow select.bh-input { width: auto; padding: 3px 6px; font-size: 13px; min-height: 0; }
.app-hlsorder { margin: 0 0 0 54px; padding: 0; list-style: none; }
.app-hlsorder li { display: flex; align-items: center; gap: 4px; padding: 2px 0; }
.app-hlsorder li > span { flex: 1; }
.app-hlsslinks { justify-content: flex-start; padding-left: 54px; }
.app-hlsnote { margin: 0 0 0 54px; }
.app-hlsgroupsel { width: 7.5em; flex: none; padding: 2px 4px; font-size: 12px; min-height: 0; height: 26px; }

.app-hlsdiag { margin: 0 0 0 54px; color: var(--ink-muted); }

/* Add Food, tighter: serving size on one line, meals as one short row, points on one line */
.app-hlfoodcompact .app-hlservcard { grid-auto-flow: column; grid-template-columns: 1fr auto auto; align-items: baseline; justify-items: start; gap: 6px; padding: 6px 12px; border-radius: 10px; }
.app-hlfoodcompact .app-hlservtop { border: 0; padding: 0; width: auto; text-align: left; font-size: 12px; color: var(--ink-muted); }
.app-hlfoodcompact .app-hlservqty { font-size: 20px; line-height: 24px; }
.app-hlfoodcompact .app-hlservunit { font-size: 13px; }
.app-hlfoodcompact .app-hlmealpill { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 2px; }
.app-hlfoodcompact .app-hlmealpill svg { width: 14px; height: 14px; }
.app-hlfoodcompact .app-hldateline { margin: 0; }
.app-hlfoodcompact .app-hlcountq { margin-top: 2px; }
.app-hlfoodcompact .app-hlptsbox { padding: 6px 12px; flex-wrap: nowrap; }
.app-hlfoodcompact .app-hlptsbox strong { font-size: 18px; }
.app-hlfoodcompact .app-hlptsin { display: flex; align-items: center; gap: 6px; }
.app-hlfoodcompact .app-hlptsin input { width: 56px; padding: 3px 6px; min-height: 0; text-align: right; }

/* a food's other sizes */
.app-hlsizes { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.app-hlsizes > .app-linkbtn { align-self: flex-start; }
.app-hlsizerow { display: grid; grid-template-columns: 1fr 1.3fr 90px auto auto; gap: 8px; align-items: center; }
.app-hlsizewt { display: flex; align-items: center; gap: 4px; }
.app-hlsizewt input { width: 100%; text-align: right; }
.app-hlsizewt em { font-style: normal; color: var(--ink-muted); font-size: 12px; }
.app-hlsizenums { padding: 6px 0 4px; }

/* a logged food: two lines, points and amount on the right */
.app-hlfline2 { padding: 7px 4px; }
.app-hlfline2 .app-hlfbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: stretch; }
.app-hlfrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.app-hlfrow > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-hlfpts { flex: none; font-weight: 600; font-size: 13px; color: #1F3A4D; }
.app-hlfamt { flex: none; font-size: 12.5px; color: var(--ink-muted); }
.app-hlfline2 .app-hlfsub { font-size: 12.5px; color: var(--ink-muted); }

/* food card: Restaurant as its own small switch; a lighter Save */
.app-hlrestsw { justify-self: start; align-self: flex-start; margin: 2px 0; }
.app-hltrackbar .app-hltrack.app-hlsavelight { background: #1F3A4D; font-weight: 500; letter-spacing: .01em; font-size: 13.5px; padding: 6px 18px; box-shadow: none; }

/* ---------- Add Food, redone: light gray page, white boxes, the family blue ---------- */
.app-hlfoodv2 { display: flex; flex-direction: column; gap: 10px; margin: -12px -14px -14px; padding: 12px 14px 0; background: #F4F5F6; min-height: 100%; }
.app-hlfoodv2 input, .app-hlfoodv2 select { font-weight: 400; }
.app-hlv2head { display: flex; flex-direction: column; gap: 2px; }
.app-hlv2name { border: 0; background: transparent; font: 600 20px/26px var(--font-sans); color: #1E2428; padding: 2px 0; width: 100%; }
.app-hlv2sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-hlv2sub input { border: 0; background: transparent; padding: 2px 0; font-size: 14px; color: #6B7680; width: 100%; }
.app-hlv2name:focus, .app-hlv2sub input:focus { outline: none; box-shadow: 0 1px 0 #1F3A4D; }
.app-hlv2amt { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 12px 10px 10px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(20,30,40,.08); cursor: pointer; }
.app-hlv2qty { font: 500 28px/34px var(--font-sans); color: #1F3A4D; }
.app-hlv2std { font-size: 12.5px; color: #6B7680; }
.app-hlfoodv2 .app-hlmealpills { gap: 8px; }
.app-hlfoodv2 .app-hlmealpill { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 4px; border: 1.5px solid transparent; border-radius: 12px; background: #fff; color: #2B2F33; font: 400 13px/16px var(--font-sans); box-shadow: 0 1px 2px rgba(20,30,40,.06); }
.app-hlfoodv2 .app-hlmealpill svg { width: 15px; height: 15px; }
.app-hlfoodv2 .app-hlmealpill.is-on { border-color: #1F3A4D; background: #DCE8EE; color: #1F3A4D; }
.app-hlv2date { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: #fff; color: #2B2F33; font: 400 14px/18px var(--font-sans); cursor: pointer; box-shadow: 0 1px 2px rgba(20,30,40,.06); }
.app-hlv2h { margin: 6px 0 0; font: 500 15px/20px var(--font-sans); color: #1E2428; }
.app-hlv2rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 8px 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(20,30,40,.06); }
.app-hlr2 { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.app-hlr2c { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ring); padding: 3px; box-sizing: border-box; }
.app-hlr2in { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; font-size: 13px; color: #2B2F33; }
.app-hlr2l { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #6B7680; }
.app-hlfoodv2 .app-hlptsbox { padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(20,30,40,.06); flex-wrap: nowrap; }
.app-hlfoodv2 .app-hlptsbox strong { font-size: 17px; font-weight: 600; color: #1F3A4D; }
.app-hlfoodv2 .app-hlptsin { display: flex; align-items: center; gap: 6px; }
.app-hlfoodv2 .app-hlptsin input { width: 56px; padding: 3px 6px; min-height: 0; text-align: right; }
.app-hlfoodv2 .app-hlcountq { background: #fff; border-radius: 12px; padding: 6px 12px 8px; box-shadow: 0 1px 2px rgba(20,30,40,.06); }
.app-hlv2box { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(20,30,40,.06); }
.app-hlv2note { margin: 0; font-size: 11.5px; color: #6B7680; letter-spacing: .03em; text-transform: uppercase; }
.app-hlfoodv2 .app-hlserv4 { padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.app-hlfoodv2 .app-hlnutr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3); border: 0; }
.app-hlfoodv2 .app-hlnrow { padding: 3px 2px; font-size: 13px; border-bottom: 1px solid var(--border); }
.app-hlfoodv2 .app-hlnin input { width: 56px; text-align: right; }
.app-hlfoodv2 .bh-label { font-size: .68rem; }
.app-hlv2bar { position: sticky; bottom: -14px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px -14px 0; padding: 10px 14px 14px; background: #fff; border-top: 1px solid var(--border); border-radius: 0 0 14px 14px; }
.app-hlv2barnote { font-size: 13px; color: #6B7680; }
.app-hlv2barnote b { color: #1F3A4D; font-weight: 600; }
.app-hlv2track { border: 0; border-radius: 999px; background: #1F3A4D; color: #fff; padding: 7px 20px; font: 500 14px/18px var(--font-sans); cursor: pointer; }
.app-hlv2track:disabled { opacity: .5; cursor: default; }

/* slide-up panel: serving picker, date picker */
.app-hlsheetbg { position: fixed; inset: 0; z-index: 60; background: rgba(20,25,30,.35); display: flex; align-items: flex-end; justify-content: center; }
.app-hlsheet { width: 100%; max-width: 560px; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(0,0,0,.15); animation: hlsheetup .18s ease-out; max-height: 85vh; display: flex; flex-direction: column; }
@keyframes hlsheetup { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.app-hlsheethead { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.app-hlsheettitle { text-align: center; font: 500 15px/20px var(--font-sans); color: #2B2F33; }
.app-hlsheetbtn { border: 1px solid #1F3A4D; background: #fff; color: #1F3A4D; border-radius: 999px; padding: 5px 14px; font: 500 13px/16px var(--font-sans); cursor: pointer; }
.app-hlsheetbtn.is-main { background: #1F3A4D; color: #fff; }
.app-hlsheetbtn:disabled { opacity: .5; }
.app-hlsheetbody { padding: 10px 14px 18px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.app-hlsheettabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); }
.app-hlsheettab { border: 0; background: none; padding: 8px 2px; font: 500 13px/16px var(--font-sans); color: #6B7680; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.app-hlsheettab.is-on { color: #1F3A4D; border-bottom-color: #1F3A4D; }
.app-hlpickbox { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.app-hlpickstd { margin: 0; text-align: center; font-size: 13px; color: #6B7680; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.app-hlwhls { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; position: relative; }
.app-hlwhls::before { content: ''; position: absolute; left: 0; right: 0; top: 40px; height: 40px; border-top: 1px solid #C9D3D9; border-bottom: 1px solid #C9D3D9; pointer-events: none; }
.app-hlwhl { height: 120px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.app-hlwhl::-webkit-scrollbar { display: none; }
.app-hlwhl:focus { outline: none; }
.app-hlwhlpad { height: 40px; }
.app-hlwhlopt { height: 40px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-size: 16px; color: #8A949B; cursor: pointer; white-space: nowrap; }
.app-hlwhlopt.is-on { color: #1F3A4D; font-size: 18px; font-weight: 500; }
.app-hlcalhead { display: flex; align-items: center; justify-content: space-between; font: 500 16px/20px var(--font-sans); color: #2B2F33; }
.app-hlcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.app-hlcaldow { text-align: center; font-size: 12px; color: #6B7680; }
.app-hlcalday { border: 0; border-radius: 10px; background: #F4F5F6; padding: 9px 0; font: 400 14px/16px var(--font-sans); color: #2B2F33; cursor: pointer; }
.app-hlcalday.is-out { background: transparent; color: #B8C0C6; }
.app-hlcalday.is-today { box-shadow: inset 0 0 0 1px #1F3A4D; }
.app-hlcalday.is-on { background: #1F3A4D; color: #fff; }
.app-hlfoodv2 .bh-label { color: #6B7680; }

/* food card: two light switches in a row, section dividers */
.app-hlflags { display: flex; gap: 22px; align-items: center; padding: 2px 0; }
.app-hllightsw { gap: 8px; color: #2B2F33; font-weight: 400; }
.app-hllightsw .app-switchtrack { background: #E3E6E8; border: 0; }
.app-hllightsw .app-switchknob { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.app-hllightsw.is-on .app-switchtrack { background: #1F3A4D; }
.app-hlsecdiv { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 8px; padding: 8px 0 4px; border: 0; border-top: 1px solid var(--border); background: none; font: 500 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: #6B7680; cursor: pointer; text-align: left; }
.app-hlsecdiv.is-static { cursor: default; }
.app-hlsecchev { font-size: 12px; color: #6B7680; }
.app-hlsizehint { margin: 0; color: #6B7680; }
.app-hllightsw .app-switchlbl, .app-hllightsw.is-on .app-switchlbl { color: #2B2F33; font-weight: 400; }

.app-hlptsr { display: flex; align-items: center; gap: 12px; flex: none; }
.app-hlfoodv2 .app-hlptsinput { width: 60px; padding: 3px 6px; min-height: 0; text-align: right; }
.app-hlptspen { width: 28px; height: 28px; }

.app-hlv2namerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.app-hlv2namerow .app-hlv2name { flex: 1; min-width: 0; }
.app-hlv2subline { font-size: 14px; color: #6B7680; }
.app-hlv2headedit .app-hlv2headdone { align-self: flex-end; }
.app-hlv2two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-hlv2two .bh-input { width: 100%; box-sizing: border-box; }

/* Health in the family blues: navy for the main color, a lighter steel blue beside it (teal stays only where it means something) */
.app-hlroot, .app-dialog:has(.app-hlfoodv2) { --accent: #1F3A4D; --on-accent: #fff; --accent-soft: #C9DAE4; --on-accent-soft: #1F3A4D; --accent-tint: #DCE8EE; --primary: #1F3A4D; --primary-soft: #C9DAE4; --primary-tint: #EAF1F5; --focus-ring: #4A7A96; --hl-blue2: #4A7A96; }
/* the lighter blue beside the navy: meal names and icons, bars, the points arc */
.app-hlroot .app-hlmealrow > strong, .app-hlroot .app-hlmealrow .app-cardico { color: var(--hl-blue2); }
.app-hlroot .app-hlfico { color: #7FA2B6; }
.app-hlroot .app-hlbar > * { background: var(--hl-blue2); }
.app-hlroot .app-hlgfill { stroke: var(--hl-blue2); }
.app-hlroot .app-hlgtrack { stroke: #E3EBF0; }
.app-hlroot .bh-card-head .app-cardico { color: var(--hl-blue2); }
.app-hllgname > button, .app-hllgname > a { align-self: flex-start; text-align: left; padding-left: 0; padding-right: 0; }

/* a logged food you can drag: grip on the left */
.app-hlfdrag { display: flex; align-items: center; gap: 2px; }
.app-hlfdrag > .app-ngrip { flex: none; opacity: .45; }
.app-hlfdrag:hover > .app-ngrip { opacity: .9; }
.app-hlfdrag > .app-hlfline { flex: 1; min-width: 0; }

/* a logged food: name (and its gray line, if any) on the left, centered; points over amount on the right */
.app-hlfline2 { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px; }
.app-hlfleft { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.app-hlfleft > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-hlfleft .app-hlbrand { font-size: 12.5px; color: var(--ink-muted); }
.app-hlfright { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.app-hlreclink { display: inline-flex; align-items: center; gap: 4px; color: var(--hl-blue2, #4A7A96); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(74,122,150,.4); cursor: pointer; }
.app-hlreclink .app-cardico { width: 13px; height: 13px; }

/* food icons */
.app-foodico { display: inline-block; width: 26px; height: 26px; object-fit: contain; flex: none; vertical-align: middle; }
.app-foodico.is-emoji { font-size: 22px; line-height: 26px; text-align: center; }
.app-hlsico { display: inline-flex; flex: none; margin-right: 10px; }
.app-hlfoodrow, .app-hlfoodsrow > .app-hlfoodbtn { align-items: center; }
.app-foodicopickbtn { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; border: 0; background: #F4F5F6; border-radius: 12px; padding: 6px 12px 6px 8px; cursor: pointer; color: #6B7680; }
.app-foodicopickbtn .app-foodico { width: 34px; height: 34px; }
.app-foodicogrp { display: flex; flex-direction: column; gap: 6px; }
.app-foodicogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.app-foodicobtn { border: 1.5px solid transparent; background: #F4F5F6; border-radius: 10px; padding: 6px; cursor: pointer; display: grid; place-items: center; }
.app-foodicobtn.is-on { border-color: #1F3A4D; background: #DCE8EE; }
.app-foodicoauto { align-self: flex-start; }
.app-foodicoauto.is-on { font-weight: 600; }
.app-hlfoodsrow > .app-hlfoodbtn > .app-hlfoodname { flex: 1; text-align: left; }
.app-rtabs > .app-rclose { margin-left: auto; flex: none; }
.app-head-aside > .app-rmore { order: -1; }

/* Health tabs on a phone: all five on one line */
@media (max-width: 560px) {
  .app-hlmaintabs { flex-wrap: nowrap; gap: 0; justify-content: space-between; }
  .app-hlmaintabs button { flex-direction: column; gap: 2px; font-size: 11.5px; padding: 7px 4px 6px; flex: 1 1 0; min-width: 0; border-radius: 10px 10px 0 0; }
  .app-hlmaintabs button svg { width: 18px; height: 18px; }
}

.app-foodico.is-soft { filter: saturate(.5) brightness(1.06); opacity: .9; }
.app-foodico.is-line { display: inline-block; background: #4A7A96; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.app-foodicolooknote { margin: 0; color: #6B7680; }

/* Checks: name, bar, count, then - and + */
.app-hlchk2 li { display: grid; grid-template-columns: minmax(96px, 1.1fr) 1.4fr auto auto; align-items: center; gap: 10px; }
.app-hlchkname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-hlchkextra { font-weight: 400; font-size: 12px; color: #4A7A96; }
.app-hlchkn { font-size: 13px; color: var(--ink-muted); white-space: nowrap; min-width: 44px; text-align: right; }
.app-hlchkbtns { display: inline-flex; gap: 4px; }
.app-hlchkb { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: #1F3A4D; font: 500 15px/1 var(--font-sans); cursor: pointer; padding: 0; }
.app-hlchkb:disabled { opacity: .35; cursor: default; }
.app-hlchktitle { display: inline-flex; align-items: center; gap: 6px; }
.app-hlinfo { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #B8C4CC; background: none; color: #8A949B; font: italic 500 10px/1 Georgia, serif; padding: 0; cursor: pointer; }
.app-hlchkinfo { margin: 0 0 6px; }
.app-hlchk2 li { grid-template-columns: minmax(0, 1.2fr) minmax(40px, 1fr) auto auto; }
.app-hlchkname { white-space: normal; line-height: 1.2; }
/* food search results: icon on the left, name and details beside it */
.app-hlfoodrow { display: grid !important; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: left; }
.app-hlfoodrow.has-box { grid-template-columns: auto auto 1fr; }
.app-hlfoodrow > input, .app-hlfoodrow > .app-hlsico { grid-row: 1 / span 3; align-self: center; }
.app-hlfoodrow > .app-hlsico { margin-right: 0; }
.app-hlfoodrow > :not(.app-hlsico):not(input) { grid-column: -2 / -1; }
.app-hlvgrip { display: flex; align-items: center; gap: 2px; }
.app-hlvgrip > .app-ngrip { flex: none; opacity: .45; }
.app-hlvgrip > .app-hlvrow { flex: 1; min-width: 0; }

@media print { .app-noprint { display: none !important; } }
/* recipe card: where the tag fields (Course, Method...) begin */
.app-hltagshead { margin: 14px 0 0; padding-top: 12px; border-top: 2px solid #C9D3D9; font: 600 11px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: #4A7A96; }
.app-hldiv.app-hltagsgrp { border-top: 0 !important; padding-top: 4px; }
.app-hlstatusin { max-width: 320px; }

/* lighter header buttons (Edit Dinner / Plan Meals) */
/* text buttons only */
.app-dtoplight button.bh-btn { font-weight: 500 !important; font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important; padding: 5px 14px !important; min-height: 0 !important; box-shadow: none !important; }
.app-dtoplight .bh-btn--accent, .app-dtoplight [class*='accent'] { background: #1F3A4D !important; border-color: #1F3A4D !important; color: #fff !important; }
/* Whole Recipe / Per Serving: underline tabs, not pills */
.app-hlplnut .app-hlunits { justify-content: flex-start; gap: 16px; border-bottom: 1px solid var(--border); }
.app-hlplnut .app-hlunit { background: none; border: 0; border-radius: 0; padding: 4px 2px 6px; font: 500 13px/16px var(--font-sans); text-transform: none; letter-spacing: 0; color: #6B7680; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.app-hlplnut .app-hlunit.is-on { background: none; color: #1F3A4D; border-bottom-color: #1F3A4D; }

.app-foodicocolors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; }
.app-foodicocolors > .app-foodico { margin-right: 6px; }
.app-foodicoswatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #C9D3D9; cursor: pointer; padding: 0; background: #F4F5F6; font: 600 10px/1 var(--font-sans); color: #6B7680; }
.app-foodicoswatch.is-on { box-shadow: 0 0 0 2px #1F3A4D; }

/* cooking order: step dividers, and the edit-mode list you drag */
.app-hlvstep { margin: 10px 0 2px; font: 600 12px/1.2 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: #4A7A96; border-bottom: 1px solid #DCE8EE; padding-bottom: 3px; list-style: none; }
.app-hlcookedit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.app-hlcookedit li { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.app-hlcookedit li > .app-ngrip { flex: none; opacity: .5; }
.app-hlcookedit li.is-step { background: #EEF4F7; padding-left: 4px; border-radius: 6px; }
.app-hlcookedit li.is-step .app-hlcookname { font: 600 12px/1.2 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: #4A7A96; flex: 1; }
.app-hlcookname { flex: 1; min-width: 0; }

/* slide-up panels sit higher and tighter: a bit above the middle, every corner rounded */
.app-hlsheetbg { align-items: flex-start; padding-top: max(56px, 12vh); }
.app-hlsheet { border-radius: 16px; max-height: 76vh; margin: 0 10px; animation: hlsheetin .16s ease-out; }
@keyframes hlsheetin { from { transform: translateY(14px); opacity: .5; } to { transform: none; opacity: 1; } }
.app-hlsheethead { padding: 9px 12px; }
.app-hlsheetbody { padding: 8px 12px 12px; gap: 8px; }
.app-hlpickbox { padding: 6px 10px 8px; gap: 6px; }
.app-hlpickstd { padding-bottom: 5px; font-size: 12.5px; }
.app-hlwhls::before { top: 34px; height: 34px; }
.app-hlwhl { height: 102px; }
.app-hlwhlpad { height: 34px; }
.app-hlwhlopt { height: 34px; font-size: 15px; }
.app-hlwhlopt.is-on { font-size: 16px; }
/* Docs & Links / Schoolin': grade menu on top, view panel, groups, list view, custom color */
.app-docs--top { grid-template-columns: minmax(0, 1fr); }
.app-docbar { flex-wrap: wrap; }
.app-scgradebtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: 600 14px/1 var(--font-sans); color: #1F3A4D; cursor: pointer; white-space: nowrap; }
.app-scgradebtn:hover { background: #F1F4F6; }
.app-scchev { font-size: 11px; color: #4A7A96; }
.app-vmenu button.is-on { background: #DCE8EE; color: #1F3A4D; font-weight: 700; }
.app-vmenu button .app-gpill-n { margin-left: 12px; }
.app-vmenu button:has(.app-gpill-n) { display: flex; justify-content: space-between; align-items: center; }
.app-docgroups { display: flex; flex-direction: column; gap: 10px; }
.app-docghead { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 2px 6px; border: 0; border-bottom: 1px solid #DCE8EE; background: none; font: 700 12px/1.2 var(--font-sans); letter-spacing: .05em; text-transform: uppercase; color: #1F3A4D; cursor: pointer; text-align: left; }
.app-docgroup .app-docghead + .app-doccards { margin-top: 8px; }
.app-docgchev { display: inline-block; width: 12px; font-size: 16px; color: #4A7A96; transition: transform .15s; }
.app-docgchev.is-open { transform: rotate(90deg); }
.app-doclist { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.app-doclist .app-doccard { border-left-width: 4px; border-radius: 8px; }
.app-doclist .app-doccardmain { padding: 7px 44px 7px 10px; align-items: center; }
.app-doclist .app-docico { width: 24px; height: 24px; }
.app-doclist .app-doctext { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.app-doclist .app-doctext strong { font-size: 14px; }
.app-doclist .app-docedit { top: 50%; transform: translateY(-50%); }
.app-dccolors { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.app-colorplus { position: relative; width: 30px; height: 30px; border-radius: 999px; border: 1px dashed #80848A; display: inline-flex; align-items: center; justify-content: center; color: #4A7A96; font: 600 18px/1 var(--font-sans); cursor: pointer; overflow: hidden; }
.app-colorplus.is-on { border: 2px solid #1F3A4D; box-shadow: 0 0 0 2px #fff inset; }
.app-colorplus input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.app-dcprev summary { cursor: pointer; font: 600 13px/1.3 var(--font-sans); color: #4A7A96; }
.app-dcprev .md-doc--box { margin-top: 8px; }
.app-scsubs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.app-scsub { display: flex; align-items: center; gap: 8px; }
.app-scsub .bh-input { flex: 1; height: 36px; }
.app-scadd .bh-input { flex: 1; }
/* Display Settings: tighter, and the sections can be dragged into any order */
.fd-setheadrow { display: flex; align-items: center; gap: 4px; }
.fd-setheadrow .app-ngrip { opacity: .55; }
.fd-setheadrow .fd-sethead { min-height: 38px; font-size: 12px; letter-spacing: .08em; color: #1F3A4D; }
.fd-setchev { color: #4A7A96; font-size: 12px; }
.fd-setsec.is-dropat { box-shadow: 0 -2px 0 #4A7A96; }
.fd-setbody { gap: 6px; padding: 2px 0 10px 4px; }
.fd-setlist { gap: 2px; }
.fd-setlist li { gap: 8px; min-height: 34px; }
.fd-setlist .fd-swatch { width: 24px; height: 24px; }
.fd-setlist li > button[class*="swatch"], .fd-setlist li .fd-colorbtn { width: 24px; height: 24px; }
.fd-setbody .fd-swatch { width: 26px; height: 26px; }
.app-doccard .app-doccardmain { padding-right: 46px; }
.app-docbar .app-gear { margin-left: 0; }
.app-scsub .bh-input { min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
.fd-setstack { gap: 0; }
.fd-setstack > .fd-sw { margin-bottom: 8px; }
.fd-setstack .fd-setheadrow .fd-sethead { min-height: 36px; }
.fd-setstack .fd-setlist li { min-height: 30px; }
.fd-setstack .app-dlgfoot { margin-top: 10px; }
/* Display calendar: one line per event (time, then title), no person dots */
.fd-ev--row { display: flex; align-items: baseline; gap: 12px; padding: 7px 12px; border-radius: 10px; }
.fd-ev--row .fd-evtime { flex: none; min-width: 74px; font-size: 15px; }
.fd-ev--row .fd-evt { font-size: 18px; line-height: 24px; min-width: 0; }
.fd-ev--row .fd-whos { margin-left: auto; }
.app-cpbulk { display: flex; gap: 6px; }
/* Finance: bills */
.app-finsum { margin: 0; font-size: 14px; color: #1F3A4D; background: #DCE8EE; border-radius: 10px; padding: 8px 12px; }
.app-finlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.app-docghead + .app-finlist { margin-top: 6px; }
.app-finrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 10px; border: 1px solid var(--border); border-left: 4px solid var(--fc, #9DB7C4); border-radius: 10px; background: #fff; }
.app-finrow.is-paid { opacity: .62; }
.app-finrow.is-late { border-color: #E7B9BF; border-left-color: #B23A48; }
.app-fincheck { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #4A7A96; background: #fff; color: #fff; font: 700 14px/1 var(--font-sans); cursor: pointer; padding: 0; }
.app-fincheck.is-on { background: #1F3A4D; border-color: #1F3A4D; }
.app-finmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; border: 0; background: none; padding: 2px 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.app-finname { font: 600 15px/1.25 var(--font-sans); color: #1F3A4D; display: flex; align-items: center; gap: 6px; }
.app-fintag { font: 600 10px/1 var(--font-sans); letter-spacing: .05em; text-transform: uppercase; color: #4A7A96; border: 1px solid #DCE8EE; border-radius: 4px; padding: 2px 4px; }
.app-finsub { font-size: 12.5px; color: #5B6670; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.app-finrow.is-late .app-finsub { color: #B23A48; font-weight: 600; }
.app-finrow.is-soon .app-finsub { color: #1F3A4D; font-weight: 600; }
.app-findot { width: 8px; height: 8px; border-radius: 99px; background: var(--fc, #9DB7C4); display: inline-block; }
.app-finamt { flex: none; font: 600 14px/1 var(--font-sans); color: #1F3A4D; font-variant-numeric: tabular-nums; }
.app-finacts { flex: none; display: inline-flex; gap: 2px; }
.app-fingtot { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; color: #4A7A96; }
.app-docgroup.is-late .app-docghead { color: #B23A48; border-bottom-color: #E7B9BF; }
.app-fincred { display: flex; align-items: center; gap: 10px; }
.app-fincred .bh-label { width: 80px; flex: none; margin: 0; }
.app-fincredv { flex: 1; min-width: 0; font: 500 15px/1.3 ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.app-finpw { display: flex; align-items: center; gap: 4px; }
.app-finpw .bh-input { flex: 1; }
.app-scsub .app-colorplus { width: 26px; height: 26px; flex: none; }
/* Display: Menu card, same left layout as the other panels, with the dish a little bigger */
.fd-menu .fd-dline > div > div:first-child, .fd-menu .fd-dline > div > div:first-child a { font-size: 24px; line-height: 1.25; }
.fd .fd-gitem { font-size: 18px; line-height: 24px; } button.fd-gitem { min-height: 36px; padding: 2px 0; }
.fd-menunext { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(31, 58, 77, .12); }
.fd-menunext .fd-ev--row { background: rgba(255, 255, 255, .55); }
.fd-menunext .fd-evt { font-size: 16px; font-weight: 500; }
.fd-nav:not(.is-on) svg, .fd-nav:not(.is-on) svg * { color: #62666A; stroke: currentColor; }
/* Display Settings: compact controls everywhere inside */
.fd-setstack { font-size: 13px; }
.fd-setstack .fd-seg { gap: 0; }
.fd-setstack .fd-seg button { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.fd-setstack select.bh-input, .fd-setstack input.bh-input { min-height: 32px; height: 32px; padding-top: 2px; padding-bottom: 2px; font-size: 13px; }
.fd-setstack .fd-setbody > *, .fd-setstack .fd-setbody label { font-size: 13px; }
.fd-setstack .fd-setbody { gap: 4px; }
.fd-setstack [class*="row"] { row-gap: 4px; }
.fd-setstack .app-switch .app-switchlbl { font-size: 13px; }
.fd-ev--row { box-shadow: inset 0 0 0 1px rgba(31, 58, 77, .06); }
.app-expdate { flex: none; width: 48px; font: 500 12.5px/1.2 var(--font-sans); color: #5B6670; font-variant-numeric: tabular-nums; }
.app-expghead { display: flex; align-items: center; gap: 6px; }
.app-expghead .app-docghead { flex: 1; }
.app-finmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
/* Display groceries: neutral store pills; smaller checkboxes tucked in under the pill */
.fd .fd-pill { background: rgba(31, 58, 77, .08); color: #3F454B; font-size: 12px; padding: 2px 10px; }
.fd .fd-store button.fd-gitem, .fd .fd-list > button.fd-gitem { padding-left: 10px; gap: 10px; }
.fd .fd-gitem .fd-gbox { width: 17px; height: 17px; border-width: 1.5px; border-radius: 4px; }
/* Finance: budget */
.app-finmonth { min-width: 150px; text-align: center; color: #1F3A4D; }
.app-fintiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.app-fintile { border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.app-fintile span { font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: #5B6670; }
.app-fintile strong { font: 600 18px/1.2 var(--font-sans); color: #1F3A4D; font-variant-numeric: tabular-nums; }
.app-fintile.is-over strong { color: #B23A48; } .app-fintile.is-good strong { color: #2E6B4A; }
.app-fincard { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.app-fincard h3 { margin: 0; display: flex; align-items: center; gap: 8px; font: 700 12px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: #1F3A4D; }
.app-fincard h3 .app-small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.app-finbud { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.app-finbud li { display: grid; grid-template-columns: 160px minmax(80px, 1fr) 150px 100px; align-items: center; gap: 10px; font-size: 13.5px; }
.app-finbudname { display: flex; align-items: center; gap: 6px; color: #1F3A4D; font-weight: 500; }
.app-finbudamt { text-align: right; font-variant-numeric: tabular-nums; color: #1F3A4D; } .app-finbudamt span { color: #5B6670; }
.app-finbudleft { text-align: right; font-size: 12.5px; color: #5B6670; font-variant-numeric: tabular-nums; }
.is-over.app-finbudamt, .app-finbudleft.is-over { color: #B23A48; }
.app-finbar { display: block; height: 8px; border-radius: 99px; background: #EEF2F4; overflow: hidden; min-width: 60px; flex: 1; }
.app-finbar i { display: block; height: 100%; background: var(--fc, #4A7A96); border-radius: 99px; }
.app-finbar.is-over i { background: #B23A48; } .app-finbar.is-none { background: none; }
.app-fintwo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-finline { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #1F3A4D; }
.app-finline > span:first-child { width: 96px; flex: none; color: #5B6670; }
.app-finline > span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.app-finhsa { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.app-finhsa li { display: grid; grid-template-columns: 52px 1fr auto 28px; align-items: center; gap: 8px; color: #3F454B; }
.app-finhsa .is-in { color: #2E6B4A; } .app-finhsa .is-out { color: #B23A48; }
.app-finlims { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 14px; }
.app-finlim { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.app-finlim span { flex: 1; }
.app-finnum { width: 110px !important; flex: none !important; }
@media (max-width: 700px) { .app-fintiles { grid-template-columns: 1fr 1fr; } .app-fintwo { grid-template-columns: 1fr; } .app-finbud li { grid-template-columns: 1fr auto; } .app-finbud .app-finbar { grid-column: 1 / -1; grid-row: 2; } .app-finbudleft { display: none; } }
.fd-qty { margin-left: 8px; padding-left: 8px; border-left: 1.5px solid rgba(31, 58, 77, .25); color: #5B6670; font-weight: 600; font-variant-numeric: tabular-nums; }
.fd-spmode { position: relative; color: #80848A; }
.fd-spmode.is-on { color: #1F3A4D; }
.fd-spmode.is-on::after { content: ''; position: absolute; bottom: 2px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 99px; background: #1F3A4D; }
.fd-sp1 { position: absolute; top: 4px; right: 4px; font: 700 9px/1 var(--font-sans); color: #1F3A4D; }
/* Display Settings: light underline choices instead of heavy bordered pills; no box inside a box */
.fd-setstack .fd-seg { border: 0; border-radius: 0; overflow: visible; gap: 14px; background: none; }
.fd-setstack .fd-seg button, .fd-setstack .fd-seg--sm button, .fd-setstack .fd-seg--ico button { min-height: 26px; padding: 2px 0; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font: 500 13px/1.2 var(--font-sans); color: #5B6670; }
.fd-setstack .fd-seg button.is-on, .fd-setstack .fd-seg--sm button.is-on, .fd-setstack .fd-seg--ico button.is-on { background: none; color: #1F3A4D; font-weight: 600; border-bottom-color: #1F3A4D; }
.fd-setstack .ph-look { border: 0; padding: 4px 0 0; gap: 6px; }
.fd-setstack .ph-setline { gap: 10px; }
.fd-setstack .ph-setline > span:first-child { min-width: 96px; font-size: 13px; color: #5B6670; }
.fd-setstack .ph-places { border-bottom: 1px solid #E3E8EB; width: 100%; }
.app-viewonly { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 12px; border-radius: 8px; background: #EEF2F4; color: #4A5A66; font-size: 13px; }
/* Who Sees What */
.app-accwrap { overflow-x: auto; }
.app-acc { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.app-acc th, .app-acc td { padding: 3px 6px; border-bottom: 1px solid #EEF2F4; text-align: left; white-space: nowrap; }
.app-acc thead th { vertical-align: bottom; font: 600 12px/1.3 var(--font-sans); color: #1F3A4D; }
.app-acc thead th > span { display: block; margin-bottom: 2px; }
.app-acc tbody th { font-weight: 500; color: #1F3A4D; }
.app-accsub { padding-left: 24px !important; font-weight: 400 !important; color: #3F454B !important; }
.app-accgrow th .app-docghead { border: 0; padding: 6px 0 2px; }
.app-accsel { border: 1px solid transparent; background: none; font: 500 12.5px/1.2 var(--font-sans); color: #80848A; padding: 3px 2px; border-radius: 6px; cursor: pointer; }
.app-accsel:hover, .app-accsel:focus { border-color: #DCE8EE; }
.app-acccell.is-set .app-accsel { color: #1F3A4D; font-weight: 700; }
.app-acccell.is-set.is-hidden .app-accsel { color: #B23A48; }
.app-acccell.is-set.is-view .app-accsel { color: #4A7A96; }
.app-accg .app-accsel, .app-acccopy { color: #4A7A96; font-size: 11.5px; }

/* ======================================================================================================
   THE STANDARD LOOK (Dec 2026): modeled on the Add Food card. Compact, clean, navy; icons over words;
   fields distinct but light. These come last so they win over older rules.
   ====================================================================================================== */
/* Buttons: compact. The main action is navy; second actions are light outlines; Cancel is quiet, and gone in pop-ups (the x closes them). */
.bh-btn { min-height: 32px; padding: 0 14px; border-radius: 8px; font: 600 13px/1.2 var(--font-sans); box-shadow: none !important; }
.bh-btn--primary, .bh-btn--accent { background: #1F3A4D; border-color: #1F3A4D; color: #fff; }
.bh-btn--primary:hover, .bh-btn--accent:hover { background: #2A4A60; filter: none; }
.bh-btn--secondary, .bh-btn--ghost { background: transparent; border: 1px solid #D5DDE2; color: #1F3A4D; }
.bh-btn--cancel { background: transparent; border: 0; color: #5B6670; font-weight: 500; }
.app-dialog .bh-btn--cancel, .app-hlsheet .bh-btn--cancel { display: none; }
/* the bottom of a pop-up: Save on the right with a check, delete (trash icon) on the left */
.app-dlgfoot, .app-wkbtns.app-dbot { display: flex; align-items: center; gap: 8px; }
.app-dlgfoot > .bh-btn--accent, .app-dlgfoot > .bh-btn--primary, .app-wkbtns.app-dbot > .bh-btn--accent, .app-wkbtns.app-dbot > .bh-btn--primary { order: 5; margin-left: auto; }
.app-dlgfoot > .bh-btn--accent::before, .app-dlgfoot > .bh-btn--primary::before, .app-wkbtns.app-dbot > .bh-btn--accent::before { content: '\2713'; font-weight: 700; margin-right: 2px; }
.app-dlgfoot > .bh-btn--secondary { order: 4; }
.app-dlgfoot > .app-fright { order: 0; margin-left: 0 !important; margin-right: auto; }
/* words that act like buttons: no underline, small and steel blue */
.app-linkbtn, .app-keybtn { text-decoration: none !important; font: 600 13px/1.3 var(--font-sans) !important; color: #4A7A96 !important; background: none; border: 0; padding: 0; }
.app-linkbtn:hover, .app-keybtn:hover { color: #1F3A4D !important; }
.app-ficon.is-on { background: #DCE8EE; color: #1F3A4D; }
.app-ficon--n { width: auto !important; padding: 0 8px; gap: 4px; display: inline-flex; align-items: center; font: 600 12px/1 var(--font-sans); }
/* fields in pop-ups: lighter borders, a little shorter, small labels */
.app-dialog .bh-input, .app-dialog select.bh-input { min-height: 34px; font-size: 14px; border-color: #DDE3E7; border-radius: 8px; box-shadow: none; }
.app-dialog textarea.bh-input { min-height: 60px; }
.app-dialog .bh-input:focus { border-color: #4A7A96; box-shadow: 0 0 0 3px rgba(74, 122, 150, .15); }
.app-dialog .bh-label { font-size: 10.5px; letter-spacing: .08em; color: #5B6670; margin-bottom: 3px; }
.app-dialog .app-stack--tight { gap: 10px; }
/* pills: quiet chips instead of dashed or solid pills */
.app-chip.is-pick { border: 0; background: #F1F4F6; color: #1F3A4D; border-radius: 6px; font-weight: 500; padding: 2px 8px; }
.app-chip.is-pick:hover { background: #DCE8EE; }
.app-claim { border: 1px solid #1F3A4D; background: #fff; color: #1F3A4D; border-radius: 8px; font: 600 12.5px/1 var(--font-sans); padding: 6px 12px; cursor: pointer; }
.app-claim:hover { background: #1F3A4D; color: #fff; }

/* Tasks: lighter lines and section heads (no colored bands) */
.app-fsec { border: 0; border-radius: 0; background: none; overflow: visible; }
.app-fsec .app-fsechead, .app-fsec--overdue .app-fsechead, .app-fsec--today .app-fsechead, .app-fsec--up .app-fsechead, .app-fsec--nodate .app-fsechead, .app-fsec--all .app-fsechead { background: none; color: #1F3A4D; border-bottom: 1px solid #DCE8EE; padding: 2px 0; min-height: 28px; }
.app-fsec--overdue .app-fsechead { color: #B23A48; border-bottom-color: #F0D3D6; }
.app-fsec + .app-fsec { margin-top: 4px; }
.app-fsectitle { font: 700 12px/1.2 var(--font-sans) !important; letter-spacing: .06em; text-transform: uppercase; }
.app-trow { border-bottom: 1px solid #F0F3F5; min-height: 34px; padding-top: 5px !important; padding-bottom: 5px !important; }
.app-ttitle { font: 500 14px/20px var(--font-sans) !important; color: #1F2933; }
.app-fact { border: 0 !important; background: none !important; color: #4A7A96 !important; font: 600 12px/1 var(--font-sans) !important; }

/* Kids: underline tabs instead of folder tabs; light day and name choices */
.app-kidtabs .app-ftabs { gap: 16px; padding: 0; border-bottom: 1px solid #DCE8EE; margin-bottom: 8px; }
.app-kidtabs .app-ftab, .app-ftab.app-kidftab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 6px 0; font: 500 13px/1.2 var(--font-sans); color: #5B6670; }
.app-kidtabs .app-ftab.is-on, .app-ftab.app-kidftab.is-on, .app-ftab.app-kidftab[aria-selected="true"] { border-bottom-color: #1F3A4D; color: #1F3A4D; font-weight: 600; background: none; }
.app-board-page .bh-tabs .bh-tab, .app-kidtabs .bh-tabs .bh-tab { min-height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; box-shadow: none; }

/* Faith: the Reality Challenge frame, thinner */
.app-rcpage { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25) !important; padding: 14px; }

/* Health: Today's tiles as compact rows; meal names quieter; plan cards lighter */
.app-hltiles2 { gap: 6px; }
.app-hltile2 { flex-direction: row !important; align-items: center !important; gap: 10px !important; padding: 8px 12px !important; border-radius: 10px !important; background: #fff !important; }
.app-hlmealrow strong { font: 600 14px/1.2 var(--font-sans); color: #1F3A4D; }
.app-hlplan, .app-hlbudrow { padding: 6px 10px; border-radius: 10px; background: #fff; }
.app-hlplan strong { font-size: 14px; }
.app-hlplan span, .app-hlplan p { font-size: 12px; }
/* Health → Points Plan: compact. Only your plan shows its description; numbers on one line each; fields label-left like Add Food */
.app-hlplans { gap: 4px; }
.app-hlplan { padding: 6px 10px !important; }
.app-hlplan:not(.is-on) .app-small { display: none; }
.app-hlplan .app-hlplanline { font-size: 12px; color: #5B6670; font-weight: 400; }
.app-hlbudgets { gap: 0 !important; }
.app-hlbudgets .app-hlbudrow { display: grid !important; grid-template-columns: minmax(0, 1fr) 88px 88px; align-items: center; gap: 8px !important; padding: 4px 0 !important; border: 0 !important; border-bottom: 1px solid #F0F3F5 !important; border-radius: 0 !important; background: none !important; }
.app-hlbudrow strong { font: 500 13.5px/1.2 var(--font-sans); color: #1F3A4D; }
.app-hlbudrow .app-hlfield { display: flex; flex-direction: column; gap: 0; }
.app-hlbudrow .bh-label { font-size: 9.5px; margin: 0; }
.app-hlbudrow .bh-input, .app-hlgrid .bh-input { min-height: 30px !important; height: 30px; font-size: 13.5px !important; padding-top: 2px; padding-bottom: 2px; border-color: #E3E8EB !important; }
.app-hlgrid { gap: 6px 12px !important; }
.app-hlgrid .bh-label { font-size: 10px; margin-bottom: 2px; }
.app-hlh3 { font: 700 12px/1.2 var(--font-sans) !important; letter-spacing: .06em; text-transform: uppercase; color: #1F3A4D; margin: 10px 0 4px !important; }
/* choice buttons (days, people, together/each, store filters): light, not solid pills */
.app-gpill, .app-gpill--soft { min-height: 28px; padding: 0 10px; border: 1px solid #E3E8EB !important; border-radius: 8px; background: #fff; color: #3F454B; font: 500 13px/1.2 var(--font-sans); }
.app-gpill.is-on, .app-gpill--soft.is-on { background: #DCE8EE; border-color: #B9CEDA !important; color: #1F3A4D; font-weight: 600; }
.app-gpill.is-on .app-gpill-n { background: rgba(31, 58, 77, .12); }
.app-gstores { gap: 4px; }
.app-wl-upload { cursor: pointer; }
.app-wl-upload input { display: none; }
/* Grocery settings: one thin row per store or department (drag, name, color, remove) */
.app-gmanage-sec .app-gmrow { display: flex !important; align-items: center; gap: 8px; padding: 2px 0 !important; border: 0 !important; border-bottom: 1px solid #F0F3F5 !important; border-radius: 0 !important; background: none !important; }
.app-gmanage-sec .app-gmrow .bh-input { min-height: 30px !important; height: 30px; border-color: transparent; background: none; padding-left: 4px; }
.app-gmanage-sec .app-gmrow .bh-input:hover, .app-gmanage-sec .app-gmrow .bh-input:focus { border-color: #DDE3E7; background: #fff; }
.app-gmanage-sec .app-gmrow button:not(.app-ngrip) { width: 24px; height: 24px; min-height: 24px; border-color: #E3E8EB; font-size: 12px; }
/* Cycle log: label-left rows, light fields */
.app-cylog { gap: 6px !important; }
.app-cyline { display: grid !important; grid-template-columns: 110px minmax(0, 1fr) !important; align-items: center; gap: 8px; padding: 2px 0; border-bottom: 1px solid #F0F3F5; }
.app-dialog button.bh-input { border-color: #DDE3E7 !important; }
.bh-signin-grid--screens { margin-top: 18px; padding-top: 14px; border-top: 1px solid #E2E9EE; opacity: .85; }
/* Checks: tap the number to type a total; settings rows (drag, name, goal, show) */
button.app-hlchkn { border: 0; background: none; padding: 2px 4px; border-radius: 6px; font: inherit; color: inherit; cursor: text; }
button.app-hlchkn:hover { background: #E8F0F5; }
.app-hlchktype { width: 64px !important; min-height: 28px !important; height: 28px; padding: 2px 6px; text-align: center; }
.app-hlchkset { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.app-hlchkset li { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid #F0F3F5; }
.app-hlchkset li.is-off .app-hlchksetname { color: #9AA5AD; }
.app-hlchksetname { flex: 1; font-size: 14px; color: #253A4D; }
.app-hlchksetn { width: 64px !important; min-height: 30px !important; height: 30px; text-align: center; }
.app-hlstepsrow2 { display: flex; align-items: center; gap: 8px; padding: 6px 0 0; border-top: 1px solid #F0F3F5; margin-top: 6px; color: #253A4D; }
.app-hlstepsrow2 .app-hlsteplab { flex: 1; font-size: 13.5px; color: #547996; }
.app-hlstepsrow2 strong { font: 600 15px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.app-hlworklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.app-hlworklist li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid #F0F3F5; }
.app-hlworkname { font: 500 14px/1.3 var(--font-sans); color: #253A4D; }
.app-lockwrap { position: relative; }
.app-lockbtn { position: absolute; top: 10px; right: 12px; z-index: 2; }
.app-lockset { border: 0; margin: 0; padding: 0; min-width: 0; }
.app-lockset:disabled .bh-input, .app-lockset:disabled select { background: #F7F9FA; color: #253A4D; border-color: transparent !important; -webkit-text-fill-color: #253A4D; opacity: 1; }
.app-lockset:disabled .app-switch { opacity: .7; }
.app-hltile2 .app-cardico, .app-hltile2 svg:last-child { color: #789AAB; }
.app-hlcheckhead { display: flex; align-items: center; justify-content: space-between; } .app-hlgrpall { width: 24px !important; height: 24px !important; min-height: 24px; font-size: 13px; }
.app-hldaypick { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid #E2E9EE; border-radius: 8px; background: #fff; color: #253A4D; font: 500 13px/1 var(--font-sans); cursor: pointer; } .app-hldaypick:hover { background: #E8F0F5; }
/* serving wheels spin with a flick (the faster the flick, the farther), then settle on the nearest row */
.app-hlwhl { scroll-snap-type: y proximity; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.app-hlwhlopt { scroll-snap-stop: normal; }
/* Add Food: points first, in a light-blue box; sugar under carbs */
.app-hlptsbox--top { background: #E8F0F5; border: 1px solid #D3E2EB; border-radius: 12px; padding: 10px 14px; margin-bottom: 4px; }
.app-hlptsbox--top strong { font-size: 24px; color: #253A4D; }
.app-hlr2sub { display: block; font: 500 11px/1.2 var(--font-sans); color: #789AAB; margin-top: 1px; }
.app-hlbar--sugar { position: relative; }
.app-hlbar--sugar > i { position: absolute; left: 0; top: 0; bottom: 0; background: #E99B85; border-radius: 99px 0 0 99px; }
.app-hlsugar { display: block; font: 500 11px/1.2 var(--font-sans); color: #789AAB; margin-top: 1px; }
.app-hlsugar.is-over { color: #C25B4A; }
/* Health: card headings in the lighter blue */
.app-hlroot .bh-card-head h3 { color: #547996; }
/* food search: room between the icon and the name */
.app-hlsearchrow .app-hlfico, .app-hlfoodbtn > .app-hlfico, .app-hlres .app-hlfico { margin-right: 10px; }
.app-hlsico { margin-right: 10px !important; flex: none; }
/* Estimate a plate */
.app-hlestlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.app-hlestlist li { display: flex; align-items: center; gap: 6px; }
.app-hlestlist li .bh-input:first-child { flex: 1; }
.app-hlestpts { width: 64px !important; text-align: center; }
/* Health shortcuts button and sheet */
.app-hlfab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #253A4D; color: #fff; font: 400 28px/1 var(--font-sans); box-shadow: 0 6px 18px rgba(37, 58, 77, .3); cursor: pointer; }
.app-hlfab.is-open { background: #fff; color: #253A4D; border: 1.5px solid #253A4D; z-index: 61; }
.app-hlfabbg { position: fixed; inset: 0; z-index: 60; background: rgba(37, 58, 77, .35); display: flex; align-items: flex-end; justify-content: center; }
.app-hlfabsheet { width: 100%; max-width: 560px; background: #F5F7F8; border-radius: 18px 18px 0 0; padding: 16px 18px calc(84px + env(safe-area-inset-bottom)); }
.app-hlfabhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #253A4D; font-size: 17px; }
.app-hlfabgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
.app-hlfabtile { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: #253A4D; font: 500 12.5px/1.2 var(--font-sans); text-align: center; cursor: pointer; }
.app-hlfabico { width: 56px; height: 56px; border-radius: 14px; background: #fff; border: 1px solid #E2E9EE; display: flex; align-items: center; justify-content: center; color: #547996; }
.app-hlfabico svg { width: 24px; height: 24px; }
.app-hlfabtile:hover .app-hlfabico { background: #E8F0F5; }
.app-hlfabtile.is-off { opacity: .35; }
.app-hltoday { padding-bottom: 72px; }
.app-hltrpick { min-height: 30px !important; height: 30px; font-size: 13px !important; padding: 2px 28px 2px 8px; width: auto; }
.app-hltiles--sm { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important; margin-bottom: 8px; }
.app-hltiles--sm .app-hltile strong { font-size: 17px; }
.app-hlranges { flex-wrap: wrap; }
.app-hlranges { gap: 16px; border-bottom: 1px solid #E2E9EE; padding: 0 2px; }
.app-hlrange, .app-hlrange.is-on { border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: none !important; padding: 6px 0 !important; min-height: 0; font: 500 13px/1.2 var(--font-sans); color: #5B6670 !important; }
.app-hlrange.is-on { border-bottom-color: #253A4D !important; color: #253A4D !important; font-weight: 600; }
.app-cooktog { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 4px; }
/* recipes: ingredients and directions side by side in a wide pop-up (best in landscape and on the display) */
.app-sideby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.app-sideby > div:first-child { border-right: 1px solid #E2E9EE; padding-right: 16px; }
body.bh-wide-dialog .app-dialog { max-width: min(1240px, 96vw) !important; width: min(1240px, 96vw) !important; }
@media (max-width: 640px) { .app-sideby { grid-template-columns: 1fr; } .app-sideby > div:first-child { border-right: 0; padding-right: 0; } }
.app-hlpart { display: flex; align-items: center; gap: 6px; }
.app-hlpartamt { width: 4.5em !important; padding: 4px 6px !important; }
/* any color by hex code, instead of the browser's slider picker */
.app-hexplus { position: relative; display: inline-flex; }
.app-hexpop { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #DCE8EE; border-radius: 10px; padding: 6px 8px; box-shadow: 0 6px 18px rgba(31,58,77,.15); }
.app-hexprev { width: 22px; height: 22px; border-radius: 999px; border: 1px solid #C9D4DC; flex: none; }
.app-hexin { width: 7.5em !important; font-family: ui-monospace, monospace; padding: 4px 6px !important; }
/* today's birthday/anniversary banner: color chosen in Display Settings, navy words centered with the small line under */
.fd-bday { background: #DCE8EE; border-color: #C3D5E0; color: #1F3A4D; align-items: center; min-height: 62px; }
.fd-bday > span:last-child { display: flex; flex-direction: column; justify-content: center; }
.fd-bday strong { color: #1F3A4D; }
.fd-bday .fd-evm { color: #3F5566; font-size: 15px; line-height: 19px; }
.fd-bdrow { display: flex; align-items: center; gap: 10px; font: 400 18px/24px var(--font-sans); color: #2B2F33; }
.fd-bdtext { flex: 1; min-width: 0; }
/* display calendar, in the Home tab's style: a dot, the time, the title; past ones grayed; a Now line */
.fd-ev--home { display: grid; grid-template-columns: 14px 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; background: transparent !important; padding: 8px 4px; border-top: 1px solid #E8EEF2; border-radius: 0; }
.fd-ev--home:first-of-type { border-top: 0; }
.fd-evdot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
.fd-ev--home.is-past .fd-evt, .fd-ev--home.is-past .fd-evtime { color: #8A9399; opacity: .75; }
.fd-ev--home.is-past .fd-evdot { filter: grayscale(1); opacity: .45; }
.fd-nowline span { font-size: 14px; line-height: 18px; }
.fd-nowline + .fd-ev--home { border-top: 0; }
/* display groceries: only the box checks an item off; tapping its name opens it to change */
.fd-gitem--edit { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.fd-gboxbtn { flex: none; cursor: pointer; padding: 0; }
.fd-gname { flex: 1; min-width: 0; background: none; border: 0; padding: 4px 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.fd-grow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fd-gboxbtn { background: #fff; }
/* groceries: the add box and every tool on one line */
.app-gaddrow--one { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-gaddrow--one .app-gaddtext { flex: 1 1 180px; min-width: 140px; }
.app-gtools--one { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.app-gtools--one .app-gseg button { padding: 4px 8px; }
.app-gstorenow { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/16px var(--font-sans); color: #1F3A4D; }
.app-gdetailsrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.app-gdetailsrow .app-gaddamt { width: 7em; } .app-gdetailsrow .app-gaddprice { width: 6em; } .app-gdetailsrow .app-gaddnotes { flex: 1 1 160px; }
.app-gstoremenu .app-vmenu, .app-gtools--one .app-vmenu { right: 0; left: auto; }
.app-hlvsteprow { display: flex; align-items: center; gap: 8px; cursor: pointer; } .app-hlvstep .app-hlcheck { margin: 0; }
/* sugar: gray words; the sugar part of the carbs bar is teal under the sugar goal, terracotta over it */
.app-hlsugar, .app-hlsugar.is-over { color: #80848A; }
.app-hlbar--sugar > i { background: #4FA3A0; }
.app-hlbar--sugar.is-over > i { background: #C46A4A; }
/* water: the count on the right, beside its − and + (like the Checks rows) */
.app-hlwater { justify-content: flex-end; gap: 8px; }
.app-hlwater .app-hlchkn, .app-hlwater .app-hlchktype { margin-right: 6px; flex: none; }
/* cooking in order: each step's ingredients sit indented under its divider, so you can see where a step starts and ends */
.app-hlvlist--steps > li:not(.app-hlvstep) { margin-left: 26px; }
.app-hlvlist--steps > li.app-hlvstep { margin-top: 14px; }
.app-hlvlist--steps > li.app-hlvstep:first-child { margin-top: 2px; }
.app-hlv2hsub { font-weight: 400; font-size: 13px; color: #5B6B78; text-transform: none; letter-spacing: 0; }
.app-hlv2labelnote { margin: -4px 0 8px; color: #5B6B78; }
/* Check-In: two columns, Health Checks / Activity / Supplements on the left, Today's Goals and Trends on the right */
.app-fpanel > .app-stack.app-hlmason--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .app-fpanel > .app-stack.app-hlmason--2 { grid-template-columns: minmax(0, 1fr); } }
.app-hltgtabs { margin: -4px 0 10px; }
.app-hlwaterctl { display: inline-flex; align-items: center; gap: 6px; }
.app-hlwaterctl .app-hlchkn { min-width: 0; padding: 0 4px; }
.app-hlchkembed { display: block; }
.app-hlmason--2 > .app-hlspan2 { grid-column: 1 / -1; margin-bottom: -4px; }

/* ===================== 2026-12 palette: navy, denim, light blue page, white cards, sage, coral-pink =====================
   Light mode only (dark mode and the extra palettes keep their own colors). One place to change it all.
     navy #1F3A4D   denim #547996   page #EEF3F6   row tint #F2F6F9   line #E2E9EE
     sage #7E9F8E (deep #4F6E5E for words)   coral-pink #E99885 (deep #B85A4C for words) */
html.bh-light {
  --bh-navy: #1F3A4D; --bh-denim: #547996; --bh-page: #EEF3F6; --bh-rowtint: #F2F6F9; --bh-line: #E2E9EE;
  --bh-sage: #7E9F8E; --bh-sage-ink: #4F6E5E; --bh-sage-tint: #E3ECE6; --bh-coral: #E99885; --bh-coral-ink: #B85A4C; --bh-coral-tint: #FBE9E4;
  --bh-shadow: 0 1px 2px rgba(31, 58, 77, 0.06), 0 4px 12px rgba(31, 58, 77, 0.07);
}
@media all {
  html.bh-light {
    --headline: #1F3A4D; --primary: #1F3A4D; --on-primary: #FFFFFF; --primary-soft: #DCE8EE; --on-primary-soft: #1F3A4D; --primary-tint: #F2F6F9;
    --accent: #1F3A4D; --on-accent: #FFFFFF; --accent-soft: #DCE8EE; --on-accent-soft: #1F3A4D; --accent-tint: #F2F6F9;
    --focus-ring: #547996; --border: #E2E9EE; --surface-sunken: #F2F6F9;
    --ok: #4F6E5E; --ok-tint: #E3ECE6; --danger: #B85A4C; --danger-tint: #FBE9E4;
    --shadow-sm: 0 1px 2px rgba(31, 58, 77, 0.06), 0 4px 12px rgba(31, 58, 77, 0.07);
  }
}
html.bh-light {
  --headline: #1F3A4D; --primary: #1F3A4D; --on-primary: #FFFFFF; --primary-soft: #DCE8EE; --on-primary-soft: #1F3A4D; --primary-tint: #F2F6F9;
  --accent: #1F3A4D; --on-accent: #FFFFFF; --accent-soft: #DCE8EE; --on-accent-soft: #1F3A4D; --accent-tint: #F2F6F9;
  --focus-ring: #547996; --border: #E2E9EE; --surface-sunken: #F2F6F9;
  --ok: #4F6E5E; --ok-tint: #E3ECE6; --danger: #B85A4C; --danger-tint: #FBE9E4;
  --shadow-sm: 0 1px 2px rgba(31, 58, 77, 0.06), 0 4px 12px rgba(31, 58, 77, 0.07);
}
/* the page is light blue; cards are white with a soft shadow and no hard edge */
@media all {
  html.bh-light body { background: var(--bh-page); }
  html.bh-light .app-fpanel { background: transparent; border: 0; padding: 0; }
  html.bh-light .bh-card { border-color: transparent; box-shadow: var(--bh-shadow); border-radius: 14px; }
  html.bh-light .app-fpanel .bh-card { box-shadow: var(--bh-shadow); }
}
html.bh-light body { background: var(--bh-page); }
html.bh-light .app-fpanel { background: transparent; border: 0; padding: 0; }
html.bh-light .bh-card { border-color: transparent; box-shadow: var(--bh-shadow); border-radius: 14px; }
html.bh-light .app-fpanel .bh-card { box-shadow: var(--bh-shadow); }
/* card heads: white, a thin line under the title, navy title, denim icon */
html.bh-light .bh-card-head,
html.bh-light .app-homecal .bh-card-head,
html.bh-light .app-homesched .bh-card-head,
html.bh-light .app-homedinner .bh-card-head { background: #FFFFFF; border-bottom: 1px solid var(--bh-line); }
html.bh-light .bh-card-head h3 { color: var(--bh-navy); }
html.bh-light .app-cardtitle > .app-cardico { color: var(--bh-denim); }

/* Home: Announcements (navy) and Birthdays (denim) side by side at the top */
.app-homebanners { display: grid; gap: 12px; }
.app-homebanners.is-two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.app-bannerhead { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 15px/22px var(--font-sans); letter-spacing: 0; text-transform: none; }
.app-bannerhead .app-cardico { flex: none; }
html.bh-light .app-announce { background: var(--bh-navy); color: #FFFFFF; border: 0; border-radius: 14px; box-shadow: 0 4px 14px rgba(31, 58, 77, 0.18); padding: 14px 16px; }
html.bh-light .app-announce-item p { color: #FFFFFF; font: 500 16px/24px var(--font-sans); }
html.bh-light .app-announce-item + .app-announce-item { border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 8px; padding-top: 8px; }
html.bh-light .app-announce a { color: #DCE8EE; }
html.bh-light .app-celebrate { background: var(--bh-denim); color: #FFFFFF; border: 0; border-radius: 14px; box-shadow: 0 4px 14px rgba(31, 58, 77, 0.16); padding: 14px 16px; align-items: flex-start; }
html.bh-light .app-celebrate ul { flex-direction: column; gap: 0; font: 400 15px/22px var(--font-sans); }
html.bh-light .app-celebrate li { padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, 0.22); background: none; }
html.bh-light .app-celebrate li:first-child { border-top: 0; }
html.bh-light .app-celebrate li.is-today { font-weight: 600; background: none; }
html.bh-light .app-celebrate-when, html.bh-light .app-celebrate li.is-today .app-celebrate-when { color: #FFFFFF; opacity: .85; min-width: 64px; text-transform: none; font: 500 13px/22px var(--font-sans); letter-spacing: 0; }
html.bh-light .app-celebrate svg, html.bh-light .app-celebrate .app-bdrel { color: #FFFFFF; }

/* Schedule, Calendar and Menu: the same header and rows; each has its own color on a top edge and an icon circle */
.app-homesched { --cardc: #547996; --cardc-ink: #FFFFFF; }
.app-homecal { --cardc: #7E9F8E; --cardc-ink: #FFFFFF; }
.app-homedinner { --cardc: #E99885; --cardc-ink: #8E3F33; }
html.bh-light .app-homesched.bh-card,
html.bh-light .app-homecal.bh-card,
html.bh-light .app-homedinner.bh-card { border-top: 4px solid var(--cardc); }
html.bh-light :is(.app-homesched, .app-homecal, .app-homedinner) .app-cardtitle > .app-cardico { box-sizing: content-box; width: 16px; height: 16px; padding: 5px; border-radius: 999px; background: var(--cardc); color: var(--cardc-ink); }
/* plain icon controls in the header: ‹ (today) › with no pills or rings */
.app-weeknav .app-navtoday { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--bh-denim, #547996); cursor: pointer; position: relative; }
.app-navtoday.is-away::after { content: ''; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 999px; background: var(--bh-coral, #E99885); }
.app-navtoday:hover, .app-navtoday:focus-visible { background: var(--bh-rowtint, #F2F6F9); }
html.bh-light :is(.app-homesched, .app-homecal, .app-homedinner) :is(.app-navbtn, .app-ficon, .app-plus, .app-dp-zoom) { border: 0; background: transparent; box-shadow: none; color: var(--bh-denim); border-radius: 8px; }
html.bh-light :is(.app-homesched, .app-homecal, .app-homedinner) :is(.app-navbtn, .app-ficon, .app-plus):hover { background: var(--bh-rowtint); }
html.bh-light .app-homecal .app-calviewsel { border: 0; background-color: transparent; color: var(--bh-denim); font-weight: 600; padding-left: 4px; box-shadow: none; }
.app-navpen { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* Menu: one list, no boxes; today has a navy edge on a pale blue row; "Dinner:" only when the day has other meals */
html.bh-light .app-homedinner .app-mdays { gap: 0; }
html.bh-light .app-homedinner .app-mday { border: 0; border-top: 1px solid var(--bh-line); border-radius: 0; background: transparent; box-shadow: none; padding: 8px 10px 8px 12px; margin: 0; }
html.bh-light .app-homedinner .app-mday:first-child { border-top: 0; }
html.bh-light .app-homedinner .app-mday.is-today { background: var(--bh-rowtint); border-left: 3px solid var(--bh-navy); padding-left: 9px; outline: 0; }
html.bh-light .app-homedinner .app-mday.is-today .app-mday-dow { background: none; color: var(--bh-navy); padding: 0; font: 600 15px/20px var(--font-sans); text-transform: none; letter-spacing: 0; border-radius: 0; }
html.bh-light .app-homedinner .app-mday-dow { color: var(--bh-navy); }
.app-mday:not(:has(.app-meal-other)) .app-meal-dinnerlbl { display: none; }
.app-meal-dinnerlbl, .app-meal-othermeal { color: var(--bh-denim, #547996); }
.app-meal-frz { display: inline-flex; vertical-align: -3px; margin-left: 6px; color: var(--bh-denim, #547996); }
.app-meal-frz .app-cardico { width: 15px; height: 15px; }
/* the Calendar's events in the Home rows style: done ones gray, the Now line navy */
html.bh-light .app-nowline { color: var(--bh-navy); }

/* sage and coral-pink replace the old greens and reds across the app */
html.bh-light .app-hlgoal.is-met .app-hlbar > span, html.bh-light .app-hlautochecks li.is-met .app-hlbar > span { background: var(--bh-sage); }
html.bh-light .app-hlgoal.is-over .app-hlbar > span { background: var(--bh-coral); }
html.bh-light .app-hlgoal.is-over .app-hlgoalrow .app-small { color: var(--bh-coral-ink); }
html.bh-light .app-hlbar--sugar > i { background: var(--bh-sage); }
html.bh-light .app-hlbar--sugar.is-over > i { background: var(--bh-coral); }
html.bh-light .app-announce, html.bh-light .app-announce * { color: #FFFFFF; }
html.bh-light .app-announce a { color: #DCE8EE; }
html.bh-light .app-home--plain .app-board-head { background: transparent; box-shadow: none; border: 0; }
html.bh-light .app-main :has(> .bh-heading):not(:has(.bh-card)):not(:has(.app-main)) { background: var(--bh-page); }
/* Home: cards in two columns you arrange (gear > Arrange cards) */
.app-homecolumn { min-width: 0; }
.app-homegrid.is-arranging { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.app-homearr-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: #FFFFFF; box-shadow: var(--bh-shadow, 0 1px 3px rgba(0,0,0,.1)); color: #1F3A4D; }
.app-homearr-note > span { flex: 1; }
.app-homearr { border: 2px dashed #9FB4C4; border-radius: 16px; padding: 6px; background: rgba(255,255,255,.5); }
.app-homearr-bar { display: flex; align-items: center; gap: 8px; padding: 2px 6px 6px; font: 600 14px/20px var(--font-sans); color: #1F3A4D; }
.app-homearr-bar > span { flex: 1; }
.app-homearr-card { pointer-events: none; opacity: .85; max-height: 220px; overflow: hidden; }
.app-homecolumn:empty { min-height: 80px; border: 2px dashed #C9D4DC; border-radius: 16px; }
/* Health: the color says what a card is about, the same on Check-In and in Trends
   body (weight, blood pressure, checks) denim · moving (activity, steps, workouts) sage · food (goals, food, water) coral-pink · supplements lavender · summary navy */
.app-c-body { --cardc: #547996; --cardc-ink: #FFFFFF; }
.app-c-move { --cardc: #7E9F8E; --cardc-ink: #FFFFFF; }
.app-c-food { --cardc: #E99885; --cardc-ink: #8E3F33; }
.app-c-supp { --cardc: #9A8FB8; --cardc-ink: #FFFFFF; }
.app-c-trend { --cardc: #1F3A4D; --cardc-ink: #FFFFFF; }
html.bh-light :is(.app-c-body, .app-c-move, .app-c-food, .app-c-supp, .app-c-trend).bh-card { border-top: 4px solid var(--cardc); }
html.bh-light :is(.app-c-body, .app-c-move, .app-c-food, .app-c-supp, .app-c-trend) .app-cardtitle > .app-cardico { box-sizing: content-box; width: 16px; height: 16px; padding: 5px; border-radius: 999px; background: var(--cardc); color: var(--cardc-ink); }
/* Schedule: which day you're looking at, in words */
.app-dpday { font: 600 13px/18px var(--font-sans); color: #1F3A4D; margin-right: 2px; white-space: nowrap; }
.app-dpday:not(.is-today) { color: #6B5FA0; }
.app-dp-aside { display: inline-flex; align-items: center; } .app-dpday { align-self: center; }
/* display groceries: what it asked for, waiting for a parent to okay */
.fd-gnote { margin: 8px 0 0; font: 500 15px/20px var(--font-sans); color: #4F6E5E; }
.fd-greq .fd-greqitem { display: flex; justify-content: space-between; gap: 10px; color: #5B6B78; font-style: italic; }
.fd-greqitem.is-added { color: #4F6E5E; font-style: normal; }
.fd-greqitem.is-declined { color: #B85A4C; font-style: normal; text-decoration: line-through; }
/* display schedule (Today panel): one compact line per block */
.fd-ev--sched { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 6px 12px; border-radius: 10px; }
.fd-list > .fd-ev--sched + .fd-ev--sched { margin-top: -4px; }
.fd-ev--sched .fd-evtime { font-size: 15px; line-height: 22px; color: #5B6B78; }
.fd-ev--sched .fd-evt { font: 600 18px/24px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-ev--sched .fd-evend { font-size: 14px; line-height: 22px; }
.fd-schedlbl { font: 700 12px/22px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: #1F3A4D; }
.fd-ev--sched.is-now { box-shadow: inset 3px 0 0 #1F3A4D; }
/* a block's note ("From Family", or what you typed): after the time on a short block, cut off with … rather than peeking out at the side */
.app-dp-block:not(.is-short) > .app-dp-time { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-dp-timenote { color: var(--ink-muted); }

/* Home banners in lavender: Announcements dark, Birthdays light (white words still read on both) */
html.bh-light .app-announce { background: #4F4677; box-shadow: 0 4px 14px rgba(79, 70, 119, 0.22); }
html.bh-light .app-celebrate { background: #7D72A3; box-shadow: 0 4px 14px rgba(79, 70, 119, 0.18); }
html.bh-light .app-announce a { color: #E4E0F2; }
.app-dp-aside .app-dpday { line-height: 30px; height: 30px; display: inline-flex; align-items: center; }
/* Trends: one size for every chart and its words; tiles centered; the "by month" line small under the title */
.app-hlchart svg { width: 100%; height: auto; max-height: 180px; }
.app-hlchart .app-hlax { font-size: 11px; }
.app-hltile { text-align: center; justify-content: center; }
.app-hltile strong { font-size: 20px; line-height: 26px; }
.app-hltiles--sm .app-hltile strong { font-size: 18px; line-height: 24px; }
.app-hltrper { margin: 0 0 6px; font: 500 12px/16px var(--font-sans); color: #5B6B78; }
.app-hlranges { margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.app-hlcustom { display: inline-flex; align-items: center; gap: 6px; }
.app-hlcustom .bh-input { width: auto; padding: 4px 8px; }
/* Health: a day control (‹ Today ›) for a tab, or in a card's header */
.app-hldaybar { display: flex; justify-content: flex-start; margin: 0 0 10px; }
.app-hldaynav2 { display: inline-flex; align-items: center; gap: 2px; }
.app-hldaynav2 .app-navbtn { width: 28px; height: 28px; border: 0; background: transparent; color: #547996; border-radius: 8px; font-size: 18px; cursor: pointer; }
.app-hldaynav2 .app-navbtn:hover { background: #F2F6F9; }
.app-hldaylbl { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #1F3A4D; font: 600 14px/20px var(--font-sans); padding: 4px 6px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.app-hldaylbl .app-cardico { width: 16px; height: 16px; color: #547996; }
.app-hldaynav2.is-away .app-hldaylbl { color: #6B5FA0; }
.app-hldaynav2.is-small .app-hldaylbl { font-size: 13px; padding: 3px 4px; }
.app-hldaynav2.is-small .app-hldaylbl .app-cardico { display: none; }
.app-cardaside { gap: 4px; align-items: center; flex-wrap: nowrap; }
.app-hlsheettitle2 { display: inline-flex; align-items: center; gap: 10px; }
.app-hltodaybtn { font-size: 13px; }
/* Check-In: the two columns start level; Collapse/Expand sits up beside the section tabs instead of taking a row */
.app-hlmason--2 { position: relative; }
.app-hlfoldtop { position: absolute; right: 6px; top: -50px; margin: 0; z-index: 2; }
@media (max-width: 860px) { .app-hlfoldtop { position: static; } }
/* the task pop-up: ⋯ the same size and line as the arrows and the × */
.app-dialog:has(.app-workform) .app-cardhead .app-more { top: 12px; }
.app-dialog:has(.app-workform) .app-cardhead .app-morebtn { width: 29px; height: 29px; font-size: 15px; }
.app-hleffort { display: flex; flex-direction: column; gap: 4px; }
.app-hleffort .app-small { margin: 0; }
.app-hleffortest { margin: 2px 0 0; color: #4F6E5E; }
/* Home: Collapse/Expand beside the gear; the two banners more compact */
.app-homefold { display: inline-flex; gap: 6px; margin-left: auto; margin-right: -6px; }
.app-home .app-board-head { align-items: center; }
html.bh-light .app-announce, html.bh-light .app-celebrate { padding: 10px 14px; border-radius: 12px; }
html.bh-light .app-bannerhead { margin-bottom: 2px; font-size: 13px; line-height: 18px; letter-spacing: .02em; }
html.bh-light .app-bannerhead .app-cardico { width: 15px; height: 15px; }
html.bh-light .app-announce-item p { font-size: 14px; line-height: 20px; }
html.bh-light .app-announce-item + .app-announce-item { margin-top: 4px; padding-top: 4px; }
html.bh-light .app-celebrate ul { font-size: 14px; line-height: 20px; }
html.bh-light .app-celebrate li { padding: 2px 0; }
html.bh-light .app-celebrate-when { font-size: 12px !important; line-height: 20px !important; }
.app-homebanners { gap: 10px; }

/* Header: your name is a button; Sign out lives in its menu */
.app-mebtn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 999px; }
.app-mebtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-memenu .app-viewmenu { top: calc(100% + 6px); }
/* Phones: one tidy row under the name: quick-add icons on the left, View As and your picture on the right */
@media (max-width: 640px) {
  .app-header-inner .app-user { flex: 1 0 100%; flex-wrap: nowrap; justify-content: flex-end; gap: 6px; }
  .app-header-inner .app-user .app-quick { margin-right: auto; gap: 4px; }
  .app-header-inner .app-user .app-quickbtn { width: 34px; height: 34px; }
  .app-mebtn .bh-person { padding: 0; border: 0; background: none; gap: 0; font-size: 0; }
  .app-mebtn .bh-person .bh-dot { width: 34px; height: 34px; font-size: 15px; }
}

/* a return's store: a small picker on the row, so one can be added or changed later */
.app-gerr-store { flex: none; max-width: 40%; min-height: 26px; padding: 0 22px 0 8px; border: 1px dashed var(--border); border-radius: 6px; background-color: transparent; color: var(--ink-muted); font: inherit; font-size: 12px; }
.app-gerr-store.is-set { border-style: solid; color: var(--ink); border-left: 4px solid var(--sc, var(--border)); }

/* The site's color picker: spectrum square, rainbow hue bar, Hex and R G B */
.app-cp { display: flex; flex-direction: column; gap: 12px; width: 100%; min-width: min(340px, 78vw); }
.app-cp-sv { position: relative; height: 200px; border-radius: 10px; cursor: crosshair; touch-action: none;
  background-image: linear-gradient(to top, #000, rgba(0,0,0,0)), linear-gradient(to right, #fff, rgba(255,255,255,0)); }
.app-cp-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.3); pointer-events: none; }
.app-cp-hue { position: relative; height: 18px; border-radius: 9px; cursor: pointer; touch-action: none;
  background: linear-gradient(90deg, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); }
.app-cp-hdot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.3); pointer-events: none; }
.app-cp-fields { display: flex; align-items: flex-end; gap: 6px; }
.app-cp-swatch { flex: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); }
.app-cp-f { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--ink-muted); font-weight: 600; flex: 1 1 0; min-width: 0; }
.app-cp-f .bh-input { min-height: 34px; padding: 0 6px; font-size: 14px; text-align: center; -moz-appearance: textfield; }
.app-cp-f .bh-input::-webkit-inner-spin-button, .app-cp-f .bh-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.app-cp-hex { flex: 2 1 0; }
.app-cp-save { background: #1F3A4D; color: #fff; border-radius: 8px; width: 32px; height: 32px; font-size: 17px; }

/* ---------- House Cleaning: Clutter Sweep (sage, like the Fitness cards) ---------- */
.app-cleaning { --clc: #7E9F8E; --clink: #4F6E5E; }
.app-clhead { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.app-clh2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 17px/1.2 var(--font-sans); color: var(--ink); }
.app-clh2 .app-cardico, .app-clh2 svg { color: var(--clink); }
.app-clsec { margin-top: 4px; }
.app-clsechead { display: flex; align-items: center; gap: 6px; margin: 12px 0 4px; font: 700 12px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--clink); }
.app-clsechead .app-clcap { margin-left: auto; text-transform: none; letter-spacing: 0; }
.app-cllist { list-style: none; margin: 0; padding: 0; }
.app-clrow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); }
.app-clrow:last-child { border-bottom: 0; }
.app-clrow.is-done .app-cltitle { color: var(--ink-muted); text-decoration: line-through; }
.app-clname { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.app-cltitle { font: 600 15px/1.25 var(--font-sans); color: var(--ink); }
.app-clsub { font-size: 12px; color: var(--ink-muted); }
.app-cltag { margin-left: 6px; padding: 0 6px; border-radius: 4px; background: rgba(154, 143, 184, .18); color: #5E5480; font: 600 11px/18px var(--font-sans); vertical-align: 1px; }
.app-clstate { flex: none; font: 600 12px/1 var(--font-sans); color: var(--ink-muted); }
.app-clstate--due, .app-clstate--never { color: #B85A4C; }
.app-clstate--soon { color: #547996; }
.app-clokbar { margin-top: 10px; }
.app-clbar { height: 6px; margin: 2px 0 6px; border-radius: 3px; background: #E2E9EE; overflow: hidden; }
.app-clbar > span { display: block; height: 100%; border-radius: 3px; background: var(--clc, #7E9F8E); transition: width .3s; }
.app-clrooms { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.app-cldone { margin-top: 8px; }
.app-cldone > summary { cursor: pointer; font: 600 13px/1.4 var(--font-sans); color: var(--ink-muted); }
.app-clplanline { margin: 0 0 4px; font-size: 13px; color: var(--ink-muted); }
.app-clplanbtns { flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.app-clday { margin-top: 10px; }
.app-clday.is-past { opacity: .8; }
.app-cldayhead { display: flex; align-items: baseline; gap: 8px; margin: 0; padding-bottom: 3px; border-bottom: 2px solid #E2E9EE; font: 700 14px/1.3 var(--font-sans); color: var(--ink); }
.app-clday.is-today .app-cldayhead { border-bottom-color: var(--clc, #7E9F8E); color: var(--clink, #4F6E5E); }
.app-clcap { margin-left: auto; font: 500 12px/1 var(--font-sans); color: var(--ink-muted); }
.app-clcap.is-over, .app-clwarn { color: #B85A4C; }
.app-clmove { display: flex; align-items: center; gap: 4px; flex: none; }
.app-clmovesel { max-width: 108px; min-height: 28px; padding: 0 4px; border: 1px solid var(--border); border-radius: 6px; background: transparent; font: 500 12px var(--font-sans); color: var(--ink-muted); }
.app-clform { display: flex; flex-direction: column; gap: 4px; min-width: min(460px, 84vw); }
.app-clform .app-vprow > .bh-input, .app-clform .app-vprow > .app-cpwrap, .app-clform .app-vprow > span > .bh-input { width: 100%; }
.app-vprow--top { align-items: start; }
.app-clformfoot { justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.app-cldates { flex-wrap: nowrap; gap: 6px; }
.app-cldates .bh-input { min-width: 0; flex: 1; }
.app-clskips { flex-wrap: wrap; gap: 6px; }
.app-clskip { display: inline-flex; align-items: center; gap: 2px; padding: 0 2px 0 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
.app-clweek { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.app-clwd { display: flex; flex-direction: column; gap: 2px; font: 600 11px var(--font-sans); color: var(--ink-muted); text-align: center; }
.app-clwd .bh-input { padding: 0 2px; font-size: 12px; min-height: 32px; }
.app-clpick { margin: 6px 0 0; padding: 4px 10px 6px; border: 1px solid var(--border); border-radius: 8px; }
.app-clpick legend { padding: 0 4px; font: 700 13px var(--font-sans); }
.app-clpick legend label, .app-clpickrow { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.app-clpickrow { padding: 4px 0; font-size: 14px; }
.app-clpickrow > span:nth-child(2) { flex: 1; }
.app-clfacts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 8px; font-size: 14px; }
.app-clfacts dt { color: var(--ink-muted); font-weight: 600; }
.app-clfacts dd { margin: 0; }
.app-clhist { list-style: none; margin: 0 0 8px; padding: 0; }
.app-clhist li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.app-clhist li > span:first-child { min-width: 110px; font-weight: 600; }
.app-clhist li > .app-small { flex: 1; }
.app-clpast { flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
@media (max-width: 640px) {
  .app-clrooms { grid-template-columns: 1fr; }
  .app-clmovesel { max-width: 86px; }
  .app-clweek { grid-template-columns: repeat(4, 1fr); }
}
.app-cltabs { padding: 0; }
.app-clmovesel { max-width: 84px; }

.app-cltop { margin-bottom: 2px; }
.app-clhead { justify-content: space-between; }
.app-clbarrow { display: flex; align-items: flex-end; gap: 8px; }
.app-clbarrow .app-cltabs { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.app-clwho { flex: none; max-width: 120px; }
.app-clwho .app-cpbtn { min-height: 28px; font-size: 12px; }
.app-clsweeps .app-board-head { margin-top: 0; }
.app-clrow.is-done .app-gcheck { background: #7E9F8E; border-color: #7E9F8E; color: #fff; }
