:root {
  /* warm, home palette: cream + terracotta + soft sage */
  --bg: #f4efe6; --card: #fffdf9; --ink: #35302a; --muted: #988e7f;
  --line: #ebe3d5; --accent: #c06a49; --accent-dark: #a5573a; --accent-ink: #fff;
  --green: #5c9e6a; --yellow: #e0ad4b; --red: #d66a58; --grey: #d6cdbe;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(70,55,35,.05), 0 3px 10px rgba(70,55,35,.05);
  --serif: "Iowan Old Style", Palatino, Georgia, "Times New Roman", ui-serif, serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--accent); text-decoration: none; }
.muted { color: var(--muted); }
.wrap { max-width: 640px; margin: 0 auto; padding: 18px 16px 40px; }
.wrap.wide { max-width: 960px; }
/* week views (schedule + classes): wider + shorter — days flow into columns */
#week { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
#week > .add { grid-column: 1 / -1; }
#week .card { margin-bottom: 0; }
/* compact day: collapsed summary you can scan; tap to open the editor */
details.day { padding: 0; overflow: hidden; }
details.day > .daysum { list-style: none; cursor: pointer; padding: 13px 16px; display: block; }
details.day > .daysum::-webkit-details-marker { display: none; }
.daysum-head { display: flex; align-items: center; gap: 8px; }
.daysum-name { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.today-dot { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent);
  padding: 1px 7px; border-radius: 999px; vertical-align: 2px; }
.daysum-tags { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.daysum-tags .tag { font-size: 12px; font-weight: 600; color: var(--muted); background: #f1eadd;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.daysum-tags .tag.sit { color: #8a5a2b; background: #f6ead8; }
.daysum-tags .tag.heart { background: transparent; padding: 2px 0; }
.daysum-chev { margin-left: auto; color: var(--muted); font-size: 20px; transition: transform .15s; }
details.day[open] > .daysum > .daysum-head > .daysum-chev { transform: rotate(90deg); }
.daysum-ev { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.daysum-ev .evchip { font-size: 13px; color: var(--ink); background: #faf5ec; border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 8px; }
.daysum-ev .evchip b { color: var(--accent); font-variant-numeric: tabular-nums; }
details.day[open] > .daysum { border-bottom: 1px solid var(--line); }
.daybody { padding: 12px 16px 14px; }

/* top bar + tabs */
.topbar { display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.who { font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px;
  background: var(--card); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; padding: 7px 13px; border-radius: 999px; font-size: 14px;
  color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tab.active { background: var(--accent); color: var(--accent-ink); }
.tab.soon { opacity: .6; }
.tab .dot { font-size: 9px; text-transform: uppercase; margin-left: 4px;
  background: var(--line); color: var(--muted); padding: 1px 5px; border-radius: 6px; }

/* headings */
.page-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 2px 16px; }
.page-head h1 { font-family: var(--serif); font-size: 28px; font-weight: 700; margin: 0; letter-spacing: .01em; }
h1.sub { font-family: var(--serif); }
.status { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status.done { background: #e5f8ee; color: #1a7a45; }
.status.open { background: #f1eadd; color: var(--muted); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card h2 { font-size: 15px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; }
.card .score { font-size: 13px; color: var(--muted); font-weight: 600; }
.card input[type=text] { width: 100%; padding: 11px 12px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: #faf6ee; }
.card input[type=text]:last-child { margin-bottom: 0; }

/* add button (opens entry screen) */
.addbtn { background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 15px; border-radius: 999px; white-space: nowrap; }

/* day navigator */
.daynav { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.navbtn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font-size: 22px; font-weight: 700; color: var(--ink); }
.navbtn.disabled { color: var(--grey); }
.datejump input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: var(--card); font-family: inherit; }
.daydate { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 10px; }
.backtoday { display: inline-block; font-size: 13px; margin: -6px 2px 12px; }

/* plan banner */
.plan { background: #fbf0e6; border: 1px solid #f0dcc9; border-radius: var(--radius);
  padding: 13px 15px; margin-bottom: 14px; }
.plan.empty { background: var(--card); border-style: dashed; }
.plan-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.plan-body { font-size: 16px; font-weight: 600; }
.plan-body.big { font-size: 20px; line-height: 1.35; }

/* scorecard rows */
.rowitem { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line); }
.rowitem:first-of-type { border-top: none; }
.rowlabel { font-weight: 600; }
.segmented { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg { position: relative; padding: 7px 11px; font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; border-left: 1px solid var(--line); user-select: none; }
.seg:first-child { border-left: none; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg.yes.on { background: var(--green); color: #fff; }
.seg.partial.on { background: var(--yellow); color: #3a2f00; }
.seg.no.on { background: var(--red); color: #fff; }

/* buttons */
button, .save { width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background .15s ease; }
button:hover, .save:hover { background: var(--accent-dark); }
.save { margin-top: 4px; }

/* login */
.login-card { max-width: 360px; margin: 12vh auto 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.login-brand { font-family: var(--serif); font-size: 25px; font-weight: 700; }
.login-card label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
.login-card input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.login-card button { margin-top: 18px; }
.error { background: #fdeaea; color: #b12a2a; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-top: 12px; }

/* overview */
.stats { display: flex; gap: 10px; margin-bottom: 14px; }
.stat { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; text-align: center; box-shadow: var(--shadow); }
.stat .num { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.stat .lbl { font-size: 12px; color: var(--muted); }
.card.highlight { background: #fbf0e6; border-color: #f0dcc9; }
.bands { display: flex; flex-wrap: wrap; gap: 6px; }
.bandcell { width: 56px; height: 52px; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.bandcell .bl { font-size: 10px; opacity: .9; font-weight: 600; }
.bandcell .bs { font-size: 15px; }
.bandcell.great { background: var(--green); }
.bandcell.solid { background: var(--yellow); color: #3a2f00; }
.bandcell.light { background: var(--red); }
.bandcell.nolog { background: var(--grey); color: var(--muted); }

/* schedule 2.0 */
.summary { background: #faf6ee; }
.pu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.pu-row { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; }
.pu-day { font-weight: 700; min-width: 34px; }
.pu-cell { color: var(--muted); }
.sitters-inline { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pu-full { display: flex; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.pu-full:first-of-type { border-top: none; }
.pu-full .pu-day { min-width: 90px; }
.ev-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ev-loc { font-size: 12px; color: var(--muted); }
.ev-note { font-size: 13px; color: var(--muted); }
.ev-note.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* day card: inline drop-off / pick-up / sitter */
.daygrid { display: flex; gap: 10px; margin-bottom: 10px; }
.dg-cell { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dg-lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.inlineform { margin: 0; }
.inlineform select, .sitterline select { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 14px; background: #faf6ee; font-weight: 600; }
/* sitter: label line, then name + from + to, then notes, then date-night checkbox */
.sitterline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 10px; padding: 10px 0 0; border-top: 1px solid var(--line); }
.sitterline .dg-lbl { flex-basis: 100%; }
.sitterline input[type="text"] { height: 38px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 13px; background: #faf6ee; }
.sitterline input[name="name"] { flex: 1 1 44%; min-width: 108px; }
.sitterline input[name="time"], .sitterline input[name="end_time"] { flex: 0 0 74px; text-align: center; }
.sitterline input[name="notes"] { flex: 1 1 100%; }
.sitterline .dn { flex-basis: 100%; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sitterline .dn input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
/* collapsed sitter: a one-line summary that opens the form on tap */
.sitterwrap { border-top: 1px solid var(--line); margin-top: 4px; }
.sitsum { list-style: none; cursor: pointer; padding: 9px 0 2px; font-size: 14px; font-weight: 700; color: var(--ink); }
.sitsum::-webkit-details-marker { display: none; }
.sitsum .muted { font-weight: 600; }
.sitterwrap[open] .sitsum { color: var(--muted); font-size: 12px; }
.sitterwrap .sitterline { border-top: 0; margin-top: 0; padding-top: 4px; }

/* clean, tappable event rows */
.evrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.evrow-time { min-width: 48px; text-align: left; font-weight: 700; font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.evrow-title { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.evrow-go { color: var(--muted); font-size: 15px; font-weight: 700; }

.dayadd { margin-top: 8px; }

/* mini add inside a section card (e.g. per meal category) */
.miniadd { margin-top: 10px; }
.miniadd summary { font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; list-style: none; }
.miniadd summary::-webkit-details-marker { display: none; }
.miniadd form { display: flex; gap: 6px; margin-top: 8px; }
.miniadd input { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; background: #faf6ee; }
.miniadd button { width: auto; padding: 9px 16px; }
.dayadd summary { font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; list-style: none; padding: 6px 0; }
.dayadd summary::-webkit-details-marker { display: none; }
.dayadd select, .dayadd input { width: 100%; padding: 9px 11px; margin-top: 6px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 14px; background: #faf6ee; }
.dayadd button { margin-top: 8px; }

/* meal chips link to recipe */
.chip a { color: var(--ink); }
.idea { display: flex; justify-content: space-between; align-items: center; padding: 11px 0;
  border-top: 1px solid var(--line); font-weight: 600; }
.idea:first-of-type { border-top: none; }

/* upcoming cards — crisp + clearly tappable */
.evcard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; margin-bottom: 12px; }
.evcard:active { background: #faf5ec; }
.evcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.evcard-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.evcard-when { font-size: 12px; font-weight: 700; color: #a5573a; background: #f5e7d8;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.evcard-when.past { color: var(--muted); background: #f1eadd; }
.evcard-sub { margin-top: 5px; font-size: 14px; color: var(--muted); }
.evcard .open-hint { display: inline-block; margin-top: 9px; font-size: 13px; color: var(--accent); font-weight: 700; }
.fld { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.fld input, .fld textarea, .fld select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: #faf6ee;
  font-family: inherit; color: var(--ink); }
.danger { background: #fdeaea; color: #b12a2a; }

/* to-dos — checkbox closes it; tapping the title opens it (for notes) */
.todo { display: flex; align-items: center; gap: 11px; padding: 10px 2px; border-top: 1px solid var(--line); }
.todo:first-of-type { border-top: none; }
.tog { display: flex; flex: none; }
.chk { width: 19px; height: 19px; min-width: 19px; padding: 0; border: 2px solid var(--grey);
  border-radius: 999px; background: #fff; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; cursor: pointer; }
.chk:hover { border-color: var(--green); }
.chk.checked { background: var(--green); border-color: var(--green); }
.todo-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.todo-title { font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.35; }
.todo-title.strike { text-decoration: line-through; color: var(--muted); font-weight: 500; flex: 1; }
.st-note { background: #f1eadd; color: var(--muted); }
.st-late { background: #fbe6e2; color: #b23c2c; }
/* capitalize just the first letter of a to-do (display only; safe for Hebrew) */
.todo-title::first-letter { text-transform: uppercase; }
.donebox-card summary { cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 15px;
  color: var(--muted); list-style: none; }
.donebox-card summary::-webkit-details-marker { display: none; }
.donelist { margin-top: 8px; }
.done-owner { font-size: 11px; font-weight: 700; color: var(--muted); background: #f1eadd; border-radius: 6px; padding: 2px 8px; }
.todo.done { justify-content: flex-start; }

/* classes / education */
.clsrow { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line); }
.clsrow:first-of-type { border-top: none; }
.clstime { min-width: 52px; font-weight: 700; font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.clsbody { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.clsact { font-size: 14px; }
.clsact b { font-weight: 700; }
.clsmeta { font-size: 12px; color: var(--muted); }
.person { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; border-radius: 6px; padding: 2px 8px; vertical-align: middle; }
.todo-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* uniform status/meta chips — no more stray blue */
.st { font-size: 11px; font-weight: 700; color: var(--muted); background: #f1eadd;
  border-radius: 6px; padding: 3px 8px; letter-spacing: .01em; }
.st-ongoing { background: #fff3d6; color: #8a6100; }
.st-due { background: #f5e7d8; color: #a5573a; }
.donebox summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; padding: 12px 0 4px; list-style: none; }
.donebox summary::-webkit-details-marker { display: none; }

/* rocks */
.rock { display: block; }
.rock-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.rock-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.rpill { font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .04em; }
.rpill.on_track { background: #e6f2e8; color: #34774a; }
.rpill.off_track { background: #fceae7; color: #b23c2c; }
.rpill.done { background: #f1eadd; color: var(--muted); }
.progress { height: 8px; background: #ece2d1; border-radius: 999px; overflow: hidden; }
.progress.big { height: 11px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.rock-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 9px;
  font-size: 12px; color: var(--muted); }
.rock-meta b { color: var(--ink); }
.rock-meta .overdue { color: var(--red); font-weight: 700; }
.owner-chip { font-size: 11px; font-weight: 700; color: var(--muted); background: #f1eadd; border-radius: 6px; padding: 2px 8px; }
.qtimeline { margin-top: 15px; }
.qbar { position: relative; height: 6px; background: #ece2d1; border-radius: 999px; }
.qmarker { position: absolute; top: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); transform: translateX(-50%); }
.qends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 7px; }

/* wins list */
.win { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.win:first-of-type { border-top: none; }
.win-date { min-width: 92px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* schedule */
.subtabs { display: flex; gap: 6px; margin-bottom: 14px; }
.subtab { padding: 6px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.subtab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
h1.sub { font-size: 19px; }
.small { font-size: 12px; }
.day h2 { align-items: center; }
.day .pill { font-size: 12px; font-weight: 600; color: var(--muted); background: #f1eadd;
  padding: 3px 9px; border-radius: 999px; }
.remember { font-size: 13px; background: #fff8e6; border: 1px solid #f3e3ad;
  padding: 7px 10px; border-radius: 8px; margin-bottom: 8px; }
.ev { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.ev:first-of-type { border-top: none; }
.ev-time { min-width: 78px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; color: var(--accent); }
.ev-title { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #f1eadd;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 11px; font-size: 14px; }
.up { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--line); }
.up:first-child { border-top: none; }
.up-title { font-weight: 600; }
.del { display: inline; }
.del button { width: auto; background: none; color: var(--muted); font-size: 17px;
  padding: 0 4px; font-weight: 400; line-height: 1; }
.del button:hover { color: var(--red); }
.del.inline button { font-size: 14px; }
.mv { display: inline; }
.mv button { width: auto; background: none; color: var(--accent); font-size: 15px; padding: 0 3px; font-weight: 800; line-height: 1; cursor: pointer; }
.mv button:hover { color: var(--accent-dark); }
details.add { padding: 0; }
details.add summary { padding: 14px 16px; cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; }
details.add summary::-webkit-details-marker { display: none; }
details.add form { padding: 0 16px 16px; }
details.add select, details.add input { width: 100%; padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: #faf6ee; }

/* ============ Net Worth (finance) ============ */
.nw-hero { text-align: center; padding: 22px 16px 18px; }
.nw-net { font-family: var(--serif); font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1; }
.nw-split { display: flex; justify-content: center; gap: 16px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.nw-up { color: #34774a; }
.nw-dn { color: #b23c2c; }
.nw-bars { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.nw-barrow { display: flex; align-items: center; gap: 10px; }
.nw-barlbl { flex: 0 0 96px; font-size: 12px; font-weight: 700; color: var(--muted); }
.nw-bartrack { flex: 1; height: 9px; background: #ece2d1; border-radius: 999px; overflow: hidden; }
.nw-barfill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.nw-barfill.lia { background: #d08b6f; }
.nw-barval { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.nw-barval.lia { color: #b23c2c; }
.nw-gtot { font-size: 13px; font-weight: 700; color: #34774a; }
.nw-gtot.lia { color: #b23c2c; }

/* plain rows: name + amount + delete */
.nw-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.nw-row:first-of-type { border-top: none; }
.nw-row-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); min-width: 0; }
.nw-amt { display: flex; align-items: center; gap: 2px; margin: 0; }
.nw-dollar { color: var(--muted); font-size: 13px; font-weight: 700; }
.nw-amt input { width: 96px; height: 34px; text-align: right; padding: 0 9px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; font-weight: 700; background: #faf6ee; font-variant-numeric: tabular-nums; }

/* property rows */
.nw-prop { display: block; padding: 11px 0; border-top: 1px solid var(--line); }
.nw-prop:first-of-type { border-top: none; }
.nw-prop-main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.nw-prop-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.nw-prop-eq { font-size: 16px; font-weight: 800; color: #34774a; font-variant-numeric: tabular-nums; }
.nw-prop-eqlbl { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-left: 5px; letter-spacing: .04em; }
.nw-prop-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nw-todo { color: var(--accent); font-weight: 700; margin-left: 4px; }

/* trend + projection bars */
.nw-trend { display: flex; align-items: flex-end; gap: 8px; overflow-x: auto; padding: 4px 0 0; min-height: 118px; }
.nw-tcol { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 0 0 auto; justify-content: flex-end; position: relative; }
.nw-tbar { width: 26px; background: var(--accent); border-radius: 5px 5px 0 0; display: block; }
.nw-tbar.loan { background: #cbb79b; position: absolute; bottom: 32px; z-index: 1; }
.nw-tbar.eq { background: var(--accent); position: relative; z-index: 2; }
.nw-tcol .nw-tbar.eq { margin-top: 0; }
.nw-tval { font-size: 11px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.nw-tlbl { font-size: 10px; color: var(--muted); white-space: nowrap; }

.nw-form { display: flex; flex-direction: column; gap: 10px; }
.del-full { margin: 6px 0 30px; }
.del-full button { width: 100%; padding: 11px; background: transparent; color: #b23c2c;
  border: 1px solid #e8cfc8; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; }

/* ---- bank import ---- */
.banner { padding: 12px 15px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.banner.good { background: #e6f2e8; color: #34774a; border: 1px solid #cfe6d4; }
.banner.bad { background: #fceae7; color: #b23c2c; border: 1px solid #f0d2cb; }
.exp { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 11px; line-height: 1.4;
  border: 1px solid var(--line); border-radius: 10px; background: #faf6ee; padding: 10px; color: var(--ink);
  white-space: pre; overflow-x: auto; margin-bottom: 10px; }
.txn { padding: 9px 0; border-top: 1px solid var(--line); }
.txn:first-of-type { border-top: none; }
.txn-main { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.txn-desc { font-size: 13px; font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txn-amt { font-size: 14px; font-weight: 800; color: #34774a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.txn-amt.neg { color: #b23c2c; }
.txn-sub { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.txn-date { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.txn-cat { margin: 0; }
.txn-cat select { font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: #faf6ee; color: var(--ink); font-weight: 600; max-width: 190px; }
.chip.on { background: var(--accent); color: #fff; }

/* ---- Finances: cash flow / income-expense / budget ---- */
.nw-net.neg { color: #b23c2c; }
.nw-tval.neg { color: #b23c2c; }
.nw-tbar.down { background: #d08b6f; }

/* income / expense rows */
.ie-lbl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin: 14px 0 8px; }
.ie-lbl:first-child { margin-top: 2px; }
.ie-lbl.out { color: #b23c2c; }
.ie-lbl.in { color: #34774a; }
.ie-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.ie-cat { flex: 0 0 34%; font-size: 13px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-track { flex: 1; height: 8px; background: #ece2d1; border-radius: 999px; overflow: hidden; }
.ie-fill { display: block; height: 100%; border-radius: 999px; }
.ie-fill.out { background: #d08b6f; }
.ie-fill.in { background: var(--green); }
.ie-amt { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* budget vs actual */
.bud { padding: 10px 0; border-top: 1px solid var(--line); }
.bud:first-of-type { border-top: none; }
.bud-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bud-cat { font-size: 14px; font-weight: 700; color: var(--ink); }
.bud-num { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bud-num.over { color: #b23c2c; }
.bud-track { height: 9px; background: #ece2d1; border-radius: 999px; overflow: hidden; margin: 6px 0 3px; }
.bud-fill { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.bud-fill.over { background: #d66a58; }
.bud-sub { font-size: 11px; color: var(--muted); font-weight: 600; }
.bud-sub.over { color: #b23c2c; }
.bud-total { font-size: 13px; color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

/* Add-to-Google-Calendar button on event pages */
.gcal-btn { display: inline-block; margin: 0 0 6px; padding: 9px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow); }
.gcal-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Vladimir / George Martin tables */
.vtab { display: flex; flex-direction: column; }
.vrow { display: grid; grid-template-columns: 0.8fr 1fr 1fr 1fr 1fr 1fr; gap: 8px; padding: 8px 0;
  border-top: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; align-items: baseline; }
.vrow span:first-child { font-weight: 700; }
.vrow.vhead { border-top: none; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: var(--muted); }
.vrow .pos { color: #34774a; }
.vrow .neg { color: #b23c2c; }
