:root {
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #f8f9fb; --border: #e2e5ea;
  --text: #1b1f24; --muted: #667080; --accent: #1f5fae; --accent-ink: #ffffff; --accent-soft: #e6eefa;
  --good: #1e7a4c; --good-soft: #e3f4ea; --warn: #9a5b00; --warn-soft: #fff1d9; --bad: #b3261e; --bad-soft: #fde8e6;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --surface: #1a1e24; --surface-2: #20252c; --border: #2d333b;
    --text: #e6e9ed; --muted: #9aa4b1; --accent: #5b9bea; --accent-ink: #0b1220; --accent-soft: #1d2b3f;
    --good: #5cc98e; --good-soft: #17301f; --warn: #e5a54b; --warn-soft: #33260f; --bad: #f2877e; --bad-soft: #3a1b19;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono { font-family: var(--mono); }

#app { display: flex; min-height: 100vh; }
.nav { width: 210px; flex: none; background: var(--surface); border-right: 1px solid var(--border); padding: 16px 10px;
  display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.nav[hidden] { display: none; }
.brand { font-weight: 700; font-size: 1.1rem; padding: 4px 10px 16px; display: flex; align-items: center; gap: 8px; }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-size: .95rem; }
.nav a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .i { width: 18px; text-align: center; }
.nav .logout { margin-top: auto; text-align: left; padding: 9px 10px; }
main { flex: 1; min-width: 0; padding: 24px; max-width: 1100px; }

.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stat .l { color: var(--muted); font-size: .8rem; }
.stat .v { font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .s { color: var(--muted); font-size: .8rem; }

button, .btn { font: inherit; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 8px 14px;
  border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; }
button:hover, .btn:hover { background: var(--surface-2); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.primary:hover { filter: brightness(1.07); }
button.danger { color: var(--bad); }
button.link { border: 0; background: none; color: var(--accent); padding: 0; min-height: 0; }
button.small, .btn.small { padding: 4px 10px; min-height: 30px; font-size: .88rem; }
button:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { font: inherit; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); min-height: 38px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 70px; resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.form .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--text); margin: 0; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; margin: -4px -8px; }
.empty { color: var(--muted); padding: 18px 4px; text-align: center; }

.pill { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 600; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

/* timer */
.timer { display: grid; gap: 12px; }
.timer.running { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
.clock { font: 650 2.2rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.timer-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.timer-grid .full { grid-column: 1 / -1; }

/* suggestions */
.suggest { position: relative; }
.suggest ul { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 240px; overflow: auto; }
.suggest li { padding: 7px 9px; border-radius: 6px; cursor: pointer; }
.suggest li:hover, .suggest li.sel { background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: .82rem; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; min-height: 0; }

/* login */
.login { max-width: 360px; margin: 12vh auto; }
.login .brand { justify-content: center; font-size: 1.4rem; padding-bottom: 20px; }
.login form { display: grid; gap: 12px; }
.err { color: var(--bad); font-size: .9rem; min-height: 1.2em; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.bad { background: var(--bad); color: #fff; }

dialog { border: 1px solid var(--border); border-radius: 12px; padding: 0; background: var(--surface); color: var(--text);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,14,20,.45); }
dialog form { padding: 18px; }
dialog .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
dialog .actions .left { margin-right: auto; }

.day { font-size: .8rem; color: var(--muted); font-weight: 600; padding: 14px 8px 4px; display: flex; justify-content: space-between; }
.entry-desc { word-break: break-word; }
.sub { font-size: .82rem; color: var(--muted); }

/* recycling */
.chipbar { display: flex; gap: 6px; flex-wrap: wrap; }
.chipbar button { min-height: 32px; padding: 4px 12px; border-radius: 99px; font-size: .88rem; }
.chipbar button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); display: block; }
.thumb.none { display: grid; place-items: center; color: var(--muted); font-size: .7rem; }
.unit-row td { vertical-align: middle; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photos .ph { position: relative; }
.photos .ph img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; display: block; }
.photos .ph button { position: absolute; top: -6px; right: -6px; min-height: 0; width: 24px; height: 24px; padding: 0; border-radius: 99px; justify-content: center; font-size: .8rem; }
.photo-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-add label { margin: 0; display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--border); border-radius: 8px; padding: 8px 12px; cursor: pointer; color: var(--text); font-size: .9rem; }
.photo-add input { display: none; }
.viewer { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 200; display: grid; place-items: center; padding: 16px; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
details.settings { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
details.settings summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
details.settings[open] summary { margin-bottom: 10px; }
.warnline { color: var(--warn); font-size: .85rem; }
.sec-title { font-size: .8rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 6px; }

.sline { display: grid; gap: 8px; grid-template-columns: 1fr 70px 90px 84px 32px; align-items: end; margin-bottom: 8px; }

.today-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.today-grid > .card { margin-bottom: 0; }
.nav .ver { padding: 2px 10px 0; font-size: .75rem; color: var(--muted); }
/* Today */
.today { max-width: 640px; }
.today h1 { font-size: 1.6rem; margin: 2px 0 12px; }
.wx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; }
.wxi { font-size: 1.9rem; line-height: 1; }
.wxt { font-weight: 600; }
.tbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--good); background: var(--good-soft); border-radius: var(--radius); margin-bottom: 14px; }
.tsec { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 4px 6px; }
.tlist, .clist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.trow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); min-height: 46px; }
.trow:last-child, .crow:last-child { border-bottom: 0; }
.trow .tw { width: 54px; flex: none; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.trow .tw.late { color: var(--bad); font-weight: 600; }
.trow .ti { width: 18px; text-align: center; flex: none; }
.trow input[type=checkbox] { width: 18px; height: 18px; flex: none; margin: 0; }
.trow .tt { flex: 1; min-width: 0; cursor: pointer; }
.tadd { display: flex; gap: 8px; margin-top: 8px; }
.tadd input:first-child { flex: 1; min-width: 0; }
.tadd input[type=time] { width: 120px; flex: none; }
.crow { display: flex; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.crow .cd { width: 70px; flex: none; color: var(--muted); }
.chip.bday { background: #f3e8fd; }
.chip.ev { background: var(--good-soft); }
.caldots i.ev { background: var(--good); }
ol.steps { padding-left: 20px; margin: 0 0 12px; line-height: 1.6; }
.caldots i.bday { background: #8a4fd1; }
@media (prefers-color-scheme: dark) { .chip.bday { background: #2e2140; } }
/* Work sub-tabs */
.subtabs { display: flex; gap: 4px; overflow-x: auto; margin: -8px 0 18px; padding-bottom: 2px; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.subtabs[hidden] { display: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { flex: none; padding: 8px 12px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subtabs a:hover { color: var(--text); }
.subtabs a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
/* Calendar */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; background: var(--surface); padding: 6px 12px; font-size: .9rem; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.calsec { margin: 12px 0 2px; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.calsec.bad { color: var(--bad); }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.calwd { background: var(--surface-2); padding: 6px 8px; font-size: .75rem; color: var(--muted); text-transform: uppercase; }
.calday { background: var(--surface); padding: 6px; min-height: 96px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.calgrid.week .calday { min-height: 220px; }
.calgrid.week .chip { white-space: normal; overflow-wrap: anywhere; }
.calday:hover { background: var(--surface-2); }
.calday.other { background: var(--surface-2); color: var(--muted); }
.calday.today .calnum { background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 0 7px; align-self: flex-start; }
.calnum { font-size: .82rem; font-weight: 600; }
.calnum .wdm { display: none; }
.chip { font-size: .78rem; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.inv { background: var(--warn-soft); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.done { opacity: .55; text-decoration: line-through; }
.chip.more { background: transparent; color: var(--muted); padding-left: 2px; }
.caldots { display: none; flex-wrap: wrap; gap: 3px; }
.caldots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.caldots i.inv { background: var(--warn); }
.caldots i.bad { background: var(--bad); }
.calhrs { margin-top: auto; font-size: .72rem; color: var(--muted); text-align: right; }
@media (max-width: 760px) {
  .calgrid.week { grid-template-columns: 1fr; }
  .calgrid.week .calwd { display: none; }
  .calgrid.week .calday { min-height: 0; }
  .calgrid.week .calnum .wdm { display: inline; }
  .calgrid.month .calday { min-height: 64px; padding: 3px; }
  .calgrid.month .chip { display: none; }
  .calgrid.month .caldots { display: flex; }
  .calgrid.month .calhrs { font-size: .62rem; }
  .calgrid.month .calwd { padding: 4px 2px; text-align: center; }
  .head .seg button { padding: 6px 9px; }
}
@media (max-width: 980px) { .today-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .nav .ver { display: none; }
  .sline { grid-template-columns: 1fr 1fr 1fr 32px; }
  .sline .sdesc { grid-column: 1 / -1; }
  #app { flex-direction: column; }
  main { padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; width: auto; flex-direction: row; z-index: 50;
    border-right: 0; border-top: 1px solid var(--border); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .nav .brand, .nav .logout { display: none; }
  .nav a { flex-direction: column; gap: 0; font-size: .68rem; padding: 6px 2px; flex: 1; text-align: center; }
  .nav a .i { font-size: 1.15rem; width: auto; }
  .hide-sm { display: none; }
  .timer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.25rem; }
}
td.click { cursor: pointer; }

/* Today 2.2 */
.today2 { max-width: 760px; }
.hero { position: relative; display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; padding: 22px 24px; border-radius: 18px; color: #fff; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 10px 30px -12px rgba(20, 40, 80, .45); }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none; }
.hero.ph-morning { background: linear-gradient(135deg, #ff9a5a 0%, #f6c25b 45%, #5aa9e6 100%); }
.hero.ph-day { background: linear-gradient(135deg, #2f80ed 0%, #56ccf2 100%); }
.hero.ph-evening { background: linear-gradient(135deg, #6a3093 0%, #c9548b 55%, #f6a05b 100%); }
.hero.ph-night { background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); }
.hero h1 { font-size: 2rem; margin: 2px 0 6px; color: #fff; letter-spacing: -.01em; }
.hl { flex: 1 1 280px; min-width: 0; position: relative; z-index: 1; }
.hdate { opacity: .9; font-size: .9rem; }
.hsum { opacity: .95; margin-bottom: 14px; }
.hsum b { background: rgba(255, 255, 255, .25); padding: 1px 8px; border-radius: 99px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; vertical-align: middle;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, .28) 0); }
.ring span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .18); font-weight: 700; font-size: .9rem; }
.ringl { display: inline-block; margin-left: 10px; vertical-align: middle; font-size: .9rem; opacity: .95; }
#wx { position: relative; z-index: 1; flex: 0 1 auto; text-align: right; }
.hw { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hwmain { display: flex; align-items: center; gap: 8px; }
.hwi { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2)); }
.hwt { font-size: 3rem; font-weight: 300; line-height: 1; }
.hwl { opacity: .95; }
.hchips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-top: 4px; }
.hchip { background: rgba(255, 255, 255, .22); border-radius: 99px; padding: 3px 10px; font-size: .8rem; white-space: nowrap; backdrop-filter: blur(4px); }
.warrow { display: inline-block; }
.tbar2 { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; margin-bottom: 14px; background: var(--good-soft); border: 1px solid var(--good); }
.tbt { flex: 1; min-width: 0; }
.tbc { font-size: 1.1rem; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 122, 76, .5); } 70% { box-shadow: 0 0 0 10px rgba(30, 122, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 122, 76, 0); } }
.tsec2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 18px 4px 8px; }
.tl { position: relative; }
.tli { display: grid; grid-template-columns: 70px 18px 1fr; align-items: center; }
.tlt { font-size: .8rem; color: var(--muted); text-align: right; padding-right: 8px; font-variant-numeric: tabular-nums; }
.tli.late .tlt { color: var(--bad); font-weight: 600; }
.tld { position: relative; align-self: stretch; }
.tld::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tld::after { content: ""; position: absolute; left: 3px; top: 50%; margin-top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--bg); }
.tlc { padding: 4px 0 4px 8px; min-width: 0; }
.tlc .trow { border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); min-height: 52px; }
.k-ev { --c: #1e9e6f; } .k-tk { --c: #2f80ed; } .k-bl { --c: #e2a03f; } .k-bd { --c: #a855f7; } .k-iv { --c: #e5484d; }
.tli.late { --c: #e5484d; }
.tlsep { margin: 10px 0 2px 88px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tlempty { padding: 26px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: 14px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.sday { scroll-snap-align: start; display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; min-height: 120px; box-shadow: var(--shadow); }
.sday:hover { border-color: var(--accent); }
.sday.free { opacity: .7; }
.sdw { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sdn { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.sit { font-size: .78rem; padding: 3px 6px; margin-bottom: 4px; border-radius: 6px; border-left: 3px solid var(--c); background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sit.more { border: 0; background: none; color: var(--muted); padding-left: 2px; }
@media (max-width: 760px) {
  .hero { padding: 18px; border-radius: 16px; }
  .hero h1 { font-size: 1.6rem; }
  #wx { text-align: left; flex-basis: 100%; }
  .hw { align-items: flex-start; }
  .hchips { justify-content: flex-start; }
  .hwt { font-size: 2.4rem; }
  .tli { grid-template-columns: 58px 16px 1fr; }
  .tlt { white-space: nowrap; font-size: .7rem; padding-right: 4px; }
  .tlsep { margin-left: 70px; }
  .strip { grid-auto-columns: 128px; }
}

/* Inbox card */
.inbox { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; margin-bottom: 6px; box-shadow: var(--shadow); }
.inbox.muted-card { color: var(--muted); font-size: .9rem; box-shadow: none; border-style: dashed; }
.mhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mtitle { font-weight: 700; }
.mcount { background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 1px 9px; font-size: .78rem; font-weight: 600; }
.msum { margin: 0 0 10px; padding: 10px 12px 10px 28px; background: linear-gradient(135deg, rgba(47,128,237,.08), rgba(168,85,247,.08)); border-radius: 12px; line-height: 1.5; }
p.msum { padding-left: 12px; }
.msum li { margin: 2px 0; }
.mlist { border-top: 1px solid var(--border); }
.mrow { display: grid; grid-template-columns: auto auto auto 1fr auto; gap: 6px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .9rem; }
.mrow:hover { background: var(--surface-2); }
.mrow .mfrom { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mrow.unread .mfrom { color: var(--text); font-weight: 700; }
.mrow .msub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mrow .mwhen { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.mrow .pill { font-size: .7rem; }
.mbill { cursor: pointer; }
.mfoot { display: flex; align-items: center; margin-top: 8px; }
.merr { color: var(--bad); font-size: .85rem; margin-bottom: 8px; }
@media (max-width: 760px) {
  .mrow { grid-template-columns: 1fr auto; }
  .mrow .mfrom { max-width: none; grid-column: 1; }
  .mrow .mwhen { grid-column: 2; grid-row: 1; }
  .mrow .msub { grid-column: 1 / -1; white-space: normal; }
  .mrow .pill { grid-column: 1 / -1; justify-self: start; }
}

/* ================================================================ 2.4 "Harbor" theme
   Ink navy + signal teal on cool mist; brass for money, buoy orange for alerts.
   One loud element: the Today header with its wind dial. Everything else stays quiet. */
:root {
  --bg: #eef2f4; --surface: #ffffff; --surface-2: #f5f8f9; --border: #dbe3e8;
  --text: #102a43; --muted: #5a6f82; --accent: #0e7c86; --accent-ink: #ffffff; --accent-soft: #e0f1f2;
  --good: #1d7a55; --good-soft: #e1f3ea; --warn: #96650f; --warn-soft: #fbf0d9; --bad: #c2410c; --bad-soft: #fde9df;
  --ink: #102a43; --brass: #b7862b; --buoy: #e8590c;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,42,67,.05), 0 4px 14px -6px rgba(16,42,67,.12);
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08131d; --surface: #0f1e2b; --surface-2: #142838; --border: #1f3446;
    --text: #e4edf3; --muted: #8ea3b5; --accent: #3cc2c9; --accent-ink: #06222a; --accent-soft: #0f3340;
    --good: #57c99a; --good-soft: #10302a; --warn: #e2b65c; --warn-soft: #31260f; --bad: #ff8a5b; --bad-soft: #3a1d12;
    --brass: #d9a84e; --buoy: #ff8a5b; --shadow: 0 1px 0 rgba(255,255,255,.03);
  }
}
html, body { font: 15.5px/1.5 var(--font); font-feature-settings: "tnum" 1; letter-spacing: -.003em; }
h1 { font-size: 1.65rem; font-weight: 650; letter-spacing: -.02em; }
h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; }
a { text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Navigation: a navy rail, always */
.nav { background: var(--ink); border-right: 0; color: #cfe0ea; width: 220px; padding: 22px 14px; gap: 4px; }
.nav .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; font-size: 1.05rem; margin: 0 6px 22px; }
.nav .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 0; }
.nav .logo svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a { color: #b9cddb; padding: 10px 12px; border-radius: 10px; font-weight: 500; position: relative; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(60,194,201,.14); color: #fff; font-weight: 600; }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #3cc2c9; }
.nav .i { width: 20px; height: 20px; display: grid; place-items: center; }
.nav .i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav .logout { color: #8fb0c4; }
.nav .ver { color: #6f8ca1; }
main { padding: 28px 36px 60px; }
@media (max-width: 760px) {
  main { padding: 16px 14px 104px; }
  .nav { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; height: auto; top: auto;
    border-radius: 20px; padding: 6px; background: rgba(16,42,67,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px -8px rgba(8,19,29,.5); border-top: 0; }
  .nav a { flex: 1; flex-direction: column; gap: 3px; padding: 8px 4px; font-size: .7rem; border-radius: 14px; }
  .nav a.active::before { display: none; }
  .nav a.active { background: rgba(60,194,201,.2); }
  .nav .brand, .nav .logout, .nav .ver { display: none; }
}

/* Headings, cards, controls */
.head { margin-bottom: 22px; }
.card, .stat { border-radius: 16px; border-color: var(--border); box-shadow: var(--shadow); padding: 18px 20px; }
.card h2 { margin-bottom: 12px; }
.stat .l { font-size: .82rem; }
.stat .v { font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
button, .btn { border-radius: 10px; font-weight: 550; min-height: 40px; transition: background .15s, border-color .15s; }
button.small, .btn.small { min-height: 32px; border-radius: 9px; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); box-shadow: 0 1px 2px rgba(14,124,134,.3); }
input, select, textarea { border-radius: 10px; min-height: 42px; padding: 9px 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label { font-size: .82rem; font-weight: 550; color: var(--muted); }
th { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 10px 10px; }
td { padding: 12px 10px; }
tr.click:hover td, tr[data-inv]:hover td, tr[data-bill]:hover td, tr[data-person]:hover td { background: var(--surface-2); }
.pill { border-radius: 7px; padding: 2px 8px; font-weight: 600; }
dialog { border: 0; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(8,19,29,.55); }
dialog form { padding: 24px; }
dialog::backdrop { background: rgba(8,19,29,.5); backdrop-filter: blur(3px); }
#toast { border-radius: 12px; }
.subtabs { gap: 6px; border-bottom: 0; margin: -6px 0 22px; }
.subtabs a { border: 1px solid transparent; border-radius: 99px; padding: 7px 14px; margin: 0; font-weight: 550; }
.subtabs a:hover { background: var(--surface); }
.subtabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .subtabs a.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } }
.seg { border-radius: 10px; }
.seg button.on { background: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { .seg button.on { background: var(--accent); color: var(--accent-ink); } }

/* Today header: a chart-table card with the wind dial */
.today2 { max-width: 820px; }
.hero { background: var(--ink); color: #e9f2f7; border-radius: 22px; padding: 26px 28px; gap: 24px; align-items: stretch;
  box-shadow: 0 18px 40px -22px rgba(8,19,29,.7); isolation: isolate; }
.hero.ph-morning, .hero.ph-day, .hero.ph-evening, .hero.ph-night { background-color: var(--ink); background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260' viewBox='0 0 420 260'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Cpath d='M-20 210c80-40 150 10 230-30s140-60 230-20'/%3E%3Cpath d='M-20 180c90-40 150 5 230-35s140-55 230-15'/%3E%3Cpath d='M-20 150c90-35 160 0 240-40s130-50 220-10'/%3E%3Cpath d='M-20 120c100-30 160-5 240-45s120-40 220-5'/%3E%3Cpath d='M-20 90c100-25 170-10 250-45s110-35 210-5'/%3E%3C/g%3E%3C/svg%3E"); background-size: 420px 260px; }
.hero::after { display: none; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: -1; }
.hero.ph-morning::before { background: linear-gradient(90deg, #f59e5b, #f6c25b); }
.hero.ph-day::before { background: linear-gradient(90deg, #3cc2c9, #6fb7f0); }
.hero.ph-evening::before { background: linear-gradient(90deg, #e8590c, #c9548b); }
.hero.ph-night::before { background: linear-gradient(90deg, #2c5364, #3cc2c9); }
.hero h1 { font-size: 2.1rem; font-weight: 650; letter-spacing: -.03em; margin: 4px 0 12px; }
.hdate { color: #9fc0d2; font-size: .92rem; opacity: 1; }
ul.hsum { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; opacity: 1; }
ul.hsum li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); padding: 4px 11px; border-radius: 99px; font-size: .88rem; }
ul.hsum li b { background: none; padding: 0; color: #ffb38a; }
.hprog { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: #b9d1df; }
.hbar { flex: 0 1 220px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.hbar span { display: block; height: 100%; background: #3cc2c9; border-radius: 99px; transition: width .5s; }
#wx { text-align: left; flex: 0 1 300px; }
.wxp { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 14px 16px; height: 100%; }
.wxtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wxtemp { font-size: 2.9rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.wxl { color: #b9d1df; font-size: .88rem; margin-top: 6px; }
.compass { width: 96px; height: 96px; flex: none; }
.compass .cring { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.25); stroke-width: 1; }
.compass .cticks line { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.compass text { fill: #9fc0d2; font-size: 8px; text-anchor: middle; font-family: var(--font); font-weight: 600; }
.compass .cn { fill: #ffb38a; }
.compass .carrow { fill: #3cc2c9; }
.compass .cshaft { stroke: #3cc2c9; stroke-width: 2; stroke-linecap: round; }
.compass .chub { fill: var(--ink); stroke: rgba(255,255,255,.2); }
.compass .ckn { fill: #fff; font-size: 13px; font-weight: 650; }
.compass .cku { fill: #9fc0d2; font-size: 7px; }
dl.wxfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 14px 0 0; }
dl.wxfacts dt { font-size: .74rem; color: #8fb0c4; }
dl.wxfacts dd { margin: 0; font-size: .9rem; font-weight: 600; color: #fff; }
@media (max-width: 760px) {
  .hero { padding: 20px; border-radius: 20px; }
  .hero h1 { font-size: 1.7rem; }
  #wx { flex-basis: 100%; }
}

/* Timer bar */
.tbar2 { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.pulse { background: var(--accent); }

/* Section headings on Today */
h2.tsec2 { text-transform: none; letter-spacing: -.01em; font-size: 1.1rem; font-weight: 650; color: var(--text); margin: 26px 2px 10px; }
.tlsep { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 600; }
.tlc .trow { border-radius: 14px; border-left-width: 1px; box-shadow: var(--shadow); padding: 12px 14px; }
.tli .tld::after { width: 10px; height: 10px; left: 4px; margin-top: -5px; }
.k-ev { --c: #0e7c86; } .k-tk { --c: #3b6fb6; } .k-bl { --c: #b7862b; } .k-bd { --c: #8b5cf6; } .k-iv { --c: #e8590c; }
.tli.late { --c: #e8590c; }
.sday { border-radius: 16px; }
.sdw { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 550; }
.sit { border-radius: 7px; }
.tlempty { border-radius: 16px; }

/* Inbox: one line per mail, grouped */
.inbox { border-radius: 18px; padding: 18px 20px; margin-top: 4px; }
.mhead { margin-bottom: 12px; }
h2.mtitle { margin: 0; font-size: 1.1rem; }
.mcount { background: var(--ink); color: #fff; border-radius: 7px; }
@media (prefers-color-scheme: dark) { .mcount { background: var(--accent); color: var(--accent-ink); } }
.dgsec { margin-bottom: 14px; }
.dgsec h3 { font-size: .85rem; font-weight: 600; color: var(--muted); margin: 0 0 6px 2px; }
a.dg { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; background: var(--surface-2); margin-bottom: 6px; }
a.dg:hover { background: var(--accent-soft); }
.dgi { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c); }
.dg-check { --c: var(--buoy); } .dg-reply { --c: var(--accent); } .dg-money { --c: var(--brass); }
.dgb { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dgf { font-weight: 600; font-size: .92rem; }
a.dg:not(.unread) .dgf { font-weight: 500; color: var(--muted); }
.dgc { font-size: .72rem; font-weight: 600; color: var(--good); background: var(--good-soft); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.dgs { font-size: .9rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgx { font-weight: 650; color: var(--brass); white-space: nowrap; font-size: .88rem; }
.dgt { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.dgnone { margin: 2px 0 10px; color: var(--muted); }
.dgskip { margin: 4px 2px 0; color: var(--muted); font-size: .84rem; }
.mlist { margin-top: 8px; }
.mfoot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
@media (max-width: 760px) {
  a.dg { flex-wrap: wrap; gap: 4px 10px; }
  .dgb { flex-basis: calc(100% - 30px); }
  .dgx, .dgt { margin-left: 20px; }
  .dg .mbill { margin-left: auto; }
}

/* ================================================================ 2.5 "Chartplotter" theme
   A boat instrument display: always dark, condensed numerals, teal for normal, amber for money
   and caution, alarm orange for overdue. The one loud element: the instrument tiles on Today. */
:root, :root:root {
  --bg: #05101a; --surface: #0b1d2b; --surface-2: #0f2536; --border: #16324a;
  --text: #dbe8f0; --muted: #7f9bb0; --accent: #4fd1c5; --accent-ink: #04201d; --accent-soft: #0f3338;
  --good: #68d391; --good-soft: #10302a; --warn: #f6ad55; --warn-soft: #33250f; --bad: #ff8a5b; --bad-soft: #3a1d12;
  --ink: #071622; --brass: #f6ad55; --buoy: #ff8a5b;
  --shadow: none; --radius: 12px;
  --font: Barlow, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Semi Condensed", Barlow, sans-serif;
  color-scheme: dark;
}
html, body { background: var(--bg); color: var(--text); font: 15.5px/1.5 var(--font); letter-spacing: 0; }
h1, h2, h3, .stat .v, .wxtemp { font-family: var(--display); letter-spacing: 0; }
h1 { font-size: 1.9rem; font-weight: 600; color: #fff; }
h2 { font-weight: 600; color: #e6f0f6; }
.card, .stat, .inbox, .tbar2, .sday, .tlc .trow, .tlempty { background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
input, select, textarea { background: #07182a; border-color: var(--border); color: var(--text); }
input::placeholder, textarea::placeholder { color: #5f7d93; }
button, .btn { background: #0f2536; border-color: #1f4560; color: var(--text); }
button:hover, .btn:hover { background: #143049; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 14px -4px rgba(79,209,197,.6); }
button.link { background: none; color: var(--accent); }
th { color: var(--muted); border-color: var(--border); }
td { border-color: var(--border); }
tr.click:hover td, tr[data-inv]:hover td, tr[data-bill]:hover td, tr[data-person]:hover td { background: var(--surface-2); }
.pill { background: #0f2536; color: var(--muted); }
dialog { background: #0b1d2b; color: var(--text); border: 1px solid var(--border); box-shadow: 0 30px 80px -20px #000; }
dialog::backdrop { background: rgba(2,8,14,.7); }
#toast { background: #0f2536; color: #fff; border: 1px solid #1f4560; }
.mono, .num, .tbc { font-variant-numeric: tabular-nums; }

/* Navigation */
.nav { background: #071622; border-right: 1px solid var(--border); }
.nav .logo { background: transparent; border: 1.5px solid var(--accent); }
.nav .logo svg { stroke: var(--accent); }
.nav a { color: #8fa9bc; }
.nav a.active { background: rgba(79,209,197,.1); color: var(--accent); }
.nav a.active::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.subtabs a { color: var(--muted); }
.subtabs a:hover { background: var(--surface); color: var(--text); }
.subtabs a.active, :root .subtabs a.active { background: var(--accent-soft); color: var(--accent); border-color: #1f5560; }
.seg button { background: var(--surface); color: var(--muted); }
.seg button.on, :root .seg button.on { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 760px) {
  .nav { background: rgba(7,22,34,.94); border: 1px solid var(--border); }
  .nav a.active { background: rgba(79,209,197,.14); }
}

/* Today: header + instrument tiles */
.cp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.cp-date { color: var(--muted); font-size: .9rem; }
.cp-head h1 { margin: 2px 0 0; }
.cp-clock { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tiles-wx { display: contents; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.tile.wind { display: flex; align-items: center; gap: 12px; }
.tl-l { font-size: .78rem; color: var(--muted); }
.tl-v { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: #fff; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tl-v.big { font-size: 2.4rem; line-height: 1; }
.tl-v small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.tl-s { font-size: .8rem; color: #9fb7c8; margin-top: 3px; }
.tl-s.amber { color: var(--warn); }
.tl-bar { height: 4px; border-radius: 4px; background: var(--border); margin-top: 6px; overflow: hidden; }
.tl-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; box-shadow: 0 0 8px var(--accent); }
.tile.alarm { background: #2a1309; border-color: #7a2e0e; }
.tile.alarm .tl-l { color: var(--warn); }
.tile.alarm .tl-v { color: var(--bad); }
.tile.alarm .tl-s { color: #f0b79b; }
.tile.ok .tl-v { color: var(--good); }
.dial { width: 62px; height: 62px; flex: none; }
.dial circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.dial .d-track { stroke: #1f4560; }
.dial .d-val { stroke: var(--accent); filter: drop-shadow(0 0 3px rgba(79,209,197,.7)); }
.dial .d-arrow { fill: var(--accent); }
.dial .d-num { fill: #fff; font: 600 24px var(--display); text-anchor: middle; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* Route (timeline) */
.today2 { max-width: 900px; }
h2.tsec2 { font-family: var(--display); font-size: 1.05rem; color: #9fb7c8; margin: 20px 2px 8px; }
.tld::before { background: var(--border); }
.tld::after { box-shadow: 0 0 0 3px var(--bg), 0 0 9px var(--c); }
.tlc .trow { border-radius: 12px; }
.k-ev { --c: #4fd1c5; } .k-tk { --c: #63b3ed; } .k-bl { --c: #f6ad55; } .k-bd { --c: #b794f4; } .k-iv { --c: #ff8a5b; }
.tli.late { --c: #ff8a5b; }
.tlt { color: var(--muted); }
.tli.late .tlt { color: var(--bad); }
.tlsep { color: var(--muted); }
.tbar2 { border-color: #1f5560; }
.pulse { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.sit { background: var(--surface-2); }
.sdn { font-family: var(--display); color: #fff; }

/* Inbox as an instrument panel */
.mcount, :root .mcount { background: var(--accent-soft); color: var(--accent); }
a.dg { background: var(--surface-2); }
a.dg:hover { background: #143049; }
.dgi { box-shadow: 0 0 8px var(--c); }
.dg-check { --c: var(--bad); } .dg-reply { --c: var(--accent); } .dg-money { --c: var(--warn); }
.dgx { color: var(--warn); }
.dgc { background: var(--good-soft); color: var(--good); }
.msum { background: var(--surface-2); }
.chip { background: var(--accent-soft); color: var(--text); }
.chip.bday { background: #2e2140; }
.chip.inv { background: #33250f; }
.chip.ev { background: #0f3338; }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.calwd { background: #07182a; }
.calday.today .calnum { color: var(--accent-ink); }
