/* ============ Personal Dashboard — "Cozy Terminal" ============ */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0B0D12;
  --panel: #13161D;
  --panel2: #191D26;
  --line: rgba(255,255,255,.07);
  --line2: rgba(255,255,255,.13);
  --text: #ECEEF3;
  --muted: #939BAA;
  --faint: #5C6573;
  --c-accent: #5B9BFF;
  --c-green: #54D6A0;
  --c-amber: #F4B860;
  --c-violet: #B69CFF;
  --c-rose: #FF7E8A;
  --c-faint: #6B7585;
  --display-font: "Instrument Serif";
  --ui: "Space Grotesk", sans-serif;
  --body: "Hanken Grotesk", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --pad: 22px;
  --gap: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.28);
  --sidebar-w: 250px;
}
[data-density="compact"] { --pad: 16px; --gap: 13px; }
[data-density="comfy"]   { --pad: 28px; --gap: 24px; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* atmospheric background: blue + warm glows + grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(820px 620px at 8% -8%, color-mix(in oklab, var(--c-accent) 22%, transparent), transparent 60%),
    radial-gradient(700px 600px at 100% 108%, rgba(244,184,96,.10), transparent 58%),
    radial-gradient(900px 700px at 88% 0%, rgba(182,156,255,.07), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sidebar-w) 1fr; height: 100vh; }
::selection { background: color-mix(in oklab, var(--c-accent) 40%, transparent); }

/* ---------- Sidebar ---------- */
.sidebar {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 16px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in oklab, var(--panel) 60%, transparent), color-mix(in oklab, var(--bg) 70%, transparent));
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 10px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: #0B0D12;
  background: linear-gradient(135deg, var(--c-accent), color-mix(in oklab, var(--c-accent) 50%, var(--c-violet)));
  box-shadow: 0 4px 16px color-mix(in oklab, var(--c-accent) 40%, transparent);
}
.brand-mark.sm { width: 30px; height: 30px; border-radius: 9px; }
.brand-name { font-family: var(--ui); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }

.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: none; background: none; cursor: pointer;
  color: var(--muted); font-family: var(--ui); font-size: 14.5px; font-weight: 500;
  border-radius: 11px; transition: color .15s, background .15s; text-align: left;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-item.active { color: var(--text); background: color-mix(in oklab, var(--c-accent) 14%, transparent); }
.nav-item.active svg { color: var(--c-accent); }
.nav-glow { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; border-radius: 3px; background: var(--c-accent); box-shadow: 0 0 10px var(--c-accent); }

.side-foot { display: flex; flex-direction: column; gap: 10px; padding: 14px 10px 4px; border-top: 1px solid var(--line); }
.side-clock { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.clock-time { color: var(--text); font-weight: 600; font-size: 15px; }
.clock-ap { font-size: 11px; }
.side-reset { display: flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer; color: var(--faint); font-family: var(--body); font-size: 12.5px; padding: 4px 0; transition: color .15s; }
.side-reset:hover { color: var(--c-rose); }

.scrim { display: none; }
.topbar { display: none; }

/* ---------- Main ---------- */
.main { overflow-y: auto; overflow-x: hidden; padding: 34px 40px 60px; scroll-behavior: smooth; }
.main::-webkit-scrollbar { width: 10px; }
.main::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 3px solid var(--bg); }
.view { max-width: 1180px; margin: 0 auto; }

/* ---------- View head ---------- */
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.view-title { font-family: var(--ui); font-size: 30px; font-weight: 700; letter-spacing: -.025em; }
.view-sub { color: var(--muted); font-size: 14.5px; margin-top: 3px; }

/* ---------- Card ---------- */
.card {
  background: linear-gradient(180deg, color-mix(in oklab, var(--panel) 92%, white 1%), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); position: relative;
}
.card[role="button"] { cursor: pointer; transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s, box-shadow .18s; }
.card[role="button"]:hover { transform: translateY(-2px); border-color: var(--line2); box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 44px rgba(0,0,0,.4); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head-l { display: flex; align-items: center; gap: 10px; }
.card-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--c-accent); background: color-mix(in oklab, currentColor 14%, transparent); }
.card-head h3 { font-family: var(--ui); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Ring / Bar ---------- */
.ring { position: relative; display: grid; place-items: center; flex-shrink: 0; }
.ring-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring-pct { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.ring-big { font-family: var(--mono); font-size: 24px; font-weight: 600; }
.ring-big-sm { font-family: var(--mono); font-size: 19px; font-weight: 600; }
.ring-big-sm i, .ring-big i { font-style: normal; color: var(--muted); font-size: .6em; }
.ring-small { font-size: 10px; color: var(--muted); margin-top: 2px; }
.bar { width: 100%; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; transition: width .6s cubic-bezier(.2,.8,.2,1); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ui); font-weight: 600; cursor: pointer; border-radius: 10px; border: 1px solid transparent; transition: all .15s; white-space: nowrap; }
.btn-md { padding: 9px 15px; font-size: 13.5px; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn-primary { background: var(--c-accent); color: #08111f; border-color: transparent; box-shadow: 0 4px 14px color-mix(in oklab, var(--c-accent) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: none; background: none; color: var(--faint); cursor: pointer; transition: all .14s; flex-shrink: 0; }
.icon-btn:hover { background: rgba(255,255,255,.07); color: var(--text); }
.icon-btn.danger:hover { background: color-mix(in oklab, var(--c-rose) 18%, transparent); color: var(--c-rose); }

/* ---------- Empty ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px; color: var(--faint); text-align: center; font-size: 13.5px; }

/* ---------- Inputs / Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(6,8,12,.62); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: 460px; max-width: 100%; max-height: 88vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .18s cubic-bezier(.2,.9,.3,1.2); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.modal-head h3 { font-family: var(--ui); font-size: 17px; font-weight: 600; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field-l { font-family: var(--ui); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.inp { width: 100%; padding: 11px 13px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; color: var(--text); font-family: var(--body); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.inp:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-accent) 22%, transparent); }
.inp::placeholder { color: var(--faint); }
.inp-area { resize: vertical; min-height: 90px; line-height: 1.5; }
.inp-flush { background: rgba(255,255,255,.04); border-color: transparent; }
select.inp { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23939BAA' stroke-width='1.8'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input[type="date"].inp, input[type="time"].inp { color-scheme: dark; }

.seg { display: flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; }
.seg button { flex: 1; padding: 8px; background: none; border: none; border-radius: 8px; color: var(--muted); font-family: var(--ui); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .14s; }
.seg button.on { background: color-mix(in oklab, var(--c-accent) 18%, transparent); color: var(--text); }

.swatches { display: flex; gap: 9px; }
.swatch { width: 30px; height: 30px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; transition: transform .12s; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px currentColor; }

.mono { font-family: var(--mono); }

/* =================== OVERVIEW =================== */
.hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-l { flex: 1 1 340px; min-width: 0; }
.hero-date { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 13px; display: inline-flex; align-items: center; gap: 11px; }
.hero-date::before { content: ""; width: 22px; height: 1.5px; border-radius: 2px; background: var(--c-accent); opacity: .9; }
.hero-greet { font-family: var(--display-font); font-size: 52px; font-weight: 400; letter-spacing: -.01em; line-height: 1.02; }
.hero-greet span { font-style: italic; color: var(--c-accent); }
.hero-line { color: var(--muted); font-size: 15.5px; margin-top: 10px; }

.weather { flex: 0 0 auto; width: 270px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in oklab, var(--c-accent) 8%, var(--panel)), var(--panel)); }
.weather-now { display: flex; align-items: center; gap: 14px; color: var(--c-amber); }
.weather-temp { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--text); line-height: 1; }
.weather-desc { font-size: 13px; color: var(--muted); margin-top: 3px; }
.weather-meta { font-size: 12px; color: var(--faint); margin: 10px 0 14px; }
.weather-hours { display: flex; justify-content: space-between; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.wh { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); }
.wh-t { font-size: 11px; color: var(--faint); }
.wh svg { color: var(--c-amber); }
.wh-temp { font-family: var(--mono); font-size: 12px; color: var(--text); }

.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.ov-grid .span2 { grid-column: span 2; }
.ov-link { display: inline-flex; align-items: center; gap: 4px; font-family: var(--ui); font-size: 12.5px; color: var(--muted); }

.ov-sched .ov-next { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius-sm); background: color-mix(in oklab, var(--c-accent) 12%, transparent); border: 1px solid color-mix(in oklab, var(--c-accent) 22%, transparent); }
.ov-next-tag { font-family: var(--ui); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--c-accent); background: color-mix(in oklab, var(--c-accent) 20%, transparent); padding: 3px 7px; border-radius: 5px; }
.ov-next-time { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.ov-next-title { font-size: 14.5px; font-weight: 500; }
.ov-timeline { display: flex; flex-direction: column; }
.ov-ev { display: flex; align-items: center; gap: 13px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.ov-ev:last-child { border-bottom: none; }
.ov-ev-time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); width: 64px; flex-shrink: 0; }
.ov-ev-bar { width: 3px; height: 22px; border-radius: 3px; background: var(--ev); flex-shrink: 0; }
.ov-ev-title { font-size: 14px; }
.ov-ev.past { opacity: .42; }
.ov-ev.past .ov-ev-title { text-decoration: line-through; text-decoration-color: var(--faint); }

.ov-net { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.ov-net-l { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.ov-budget-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.ov-budget-row .mono i { font-style: normal; color: var(--faint); }

.ov-habit-ring { display: flex; align-items: center; gap: 18px; }
.ov-habit-chips { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ov-chip { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--muted); font-family: var(--body); font-size: 12.5px; cursor: pointer; transition: all .14s; text-align: left; }
.ov-chip.on { color: #0B0D12; font-weight: 600; }
.ov-chip svg { flex-shrink: 0; }

.ov-health-rings { display: flex; gap: 22px; justify-content: space-around; }
.ov-hr { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }

.ov-proj-name { font-family: var(--ui); font-size: 16px; font-weight: 600; margin: 2px 0 12px; }
.ov-proj-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ov-proj-row .mono { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.ov-proj-tasks { display: flex; flex-direction: column; gap: 7px; }
.ov-task { display: flex; align-items: center; gap: 9px; background: none; border: none; cursor: pointer; color: var(--muted); font-family: var(--body); font-size: 13px; text-align: left; padding: 2px 0; transition: color .14s; }
.ov-task:hover { color: var(--text); }
.ov-task-check { width: 15px; height: 15px; border-radius: 5px; border: 1.6px solid var(--line2); flex-shrink: 0; transition: all .14s; }
.ov-task:hover .ov-task-check { border-color: var(--c-accent); }

.ov-note { border-top: 3px solid var(--nc); }
.ov-note-title { font-family: var(--ui); font-size: 15px; font-weight: 600; margin: 2px 0 8px; }
.ov-note-body { font-size: 13.5px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* =================== SCHEDULE =================== */
.sched-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-month { font-family: var(--ui); font-size: 18px; font-weight: 600; }
.cal-month span { color: var(--muted); font-weight: 400; }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.cal-today { padding: 6px 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-radius: 8px; color: var(--text); font-family: var(--ui); font-size: 12px; font-weight: 600; cursor: pointer; }
.cal-today:hover { background: rgba(255,255,255,.1); }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.cal-dow span { text-align: center; font-family: var(--ui); font-size: 11px; font-weight: 600; color: var(--faint); padding: 4px 0; }
.cal-cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell { min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; transition: all .13s; position: relative; }
.cal-cell.empty { cursor: default; }
.cal-cell:not(.empty):hover { background: rgba(255,255,255,.05); }
.cal-num { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.cal-cell.today .cal-num { color: var(--c-accent); font-weight: 700; }
.cal-cell.sel { background: color-mix(in oklab, var(--c-accent) 16%, transparent); border-color: color-mix(in oklab, var(--c-accent) 35%, transparent); }
.cal-cell.sel .cal-num { color: var(--text); }
.cal-dots { display: flex; gap: 3px; height: 5px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 50%; }
.agenda-head { margin-bottom: 14px; }
.agenda-day { font-family: var(--ui); font-size: 17px; font-weight: 600; }
.agenda-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.agenda-list { display: flex; flex-direction: column; gap: 4px; }
.agenda-item { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 11px; transition: background .14s; --ev: var(--c-accent); }
.agenda-item:hover { background: rgba(255,255,255,.04); }
.agenda-time { display: flex; flex-direction: column; width: 72px; flex-shrink: 0; }
.agenda-time span { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.agenda-time-end { color: var(--faint) !important; font-size: 11px !important; }
.agenda-bar { width: 3px; align-self: stretch; border-radius: 3px; background: var(--ev); }
.agenda-body { flex: 1; }
.agenda-title { font-size: 14.5px; font-weight: 500; }
.agenda-loc { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* =================== FINANCE =================== */
.fin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.stat-l { font-size: 12.5px; color: var(--muted); }
.stat-v { font-family: var(--mono); font-size: 25px; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 6px; }
.stat-foot { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.stat-foot.pos { color: var(--c-green); }
.stat-foot.muted { color: var(--muted); }
.fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }
.acct-list { display: flex; flex-direction: column; }
.acct { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.acct:last-child { border-bottom: none; }
.acct-name { font-size: 14.5px; font-weight: 500; }
.acct-kind { font-size: 12px; color: var(--muted); margin-top: 2px; }
.acct-bal { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.acct-bal.neg { color: var(--c-rose); }
.budget-list { display: flex; flex-direction: column; gap: 15px; }
.budget-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.budget-cat { font-size: 13.5px; font-weight: 500; }
.budget-amt { font-family: var(--mono); font-size: 13px; }
.budget-amt.over { color: var(--c-rose); }
.budget-lim { color: var(--faint); }
.txn-list { display: flex; flex-direction: column; }
.txn { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.txn:last-child { border-bottom: none; }
.txn-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.txn-main { flex: 1; }
.txn-desc { font-size: 14px; font-weight: 500; }
.txn-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.txn-amt { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.txn-amt.pos { color: var(--c-green); }

/* =================== PROJECTS =================== */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: var(--gap); align-items: start; }
.proj { overflow: hidden; }
.proj::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--pc); }
.proj-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 0; }
.proj-top-l { display: flex; align-items: center; gap: 10px; }
.proj-dot { width: 9px; height: 9px; border-radius: 50%; }
.proj-top h3 { font-family: var(--ui); font-size: 16px; font-weight: 600; }
.proj-meta { padding: 14px 18px; }
.proj-prog { display: flex; flex-direction: column; gap: 9px; }
.proj-prog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.proj-prog-right { display: flex; align-items: center; gap: 10px; }
.proj-pct { font-size: 13px; font-weight: 600; color: var(--muted); }
.proj-count { font-size: 13.5px; font-weight: 500; }
.proj-due { font-size: 12px; color: var(--muted); }
.proj-due.soon { color: var(--c-amber); }
.proj-tasks { display: flex; flex-direction: column; padding: 0 18px; }
.task { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.task-check { width: 19px; height: 19px; border-radius: 6px; border: 1.7px solid var(--line2); background: none; cursor: pointer; display: grid; place-items: center; color: #0B0D12; flex-shrink: 0; transition: all .14s; }
.task-check:hover { border-color: var(--c-accent); }
.task-text { flex: 1; font-size: 13.5px; transition: all .14s; }
.task.done .task-text { color: var(--faint); text-decoration: line-through; }
.proj-add { display: flex; align-items: center; gap: 6px; padding: 12px 14px 16px; }
.proj-add .inp-flush { padding: 8px 11px; font-size: 13px; }

/* =================== HABITS =================== */
.habit-grid-wrap { overflow-x: auto; }
.habit-grid { width: 100%; border-collapse: collapse; }
.habit-grid th, .habit-grid td { padding: 0; }
.hg-name { text-align: left; padding-right: 16px !important; font-size: 13.5px; font-weight: 500; white-space: nowrap; min-width: 150px; }
th.hg-name { color: var(--faint); }
.hg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 9px; vertical-align: middle; }
.hg-day { text-align: center; padding-bottom: 12px !important; }
.hg-dow { display: block; font-family: var(--ui); font-size: 10px; font-weight: 600; color: var(--faint); }
.hg-date { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.hg-day.today .hg-dow, .hg-day.today .hg-date { color: var(--c-accent); }
.hg-cell { text-align: center; padding: 3px !important; }
.hg-tick { width: 26px; height: 26px; border-radius: 8px; border: 1.6px solid var(--line2); background: rgba(255,255,255,.02); cursor: pointer; display: grid; place-items: center; color: #0B0D12; margin: 0 auto; transition: all .13s; }
.hg-tick:hover:not(:disabled) { border-color: var(--c-accent); background: rgba(255,255,255,.06); }
.hg-tick:disabled { opacity: .25; cursor: default; }
.hg-tick.on { animation: tickin .2s; }
@keyframes tickin { from { transform: scale(.7); } }
.hg-streak { text-align: center; padding-left: 14px !important; }
th.hg-streak { font-family: var(--ui); font-size: 11px; color: var(--faint); font-weight: 600; }
.streak-pill { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--faint); }
.streak-pill.on { color: var(--c-amber); }

/* =================== NOTES =================== */
.qcap { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: var(--gap); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.qcap svg { color: var(--c-amber); flex-shrink: 0; }
.qcap-inp { flex: 1; background: none; border: none; color: var(--text); font-family: var(--body); font-size: 14.5px; }
.qcap-inp:focus { outline: none; }
.qcap-inp::placeholder { color: var(--faint); }
.notes-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.note { margin-bottom: 0; border-left: 3px solid var(--nc); cursor: pointer; }
.note-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.note-title { font-family: var(--ui); font-size: 15px; font-weight: 600; }
.note-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .14s; }
.note:hover .note-actions { opacity: 1; }
.note-body { font-size: 13.5px; color: var(--muted); line-height: 1.55; white-space: pre-wrap; }
.note-pinflag { position: absolute; top: 14px; right: 14px; color: var(--c-amber); opacity: .5; }
.note:hover .note-pinflag { display: none; }

/* =================== HEALTH =================== */
.health-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.hwater { display: flex; align-items: center; gap: 18px; }
.hwater-cups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; flex: 1; }
.cup { height: 42px; border-radius: 9px; border: 1.5px solid var(--line2); background: rgba(255,255,255,.02); color: var(--faint); cursor: pointer; display: grid; place-items: center; transition: all .14s; }
.cup:hover { border-color: var(--c-accent); }
.cup.on { background: color-mix(in oklab, var(--c-accent) 22%, transparent); border-color: var(--c-accent); color: var(--c-accent); }
.hsteps-num { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.hsteps-goal { font-size: 12px; color: var(--muted); margin: 2px 0 14px; }
.hsteps-add { display: flex; gap: 7px; margin-top: 14px; }
.hsteps-add button { flex: 1; padding: 7px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); border-radius: 8px; color: var(--muted); font-family: var(--mono); font-size: 12px; cursor: pointer; transition: all .14s; }
.hsteps-add button:hover { background: color-mix(in oklab, var(--c-green) 16%, transparent); color: var(--c-green); border-color: transparent; }
.hwork { display: flex; flex-direction: column; gap: 12px; }
.hwork-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 18px; border-radius: 12px; border: 1.5px dashed var(--line2); background: none; color: var(--muted); cursor: pointer; font-family: var(--ui); font-size: 13.5px; font-weight: 600; transition: all .16s; }
.hwork-toggle:hover { border-color: var(--c-amber); color: var(--c-amber); }
.hwork-toggle.on { border-style: solid; border-color: transparent; background: color-mix(in oklab, var(--c-amber) 20%, transparent); color: var(--c-amber); }
.hwork-streak { text-align: center; font-size: 12.5px; color: var(--muted); }
.week-stats { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.week-stats b { font-family: var(--mono); color: var(--text); font-weight: 600; }
.week-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; height: 180px; padding-top: 10px; }
.wc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.wc-bar-wrap { flex: 1; width: 100%; max-width: 46px; display: flex; align-items: flex-end; }
.wc-bar { width: 100%; border-radius: 8px 8px 4px 4px; min-height: 4px; position: relative; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.wc-work { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #0B0D12; }
.wc-lab { font-family: var(--ui); font-size: 11px; font-weight: 600; color: var(--faint); }
.wc-lab.today { color: var(--c-accent); }
.wc-val { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* =================== READING =================== */
.read-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.read-col-head { display: flex; align-items: center; gap: 9px; font-family: var(--ui); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; color: var(--muted); }
.read-col-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.05); color: var(--text); }
.read-col-n { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--faint); background: rgba(255,255,255,.05); padding: 2px 8px; border-radius: 20px; }
.read-col-list { display: flex; flex-direction: column; gap: 11px; }
.read-empty { text-align: center; color: var(--faint); padding: 20px; }
.book { display: flex; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.book-spine { width: 5px; background: var(--bc); flex-shrink: 0; }
.book-main { flex: 1; padding: 15px 16px; }
.book-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.book-title { font-family: var(--ui); font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.book-author { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.book-prog-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.book-advance { background: none; border: none; color: var(--bc); font-family: var(--ui); font-size: 12px; font-weight: 600; cursor: pointer; }
.book-advance:hover { text-decoration: underline; }
.book-start { width: 100%; padding: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); border-radius: 8px; color: var(--text); font-family: var(--ui); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .14s; }
.book-start:hover { background: color-mix(in oklab, var(--bc) 18%, transparent); border-color: transparent; }
.book-fin { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-green); }

/* ---------- side voice button ---------- */
.side-voice { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: color-mix(in oklab, var(--c-accent) 12%, transparent); border: 1px solid color-mix(in oklab, var(--c-accent) 26%, transparent); border-radius: 10px; color: var(--text); font-family: var(--ui); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.side-voice:hover { background: color-mix(in oklab, var(--c-accent) 20%, transparent); }
.side-voice svg { color: var(--c-accent); }

/* ---------- Quick note widget (Today) ---------- */
.quicknote { display: flex; align-items: center; gap: 13px; padding: 15px 18px; margin-bottom: 26px; background: linear-gradient(180deg, color-mix(in oklab, var(--c-accent) 7%, var(--panel)), var(--panel)); border: 1px solid color-mix(in oklab, var(--c-accent) 22%, var(--line)); border-radius: var(--radius); box-shadow: var(--shadow); }
.quicknote-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in oklab, var(--c-accent) 18%, transparent); color: var(--c-accent); flex-shrink: 0; }
.quicknote-inp { flex: 1; min-width: 0; background: none; border: none; color: var(--text); font-family: var(--body); font-size: 15px; }
.quicknote-inp:focus { outline: none; }
.quicknote-inp::placeholder { color: var(--faint); }
.quicknote-tags { display: flex; gap: 5px; flex-shrink: 0; }
.quicknote-tags i, .qcap-tags i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--c-accent); background: color-mix(in oklab, var(--c-accent) 14%, transparent); padding: 2px 7px; border-radius: 20px; }
.quicknote-btn { padding: 8px 15px; background: var(--c-accent); color: #08111f; border: none; border-radius: 9px; font-family: var(--ui); font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; transition: all .15s; }
.quicknote-btn:hover:not(:disabled) { filter: brightness(1.08); }
.quicknote-btn:disabled { opacity: .4; cursor: default; }
.quicknote-open { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line2); background: none; color: var(--muted); cursor: pointer; flex-shrink: 0; transition: all .15s; }
.quicknote-open:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* ---------- overview metric/lines ---------- */
.ov-metric { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.ov-metric i, .ov-net-l i { font-style: normal; color: var(--muted); }
.ov-progline { margin-bottom: 16px; }
.ov-health-lines { display: flex; flex-direction: column; gap: 14px; }
.hline { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 11px; }
.hline-ic { display: grid; place-items: center; }
.hline-lab { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Stepper ---------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); overflow: hidden; }
.stepper button { width: 32px; height: 32px; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; transition: all .14s; display: grid; place-items: center; }
.stepper button:hover { background: rgba(255,255,255,.06); color: var(--text); }
.stepper-v { min-width: 52px; text-align: center; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.stepper-v i { font-style: normal; color: var(--muted); font-size: .78em; margin-left: 1px; }

/* ---------- budgets editable ---------- */
.budget-edit { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; color: var(--text); font-family: var(--body); font-size: 13.5px; font-weight: 500; padding: 0; transition: color .14s; }
.budget-edit:hover { color: var(--c-accent); }
.budget-swatch { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ---------- habits editable ---------- */
.hg-name-btn { display: inline-flex; align-items: center; background: none; border: none; cursor: pointer; color: var(--text); font-family: var(--body); font-size: 13.5px; font-weight: 500; padding: 0; transition: color .14s; }
.hg-name-btn:hover { color: var(--c-accent); }
.hg-edit { text-align: center; padding-left: 8px !important; }
.hg-edit .icon-btn { opacity: 0; }
.habit-grid tr:hover .hg-edit .icon-btn { opacity: 1; }

/* ---------- health cards ---------- */
.hmetric { margin-bottom: 14px; }
.hmetric-num { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 11px; }
.hmetric-num i { font-style: normal; font-size: .5em; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.hsleep-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hsleep-avg { font-size: 12.5px; color: var(--muted); }
.hsleep-avg b { font-family: var(--mono); color: var(--text); font-weight: 600; }
.week-stat-1 { font-size: 13px; color: var(--muted); }
.hsteps-add button:last-child { flex: 0 0 auto; width: 34px; }
.health-top { grid-template-columns: repeat(4, 1fr); }

/* ---------- notes toolbar / tags ---------- */
.notes-toolbar { display: flex; gap: 12px; margin-bottom: 14px; }
.notes-search { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.notes-search svg { color: var(--faint); flex-shrink: 0; }
.notes-search input { flex: 1; min-width: 0; background: none; border: none; color: var(--text); font-family: var(--body); font-size: 14px; }
.notes-search input:focus { outline: none; }
.notes-search input::placeholder { color: var(--faint); }
.notes-clear { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.06); border: none; color: var(--muted); cursor: pointer; }
.notes-sort { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.notes-sort select { background: none; border: none; color: var(--text); font-family: var(--ui); font-size: 13px; font-weight: 500; cursor: pointer; padding: 11px 2px; }
.notes-sort select:focus { outline: none; }
.tag-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.tag-bar-l { display: grid; place-items: center; color: var(--faint); margin-right: 2px; }
.tagchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--muted); font-family: var(--ui); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: all .14s; }
.tagchip:hover { color: var(--text); border-color: var(--c-accent); }
.tagchip.on { background: color-mix(in oklab, var(--c-accent) 18%, transparent); border-color: color-mix(in oklab, var(--c-accent) 40%, transparent); color: var(--text); }
.tagchip i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.tagchip.on i { color: var(--c-accent); }
.tag-clear { background: none; border: none; color: var(--faint); font-family: var(--ui); font-size: 12px; cursor: pointer; padding: 4px 8px; }
.tag-clear:hover { color: var(--c-rose); }
.notes-section { display: flex; align-items: center; gap: 7px; font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin: 6px 0 13px; }
.notes-section svg { color: var(--c-amber); }
.note-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.note-tag { background: rgba(255,255,255,.05); border: none; color: var(--muted); font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 20px; cursor: pointer; transition: all .14s; }
.note-tag:hover { background: color-mix(in oklab, var(--c-accent) 18%, transparent); color: var(--c-accent); }
.qcap-tags { display: flex; gap: 5px; }
.tag-edit { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; }
.tag-edit-chip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; color: var(--text); background: rgba(255,255,255,.06); padding: 4px 8px; border-radius: 7px; }
.tag-edit-chip.auto { color: var(--c-accent); background: color-mix(in oklab, var(--c-accent) 14%, transparent); }
.tag-edit-chip button { display: grid; place-items: center; background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; }
.tag-edit-chip button:hover { color: var(--c-rose); }
.tag-edit-inp { flex: 1; min-width: 80px; background: none; border: none; color: var(--text); font-family: var(--body); font-size: 13px; }
.tag-edit-inp:focus { outline: none; }

/* ---------- Voice control ---------- */
.voice-fab { position: fixed; bottom: 24px; right: 24px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; color: #08111f; background: linear-gradient(135deg, var(--c-accent), color-mix(in oklab, var(--c-accent) 55%, var(--c-violet))); box-shadow: 0 8px 28px color-mix(in oklab, var(--c-accent) 45%, transparent); transition: transform .18s cubic-bezier(.2,.9,.3,1.3); }
.voice-fab:hover { transform: scale(1.06); }
.voice-fab.on { animation: fabpulse 1.4s infinite; }
.voice-fab-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-accent); opacity: 0; }
.voice-fab.on .voice-fab-ring { animation: fabring 1.4s infinite; }
@keyframes fabpulse { 0%,100% { box-shadow: 0 8px 28px color-mix(in oklab, var(--c-accent) 45%, transparent); } 50% { box-shadow: 0 8px 36px color-mix(in oklab, var(--c-accent) 70%, transparent); } }
@keyframes fabring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.voice-panel { position: fixed; bottom: 92px; right: 24px; z-index: 46; width: 340px; max-width: calc(100vw - 48px); background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.55); padding: 16px; animation: pop .18s cubic-bezier(.2,.9,.3,1.2); }
.voice-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.voice-panel-title { display: flex; align-items: center; gap: 7px; font-family: var(--ui); font-size: 13.5px; font-weight: 600; }
.voice-panel-title svg { color: var(--c-accent); }
.voice-head-actions { display: flex; align-items: center; gap: 2px; }
.voice-x { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: none; border: none; color: var(--faint); cursor: pointer; }
.voice-x:hover { background: rgba(255,255,255,.06); color: var(--text); }
.voice-panel-title.speaking svg { animation: aer-speak 1.1s ease-in-out infinite; }
@keyframes aer-speak { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
.voice-listening { display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin-bottom: 11px; border-radius: 10px; background: color-mix(in oklab, var(--c-accent) 12%, transparent); color: var(--text); font-size: 13.5px; }
.voice-heard { padding: 11px 13px; margin-bottom: 11px; border-radius: 10px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 13.5px; }
.aer-reply { padding: 11px 13px; margin-bottom: 11px; border-radius: 10px; border-left: 2px solid var(--c-accent); background: color-mix(in oklab, var(--c-accent) 9%, transparent); color: var(--text); font-size: 13.5px; line-height: 1.45; }
.voice-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.voice-eq i { width: 3px; background: var(--c-accent); border-radius: 2px; animation: eq 1s infinite ease-in-out; }
.voice-eq i:nth-child(1){ height:40%; animation-delay:0s } .voice-eq i:nth-child(2){ height:90%; animation-delay:.15s } .voice-eq i:nth-child(3){ height:60%; animation-delay:.3s } .voice-eq i:nth-child(4){ height:80%; animation-delay:.45s }
@keyframes eq { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.voice-type { display: flex; gap: 7px; margin-bottom: 12px; }
.voice-input { flex: 1; min-width: 0; padding: 10px 13px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; color: var(--text); font-family: var(--body); font-size: 13.5px; }
.voice-input:focus { outline: none; border-color: var(--c-accent); }
.voice-input::placeholder { color: var(--faint); }
.voice-send { display: grid; place-items: center; width: 40px; border-radius: 10px; border: none; background: var(--c-accent); color: #08111f; cursor: pointer; }
.voice-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.voice-ex { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; padding: 5px 9px; border-radius: 7px; cursor: pointer; transition: all .14s; }
.voice-ex:hover { background: color-mix(in oklab, var(--c-accent) 14%, transparent); color: var(--c-accent); border-color: transparent; }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 12px 34px rgba(0,0,0,.5); font-size: 13.5px; font-weight: 500; color: var(--text); animation: toastin .25s cubic-bezier(.2,.9,.3,1.2); }
.toast svg { flex-shrink: 0; }
.toast-ok svg { color: var(--c-green); }
.toast-warn svg { color: var(--c-amber); }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } }

/* ---------- project timer + task times ---------- */
.proj-top-l { display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; padding: 0; text-align: left; flex: 1; min-width: 0; }
.proj-top-l h3 { transition: color .14s; }
.proj-top-l:hover h3 { color: var(--c-accent); }
.proj-timer { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg); color: var(--muted); flex-shrink: 0; }
.proj-timer.running { border-color: color-mix(in oklab, var(--pc, var(--c-accent)) 50%, transparent); background: color-mix(in oklab, var(--pc, var(--c-accent)) 12%, transparent); color: var(--text); }
.proj-timer > svg { color: var(--pc, var(--c-accent)); }
.proj-timer.running > svg { animation: tspin 8s linear infinite; }
@keyframes tspin { to { transform: rotate(360deg); } }
.proj-timer-v { font-size: 13px; font-weight: 600; min-width: 50px; }
.proj-timer-btn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: none; background: rgba(255,255,255,.07); color: var(--text); cursor: pointer; transition: all .14s; }
.proj-timer-btn:hover { background: var(--pc, var(--c-accent)); color: #08111f; }
.task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.task-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.task-due { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.task-due.overdue { color: var(--c-rose); }
.task-est { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.task.done .task-due, .task.done .task-est { opacity: .5; }
.proj-add-time { padding: 0 14px 14px; }
.proj-add-time .inp { font-size: 13px; padding: 8px 11px; color-scheme: dark; }
.task-clear-time { background: none; border: none; color: var(--c-rose); font-family: var(--ui); font-size: 12.5px; cursor: pointer; padding: 0; align-self: flex-start; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1100px) {
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
  .ov-grid .span2 { grid-column: span 2; }
  .fin-stats { grid-template-columns: repeat(2, 1fr); }
  .notes-board { grid-template-columns: repeat(2, 1fr); }
  .health-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .25s cubic-bezier(.3,.8,.3,1); }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(6,8,12,.6); backdrop-filter: blur(2px); }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
  .topbar-menu { background: none; border: none; color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 4px; }
  .topbar-title { font-family: var(--ui); font-size: 16px; font-weight: 600; }
  .main { padding: 22px 18px 50px; height: calc(100vh - 50px); }
  .hero-greet { font-size: 40px; }
  .sched-grid, .fin-grid { grid-template-columns: 1fr; }
  .health-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ov-grid, .read-cols { grid-template-columns: 1fr; }
  .ov-grid .span2 { grid-column: span 1; }
  .fin-stats { grid-template-columns: 1fr 1fr; }
  .notes-board { grid-template-columns: 1fr; }
  .health-top { grid-template-columns: 1fr 1fr; }
  .notes-toolbar { flex-wrap: wrap; }
  .quicknote { flex-wrap: wrap; }
  .quicknote-inp { flex-basis: 100%; order: -1; }
  .field-row { grid-template-columns: 1fr; }
  .view-title { font-size: 25px; }
  .hero-greet { font-size: 34px; }
  .weather { min-width: 0; width: 100%; }
}
