:root {
  --bg: #14161c; --panel: #1d2028; --panel2: #262a34; --line: #323744;
  --text: #eceef3; --dim: #9aa1b2; --accent: #7c9cff; --ok: #4cc38a; --warn: #f2a541; --bad: #ef5b6b;
  --event: #7c9cff; --todo: #f2a541; --list: #4cc38a; --note: #c77dff;
  --r: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f5f6f9; --panel: #fff; --panel2: #eef0f5; --line: #dde1ea; --text: #1a1d24; --dim: #5d6474; --accent: #3f62e8; --event: #3f62e8; --todo: #c47a0a; --list: #22985f; --note: #9a4fd6; color-scheme: light; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
textarea { resize: none; }

.locked { max-width: 420px; margin: 20vh auto; padding: 24px; text-align: center; color: var(--dim); }

#app { max-width: 720px; margin: 0 auto; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

.top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: calc(10px + env(safe-area-inset-top)) 12px 8px; }
#capture { display: flex; gap: 8px; align-items: flex-end; }
#dump { min-height: 52px; max-height: 40vh; font-size: 18px; border-radius: var(--r); padding: 14px; background: var(--panel); }
#capture button { flex: 0 0 52px; height: 52px; border: 0; border-radius: var(--r); background: var(--accent); color: #fff; font-size: 28px; line-height: 1; }
.top { padding-bottom: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); z-index: 20; max-width: min(520px, 92vw); width: max-content;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }

main { padding: 4px 12px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin: 22px 4px 8px; font-weight: 600; }
h2:first-child { margin-top: 6px; }
.empty { color: var(--dim); padding: 10px 4px; }
.hint { color: var(--dim); font-size: 14px; margin: 4px 4px 10px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; }
.card.tap { cursor: pointer; }
.card .meta { font-size: 12px; color: var(--dim); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card .raw { white-space: pre-wrap; word-break: break-word; }
.card .title { font-weight: 600; }
.card .details { color: var(--dim); font-size: 14px; white-space: pre-wrap; margin-top: 2px; }
.line { display: flex; gap: 12px; align-items: flex-start; }
.line .body { flex: 1; min-width: 0; }
.time { flex: 0 0 76px; font-variant-numeric: tabular-nums; color: var(--dim); font-size: 14px; padding-top: 1px; }

.pill { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; background: var(--panel2); }
.pill.event { color: var(--event); } .pill.todo { color: var(--todo); } .pill.list { color: var(--list); } .pill.note { color: var(--note); }
.who { display: inline-flex; align-items: center; gap: 4px; }
.who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--dim)); }

.check { flex: 0 0 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: transparent; margin-top: -1px; }
.check.done { background: var(--ok); border-color: var(--ok); }
.check.done::after { content: "\2713"; color: #fff; font-weight: 700; }
.isdone .title, .isdone .raw { text-decoration: line-through; color: var(--dim); }

.btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.btns button, .ghost, .primary { border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.primary, .btns .primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.danger { color: var(--bad); }
.btns .t-event { color: var(--event); } .btns .t-todo { color: var(--todo); } .btns .t-list { color: var(--list); } .btns .t-note { color: var(--note); }

.suggest { border-left: 3px solid var(--accent); background: var(--panel2); border-radius: 10px; padding: 8px 10px; margin-top: 10px; }
.suggest .sline { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 3px 0; }
.suggest .low { color: var(--warn); font-size: 12px; }
.bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 6px 4px 12px; flex-wrap: wrap; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.chips button { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 5px 12px; font-size: 14px; }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.addrow { display: flex; gap: 6px; margin-top: 6px; }
.addrow button { flex: 0 0 auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; background: var(--panel2); padding: 8px 10px; border-radius: 8px; user-select: all; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; background: var(--panel); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabs button { flex: 1; max-width: 120px; border: 0; background: none; padding: 10px 2px; color: var(--dim); font-size: 14px; font-weight: 600; border-radius: 10px; position: relative; }
.tabs button.on { color: var(--text); background: var(--panel2); }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; }

dialog { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); width: min(560px, 94vw); padding: 16px; }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog label { display: block; font-size: 13px; color: var(--dim); margin-top: 10px; }
dialog label input, dialog label textarea, dialog label select { margin-top: 4px; }
dialog .raw { white-space: pre-wrap; color: var(--dim); font-size: 14px; margin: 0 0 10px; border-left: 3px solid var(--line); padding-left: 10px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg button { border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 9px 0; font-weight: 600; font-size: 14px; }
.seg button.on[data-v=event] { background: var(--event); color: #fff; border-color: var(--event); }
.seg button.on[data-v=todo] { background: var(--todo); color: #fff; border-color: var(--todo); }
.seg button.on[data-v=list] { background: var(--list); color: #fff; border-color: var(--list); }
.seg button.on[data-v=note] { background: var(--note); color: #fff; border-color: var(--note); }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.actions { margin-top: 16px; flex-wrap: wrap; }
.actions .primary { flex: 1 0 100%; padding: 12px; }
@media (min-width: 520px) { .actions .primary { flex: 1; } }

/* ---- v0.2 ---- */
.center { max-width: 440px; margin: 0 auto; padding: 16vh 24px 40px; text-align: center; }
.center h1 { margin: 12px 0 8px; }
.logo { width: 88px; height: 88px; }
.big { display: inline-block; font-size: 18px; padding: 14px 26px; border-radius: 14px; margin: 16px 0 8px; text-decoration: none; }
.err { color: var(--bad); min-height: 1.4em; }
.steps { text-align: left; margin-top: 18px; }
.steps ol { padding-left: 22px; line-height: 1.8; }
.steps .big { display: block; text-align: center; }
.dayhead { margin: 2px 4px 6px; font-size: 22px; font-weight: 700; }
.photo { flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); font-size: 22px; cursor: pointer; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.thumbs .pdf { padding: 6px 10px; border-radius: 8px; background: var(--panel2); color: var(--text); font-size: 13px; text-decoration: none; }
.reason { font-size: 14px; color: var(--warn); margin-bottom: 4px; }
.pending { margin-top: 8px; }
.rep { color: var(--dim); }
.link { background: none; border: 0; color: var(--accent); padding: 4px 6px; font-size: 14px; text-decoration: underline; }
.link.danger { color: var(--bad); }
.card.small { font-size: 14px; }
.person .row { margin-top: 6px; }
.person label { font-size: 12px; color: var(--dim); display: block; }
.person input { margin-top: 2px; font-size: 14px; padding: 8px 10px; }
.linkout:empty { display: none; }
.linkout { margin-top: 8px; }
#profile { margin: 4px 0; }
#dump { font-size: 17px; }
.photo { flex-basis: 46px; }
.title, .sline span, .raw, .details { overflow-wrap: anywhere; }
.pill.update { color: var(--accent); } .pill.cancel { color: var(--bad); }
.suggest.urgent { border-left-color: var(--warn); }
.which { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; font-size: 14px; color: var(--dim); }
.which button { text-align: left; border: 1px solid var(--accent); background: var(--panel); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.card.change { border-left: 3px solid var(--accent); }
.ok { color: var(--ok); font-size: 12px; }
p.err { color: var(--bad); }
code { font-size: 13px; background: var(--panel2); padding: 1px 4px; border-radius: 4px; }

.cal { font-size: 11px; padding: 1px 6px; border-radius: 99px; background: var(--panel2); color: var(--dim); }
.calrow input[data-f=note] { margin: 6px 0 4px; font-size: 14px; padding: 8px 10px; }
.tick { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--dim); }
.tick input { width: auto; }

/* calendar colors */
.card.calc { border-left: 5px solid var(--cc); }
.cal { display: inline-flex; align-items: center; gap: 4px; background: none; padding: 0; color: var(--dim); }
.cal::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cc, var(--dim)); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 2px 4px 8px; font-size: 12px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cc); }
.calrow .row { align-items: center; margin-top: 6px; }
.calrow .row input[data-f=note] { margin: 0; }
.calrow input[type=color] { flex: 0 0 44px; width: 44px; height: 38px; padding: 2px; border-radius: 8px; }

.field { margin-top: 10px; }
.field .lbl { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.chips.pick button.who-pick { display: inline-flex; align-items: center; gap: 6px; }
.chips.pick button.who-pick::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.addrow .tick { flex: 0 0 auto; }
.chips.pick button.on::before { box-shadow: 0 0 0 2px #fff; }

/* home brief */
.hello { margin: 4px 4px 0; font-size: 15px; color: var(--dim); }
.card.nudge { border-left: 4px solid var(--warn); }
.age { color: var(--dim); }
.card.week { padding: 8px 12px; }
.wday + .wday { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.wd { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.wrow { display: flex; gap: 10px; align-items: baseline; padding: 4px 0 4px 8px; font-size: 15px; cursor: pointer; border-left: 3px solid var(--cc, transparent); }
.wrow .wt { flex: 0 0 72px; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
/* birthdays */
.card.bday { position: relative; overflow: hidden; padding-left: 18px; background: linear-gradient(90deg, rgba(255,0,128,.07), rgba(255,200,0,.07), rgba(0,200,255,.07)); }
.card.bday::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(180deg, #ff3b3b, #ff9f1c, #ffd60a, #38b000, #3a86ff, #8338ec); }
.txt { flex: 0 0 auto; align-self: center; text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 10px; color: #fff; background: linear-gradient(90deg, #ff3b3b, #ff9f1c, #38b000, #3a86ff, #8338ec); }

.card.brief { border: 1px solid var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel)); margin: 8px 0 10px; }
.brief .bhead { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.brief .bhead .link { text-transform: none; letter-spacing: 0; font-weight: 500; }
.brief p { margin: 6px 0 0; font-size: 16px; line-height: 1.4; }

.load { margin-left: 6px; padding: 2px 8px; border-radius: 99px; font-size: 11px; letter-spacing: .03em; color: #fff; }
.load-light { background: #2b8a3e; } .load-steady { background: #3f62e8; } .load-busy { background: #e8590c; } .load-heavy { background: #ae3ec9; }

.sline .x { border: 0; background: none; color: var(--dim); font-size: 18px; line-height: 1; padding: 0 4px; margin-left: -4px; }
.usually { flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.usually label { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }

.seg.vis { grid-template-columns: repeat(3, 1fr); }
.seg.vis button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.lock { font-size: .85em; }

/* ---------- wide screens: laptop / iPad landscape ---------- */
.colhead { display: none; }
@media (min-width: 900px) {
  #app { max-width: 1280px; }
  .top { padding-left: 24px; padding-right: 24px; }
  main { padding: 4px 24px; }
  #view.narrow { max-width: 760px; margin: 0 auto; }
  .home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
  .home .col.calcol { position: sticky; top: 92px; max-height: calc(100vh - 180px); overflow-y: auto; padding-right: 4px; }
  .colhead { display: block; margin-top: 10px; }
  .home .col.calcol .chips { margin-top: 0; }
  .tabs { justify-content: center; gap: 4px; }
  .tabs button { max-width: 150px; }
  .flash, .toast { bottom: 90px; }
}
@media (min-width: 1300px) { .home { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }

/* ---------- weather ---------- */
.wxrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.wxrow:empty { display: none; }
.wx { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; min-width: 0; }
.wx.stale { opacity: .6; }
.wxtop { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wxl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); flex: 0 0 auto; }
.wxn { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wxnow { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.wxi.big { font-size: 30px; line-height: 1; }
.wxt { font-size: 32px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wxs { font-size: 13px; color: var(--dim); line-height: 1.3; }
.wxnext { display: flex; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.wxd { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--dim); gap: 2px; font-variant-numeric: tabular-nums; }
.wxd span:last-child { color: var(--text); font-weight: 600; }
.wxd i { font-style: normal; color: var(--dim); font-weight: 400; margin-left: 4px; }
.wxd .wxi { font-size: 18px; }
.wxset { display: flex; align-items: center; gap: 8px; }
.wxset .hint { margin: 0; flex: 1; }
@media (max-width: 520px) { .wxrow { grid-template-columns: 1fr 1fr; } .wxnext { display: none; } .wxnow { flex-wrap: wrap; gap: 4px 8px; } .wxs { flex-basis: 100%; font-size: 12px; } .wxs .nw { overflow: hidden; text-overflow: ellipsis; } .wxt { font-size: 26px; } .wxi.big { font-size: 24px; } }
.late { color: var(--warn); font-weight: 600; }

.wxs { display: flex; flex-direction: column; min-width: 0; } .wxs .nw { white-space: nowrap; } .wxr { color: var(--accent); }

/* Phones: one column, to-dos right under the brief, weather at the very bottom. */
@media (max-width: 899px) {
  .home { display: flex; flex-direction: column; }
  .home .col { display: contents; }
  .home .hello { order: 0; } .home .dayhead { order: 1; }
  .s-brief { order: 2; } .s-look { order: 3; } .s-plate { order: 4; } .s-changes { order: 5; } .s-notes { order: 6; } .s-lists { order: 7; }
  .s-who { order: 8; } .s-bday { order: 9; } .s-today { order: 10; } .s-week { order: 11; } .s-next { order: 12; }
  .home .wxrow { order: 20; margin-top: 22px; }
}

/* Long details (a recipe card) stay short in lists; tap to open the whole thing. */
.line .details { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Recipe groups on Lists: one tidy row each until opened. */
.rgroup { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; padding: 0 10px; }
.rgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 4px; }
.rgroup > summary::-webkit-details-marker { display: none; }
.rgroup > summary::before { content: "\25B8"; color: var(--dim); transition: transform .15s; }
.rgroup[open] > summary::before { transform: rotate(90deg); }
.rgroup .rname { font-weight: 600; flex: 1; }
.rgroup[open] { padding-bottom: 6px; }
.rgroup .card { margin-bottom: 6px; }

/* Weekly menu */
.menu { padding: 6px 12px; }
.mday { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.mday:last-of-type { border-bottom: 0; }
.mday .md { flex: 0 0 96px; color: var(--dim); font-size: 14px; }
.mday .mm { display: flex; flex-wrap: wrap; gap: 6px; }
.meal { display: inline-flex; align-items: center; gap: 4px; background: var(--panel2); border-radius: 99px; padding: 3px 4px 3px 12px; font-weight: 600; }
.meal.isdone { opacity: .5; text-decoration: line-through; }
.meal .x { background: none; border: 0; color: var(--dim); font-size: 18px; padding: 0 6px; }
#addMeal select { flex: 1; min-width: 0; }
.menu #addMeal { margin: 8px 0 4px; }
.rgroup.shared { border-color: var(--accent); }
details.recipe { border-top: 1px solid var(--line); padding: 8px 4px; }
details.recipe > summary { cursor: pointer; font-weight: 600; }
details.recipe .details { white-space: pre-wrap; color: var(--dim); font-size: 14px; margin: 6px 0; }
details.recipe .link { margin-right: 12px; }

/* Home menu widget: just the planned days */
.menuw .mw { display: flex; gap: 12px; padding: 4px 0; }
.menuw .md { flex: 0 0 92px; color: var(--dim); font-size: 14px; }
.menuw .bhead { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
.menuw .bhead .hint { text-transform: none; letter-spacing: 0; font-weight: 400; margin: 0; }
.menuw #ideasOpen { margin-top: 6px; padding-left: 0; }
.menuw { margin-top: 8px; }
@media (max-width: 899px) { .s-menu { order: 19; margin-top: 22px; } .home .wxrow { margin-top: 8px; } }
#ideas .dh { margin: 0 0 4px; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--text); }
#ideas .idea { margin-top: 10px; }
#ideas .idea .details { white-space: pre-wrap; }

/* ---------- Home focus card: one card, every thing a colored pill ---------- */
.focus { padding: 12px 14px; margin-top: 8px; }
.fload { font-size: 15px; line-height: 1.4; padding-bottom: 8px; }
.fload .load { margin-right: 6px; }
.frow { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.fl { flex: 0 0 104px; color: var(--dim); font-size: 13px; padding-top: 5px; white-space: nowrap; }
.fp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.fp .link { padding: 2px 4px; font-size: 13px; }
.pl { --c: var(--dim); display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 14px; font-weight: 600; line-height: 1.25;
  cursor: pointer; text-decoration: none; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); max-width: 100%; }
.pl:active { transform: scale(.97); }
button.pl { font: inherit; font-size: 14px; font-weight: 600; margin: 0; }
.k-event { --c: #7c9cff; } .k-todo { --c: #f2a541; } .k-late { --c: #ef5b6b; } .k-meal { --c: #ff8a4c; } .k-meal2 { --c: #ffb38a; }
.k-radar { --c: #9fb3c8; border-style: dashed; } .k-list { --c: #4cc38a; } .k-note { --c: #b388ff; } .k-wx { --c: #3cc6d6; } .k-alert { --c: #ef5b6b; } .k-change { --c: #9aa1b2; } .k-more { --c: var(--text); background: transparent; }
.k-event[data-calcolor]:not([data-calcolor=""])::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc); flex: 0 0 auto; }
.k-bday { --c: #ff6fae; background: linear-gradient(90deg, rgba(255,59,59,.18), rgba(255,214,10,.18), rgba(56,176,0,.18), rgba(58,134,255,.18), rgba(131,56,236,.18)); }
.ghostpill { border-style: dashed; }
@media (prefers-color-scheme: light) {
  .k-event { --c: #3050d8; } .k-todo { --c: #a85f00; } .k-late { --c: #c8323f; } .k-meal { --c: #c94c14; } .k-meal2 { --c: #b5622e; }
  .k-radar { --c: #4a5d73; } .k-list { --c: #1a8150; } .k-note { --c: #7d36c8; } .k-wx { --c: #0a7f8c; } .k-alert { --c: #c8323f; } .k-change { --c: #5d6474; } .k-bday { --c: #c2185b; }
}
.kidcard .sun { font-size: 22px; font-weight: 700; margin: 2px 0 8px; }
.wxfull { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
.wxfull .wxnext { display: flex !important; }
@media (max-width: 899px) { .home .calcol { display: none; } }
@media (min-width: 900px) { #app { max-width: none; width: 80vw; min-width: min(880px, 100vw); margin: 0 auto; } }
@media (max-width: 899px) {
  .home .focus { order: 2; }
  .frow { flex-direction: column; gap: 6px; padding: 10px 0; }
  .fl { flex: none; padding-top: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
}
.fload .pl { margin-left: 4px; vertical-align: middle; }
.fchg { font-size: 13px; color: var(--dim); padding: 0 0 8px; }
.fchg .link { font-size: 13px; padding: 0 4px; }

/* Summary and roomier pills, so each thing reads as its own item */
.fsum { margin: 2px 0 10px; font-size: 16px; line-height: 1.45; }
.fsum:empty { display: none; }
.focus { padding: 14px 16px; }
.frow { padding: 14px 0; }
.fp { gap: 10px; }
.pl { padding: 8px 14px; font-size: 15px; }
button.pl { font-size: 15px; }
@media (max-width: 899px) { .frow { gap: 10px; padding: 14px 0; } }

/* Meal tag on the Lists menu */
.meal .slot { font-size: 12px; color: var(--dim); font-weight: 600; }

/* Whose things: a dropdown, not a chip per person */
.whosel { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; margin: 4px 0 8px; }
.whosel select { flex: 1; max-width: 260px; }
.tabs button[data-tab=settings] { flex: 0 0 44px; }
