/* Check It — calm, Apple-inspired UI. White canvas, black components, one quiet blue. */
@font-face { font-family: "Neue Montreal"; src: url("../assets/fonts/neuemontreal-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../assets/fonts/neuemontreal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../assets/fonts/neuemontreal-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../assets/fonts/neuemontreal-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../assets/fonts/neuemontreal-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --bg-3: #EEEEF0;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: #A1A1A6;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .12);
  --blue: #0E98BE;
  --blue-hover: #0B7C9C;
  --blue-soft: #E3F4F9;
  --blue-mid: #A8DDEC;
  --red: #E0524F;
  --red-soft: #FDF0EF;
  --amber: #A8661A;
  --amber-soft: #FFF6E8;
  --good-soft: #E3F4F9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .02);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --surface: #FFFFFF;
  --hover: #FAFAFB;
  --glass: rgba(255, 255, 255, .78);
  --chrome: #ECECEE;
  --on-ink: #FFFFFF;
  --on-accent: #FFFFFF;
  --ink-hover: #000000;
  --blue-on-ink: #7FD3EA;
  --font: "Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Satoshi", "Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --solid: #1D1D1F;
  --on-solid: #FFFFFF;
  --primary: #1D1D1F;
  --primary-hover: #000000;
  --on-primary: #FFFFFF;
  --side: #F7F7F5;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  /* charcoal, not pure black */
  --bg: #1A1A1C;
  --side: #161618;
  --surface: #222225;
  --bg-2: #2A2A2E;
  --bg-3: #35353A;
  --hover: #26262A;
  --glass: rgba(30, 30, 33, .82);
  --chrome: #2A2A2E;
  --ink: #EDEDEF;
  --ink-2: #A0A0A8;
  --ink-3: #6F6F77;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --blue: #0E98BE;
  --blue-hover: #24B3DB;
  --blue-soft: rgba(14, 152, 190, .15);
  --blue-mid: #0B5F79;
  --red: #FF7A73;
  --red-soft: rgba(255, 122, 115, .13);
  --amber: #E5A85A;
  --amber-soft: rgba(229, 168, 90, .13);
  --on-ink: #1D1D1F;
  --solid: #3A3A40;
  --on-solid: #F2F2F4;
  --primary: #0E98BE;
  --primary-hover: #24B3DB;
  --on-primary: #FFFFFF;
  --ink-hover: #FFFFFF;
  --blue-on-ink: #7FD3EA;
  --shadow-1: 0 0 0 1px rgba(255, 255, 255, .02);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
html { transition: background-color .3s; }
body { transition: background-color .35s var(--ease), color .35s var(--ease); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.47; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--blue); text-decoration: none; }
code { font: 13px/1.4 var(--mono); background: var(--bg-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
.ic { flex: none; display: block; }
.ic-img { display: block; object-fit: contain; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.soft { color: var(--ink-3); }
.red-t { color: var(--red) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px; border-radius: 980px; font-weight: 500; font-size: 15px;
  transition: background .2s var(--ease), transform .15s var(--ease), opacity .2s, color .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.large { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn.full { width: 100%; }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.blue { background: var(--blue); color: var(--on-accent); }
.btn.ghost { background: var(--bg-2); color: var(--ink); }
.btn.ghost:hover { background: var(--bg-3); }
.btn.danger { background: var(--red); color: var(--on-accent); }
.btn.danger-ghost { background: var(--red-soft); color: var(--red); }
.btn.text { min-height: 44px; padding: 0 6px; color: var(--blue); font-weight: 400; }
.btn.text.strong { font-weight: 600; }
.btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); transition: background .2s, transform .15s;
}
.icon-btn:hover { background: var(--bg-3); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.subtle { background: transparent; color: var(--ink-3); width: 44px; height: 44px; }
.icon-btn.subtle:hover { background: var(--bg-2); color: var(--ink); }
.pill { font-size: 13px; padding: 4px 10px; border-radius: 980px; background: var(--blue-soft); color: var(--blue); font-weight: 500; }

/* ---------- Shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; display: block; }
.brand-mark svg, .logo-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark.lg { width: 56px; height: 56px; margin: 0 auto 18px; }
.tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 980px; }
.tabs a {
  display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: 980px; transition: background .25s var(--ease), color .2s;
}
.tabs a:hover { color: var(--ink); }
.tabs a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 .5px var(--line); }
.tabs a.active .ic { color: var(--blue); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px;
  background: var(--solid); color: var(--on-solid); transition: transform .2s var(--spring);
}
.avatar:hover { transform: scale(1.06); }
.avatar.active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--blue); }
.tabbar { display: none; }

#view { outline: none; }
#view.enter .page { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page { max-width: 1120px; margin: 0 auto; padding: 40px 20px 96px; }
.page.narrow { max-width: 720px; }

.hero-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--blue); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.large-title { margin: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.lead { margin: 10px 0 0; color: var(--ink-2); font-size: 19px; line-height: 1.4; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 36px 0 12px; gap: 12px; }
.section-head h2, .group-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.group-title { margin: 32px 0 10px 4px; font-size: 15px; color: var(--ink-2); font-weight: 600; letter-spacing: -.01em; }

.today-ring { position: relative; width: 120px; height: 120px; flex: none; }
.tr-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.tr-label b { font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.tr-label b small { font-size: 16px; color: var(--ink-2); font-weight: 600; }
.tr-label > span { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* rings */
.ring .ring-track { stroke: var(--bg-3); }
.ring .ring-val { stroke: var(--blue); transition: stroke-dashoffset .8s var(--ease); }
.ring.full .ring-val { stroke: var(--blue); }
.ring.big .ring-track { stroke: var(--blue-soft); }

/* ---------- Cards / callouts ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); }
.card.flush { padding: 6px 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.card-head h3, .day-card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.callout { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 12px; animation: pageIn .5s var(--ease) both; }
.callout b { font-weight: 600; font-size: 16px; }
.callout p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.callout-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.callout.blue { background: var(--blue-soft); }
.callout.blue .callout-ic { background: var(--blue); color: var(--on-accent); }
.callout.red { background: var(--red-soft); }
.callout.red .callout-ic { background: var(--red); color: var(--on-accent); }
.callout.amber { background: var(--amber-soft); }
.callout.amber .callout-ic { background: var(--amber); color: var(--on-accent); }

/* ---------- Task list ---------- */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.list.compact { border: 0; box-shadow: none; margin-top: 12px; }
.list.compact .task { padding-left: 0; padding-right: 0; }
.task { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; position: relative; transition: background .2s; }
.task + .task::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--line); }
.list.compact .task + .task::before { left: 46px; }
.task:hover { background: var(--hover); }
.task-main { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.task-title { font-weight: 500; font-size: 17px; letter-spacing: -.015em; transition: color .3s; overflow: hidden; text-overflow: ellipsis; }
.task-sub { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task.is-done .task-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.task.is-done .tile { opacity: .5; }
.task.is-missed .check { border-color: var(--red); }
.task.disabled { opacity: .5; }

.check {
  width: 30px; height: 30px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center;
  border: 1.75px solid var(--line-2); transition: background .25s var(--ease), border-color .25s, transform .2s var(--spring);
}
.check::after { content: ""; position: absolute; inset: -7px; } /* 44pt hit area */
.check:hover { border-color: var(--ink-3); }
.check .tick { width: 18px; height: 18px; fill: none; stroke: var(--on-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s var(--ease) .05s; position: relative; }
.task.is-done .check, .check.sel { background: var(--blue); border-color: var(--blue); }
.task.is-done .check .tick, .check.sel .tick { stroke-dashoffset: 0; }
.check.partial { border-color: transparent; }
.check .ring.mini { position: absolute; inset: -1px; }
.task.pop .check { animation: pop .45s var(--spring); background: var(--blue); border-color: var(--blue); }
.task.pop .check .tick { stroke-dashoffset: 0; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

.tile { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-2); display: grid; place-items: center; flex: none; color: var(--ink); transition: opacity .3s; }
.tile.sm { width: 34px; height: 34px; border-radius: 9px; }
.tile.xl { width: 64px; height: 64px; border-radius: 18px; }
.list.compact .tile { width: 32px; height: 32px; border-radius: 9px; }
.ic-wrap { display: grid; place-items: center; }

.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--bg-3); }
.dots i.on { background: var(--blue); }
.goal { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.goal-bar { flex: 1; max-width: 220px; height: 5px; background: var(--bg-3); border-radius: 5px; overflow: hidden; }
.goal-bar i { display: block; height: 100%; background: var(--blue); border-radius: inherit; transition: width .6s var(--ease); }
.goal small { color: var(--ink-2); font-size: 13px; }

.empty { text-align: center; padding: 40px 20px; background: var(--bg-2); border-radius: var(--radius); color: var(--ink-2); }
.empty p { margin: 10px 0 18px; }
.empty p b { color: var(--ink); }
.empty-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: var(--on-accent); display: inline-grid; place-items: center; }
.illus svg { width: 220px; max-width: 70%; }
.il-card { fill: var(--surface); stroke: var(--line-2); }
.il-dot { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.il-dot.on { fill: var(--blue); stroke: var(--blue); }
.il-line { fill: var(--bg-3); }
.il-tick { fill: none; stroke: var(--on-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Calendar ---------- */
.seg-nav { display: flex; align-items: center; gap: 8px; }
.cal-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-grid.head { margin-bottom: 8px; }
.cal-grid.head span { text-align: center; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.cal-cell { aspect-ratio: 1; position: relative; display: grid; place-items: center; border-radius: 14px; transition: background .2s; min-height: 44px; }
.cal-cell:hover:not(.blank) { background: var(--bg-2); }
.cal-cell .ring { width: 82%; height: 82%; max-width: 48px; max-height: 48px; }
.cal-num { position: absolute; font-size: 14px; font-weight: 500; }
.cal-cell.future .cal-num { color: var(--ink-3); }
.cal-cell.today .cal-num { color: var(--blue); font-weight: 700; }
.cal-cell.sel, .cal-cell.sel:hover:not(.blank) { background: var(--solid); }
.cal-cell.sel .cal-num { color: var(--on-solid); }
.cal-cell.sel .ring-track { stroke: color-mix(in srgb, var(--on-solid) 20%, transparent); }
.cal-cell.sel .ring-val { stroke: var(--on-solid); }
.cal-cell.full .cal-num { color: var(--blue); font-weight: 700; }
.cal-cell.sel.full .cal-num { color: var(--on-solid); }
.cal-cell.miss::after { content: ""; position: absolute; bottom: 7%; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg.full { background: var(--blue); }
.lg.part { background: var(--blue-mid); }
.lg.miss { background: var(--red); }
.day-card { position: sticky; top: 80px; }
.day-card .muted.small { margin-top: 14px; }

/* ---------- Stats ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--bg-2); border-radius: var(--radius); padding: 18px 20px; }
.kpi > span { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.kpi b { display: block; font-size: 36px; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; margin-top: 4px; }
.kpi b small { font-size: 16px; color: var(--ink-2); font-weight: 600; letter-spacing: -.01em; }
.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 20px; }
.insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; align-items: start; }
.insight { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-2); animation: pageIn .5s var(--ease) both; }
.insight b { font-weight: 600; font-size: 15px; }
.insight p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.ins-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--solid); color: var(--on-solid); }
.insight.bad { background: var(--red-soft); } .insight.bad .ins-ic { background: var(--red); }
.insight.warn { background: var(--amber-soft); } .insight.warn .ins-ic { background: var(--amber); }
.insight.good { background: var(--blue-soft); } .insight.good .ins-ic { background: var(--blue); }

.barchart { display: flex; align-items: flex-end; gap: 6px; height: 180px; }
.bc-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bc-track { width: 100%; max-width: 28px; background: var(--bg-2); border-radius: 7px; position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 4px; }
.bc-fill { width: 100%; background: var(--blue); border-radius: 7px; animation: grow .9s var(--ease) both; transform-origin: bottom; }
.bc-fill.has-miss { background: var(--blue-mid); }
.bc-col span { font-size: 12px; color: var(--ink-2); }
@keyframes grow { from { transform: scaleY(0); } }
.wd-chart { display: grid; gap: 10px; }
.wd-row { display: grid; grid-template-columns: 26px 1fr 26px; align-items: center; gap: 10px; font-size: 14px; }
.wd-row span { color: var(--ink-2); font-weight: 500; }
.wd-row b { text-align: right; font-weight: 600; }
.wd-bar { height: 8px; background: var(--bg-2); border-radius: 8px; overflow: hidden; }
.wd-bar i { display: block; height: 100%; background: var(--red); opacity: .75; border-radius: inherit; animation: growX .9s var(--ease) both; transform-origin: left; }
@keyframes growX { from { transform: scaleX(0); } }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: flex; align-items: center; gap: 14px; padding: 12px 20px; }
.stat-list li + li { border-top: 1px solid var(--line); }
.sl-main { flex: 1; min-width: 0; }
.sl-main b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rate { height: 5px; background: var(--bg-2); border-radius: 5px; margin-top: 6px; overflow: hidden; }
.rate i { display: block; height: 100%; background: var(--blue); border-radius: inherit; animation: growX .9s var(--ease) both; transform-origin: left; }
.rate i.low { background: var(--red); }
.sl-num { text-align: right; }
.sl-num span { font-weight: 600; font-size: 16px; display: block; }
.sl-num small { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.sl-num em { font-style: normal; }

/* ---------- Settings ---------- */
.group { padding: 0; overflow: hidden; }
.g-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; width: 100%; text-align: left; min-height: 56px; }
.g-row + .g-row { border-top: 1px solid var(--line); }
.g-row.col { flex-direction: column; align-items: stretch; }
.g-row b { font-weight: 500; display: block; }
.g-row small { color: var(--ink-2); font-size: 13px; display: block; margin-top: 2px; }
.g-row.link:hover { background: var(--hover); }
.g-row.danger { color: var(--red); }
.howto { margin: 4px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.howto b { display: inline; color: var(--ink); }
.time-input { border: 0; background: var(--bg-2); border-radius: 10px; padding: 8px 12px; font-size: 16px; min-height: 40px; }

/* ---------- Sheet / modal ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.sheet {
  position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(24px) scale(.97); transition: transform .45s var(--ease), opacity .3s;
}
.sheet.wide { max-width: 560px; }
.sheet-wrap.in .sheet-backdrop { opacity: 1; }
.sheet-wrap.in .sheet { opacity: 1; transform: none; }
.sheet-header { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 14px; background: var(--glass); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.sheet-header h3 { margin: 0; font-size: 17px; font-weight: 600; }
.sheet-header .btn:first-child { justify-self: start; }
.sheet-header .btn:last-child { justify-self: end; }
.sheet-body { padding: 20px 22px 24px; }
.sheet-body.center { text-align: center; padding-top: 28px; }
.sheet-title { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.sheet .list.selectable { margin-top: 14px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); padding-left: 2px; }
.field input:not([type=checkbox]), .field textarea {
  width: 100%; border: 1px solid transparent; background: var(--bg-2); border-radius: var(--radius-sm);
  padding: 13px 14px; font-size: 17px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.hint { color: var(--ink-2); font-size: 13px; padding-left: 2px; }
.ed-top { display: flex; align-items: flex-end; gap: 14px; }
.ed-top .field { margin-bottom: 20px; }
.ed-top .tile { margin-bottom: 20px; }
.seg { display: flex; background: var(--bg-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { flex: 1; padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .25s var(--ease), color .2s; min-height: 34px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 .5px var(--line); }
.seg.full { margin: 18px 0 22px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; margin-top: 10px; }
.ig { height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); transition: background .2s, transform .15s, box-shadow .2s; }
.ig:hover { background: var(--bg-3); }
.ig.on { background: var(--solid); color: var(--on-solid); }
.ig.logo.on { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.ig img { width: 24px; height: 24px; object-fit: contain; }
.icon-grid.logos { min-height: 46px; }
.icon-grid.logos p { grid-column: 1 / -1; margin: 4px 0; }
.search { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border-radius: var(--radius-sm); padding: 0 12px; margin-top: 10px; color: var(--ink-2); }
.search input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 11px 0 !important; flex: 1; outline: none; }
.freq-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.fp { min-height: 44px; border-radius: 12px; background: var(--bg-2); font-weight: 600; font-size: 15px; transition: background .2s var(--ease), color .2s, transform .2s var(--spring); }
.fp:hover { background: var(--bg-3); }
.fp.on { background: var(--blue); color: var(--on-accent); transform: scale(1.04); }
.stepper { display: inline-flex; align-items: center; background: var(--bg-2); border-radius: 12px; align-self: flex-start; }
.stepper button { width: 48px; height: 44px; font-size: 22px; color: var(--ink); border-radius: 12px; }
.stepper button:hover { background: var(--bg-3); }
.stepper b { min-width: 36px; text-align: center; font-size: 17px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch-row b { font-weight: 500; display: block; }
.switch-row small { color: var(--ink-2); font-size: 13px; }
.switch { appearance: none; width: 51px; height: 31px; border-radius: 31px; background: var(--bg-3); position: relative; flex: none; cursor: pointer; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 3px 8px rgba(0, 0, 0, .15); transition: transform .3s var(--spring); }
.switch:checked { background: var(--blue); }
.switch:checked::after { transform: translateX(20px); }
.goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 14px; }
.goal-grid .field { margin-bottom: 12px; }
.ed-actions { margin-top: 8px; }
.error { color: var(--red); font-size: 14px; min-height: 20px; margin: -6px 0 10px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Toast ---------- */
#toast-root { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; background: var(--solid); color: var(--on-solid); padding: 12px 18px; border-radius: 14px; font-size: 15px; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(12px) scale(.98); transition: all .35s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast.bad { background: var(--red); }
.toast-btn { color: var(--blue-on-ink); font-weight: 600; }

/* ---------- Intro (motion) ---------- */
.intro { position: fixed; inset: 0; z-index: 500; background: var(--surface); overflow: hidden; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.intro.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro-progress { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; width: min(420px, 70vw); z-index: 3; }
.intro-progress span { flex: 1; height: 3px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.intro-progress i { display: block; height: 100%; width: 0; background: var(--solid); }
.intro-progress span.run i { animation: prog var(--dur, 3s) linear forwards; }
.intro-progress span.done i { width: 100%; animation: none; }
@keyframes prog { to { width: 100%; } }
.intro-skip { position: absolute; top: 10px; right: 16px; z-index: 3; color: var(--ink-2); font-size: 15px; padding: 10px 14px; border-radius: 980px; }
.intro-skip:hover { background: var(--bg-2); color: var(--ink); }
.intro-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 60px 24px; }
.scene.leave { animation: sceneOut .45s var(--ease) forwards; }
@keyframes sceneOut { to { opacity: 0; transform: translateY(-20px) scale(.98); filter: blur(6px); } }
.stage-center { text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; max-width: 900px; }
.stage-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; width: min(1040px, 100%); }
.stage-split.reverse .copy { order: 2; }
.scene h2 { margin: 0; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; }
.scene .eyebrow { font-size: 17px; }
.fade-up { opacity: 0; transform: translateY(18px); filter: blur(8px); }
.scene.play .fade-up { animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; filter: none; } }

.orb { position: absolute; width: 560px; height: 560px; border-radius: 50%; top: 50%; left: 50%; translate: -50% -55%; background: radial-gradient(circle, color-mix(in srgb, var(--blue) 22%, transparent), transparent 62%); opacity: 0; z-index: -1; }
.scene.play .orb { animation: orbIn 2.4s var(--ease) forwards, orbPulse 5s ease-in-out 2.4s infinite; }
@keyframes orbIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes orbPulse { 50% { transform: scale(1.08); } }

.logo-mark { width: 64px; height: 64px; }
.logo-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.logo-mark.big { width: 132px; height: 132px; margin-bottom: 22px; }
.logo-mark.tiny { width: 28px; height: 28px; }
.scene .logo-mark.big .ld { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.scene.play .logo-mark.big .ld { animation: dotPop .55s var(--spring) forwards; animation-delay: calc(.2s + var(--i) * .09s); }
.scene.play .logo-mark.big { animation: lmFloat 4s ease-in-out 2s infinite; }
@keyframes dotPop { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes lmFloat { 50% { transform: translateY(-6px); } }
.intro-title { margin: 0; font-size: clamp(56px, 10vw, 112px); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.letters { display: inline-flex; flex-wrap: wrap; justify-content: center; }
.welcome .intro-title { font-size: clamp(40px, 7vw, 84px); }
.s-end .intro-title { font-size: clamp(48px, 8.5vw, 104px); }
.letters span { display: inline-block; opacity: 0; transform: translateY(40%) rotate(6deg); filter: blur(10px); }
.scene.play .letters span { animation: letter .8s var(--ease) forwards; animation-delay: calc(.9s + var(--i) * .055s); }
@keyframes letter { to { opacity: 1; transform: none; filter: none; } }
.intro-sub { margin: 18px 0 0; font-size: clamp(19px, 2.4vw, 26px); color: var(--ink-2); }
.s-end .btn { margin-top: 32px; }

/* list scene */
.mock-list { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-3); padding: 8px; display: grid; }
.mock-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; opacity: 0; transform: translateX(60px) scale(.96); }
.scene.play .mock-row { animation: rowIn .7s var(--ease) forwards; animation-delay: calc(.3s + var(--i) * .13s); }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.mock-check { width: 28px; height: 28px; border-radius: 50%; border: 1.75px solid var(--line-2); display: grid; place-items: center; flex: none; }
.mock-check svg { width: 17px; fill: none; stroke: var(--on-accent); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.scene.play .mock-check { animation: chkFill .4s var(--spring) forwards; animation-delay: calc(1.8s + var(--i) * .45s); }
.scene.play .mock-check svg { animation: draw .35s var(--ease) forwards; animation-delay: calc(1.95s + var(--i) * .45s); }
@keyframes chkFill { 0% { transform: scale(1); } 50% { transform: scale(1.25); background: var(--blue); border-color: var(--blue); } 100% { transform: scale(1); background: var(--blue); border-color: var(--blue); } }
.mock-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--bg-2); display: grid; place-items: center; flex: none; }
.mock-text b { display: block; font-weight: 500; font-size: 16px; }
.mock-text small { color: var(--ink-2); font-size: 13px; }
.scene.play .mock-text b { animation: strike .4s forwards; animation-delay: calc(2s + var(--i) * .45s); }
@keyframes strike { to { color: var(--ink-3); text-decoration: line-through; } }

/* freq scene */
.freq-demo { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.freq-num { font-size: 120px; font-weight: 800; letter-spacing: -.06em; line-height: 1; display: flex; align-items: baseline; gap: 10px; }
.freq-num span { min-width: 1ch; display: inline-block; color: var(--blue); }
.freq-num small { font-size: 28px; color: var(--ink-2); font-weight: 600; letter-spacing: -.02em; }
.freq-days { display: flex; gap: 10px; }
.freq-days span { width: 54px; height: 54px; border-radius: 16px; background: var(--bg-2); display: grid; place-items: center; font-weight: 600; color: var(--ink-2); }
.scene.play .freq-days span { animation: dayOn .45s var(--spring) forwards; animation-delay: calc(.35s + var(--i) * .33s); }
@keyframes dayOn { 50% { transform: scale(1.15); } to { background: var(--solid); color: var(--on-solid); } }

/* calendar scene */
.mock-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; background: var(--surface); padding: 22px; border-radius: 24px; box-shadow: var(--shadow-3); }
.mc-day { position: relative; width: 52px; height: 52px; display: grid; place-items: center; opacity: 0; transform: scale(.6); }
.scene.play .mc-day { animation: rowIn .5s var(--spring) forwards; animation-delay: calc(.2s + var(--i) * .035s); }
.mc-day svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mc-day circle { fill: none; stroke-width: 3.5; }
.mc-day .t { stroke: var(--bg-3); }
.mc-day .v { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 88; }
.scene.play .mc-day .v { animation: ringFill 1s var(--ease) forwards; animation-delay: calc(.8s + var(--i) * .05s); }
@keyframes ringFill { to { stroke-dashoffset: calc(88 - 88 * var(--v)); } }
.mc-day em { font-style: normal; font-size: 13px; font-weight: 600; }

/* stats scene */
.mock-stats { position: relative; background: var(--surface); padding: 28px; border-radius: 24px; box-shadow: var(--shadow-3); }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 220px; }
.bars span { flex: 1; height: calc(var(--v) * 100%); background: var(--blue); border-radius: 10px; transform: scaleY(0); transform-origin: bottom; }
.bars span.low { background: var(--red); opacity: .8; }
.scene.play .bars span { animation: barUp .9s var(--spring) forwards; animation-delay: calc(.3s + var(--i) * .1s); }
@keyframes barUp { to { transform: scaleY(1); } }
.insight-pop { position: absolute; left: -36px; bottom: -28px; display: flex; gap: 12px; align-items: center; background: var(--surface); padding: 14px 18px; border-radius: 18px; box-shadow: var(--shadow-3); text-align: left; opacity: 0; transform: translateY(20px) scale(.9); max-width: 330px; }
.scene.play .insight-pop { animation: popIn .7s var(--spring) 1.9s forwards; }
@keyframes popIn { to { opacity: 1; transform: none; } }
.insight-pop b { display: block; font-size: 15px; font-weight: 600; }
.insight-pop small { color: var(--ink-2); font-size: 13px; }
.ip-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--red); color: var(--on-accent); display: grid; place-items: center; flex: none; }

/* notify scene */
.mock-browser { margin-top: 40px; width: min(640px, 90vw); height: 300px; border-radius: 16px; background: var(--bg-2); box-shadow: var(--shadow-3); overflow: hidden; text-align: left; }
.mb-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--chrome); }
.mb-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); }
.mb-bar span { flex: 1; height: 24px; margin-left: 16px; border-radius: 8px; background: var(--surface); }
.mb-body { position: relative; height: calc(100% - 42px); }
.mb-note { position: absolute; top: 16px; right: 16px; width: 330px; display: flex; gap: 12px; align-items: center; background: var(--glass); backdrop-filter: blur(20px); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-2); transform: translateX(120%); }
.scene.play .mb-note { animation: noteIn .8s var(--spring) 1.3s forwards; }
@keyframes noteIn { to { transform: none; } }
.mb-note b { display: block; font-size: 14px; font-weight: 600; }
.mb-note small { color: var(--ink-2); font-size: 13px; }

.intro.reduced *, .intro.reduced *::before, .intro.reduced *::after { animation-duration: .01s !important; animation-delay: 0s !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cal-layout, .grid-2 { grid-template-columns: 1fr; }
  .day-card { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .stage-split { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .stage-split.reverse .copy { order: 0; }
  .mock-list { text-align: left; }
  .insight-pop { left: 12px; right: 12px; bottom: -40px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { height: 52px; padding: 0 16px; }
  .tabs { display: none; }
  .topbar .avatar { width: 32px; height: 32px; font-size: 14px; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; padding: 6px 8px calc(6px + var(--safe-b));
    background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--ink-3); padding: 4px 0; min-height: 48px; }
  .tabbar a.active { color: var(--blue); }
  .page { padding: 24px 16px calc(110px + var(--safe-b)); }
  .hero-head { flex-direction: column; align-items: flex-start; }
  .hero-head { position: relative; }
  .hero-head .today-ring { position: absolute; right: 0; top: 0; width: 84px; height: 84px; }
  .hero-head .today-ring svg { width: 84px; height: 84px; }
  .hero-head .today-ring .tr-label b { font-size: 22px; }
  .hero-head .today-ring .tr-label > span { display: none; }
  .hero-head.with-ring > div:first-child { padding-right: 96px; }
  .lead { font-size: 17px; }
  .task { padding: 10px 6px 10px 14px; gap: 12px; }
  .task + .task::before { left: 56px; }
  .tile { width: 36px; height: 36px; }
  .callout { flex-wrap: wrap; align-items: flex-start; }
  .callout .grow { flex: 1 1 calc(100% - 54px); }
  .callout .btn { margin-left: 54px; }
  .card { padding: 16px; }
  .cal-grid { gap: 2px; }
  .cal-card { padding: 12px; }
  .freq-num { font-size: 88px; }
  .freq-days span { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
  .freq-days { gap: 6px; }
  .mc-day { width: 38px; height: 38px; }
  .mock-cal { gap: 6px; padding: 14px; }
  .bars { height: 160px; }
  .mb-note { width: auto; left: 12px; right: 12px; }
  .mock-browser { height: 220px; }
  .sheet-wrap { padding: 0; place-items: end center; }
  .sheet, .sheet.wide { max-width: none; border-radius: 22px 22px 0 0; max-height: 92vh; transform: translateY(100%); padding-bottom: var(--safe-b); }
  .goal-grid { grid-template-columns: 1fr; }
  #toast-root { bottom: calc(84px + var(--safe-b)); }
  .g-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.no-motion *, .no-motion *::before, .no-motion *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

/* =====================================================================
   v2 — logo, menus, pickers, motion, landing, auth
   ===================================================================== */

/* ---------- Dotted logo ---------- */
.logo-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-svg .ld { fill: var(--ink); }
.logo-svg .ld-end { fill: var(--blue); }
.logo-svg.v-tile .lt-bg { fill: var(--solid); }
.logo-svg.v-tile .ld { fill: var(--on-solid); }
.logo-svg.v-tile .ld-end { fill: var(--blue); }
.logo-svg .ld { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--spring); }
.brand { gap: 8px; }
.brand-mark { width: 34px; height: 34px; }
.brand:hover .ld { animation: dotWave .6s var(--ease); animation-delay: calc(var(--i) * .04s); }
@keyframes dotWave { 50% { transform: translateY(-2.5px) scale(1.25); } }
.brand-word { font-weight: 600; letter-spacing: -.03em; font-size: 18px; color: var(--ink); }
.brand-word b { font-weight: 800; margin-left: 1px; }
.brand-word.small { font-size: 15px; }
.brand-mark.lg { width: 60px; height: 60px; margin: 0 auto 18px; }
.logo-svg.animate .ld { animation: dotPop .55s var(--spring) both; animation-delay: calc(.15s + var(--i) * .08s); }
#view.enter .brand-mark .ld { animation: none; }
.avatar { border: 0; cursor: pointer; }
.avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--blue); }
.avatar.static { width: 40px; height: 40px; cursor: default; }

/* ---------- Entrance motion (only on navigation) ---------- */
#view.enter .list > .task,
#view.enter .insight, #view.enter .kpi, #view.enter .stat-list li, #view.enter .g-row,
#view.enter .callout, #view.enter .quick-add {
  animation: itemIn .55s var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 45ms);
}
@keyframes itemIn { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
#view.enter .ring .ring-val { animation: ringIn 1.1s var(--ease) both .15s; }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
#view.enter .section-head, #view.enter .hero-head > div { animation: pageIn .6s var(--ease) both; }
.day-card.swap > * { animation: itemIn .4s var(--ease) both; }
.day-card.swap > *:nth-child(2) { animation-delay: .03s; } .day-card.swap > *:nth-child(3) { animation-delay: .06s; } .day-card.swap > *:nth-child(4) { animation-delay: .09s; }
.day-card.swap .list > .task { animation: itemIn .45s var(--ease) both; animation-delay: calc(80ms + var(--i, 0) * 40ms); }

/* ---------- Task row actions ---------- */
.task-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 980px;
  background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .2s, transform .15s var(--spring); max-width: 160px;
}
.link-btn span { overflow: hidden; text-overflow: ellipsis; }
.link-btn:hover { background: color-mix(in srgb, var(--blue) 22%, transparent); }
.link-btn:active { transform: scale(.95); }
.list.compact .link-btn { height: 28px; padding: 0 10px; }
.icon-btn.xs { width: 26px; height: 22px; border-radius: 7px; }
.icon-btn:disabled { opacity: .25; pointer-events: none; }
.reorder { display: flex; flex-direction: column; gap: 0; margin-left: -8px; }
.task.editable .task-main { cursor: pointer; }

/* quick add */
.quick-add {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 4px 6px 4px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px dashed var(--line-2); transition: border-color .2s, box-shadow .2s;
}
.quick-add:focus-within { border-style: solid; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.qa-plus { color: var(--ink-3); display: grid; }
.quick-add:focus-within .qa-plus { color: var(--blue); }
.quick-add input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16px; padding: 12px 0; min-width: 0; }
.quick-add input::placeholder { color: var(--ink-3); }

/* link input */
.link-input { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border-radius: var(--radius-sm); padding: 0 14px; border: 1px solid transparent; color: var(--ink-3); }
.link-input:focus-within { background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.field .link-input input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 13px 0 !important; }

/* ---------- Popovers & menus ---------- */
.popover {
  position: fixed; z-index: 300; min-width: 220px; max-width: calc(100vw - 24px);
  background: var(--glass); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-3);
  opacity: 0; transform: scale(.94) translateY(-4px); transition: opacity .18s var(--ease), transform .28s var(--spring);
}
.popover.in { opacity: 1; transform: none; }
.menu { padding: 6px; display: flex; flex-direction: column; min-width: 230px; }
.menu > button, .menu > a {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 12px; border-radius: 10px;
  font-size: 15px; color: var(--ink); text-align: left; width: 100%; min-height: 40px; transition: background .15s;
}
.menu > button:hover, .menu > a:hover, .menu > button:focus-visible { background: var(--bg-2); outline: none; }
.menu > button:disabled { opacity: .35; }
.menu .danger { color: var(--red); }
.menu .ic { color: var(--ink-2); }
.menu .danger .ic { color: var(--red); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.menu-label { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 6px 12px 4px; text-transform: uppercase; letter-spacing: .04em; }
.menu-pad { padding: 4px 6px 6px; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 12px; font-size: 15px; min-height: 44px; cursor: pointer; }
.menu-row small { display: block; color: var(--ink-2); font-size: 12px; }
.menu.account { width: 290px; }
.acc-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 6px; }
.acc-head b { display: block; font-weight: 600; }
.acc-head small { color: var(--ink-2); font-size: 13px; }
.seg.mini { width: 100%; }
.seg.mini button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; }
.g-row .seg.mini { width: auto; min-width: 230px; }
.switch.sm { width: 42px; height: 26px; }
.switch.sm::after { width: 22px; height: 22px; }
.switch.sm:checked::after { transform: translateX(16px); }

/* custom pickers */
.picker-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--bg-2);
  font-variant-numeric: tabular-nums; transition: background .2s;
}
.picker-btn:hover { background: var(--bg-3); }
.picker-btn b { font-weight: 600; font-size: 16px; }
.picker-btn .pk-chev { transform: rotate(90deg); color: var(--ink-3); transition: transform .25s var(--ease); }
.picker-btn[aria-expanded="true"] .pk-chev { transform: rotate(-90deg); }
.tp { padding: 14px; width: 240px; }
.tp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tp-head span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.tp-head b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.tp-col { height: 200px; overflow-y: auto; scrollbar-width: none; background: var(--bg-2); border-radius: 12px; padding: 4px; scroll-behavior: smooth; }
.tp-col::-webkit-scrollbar { display: none; }
.tp-col button { display: block; width: 100%; height: 36px; border-radius: 9px; font-variant-numeric: tabular-nums; font-size: 16px; color: var(--ink-2); }
.tp-col button:hover { background: var(--bg-3); color: var(--ink); }
.tp-col button.on { background: var(--solid); color: var(--on-solid); font-weight: 600; }
.month-btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; letter-spacing: inherit; border-radius: 14px; padding: 0 6px; margin-left: -6px; transition: background .2s; }
.month-btn:hover { background: var(--bg-2); }
.month-chev { transform: rotate(90deg); color: var(--ink-3); transition: transform .25s var(--ease); }
.month-btn[aria-expanded="true"] .month-chev { transform: rotate(-90deg); }
.mp { padding: 12px; width: 280px; }
.mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mp-head b { font-size: 17px; }
.mp-head .icon-btn { width: 34px; height: 34px; }
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mp-grid button { height: 42px; border-radius: 11px; font-weight: 500; font-size: 15px; transition: background .15s; }
.mp-grid button:hover { background: var(--bg-2); }
.mp-grid button.now { color: var(--blue); font-weight: 700; }
.mp-grid button.on { background: var(--solid); color: var(--on-solid); }

/* info tooltip bubble */
.cal-top { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 12px; min-height: 28px; }
.info-tip { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-3); cursor: help; transition: color .2s, background .2s; }
.info-tip:hover, .info-tip:focus-visible { color: var(--blue); background: var(--blue-soft); outline: none; }
.bubble {
  position: absolute; right: -6px; top: calc(100% + 10px); z-index: 50; width: 260px; display: grid; gap: 8px;
  padding: 14px 16px; border-radius: 14px; background: var(--solid); color: var(--on-solid); font-size: 13px; box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.96); transform-origin: top right; transition: opacity .18s, transform .28s var(--spring), visibility .18s;
  text-align: left; cursor: default;
}
.bubble::before { content: ""; position: absolute; top: -6px; right: 17px; width: 12px; height: 12px; background: var(--solid); transform: rotate(45deg); border-radius: 2px; }
.bubble b { font-size: 14px; }
.bubble span { display: flex; align-items: center; gap: 8px; opacity: .85; }
.info-tip:hover .bubble, .info-tip:focus-visible .bubble, .info-tip:focus-within .bubble { opacity: 1; visibility: visible; transform: none; }
.lg.today { background: transparent; box-shadow: inset 0 0 0 2px var(--blue); }

/* day history */
.day-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 980px; background: var(--bg-2); color: var(--ink-2); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.red { background: var(--red-soft); color: var(--red); }
.list.history .task:not(.is-done) .task-sub { color: var(--ink-3); }
.list.history .task.is-missed .task-sub { color: var(--red); font-weight: 500; }
.list.history .task.is-done .task-sub { color: var(--blue); font-weight: 500; }

/* notices */
.notice-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--blue-soft); color: var(--blue); display: inline-grid; place-items: center; margin-bottom: 14px; }
.notice-ic.red { background: var(--red-soft); color: var(--red); }
.howto.left { text-align: left; margin: 14px 0 20px; }
.col { display: flex; flex-direction: column; }
.col.gap { gap: 8px; margin-top: 18px; }
.btn { text-decoration: none; }


/* =====================================================================
   v3 — sidebar shell, home, channels, notes, palette, landing, auth
   ===================================================================== */
body { font-feature-settings: "kern"; letter-spacing: 0; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -.02em; }
kbd { font: 500 11px/1 var(--mono); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-2); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ---------- Button micro-interactions ---------- */
.btn, .tile-card, .f-card { position: relative; isolation: isolate; }
.btn { overflow: hidden; transition: background .25s var(--ease), color .2s, transform .35s var(--spring), box-shadow .3s var(--ease), opacity .2s; }
.btn::after, .tile-card::after, .f-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .32), transparent 65%);
}
.btn.ghost::after { background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, .07), transparent 65%); }
:root[data-theme="dark"] .btn.ghost::after { background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .09), transparent 65%); }
.btn:hover::after, .tile-card:hover::after, .f-card:hover::after { opacity: 1; }
.btn.primary:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn.blue { background: var(--blue); color: #fff; }
.btn.blue:hover { background: var(--blue-hover); box-shadow: 0 10px 30px color-mix(in srgb, var(--blue) 40%, transparent); }
.btn.blue:disabled { opacity: .4; box-shadow: none; }
.btn.light { background: #FFFFFF; color: #111113; }
.btn.light:hover { background: #E8E8EC; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 10px 40px rgba(255, 255, 255, .12); }
.btn.light::after { background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(14, 152, 190, .22), transparent 65%); }
.btn:active { transform: scale(.96); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--side); border-right: 1px solid var(--line); padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 2px; z-index: 40;
}
.sb-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px 8px; }
.sb-top .brand-mark { width: 28px; height: 28px; }
.sb-search { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 11px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); font-size: 15px; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.sb-search:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.sb-search > span:first-child { display: grid; }
.sb-nav, .sb-section { display: flex; flex-direction: column; gap: 1px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 500; transition: background .18s, color .18s; min-height: 36px; }
.sidebar a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.sidebar a.active { background: var(--bg-3); color: var(--ink); }
.sidebar a.active .ic { color: var(--blue); }
.sb-badge { font: 600 11px/18px var(--mono); min-width: 20px; height: 20px; padding: 1px 6px; border-radius: 10px; background: var(--blue); color: #fff; text-align: center; }
.sb-count { font: 500 12px var(--mono); color: var(--ink-3); }
.sb-section { margin-top: 20px; }
.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 4px 10px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.sb-hash { width: 18px; text-align: center; color: var(--ink-3); font-weight: 600; font-size: 16px; }
.sb-pin { color: var(--ink-3); display: grid; }
.sb-empty { margin: 2px 10px; font-size: 13px; color: var(--ink-3); }
.icon-btn.xs2 { width: 28px; height: 28px; border-radius: 8px; }
.sb-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 9px 8px 9px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: sticky; bottom: 0; }
.sidebar .sb-section:last-of-type { margin-bottom: 16px; }
.sb-user b { font-weight: 600; font-size: 14px; }
.sb-user small { color: var(--ink-3); font-size: 12px; display: block; }
.avatar.static.sm { width: 34px; height: 34px; font-size: 14px; position: relative; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--solid); color: var(--on-solid); font-weight: 600; }
.online { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 2px var(--surface); }
.m-bar, .drawer-backdrop { display: none; }
#view { min-width: 0; outline: none; position: relative; }
.page { max-width: 1180px; padding: 36px 40px 96px; }
.tabbar { display: none; }

/* ---------- Home ---------- */
.home-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.eyebrow.caps { text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.home-title { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.illus-hero { width: 230px; flex: none; margin: -10px 4px -14px 0; overflow: visible; }
.ih-line { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ih-line.thin { stroke-width: 2.4; stroke: var(--ink-3); }
.ih-fill { fill: var(--surface); }
.ih-ink { fill: var(--ink-2); }
.ih-ink-fill { fill: var(--ink); }
.ih-tick { fill: none; stroke: var(--blue); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 0; }
.ih-steam { fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; animation: steam 3s ease-in-out infinite; }
.ih-spark { fill: none; stroke: var(--ink-2); stroke-width: 2.4; stroke-linecap: round; animation: twinkle 2.6s ease-in-out infinite; transform-origin: center; }
.ih-dot { fill: var(--blue); animation: bobDot 3.2s ease-in-out infinite; }
.ih-pencil { animation: scribble 3.6s ease-in-out infinite; transform-box: fill-box; }
#view.enter .ih-tick { animation: draw .6s var(--ease) both .5s; stroke-dashoffset: 22; }
#view.enter .ih-tick.t2 { animation-delay: .8s; }
#view.enter .illus-hero { animation: itemIn .8s var(--ease) both .1s; }
@keyframes steam { 50% { transform: translateY(-4px); opacity: .5; } }
@keyframes twinkle { 50% { opacity: .35; } }
@keyframes bobDot { 50% { transform: translateY(-5px); } }
@keyframes scribble { 0%, 100% { translate: 0 0; } 40% { translate: -3px 2px; } 70% { translate: 2px -1px; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.tile-card {
  --tbg: #F9C6B3; --tbd: #F1AC93; --tink: #5B2A1C;
  overflow: hidden; display: block; border-radius: 22px; padding: 16px 18px 15px; background: var(--tbg); border: 1px solid var(--tbd); color: var(--tink);
  transition: transform .4s var(--spring), box-shadow .3s var(--ease);
}
.tile-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in srgb, var(--tbd) 45%, transparent); }
.tile-card.t-yellow { --tbg: #F7E39E; --tbd: #EBD06E; --tink: #4F420E; }
.tile-card.t-pink { --tbg: #F6CFE1; --tbd: #EBB1CC; --tink: #571E3B; }
.tile-card.t-blue { --tbg: #C2D8F7; --tbd: #A0C1F0; --tink: #13305B; }
:root[data-theme="dark"] .tile-card { --tbg: #33231F; --tbd: #4A322B; --tink: #F4BCA8; }
:root[data-theme="dark"] .tile-card.t-yellow { --tbg: #312B19; --tbd: #473E22; --tink: #EDD488; }
:root[data-theme="dark"] .tile-card.t-pink { --tbg: #33212B; --tbd: #4A2F3E; --tink: #EEB7D0; }
:root[data-theme="dark"] .tile-card.t-blue { --tbg: #1E2939; --tbd: #2B3B54; --tink: #A9C7F3; }
.tile-card::after { background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), transparent 65%); }
:root[data-theme="dark"] .tile-card::after { background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .06), transparent 65%); }
.tc-top { display: flex; align-items: center; justify-content: space-between; }
.tc-top span { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tile-card b { display: block; font-size: 46px; font-weight: 500; line-height: 1; margin: 16px 0 6px; }
.tile-card small { font-size: 14px; font-weight: 500; opacity: .85; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { border-radius: 24px; padding: 16px 16px 10px; border: 1px solid var(--pbd, var(--line)); background: var(--pbg, var(--surface)); }
.panel.p-blue { --pbg: #F3F7FE; --pbd: #E0EBFB; }
.panel.p-coral { --pbg: #FDF3EF; --pbd: #F7DFD5; }
.panel.p-yellow { --pbg: #FFFBEC; --pbd: #F4EAC3; }
:root[data-theme="dark"] .panel.p-blue { --pbg: #1F232B; --pbd: #2A3243; }
:root[data-theme="dark"] .panel.p-coral { --pbg: #262122; --pbd: #3A2E2C; }
:root[data-theme="dark"] .panel.p-yellow { --pbg: #25231D; --pbd: #3A3526; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.panel-head h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.panel-head .ic { color: var(--ink-2); }
.count { font: 500 12px/1 var(--mono); padding: 4px 7px; border-radius: 8px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); color: var(--ink-2); }
.view-all { color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 4px 8px; border-radius: 8px; transition: background .2s, color .2s; }
.view-all:hover { background: var(--surface); color: var(--ink); }
.panel .list.compact.panel-list { margin: 0; background: transparent; border: 0; box-shadow: none; }
.panel-list .task, .prow {
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px; margin-bottom: 8px; padding: 9px 12px; transition: border-color .2s, transform .3s var(--spring), box-shadow .2s;
}
.panel-list .task::before { display: none; }
.panel-list .task:hover, .prow:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); transform: translateY(-1px); background: var(--surface); }
.prow { display: flex; align-items: center; gap: 12px; color: var(--ink); width: 100%; text-align: left; }
.prow.add { border-style: dashed; background: transparent; color: var(--ink-2); }
.prow-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; flex: none; color: var(--ink-2); font-weight: 600; }
.prow-main { flex: 1; min-width: 0; }
.prow-main b { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.prow-main small { display: block; color: var(--ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-main em { font-style: normal; }
.date-pill { font-size: 12px; padding: 4px 9px; border-radius: 980px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.panel-empty { padding: 12px 6px 18px; color: var(--ink-2); font-size: 14px; }
.panel-empty p { margin: 0 0 10px; }
.week-bars { display: flex; gap: 8px; height: 104px; padding: 0 4px; }
.wb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wb-track { flex: 1; width: 100%; max-width: 30px; background: var(--bg-2); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.wb-track i { width: 100%; background: var(--blue); border-radius: 8px; }
.wb-track i.part { background: var(--blue-mid); }
#view.enter .wb-track i { animation: grow .9s var(--ease) both .3s; transform-origin: bottom; }
.wb span { font-size: 12px; color: var(--ink-3); }
.mini-insight { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 13px; background: var(--bg-2); margin: 14px 0 6px; font-size: 13.5px; }
.mini-insight p { margin: 0; color: var(--ink-2); }
.mini-insight b { color: var(--ink); font-weight: 600; }
.mini-insight > span { color: var(--blue); display: grid; padding-top: 1px; }
.mini-insight.warn > span { color: var(--amber); } .mini-insight.bad > span { color: var(--red); }
.composer-spacer { height: 10px; }

/* composer */
.composer {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow-2); padding: 10px 12px 8px;
  transition: border-color .2s, box-shadow .2s;
}
.composer:focus-within { border-color: color-mix(in srgb, var(--blue) 55%, var(--line-2)); box-shadow: var(--shadow-2), 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent); }
.composer.floating { position: sticky; bottom: 18px; z-index: 15; width: min(760px, calc(100% - 32px)); margin: -78px auto 22px; }
.composer textarea { display: block; width: 100%; border: 0; outline: none; resize: none; background: transparent; font-size: 16px; line-height: 1.45; padding: 8px 4px; max-height: 220px; }
.composer textarea::placeholder { color: var(--ink-3); }
.cp-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 2px; }
.composer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cp-target { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); transition: background .2s; }
.cp-target:hover { background: var(--bg-2); color: var(--ink); }
.cp-target .pk-chev { transform: rotate(90deg); color: var(--ink-3); }
.send-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; transition: transform .3s var(--spring), background .2s, box-shadow .2s; }
.send-btn:hover { background: var(--blue-hover); transform: scale(1.06); box-shadow: 0 6px 18px color-mix(in srgb, var(--blue) 40%, transparent); }
.chip { border: 0; cursor: pointer; }
button.chip { transition: background .2s, color .2s; }
button.chip:hover { background: var(--bg-3); color: var(--ink); }
.chip.on { background: var(--solid); color: var(--on-solid); }
.chip.small { font-size: 11.5px; padding: 3px 8px; }

/* ---------- Channels ---------- */
.channel-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.ch-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px 16px; border-bottom: 1px solid var(--line); }
.ch-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.03em; display: flex; align-items: center; gap: 4px; }
.ch-hash { color: var(--ink-3); font-weight: 500; }
.ch-head p { margin: 2px 0 0; }
.ch-stream { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; }
.ch-stream > :first-child { margin-top: auto; }
.day-sep { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; font-weight: 600; margin: 16px 8px 8px; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: start; padding: 7px 10px; border-radius: 12px; transition: background .15s; }
.msg:hover { background: var(--bg-2); }
.msg-time { font: 500 12px/22px var(--mono); color: var(--ink-3); }
.msg-text { font-size: 15.5px; line-height: 1.5; word-break: break-word; }
.msg-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.msg:hover .msg-actions, .msg:focus-within .msg-actions { opacity: 1; }
#view.enter .msg { animation: itemIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.ch-empty { margin: auto 0; background: transparent; }
.ch-composer { margin: 0 24px 20px; }

/* ---------- Notes ---------- */
.notes-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search.inline { margin: 0; flex: 1 1 260px; max-width: 380px; background: var(--bg-2); }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.note-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform .35s var(--spring), border-color .2s, box-shadow .2s; min-height: 150px; }
.note-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
#view.enter .note-card { animation: itemIn .5s var(--ease) both; animation-delay: calc(80ms + var(--i, 0) * 40ms); }
.nc-top { display: flex; justify-content: space-between; align-items: center; min-height: 22px; }
.nc-pin { color: var(--ink-3); display: grid; }
.note-card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.note-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.note-card small { color: var(--ink-3); font-size: 12.5px; }
.note-page { padding-top: 22px; }
.note-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 10px; }
.back-link.inline { position: static; }
.seg.mini.fit { width: auto; }
.save-state { min-width: 56px; text-align: right; }
.note-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tag-btn { display: inline-flex; align-items: center; gap: 5px; }
.note-title { width: 100%; border: 0; outline: none; background: transparent; font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.04em; padding: 4px 0 10px; }
.note-title::placeholder { color: var(--ink-3); }
.note-body { width: 100%; border: 0; outline: none; background: transparent; font-size: 17px; line-height: 1.7; resize: none; min-height: 320px; padding: 0; }
.note-body::placeholder { color: var(--ink-3); }
.md { font-size: 17px; line-height: 1.7; }
.md h1, .md h2, .md h3 { letter-spacing: -.03em; line-height: 1.2; margin: 18px 0 6px; }
.md h1 { font-size: 30px; } .md h2 { font-size: 24px; } .md h3 { font-size: 20px; }
.md p { margin: 0; }
.md ul { margin: 4px 0; padding-left: 22px; }
.md-gap { height: 12px; }
.md-check { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 2px 0; }
.md-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.md-check input:checked + span { color: var(--ink-3); text-decoration: line-through; }
.tag-menu .tag-input { width: 100%; border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 9px; padding: 8px 10px; outline: none; font-size: 14px; }
.menu > button.on { color: var(--blue); }

/* ---------- Command palette ---------- */
.palette-wrap { position: fixed; inset: 0; z-index: 400; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.palette { position: relative; width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow-3); overflow: hidden; opacity: 0; transform: translateY(-10px) scale(.98); transition: opacity .2s, transform .3s var(--spring); }
.palette-wrap.in .palette-backdrop { opacity: 1; }
.palette-wrap.in .palette { opacity: 1; transform: none; }
.pal-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.pal-input input { flex: 1; border: 0; outline: none; background: transparent; font-size: 18px; color: var(--ink); }
.pal-results { max-height: min(56vh, 460px); overflow-y: auto; padding: 6px; }
.pal-group { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px 10px 4px; }
.pal-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 11px; text-align: left; }
.pal-item.on { background: var(--bg-2); }
.pal-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.pal-item.on .pal-ic { background: var(--surface); color: var(--blue); }
.pal-txt { flex: 1; min-width: 0; }
.pal-txt b { display: block; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-txt small { display: block; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-empty { padding: 28px; text-align: center; color: var(--ink-2); }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.pal-foot kbd { margin-right: 3px; }

/* export menu */
.export-menu { min-width: 300px; }
.export-menu > button { justify-content: flex-start; gap: 12px; }
.mi-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.mi-txt { flex: 1; }
.mi-txt b { display: block; font-weight: 500; font-size: 14.5px; }
.mi-txt small { display: block; color: var(--ink-3); font-size: 12px; }

/* shared form bits */
.pw { position: relative; display: flex; }
.pw input { padding-right: 48px !important; }
.pw-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); }
.pw-eye:hover { color: var(--ink); background: var(--bg-3); }
.pw-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; color: var(--ink-2); text-align: left; }
.pw-rules li { display: flex; align-items: center; gap: 7px; transition: color .2s; }
.pw-rules li span { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: transparent; transition: background .25s, color .25s, transform .3s var(--spring); flex: none; }
.pw-rules li.ok { color: var(--ink); }
.pw-rules li.ok span { background: var(--blue); color: #fff; transform: scale(1.08); }
.field-msg { font-size: 13px; color: var(--ink-2); text-align: left; padding-left: 4px; }
.field-msg:empty { display: none; }
.field-msg.bad { color: var(--red); }
.field-msg.good { color: var(--blue); }
.back-link { position: absolute; top: 22px; left: 22px; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 15px; padding: 8px 12px 8px 6px; border-radius: 980px; transition: background .2s, color .2s; }
.back-link:hover { background: var(--bg-2); color: var(--ink); }

/* ---------- Auth (centered, minimal) ---------- */
.auth2 { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 72px 20px 40px; background: var(--bg); }
.auth2-card { width: min(420px, 100%); text-align: center; animation: pageIn .6s var(--ease) both; }
.auth2-icon { width: 64px; height: 64px; margin: 0 auto 20px; filter: drop-shadow(0 14px 24px color-mix(in srgb, var(--blue) 35%, transparent)); }
.auth2-icon .lt-bg { fill: var(--blue) !important; }
.auth2-icon .ld, .auth2-icon .ld-end { fill: #fff !important; }
.auth2-card h1 { margin: 0 0 30px; font-size: 30px; font-weight: 700; letter-spacing: -.035em; }
.auth2-fields { display: flex; flex-direction: column; gap: 10px; }
.a-in { width: 100%; padding: 15px 16px; font-size: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 13px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.a-in::placeholder { color: var(--ink-3); }
.a-in:focus { background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.pw-rules.compact { margin: 4px 4px 0; font-size: 12.5px; }
.remember { display: flex; align-items: center; gap: 9px; justify-content: flex-start; color: var(--ink-2); font-size: 14.5px; cursor: pointer; padding: 6px 4px; user-select: none; }
.remember input { position: absolute; opacity: 0; pointer-events: none; }
.remember .cb { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background .2s, border-color .2s, transform .3s var(--spring); }
.remember input:checked + .cb { background: var(--blue); border-color: var(--blue); color: #fff; }
.remember input:focus-visible + .cb { outline: 3px solid color-mix(in srgb, var(--blue) 40%, transparent); outline-offset: 2px; }
.auth2-card .error { margin: 12px 0 0; min-height: 0; }
.auth2-card .btn { margin-top: 18px; }
.auth2-switch { margin: 18px 0 0; color: var(--ink-2); font-size: 14.5px; }
.auth2-switch a { font-weight: 600; }
.auth2-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; color: var(--ink-3); font-size: 12.5px; }

/* ---------- Landing (always dark, Framer-like) ---------- */
html.is-landing, html.is-landing body { background: #0E0E10; }
.landing {
  --bg: #0E0E10; --surface: #16161A; --bg-2: #1C1C21; --bg-3: #26262C; --ink: #F3F3F5; --ink-2: #9B9BA4; --ink-3: #62626B;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14); --blue: #0E98BE; --blue-hover: #24B3DB; --blue-soft: rgba(14, 152, 190, .14);
  --gutter: max(24px, calc((100vw - 1240px) / 2));
  background: var(--bg); color: var(--ink); overflow-x: clip; min-height: 100vh;
}
.landing .brand-word { color: var(--ink); }
.landing .logo-svg .ld { fill: var(--ink); }
.l-nav { position: fixed; inset: 0 0 auto; z-index: 40; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.l-nav.scrolled { background: rgba(14, 14, 16, .78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-color: var(--line); }
.l-links { display: flex; gap: 30px; position: absolute; left: 50%; transform: translateX(-50%); }
.l-links a, .l-login { color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .2s; }
.l-links a:hover, .l-login:hover { color: var(--ink); }
.l-nav-actions { display: flex; align-items: center; gap: 22px; }
.l-hero { padding: 150px var(--gutter) 0; }
.l-title { margin: 0; font-size: clamp(44px, 6.6vw, 92px); font-weight: 700; letter-spacing: -.05em; line-height: 1.02; }
.l-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.l-title .ln > span { display: inline-block; }
.l-title .ln:nth-child(2) > span { color: #C9C9CF; }
.l-title .ln:nth-child(3) > span { color: #8D8D96; }
.l-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 34px; }
.l-aside { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15.5px; transition: color .2s; }
.l-aside b { color: var(--ink); font-weight: 600; }
.l-aside:hover { color: var(--ink); }
.l-stage { margin-top: 64px; perspective: 1600px; }

/* the demo: a light-mode Check It inside the dark page */
.demo {
  --d-ink: #1D1D1F; --d-ink2: #6E6E73; --d-ink3: #A1A1A6; --d-line: rgba(0, 0, 0, .08); --d-blue: #0E98BE;
  position: relative; height: 640px; border-radius: 20px; overflow: hidden; background: #FFFFFF; color: var(--d-ink); font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 80px 160px -40px rgba(14, 152, 190, .3), 0 40px 100px rgba(0, 0, 0, .6); transform-origin: 50% 0;
}
.demo .ic { color: currentColor; }
.dm-bar { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: #F1F1F3; border-bottom: 1px solid var(--d-line); }
.dm-dots { display: flex; gap: 7px; } .dm-dots i { width: 11px; height: 11px; border-radius: 50%; background: #D8D8DC; }
.dm-url { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--d-ink2); padding: 5px 14px; border-radius: 8px; font-size: 12px; border: 1px solid var(--d-line); }
.dm-av { width: 24px; height: 24px; border-radius: 50%; background: var(--d-ink); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.dm-av.sm { width: 22px; height: 22px; }
.dm-body { display: grid; grid-template-columns: 214px 1fr; height: calc(100% - 40px); }
.dm-side { background: #F7F7F5; border-right: 1px solid var(--d-line); padding: 14px 10px 10px; display: flex; flex-direction: column; gap: 1px; }
.dm-brand { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; padding: 0 6px 10px; }
.dm-brand b { font-weight: 800; }
.dm-mark { width: 20px; height: 20px; } .dm-mark .ld { fill: var(--d-ink) !important; } .dm-mark .ld-end { fill: var(--d-blue) !important; }
.dm-search { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--d-line); border-radius: 9px; padding: 7px 9px; color: var(--d-ink2); margin-bottom: 8px; }
.dm-search kbd { margin-left: auto; font-size: 10px; background: #F5F5F7; border-color: var(--d-line); color: var(--d-ink2); }
.dm-nav { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; color: var(--d-ink2); font-weight: 500; transition: background .25s, color .25s; }
.dm-nav.on { background: #EBEBE8; color: var(--d-ink); }
.dm-nav.on .ic { color: var(--d-blue); }
.dm-sec { font-size: 11.5px; font-weight: 600; color: var(--d-ink3); padding: 14px 9px 4px; }
.dm-hash { width: 13px; text-align: center; color: var(--d-ink3); font-weight: 600; }
.dm-user { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px; background: #fff; border: 1px solid var(--d-line); border-radius: 11px; font-weight: 600; }
.dm-main { position: relative; overflow: hidden; }
.dm-view { position: absolute; inset: 0; padding: 26px 30px; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .5s var(--ease); pointer-events: none; }
.dm-view.on { opacity: 1; transform: none; }
.dm-date { margin: 0; font-size: 11px; letter-spacing: .14em; color: var(--d-ink2); font-weight: 600; }
.dm-title { margin: 4px 0 16px; font-size: 30px; font-weight: 700; letter-spacing: -.04em; }
.dm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dm-tile { border-radius: 15px; padding: 11px 13px; border: 1px solid; }
.dm-tile span { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; }
.dm-tile b { display: block; font: 500 30px/1 var(--mono); margin: 10px 0 4px; letter-spacing: -.03em; }
.dm-tile small { font-size: 11px; opacity: .85; }
.dm-tile.c1 { background: #F9C6B3; border-color: #F1AC93; color: #5B2A1C; }
.dm-tile.c2 { background: #F7E39E; border-color: #EBD06E; color: #4F420E; }
.dm-tile.c3 { background: #F6CFE1; border-color: #EBB1CC; color: #571E3B; }
.dm-tile.c4 { background: #C2D8F7; border-color: #A0C1F0; color: #13305B; }
.dm-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 12px; }
.dm-panel { border-radius: 17px; padding: 12px 12px 6px; border: 1px solid; }
.dm-panel.p1 { background: #F3F7FE; border-color: #E0EBFB; }
.dm-panel.p2 { background: #FDF3EF; border-color: #F7DFD5; }
.dm-ph { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; margin: 0 2px 8px; }
.dm-ph.mt { margin-top: 12px; }
.dm-list { list-style: none; margin: 0; padding: 0; }
.dm-list li, .dm-row { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--d-line); border-radius: 11px; padding: 7px 10px; margin-bottom: 6px; }
.dm-list li.added { animation: dmIn .5s var(--spring) both; }
@keyframes dmIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.dm-ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #CFCFD4; display: grid; place-items: center; flex: none; transition: background .25s, border-color .25s, transform .35s var(--spring); }
.dm-ck svg { width: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s var(--ease) .05s; }
.dm-list li.done .dm-ck { background: var(--d-blue); border-color: var(--d-blue); transform: scale(1.06); }
.dm-list li.done .dm-ck svg { stroke-dashoffset: 0; }
.dm-list li.done .dm-tx b { color: var(--d-ink3); text-decoration: line-through; }
.dm-ic { width: 26px; height: 26px; border-radius: 8px; background: #F5F5F7; display: grid; place-items: center; flex: none; }
.dm-tx b, .dm-row b { display: block; font-weight: 500; font-size: 12.5px; transition: color .3s; }
.dm-tx small, .dm-row small { display: block; color: var(--d-ink2); font-size: 10.5px; }
.dm-link { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 980px; background: #E3F4F9; color: var(--d-blue); font-size: 10.5px; font-weight: 600; }
.dm-row em { margin-left: auto; font-style: normal; font-size: 10px; border: 1px solid rgba(0, 0, 0, .12); padding: 2px 7px; border-radius: 980px; color: var(--d-ink2); }
.dm-composer { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(70%, 520px); display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid rgba(0, 0, 0, .12); border-radius: 15px; padding: 9px 9px 9px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.dm-chip { font-size: 10.5px; background: #F5F5F7; color: var(--d-ink2); padding: 3px 8px; border-radius: 7px; flex: none; }
.dm-type { font-size: 13px; white-space: nowrap; overflow: hidden; }
.dm-caret { width: 1.5px; height: 16px; background: var(--d-blue); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.dm-send { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--d-blue); color: #fff; display: grid; place-items: center; flex: none; }
.dm-chtitle { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -.035em; }
.dm-chtitle span { color: var(--d-ink3); font-weight: 500; }
.dm-msgs { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; }
.dm-sep { display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 600; color: var(--d-ink3); margin: 10px 0 6px; }
.dm-sep::before, .dm-sep::after { content: ""; flex: 1; height: 1px; background: var(--d-line); }
.dm-msg { display: flex; gap: 12px; padding: 6px 8px; border-radius: 9px; font-size: 13px; }
.dm-msg em { font: 500 11px/18px var(--mono); color: var(--d-ink3); font-style: normal; }
.dm-msg.new { animation: dmIn .5s var(--spring) both, flash 1.4s ease .1s; }
@keyframes flash { 0% { background: #E3F4F9; } 100% { background: transparent; } }
.dm-calgrid { display: grid; grid-template-columns: repeat(7, 46px); gap: 12px; margin-top: 20px; }
.dm-calgrid span { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.dm-calgrid svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dm-calgrid circle { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.dm-calgrid .t { stroke: #EEEEF0; }
.dm-calgrid .v { stroke: var(--d-blue); stroke-dasharray: 88; stroke-dashoffset: 88; transition: stroke-dashoffset .9s var(--ease); }
.dm-calgrid span.fill .v { stroke-dashoffset: calc(88 - 88 * var(--v)); }
.dm-calgrid em { font-style: normal; font-size: 12px; font-weight: 600; }
.dm-cursor { position: absolute; top: 0; left: 0; width: 22px; height: 22px; z-index: 20; pointer-events: none; transform: translate(620px, 330px); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.dm-cursor svg { width: 22px; height: 22px; fill: #111113; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; transition: transform .15s; transform-origin: 20% 10%; }
.dm-cursor.clicking svg { animation: press .26s ease; }
@keyframes press { 50% { transform: scale(.82); } }
.dm-click { position: absolute; left: -12px; top: -12px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--d-blue); opacity: 0; }
.dm-cursor.clicking .dm-click { animation: ripple .55s ease-out; }
@keyframes ripple { from { opacity: .7; transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }

.l-features { padding: 150px var(--gutter) 40px; }
.l-h2 { margin: 0 0 44px; font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.dim { color: var(--ink-3); }
.f-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.f-card { overflow: hidden; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--spring); }
.f-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.f-card::after { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(14, 152, 190, .14), transparent 65%); }
.f-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.f-card h3 { margin: 18px 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.f-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.l-statement { padding: 140px var(--gutter); }
.eyebrow-l { margin: 0 0 18px; color: var(--blue); font-weight: 600; font-size: 15px; }
.st-text { margin: 0; max-width: 1080px; font-size: clamp(30px, 4.4vw, 58px); font-weight: 600; letter-spacing: -.04em; line-height: 1.12; }
.landing.static .st-text span { opacity: 1; }
.l-final { padding: 40px var(--gutter) 150px; display: flex; flex-direction: column; align-items: flex-start; }
.l-final .l-h2 { margin-bottom: 26px; }
.l-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px var(--gutter); border-top: 1px solid var(--line); }
.l-foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 500; }

/* ---------- Responsive (v3) ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-body { grid-template-columns: 180px 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .m-bar { display: flex; position: sticky; top: 0; z-index: 30; height: 54px; align-items: center; justify-content: space-between; padding: 0 8px; background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .4s var(--ease); box-shadow: var(--shadow-3); }
  body.drawer-open .sidebar { transform: none; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; padding: 6px 8px calc(6px + var(--safe-b)); background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--ink-3); padding: 4px 0; min-height: 48px; }
  .tabbar a.active { color: var(--blue); }
  .page { padding: 22px 16px calc(110px + var(--safe-b)); }
  .channel-page { height: calc(100dvh - 54px - 66px - var(--safe-b)); }
  .ch-head { padding: 14px 16px 12px; }
  .ch-stream { padding: 12px 8px; }
  .ch-composer { margin: 0 10px 10px; }
  .composer.floating { bottom: calc(76px + var(--safe-b)); width: calc(100% - 24px); }
  .illus-hero { width: 140px; }
  .home-title { font-size: 34px; }
  .tile-card b { font-size: 36px; margin-top: 12px; }
  .l-links { display: none; }
  .l-hero { padding-top: 120px; }
  .demo { height: 560px; }
  .dm-body { grid-template-columns: 1fr; }
  .dm-side { display: none; }
  .dm-tiles { grid-template-columns: repeat(2, 1fr); }
  .dm-grid { grid-template-columns: 1fr; }
  .dm-panel.p2 { display: none; }
  .dm-calgrid { grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .dm-calgrid span { width: 100%; height: auto; aspect-ratio: 1; }
  .dm-composer { width: calc(100% - 28px); }
  .f-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home-hero { align-items: flex-start; }
  .illus-hero { display: none; }
  .tile-card { padding: 13px 14px; border-radius: 18px; }
  .tc-top span { font-size: 11px; }
  .l-nav-actions { gap: 14px; }
  .pw-rules { grid-template-columns: 1fr; }
  .quick-add .qa-more { display: none; }
  .link-btn span { display: none; }
  .link-btn { padding: 0 9px; }
  .reorder { display: none; }
  .note-toolbar .save-state { display: none; }
}

/* Landing intro — pure CSS so it starts instantly, even before GSAP loads */
@keyframes lUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes lFade { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lPop { from { opacity: 0; transform: translateY(22px) scale(.93); } to { opacity: 1; transform: none; } }
@keyframes lSlide { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.landing .l-nav { animation: lFade .8s var(--ease) both; }
.landing .l-title .ln > span { animation: lUp 1.1s var(--ease) both; }
.landing .l-title .ln:nth-child(2) > span { animation-delay: .09s; }
.landing .l-title .ln:nth-child(3) > span { animation-delay: .18s; }
.landing .l-hero-row > * { animation: lFade .9s var(--ease) both .45s; }
.landing .l-hero-row > *:nth-child(2) { animation-delay: .55s; }
.landing .demo { animation: lFade 1.3s var(--ease) both .55s; }
.landing .dm-side > * { animation: lSlide .55s var(--ease) both; animation-delay: calc(.95s + var(--k, 0) * 35ms); }
.landing .dm-home .dm-date, .landing .dm-home .dm-title { animation: lFade .7s var(--ease) both 1s; }
.landing .dm-tile { animation: lPop .8s var(--spring) both; }
.landing .dm-tile.c1 { animation-delay: 1.1s; } .landing .dm-tile.c2 { animation-delay: 1.17s; } .landing .dm-tile.c3 { animation-delay: 1.24s; } .landing .dm-tile.c4 { animation-delay: 1.31s; }
.landing .dm-panel { animation: lFade .9s var(--ease) both 1.3s; } .landing .dm-panel.p2 { animation-delay: 1.4s; }
.landing .dm-list li { animation: lFade .5s var(--ease) both; animation-delay: calc(1.45s + var(--k, 0) * 45ms); }
.landing .dm-list li.added { animation: dmIn .5s var(--spring) both; }
.landing .dm-home .dm-composer { animation: lComp .8s var(--ease) both 1.6s; }
@keyframes lComp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
#toast-root { top: calc(16px + env(safe-area-inset-top, 0px)); bottom: auto; }
.toast { transform: translateY(-12px) scale(.98); }
.toast.in { transform: none; }
@media (max-width: 900px) { #toast-root { top: calc(62px + env(safe-area-inset-top, 0px)); bottom: auto; } }
@media (max-width: 560px) {
  .dm-tile.c3, .dm-tile.c4 { display: none; }
  .dm-title { font-size: 24px; }
  .demo { height: 520px; }
}

/* =====================================================================
   v4 — Humane + Neue Montreal, blue/charcoal theme, polish
   ===================================================================== */
:root { --panel-line: rgba(0, 0, 0, .10); --page-grad: linear-gradient(180deg, #FFFFFF 0%, #F3F5FA 100%); }
:root[data-theme="dark"] {
  --bg: #15171D; --side: #111318; --surface: #1C1F27; --bg-2: #242833; --bg-3: #2F3441; --hover: #20242D;
  --glass: rgba(21, 23, 29, .82); --chrome: #242833;
  --ink: #ECEEF3; --ink-2: #9EA3B0; --ink-3: #697080;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .14);
  --solid: #2B3140; --on-solid: #F2F4F8;
  --blue: #0E98BE; --blue-hover: #24B3DB; --blue-soft: rgba(14, 152, 190, .16); --blue-mid: #0B5F79;
  --panel-line: rgba(255, 255, 255, .17);
  --page-grad: radial-gradient(1100px 620px at 88% -8%, rgba(14, 152, 190, .10), transparent 62%), linear-gradient(180deg, #171A21 0%, #101217 100%);
}
body { background: var(--page-grad); background-attachment: fixed; }
.sidebar { background: color-mix(in srgb, var(--side) 88%, transparent); backdrop-filter: blur(10px); }

/* ---------- Type ---------- */
.home-title, .large-title, .l-title, .l-h2, .num, .kpi b, .tr-label b, .r-num b, .dm-title, .dm-tile b, .fl-tile b, .cc-head b, .intro-title, .scene h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: .004em; font-feature-settings: "tnum" 0;
}
.home-title { display: flex; flex-direction: column; font-size: clamp(68px, 8.4vw, 124px); line-height: .84; margin: 0; }
.home-title .hn { color: var(--blue); text-shadow: none; }
.large-title { font-size: clamp(60px, 7vw, 100px); line-height: .88; letter-spacing: .005em; }
.eyebrow.date, .eyebrow.caps { text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 500; color: var(--ink-2); margin-bottom: 14px; }
.eyebrow { font-weight: 500; }
.lead { font-size: 18px; }
.kpi b { font-size: 64px; line-height: .9; font-weight: 600; }
.kpi b small { font-family: var(--font); font-size: 15px; letter-spacing: 0; }
.tr-label b { font-size: 46px; line-height: .9; }
.tr-label b small { font-family: var(--font); font-size: 15px; }
.mono { font-family: var(--font); }
.count, .sb-count, .msg-time, .sb-badge { font-family: var(--font); font-variant-numeric: tabular-nums; }

/* ---------- Tiles: no border, new colours ---------- */
.tile-card { border: 0 !important; --tbg: #FFD9B6; --tink: #6A3207; }
.tile-card.t-orange { --tbg: #FFD9B6; --tink: #6A3207; }
.tile-card.t-green { --tbg: #CDEFD8; --tink: #0E4F2D; }
.tile-card.t-red { --tbg: #E9A29C; --tink: #4C0E0E; }
.tile-card.t-blue { --tbg: #C4D9F8; --tink: #13305B; }
:root[data-theme="dark"] .tile-card.t-orange { --tbg: #3A2918; --tink: #FFC48D; }
:root[data-theme="dark"] .tile-card.t-green { --tbg: #183225; --tink: #8EE0AE; }
:root[data-theme="dark"] .tile-card.t-red { --tbg: #43191B; --tink: #FFAAA4; }
:root[data-theme="dark"] .tile-card.t-blue { --tbg: #1A2843; --tink: #A9C6F5; }
.tile-card:hover { box-shadow: 0 16px 34px color-mix(in srgb, var(--tbg) 55%, transparent); }
.tile-card b.num { display: flex; align-items: baseline; font-size: 96px; line-height: .8; margin: 18px 0 8px; font-weight: 600; }
.tile-card b.num i { font-style: normal; font-size: .55em; margin-left: 2px; opacity: .8; }
.tc-top span { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
.tile-card small { font-size: 14px; }

/* ---------- Panels: border only ---------- */
.panel, .panel.p-blue, .panel.p-coral, .panel.p-yellow, .panel.p-plain { background: transparent; border: 1px solid var(--panel-line); }
.count { background: transparent; }
.panel-list .task, .prow { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] .panel-list .task, :root[data-theme="dark"] .prow { background: color-mix(in srgb, var(--surface) 80%, transparent); }

/* ---------- Task "when" labels + done state ---------- */
.whens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.when { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 980px; background: var(--bg-2); color: var(--ink-2); line-height: 1.3; }
.when.w-today { background: var(--blue-soft); color: var(--blue); }
.when.w-due { background: var(--amber-soft); color: var(--amber); }
.when.w-week { background: var(--bg-2); color: var(--ink-2); }
.when.w-times { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.when.w-progress { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.when.w-done { background: var(--blue); color: #fff; }
.list.compact .whens { margin-top: 4px; }
.task { transition: background .45s var(--ease), box-shadow .45s var(--ease), max-height .4s var(--ease), opacity .35s, padding .4s var(--ease), margin .4s var(--ease); }
.task.is-done, .panel-list .task.is-done { background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.task.is-done .task-title { color: var(--ink); text-decoration: none; }
.task.is-done .tile { opacity: 1; background: color-mix(in srgb, var(--blue) 16%, var(--surface)); color: var(--blue); }
.list.history .task.is-done .task-title { color: var(--ink); text-decoration: none; }
.task.completing { background: color-mix(in srgb, var(--blue) 18%, var(--surface)) !important; box-shadow: inset 3px 0 0 var(--blue); }
.task.completing .check { background: var(--blue); border-color: var(--blue); animation: pop .5s var(--spring); }
.task.completing .check .tick { stroke-dashoffset: 0; }
.task.completing .tile { background: var(--blue); color: #fff; transition: background .4s, color .4s; }
.task.completing .task-title { color: var(--ink); }
.task.fold { max-height: 0 !important; opacity: 0; padding-top: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; border-width: 0 !important; overflow: hidden; }
.task.completing { max-height: var(--h); }
.sub-txt { display: inline-block; transition: opacity .16s, transform .16s; }
.sub-txt.swap-out { opacity: 0; transform: translateY(-6px); }
.sub-txt.swap-in { animation: subIn .35s var(--ease) both; }
.sub-txt.done-at, .list.history .task.is-done .task-sub { color: var(--blue); font-weight: 500; }
@keyframes subIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Celebration window ---------- */
.celebrate {
  position: fixed; left: 50%; bottom: 128px; z-index: 450; width: min(440px, calc(100vw - 28px));
  display: flex; align-items: center; gap: 16px; padding: 16px 44px 16px 16px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-3);
  opacity: 0; transform: translate(-50%, 24px) scale(.96); transition: opacity .3s var(--ease), transform .5s var(--spring);
}
.celebrate.in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.celebrate.out { opacity: 0; transform: translate(-50%, 12px) scale(.98); transition-duration: .3s; }
.cb-badge { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.cb-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.cb-ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.cb-ring .t { stroke: var(--blue-soft); }
.cb-ring .v { stroke: var(--blue); stroke-dasharray: var(--c); stroke-dashoffset: var(--c); }
.celebrate.in .cb-ring .v { animation: cbRing 1s var(--ease) forwards .15s; }
@keyframes cbRing { to { stroke-dashoffset: var(--o); } }
.cb-mark { width: 32px; height: 32px; }
.cb-mark .ld { fill: var(--ink); }
.cb-burst { position: absolute; left: 48px; top: 50%; width: 0; height: 0; pointer-events: none; }
.cb-burst i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--blue); opacity: 0; }
.cb-burst i:nth-child(3n) { background: #34C759; } .cb-burst i:nth-child(4n) { background: #FF9F0A; }
.celebrate.in .cb-burst i { animation: burst .9s var(--ease) forwards .2s; }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.4); } }
.cb-text { min-width: 0; }
.cb-eyebrow { display: block; font-size: 13px; font-weight: 500; color: var(--blue); margin-bottom: 2px; }
.cb-text b { display: block; font-size: 16px; font-weight: 500; line-height: 1.3; }
.cb-text p { margin: 3px 0 0; font-size: 14px; color: var(--ink-2); }
.cb-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; }
.celebrate.all { border-color: color-mix(in srgb, var(--blue) 45%, var(--line-2)); }
@media (max-width: 900px) { .celebrate { bottom: calc(150px + var(--safe-b)); } }

/* ---------- Composer: sliding pill ---------- */
.cp-chips { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: 13px; background: var(--bg-2); margin-bottom: 4px; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cp-chips::-webkit-scrollbar { display: none; }
.cp-pill { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 10px; background: var(--solid); box-shadow: var(--shadow-1); transition: transform .26s var(--ease), width .26s var(--ease), opacity .2s; z-index: 0; opacity: 0; }
.cp-chips .chip { position: relative; z-index: 1; background: transparent !important; color: var(--ink-2); padding: 6px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color .22s var(--ease); }
.cp-chips .chip:hover { color: var(--ink); }
.cp-chips .chip.on { color: var(--on-solid); }
.cp-field { transition: opacity .11s ease, transform .11s ease; }
.cp-field.swap { opacity: .15; transform: translateY(3px); }
.cp-t { display: inline-flex; align-items: center; gap: 6px; transition: opacity .11s, transform .11s; }
.cp-t.swap { opacity: 0; transform: translateY(-3px); }
.composer:focus-within { box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--blue) 40%, var(--line-2)); }

/* ---------- Search shortcut pill ---------- */
.sb-search kbd.sb-kbd { background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 4px 8px; font: 600 11.5px/1 var(--font); letter-spacing: .01em; }
html.scroll-locked, html.scroll-locked body { overflow: hidden; }
html.scroll-locked body { padding-right: var(--sbw, 0); }
.pal-results { overscroll-behavior: contain; }

/* ---------- Sidebar: user card, leave, collapse ---------- */
.sb-top-actions { display: flex; align-items: center; gap: 2px; }
.sb-leave { margin-top: auto; color: var(--ink-2) !important; font-size: 14.5px !important; }
.sb-leave:hover { color: var(--ink) !important; }
.sb-user { margin-top: 6px !important; width: 100%; text-align: left; cursor: pointer; transition: background .2s, border-color .2s, transform .3s var(--spring), box-shadow .2s; }
.sb-user:hover { background: var(--bg-2); border-color: color-mix(in srgb, var(--blue) 40%, var(--line-2)); box-shadow: var(--shadow-1); }
.sb-user:active { transform: scale(.98); }
.sb-user[aria-expanded="true"] { border-color: var(--blue); }
.sb-user-txt small { color: var(--ink-3); }
.sb-user-gear { color: var(--ink-3); display: grid; transition: transform .5s var(--spring), color .2s; }
.sb-user:hover .sb-user-gear { color: var(--blue); transform: rotate(60deg); }
.sb-initial { display: none; font-style: normal; }
.shell { transition: grid-template-columns .35s var(--ease); }

/* ---------- Calendar: slide + slot-machine title ---------- */
.cal-viewport { overflow: hidden; margin: 0 -4px; padding: 0 4px; }
.cal-grid.slide-next { animation: calNext .45s var(--ease) both; }
.cal-grid.slide-prev { animation: calPrev .45s var(--ease) both; }
@keyframes calNext { from { opacity: 0; transform: translateX(48px); } }
@keyframes calPrev { from { opacity: 0; transform: translateX(-48px); } }
.roller { display: inline-grid; overflow: hidden; vertical-align: bottom; padding-bottom: .04em; }
.roller > span { grid-area: 1 / 1; white-space: nowrap; }
.roller.roll-up .roll-old { animation: rollOutUp .5s var(--ease) both; }
.roller.roll-up .roll-new { animation: rollInUp .5s var(--ease) both; }
.roller.roll-down .roll-old { animation: rollOutDown .5s var(--ease) both; }
.roller.roll-down .roll-new { animation: rollInDown .5s var(--ease) both; }
@keyframes rollOutUp { to { transform: translateY(-105%); opacity: 0; } }
@keyframes rollInUp { from { transform: translateY(105%); opacity: 0; } }
@keyframes rollOutDown { to { transform: translateY(105%); opacity: 0; } }
@keyframes rollInDown { from { transform: translateY(-105%); opacity: 0; } }
.month-btn { align-items: flex-end; }
.month-chev { margin-bottom: .18em; }

/* ---------- Icon masks (Iconify) ---------- */
.ic-mask { display: inline-block; flex: none; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.seg button { white-space: nowrap; }

/* ---------- Onboarding intro in charcoal-blue ---------- */
.intro {
  --bg: #12141A; --bg-2: #1E222C; --bg-3: #2A2F3B; --surface: #1A1D25; --ink: #EEF0F5; --ink-2: #9EA3B0; --ink-3: #646B7A; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --solid: #2B3140; --on-solid: #F2F4F8; --blue: #0E98BE; --blue-soft: rgba(79,134,255,.16);
  background: radial-gradient(900px 600px at 50% 110%, rgba(79,134,255,.22), transparent 60%), linear-gradient(180deg, #161920, #0E1015);
  color: var(--ink);
}
.intro .logo-svg .ld { fill: var(--ink); }
.intro-title { font-size: clamp(90px, 14vw, 200px); line-height: .85; letter-spacing: .005em; }
.scene h2 { font-size: clamp(64px, 8vw, 120px); line-height: .88; }
.intro .mock-list, .intro .mock-cal, .intro .mock-stats, .intro .insight-pop, .intro .mb-note { background: var(--surface); }
.intro .mock-browser { background: var(--bg-2); }
.intro .mb-bar { background: var(--bg-3); }
.intro .mb-bar span { background: var(--surface); }
.intro .freq-num { font-family: var(--display); font-size: 170px; }
.intro-skip { color: var(--ink-2); }

/* ---------- Landing v4 (charcoal + blue) ---------- */
html.is-landing, html.is-landing body { background: #0F1116; }
.landing { --bg: #0F1116; --surface: #171A21; --bg-2: #1D2029; --bg-3: #272B36; --ink: #F1F3F7; --ink-2: #9CA1AE; --ink-3: #626876; --blue: #0E98BE; --blue-hover: #24B3DB;
  background: radial-gradient(1200px 700px at 50% -10%, rgba(14, 152, 190, .13), transparent 60%), #0F1116; }
.l-hero { position: relative; padding-top: 140px; }
.l-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.l-title { font-size: clamp(86px, 11.5vw, 178px); line-height: .84; letter-spacing: .006em; font-weight: 600; }
.l-title .ln { padding-bottom: 0; }
.l-title .ln:nth-child(2) > span { color: #C9CDD6; }
.l-title .ln:nth-child(3) > span { color: var(--blue); }
.l-hero-row { justify-content: flex-start; gap: 26px; margin-top: 30px; }
.l-h2 { font-size: clamp(64px, 8vw, 120px); line-height: .86; letter-spacing: .005em; }

/* check card */
.cc { width: 300px; padding: 20px; border-radius: 26px; background: rgba(23, 26, 33, .78); border: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(14px); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); animation: lFade 1s var(--ease) both .5s; }
.cc-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.cc-head b { font-size: 40px; line-height: .8; color: var(--ink); }
.cc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 16px 0 12px; }
.cc-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.cc-day svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.cc-day circle { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.cc-day .t { stroke: rgba(255, 255, 255, .1); }
.cc-day .v { stroke: var(--blue); stroke-dasharray: 88; stroke-dashoffset: 88; transition: stroke-dashoffset .45s var(--ease); }
.cc-day.on .v { stroke-dashoffset: 0; }
.cc-day em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--ink-3); transition: color .3s; }
.cc-day.on em { color: var(--ink); }
.cc-mark { position: relative; height: 128px; display: grid; place-items: center; }
.cc-mark .logo-svg { width: 128px; height: 128px; }
.cc-mark .ld { fill: var(--ink); transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .45s var(--spring); transition-delay: calc(var(--i) * 70ms); }
.cc-mark .ld-end { fill: var(--blue); }
.cc.done .cc-mark .ld { transform: scale(1); }
.cc-mark::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(14, 152, 190, .35), transparent 65%); opacity: 0; transform: scale(.6); transition: opacity .6s, transform .8s var(--ease); }
.cc.done .cc-mark::before { opacity: 1; transform: scale(1.2); }
.cc-cap { margin: 4px 0 0; text-align: center; font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .4s .5s, transform .4s .5s; }
.cc.done .cc-cap { opacity: 1; transform: none; }
.cc-cap b { display: block; font-weight: 500; }
.cc-cap span { color: var(--ink-2); }

/* scattered dashboard pieces */
.floaters { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fl { position: absolute; transition: translate .25s linear; }
.fl > * { transform: rotate(var(--r, 0deg)); animation: flBob var(--dur, 7s) ease-in-out infinite, lFade 1s var(--ease) both var(--del, 1s); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
@keyframes flBob { 50% { translate: 0 -10px; } }
.fl-1 { top: 92px; left: 44%; --r: -7deg; --dur: 7s; --del: .9s; }
.fl-2 { top: 760px; left: -18px; --r: 6deg; --dur: 8s; --del: 1.4s; }
.fl-3 { top: 132px; right: 32%; --r: 9deg; --dur: 6s; --del: 1.1s; }
.fl-4 { top: 690px; right: -14px; --r: 8deg; --dur: 7.5s; --del: 1.3s; }
.fl-5 { top: 1180px; right: -24px; --r: -5deg; --dur: 9s; --del: 1.6s; }
.fl-6 { top: 520px; left: 40%; --r: 12deg; --dur: 6.5s; --del: 1.2s; }
.fl-7 { top: 1260px; left: -10px; --r: -8deg; --dur: 8.5s; --del: 1.7s; }
.fl-tile { border-radius: 18px; padding: 12px 14px; width: 150px; color: var(--tink); background: var(--tbg); }
.fl-tile.t-green { --tbg: #CDEFD8; --tink: #0E4F2D; }
.fl-tile.t-red { --tbg: #E9A29C; --tink: #4C0E0E; }
.fl-tile span { font-size: 12px; font-weight: 500; }
.fl-tile b { display: block; font-size: 60px; line-height: .82; margin: 8px 0 4px; }
.fl-tile small { font-size: 11px; opacity: .85; }
.fl-row, .fl-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 15px; background: #FFFFFF; color: #1D1D1F; font-size: 13px; width: 230px; }
.fl-row.done { background: #E1F3F8; }
.fl-row b, .fl-note b { display: block; font-weight: 500; }
.fl-row small, .fl-note small { display: block; color: #6E6E73; font-size: 11px; }
.fl-row.done small { color: #0E98BE; }
.fl-ck { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #CFCFD4; display: grid; place-items: center; flex: none; }
.fl-ck svg { width: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fl-row.done .fl-ck { background: #0E98BE; border-color: #0E98BE; }
.fl-ic { width: 28px; height: 28px; border-radius: 8px; background: #F1F2F5; display: grid; place-items: center; flex: none; }
.fl-row.done .fl-ic { background: #0E98BE; color: #fff; }
.fl-link { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: #E3F4F9; color: #0E98BE; display: grid; place-items: center; }
.fl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 980px; background: #1F232D; border: 1px solid rgba(255, 255, 255, .1); color: var(--ink); font-size: 14px; font-weight: 500; }
.fl-chip span { color: var(--ink-3); font-weight: 700; }
.fl-chip em { font-style: normal; font-size: 11px; background: var(--blue); color: #fff; border-radius: 10px; padding: 1px 7px; }
.fl-ring { position: relative; width: 86px; height: 86px; border-radius: 50%; background: #1A1D25; border: 1px solid rgba(255, 255, 255, .08); display: grid; place-items: center; }
.fl-ring svg { position: absolute; inset: 8px; transform: rotate(-90deg); }
.fl-ring circle { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.fl-ring .t { stroke: rgba(14, 152, 190, .18); }
.fl-ring .v { stroke: var(--blue); stroke-dasharray: 119.4; stroke-dashoffset: 16.7; }
.fl-ring b { font-family: var(--font); font-size: 15px; font-weight: 600; }

/* glow behind the live demo, colour follows the scene */
.l-stage { position: relative; }
.l-glow { position: absolute; left: 50%; top: -90px; width: 120%; height: calc(100% + 180px); transform: translateX(-50%); pointer-events: none; z-index: 0; filter: blur(70px); opacity: .95; }
.l-glow i { position: absolute; border-radius: 50%; transition: background 1.2s var(--ease); }
.l-glow .g1 { left: 14%; top: 0; width: 46%; height: 60%; background: rgba(14, 152, 190, .42); animation: glowA 11s ease-in-out infinite alternate; }
.l-glow .g2 { right: 12%; top: 8%; width: 40%; height: 55%; background: rgba(255, 160, 90, .22); animation: glowB 13s ease-in-out infinite alternate; }
.l-glow .g3 { left: 30%; bottom: 0; width: 44%; height: 40%; background: rgba(14, 152, 190, .25); animation: glowA 15s ease-in-out infinite alternate-reverse; }
.l-stage[data-scene="dm-channel"] .g2 { background: rgba(150, 110, 255, .28); }
.l-stage[data-scene="dm-cal"] .g2 { background: rgba(70, 200, 140, .26); }
@keyframes glowA { to { transform: translate(8%, 10%) scale(1.15); } }
@keyframes glowB { to { transform: translate(-10%, 6%) scale(1.1); } }
.l-stage .demo { position: relative; z-index: 1; }
.dm-title { font-size: 58px; line-height: .84; margin: 6px 0 16px; }
.dm-title span { color: var(--d-blue); }
.dm-date { letter-spacing: 0 !important; font-size: 12.5px !important; font-weight: 500 !important; }
.dm-tile { border: 0 !important; }
.dm-tile span { letter-spacing: 0 !important; font-size: 11px !important; font-weight: 500 !important; }
.dm-tile b { font-size: 52px !important; line-height: .82 !important; font-weight: 600; }
.dm-tile.c1 { background: #FFD9B6 !important; color: #6A3207 !important; }
.dm-tile.c2 { background: #CDEFD8 !important; color: #0E4F2D !important; }
.dm-tile.c3 { background: #E9A29C !important; color: #4C0E0E !important; }
.dm-tile.c4 { background: #C4D9F8 !important; color: #13305B !important; }
.dm-panel { background: transparent !important; border-color: rgba(0, 0, 0, .1) !important; }
.dm-list li.done { background: #E1F3F8; }
.dm-search kbd { background: #0E98BE !important; color: #fff !important; border: 0 !important; }

/* research */
.l-research { padding: 170px var(--gutter) 40px; position: relative; z-index: 2; }
.r-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.r-card { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; }
.r-num { display: flex; align-items: baseline; gap: 10px; }
.r-num b { font-size: 104px; line-height: .8; color: var(--ink); }
.r-num span { color: var(--blue); font-size: 15px; font-weight: 500; }
.r-card p { margin: 18px 0 18px; color: var(--ink-2); font-size: 16.5px; line-height: 1.5; flex: 1; }
.r-cite { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 13px; transition: color .2s; }
.r-cite:hover { color: var(--ink); }
.r-live { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 14px; border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); }
.rl-item { background: var(--bg); padding: 22px 24px; }
.rl-item b { display: block; font-family: var(--display); font-weight: 600; font-size: 64px; line-height: .85; }
.rl-item span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.r-note { margin: 16px 2px 0; color: var(--ink-3); font-size: 13px; }

/* ---------- Auth: charcoal-blue, moving glow, staggered load ---------- */
.auth2 { --bg: #12141A; --surface: #1A1D25; --bg-2: #1E222C; --bg-3: #2A2F3B; --ink: #EEF0F5; --ink-2: #9EA3B0; --ink-3: #646B7A; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14); --blue: #0E98BE; --blue-hover: #24B3DB;
  background: #12141A; color: var(--ink); overflow: hidden; isolation: isolate; }
.auth2 .a-in { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); color: var(--ink); }
.auth2 .a-in:focus { background: rgba(255, 255, 255, .06); }
.auth-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.auth-bg i { position: absolute; border-radius: 50%; filter: blur(80px); }
.auth-bg .a1 { width: 70vw; height: 46vh; left: 15vw; bottom: -24vh; background: rgba(14, 152, 190, .45); animation: aDrift1 12s ease-in-out infinite alternate; }
.auth-bg .a2 { width: 40vw; height: 34vh; left: -6vw; bottom: -14vh; background: rgba(14, 152, 190, .28); animation: aDrift2 15s ease-in-out infinite alternate; }
.auth-bg .a3 { width: 36vw; height: 30vh; right: -6vw; bottom: -12vh; background: rgba(90, 200, 230, .22); animation: aDrift3 10s ease-in-out infinite alternate; }
@keyframes aDrift1 { to { transform: translate(6vw, -5vh) scale(1.12); } }
@keyframes aDrift2 { to { transform: translate(10vw, -8vh) scale(1.2); } }
@keyframes aDrift3 { to { transform: translate(-8vw, -6vh) scale(1.15); } }
.auth-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 100%, #000, transparent 70%); mask: radial-gradient(ellipse 70% 60% at 50% 100%, #000, transparent 70%); animation: gridMove 18s linear infinite; }
@keyframes gridMove { to { background-position: 0 56px, 56px 0; } }
.auth2-card { animation: none; }
.auth2-card > *, .auth2-fields > * { animation: authIn .7s var(--ease) both; }
.auth2-card > .auth2-icon { animation: authPop .8s var(--spring) both .05s; }
.auth2-card > h1 { animation-delay: .14s; }
.auth2-fields > :nth-child(1) { animation-delay: .24s; } .auth2-fields > :nth-child(2) { animation-delay: .31s; } .auth2-fields > :nth-child(3) { animation-delay: .38s; }
.auth2-fields > :nth-child(4) { animation-delay: .45s; } .auth2-fields > :nth-child(5) { animation-delay: .5s; } .auth2-fields > :nth-child(6) { animation-delay: .55s; }
.auth2-card > .error { animation-delay: .5s; } .auth2-card > .btn { animation-delay: .58s; } .auth2-card > .auth2-switch { animation-delay: .66s; } .auth2-card > .auth2-note { animation-delay: .74s; }
@keyframes authIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes authPop { from { opacity: 0; transform: scale(.6) rotate(-10deg); } to { opacity: 1; transform: none; } }
.auth2-icon { filter: none; }
.auth2-icon .lt-bg { fill: var(--blue) !important; }
.auth2-card h1 { font-family: var(--display); font-weight: 600; font-size: 64px; line-height: .9; letter-spacing: .005em; margin-bottom: 28px; }
.auth2 .back-link { color: var(--ink-2); }
.auth2 .back-link:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }

@media (max-width: 1100px) {
  .fl-1, .fl-3, .fl-6, .fl-7 { display: none; }
  .l-hero-grid { grid-template-columns: 1fr; }
  .cc { display: none; }
  .r-grid { grid-template-columns: 1fr; }
  .r-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fl { display: none; }
  .home-title { font-size: 72px; }
  .tile-card b.num { font-size: 72px; }
  .large-title { font-size: 64px; }
}
@media (max-width: 560px) {
  .l-title { font-size: 84px; }
  .l-h2 { font-size: 64px; }
  .r-num b { font-size: 84px; }
  .tile-card b.num { font-size: 64px; }
  .auth2-card h1 { font-size: 52px; }
}
.celebrate { bottom: 176px; }
.view-no-composer .celebrate { bottom: 32px; }

/* =====================================================================
   v5 — notifications, nudges, suggestions, journal, settings, spacing
   ===================================================================== */

/* ---------- Spacing: rows breathe ---------- */
.task { padding: 14px 16px 14px 22px; gap: 16px; }
.task + .task::before { left: 72px; }
.panel { padding: 18px 18px 12px; }
.panel-list .task, .prow { padding: 12px 14px 12px 16px; }
.list.compact .task { padding: 12px 4px; }
.list.compact.panel-list .task { padding: 12px 14px 12px 16px; }
.panel-head { padding: 2px 4px 14px; }
.section-head { margin: 40px 0 14px; }
.page { padding-top: 40px; }
.check { margin-left: 2px; }

/* ---------- Notification cards ---------- */
#toast-root { top: auto; bottom: 24px; left: auto; right: 24px; transform: none; width: min(380px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.toast {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-3);
  opacity: 0; transform: translateX(24px) scale(.98); transition: opacity .3s var(--ease), transform .45s var(--spring);
}
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateX(16px) scale(.98); }
.toast-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.toast.tone-bad .toast-ic { background: var(--red-soft); color: var(--red); }
.toast.tone-info .toast-ic { background: var(--bg-2); color: var(--ink-2); }
.toast-txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.toast-txt b { display: block; font-weight: 500; font-size: 14.5px; margin-bottom: 1px; }
.toast-txt span { color: var(--ink-2); }
.toast-txt b + span { font-size: 13.5px; }
.toast-txt:not(:has(b)) span { color: var(--ink); }
.toast-btn { color: var(--blue); font-weight: 500; font-size: 14px; padding: 6px 8px; border-radius: 8px; }
.toast-btn:hover { background: var(--blue-soft); }
.toast-x { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.toast-x:hover { background: var(--bg-2); color: var(--ink); }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--blue); transform-origin: left; animation: toastBar var(--t) linear forwards; opacity: .7; }
.toast.hold .toast-bar { animation-play-state: paused; }
.toast.tone-bad .toast-bar { background: var(--red); }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 900px) { #toast-root { right: 12px; left: 12px; width: auto; bottom: calc(84px + var(--safe-b)); } .toast { transform: translateY(16px); } }

/* ---------- Nudges ---------- */
.nudges { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.nudge {
  --nc: var(--ink-2); display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--nc);
  animation: itemIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
  transition: opacity .25s, transform .3s var(--ease), max-height .3s var(--ease), padding .3s, margin .3s;
}
.nudge.tone-warn { --nc: var(--amber); } .nudge.tone-bad { --nc: var(--red); } .nudge.tone-good, .nudge.tone-journal { --nc: var(--blue); } .nudge.tone-info { --nc: var(--ink-3); }
.nudge-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--nc); background: color-mix(in srgb, var(--nc) 14%, transparent); }
.nudge-txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.nudge-txt b { display: block; font-weight: 500; font-size: 14.5px; }
.nudge-txt span { color: var(--ink-2); }
.nudge-act { font-size: 13px; font-weight: 500; color: var(--blue); padding: 6px 10px; border-radius: 9px; white-space: nowrap; }
.nudge-act:hover { background: var(--blue-soft); }
.nudge-x { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-3); flex: none; transition: background .2s, color .2s; }
.nudge-x:hover { background: var(--bg-2); color: var(--ink); }
.nudge.leaving { opacity: 0; transform: translateX(20px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; overflow: hidden; }
.nudge { max-height: 200px; }
.nudges-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.nudges-foot .btn.text { color: var(--ink-3); font-size: 13px; min-height: 32px; }
.nudges-foot .btn.text:hover { color: var(--ink); }
.nudges.compact .nudge { padding: 10px 8px 10px 12px; }
.nudges.compact .nudge-ic { width: 28px; height: 28px; }
.panel .nudges { margin-top: 14px; }
.week-empty { margin: 14px 4px 6px; }

/* ---------- Suggestions sheet ---------- */
.sheet.wide { max-width: 620px; }
.presets .search.full { max-width: none; margin: 12px 0 10px; }
.pr-cats { margin-bottom: 6px; }
.pr-group { margin-top: 16px; }
.pr-ghead { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pr-ghead .btn.text { min-height: 30px; font-size: 13px; }
.presets .list.selectable { margin-top: 0; }
.presets .task.picked { background: color-mix(in srgb, var(--blue) 8%, var(--surface)); }
.pr-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px calc(12px + var(--safe-b)); background: var(--glass); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.pr-foot span { font-size: 14px; color: var(--ink-2); }
.pr-foot .btn:disabled { opacity: .4; }

/* ---------- Journal ---------- */
.j-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.j-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.j-editor { padding: 22px; }
.j-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 10px; }
.mood-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 14px; background: var(--bg-2); border: 1px solid transparent; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: background .2s, border-color .2s, transform .3s var(--spring), color .2s; }
.mood i { width: 18px; height: 18px; border-radius: 50%; background: var(--mc); opacity: .55; transition: opacity .2s, transform .3s var(--spring), box-shadow .3s; }
.mood:hover { color: var(--ink); }
.mood:hover i { opacity: .9; }
.mood.on { background: color-mix(in srgb, var(--mc) 14%, var(--surface)); border-color: color-mix(in srgb, var(--mc) 50%, transparent); color: var(--ink); transform: translateY(-2px); }
.mood.on i { opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mc) 22%, transparent); }
.j-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 12px; }
.j-prompts .chip { font-size: 13px; padding: 6px 11px; }
.j-text { width: 100%; min-height: 220px; border: 0; outline: none; resize: none; background: transparent; font-size: 17px; line-height: 1.7; padding: 6px 2px; color: var(--ink); }
.j-text::placeholder { color: var(--ink-3); }
.j-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.j-meter { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); flex: 1; min-width: 0; }
.j-bar { flex: 0 1 180px; height: 6px; border-radius: 6px; background: var(--bg-3); overflow: hidden; }
.j-bar i { display: block; height: 100%; background: var(--amber); border-radius: inherit; transition: width .3s var(--ease), background .3s; }
.j-meter.ok .j-bar i { background: var(--blue); }
.j-meter.ok span { color: var(--blue); font-weight: 500; }
.j-past { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.j-entry { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform .35s var(--spring), border-color .2s, box-shadow .2s; }
.j-entry:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
#view.enter .j-entry { animation: itemIn .5s var(--ease) both; animation-delay: calc(80ms + var(--i, 0) * 40ms); }
.je-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.je-top b { font-weight: 500; font-size: 15px; }
.j-entry p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.j-entry small { font-size: 12.5px; color: var(--ink-3); }
.j-entry small.short { color: var(--amber); }
.mood-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 9px 3px 7px; border-radius: 980px; background: color-mix(in srgb, var(--mc) 14%, transparent); color: var(--ink); }
.mood-pill i, .mood-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mc); display: inline-block; flex: none; }
.mood-dot { width: 12px; height: 12px; }
.j-weather { padding: 18px; }
.jw-top { display: flex; align-items: center; justify-content: space-between; }
.jw-top span, .jw-loading span { display: inline-flex; align-items: center; gap: 5px; }
.jw-now { display: flex; align-items: center; gap: 14px; margin: 12px 0 10px; }
.jw-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.jw-now .num { font-size: 72px; line-height: .8; }
.jw-now b:not(.num) { display: block; font-weight: 500; }
.jw-now small { color: var(--ink-2); font-size: 13px; }
.jw-advice { margin: 0; padding: 12px 14px; border-radius: 13px; background: var(--bg-2); font-size: 14px; line-height: 1.45; }
.jw-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.jw-empty b { font-weight: 500; }
.jw-empty p { margin: 0 0 6px; }
.notice-ic.small { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 6px; }
.j-stats { padding: 18px; }
.js-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.js-kpis div { background: var(--bg-2); border-radius: 14px; padding: 12px; }
.js-kpis b { display: block; font-size: 48px; line-height: .85; }
.js-kpis span { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.mood-chart { display: flex; gap: 5px; height: 90px; margin-bottom: 10px; }
.mc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mc-track { flex: 1; width: 100%; background: var(--bg-2); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.mc-track i { width: 100%; border-radius: 6px; background: var(--blue); }
#view.enter .mc-track i { animation: grow .8s var(--ease) both .2s; transform-origin: bottom; }
.mc-col span { font-size: 10.5px; color: var(--ink-3); }
.j-words { margin-top: 14px; }
.j-words > div { display: flex; flex-wrap: wrap; gap: 6px; }
.j-words .chip em { font-style: normal; color: var(--ink-3); margin-left: 2px; }
.j-panel .prow { margin-bottom: 4px; }
.jp-weather { margin: 8px 4px 4px; display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; }
.jp-weather:empty { display: none; }
.jp-weather .ic { margin-top: 2px; }
.home-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home-grid { align-items: start; }

/* location + import sheets */
.loc-sheet { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 22px; }
.loc-sheet .notice-ic { align-self: center; }
.loc-sheet .sheet-title { margin-bottom: 0; }
.loc-sheet > p { margin: 0 0 6px; }
.loc-hint { margin-top: -2px !important; }
.loc-or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12.5px; margin: 8px 0 2px; }
.loc-or::before, .loc-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.search.full { max-width: none; margin: 0; }
.loc-res { display: flex; flex-direction: column; gap: 4px; }
.loc-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-align: left; color: var(--ink-2); transition: background .15s; }
.loc-item:hover { background: var(--bg-2); color: var(--ink); }
.loc-item b { display: block; color: var(--ink); font-weight: 500; }
.loc-item small { color: var(--ink-3); font-size: 12.5px; }
.danger-t { color: var(--red) !important; }
.imp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.imp-grid div { background: var(--bg-2); border-radius: 13px; padding: 10px 12px; }
.imp-grid b { display: block; font-size: 40px; line-height: .85; }
.imp-grid span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.imp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.imp-opt { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); transition: border-color .2s, background .2s; }
.imp-opt b { display: block; font-weight: 500; }
.imp-opt span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.imp-opt.on { border-color: var(--blue); background: var(--blue-soft); }

/* settings */
.settings .group-title { margin-top: 30px; }
.g-input { width: min(220px, 50vw); border: 1px solid var(--line); background: var(--bg-2); border-radius: 10px; padding: 9px 12px; font-size: 15px; outline: none; color: var(--ink); text-align: right; transition: border-color .2s, background .2s; }
.g-input:focus { border-color: var(--blue); background: var(--surface); text-align: left; }
details.more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .pk-chev { transform: rotate(90deg); color: var(--ink-3); transition: transform .25s var(--ease); }
details.more[open] summary .pk-chev { transform: rotate(-90deg); }
details.more .howto { margin-top: 10px; }
.g-row .seg.mini { min-width: 0; width: auto; }

/* ---------- Responsive pass ---------- */
@media (max-width: 1100px) {
  .j-layout { grid-template-columns: 1fr; }
  .j-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .page { padding: 24px 18px calc(120px + var(--safe-b)); }
  .home-hero { margin-bottom: 14px; }
  .tiles { gap: 10px; }
  .task { padding: 12px 12px 12px 18px; gap: 12px; }
  .task + .task::before { left: 64px; }
  .panel { padding: 14px 12px 8px; border-radius: 20px; }
  .hero-head { gap: 14px; }
  .seg-nav { align-self: flex-start; }
  .j-side { grid-template-columns: 1fr; }
  .g-row { flex-wrap: wrap; gap: 10px; }
  .g-input { width: 100%; text-align: left; }
  .imp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mood-row { gap: 5px; }
  .mood { padding: 10px 2px; font-size: 11.5px; }
  .j-editor { padding: 16px; }
  .j-foot { flex-direction: column; align-items: stretch; }
  .nudge { flex-wrap: wrap; }
  .nudge-txt { flex: 1 1 calc(100% - 90px); }
  .nudge-act { margin-left: 44px; }
  .imp-opts { grid-template-columns: 1fr; }
  .pr-foot { padding: 10px 14px calc(10px + var(--safe-b)); }
  .home-title { font-size: 64px; }
  .large-title { font-size: 56px; }
  .whens { gap: 4px; }
  .task-actions .icon-btn.subtle { width: 36px; height: 36px; }
  .cal-card { padding: 10px 6px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px 16px; }
  .kpi b { font-size: 52px; }
}
.search.full, .loc-sheet .search { flex: none; }

/* =====================================================================
   v6 — Satoshi for headings, titles and numbers; Neue Montreal for text
   ===================================================================== */
.home-title, .large-title, .l-title, .l-h2, .num, .kpi b, .tr-label b, .r-num b, .dm-title, .dm-tile b, .fl-tile b, .cc-head b,
.intro-title, .scene h2, .auth2-card h1, .js-kpis b, .imp-grid b, .rl-item b, .freq-num, .tile-card b.num, .jw-now .num {
  font-family: var(--display); font-weight: 700; letter-spacing: -.045em;
}
.home-title { font-size: clamp(40px, 5.2vw, 72px); line-height: .98; gap: 2px; }
.large-title { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.04em; }
.tile-card b.num { font-size: 54px; line-height: .95; margin: 16px 0 6px; letter-spacing: -.05em; }
.tile-card b.num i { font-size: .5em; letter-spacing: 0; }
.kpi b { font-size: 40px; line-height: 1; }
.tr-label b { font-size: 30px; line-height: 1; }
.js-kpis b { font-size: 30px; line-height: 1; }
.imp-grid b { font-size: 26px; line-height: 1.05; }
.jw-now .num { font-size: 44px; line-height: 1; }
.l-title { font-size: clamp(52px, 7vw, 104px); line-height: .98; letter-spacing: -.05em; }
.l-h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -.045em; }
.r-num b { font-size: 60px; line-height: .95; }
.rl-item b { font-size: 40px; line-height: 1; }
.cc-head b { font-size: 26px; line-height: 1; }
.dm-title { font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.dm-tile b { font-size: 30px !important; line-height: 1 !important; }
.fl-tile b { font-size: 38px; line-height: .95; }
.intro-title { font-size: clamp(56px, 10vw, 112px); line-height: .95; letter-spacing: -.055em; }
.scene h2 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.04em; }
.intro .freq-num { font-size: 120px; }
.auth2-card h1 { font-size: 32px; line-height: 1.1; letter-spacing: -.035em; margin-bottom: 30px; }
@media (max-width: 900px) {
  .home-title { font-size: 44px; }
  .tile-card b.num { font-size: 44px; }
  .large-title { font-size: 40px; }
}
@media (max-width: 560px) {
  .home-title { font-size: 38px; }
  .large-title { font-size: 34px; }
  .l-title { font-size: 50px; }
  .l-h2 { font-size: 40px; }
  .r-num b { font-size: 52px; }
  .tile-card b.num { font-size: 40px; }
  .kpi b { font-size: 34px; }
  .auth2-card h1 { font-size: 28px; }
}
.fl-1 { left: 53%; top: 104px; }
.fl-6 { left: 46%; top: 470px; }

/* =====================================================================
   v7 — charcoal + #0E98BE, wider pages, calm motion, no layout jumps
   ===================================================================== */
:root {
  --accent: #0E98BE; --accent-hover: #12AAD4; --accent-deep: #083A5B;
  --blue: #0E98BE; --blue-hover: #0C88AA; --blue-soft: rgba(14, 152, 190, .12); --blue-mid: #8ED3E6; --blue-ink: #0A6F8C;
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.16, 1, .3, 1);
  --page-grad: radial-gradient(1200px 600px at 100% -10%, rgba(14, 152, 190, .07), transparent 60%), linear-gradient(180deg, #FFFFFF 0%, #F2F4F6 100%);
  --page-max: 1300px;
}
:root[data-theme="dark"] {
  --bg: #0E1013; --side: #0B0D10; --surface: #16191D; --bg-2: #1D2126; --bg-3: #272C32; --hover: #1A1E22;
  --glass: rgba(14, 16, 19, .82); --chrome: #1D2126;
  --ink: #EDF0F3; --ink-2: #9AA2AC; --ink-3: #646C76;
  --line: rgba(255, 255, 255, .065); --line-2: rgba(255, 255, 255, .12);
  --solid: #262B32; --on-solid: #F1F4F7;
  --blue: #0E98BE; --blue-hover: #18B0DA; --blue-soft: rgba(14, 152, 190, .16); --blue-mid: #0B5F79; --blue-ink: #4CC3E3;
  --panel-line: rgba(255, 255, 255, .11);
  --page-grad:
    radial-gradient(1100px 620px at 92% -12%, rgba(14, 152, 190, .11), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(8, 58, 91, .38), transparent 60%),
    linear-gradient(160deg, #15181C 0%, #0D0F12 45%, #0A0B0D 100%);
}
.page { max-width: var(--page-max); }
.page.narrow { max-width: 820px; }

/* text that sits on light backgrounds uses the deeper tone for contrast */
.when.w-today, .chip.blue, .cb-eyebrow, .eyebrow:not(.date), .sub-txt.done-at, .list.history .task.is-done .task-sub { color: var(--blue-ink); }
.btn.blue, .send-btn, .sb-badge, .when.w-done { background: var(--accent); color: #fff; }
.btn.blue:hover, .send-btn:hover { background: var(--accent-hover); box-shadow: 0 8px 24px rgba(14, 152, 190, .35); }

/* ---- no page shift when search / sheets lock scrolling ---- */
html { scrollbar-gutter: stable; }
html.scroll-locked body { padding-right: 0 !important; }
html.scroll-locked, html.scroll-locked body { overflow: hidden; }

/* ---- motion: everything eases out, in and back ---- */
.sheet-wrap .sheet { transition: transform .5s var(--ease-out), opacity .35s var(--ease-out) !important; }
.sheet-backdrop { transition: opacity .35s var(--ease-out) !important; }
.sheet-wrap:not(.in) .sheet { transform: translateY(18px) scale(.97); opacity: 0; }
.sheet-wrap.in .sheet { transform: none; opacity: 1; }
.sheet-wrap.closing .sheet { transform: translateY(12px) scale(.98); opacity: 0; transition-duration: .28s !important; }
.sheet-wrap.closing .sheet-backdrop { opacity: 0; }
.popover { transition: opacity .2s var(--ease-out), transform .32s var(--ease-out) !important; }
.palette { transition: opacity .25s var(--ease-out), transform .4s var(--ease-out) !important; }
.palette-wrap.closing .palette { opacity: 0; transform: translateY(-6px) scale(.985); }
.palette-wrap.closing .palette-backdrop { opacity: 0; }
@media (max-width: 720px) {
  .sheet-wrap:not(.in) .sheet { transform: translateY(100%); }
  .sheet-wrap.closing .sheet { transform: translateY(100%); }
}

/* ---- Sidebar v7: one layout for both states, so nothing jumps ---- */
:root { --sbw: 272px; --sbw-mini: 72px; }
.shell { grid-template-columns: var(--sbw) minmax(0, 1fr); transition: grid-template-columns .45s var(--ease-out); }
.sidebar { overflow-x: hidden; padding: 14px 12px 12px; }
.sidebar .sb-label, .sidebar .sb-head > span, .sidebar .sb-count, .sidebar .sb-badge, .sidebar .sb-pin, .sidebar .sb-kbd, .sidebar .sb-user-txt, .sidebar .sb-user-gear, .sidebar .sb-head .icon-btn, .sidebar .sb-empty {
  transition: opacity .28s var(--ease-out); white-space: nowrap;
}
.sb-top { padding: 2px 4px 12px 10px; min-height: 48px; }
.sb-top .brand { min-width: 0; }
.sb-top-actions { transition: opacity .28s var(--ease-out); }
.sb-search { padding: 8px 10px 8px 15px; white-space: nowrap; }
.sidebar a { padding: 7px 10px 7px 15px; white-space: nowrap; }
.sb-head { padding: 0 4px 4px 15px; min-height: 32px; }
.sb-hash { width: 18px; flex: none; display: inline-flex; justify-content: center; }
.sb-initial { display: inline-block !important; max-width: 0; opacity: 0; overflow: hidden; vertical-align: bottom; transition: max-width .35s var(--ease-out), opacity .25s var(--ease-out); }
.sb-user { padding: 9px 10px 9px 6px; }
.sb-user .avatar.static.sm { flex: none; }
/* the toggle sits on the sidebar's edge and moves with it */
.sb-toggle {
  position: fixed; z-index: 45; top: 26px; left: calc(var(--sbw) - 14px); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
  transition: left .45s var(--ease-out), color .2s, background .2s, transform .3s var(--ease-out);
}
.sb-toggle:hover { color: var(--ink); background: var(--bg-2); }
.sb-toggle svg { transition: transform .45s var(--ease-out); }
.sb-collapse { display: none !important; }
@media (min-width: 901px) {
  html.sb-collapsed { --sbw: var(--sbw-mini); }
  html.sb-collapsed .sb-toggle svg { transform: rotate(180deg); }
  html.sb-collapsed .sidebar .sb-label, html.sb-collapsed .sidebar .sb-head > span, html.sb-collapsed .sidebar .sb-count, html.sb-collapsed .sidebar .sb-badge,
  html.sb-collapsed .sidebar .sb-pin, html.sb-collapsed .sidebar .sb-kbd, html.sb-collapsed .sidebar .sb-user-txt, html.sb-collapsed .sidebar .sb-user-gear,
  html.sb-collapsed .sidebar .sb-head .icon-btn, html.sb-collapsed .sidebar .sb-empty, html.sb-collapsed .sb-top-actions { opacity: 0; pointer-events: none; }
  html.sb-collapsed .sb-initial { max-width: 14px; opacity: 1; }
  html.sb-collapsed .sb-hash { width: auto; min-width: 18px; }
  html.sb-collapsed .sb-search, html.sb-collapsed .sb-user { border-color: transparent; background: transparent; box-shadow: none; }
  html.sb-collapsed .sidebar a:has(.sb-badge)::after { content: ""; position: absolute; left: 35px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--side); }
  html.sb-collapsed .sidebar a { position: relative; }
}
@media (max-width: 900px) { .sb-toggle { display: none; } }

/* ---- Task cards ---- */
.list:has(> .tcard) { background: transparent; border: 0; box-shadow: none; overflow: visible; display: flex; flex-direction: column; gap: 10px; }
.list:has(> .tcard) > .tcard::before { display: none; }
.tcard {
  align-items: center; gap: 16px; padding: 14px 14px 14px 18px !important; border-radius: 20px;
  background: var(--surface); border: 2px solid var(--line-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: border-color .25s var(--ease-out), background .35s var(--ease-out), box-shadow .3s var(--ease-out), transform .35s var(--ease-out);
}
.tcard:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); box-shadow: 0 8px 24px rgba(14, 152, 190, .10); background: var(--surface); }
.tcard .check { width: 28px; height: 28px; margin: 0; }
.tile.big { width: 52px; height: 52px; border-radius: 15px; color: #fff !important; flex: none;
  background: linear-gradient(145deg, #12AAD4 0%, #0E98BE 45%, #083A5B 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px rgba(8, 58, 91, .22); }
.tile.big .ic { width: 26px; height: 26px; }
.tile.big .ic-img { filter: brightness(0) invert(1); }
.tile.big .ic-mask { background: #fff; }
.tcard .task-title { font-size: 16.5px; font-weight: 500; }
.tcard .task-sub:has(.sub-txt:empty) { display: none; }
.tcard .whens { margin-top: 6px; }
.when.w-today { background: var(--blue-soft); color: var(--blue-ink); }
.tcard .task-actions { align-self: flex-start; gap: 6px; }
.t-detail { width: 34px !important; height: 34px !important; border-radius: 10px !important; color: var(--ink-3); }
.t-detail:hover { color: var(--accent); background: var(--blue-soft) !important; }
.tcard.is-done, .panel-list .tcard.is-done { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tcard.is-done .task-title { color: var(--ink); text-decoration: none; }
.tcard.is-done .tile.big { opacity: 1; }
.tcard.completing { background: color-mix(in srgb, var(--accent) 16%, var(--surface)) !important; border-color: var(--accent) !important; box-shadow: 0 10px 28px rgba(14, 152, 190, .18) !important; }
.tcard.completing .tile.big { background: linear-gradient(145deg, #12AAD4, #0E98BE) !important; }
.task.is-done .check, .check.sel, .task.completing .check { background: var(--accent); border-color: var(--accent); }
.list.compact .tcard { padding: 12px 12px 12px 14px !important; }
.list.compact .tile.big { width: 44px; height: 44px; border-radius: 13px; }

/* ---- Home sections: no borders, soft depth ---- */
.panel, .panel.p-blue, .panel.p-coral, .panel.p-yellow, .panel.p-plain {
  border: 0 !important; background: var(--surface); border-radius: 26px; padding: 20px 20px 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .07), 0 32px 64px -24px rgba(16, 24, 40, .10);
}
:root[data-theme="dark"] .panel { background: linear-gradient(180deg, #181B20 0%, #14171B 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3); }
.panel-list .task, .prow { border: 2px solid var(--line-2); border-radius: 18px; background: var(--surface); }
.prow { transition: border-color .25s var(--ease-out), transform .35s var(--ease-out), box-shadow .3s var(--ease-out); }
.prow:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); box-shadow: 0 8px 22px rgba(14, 152, 190, .10); transform: none; }
.panel-head h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 18px; }
.count { border: 0; background: var(--bg-2); }

/* pill buttons: View all / Open / New / Stats */
.view-all { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 999px; background: var(--accent); color: #fff !important; font-size: 13px; font-weight: 500;
  transition: background .2s var(--ease-out), transform .3s var(--ease-out), box-shadow .25s var(--ease-out); }
.view-all:hover { background: var(--accent-hover); box-shadow: 0 6px 18px rgba(14, 152, 190, .35); transform: translateY(-1px); }
.view-all .ic { width: 13px; height: 13px; }

/* ---- Your week analytics ---- */
.wk-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.wk-k { padding: 14px; border-radius: 16px; background: var(--bg-2); min-width: 0; }
.wk-k.big { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(14, 152, 190, .14), rgba(8, 58, 91, .10)); }
.wk-k small { display: block; font-size: 12.5px; color: var(--ink-2); }
.wk-k b { display: block; font-family: var(--display); font-weight: 700; letter-spacing: -.04em; font-size: 28px; line-height: 1.1; margin-top: 4px; }
.wk-k.big b { font-size: 38px; }
.wk-k b i { font-style: normal; font-size: .55em; color: var(--ink-3); margin-left: 2px; }
.wk-k span { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.wk-bar { height: 6px; border-radius: 6px; background: rgba(14, 152, 190, .15); margin-top: 10px; overflow: hidden; }
.wk-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #12AAD4, #0E98BE); transition: width .8s var(--ease-out); }
.week-bars { height: 84px; }

/* ---- Weather card in the Journal panel ---- */
.jp-weather-card:empty { display: none; }
.jpw { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 16px; border-radius: 20px; margin-bottom: 10px; color: #fff;
  background: linear-gradient(140deg, #12AAD4 0%, #0E98BE 40%, #083A5B 100%); box-shadow: 0 14px 30px rgba(8, 58, 91, .28); }
.jpw.wx-rain, .jpw.wx-storm { background: linear-gradient(140deg, #4B6B84 0%, #2D4A63 50%, #142636 100%); }
.jpw.wx-snow, .jpw.wx-fog { background: linear-gradient(140deg, #9DB7C9 0%, #6E8EA6 50%, #3E5A71 100%); }
.jpw.wx-cloud { background: linear-gradient(140deg, #5FA9C2 0%, #2F7F9B 50%, #0F3E57 100%); }
.jpw.wx-moon { background: linear-gradient(140deg, #24425C 0%, #142A3F 50%, #0A1724 100%); }
.jpw-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.jpw-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jpw-main .num { font-size: 40px; line-height: 1; color: #fff; }
.jpw-main span b { display: block; font-weight: 500; font-size: 15px; }
.jpw-main span small { display: block; font-size: 12.5px; opacity: .8; }
.jpw p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .13); }
.jpw.empty, .jpw.loading { grid-template-columns: auto 1fr; color: var(--ink); background: var(--bg-2); box-shadow: none; }
.jpw.empty .jpw-ic, .jpw.loading .jpw-ic { background: var(--blue-soft); color: var(--accent); }
.jpw.empty b, .jpw.loading b { display: block; font-weight: 500; }
.jpw.empty small, .jpw.loading small { display: block; color: var(--ink-2); font-size: 12.5px; }
.jpw .jpw-ic svg { animation: none !important; }
@keyframes wxFloat { 50% { transform: translateY(-3px); } }

/* ---- Journal book ---- */
.book { position: relative; outline: none; }
.book-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 0; perspective: 1800px; position: relative; padding: 6px; border-radius: 22px;
  background: linear-gradient(90deg, rgba(0,0,0,.04), transparent 6%, transparent 94%, rgba(0,0,0,.04)); }
.book-spread[data-per="1"] { grid-template-columns: 1fr; }
.book-spread[data-per="2"]::after { content: ""; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 18px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .10) 45%, rgba(0, 0, 0, .14) 50%, rgba(0, 0, 0, .10) 55%, transparent); }
:root[data-theme="dark"] .book-spread[data-per="2"]::after { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .35) 50%, transparent); }
.bpage { position: relative; min-height: 340px; display: flex; flex-direction: column; gap: 14px; padding: 28px 30px 20px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 34px rgba(16, 24, 40, .08); transform-origin: left center; backface-visibility: hidden;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, color-mix(in srgb, var(--accent) 7%, transparent) 31px 32px); background-position: 0 70px; }
.book-spread[data-per="2"] .bpage:first-child { border-radius: 18px 4px 4px 18px; transform-origin: right center; }
.book-spread[data-per="2"] .bpage:last-child { border-radius: 4px 18px 18px 4px; }
.book-spread[data-per="1"] .bpage { border-radius: 18px; }
.bpage header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bpage header b { font-family: var(--display); font-size: 20px; letter-spacing: -.03em; }
.bp-text { flex: 1; font-size: 15.5px; line-height: 2; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; }
.bpage footer { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-3); }
.bpage footer a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 500; }
.bpage footer .short { color: var(--amber); }
.bp-no { margin-left: auto; font-family: var(--display); }
.bpage.blank { background-image: none; opacity: .5; }
.book-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.book-pos { font-size: 13px; color: var(--ink-2); min-width: 70px; text-align: center; }
/* page turn */
.book-spread.out.turn-next .bpage:last-child, .book-spread[data-per="1"].out.turn-next .bpage { animation: flipOutNext .26s cubic-bezier(.5, 0, .75, 0) forwards; }
.book-spread.in.turn-next .bpage:first-child, .book-spread[data-per="1"].in.turn-next .bpage { animation: flipInNext .34s var(--ease-out) both; }
.book-spread.out.turn-prev .bpage:first-child, .book-spread[data-per="1"].out.turn-prev .bpage { animation: flipOutPrev .26s cubic-bezier(.5, 0, .75, 0) forwards; }
.book-spread.in.turn-prev .bpage:last-child, .book-spread[data-per="1"].in.turn-prev .bpage { animation: flipInPrev .34s var(--ease-out) both; }
.book-spread.out .bpage { transition: opacity .26s; }
.book-spread.in .bpage { animation-fill-mode: both; }
@keyframes flipOutNext { to { transform: rotateY(-90deg); filter: brightness(.85); } }
@keyframes flipInNext { from { transform: rotateY(90deg); filter: brightness(.85); } }
@keyframes flipOutPrev { to { transform: rotateY(90deg); filter: brightness(.85); } }
@keyframes flipInPrev { from { transform: rotateY(-90deg); filter: brightness(.85); } }
.book-spread[data-per="2"].out.turn-next .bpage:last-child { transform-origin: left center; }
.book-spread[data-per="2"].in.turn-next .bpage:first-child { transform-origin: right center; }
.book-spread[data-per="2"].out.turn-prev .bpage:first-child { transform-origin: right center; }
.book-spread[data-per="2"].in.turn-prev .bpage:last-child { transform-origin: left center; }

/* ---- Celebration bottom-right, notifications top-right ---- */
.celebrate { left: auto !important; right: 24px; bottom: 24px !important; transform: translateY(18px) scale(.97); transition: opacity .35s var(--ease-out), transform .5s var(--ease-out); }
.celebrate.in { transform: none; }
.celebrate.out { transform: translateY(10px) scale(.98); }
#toast-root { top: 20px; bottom: auto; right: 20px; }
@media (max-width: 900px) {
  .celebrate { right: 12px; left: 12px !important; width: auto; bottom: calc(84px + var(--safe-b)) !important; }
  #toast-root { top: calc(62px + env(safe-area-inset-top, 0px)); bottom: auto; }
}

/* ---- Recaps ---- */
.rc-live { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 22px; color: var(--ink); margin-bottom: 20px; border: 0; box-shadow: 0 12px 30px rgba(16, 24, 40, .07); }
.rc-live small { display: block; font-size: 12.5px; color: var(--ink-2); }
.rc-live b { font-family: var(--display); font-size: 22px; letter-spacing: -.03em; }
.rc-live-bar { height: 8px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.rc-live-bar i { display: block; height: 100%; background: linear-gradient(90deg, #12AAD4, #0E98BE); border-radius: inherit; }
.rc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rc-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; background: var(--surface); color: var(--ink); border: 2px solid var(--line); box-shadow: 0 10px 28px rgba(16, 24, 40, .06); transition: border-color .25s var(--ease-out), transform .35s var(--ease-out); animation: itemIn .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
.rc-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); transform: translateY(-2px); }
.rc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rc-card-top b { font-family: var(--display); font-size: 19px; letter-spacing: -.03em; }
.rc-card-mid { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 12px; align-items: center; }
.rc-card-mid b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -.03em; }
.rc-card-mid small { color: var(--ink-3); font-size: 12px; }
.rc-card p { margin: 0; }
.rc-mini { --p: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--bg-2) 0); position: relative; }
.rc-mini::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.rc-mini i { position: relative; font-style: normal; font-size: 13px; font-weight: 700; }
.recap-pop { padding-top: 24px; }
.rc-title { margin: 0 0 18px; font-family: var(--display); font-size: 30px; letter-spacing: -.04em; }
.rc-hero { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.rc-ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; text-align: center; position: relative;
  background: conic-gradient(from -90deg, #12AAD4, #0E98BE calc(var(--p) * 1%), var(--bg-2) 0); animation: rcIn .9s var(--ease-out) both; }
.rc-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--surface); }
.rc-ring b, .rc-ring span { position: relative; }
.rc-ring b { font-family: var(--display); font-size: 34px; letter-spacing: -.05em; line-height: 1; display: block; }
.rc-ring b small { font-size: 15px; }
.rc-ring span { font-size: 12px; color: var(--ink-2); display: block; margin-top: -20px; }
@keyframes rcIn { from { transform: scale(.85) rotate(-20deg); opacity: 0; } }
.rc-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rc-kpis div { padding: 10px 12px; border-radius: 14px; background: var(--bg-2); }
.rc-kpis b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: -.04em; line-height: 1.1; }
.rc-kpis span { font-size: 12px; color: var(--ink-2); }
.rc-days { display: flex; gap: 8px; height: 96px; margin: 20px 0; }
.rc-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rc-bar { flex: 1; width: 100%; max-width: 34px; position: relative; display: flex; align-items: flex-end; }
.rc-bar em { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 8px; background: var(--bg-2); }
.rc-bar i { position: relative; z-index: 1; width: 100%; border-radius: 8px; background: linear-gradient(180deg, #12AAD4, #0E98BE); animation: grow .8s var(--ease-out) both; transform-origin: bottom; }
.rc-day span { font-size: 11.5px; color: var(--ink-3); }
.rc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rc-fact { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); min-width: 0; }
.rc-fact > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--accent); }
.rc-fact.warn > span { background: var(--amber-soft); color: var(--amber); }
.rc-fact small { display: block; font-size: 11.5px; color: var(--ink-2); }
.rc-fact b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-fact div { min-width: 0; }
.rc-actions { margin: 20px 0 6px; }
.rc-sub { margin: 26px 0 10px; font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.rc-tasks { display: flex; flex-direction: column; gap: 6px; }
.rc-task { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--bg-2); }
.rc-task b { font-weight: 500; font-size: 14px; }
.rc-n { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.rc-n.ok { color: var(--blue-ink); } .rc-n.bad { color: var(--red); }
.rc-detail { padding: 24px; margin-top: 18px; }

@media (max-width: 760px) {
  .tcard { gap: 12px; padding: 12px 10px 12px 14px !important; }
  .tile.big { width: 44px; height: 44px; border-radius: 13px; }
  .rc-hero { grid-template-columns: 1fr; justify-items: center; }
  .rc-facts { grid-template-columns: 1fr; }
  .rc-live { grid-template-columns: 1fr; gap: 10px; }
  .rc-card-mid { grid-template-columns: auto repeat(3, 1fr); }
  .bpage { min-height: 300px; padding: 22px 20px 16px; }
  .wk-k b { font-size: 24px; }
}
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0, 1fr) !important; } }

/* =====================================================================
   v8: no borders, glass surfaces, one gradient card, Motion onboarding,
   minimal landing, planner
   ===================================================================== */
/* pointer orbs and magnetic buttons are gone */
.btn::after, .tile-card::after, .f-card::after { content: none !important; }
.btn { transform: none; }

/* app background gives the glass something to sit on */
:root { --page-grad: linear-gradient(165deg, #E9F5FA 0%, #F7FAFC 38%, #FFFFFF 62%, #EEF3F7 100%);
  --glass-bg: rgba(255, 255, 255, .62); --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .85);
  --lift: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 40, 60, .08); --lift-2: 0 2px 4px rgba(16, 24, 40, .05), 0 18px 40px rgba(14, 80, 110, .14); }
:root[data-theme="dark"] { --page-grad: linear-gradient(165deg, #0E1A22 0%, #0E1013 40%, #0B0D10 70%, #0D141A 100%);
  --glass-bg: rgba(28, 32, 38, .55); --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --lift: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .38); --lift-2: 0 2px 6px rgba(0, 0, 0, .35), 0 22px 48px rgba(0, 0, 0, .5); }
body:not(.landing-body) { background-attachment: fixed; }

/* panels: frosted, no borders */
.panel, .panel.p-blue, .panel.p-coral, .panel.p-yellow, .panel.p-plain, :root[data-theme="dark"] .panel {
  border: 0 !important; background: var(--glass-bg); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--glass-hi), var(--lift);
}
/* the one loud card: black to blue, light follows the pointer */
.panel.p-week, :root[data-theme="dark"] .panel.p-week {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(150deg, #06090C 0%, #0A2233 42%, #083A5B 70%, #0E98BE 120%);
  box-shadow: 0 24px 50px -12px rgba(8, 58, 91, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.panel.p-week::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; transition: opacity .5s var(--ease-out);
  background: radial-gradient(380px circle at var(--sx, 85%) var(--sy, 0%), rgba(18, 170, 212, .55), transparent 62%); }
.panel.p-week::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease-out);
  background: radial-gradient(180px circle at var(--sx, 85%) var(--sy, 0%), rgba(255, 255, 255, .22), transparent 70%); }
.panel.p-week:hover { transform: translateY(-3px); box-shadow: 0 34px 70px -14px rgba(14, 152, 190, .55), inset 0 1px 0 rgba(255, 255, 255, .1); }
.panel.p-week:hover::before { opacity: 1; }
.panel.p-week:hover::after { opacity: 1; }
.p-week .panel-head h2, .p-week .panel-head h2 .ic { color: #fff; }
.p-week .view-all { background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.p-week .view-all:hover { background: rgba(255, 255, 255, .24); box-shadow: none; }
.p-week .wk-k, .p-week .wk-k.big { background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.p-week .wk-k small, .p-week .wk-k span { color: rgba(255, 255, 255, .62); }
.p-week .wk-k b, .p-week .wk-k b i { color: #fff; }
.p-week .wk-k b i { opacity: .55; }
.p-week .wk-bar { background: rgba(255, 255, 255, .14); }
.p-week .wk-bar i { background: linear-gradient(90deg, #7FDDF5, #12AAD4); }
.p-week .wb-track { background: rgba(255, 255, 255, .09); border-radius: 999px; }
.p-week .wb-track i { background: linear-gradient(180deg, #7FDDF5, #0E98BE); border-radius: 999px; }
.p-week .wb-track i.part { background: rgba(127, 221, 245, .45); }
.p-week .wb span { color: rgba(255, 255, 255, .55); }

/* task cards and rows: no borders, depth from shadow, tint when done */
.tcard, .panel-list .task, .prow, .list.compact .tcard {
  border: 0 !important; background: var(--glass-bg); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--glass-hi), var(--lift);
}
.panel .tcard, .panel .prow { background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 16px rgba(16, 40, 60, .06); -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-theme="dark"] .panel .tcard, :root[data-theme="dark"] .panel .prow { background: rgba(255, 255, 255, .04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 6px 16px rgba(0, 0, 0, .25); }
.tcard:hover, .prow:hover, .panel .tcard:hover, .panel .prow:hover { transform: translateY(-2px); box-shadow: var(--lift-2); background: var(--surface); }
:root[data-theme="dark"] .tcard:hover, :root[data-theme="dark"] .prow:hover { background: #1C2026; }
.tcard.is-done, .panel-list .tcard.is-done, .panel .tcard.is-done { background: linear-gradient(135deg, rgba(14, 152, 190, .16), rgba(14, 152, 190, .07)); box-shadow: inset 0 0 0 0 transparent, 0 8px 22px rgba(14, 152, 190, .12); }
.tcard.completing { background: linear-gradient(135deg, rgba(14, 152, 190, .24), rgba(14, 152, 190, .1)) !important; box-shadow: 0 12px 30px rgba(14, 152, 190, .22) !important; }
.when.w-time { background: rgba(8, 58, 91, .08); color: var(--ink); display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .when.w-time { background: rgba(255, 255, 255, .07); }
.when.w-time .ic { width: 12px; height: 12px; }

/* primary pill (light: blue gradient) */
.btn.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 0 20px; height: 42px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, #14AFD9 0%, #0E98BE 55%, #0B84A6 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px rgba(14, 152, 190, .3);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), filter .2s; }
.btn.pill:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 26px rgba(14, 152, 190, .42); filter: brightness(1.05); }
.btn.pill:focus-visible, .ob-next:focus-visible, .ob-skip:focus-visible { outline: 3px solid rgba(14, 152, 190, .45); outline-offset: 3px; }
.btn.pill.small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.pill.large { height: 54px; padding: 0 28px; font-size: 17px; }
.btn.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.pill.ghost:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.pill .ic { width: 16px; height: 16px; }

/* ---------------- landing: follows the theme, Apple-like calm ---------------- */
html.is-landing, html.is-landing body { background: #FFFFFF; }
:root[data-theme="dark"].is-landing, :root[data-theme="dark"].is-landing body { background: #0B0D10; }
.landing.lx { --bg: #FFFFFF; --surface: #F5F7F9; --bg-2: #EEF2F5; --bg-3: #E2E8ED; --ink: #0B0D10; --ink-2: #5B6470; --ink-3: #8A929C; --line: rgba(0, 0, 0, .07); --line-2: rgba(0, 0, 0, .12);
  --gutter: max(24px, calc((100vw - 1200px) / 2)); background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .landing.lx { --bg: #0B0D10; --surface: #14171B; --bg-2: #1B1F24; --bg-3: #262B31; --ink: #F1F3F6; --ink-2: #9AA2AC; --ink-3: #69717B; --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .14); }
.lx .l-nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); border-color: var(--line); }
.lx .l-links a, .lx .l-login { color: var(--ink-2); }
.lx .l-links a:hover, .lx .l-login:hover { color: var(--ink); }
.lx .logo-svg .ld, .lx .brand-word { fill: var(--ink); color: var(--ink); }
.lx-hero { padding: 170px var(--gutter) 40px; text-align: center; }
.lx-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(48px, 8.4vw, 116px); line-height: .98; letter-spacing: -.045em; color: var(--ink); }
.lx-title span { color: #0E98BE; }
.lx-sub { margin: 26px auto 0; max-width: 560px; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--ink-2); }
.lx-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.lx-hero > * { animation: lxIn .8s var(--ease-out) both; }
.lx-hero > :nth-child(2) { animation-delay: .06s; } .lx-hero > :nth-child(3) { animation-delay: .12s; }
@keyframes lxIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lx-stage { padding: 40px var(--gutter) 30px; }
.lx .demo { margin: 0 auto; animation: lxIn 1s var(--ease-out) both .2s; box-shadow: 0 40px 90px -20px rgba(8, 30, 45, .35); }
.lx-caption { text-align: center; color: var(--ink-3); font-size: 14px; margin: 18px 0 0; }
.lx-h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -.04em; color: var(--ink); }
.lx-band { padding: 120px var(--gutter); }
.lx-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: center; max-width: 1000px; margin: 0 auto; }
.lx-copy p { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 18px 0 0; max-width: 440px; }
.lx .cc { background: linear-gradient(150deg, #06090C 0%, #0A2233 50%, #083A5B 100%); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 30px 70px -20px rgba(8, 58, 91, .6); color: #fff; }
.lx .cc .logo-svg .ld { fill: #fff; }
.lx .cc-mark::before, .lx .cc-mark::after { display: none !important; }
.lx-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.lx-f { display: flex; gap: 18px; padding: 34px 8px; border-top: 1px solid var(--line); }
.lx-f-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #12AAD4, #083A5B); }
.lx-f h3 { margin: 2px 0 6px; font-family: var(--display); font-size: 22px; letter-spacing: -.02em; }
.lx-f p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; max-width: 360px; }
.lx-research { padding: 140px var(--gutter) 40px; max-width: 1000px; margin: 0 auto; }
.lx-rows { margin-top: 40px; }
.lx-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 6px 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.lx-num b { display: block; font-family: var(--display); font-size: 64px; line-height: 1; letter-spacing: -.04em; color: #0E98BE; }
.lx-num span { color: var(--ink-3); font-size: 15px; }
.lx-row p { margin: 6px 0 0; font-size: 20px; line-height: 1.45; color: var(--ink); }
.lx-cite { grid-column: 2; color: var(--ink-3); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.lx-cite:hover { color: #0E98BE; }
.lx-privacy { padding: 120px var(--gutter); max-width: 1000px; margin: 0 auto; }
.lx-privacy > p { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 600px; margin: 18px 0 0; }
.lx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.lx-facts > div { padding: 24px; border-radius: 22px; background: var(--surface); }
.lx-facts b { display: block; font-family: var(--display); font-size: 48px; letter-spacing: -.04em; line-height: 1; }
.lx-facts span { color: var(--ink-2); font-size: 15px; display: block; margin-top: 8px; }
.lx-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 26px; color: #0E98BE; font-weight: 500; }
.lx-link:hover { text-decoration: underline; }
.lx-final { padding: 120px var(--gutter) 140px; text-align: center; display: grid; justify-items: center; gap: 30px; }
.lx .l-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 28px var(--gutter); border-top: 1px solid var(--line); }
.lx-foot-links { display: flex; gap: 20px; }
.lx-foot-links a { color: var(--ink-2); font-size: 14px; }
.lx-foot-links a:hover { color: var(--ink); }
.lg-doc { max-width: 720px; margin: 0 auto; padding: 140px 24px 80px; }
.lg-date { color: var(--ink-3); margin: 14px 0 40px; }
.lg-doc section { padding: 22px 0; border-top: 1px solid var(--line); }
.lg-doc h2 { margin: 0 0 8px; font-family: var(--display); font-size: 21px; letter-spacing: -.02em; }
.lg-doc section p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.lg-switch { margin-top: 30px; }
.lg-switch a { color: #0E98BE; font-weight: 500; }
@media (max-width: 760px) {
  .lx-split { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 40px; }
  .lx-copy p { margin-left: auto; margin-right: auto; }
  .lx-features { grid-template-columns: 1fr; }
  .lx-row { grid-template-columns: 1fr; }
  .lx-cite { grid-column: 1; }
  .lx-facts { grid-template-columns: 1fr; }
  .lx-hero { padding-top: 130px; }
  .lx-band, .lx-research, .lx-privacy, .lx-final { padding-top: 80px; padding-bottom: 80px; }
  .lx .l-links { display: none; }
}
.auth2-note a { color: var(--blue-ink); }

/* ---------------- onboarding ---------------- */
.ob { position: fixed; inset: 0; z-index: 500; display: grid; grid-template-rows: auto 1fr auto; color: var(--ink);
  background: linear-gradient(165deg, #E9F5FA 0%, #FFFFFF 50%, #EEF4F8 100%); }
:root[data-theme="dark"] .ob { background: linear-gradient(165deg, #0E1A22 0%, #0B0D10 55%, #0D141A 100%); }
.ob-top { display: flex; align-items: center; gap: 20px; padding: 22px max(24px, 4vw); }
.ob-progress { flex: 1; display: flex; gap: 8px; max-width: 760px; margin: 0 auto; }
.ob-progress span { flex: 1; height: 8px; border-radius: 99px; background: rgba(14, 152, 190, .16); overflow: hidden; }
.ob-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #12AAD4, #0E98BE); }
.ob-progress span.done i { width: 100%; }
.ob-progress span.run i { animation: obProg var(--dur, 3s) linear forwards; }
@keyframes obProg { to { width: 100%; } }
.ob-skip { flex: none; height: 48px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 600; color: var(--ink); background: var(--glass-bg); box-shadow: var(--glass-hi), var(--lift); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .3s var(--ease-out), background .2s; }
.ob-skip:hover { transform: translateY(-1px); background: var(--surface); }
.ob-stage { position: relative; display: grid; place-items: center; padding: 10px 24px; min-height: 0; }
.ob-scene { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; width: min(1180px, 100%); will-change: transform, opacity; }
.ob-copy h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(52px, 7.4vw, 104px); line-height: .98; letter-spacing: -.045em; }
.ob-copy p { margin: 22px 0 0; font-size: clamp(19px, 2.1vw, 26px); line-height: 1.4; color: var(--ink-2); max-width: 520px; }
.ob-art { display: grid; place-items: center; }
.ob-logo .logo-svg { width: clamp(150px, 20vw, 240px); height: auto; }
.ob-logo .ld { fill: #0E98BE; transform-box: fill-box; transform-origin: center; }
.ob-logo.done .ld { fill: var(--ink); }
.ob-card { width: min(520px, 100%); padding: 22px; border-radius: 30px; background: var(--glass-bg); box-shadow: var(--glass-hi), var(--lift-2); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.ob-row { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 20px; transition: background .35s var(--ease-out); }
.ob-row + .ob-row { margin-top: 6px; }
.ob-row.on { background: rgba(14, 152, 190, .12); }
.ob-ck { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2.5px var(--line-2); transition: background .3s, box-shadow .3s; }
.ob-ck svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.ob-row.on .ob-ck { background: #0E98BE; box-shadow: none; }
.ob-row.on .ob-ck svg { opacity: 1; }
.ob-ic, .pl-ic { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #12AAD4 0%, #0E98BE 45%, #083A5B 100%); }
.ob-ic .ic-img, .pl-ic .ic-img { filter: brightness(0) invert(1); }
.ob-ic .ic-mask, .pl-ic .ic-mask { background: #fff; }
.ob-tx b { display: block; font-size: 19px; font-weight: 600; }
.ob-tx small { color: var(--ink-2); font-size: 15px; }
.ob-plan { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ob-col { min-height: 230px; border-radius: 18px; background: rgba(14, 152, 190, .06); padding: 10px 6px; display: flex; flex-direction: column; gap: 6px; }
.ob-col > span { text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.ob-chip { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #12AAD4, #0B84A6); font-style: normal; }
.ob-chip.c2 { background: linear-gradient(145deg, #0E98BE, #083A5B); }
.ob-chip.c3 { background: linear-gradient(145deg, #2A3440, #0B0D10); }
.ob-chip b { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ob-stats { display: grid; gap: 22px; }
.ob-kpi b { font-family: var(--display); font-size: 84px; line-height: 1; letter-spacing: -.05em; }
.ob-kpi b small { font-size: .45em; color: var(--ink-3); }
.ob-kpi span { display: block; color: var(--ink-2); font-size: 17px; margin-top: 4px; }
.ob-bars { display: flex; gap: 12px; height: 170px; }
.ob-bar { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ob-bar::before { content: ""; }
.ob-bar i { flex: none; width: 100%; height: calc(var(--v) * 140px); margin-top: auto; border-radius: 999px; background: linear-gradient(180deg, #7FDDF5, #0E98BE); transform-origin: bottom; }
.ob-bar span { font-size: 13px; color: var(--ink-3); }
.ob-remind { min-height: 260px; display: grid; align-items: start; background: linear-gradient(150deg, #06090C 0%, #0A2233 50%, #083A5B 100%); }
.ob-note { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
:root[data-theme="dark"] .ob-note { background: rgba(40, 45, 52, .92); }
.ob-note .ob-app .logo-svg { width: 44px; height: 44px; }
.ob-note b { display: block; font-size: 17px; }
.ob-note small { color: var(--ink-2); font-size: 14px; }
.ob-note em { margin-left: auto; align-self: flex-start; font-style: normal; font-size: 13px; color: var(--ink-3); }
.ob-bottom { display: flex; justify-content: center; padding: 18px 24px max(28px, env(safe-area-inset-bottom)); }
.ob-next { display: inline-flex; align-items: center; gap: 14px; height: 66px; padding: 0 26px 0 9px; min-width: 300px; border-radius: 999px; color: #fff; font-size: 19px; font-weight: 600;
  background: linear-gradient(180deg, #14AFD9 0%, #0E98BE 55%, #0B84A6 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 34px rgba(14, 152, 190, .38); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.ob-next:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 18px 40px rgba(14, 152, 190, .5); }
.ob-next-dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0E98BE; }
.ob-next-l { flex: 1; text-align: left; }
.ob-chev { display: inline-flex; }
.ob-chev .ic { width: 16px; height: 16px; margin-left: -6px; animation: obChev 1.4s ease-in-out infinite; }
.ob-chev .ic:nth-child(1) { opacity: .35; } .ob-chev .ic:nth-child(2) { opacity: .65; animation-delay: .15s; } .ob-chev .ic:nth-child(3) { animation-delay: .3s; }
@keyframes obChev { 50% { transform: translateX(3px); } }
.ob.welcome { grid-template-rows: 1fr; cursor: pointer; }
.ob.welcome .ob-scene { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 26px; }
.ob.welcome .ob-copy h1 { font-size: clamp(44px, 6.6vw, 92px); }
.ob.reduced *, .ob.reduced *::before { animation-duration: .01s !important; }
@media (max-width: 820px) {
  .ob-scene { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .ob-copy { order: 2; } .ob-art { order: 1; }
  .ob-copy p { margin-left: auto; margin-right: auto; }
  .ob-copy h1 { font-size: clamp(42px, 11vw, 64px); }
  .ob-card { padding: 14px; }
  .ob-row { padding: 10px; } .ob-ic { width: 42px; height: 42px; }
  .ob-col { min-height: 170px; } .ob-chip .ic { width: 12px; height: 12px; }
  .ob-bars { height: 120px; } .ob-bar i { height: calc(var(--v) * 96px); } .ob-kpi b { font-size: 64px; }
  .ob-next { min-width: 0; width: 100%; max-width: 420px; }
  .ob-skip { height: 44px; padding: 0 20px; }
}

/* ---------------- planner ---------------- */
.pl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; flex-wrap: wrap; }
.pl-sets { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--glass-bg); box-shadow: var(--glass-hi), var(--lift); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.pl-set { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: background .3s var(--ease-out), color .2s; }
.pl-set:hover { color: var(--ink); }
.pl-set.on { background: var(--ink); color: var(--bg); }
.pl-set.add { color: var(--blue-ink); }
.pl-live { width: 7px; height: 7px; border-radius: 50%; background: #0E98BE; box-shadow: 0 0 0 3px rgba(14, 152, 190, .2); }
.pl-actions { display: flex; align-items: center; gap: 8px; }
.pl-state { font-size: 13px; font-weight: 600; color: var(--blue-ink); background: var(--blue-soft); padding: 7px 12px; border-radius: 999px; }
.pl-goal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 22px; border-radius: 24px; margin-bottom: 16px; color: #fff;
  background: linear-gradient(120deg, #06090C 0%, #0A2233 45%, #083A5B 80%, #0E98BE 130%); box-shadow: 0 18px 40px -16px rgba(8, 58, 91, .55); }
.pl-goal-txt b { font-family: var(--display); font-size: 40px; letter-spacing: -.04em; line-height: 1; margin-right: 8px; }
.pl-goal-txt span { color: rgba(255, 255, 255, .7); }
.pl-goal-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pl-goal-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7FDDF5, #12AAD4); transition: width .6s var(--ease-out); }
.pl-goal-in { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .75); font-size: 14px; }
.pl-goal-in input { width: 64px; height: 38px; border-radius: 12px; border: 0; text-align: center; font-weight: 600; font-size: 16px; color: #fff; background: rgba(255, 255, 255, .12); }
.pl-goal-in input:focus { outline: 2px solid #7FDDF5; }
.pl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.pl-week { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.pl-day { scroll-snap-align: start; border-radius: 22px; padding: 10px 8px; min-height: 380px; display: flex; flex-direction: column; background: var(--glass-bg); box-shadow: var(--glass-hi), var(--lift);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background .25s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s; }
.pl-day header { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; }
.pl-day header b { font-family: var(--display); font-size: 17px; }
.pl-day header span { font-size: 12px; font-weight: 600; color: var(--blue-ink); }
.pl-day.today header b { color: #0E98BE; }
.pl-day.today { box-shadow: var(--glass-hi), var(--lift), inset 0 3px 0 #0E98BE; }
.pl-day.over { background: rgba(14, 152, 190, .14); transform: translateY(-2px); }
.pl-drop { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pl-chip { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 40, 60, .06); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform .25s var(--ease-out), box-shadow .25s; }
:root[data-theme="dark"] .pl-chip { background: #1D2126; }
.pl-chip:hover { transform: translateY(-1px); box-shadow: var(--lift-2); }
.pl-chip:focus-visible, .pl-task:focus-visible, .pl-add:focus-visible { outline: 2px solid #0E98BE; outline-offset: 2px; }
.pl-chip .pl-ic { width: 30px; height: 30px; border-radius: 10px; }
.pl-chip-main { min-width: 0; }
.pl-chip-main b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pl-chip-main small { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.pl-chip-main small .ic { width: 11px; height: 11px; }
.pl-add { margin-top: auto; height: 36px; border-radius: 12px; color: var(--ink-3); display: grid; place-items: center; transition: background .2s, color .2s; }
.pl-add:hover { background: var(--blue-soft); color: #0E98BE; }
.pl-lib { position: sticky; top: 20px; border-radius: 24px; padding: 16px; background: var(--glass-bg); box-shadow: var(--glass-hi), var(--lift); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.pl-lib header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.pl-lib h2 { margin: 0; font-family: var(--display); font-size: 18px; }
.pl-lib header span { font-size: 12.5px; color: var(--ink-3); }
.pl-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 14px; background: var(--bg-2); color: var(--ink-3); margin-bottom: 10px; }
.pl-search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; min-width: 0; }
.pl-lib-list, .pl-pick { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.pl-task { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; text-align: left; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform .25s var(--ease-out), box-shadow .25s; color: var(--ink); }
:root[data-theme="dark"] .pl-task { background: #1D2126; }
.pl-task:hover { transform: translateY(-1px); box-shadow: var(--lift-2); }
.pl-task .pl-ic { width: 38px; height: 38px; border-radius: 12px; }
.pl-task-main { flex: 1; min-width: 0; }
.pl-task-main b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-task-main small { color: var(--ink-2); font-size: 12px; }
.pl-grip { color: var(--ink-3); }
.pl-empty { color: var(--ink-2); font-size: 14px; padding: 8px; }
.pl-src { opacity: .35; }
.pl-armed { transform: scale(.97); }
.pl-ghost { position: fixed !important; z-index: 900; pointer-events: none; margin: 0; rotate: 2deg; box-shadow: 0 24px 50px rgba(8, 40, 60, .3) !important; transition: none !important; }
html.pl-dragging, html.pl-dragging * { cursor: grabbing !important; user-select: none; }
.pl-form-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pl-form-head h2 { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: -.02em; }
.pl-form-head p { margin: 2px 0 0; color: var(--ink-2); }
.pl-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.pl-dp { height: 44px; border-radius: 999px; font-weight: 600; font-size: 13px; background: var(--bg-2); color: var(--ink-2); transition: background .2s, color .2s; }
.pl-dp.on { background: #0E98BE; color: #fff; }
.pl-quick { display: flex; gap: 6px; margin: -4px 0 14px; flex-wrap: wrap; }
.pl-quick button { padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--blue-ink); background: var(--blue-soft); }
.pl-form .field input[type="time"] { font-size: 17px; font-variant-numeric: tabular-nums; }
.pl-seg { border: 0; padding: 0; margin: 4px 0 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pl-seg legend { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.pl-seg label { position: relative; }
.pl-seg input { position: absolute; opacity: 0; inset: 0; }
.pl-seg span { display: grid; place-items: center; height: 44px; border-radius: 14px; background: var(--bg-2); font-size: 13.5px; font-weight: 500; text-align: center; padding: 0 6px; transition: background .2s, color .2s; }
.pl-seg input:checked + span { background: var(--ink); color: var(--bg); }
.pl-seg input:focus-visible + span { outline: 2px solid #0E98BE; outline-offset: 2px; }
.pl-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); margin-bottom: 16px; cursor: pointer; position: relative; }
.pl-switch b { display: block; font-weight: 600; }
.pl-switch small { color: var(--ink-2); font-size: 13px; }
.pl-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pl-switch i { flex: none; width: 50px; height: 30px; border-radius: 99px; background: var(--bg-3); position: relative; transition: background .25s; }
.pl-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--ease-out); }
.pl-switch input:checked + i { background: #0E98BE; }
.pl-switch input:checked + i::after { transform: translateX(20px); }
.pl-switch input:focus-visible + i { outline: 2px solid #0E98BE; outline-offset: 2px; }
.pl-menu { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.pl-menu-i { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-align: left; font-weight: 500; color: var(--ink); }
.pl-menu-i:hover { background: var(--bg-2); }
.pl-menu-i.danger { color: #D84A3A; }
.pl-actions-row { margin-top: 4px; }
.pl-actions-row > .btn { flex: 1; }
.btn.ghost.danger { color: #D84A3A; }
@media (max-width: 1100px) {
  .pl-wrap { grid-template-columns: 1fr; }
  .pl-lib { position: static; order: -1; }
  .pl-lib-list { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 4px; }
  .pl-lib-list .pl-task { width: 240px; flex: none; }
}
@media (max-width: 720px) {
  .pl-goal { grid-template-columns: 1fr auto; }
  .pl-goal-bar { grid-column: 1 / -1; grid-row: 2; }
  .pl-week { grid-template-columns: repeat(7, 74%); }
  .pl-day { min-height: 260px; }
}
.pl-task[hidden] { display: none; }
.pl-wrap > *, .pl-week, .pl-lib, .pl-lib-list, .planner { min-width: 0; } .planner { max-width: 100%; }
.lx .cc { --ink: #FFFFFF; --ink-2: rgba(255, 255, 255, .62); --ink-3: rgba(255, 255, 255, .4); --bg-2: rgba(255, 255, 255, .08); --bg-3: rgba(255, 255, 255, .14); --line: rgba(255, 255, 255, .1); color: #fff; }
.lx .cc .cc-head b, .lx .cc .cc-cap b { color: #fff; }
.wk-k b span { display: inline !important; color: inherit; font-size: inherit; margin: 0; white-space: normal; }
.panel-head .view-all .ic { color: inherit !important; }
.pl-week { grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 6px; }
.pl-day { padding: 10px 6px; }
.pl-chip { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }
.pl-chip-top { display: flex; align-items: center; gap: 6px; }
.pl-chip-top small { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.pl-chip-top small .ic { width: 11px; height: 11px; }
.pl-chip .pl-ic { width: 26px; height: 26px; border-radius: 9px; }
.pl-chip > b { font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; }
.pl-chip > em { font-style: normal; font-size: 11px; color: var(--ink-3); }
@media (max-width: 1100px) { .pl-week { grid-template-columns: repeat(7, minmax(120px, 1fr)); } }
@media (max-width: 720px) { .pl-week { grid-template-columns: repeat(7, 46%); } }

/* =====================================================================
   v9: living blue gradients everywhere, blue-black backgrounds,
   still buttons, landing 3D, footer
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* page backgrounds: blue-black (dark), blue-white (light) */
:root { --page-grad: radial-gradient(1100px 700px at 100% -10%, rgba(14, 152, 190, .16), transparent 60%), radial-gradient(900px 700px at -10% 110%, rgba(8, 58, 91, .10), transparent 60%), linear-gradient(165deg, #E6F4FA 0%, #F6FAFC 45%, #EAF2F7 100%); }
:root[data-theme="dark"] { --bg: #070B10; --side: #060A0E;
  --page-grad: radial-gradient(1200px 800px at 100% -15%, rgba(14, 152, 190, .20), transparent 60%), radial-gradient(1000px 800px at -15% 115%, rgba(8, 58, 91, .55), transparent 60%), linear-gradient(165deg, #08121A 0%, #060A0E 50%, #071420 100%); }

/* ---- the gradient surface ---- */
:where(.gx, .panel, .tile-card, .stats-page .kpi, .stats-page .card, .pl-goal, .sidebar, .rc-hero, .rc-card, .note-card) { --g1: #06090C; --g2: #0A2A40; --g3: #0C7EA3; --g-hi: rgba(18, 170, 212, .5); --gdur: 22s; }
:where(:root:not([data-theme="dark"])) :where(.gx, .panel, .tile-card, .stats-page .kpi, .stats-page .card, .pl-goal, .sidebar, .rc-hero, .rc-card, .note-card) { --g1: #0A3854; --g2: #0B6F95; --g3: #2DBFE6; --g-hi: rgba(255, 255, 255, .28); }
.gx, .panel, .tile-card, .stats-page .kpi, .stats-page .card, .pl-goal, .sidebar, .rc-hero, .rc-card, .note-card {
  --ink: #FFFFFF; --ink-2: rgba(255, 255, 255, .72); --ink-3: rgba(255, 255, 255, .5);
  --surface: rgba(255, 255, 255, .07); --bg-2: rgba(255, 255, 255, .09); --bg-3: rgba(255, 255, 255, .16); --hover: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16); --panel-line: transparent;
  --blue-ink: #8FE0F5; --blue-soft: rgba(255, 255, 255, .14); --solid: rgba(255, 255, 255, .16); --on-solid: #fff;
  --glass-bg: rgba(255, 255, 255, .07); --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .08);
  position: relative; isolation: isolate; overflow: hidden; color: var(--ink) !important;
  background: linear-gradient(150deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 125%) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow: 0 22px 46px -18px rgba(5, 30, 48, .55), inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}
:root:not([data-theme="dark"]) :is(.gx, .panel, .tile-card, .stats-page .kpi, .stats-page .card, .pl-goal, .sidebar, .rc-hero, .rc-card) {
  box-shadow: 0 20px 44px -18px rgba(8, 58, 91, .45), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}
/* the moving light: drifts, swings and tilts, on the compositor */
:is(.gx, .panel, .tile-card, .stats-page .kpi, .stats-page .card, .pl-goal, .sidebar, .rc-hero, .rc-card, .note-card)::before {
  content: "" !important; display: block !important; position: absolute; z-index: -1; inset: -60%; pointer-events: none; opacity: 1 !important;
  background: radial-gradient(closest-side at 50% 50%, var(--g-hi), transparent 70%) 0 0 / 55% 55% no-repeat;
  animation: gxDrift var(--gdur) ease-in-out infinite alternate; animation-delay: var(--gdel, 0s);
  transform-origin: 50% 50%;
}
@keyframes gxDrift {
  0% { transform: translate(55%, -5%) rotate(0deg) scale(1); }
  33% { transform: translate(10%, 25%) rotate(14deg) scale(1.15); }
  66% { transform: translate(60%, 45%) rotate(-10deg) scale(.95); }
  100% { transform: translate(25%, 60%) rotate(8deg) scale(1.1); }
}
/* no two alike */
:is(.panel, .tile-card, .kpi, .card):nth-child(2) { --gdur: 26s; --gdel: -7s; }
:is(.panel, .tile-card, .kpi, .card):nth-child(3) { --gdur: 19s; --gdel: -12s; }
:is(.panel, .tile-card, .kpi, .card):nth-child(4) { --gdur: 30s; --gdel: -4s; }
.home-col:nth-child(2) .panel { --gdel: -15s; }
:root[data-theme="dark"] .panel.p-yellow { --g2: #0A3550; --g3: #127FA8; }
:root[data-theme="dark"] .panel.p-coral { --g2: #0B3046; --g3: #0E98BE; }
:root[data-theme="dark"] .panel.p-week { --g2: #0A2233; --g3: #0E98BE; }
:root:not([data-theme="dark"]) .panel.p-yellow { --g1: #0B4563; --g3: #3FC9EC; }
:root:not([data-theme="dark"]) .panel.p-coral { --g1: #08304A; --g2: #0A6385; }
:root:not([data-theme="dark"]) .panel.p-week { --g1: #06243A; --g2: #0A5577; --g3: #12AAD4; }
.sidebar { --g1: #05090D; --g2: #08202F; --g3: #0A4A66; overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(170deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 130%) 0 0 / 100% 200% !important; animation: sbShift 30s ease-in-out infinite alternate; }
:root:not([data-theme="dark"]) .sidebar { --g1: #0A2E45; --g2: #0B4F70; --g3: #0E7FA6; }
.sidebar::before { display: none !important; }
@keyframes sbShift { from { background-position: 0 0; } to { background-position: 0 100%; } }
html.no-motion :is(.gx, .panel, .tile-card, .kpi, .card, .pl-goal, .sidebar)::before { animation: none; }
@media (prefers-reduced-motion: reduce) { :is(.gx, .panel, .tile-card, .kpi, .card, .pl-goal, .sidebar)::before { animation: none; } }

/* contents of gradient surfaces */
.panel .tcard, .panel .prow, .panel-list .task, .panel .jw-mini, .panel .j-mini {
  background: rgba(255, 255, 255, .07) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important; color: #fff;
}
.panel .tcard:hover, .panel .prow:hover { background: rgba(255, 255, 255, .12) !important; transform: none; }
.panel .tcard.is-done { background: rgba(18, 170, 212, .22) !important; }
.panel .check { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); border-color: rgba(255, 255, 255, .45); }
.panel .tile.big { background: #fff !important; color: #0B6F95 !important; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.panel .tile.big .ic-mask { background: #0B6F95; }
.panel .tile.big .ic-img { filter: none; }
.panel .count { background: rgba(255, 255, 255, .14); color: #fff; }
.panel .view-all, .p-week .view-all { background: rgba(255, 255, 255, .16); color: #fff !important; }
.panel .view-all:hover { background: rgba(255, 255, 255, .26); }
.panel .date-pill, .panel .chip { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
.panel .link-btn { background: rgba(255, 255, 255, .14); color: #fff; }
.panel .jpw { box-shadow: none; background: rgba(255, 255, 255, .1) !important; }
.panel .sub-txt.done-at { color: #8FE0F5; }
.sidebar a.on, .sidebar a[aria-current="page"], .sidebar a.active { background: rgba(255, 255, 255, .14); color: #fff; }
.sidebar .sb-search, .sidebar .sb-user { background: rgba(255, 255, 255, .08); box-shadow: none; border-color: transparent; }
.sidebar .logo-svg .ld, .sidebar .brand-word { fill: #fff; color: #fff; }
.sidebar .sb-kbd, .sidebar kbd { background: rgba(255, 255, 255, .16); color: #fff; }
.sidebar .sb-badge { background: #fff; color: #0B6F95; }
.sb-toggle { z-index: 46; }

/* task-card text badges: plain, white, a little bolder */
.when { font-family: var(--font, inherit) !important; letter-spacing: 0 !important; text-transform: none !important; }
.when.w-times, .when.w-progress { background: none !important; border: 0 !important; box-shadow: none !important; padding-left: 0; padding-right: 0; font-weight: 600; color: var(--ink); }
.panel .when.w-times, .panel .when.w-progress { color: #fff; }
.panel .when.w-today, .panel .when.w-due, .panel .when.w-week, .panel .when.w-time { background: rgba(255, 255, 255, .14); color: #fff; }

/* Home KPI tiles: four blues */
.tile-card { --tink: #fff; color: #fff !important; }
.tile-card .tc-top, .tile-card small, .tile-card b, .tile-card .ic { color: #fff !important; }
.tile-card.t-orange { --g1: #03111B; --g2: #062A42; --g3: #083A5B; --g-hi: rgba(14, 152, 190, .45); }
.tile-card.t-green { --g1: #0A6F92; --g2: #12AAD4; --g3: #7FDDF5; --g-hi: rgba(255, 255, 255, .35); }
.tile-card.t-red { --g1: #062236; --g2: #0B5576; --g3: #0E98BE; --g-hi: rgba(127, 221, 245, .45); }
.tile-card.t-blue { --g1: #07131D; --g2: #0B3F5E; --g3: #1A9CC6; }
:root:not([data-theme="dark"]) .tile-card.t-orange { --g1: #062438; --g2: #083A5B; --g3: #0B5C82; }
:root:not([data-theme="dark"]) .tile-card.t-green { --g1: #12AAD4; --g2: #46C6EA; --g3: #A5E8F8; }
:root:not([data-theme="dark"]) .tile-card.t-green :is(b, small, .tc-top, .ic) { color: #04324A !important; }
.tile-card:hover { transform: none !important; }
/* streak: a living flame and a soft pulse ring */
.tile-card.t-red .tc-top .ic { animation: flame 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flame { 0%, 100% { transform: scale(1) rotate(-3deg); } 30% { transform: scale(1.12, 1.18) rotate(3deg); } 60% { transform: scale(.96, 1.06) rotate(-2deg); } }
.tile-card.t-red::after { content: "" !important; display: block !important; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 1 !important; background: none !important;
  box-shadow: inset 0 0 0 2px rgba(127, 221, 245, .55); animation: streakPulse 2.4s ease-out infinite; }
@keyframes streakPulse { 0% { box-shadow: inset 0 0 0 2px rgba(127, 221, 245, .7), 0 0 0 0 rgba(18, 170, 212, .55); } 70% { box-shadow: inset 0 0 0 2px rgba(127, 221, 245, 0), 0 0 0 14px rgba(18, 170, 212, 0); } 100% { box-shadow: inset 0 0 0 2px rgba(127, 221, 245, 0), 0 0 0 0 rgba(18, 170, 212, 0); } }
.tile-card.t-red { overflow: visible; }
.tile-card.t-red::before { inset: 0; border-radius: inherit; background-size: 120% 120%; }

/* stats on gradients */
.stats-page .kpi span, .stats-page .card .muted { color: rgba(255, 255, 255, .7); }
.stats-page .kpi b, .stats-page .card h3 { color: #fff; }
.stats-page .bc-track { background: rgba(255, 255, 255, .1); }
.stats-page .bc-fill { background: linear-gradient(180deg, #7FDDF5, #12AAD4); }

/* buttons never move: only their glow eases in and out */
.btn, .view-all, .btn.pill, .ob-next, .ob-skip, .icon-btn, .pl-set, .send-btn {
  transition: background-color .35s var(--ease-out), box-shadow .45s var(--ease-out), color .25s, filter .35s var(--ease-out) !important;
}
.btn:hover, .btn:active, .view-all:hover, .btn.pill:hover, .ob-next:hover, .ob-skip:hover, .icon-btn:hover, .send-btn:hover, .lx .btn:hover { transform: none !important; }
.btn.pill:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 6px rgba(14, 152, 190, .16), 0 12px 32px rgba(14, 152, 190, .45); filter: none; }
.view-all:hover { box-shadow: 0 0 0 5px rgba(14, 152, 190, .16), 0 8px 22px rgba(14, 152, 190, .35); }

/* journal: date only, pages fade */
.page.journal:not(.j-out) { animation: jIn .35s var(--ease-out) both; }
.page.journal.j-out { opacity: 0; transition: opacity .22s ease-in; }
@keyframes jIn { from { opacity: 0; } to { opacity: 1; } }

/* planner: plain day columns, custom goal stepper */
.pl-day, :root[data-theme="dark"] .pl-day { background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 6px 2px; }
.pl-day.today { box-shadow: none !important; }
.pl-day.today header b { color: var(--blue-ink); }
.pl-day.over { background: rgba(14, 152, 190, .10) !important; border-radius: 20px; }
.pl-drop { border-radius: 18px; padding: 4px; min-height: 300px; background: color-mix(in srgb, var(--ink) 3%, transparent); }
.pl-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.pl-stepper button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12); transition: background-color .3s var(--ease-out), box-shadow .35s var(--ease-out); }
.pl-stepper button:hover { background: rgba(255, 255, 255, .22); box-shadow: 0 0 0 4px rgba(127, 221, 245, .18); }
.pl-stepper button:disabled { opacity: .35; }
.pl-stepper output { min-width: 40px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; }
.pl-goal-in input { display: none; }

/* ---------------- landing ---------------- */
.landing.lx { position: relative; background: transparent !important; }
html.is-landing, html.is-landing body { background: #060A0E; }
:root:not([data-theme="dark"]).is-landing, :root:not([data-theme="dark"]).is-landing body { background: #F2F8FB; }
.lx-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(165deg, #08121A 0%, #060A0E 45%, #071826 100%); }
:root:not([data-theme="dark"]) .lx-bg { background: linear-gradient(165deg, #E3F3FA 0%, #FFFFFF 45%, #E6F1F7 100%); }
.lx-bg i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: .55; animation: lxBlob 26s ease-in-out infinite alternate; }
.lx-bg i:nth-child(1) { left: -20vmax; top: -25vmax; background: radial-gradient(closest-side, rgba(14, 152, 190, .55), transparent); }
.lx-bg i:nth-child(2) { right: -25vmax; top: 20vh; background: radial-gradient(closest-side, rgba(8, 58, 91, .9), transparent); animation-duration: 32s; animation-delay: -9s; }
.lx-bg i:nth-child(3) { left: 20vw; bottom: -40vmax; background: radial-gradient(closest-side, rgba(18, 170, 212, .35), transparent); animation-duration: 38s; animation-delay: -18s; }
:root:not([data-theme="dark"]) .lx-bg i { opacity: .35; }
@keyframes lxBlob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vw, 6vh) scale(1.12); } 100% { transform: translate(-6vw, 10vh) scale(.95); } }
.landing.lx > *:not(.lx-bg) { position: relative; z-index: 1; }
.landing.lx { --bg: transparent; }
:root[data-theme="dark"] .landing.lx { --surface: rgba(255, 255, 255, .05); }
.lx-hero > * { animation: lxFade .9s var(--ease-out) both !important; }
@keyframes lxFade { from { opacity: 0; } to { opacity: 1; } }

/* nav: bare at the top, a white floating pill once you scroll */
.lx .l-nav { position: fixed !important; z-index: 40; top: 0; left: 0; right: 0; height: 76px; padding: 0 var(--gutter); border: 0 !important; background: transparent !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; transition: top .5s var(--ease-out), left .5s var(--ease-out), right .5s var(--ease-out), height .5s var(--ease-out), background-color .45s var(--ease-out), box-shadow .45s var(--ease-out), border-radius .5s var(--ease-out); border-radius: 0; }
.lx .l-nav.scrolled { top: 14px; left: max(16px, calc(50% - 560px)); right: max(16px, calc(50% - 560px)); height: 60px; padding: 0 10px 0 22px; border-radius: 999px; background: #FFFFFF !important; box-shadow: 0 12px 34px rgba(4, 20, 32, .18), 0 0 0 1px rgba(0, 0, 0, .04); }
.lx .l-nav.scrolled .brand-word, .lx .l-nav.scrolled .l-links a, .lx .l-nav.scrolled .l-login { color: #0B0D10 !important; }
.lx .l-nav.scrolled .logo-svg .ld { fill: #0B0D10; }
.lx .l-nav.scrolled .l-links a:hover, .lx .l-nav.scrolled .l-login:hover { color: #0B6F95 !important; }

/* research and privacy: full width, responsive */
.lx-research, .lx-privacy { max-width: 1200px !important; width: 100%; margin: 0 auto; padding-left: 24px !important; padding-right: 24px !important; box-sizing: border-box; }
.lx-row { grid-template-columns: minmax(150px, 260px) minmax(0, 1fr); }
.lx-row p { max-width: 720px; }
.lx-facts > div { background: color-mix(in srgb, var(--ink) 5%, transparent); }
@media (max-width: 760px) {
  .lx-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lx-num b { font-size: 52px; }
  .lx-row p, .lx-privacy > p, .lx-copy p { font-size: 18px; }
  .lx-facts { grid-template-columns: minmax(0, 1fr); }
}

/* week card: big, leaning in 3D, follows the pointer */
.lx-split { max-width: 1200px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lx-tilt { --rx: 12deg; --ry: -24deg; perspective: 1400px; display: grid; place-items: center; padding: 40px; }
.lx-tilt .cc { width: 440px; max-width: 100%; padding: 32px; border-radius: 36px; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(6deg); transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); box-shadow: -40px 50px 90px -30px rgba(4, 20, 32, .7) !important; }
.lx-tilt:hover .cc { transition: transform .15s linear, box-shadow .6s var(--ease-out); }
.lx-tilt .cc-head { font-size: 20px; }
.lx-tilt .cc-head b { font-size: 34px; }
.lx-tilt .cc-week { gap: 10px; }
.lx-tilt .cc-mark { height: 200px; }
.lx-tilt .cc-mark .logo-svg { width: 190px; height: 190px; }
.lx-tilt .cc-cap b { font-size: 22px; }
.lx-tilt .cc-cap span { font-size: 16px; }
.lx-stage .demo { transform-origin: 50% 0%; will-change: transform; transition: transform .1s linear; animation: lxFade 1s var(--ease-out) both .2s !important; }
@media (max-width: 760px) {
  .lx-split { grid-template-columns: minmax(0, 1fr); }
  .lx-tilt { padding: 10px 0 30px; }
  .lx-tilt .cc { width: 320px; padding: 22px; }
  .lx-tilt .cc-mark { height: 130px; } .lx-tilt .cc-mark .logo-svg { width: 120px; height: 120px; }
}

/* footer */
.lx-footer { margin-top: 40px; padding: 70px 24px 28px; max-width: 1200px; margin-left: auto; margin-right: auto; box-sizing: border-box; border-top: 1px solid var(--line); }
.lx-foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 50px; }
.lx-news h3 { margin: 0; font-family: var(--display); font-size: 28px; letter-spacing: -.03em; color: var(--ink); }
.lx-news > p { margin: 10px 0 18px; color: var(--ink-2); }
.lx-news-form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); max-width: 440px; }
.lx-news-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.lx-news-form:focus-within { box-shadow: 0 0 0 2px #0E98BE; }
.lx-news-msg { min-height: 20px; font-size: 14px; margin: 10px 0 0; color: var(--ink-2); }
.lx-news-msg.bad { color: #F07B6E; } .lx-news-msg a { color: #12AAD4; }
.lx-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.lx-cols h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.lx-cols a { display: block; padding: 5px 0; color: var(--ink-2); font-size: 15px; transition: color .2s; }
.lx-cols a:hover { color: var(--ink); }
.lx-wordmark { margin: 60px 0 10px; font-family: var(--display); font-weight: 700; letter-spacing: -.06em; line-height: .8; font-size: clamp(80px, 21vw, 300px); white-space: nowrap;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 92%, transparent), color-mix(in srgb, #0E98BE 60%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.lx-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.lx-foot-bottom a { color: var(--ink-2); }
.lx-foot-bottom a:hover { color: var(--ink); }
@media (max-width: 900px) { .lx-foot-top { grid-template-columns: minmax(0, 1fr); } .lx-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lx .l-foot { display: none; }
.legal .lg-doc { position: relative; z-index: 1; }
.rc-hero { padding: 20px; border-radius: 26px; }
.rc-ring { display: flex !important; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.rc-ring span { margin-top: 4px !important; }
.rc-ring b { white-space: nowrap; }
.rc-kpis div { min-width: 0; }
.rc-kpis span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .rc-hero { grid-template-columns: minmax(0, 1fr); justify-items: stretch; } .rc-ring { justify-self: center; } }
.landing.lx > .l-nav { z-index: 60; }
.lx-tilt .cc { animation: none !important; }
.sidebar { position: sticky; border-right: 0 !important; box-shadow: none !important; }
@media (max-width: 900px) { .sidebar { position: fixed; } }
.rc-hero .rc-ring::before { background: #071A27; }
:root:not([data-theme="dark"]) .rc-hero .rc-ring::before { background: #0A4F6E; }

/* =====================================================================
   v10: no edge lines, glow boxes, fire glow on streak, new sidebar
   ===================================================================== */
/* no hairlines on gradient surfaces */
.gx, .panel, .tile-card, .stats-page .kpi, .stats-page .card, .pl-goal, .sidebar, .rc-hero, .rc-card, .card.rc-detail, .rc-detail .card {
  border: 0 !important; outline: 0;
  box-shadow: 0 24px 50px -20px rgba(3, 20, 32, .6) !important;
}
:root:not([data-theme="dark"]) :is(.gx, .panel, .tile-card, .stats-page .kpi, .stats-page .card, .pl-goal, .rc-hero, .rc-card) { box-shadow: 0 22px 48px -20px rgba(8, 58, 91, .5) !important; }
.recap-page .card, .page .card:has(.rc-hero) { border: 0 !important; box-shadow: none !important; background: transparent !important; }

/* Today, Journal, Channels, Notes: a light blue glow box so their content reads */
.home .panel { box-shadow: 0 0 0 0 transparent, 0 26px 60px -22px rgba(18, 170, 212, .55), 0 0 70px -18px rgba(127, 221, 245, .28) !important; }
.panel .tcard, .panel .prow, .panel .jw-mini, .panel .j-mini, .panel .jpw, .panel .ch-row, .panel .note-row {
  background: linear-gradient(135deg, rgba(127, 221, 245, .20) 0%, rgba(18, 170, 212, .09) 60%, rgba(255, 255, 255, .05) 100%) !important;
  box-shadow: 0 10px 24px -12px rgba(0, 10, 20, .55), 0 0 0 0 transparent !important; border: 0 !important;
}
.panel .tcard:hover, .panel .prow:hover { background: linear-gradient(135deg, rgba(127, 221, 245, .28) 0%, rgba(18, 170, 212, .14) 60%, rgba(255, 255, 255, .07) 100%) !important;
  box-shadow: 0 14px 30px -12px rgba(0, 10, 20, .6), 0 0 26px -6px rgba(127, 221, 245, .35) !important; }
.panel .tcard.is-done { background: linear-gradient(135deg, rgba(127, 221, 245, .34), rgba(18, 170, 212, .2)) !important; }

/* streak: no ring, a flickering light-blue fire above the card */
.tile-card.t-red::after { content: "" !important; display: block !important; position: absolute; z-index: -2; left: 6%; right: 6%; top: -26px; height: 70%; border-radius: 50%;
  background: radial-gradient(60% 70% at 50% 70%, rgba(127, 221, 245, .95), rgba(18, 170, 212, .55) 45%, transparent 75%) !important; box-shadow: none !important;
  filter: blur(22px); opacity: .85 !important; transform-origin: 50% 100%; animation: fireGlow 2.2s ease-in-out infinite !important; pointer-events: none; }
.tile-card.t-red { box-shadow: 0 -10px 40px -8px rgba(127, 221, 245, .55), 0 24px 50px -20px rgba(3, 20, 32, .6) !important; animation: fireBox 2.2s ease-in-out infinite; }
.tile-card.t-red::before { border-radius: inherit; }
.tile-card.t-red > * { position: relative; z-index: 1; }
.tile-card.t-red { overflow: visible !important; }
.tile-card.t-red .gx-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
@keyframes fireGlow {
  0%, 100% { transform: scale(1, 1) translateX(0); opacity: .75; }
  20% { transform: scale(1.06, 1.25) translateX(-3%); opacity: .95; }
  40% { transform: scale(.95, 1.05) translateX(2%); opacity: .7; }
  60% { transform: scale(1.08, 1.35) translateX(-1%); opacity: 1; }
  80% { transform: scale(.98, 1.1) translateX(3%); opacity: .8; }
}
@keyframes fireBox {
  0%, 100% { box-shadow: 0 -10px 36px -10px rgba(127, 221, 245, .45), 0 24px 50px -20px rgba(3, 20, 32, .6); }
  60% { box-shadow: 0 -16px 52px -8px rgba(127, 221, 245, .75), 0 24px 50px -20px rgba(3, 20, 32, .6); }
}
html.no-motion .tile-card.t-red, html.no-motion .tile-card.t-red::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .tile-card.t-red, .tile-card.t-red::after { animation: none !important; } }

/* ---------------- sidebar: no page-like scrolling; collapse hides all but the top ---------------- */
.sidebar { overflow: hidden !important; }
.sb-mid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; margin: 0 -12px; padding: 0 12px; }
.sb-mid::-webkit-scrollbar { display: none; }
.sb-bottom { flex: none; display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.sb-bottom .sb-leave { margin-top: 0 !important; }
.home-hero { min-height: 0; }

@media (min-width: 901px) {
  :root { --sbw-full: 272px; --sb-card-h: 128px; }
  .shell { grid-template-columns: var(--sbw) minmax(0, 1fr) !important; }
  .shell > #view { grid-column: 2; }
  .sidebar { position: fixed !important; top: 0; left: 0; width: var(--sbw-full); height: 100vh; height: 100dvh; border-radius: 0;
    transition: top .5s var(--ease-out), left .5s var(--ease-out), height .55s var(--ease-out), border-radius .5s var(--ease-out), box-shadow .5s var(--ease-out) !important; }
  .sb-mid, .sb-bottom { transition: opacity .3s var(--ease-out), visibility 0s linear 0s; }
  html.sb-collapsed { --sbw: 0px; }
  html.sb-collapsed .sidebar { top: 12px; left: 12px; height: var(--sb-card-h); border-radius: 24px; box-shadow: 0 18px 40px -14px rgba(3, 20, 32, .6) !important; }
  html.sb-collapsed .sb-mid, html.sb-collapsed .sb-bottom { opacity: 0; visibility: hidden; transition: opacity .2s ease-in, visibility 0s linear .2s; }
  /* keep labels in the top part visible when collapsed (undo the old mini mode) */
  html.sb-collapsed .sidebar .sb-top .sb-label, html.sb-collapsed .sb-top-actions, html.sb-collapsed .sidebar .sb-search .sb-label, html.sb-collapsed .sidebar .sb-kbd { opacity: 1 !important; pointer-events: auto !important; }
  html.sb-collapsed .sb-search { background: rgba(255, 255, 255, .08) !important; }
  .sb-toggle { left: calc(var(--sbw-full) - 14px) !important; top: 26px; transition: top .5s var(--ease-out), left .5s var(--ease-out), background-color .3s, box-shadow .35s var(--ease-out) !important; }
  html.sb-collapsed .sb-toggle { left: calc(12px + var(--sbw-full) - 14px) !important; top: 38px; }
  html.sb-collapsed #view { padding-top: calc(var(--sb-card-h) + 10px); }
  #view { transition: padding-top .5s var(--ease-out); }
}
.sb-toggle { background: #fff !important; color: #0B4F70 !important; border: 0 !important; box-shadow: 0 6px 16px rgba(3, 20, 32, .35) !important; }
.sb-toggle:hover { box-shadow: 0 0 0 5px rgba(127, 221, 245, .25), 0 6px 16px rgba(3, 20, 32, .35) !important; transform: none !important; }
/* streak card: gradient moves to ::before so the fire (::after) can sit underneath it */
.tile-card.t-red { background: transparent !important; }
.tile-card.t-red::before { inset: 0 !important; border-radius: inherit; animation: none !important; transform: none !important;
  background: radial-gradient(70% 90% at 80% 0%, rgba(127, 221, 245, .45), transparent 70%), linear-gradient(150deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 125%) !important; background-size: auto !important; }
html .shell > .sidebar::before { display: none !important; content: none !important; }

/* collapsed card: full-height search and a row of quick icons */
.sb-top, .sb-search { flex: none !important; }
.sb-search { min-height: 40px; }
.sb-quick { display: flex; justify-content: space-between; gap: 4px; flex: none; max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; margin: 0;
  transition: max-height .45s var(--ease-out), opacity .25s var(--ease-out), margin .45s var(--ease-out), visibility 0s linear .45s; }
.sidebar .sb-quick a { flex: 1; justify-content: center; padding: 0 !important; height: 40px; border-radius: 12px; display: flex; align-items: center; color: rgba(255, 255, 255, .78); }
.sidebar .sb-quick a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sidebar .sb-quick a.active { background: rgba(255, 255, 255, .16); color: #fff; }
@media (min-width: 901px) {
  :root { --sb-card-h: 176px; }
  html.sb-collapsed .sb-quick { max-height: 44px; opacity: 1; visibility: visible; margin-top: 4px; transition: max-height .45s var(--ease-out), opacity .35s var(--ease-out) .1s, margin .45s var(--ease-out), visibility 0s; }
  html.sb-collapsed .sb-search { margin-bottom: 6px; }
}

/* Today and Tasks pages: same gradient panel and cards as Home's Today */
.panel.list-panel { padding: 14px; border-radius: 28px; margin: 0 0 18px; }
.panel.list-panel .list { margin: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible; display: flex; flex-direction: column; gap: 10px; }
.panel.list-panel .list > .task { border-radius: 18px; margin: 0; padding: 12px 16px; border: 0 !important; }
.panel.list-panel .list > .task::before, .panel.list-panel .list > .task::after { display: none !important; }
.panel.list-panel .task-title { color: #fff; }
.panel.list-panel .task-sub, .panel.list-panel .sub-txt { color: rgba(255, 255, 255, .7); }
.panel.list-panel .icon-btn { color: rgba(255, 255, 255, .8); }
.panel.list-panel .icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.panel.list-panel .reorder .icon-btn:disabled { opacity: .3; }
.page > .section-head { margin-top: 26px; }

/* notes: gradient cards with an icon, header and a full date */
.note-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.note-card { gap: 10px; padding: 18px; border-radius: 24px; min-height: 196px; transition: box-shadow .45s var(--ease-out) !important; }
.note-card:hover { transform: none !important; box-shadow: 0 0 0 0 transparent, 0 26px 56px -20px rgba(18, 170, 212, .6), 0 0 40px -12px rgba(127, 221, 245, .35) !important; }
.note-card:nth-child(3n+2) { --gdel: -8s; --gdur: 27s; }
.note-card:nth-child(3n) { --gdel: -15s; --gdur: 19s; }
.nc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.nc-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: #fff; color: #0B6F95; box-shadow: 0 8px 18px rgba(0, 10, 20, .25); flex: none; }
.nc-flags { display: flex; align-items: center; gap: 6px; }
.nc-tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; }
.nc-pin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; }
.note-card h3 { font-family: var(--display); font-size: 20px; font-weight: 700; color: #fff; margin-top: 4px; }
.note-card p { color: rgba(255, 255, 255, .74); }
.nc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: rgba(255, 255, 255, .66); }
.nc-foot span { display: inline-flex; align-items: center; gap: 6px; }
.note-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; }
.note-head .note-title { flex: 1; min-width: 0; margin: 0; }
.note-ic { width: 58px; height: 58px; flex: none; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #0A3854 0%, #0B6F95 55%, #2DBFE6 125%); box-shadow: 0 12px 26px -10px rgba(8, 58, 91, .55); transition: box-shadow .4s var(--ease-out); }
.note-ic:hover { box-shadow: 0 0 0 5px rgba(14, 152, 190, .18), 0 12px 26px -10px rgba(8, 58, 91, .55); }
.note-ic:focus-visible { outline: 3px solid rgba(14, 152, 190, .5); outline-offset: 2px; }
.icon-pick { display: grid !important; grid-template-columns: repeat(8, 40px); gap: 4px; padding: 8px !important; }
.icon-pick button { width: 40px; height: 40px; padding: 0 !important; justify-content: center !important; border-radius: 12px; }
.icon-pick button.on { background: #0E98BE !important; color: #fff !important; }
@media (max-width: 520px) { .icon-pick { grid-template-columns: repeat(6, 40px); } }
.note-card { border: 0 !important; box-shadow: 0 22px 48px -20px rgba(5, 30, 48, .55) !important; }
.icon-pick button.on .ic, .icon-pick button.on svg { color: #fff !important; stroke: currentColor; }

/* =====================================================================
   journal: gradient cards, mood faces
   ===================================================================== */
.journal .gx { border-radius: 28px; }
.j-editor.gx { padding: 24px; }
.j-editor .j-label { color: rgba(255, 255, 255, .7); }
.mood-row { gap: 10px; }
.mood { gap: 10px; padding: 16px 6px 14px; border-radius: 20px; border: 0 !important; background: rgba(255, 255, 255, .07) !important; color: rgba(255, 255, 255, .78) !important; font-size: 14px; font-weight: 600;
  transition: background-color .35s var(--ease-out), box-shadow .45s var(--ease-out), color .25s !important; transform: none !important; }
.mood .mface { color: var(--mc); transition: color .25s; }
.mood:hover { background: rgba(255, 255, 255, .12) !important; color: #fff !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--mc) 40%, transparent) inset; }
.mood.on { background: var(--mc) !important; color: #fff !important; box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--mc) 75%, transparent), 0 0 0 4px color-mix(in srgb, var(--mc) 25%, transparent) !important; }
.mood.on .mface { color: #fff; }
.mface .f { fill: currentColor; stroke: none; }
.mface path.f { stroke: currentColor; stroke-width: 1.2; }
.j-prompts .chip, .j-editor .chip { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 0 !important; }
.j-prompts .chip:hover, .j-editor .chip:hover { background: rgba(255, 255, 255, .2) !important; }
.j-text { background: rgba(255, 255, 255, .06) !important; color: #fff !important; border: 0 !important; border-radius: 18px !important; padding: 16px 18px !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.j-text::placeholder { color: rgba(255, 255, 255, .45); }
.j-text:focus { box-shadow: inset 0 0 0 2px rgba(127, 221, 245, .55) !important; outline: none; }
.j-bar { background: rgba(255, 255, 255, .12) !important; }
.j-bar i { background: linear-gradient(90deg, #7FDDF5, #12AAD4) !important; }
.j-meter span, .j-foot .muted { color: rgba(255, 255, 255, .7) !important; }
.j-meter.ok span { color: #8FE0F5 !important; }
.j-weather.gx, .j-stats.gx { padding: 20px; }
.j-stats .card-head h3 { color: #fff; }
.mc-track { background: rgba(255, 255, 255, .08) !important; border-radius: 999px !important; }
.mc-track i { border-radius: 999px !important; }
.mc-face { display: grid; place-items: center; height: 14px; }
.mc-none { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mood-chart { height: 150px !important; }
.j-avg { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .75) !important; }
.j-avg b { color: #fff; }
.j-avg-face { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.j-words .chip { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 0 !important; }
.js-kpis > div { background: rgba(255, 255, 255, .07) !important; border: 0 !important; border-radius: 16px; }
.js-kpis b { color: #fff !important; }
.js-kpis span { color: rgba(255, 255, 255, .65) !important; }
.mood-pill { gap: 6px; padding: 4px 10px 4px 6px !important; background: color-mix(in srgb, var(--mc) 22%, transparent) !important; color: #fff !important; font-weight: 600; }
.mood-pill .mface { color: var(--mc); }
.mood-face-pill { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--mc); box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--mc) 70%, transparent); }
/* book: pages on the gradient */
.book-spread.gx { padding: 10px; border-radius: 30px; }
.book-spread.gx .bpage { background: rgba(255, 255, 255, .07) !important; border: 0 !important; box-shadow: none !important; color: #fff; }
.book-spread.gx .bpage + .bpage { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .1) !important; }
.book-spread.gx .bpage header b { color: #fff; }
.book-spread.gx .bp-text { color: rgba(255, 255, 255, .86); }
.book-spread.gx .bpage footer, .book-spread.gx .bpage footer a { color: rgba(255, 255, 255, .65); }
.book-spread.gx .bpage footer a:hover { color: #fff; }
.book-spread.gx::after { display: none !important; }
.book-nav .icon-btn { background: var(--surface); }
.mood-pill { background: var(--mc) !important; color: #fff !important; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--mc) 80%, #000); }
.mood-pill .mface { color: #fff; }
.gx a:not(.btn):not(.view-all):not(.chip) { color: #fff; }
.gx .link-btn, .j-weather.gx button.link, .j-weather.gx .jw-change { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.book-spread.gx .bpage footer .short { color: #FFC9B5 !important; }
.gx .btn.text { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   gradients on reflections, nudges, notifications, celebrations, sheets
   ===================================================================== */
.nudge.gx { border: 0 !important; border-radius: 20px; padding: 14px 12px 14px 14px; }
.nudge.gx::after { display: none !important; }
.nudge.gx .nudge-ic { width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--nc); box-shadow: 0 6px 14px rgba(0, 10, 20, .25); }
.nudge.gx.tone-warn { --nc: #E08A2E; --g2: #0B3550; } .nudge.gx.tone-bad { --nc: #D9534A; --g2: #0D2D45; }
.nudge.gx.tone-good, .nudge.gx.tone-journal { --nc: #0B84A6; } .nudge.gx.tone-info { --nc: #4A5966; }
.nudge.gx .nudge-txt b { color: #fff; font-weight: 600; }
.nudge.gx .nudge-txt span { color: rgba(255, 255, 255, .74); }
.nudge.gx .nudge-act { color: #fff; background: rgba(255, 255, 255, .14); font-weight: 600; }
.nudge.gx .nudge-act:hover { background: rgba(255, 255, 255, .24); }
.nudge.gx .nudge-x { color: rgba(255, 255, 255, .7); }
.nudge.gx .nudge-x:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nudges .nudge.gx:nth-child(2) { --gdel: -9s; } .nudges .nudge.gx:nth-child(3) { --gdel: -16s; }

.toast.gx { border: 0 !important; border-radius: 20px; padding: 12px; box-shadow: 0 22px 46px -16px rgba(3, 20, 32, .6) !important; }
.toast.gx .toast-ic { width: 36px; height: 36px; border-radius: 12px; background: #fff; color: #0B84A6; }
.toast.gx.tone-bad .toast-ic { color: #D9534A; }
.toast.gx.tone-info .toast-ic { color: #4A5966; }
.toast.gx .toast-txt b { color: #fff; font-weight: 600; }
.toast.gx .toast-txt span { color: rgba(255, 255, 255, .78); }
.toast.gx .toast-txt:not(:has(b)) span { color: #fff; }
.toast.gx .toast-btn { color: #fff; background: rgba(255, 255, 255, .16); }
.toast.gx .toast-btn:hover { background: rgba(255, 255, 255, .26); }
.toast.gx .toast-x { color: rgba(255, 255, 255, .7); }
.toast.gx .toast-bar { background: rgba(127, 221, 245, .85); }

.celebrate.gx { position: fixed !important; border: 0 !important; border-radius: 26px; box-shadow: 0 28px 60px -18px rgba(3, 20, 32, .7), 0 0 50px -14px rgba(127, 221, 245, .45) !important; }
.celebrate.gx .cb-mark .ld { fill: #fff; }
.celebrate.gx .cb-ring .t { stroke: rgba(255, 255, 255, .18); }
.celebrate.gx .cb-ring .v { stroke: #7FDDF5; }
.celebrate.gx b, .celebrate.gx h3, .celebrate.gx strong { color: #fff; }
.celebrate.gx p, .celebrate.gx span:not(.cb-badge) { color: rgba(255, 255, 255, .78); }
.celebrate.gx .cb-x, .celebrate.gx button { color: rgba(255, 255, 255, .8); }

/* sheets: static gradient (they scroll, so no moving layer) */
html .sheet.gx { position: relative !important; overflow: auto !important; border: 0 !important; border-radius: 28px;
  background: radial-gradient(120% 80% at 100% 0%, var(--g-hi), transparent 60%), linear-gradient(150deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 125%) !important;
  box-shadow: 0 40px 90px -20px rgba(3, 20, 32, .7) !important; }
html .sheet.gx::before { display: none !important; content: none !important; }
.sheet.gx .field input, .sheet.gx .field textarea, .sheet.gx .field select, .sheet.gx input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .sheet.gx textarea, .sheet.gx select {
  background: rgba(255, 255, 255, .08) !important; color: #fff !important; border: 0 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1) !important; }
.sheet.gx input::placeholder, .sheet.gx textarea::placeholder { color: rgba(255, 255, 255, .45); }
.sheet.gx input:focus, .sheet.gx textarea:focus, .sheet.gx select:focus { box-shadow: inset 0 0 0 2px rgba(127, 221, 245, .6) !important; outline: none; }
.sheet.gx select option { color: #0B0D10; }
.sheet.gx .btn.primary { background: #fff !important; color: #0B4F70 !important; }
.sheet.gx .btn.primary:hover { box-shadow: 0 0 0 5px rgba(255, 255, 255, .16) !important; }
.sheet.gx .btn.ghost, .sheet.gx .btn.secondary { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 0 !important; }
.sheet.gx .btn.ghost:hover { background: rgba(255, 255, 255, .2) !important; }
.sheet.gx .btn.danger, .sheet.gx .btn.primary.danger { background: #E5534B !important; color: #fff !important; }
.sheet.gx .sheet-title, .sheet.gx h2, .sheet.gx h3 { color: #fff; }
.sheet.gx .muted, .sheet.gx .hint, .sheet.gx label > span, .sheet.gx .sheet-sub { color: rgba(255, 255, 255, .7); }
.sheet.gx .seg, .sheet.gx .tabs { background: rgba(255, 255, 255, .08) !important; }
.sheet.gx .seg .on, .sheet.gx .seg button.on, .sheet.gx .tabs .on { background: #fff !important; color: #0B4F70 !important; }
.sheet.gx .chip { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 0 !important; }
.sheet.gx .chip.on { background: #fff !important; color: #0B4F70 !important; }
.sheet.gx .pl-dp, .sheet.gx .pl-seg span, .sheet.gx .pl-switch { background: rgba(255, 255, 255, .1); color: #fff; }
.sheet.gx .pl-dp.on { background: #fff; color: #0B4F70; }
.sheet.gx .pl-seg input:checked + span { background: #fff; color: #0B4F70; }
.sheet.gx .pl-switch input:checked + i { background: #12AAD4; }
.sheet.gx .pl-quick button { background: rgba(255, 255, 255, .14); color: #fff; }
.sheet.gx .sheet-header { background: rgba(4, 16, 26, .45) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 0 !important; }
:root:not([data-theme="dark"]) .sheet.gx .sheet-header { background: rgba(6, 40, 60, .35) !important; }
.sheet.gx .sheet-header button, .sheet.gx .sheet-header a { color: #fff !important; }
.rc-fact > span:first-child, .rc-fact .ic-wrap, .rc-fact i:first-child { background: #fff !important; color: #0B84A6 !important; }

/* input wrappers (icon + input): the wrapper is the field, the input stays transparent */
.sheet.gx :is(.search, .link-input, .pl-search, .pal-input, .loc-search) { background: rgba(255, 255, 255, .08) !important; border: 0 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1) !important; color: rgba(255, 255, 255, .7) !important; border-radius: 14px; transition: box-shadow .3s var(--ease-out); }
.sheet.gx :is(.search, .link-input, .pl-search, .pal-input, .loc-search):focus-within { box-shadow: inset 0 0 0 2px rgba(127, 221, 245, .6) !important; color: #fff !important; }
html .sheet.gx :is(.search, .link-input, .pl-search, .pal-input, .loc-search) input,
html :is(.search, .link-input, .pl-search, .pal-input, .loc-search) input { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; padding-left: 0 !important; padding-right: 0 !important; min-width: 0; }
.link-input input { flex: 1; height: 46px; }
.search { min-height: 46px; }
/* helper text inside icon grids spans the whole row */
.icon-grid > p, .icon-grid > .muted, .icon-grid > .empty { grid-column: 1 / -1; width: 100%; line-height: 1.5; margin: 6px 2px; }
.sheet.gx .icon-grid > p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
/* Done: empty state */
.done-empty { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); list-style: none; }
.de-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.done-empty b { display: block; color: #fff; font-weight: 600; }
.done-empty span { color: rgba(255, 255, 255, .65); font-size: 14px; }
html .sheet.gx :is(.search, .link-input, .pl-search, .pal-input, .loc-search) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
  background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }

/* =====================================================================
   premium pass: calmer shadows, pencil chip, blue Stats, still planner rows
   ===================================================================== */
/* calmer depth: one soft shadow, no coloured glow */
.home .panel, .panel, .panel.list-panel {
  box-shadow: 0 1px 2px rgba(3, 20, 32, .12), 0 18px 40px -22px rgba(3, 20, 32, .45) !important; }
:root:not([data-theme="dark"]) :is(.home .panel, .panel, .panel.list-panel) { box-shadow: 0 1px 2px rgba(8, 58, 91, .08), 0 18px 40px -24px rgba(8, 58, 91, .38) !important; }
.panel .tcard:hover, .panel .prow:hover { box-shadow: 0 10px 24px -14px rgba(0, 10, 20, .5) !important; }
.panel .tcard, .panel .prow { box-shadow: 0 8px 20px -14px rgba(0, 10, 20, .45) !important; }
.tile-card.t-red::after { opacity: .45 !important; filter: blur(26px); height: 55%; top: -18px; }
.tile-card.t-red { box-shadow: 0 -6px 26px -12px rgba(127, 221, 245, .4), 0 18px 40px -22px rgba(3, 20, 32, .45) !important; animation: none; }
.note-card:hover { box-shadow: 0 1px 2px rgba(3, 20, 32, .12), 0 22px 46px -22px rgba(3, 20, 32, .55) !important; }

/* pencil: already sits on a chip; hover darkens it */
.t-detail, .panel .t-detail { background: rgba(255, 255, 255, .14) !important; color: #fff !important; transition: background-color .35s var(--ease-out) !important; }
.t-detail:hover, .panel .t-detail:hover { background: rgba(0, 12, 22, .28) !important; color: #fff !important; }
:root:not([data-theme="dark"]) .tcard:not(.panel .tcard) .t-detail { background: var(--blue-soft) !important; color: var(--blue-ink) !important; }
:root:not([data-theme="dark"]) .tcard:not(.panel .tcard) .t-detail:hover { background: color-mix(in srgb, var(--blue-ink) 22%, transparent) !important; }

/* Stats: no red, only blues */
.stats-page .red-t { color: #fff !important; }
.stats-page .wd-bar i { background: linear-gradient(90deg, #7FDDF5, #12AAD4) !important; opacity: 1; }
.stats-page .wd-bar { background: rgba(255, 255, 255, .1) !important; }
.stats-page .bc-fill.has-miss { background: linear-gradient(180deg, #A9E9F9, #4CC3E3) !important; }
.stats-page .rate i, .stats-page .rate i.low { background: linear-gradient(90deg, #7FDDF5, #12AAD4) !important; }
.stats-page .bars span.low { background: #7FDDF5 !important; }

/* Planner library: no movement, just a darker background on hover */
.pl-task, .pl-task:hover { transform: none !important; transition: background-color .3s var(--ease-out) !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .05) !important; }
.pl-task:hover { background: color-mix(in srgb, var(--surface) 88%, #000) !important; }
:root[data-theme="dark"] .pl-task:hover { background: #171A1F !important; }

/* calendar: gradient glass cards, white days, blue rings when complete */
.cal-card.gx, .day-card.gx { border-radius: 28px; }
.cal-card.gx .cal-top h2, .cal-card.gx .cal-top b, .day-card.gx h2, .day-card.gx h3 { color: #fff; }
.cal-card.gx .cal-grid.head span { color: rgba(255, 255, 255, .6); }
.cal-card.gx .cal-cell { background: rgba(255, 255, 255, .04); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .3s var(--ease-out); }
.cal-card.gx .cal-cell.blank { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cal-card.gx .cal-cell:hover:not(.blank) { background: rgba(255, 255, 255, .12); }
.cal-card.gx .cal-num { color: #fff; }
.cal-card.gx .cal-cell.future .cal-num { color: rgba(255, 255, 255, .45); }
.cal-card.gx .cal-cell.today .cal-num { color: #7FDDF5; font-weight: 700; }
.cal-card.gx .cal-cell .ring-track { stroke: rgba(255, 255, 255, .14); }
.cal-card.gx .cal-cell .ring-val { stroke: #7FDDF5; }
.cal-card.gx .cal-cell.full .ring-val, .cal-card.gx .cal-cell .ring.full .ring-val { stroke: #12AAD4; }
.cal-card.gx .cal-cell.full .ring { filter: drop-shadow(0 0 6px rgba(18, 170, 212, .35)); }
.cal-card.gx .cal-cell.full .cal-num { color: #fff; font-weight: 700; }
.cal-card.gx .cal-cell.sel, .cal-card.gx .cal-cell.sel:hover:not(.blank) { background: #fff; }
.cal-card.gx .cal-cell.sel .cal-num { color: #0B4F70; }
.cal-card.gx .cal-cell.sel .ring-track { stroke: rgba(11, 79, 112, .15); }
.cal-card.gx .cal-cell.sel .ring-val { stroke: #0E98BE; }
.cal-card.gx .cal-cell.miss::after { background: #FF9C8F; }
.cal-card.gx .icon-btn, .cal-card.gx .btn { color: #fff; }
.cal-card.gx .icon-btn:hover, .cal-card.gx .btn:hover { background: rgba(255, 255, 255, .14); }
.cal-card.gx .btn.ghost { background: rgba(255, 255, 255, .12) !important; border: 0 !important; color: #fff !important; }
.day-card.gx .muted, .day-card.gx .small { color: rgba(255, 255, 255, .7); }
.day-card.gx .tcard { background: linear-gradient(135deg, rgba(127, 221, 245, .2), rgba(18, 170, 212, .08)) !important; box-shadow: 0 8px 20px -14px rgba(0, 10, 20, .45) !important; border: 0 !important; }
.day-card.gx .tile.big { background: #fff !important; color: #0B6F95 !important; }
.day-card.gx .tile.big .ic-mask { background: #0B6F95; }
.cal-legend .lg.full, .lg.full { background: #12AAD4; }
.lg.miss { background: #FF9C8F !important; } .lg.part { background: #7FDDF5; }

/* calendar month title: always flush left (the outgoing month no longer widens the box) */
.month-btn { justify-content: flex-start; text-align: left; }
.roller { position: relative; justify-items: start; text-align: left; }
.roller > span { justify-self: start; text-align: left; }
.roller > .roll-old { position: absolute; left: 0; top: 0; }

/* sidebar type: user name in the text font, wordmark in the headline font */
.sb-user b, .sb-user-txt b { font-family: var(--font) !important; font-weight: 500 !important; letter-spacing: 0 !important; font-size: 15px; }
.brand-word, .brand-word b { font-family: var(--display) !important; font-weight: 700 !important; letter-spacing: -.04em; }
.brand-word b { margin-left: 0; }

/* sidebar icons all in the accent blue (same as the Ctrl+K key) */
.sidebar :is(.sb-nav, .sb-quick, .sb-section, .sb-bottom, .sb-search, .sb-top-actions, .sb-head) .ic,
.sidebar .sb-hash { color: var(--blue) !important; }
.sidebar :is(a, button):hover .ic, .sidebar a.active .ic { color: color-mix(in srgb, var(--blue) 70%, #fff) !important; }
/* planner task names: lighter */
.pl-task-main b, .pl-chip > b, .pl-chip-main b { font-family: var(--font) !important; font-weight: 500 !important; letter-spacing: 0; }
.pl-task-main b { font-size: 14.5px; }
.pl-chip > b { font-size: 13px; }
.pl-lib header { align-items: center !important; gap: 10px; }
.pl-lib header > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-lib header .btn.pill.small { height: 34px; padding: 0 14px; font-size: 13px; flex: none; }

/* planner: 4 days on top, 3 below, full names, a little smaller */
.pl-week { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; overflow: visible !important; scroll-snap-type: none; }
.pl-day { min-height: 0 !important; }
.pl-drop { min-height: 190px; }
.pl-day header b { font-size: 15px; font-weight: 700; }
.pl-day header span { font-size: 11.5px; }
.pl-chip > b { font-size: 12.5px; }
.pl-chip-top small { font-size: 11.5px; }
.pl-chip { padding: 7px 8px; }
@media (max-width: 820px) { .pl-week { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .pl-drop { min-height: 140px; } }
@media (max-width: 460px) { .pl-week { grid-template-columns: minmax(0, 1fr) !important; } .pl-drop { min-height: 90px; } }
.editable .task-main[data-edit] { cursor: pointer; }

/* planner: task inside a day, calmer card, no hover */
.pl-chip, :root[data-theme="dark"] .pl-chip {
  display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 10px !important; padding: 10px !important; border-radius: 16px;
  background: linear-gradient(135deg, #0A3854 0%, #0B6F95 70%, #1593BB 120%) !important; color: #fff;
  box-shadow: 0 8px 18px -12px rgba(3, 20, 32, .55) !important; transform: none !important; transition: none !important; }
:root[data-theme="dark"] .pl-chip { background: linear-gradient(135deg, #0A1F2D 0%, #0B3E58 70%, #0E6F92 130%) !important; }
.pl-chip:hover, .pl-chip:focus { transform: none !important; box-shadow: 0 8px 18px -12px rgba(3, 20, 32, .55) !important; }
.pl-chip:focus-visible { outline: 2px solid #7FDDF5; outline-offset: 2px; }
.pl-chip .pl-ic { width: 32px !important; height: 32px !important; border-radius: 10px !important; background: #fff !important; color: #0B6F95 !important; flex: none; }
.pl-chip .pl-ic .ic-mask { background: #0B6F95 !important; }
.pl-chip .pl-ic .ic-img { filter: none !important; }
.pl-chip-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pl-chip-body b { font-family: var(--font); font-weight: 500; font-size: 13px; line-height: 1.3; color: #fff; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pl-time, .pl-bell, .pl-rep { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .16); color: #fff; }
.pl-time.any { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); font-weight: 500; }
.pl-bell { padding: 0 6px; }
.pl-rep { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); font-weight: 500; }
.pl-time .ic, .pl-bell .ic { width: 11px; height: 11px; }
.pl-chip.pl-src { opacity: .35; }

/* calendar: future days faded and not selectable, with a cursor bubble */
.cal-card .cal-cell.future { opacity: .35; cursor: not-allowed; }
.cal-card.gx .cal-cell.future:hover { background: rgba(255, 255, 255, .04) !important; }
.future-tip { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap;
  color: #fff; background: linear-gradient(135deg, #0A3854, #0B6F95); box-shadow: 0 10px 24px -8px rgba(3, 20, 32, .5); opacity: 0; transition: opacity .2s ease-out; will-change: transform; }
.future-tip.on { opacity: 1; }
@media (hover: none) { .future-tip { display: none; } }
details.more { gap: 0 !important; } details.more[open] > summary { margin-bottom: 12px; }

/* stats: bar bubble and bigger labels */
.chart-tip { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 9px 13px; border-radius: 14px; white-space: nowrap;
  background: #fff; color: #0B0D10; box-shadow: 0 14px 30px -10px rgba(3, 20, 32, .45); opacity: 0; transition: opacity .18s ease-out; }
.chart-tip.on { opacity: 1; }
.chart-tip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -5px; width: 10px; height: 10px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.chart-tip b { font-family: var(--display); font-size: 14px; font-weight: 700; }
.chart-tip span { font-size: 13px; color: #4A5560; }
.chart-tip span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #12AAD4; margin-right: 6px; vertical-align: 1px; }
.bc-col { cursor: default; outline: none; }
.bc-col:hover .bc-track, .bc-col:focus-visible .bc-track { background: rgba(255, 255, 255, .18) !important; }
.stats-page .card-head .muted.small { font-size: 14px !important; color: #fff !important; opacity: .9; font-weight: 500; }
.stats-page .section-head .muted.small { font-size: 14px !important; color: var(--ink) !important; font-weight: 500; }

/* Today badge: a gentle pulse ring and a small breath to draw the eye */
.sidebar .sb-nav a[data-nav="today"] .sb-badge { position: relative; animation: badgeBreath 2.4s ease-in-out infinite; }
.sidebar .sb-nav a[data-nav="today"] .sb-badge::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); animation: badgePulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes badgeBreath { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } }
@keyframes badgePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 60%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
html.no-motion .sidebar .sb-badge, html.no-motion .sidebar .sb-badge::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .sidebar .sb-badge, .sidebar .sb-badge::after { animation: none !important; } }

/* =====================================================================
   notes: richer formatting, toolbar, fonts, guide
   ===================================================================== */
.font-sans { font-family: var(--font); }
.font-serif { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; }
.font-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .94em; }
.note-tools { position: sticky; top: 10px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin: 14px 0 18px; border-radius: 18px;
  background: linear-gradient(150deg, #0A3854 0%, #0B6F95 70%, #1593BB 130%); box-shadow: 0 14px 30px -18px rgba(3, 20, 32, .6); }
:root[data-theme="dark"] .note-tools { background: linear-gradient(150deg, #06121B 0%, #0A2A40 60%, #0C5878 130%); }
.nt-group { display: flex; gap: 2px; padding-right: 6px; margin-right: 0; border-right: 1px solid rgba(255, 255, 255, .12); }
.nt-group:last-child { border-right: 0; margin-left: auto; padding-right: 0; }
.nt-btn { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: #fff; transition: background-color .25s var(--ease-out); }
.nt-btn:hover { background: rgba(255, 255, 255, .14); }
.nt-btn:focus-visible { outline: 2px solid #7FDDF5; outline-offset: 1px; }
.nt-btn .ic { width: 17px; height: 17px; }
.nt-txt { font-size: 14px; font-weight: 600; line-height: 1; }
.nt-txt mark { background: #7FDDF5; color: #04324A; padding: 0 3px; border-radius: 3px; }
.nt-a { text-decoration: underline; text-decoration-color: #EE8F5B; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.nt-btn.wide { padding: 0 10px; }
.nt-btn .pk-chev { transform: rotate(90deg); width: 12px; height: 12px; opacity: .7; }
.color-menu button i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.color-menu button { justify-content: flex-start !important; gap: 10px; }
/* rendered formats */
.md u { text-underline-offset: 3px; }
.md s { opacity: .7; }
.md mark { background: rgba(127, 221, 245, .45); color: inherit; padding: 0 3px; border-radius: 4px; }
.md .md-big { font-size: 1.3em; font-weight: 600; }
.md .md-small { font-size: .82em; color: var(--ink-2); }
.md ol { margin: 4px 0; padding-left: 26px; }
.md ul ul, .md ol ol, .md ul ol, .md ol ul { margin: 2px 0; }
.md li { margin: 2px 0; }
.md li::marker { color: #0E98BE; font-weight: 600; }
.md blockquote { margin: 8px 0; padding: 6px 0 6px 16px; border-left: 3px solid #12AAD4; color: var(--ink-2); font-style: italic; }
.md .md-callout { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; padding: 12px 14px; border-radius: 14px; background: rgba(14, 152, 190, .12); color: var(--ink); }
.md .md-callout .ic { color: #0E98BE; flex: none; margin-top: 4px; }
.md hr { border: 0; height: 1px; background: var(--line-2); margin: 16px 0; }
.md pre { margin: 8px 0; padding: 14px 16px; border-radius: 14px; background: #0B1117; color: #DCE7EE; overflow-x: auto; font-size: 14px; line-height: 1.55; }
.md code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; padding: 1px 6px; border-radius: 6px; background: rgba(14, 152, 190, .14); }
.md pre code { padding: 0; background: none; font-size: inherit; }
.md img { max-width: 100%; border-radius: 14px; margin: 6px 0; }
.md a { color: #0E98BE; text-decoration: underline; text-underline-offset: 3px; }
.md .md-check.in-list { display: inline-flex; }
/* guide card + page */
.note-card.guide-card { --g1: #04121C; --g2: #083A5B; --g3: #12AAD4; }
:root:not([data-theme="dark"]) .note-card.guide-card { --g1: #083A5B; --g2: #0E98BE; --g3: #7FDDF5; }
.guide-card .nc-tag { background: #fff; color: #0B4F70; }
.note-title.as-h { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.guide-page .lead { margin: 10px 0 26px; }
.guide-list { display: flex; flex-direction: column; gap: 14px; }
.guide-item { padding: 20px; border-radius: 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 28px -20px rgba(8, 40, 60, .35); }
:root[data-theme="dark"] .guide-item { background: #14181D; }
.guide-item header h2 { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.guide-item header p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.guide-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.guide-pair > div > span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.guide-src pre { margin: 0; padding: 12px 14px; border-radius: 14px; background: #0B1117; color: #DCE7EE; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.guide-out .md { padding: 10px 14px; border-radius: 14px; background: var(--bg-2); font-size: 15.5px; line-height: 1.6; min-height: 100%; }
.guide-out .md h1 { font-size: 26px; margin: 4px 0; } .guide-out .md h2 { font-size: 21px; margin: 4px 0; } .guide-out .md h3 { font-size: 17px; margin: 4px 0; }
.guide-fonts { display: grid; gap: 8px; margin-top: 14px; }
.guide-fonts > div { display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; border-radius: 14px; background: var(--bg-2); }
.guide-fonts b { min-width: 54px; }
.guide-end { margin: 26px 0 10px; display: flex; justify-content: center; }
@media (max-width: 640px) { .guide-pair { grid-template-columns: minmax(0, 1fr); } .nt-group { border-right: 0; } .nt-group:last-child { margin-left: 0; } }
.guide-out .md { min-height: 0 !important; }
.guide-pair > div { display: flex; flex-direction: column; }
.guide-pair > div > pre, .guide-pair > div > .md { flex: 1; }

/* Last 14 days: smooth hover, counts on bars */
.barchart { height: 200px; }
.bc-track { overflow: visible !important; transition: background-color .3s var(--ease-out); }
.bc-fill { transition: filter .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.bc-col:hover .bc-track, .bc-col:focus-visible .bc-track { background: rgba(255, 255, 255, .16) !important; }
.bc-col:hover .bc-fill, .bc-col:focus-visible .bc-fill { filter: brightness(.78) saturate(1.15); }
.bc-n { position: absolute; left: 0; right: 0; margin-bottom: 4px; text-align: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; pointer-events: none; transition: opacity .3s; }
.bc-fill { position: relative; }
.chart-tip { transition: opacity .22s var(--ease-out), visibility 0s linear .22s; visibility: hidden; }
.chart-tip.on { visibility: visible; transition: opacity .22s var(--ease-out), visibility 0s; }
.chart-tip.glide { transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility 0s; }
.barchart { margin-top: 18px; }

/* Tasks: quick add + Archive button side by side */
.qa-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 18px; }
.qa-row .quick-add { flex: 1; min-width: 0; margin: 0 !important; }
.archive-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 18px; font-weight: 600; color: #fff;
  background: linear-gradient(150deg, #0A3854 0%, #0B6F95 70%, #1593BB 130%); box-shadow: 0 10px 24px -16px rgba(3, 20, 32, .6); transition: box-shadow .35s var(--ease-out), filter .3s; }
:root[data-theme="dark"] .archive-btn { background: linear-gradient(150deg, #06121B 0%, #0A2A40 60%, #0C5878 130%); }
.archive-btn:hover { filter: brightness(1.08); box-shadow: 0 0 0 4px rgba(14, 152, 190, .16), 0 10px 24px -16px rgba(3, 20, 32, .6); }
.archive-btn b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; background: #fff; color: #0B4F70; }
@media (max-width: 560px) { .archive-btn span { display: none; } .archive-btn { padding: 0 14px; } }
.arch-list { list-style: none; margin: 14px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; }
.arch-list li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.arch-main { flex: 1; min-width: 0; }
.arch-main b { display: block; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-main small { color: rgba(255, 255, 255, .65); font-size: 12.5px; }
.arch-restore { background: #fff !important; color: #0B4F70 !important; border: 0 !important; }
.arch-del { color: rgba(255, 255, 255, .75) !important; }
.arch-del:hover { background: rgba(229, 83, 75, .25) !important; color: #fff !important; }
.arch-empty { display: flex; gap: 14px; align-items: center; padding: 16px; margin: 14px 0 6px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.arch-empty b { display: block; color: #fff; font-weight: 600; }
.arch-empty span { color: rgba(255, 255, 255, .65); font-size: 14px; }
.arch-list .tile.big { background: #fff !important; color: #0B6F95 !important; } .arch-list .tile.big .ic-mask { background: #0B6F95; } .arch-list .tile.big .ic-img { filter: none; }
.sheet:has(.arch-sheet) { width: min(760px, calc(100vw - 32px)) !important; max-width: none !important; }
.pl-create-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; margin: 6px 0 12px; border-radius: 16px; text-align: left; color: #fff;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); transition: background-color .3s var(--ease-out); }
.pl-create-row:hover { background: rgba(255, 255, 255, .17); }
.pl-create-row > .ic { width: 38px; height: 38px; padding: 10px; border-radius: 12px; background: #fff; color: #0B6F95; box-sizing: border-box; flex: none; }
.pl-create-row b { display: block; font-weight: 600; }
.pl-create-row small { color: rgba(255, 255, 255, .7); font-size: 12.5px; }

/* sidebar: first-note button */
.sb-first-wrap { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; animation: sbFirstIn .5s cubic-bezier(.22,1,.36,1) both .15s; }
@keyframes sbFirstIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sb-first-note { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 14px; text-align: left; color: #fff; font-family: var(--font); font-weight: 500; font-size: 14px;
  background: rgba(18, 170, 212, .08); box-shadow: inset 0 0 0 1.5px #12AAD4; transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.sb-first-note:hover { background: rgba(18, 170, 212, .18); box-shadow: inset 0 0 0 1.5px #5FD0EE; }
.sb-first-note:focus-visible { outline: 2px solid #7FDDF5; outline-offset: 2px; }
.sb-info { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #12AAD4; cursor: help; transition: background-color .25s; }
.sb-info:hover, .sb-info:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.info-tip { position: fixed; left: 0; top: 0; z-index: 950; max-width: 240px; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45; font-weight: 500;
  color: #0B0D10; background: #fff; box-shadow: 0 14px 30px -10px rgba(3, 20, 32, .45); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .2s var(--ease-out), visibility 0s linear .2s; }
.info-tip.on { opacity: 1; visibility: visible; transition: opacity .2s var(--ease-out), visibility 0s; }
.info-tip::before { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; background: #fff; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
html.sb-collapsed .sb-first-wrap { opacity: 0; pointer-events: none; }
.info-tip { width: max-content; max-width: 240px; white-space: normal; box-sizing: border-box; }
#info-tip.info-tip { display: block !important; height: auto !important; min-height: 0 !important; }
/* Today badge: badge stays still; a quick soft ring every ~2.5 s */
.sidebar .sb-nav a[data-nav="today"] .sb-badge { animation: none !important; transform: none !important; }
.sidebar .sb-nav a[data-nav="today"] .sb-badge::after { inset: 0; box-shadow: none !important; border: 2px solid rgba(255, 255, 255, .85); border-radius: 999px;
  opacity: 0; transform: scale(1); will-change: transform, opacity; animation: badgeRing 3.4s cubic-bezier(.22, .61, .36, 1) infinite !important; }
@keyframes badgeRing {
  0% { opacity: .75; transform: scale(1); }
  26% { opacity: 0; transform: scale(1.85); }
  100% { opacity: 0; transform: scale(1.85); }
}

/* first-note: one bordered component, info icon inside, normal cursor */
.sb-first-wrap { gap: 0 !important; border-radius: 14px; background: rgba(18, 170, 212, .08); box-shadow: inset 0 0 0 1.5px #12AAD4; padding-right: 6px; transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.sb-first-wrap:hover { background: rgba(18, 170, 212, .18); box-shadow: inset 0 0 0 1.5px #5FD0EE; }
.sb-first-note { background: transparent !important; box-shadow: none !important; }
.sb-info { cursor: default !important; }

/* Ctrl+K key lighter */
.sb-kbd, .sidebar kbd, .sb-search kbd { font-weight: 500 !important; }

/* journal prompt chips lighter */
.j-prompts .chip, .j-editor .j-prompts button { font-weight: 400 !important; }

/* low-mood bubble out of the weather card */
.mood-bubble { position: absolute; z-index: 20; box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start; padding: 14px 40px 14px 14px; border-radius: 18px;
  background: #fff; color: #0B0D10; box-shadow: 0 18px 40px -14px rgba(3, 20, 32, .55); }
.mood-bubble::after { content: ""; position: absolute; left: 34px; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.mood-bubble p { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 500; }
.mb-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #12AAD4, #083A5B); }
.mb-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #5B6470; transition: background-color .2s; }
.mb-x:hover { background: #EEF2F5; }

/* journal: all the small labels on the gradient cards in white */
.journal .gx { --ink-2: rgba(255, 255, 255, .95); --ink-3: rgba(255, 255, 255, .88); }
.journal .gx :is(.muted, .small, small, .j-label, .j-meter span, #j-save, .card-head span, .js-kpis span, .mc-col > span, .j-avg, .j-words-label, label > span) { color: #fff !important; opacity: 1; }
.journal .gx .js-kpis b, .journal .gx .num { color: #fff !important; }

/* =====================================================================
   landing v3: one big headline, glowing demo, analytics + recaps
   ===================================================================== */
.lx-title { font-size: clamp(64px, 12vw, 176px) !important; line-height: .92 !important; letter-spacing: -.055em !important; }
.lx-hero { padding-top: 180px; }

/* moving light around the live demo */
@property --ga2 { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.lx-demo-glow { position: relative; max-width: max-content; margin: 0 auto; border-radius: 26px; isolation: isolate; }
.lx-demo-glow::before { content: ""; position: absolute; inset: -3px; border-radius: 28px; z-index: -1;
  background: conic-gradient(from var(--ga2), transparent 0deg, rgba(18, 170, 212, 0) 40deg, #12AAD4 90deg, #7FDDF5 120deg, rgba(18, 170, 212, 0) 170deg, transparent 360deg);
  animation: demoRing 5s linear infinite; }
.lx-demo-glow::after { content: ""; position: absolute; inset: -40px; border-radius: 60px; z-index: -2; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, rgba(18, 170, 212, .32), transparent 70%); filter: blur(30px); animation: demoPulse 3.2s ease-in-out infinite; }
@keyframes demoRing { to { --ga2: 360deg; } }
@keyframes demoPulse { 0%, 100% { opacity: .45; transform: scale(.98); } 50% { opacity: .9; transform: scale(1.02); } }
.lx-demo-glow .demo { margin: 0 !important; }
.lx-caption, .lx-final, .lx-research, .lx-privacy, .lx-features, .lx-wordmark { display: none !important; }
.lx-caption-big { max-width: 1200px; margin: 46px auto 0; padding: 0 24px; text-align: left; font-family: var(--display); font-weight: 700; letter-spacing: -.035em;
  font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05; color: #fff; }
.lx-caption-big span { color: rgba(255, 255, 255, .5); }
:root:not([data-theme="dark"]) .lx-caption-big { color: #0B0D10; }
:root:not([data-theme="dark"]) .lx-caption-big span { color: #7A8590; }

/* bigger section headings + button under copy */
.lx-h2.big { font-size: clamp(44px, 6vw, 84px); }
.lx-copy p { font-size: 21px; }
.lx-copy-btn { margin-top: 30px; }
.lx-split.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* analytics donut */
.lx-donut-wrap { display: grid; place-items: center; padding: 40px 0; }
.lx-donut { position: relative; width: min(360px, 78vw); aspect-ratio: 1; }
.lx-donut svg { width: 100%; height: 100%; overflow: visible; }
.dn-arc { opacity: 0; transition: opacity .6s var(--ease-out) var(--d), stroke-dasharray 1.2s var(--ease-out) var(--d); }
.lx-donut.in .dn-arc { opacity: 1; }
.dn-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dn-center b { font-family: var(--display); font-size: 64px; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.dn-center span { color: var(--ink-2); font-size: 15px; }
.dn-label { position: absolute; display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; padding: 10px 14px; border-radius: 16px; white-space: nowrap;
  background: color-mix(in srgb, var(--ink) 6%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.lx-donut.in .dn-label { opacity: 1; transform: none; }
.lx-donut.in .dn-label.l2 { transition-delay: .25s; } .lx-donut.in .dn-label.l3 { transition-delay: .5s; }
.dn-label i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; }
.dn-label b { font-family: var(--display); font-size: 22px; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.dn-label span { font-size: 13px; color: var(--ink-2); grid-column: 2; }
.dn-label::before { content: ""; position: absolute; height: 1px; width: 46px; background: color-mix(in srgb, var(--ink) 30%, transparent); top: 50%; }
.dn-label.l1 { right: -46%; top: 18%; } .dn-label.l1::before { left: -46px; }
.dn-label.l2 { left: -44%; bottom: 14%; } .dn-label.l2::before { right: -46px; }
.dn-label.l3 { left: -40%; top: 8%; } .dn-label.l3::before { right: -46px; }
.lx-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.lx-points li { display: flex; flex-direction: column; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.lx-points b { font-weight: 600; color: var(--ink); }
.lx-points span { color: var(--ink-2); font-size: 15px; }

/* recaps: wide band with a 3D recap card */
.lx-recap-wide { max-width: 1200px; margin: 0 auto; padding: 60px; border-radius: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: linear-gradient(150deg, rgba(6, 9, 12, .7) 0%, rgba(10, 34, 51, .8) 50%, rgba(8, 58, 91, .85) 100%); box-shadow: 0 40px 90px -40px rgba(3, 20, 32, .8); }
.lx-recap-wide .lx-h2, .lx-recap-wide .lx-copy p { color: #fff; }
.lx-recap-wide .lx-copy p { color: rgba(255, 255, 255, .72); }
.rc3 { width: 440px; max-width: 100%; padding: 28px; border-radius: 32px; color: #0B0D10; background: #fff; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(-5deg); transform-style: preserve-3d;
  transition: transform .6s var(--ease-out); box-shadow: 40px 50px 90px -30px rgba(0, 0, 0, .6); }
.lx-tilt-b { --rx: 10deg; --ry: 22deg; }
.lx-tilt-b:hover .rc3 { transition: transform .15s linear; }
.rc3-top { display: flex; justify-content: space-between; font-weight: 600; } .rc3-top em { font-style: normal; color: #7A8590; font-weight: 500; }
.rc3-hero { margin: 18px 0; } .rc3-hero b { font-family: var(--display); font-size: 84px; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: #0B6F95; }
.rc3-hero b small { font-size: .45em; } .rc3-hero span { display: block; color: #5B6470; }
.rc3-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc3-grid div { padding: 12px; border-radius: 14px; background: #F1F5F8; }
.rc3-grid span { display: block; font-size: 12px; color: #7A8590; } .rc3-grid b { font-weight: 600; font-size: 14.5px; }
.rc3-grid .good { background: #E3F6FB; } .rc3-grid .good b { color: #0B6F95; }
.rc3-grid .bad { background: #FDEDEA; } .rc3-grid .bad b { color: #C9483D; }
.rc3-tip { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #0B6F95, #083A5B); color: #fff; font-size: 14px; }
.lx-recap-wide .rc3 { animation: rcFloat 6s ease-in-out infinite; }
@keyframes rcFloat { 50% { translate: 0 -10px; } }

/* back to top */
.lx-top { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #14AFD9, #0B84A6); box-shadow: 0 12px 30px -8px rgba(14, 152, 190, .55); opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), box-shadow .35s var(--ease-out); }
.lx-top.on { opacity: 1; transform: none; pointer-events: auto; }
.lx-top:hover { box-shadow: 0 0 0 6px rgba(14, 152, 190, .18), 0 12px 30px -8px rgba(14, 152, 190, .55); }

/* nav: slow, staged return to the top (bg + colour first, then it widens) */
.lx .l-nav { transition:
  background-color .35s ease-out 0s, box-shadow .35s ease-out 0s,
  top .65s cubic-bezier(.65,0,.35,1) .35s, left .65s cubic-bezier(.65,0,.35,1) .35s, right .65s cubic-bezier(.65,0,.35,1) .35s,
  height .65s cubic-bezier(.65,0,.35,1) .35s, padding .65s cubic-bezier(.65,0,.35,1) .35s, border-radius .65s cubic-bezier(.65,0,.35,1) .35s !important; }
.lx .l-nav.scrolled { transition:
  top .55s cubic-bezier(.65,0,.35,1) 0s, left .55s cubic-bezier(.65,0,.35,1) 0s, right .55s cubic-bezier(.65,0,.35,1) 0s,
  height .55s cubic-bezier(.65,0,.35,1) 0s, padding .55s cubic-bezier(.65,0,.35,1) 0s, border-radius .55s cubic-bezier(.65,0,.35,1) 0s,
  background-color .35s ease-out .3s, box-shadow .35s ease-out .3s !important; }
.lx .l-nav .brand-word, .lx .l-nav .l-links a, .lx .l-nav .l-login { color: #9AA2AC !important; transition: color .35s ease-out; }
.lx .l-nav .logo-svg .ld { fill: #9AA2AC; transition: fill .35s ease-out; }
.lx .l-nav .l-links a:hover, .lx .l-nav .l-login:hover { color: #fff !important; }
:root:not([data-theme="dark"]) .lx .l-nav .brand-word, :root:not([data-theme="dark"]) .lx .l-nav .l-links a, :root:not([data-theme="dark"]) .lx .l-nav .l-login { color: #5B6470 !important; }
:root:not([data-theme="dark"]) .lx .l-nav .logo-svg .ld { fill: #5B6470; }
.lx .l-nav.scrolled .brand-word, .lx .l-nav.scrolled .l-links a, .lx .l-nav.scrolled .l-login { color: #0B0D10 !important; }
.lx .l-nav.scrolled .logo-svg .ld { fill: #0B0D10; }

@media (max-width: 860px) {
  .lx-split.rev, .lx-recap-wide { grid-template-columns: minmax(0, 1fr); }
  .lx-recap-wide { padding: 32px 22px; border-radius: 30px; }
  .lx-donut-wrap { padding: 60px 0 20px; }
  .dn-label.l1 { right: -6%; top: -12%; } .dn-label.l2 { left: -4%; bottom: -14%; } .dn-label.l3 { left: -4%; top: -12%; }
  .dn-label::before { display: none; }
  .lx-caption-big { margin-top: 30px; }
  .lx-top { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .lx-demo-glow::before, .lx-demo-glow::after, .lx-recap-wide .rc3 { animation: none; } }
.lx-demo-glow { width: min(1100px, 100%); max-width: none; }
.lx-demo-glow .demo { width: 100% !important; max-width: none !important; }
.dn-label.l1 { right: -14%; top: -4%; } .dn-label.l1::before { display: none; }
.dn-label.l3 { left: -24%; top: 10%; } .dn-label.l2 { left: -24%; bottom: 8%; }
.lx-analytics .lx-split { gap: 90px; }

/* =====================================================================
   landing v4: living background, ripple, theme switch, cookies, peek,
   trial card, demo in the current dashboard look
   ===================================================================== */
/* living background: drifting blues + a light that follows the pointer */
.lx-bg { --mx: 50%; --my: 30%; }
.lx-bg::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 600px at var(--mx) var(--my), rgba(18, 170, 212, .32), transparent 65%); transition: opacity .4s; }
:root:not([data-theme="dark"]) .lx-bg::before { background: radial-gradient(600px 600px at var(--mx) var(--my), rgba(14, 152, 190, .22), transparent 65%); }
.lx-bg i { opacity: .8 !important; animation-duration: 14s !important; }
.lx-bg i:nth-child(2) { animation-duration: 18s !important; } .lx-bg i:nth-child(3) { animation-duration: 22s !important; }
@keyframes lxBlob { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(14vw, 10vh) scale(1.25); } 66% { transform: translate(-10vw, 18vh) scale(.9); } 100% { transform: translate(6vw, -8vh) scale(1.15); } }
:root:not([data-theme="dark"]) .lx-bg i { opacity: .5 !important; }
.lx-ripple { position: fixed; z-index: 2; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(127, 221, 245, .7); box-shadow: 0 0 40px rgba(18, 170, 212, .4), inset 0 0 30px rgba(18, 170, 212, .25); animation: lxRipple 1.4s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes lxRipple { to { transform: scale(140); opacity: 0; border-width: .2px; } }

/* demo: rings that spread out like a stone thrown in water */
.lx-demo-glow::before { inset: -4px; }
.lx-demo-glow .lx-wave { position: absolute; inset: 0; border-radius: 26px; pointer-events: none; z-index: -1; border: 2px solid rgba(18, 170, 212, .55);
  animation: demoWave 4.2s cubic-bezier(.2, .6, .35, 1) infinite; }
.lx-demo-glow .lx-wave.w2 { animation-delay: 1.4s; } .lx-demo-glow .lx-wave.w3 { animation-delay: 2.8s; }
@keyframes demoWave { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.22, 1.35); opacity: 0; border-width: .5px; } }

/* theme switch */
.lx-theme { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-right: 8px; color: currentColor; position: relative; transition: background-color .3s var(--ease-out); }
.lx-theme:hover { background: rgba(127, 127, 127, .15); }
.lx-theme .ic { position: absolute; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
:root[data-theme="dark"] .lx-theme .ic:first-child, :root:not([data-theme="dark"]) .lx-theme .ic:last-child { opacity: 0; transform: rotate(-90deg) scale(.6); }
.lx .l-nav .lx-theme { color: #9AA2AC; } .lx .l-nav.scrolled .lx-theme { color: #0B0D10; }
:root:not([data-theme="dark"]) .lx .l-nav .lx-theme { color: #5B6470; }
.l-nav-actions { display: flex; align-items: center; }

/* back to top: fixed bottom-right (was pushed into the flow) */
.landing.lx > .lx-top { position: fixed !important; right: 24px; bottom: 24px; left: auto; z-index: 70; }

/* cookie question */
.landing.lx > .lx-cookie { position: fixed !important; z-index: 80; left: 24px; bottom: 24px; max-width: 460px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px 18px; border-radius: 22px;
  color: #fff; background: linear-gradient(150deg, #06121B 0%, #0A2A40 60%, #0C5878 130%); box-shadow: 0 24px 50px -16px rgba(3, 20, 32, .7);
  opacity: 0; transform: translateY(20px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.lx-cookie.on { opacity: 1 !important; transform: none !important; }
.lx-cookie-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #fff; color: #0B6F95; flex: none; }
.lx-cookie p { flex: 1; min-width: 200px; margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.lx-cookie p b { color: #fff; } .lx-cookie a { color: #7FDDF5; }
.lx-cookie-btns { display: flex; gap: 8px; margin-left: auto; }
.lx-cookie .btn.pill.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
@media (max-width: 560px) { .landing.lx > .lx-cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* sneak peek: five small gradient tiles like the dashboard */
.lx-peek { max-width: 1200px; margin: 90px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pk { --g1: #06090C; --g2: #0A2A40; --g3: #0C7EA3; position: relative; overflow: hidden; isolation: isolate; min-height: 220px; padding: 18px; border-radius: 26px; color: #fff; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(150deg, var(--g1), var(--g2) 55%, var(--g3) 125%); box-shadow: 0 24px 50px -24px rgba(3, 20, 32, .7); }
:root:not([data-theme="dark"]) .pk { --g1: #0A3854; --g2: #0B6F95; --g3: #2DBFE6; }
.pk::before { content: ""; position: absolute; z-index: -1; inset: -60%; background: radial-gradient(closest-side, rgba(18, 170, 212, .5), transparent 70%) 0 0 / 55% 55% no-repeat; animation: gxDrift 20s ease-in-out infinite alternate; }
.pk:nth-child(2)::before { animation-delay: -6s; } .pk:nth-child(3)::before { animation-delay: -11s; } .pk:nth-child(4)::before { animation-delay: -3s; } .pk:nth-child(5)::before { animation-delay: -15s; }
.pk-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: #fff; color: #0B6F95; }
.pk b { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.pk-art { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.pk-art i { font-style: normal; }
.pa-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 11px; background: rgba(255, 255, 255, .1); font-size: 12px; }
.pa-row em { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.pa-row.on em { background: #12AAD4; box-shadow: none; } .pa-row.on { text-decoration: line-through; color: rgba(255, 255, 255, .6); }
.peek-plan .pk-art { flex-direction: row; gap: 5px; }
.pa-col { flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: stretch; font-size: 11px; text-align: center; color: rgba(255, 255, 255, .7); }
.pa-col em { height: 16px; border-radius: 6px; background: #fff; opacity: .9; } .pa-col em + em { background: #7FDDF5; }
.pa-faces { display: flex; gap: 6px; } .pa-faces em { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); } .pa-faces em.on { background: #4CC38A; box-shadow: 0 0 0 3px rgba(76, 195, 138, .3); }
.pa-lines, .pa-note { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.pa-lines em, .pa-note em { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); } .pa-lines em:last-child, .pa-note em.s { width: 60%; }
.pa-note b { height: 10px; width: 50%; border-radius: 4px; background: #fff; }
.peek-stats .pk-art { flex-direction: row; align-items: flex-end; height: 70px; gap: 5px; }
.pa-bar { flex: 1; height: calc(var(--v) * 100%); border-radius: 999px; background: linear-gradient(180deg, #7FDDF5, #12AAD4); }
@media (max-width: 980px) { .lx-peek { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lx-peek { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pk { min-height: 190px; } }

/* trial card */
.lx-trial { padding: 40px 24px 120px; }
.lx-trial-card { max-width: 760px; margin: 0 auto; padding: 56px 32px; border-radius: 36px; text-align: center; display: grid; justify-items: center; gap: 14px; color: #fff;
  background: radial-gradient(80% 120% at 50% 0%, rgba(127, 221, 245, .35), transparent 60%), linear-gradient(150deg, #06121B 0%, #0A2A40 55%, #0E98BE 140%); box-shadow: 0 40px 90px -40px rgba(3, 20, 32, .8); }
.lx-trial-card .lx-h2 { color: #fff; margin: 0; }
.lx-trial-card p { margin: 0 0 10px; color: rgba(255, 255, 255, .75); font-size: 19px; }
.lx-trial-tag { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .14); }

@media (max-width: 600px) { .lx-peek .pk:last-child { grid-column: 1 / -1; min-height: 170px; } }

/* =====================================================================
   landing demo v5: a 1:1 copy of the real Home at 1440×900, scaled down.
   It shows the opposite theme to the page so it stands out.
   ===================================================================== */
/* dark app (shown on the light page) */
.dz { --z-bg: radial-gradient(1200px 800px at 100% -15%, rgba(14, 152, 190, .2), transparent 60%), radial-gradient(1000px 800px at -15% 115%, rgba(8, 58, 91, .55), transparent 60%), linear-gradient(165deg, #08121A 0%, #060A0E 50%, #071420 100%);
  --z-ink: #EDF0F3; --z-ink2: #9AA2AC;
  --z-side: linear-gradient(170deg, #05090D 0%, #08202F 50%, #0A4A66 130%);
  --z-c1: linear-gradient(150deg, #03111B 0%, #062A42 55%, #083A5B 125%);
  --z-c2: linear-gradient(150deg, #0A6F92 0%, #12AAD4 55%, #7FDDF5 125%);
  --z-c3: linear-gradient(150deg, #04121D 0%, #0A3D5A 55%, #0E80A8 125%);
  --z-c4: linear-gradient(150deg, #07131D 0%, #0B3F5E 55%, #1A9CC6 125%);
  --z-p1: linear-gradient(150deg, #06090C 0%, #0A2A40 55%, #0C7EA3 125%);
  --z-p2: linear-gradient(150deg, #06090C 0%, #0A3550 55%, #127FA8 125%);
  --z-p3: linear-gradient(150deg, #06090C 0%, #0B3046 55%, #0E98BE 125%);
  --z-shadow: 0 24px 50px -20px rgba(3, 20, 32, .6);
  --z-comp: #16191D; --z-comp-ink: #EDF0F3; --z-pill: #262B32; --z-pill-ink: #fff; --z-comp-ink2: #9AA2AC; }
/* light app (shown on the dark page) */
:root[data-theme="dark"] .dz { --z-bg: radial-gradient(1100px 700px at 100% -10%, rgba(14, 152, 190, .16), transparent 60%), radial-gradient(900px 700px at -10% 110%, rgba(8, 58, 91, .1), transparent 60%), linear-gradient(165deg, #E6F4FA 0%, #F6FAFC 45%, #EAF2F7 100%);
  --z-ink: #1D1D1F; --z-ink2: #6E6E73;
  --z-side: linear-gradient(170deg, #0A2E45 0%, #0B4F70 50%, #0E7FA6 130%);
  --z-c1: linear-gradient(150deg, #062438 0%, #083A5B 55%, #0B5C82 125%);
  --z-c2: linear-gradient(150deg, #12AAD4 0%, #46C6EA 55%, #A5E8F8 125%);
  --z-c3: linear-gradient(150deg, #0A3854 0%, #0B6F95 55%, #2DBFE6 125%);
  --z-c4: linear-gradient(150deg, #07131D 0%, #0B3F5E 55%, #1A9CC6 125%);
  --z-p1: linear-gradient(150deg, #0A3854 0%, #0B6F95 55%, #2DBFE6 125%);
  --z-p2: linear-gradient(150deg, #0B4563 0%, #0B6F95 55%, #3FC9EC 125%);
  --z-p3: linear-gradient(150deg, #08304A 0%, #0A6385 55%, #2DBFE6 125%);
  --z-shadow: 0 22px 48px -20px rgba(8, 58, 91, .5);
  --z-comp: #fff; --z-comp-ink: #1D1D1F; --z-pill: #1D1D1F; --z-pill-ink: #fff; --z-comp-ink2: #6E6E73; }

.lx .demo { height: auto !important; background: #0B0F14 !important; border: 0 !important; color: #fff; animation: lxFade .45s var(--ease-out) both 0s !important; }
:root[data-theme="dark"] .lx .demo { background: #EEF5F9 !important; }
.lx .demo .dm-bar { background: rgba(127, 127, 127, .12); border: 0; }
.lx .demo .dm-dots i { background: rgba(127, 127, 127, .4); }
.lx .demo .dm-url { background: rgba(127, 127, 127, .14); border: 0; color: #9AA2AC; }
:root[data-theme="dark"] .lx .demo .dm-url { color: #6E6E73; }
.dz-fit { position: relative; width: 100%; overflow: hidden; height: calc(100vw * .4); }
.dz { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform: scale(var(--dz-s, .7)); transform-origin: 0 0;
  display: grid; grid-template-columns: 272px 1fr; background: var(--z-bg); color: var(--z-ink); font-family: var(--font, "Neue Montreal", system-ui, sans-serif); font-size: 17px; text-align: left; }
.dz .ic { flex: none; }
/* sidebar */
.dz-side { background: var(--z-side); color: #fff; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--z-shadow); }
.dz-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 18px; }
.dz-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.dz-brand b { font-weight: 700; }
.dz-mark { width: 26px; height: 26px; display: block; } .dz-mark svg { width: 100%; height: 100%; } .dz-mark .ld { fill: #fff !important; } .dz-mark .ld-end { fill: #12AAD4 !important; }
.dz-ib { color: #7FDDF5; display: grid; }
.dz-search { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px 0 15px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .72); font-size: 15px; margin-bottom: 14px; }
.dz-search .ic { color: #12AAD4; } .dz-search span { flex: 1; }
.dz-search kbd { background: #0E98BE; color: #fff; border-radius: 8px; padding: 4px 8px; font: 500 11.5px/1 var(--font, system-ui); border: 0; }
.dz-nav { display: flex; flex-direction: column; gap: 2px; }
.lx .dz .dm-nav { display: flex; align-items: center; gap: 12px; height: 37px; padding: 0 10px 0 15px; border-radius: 10px; color: rgba(255, 255, 255, .72); font-size: 15px; font-weight: 500; background: transparent; transition: background-color .3s, color .3s; }
.lx .dz .dm-nav .ic { color: #12AAD4; }
.lx .dz .dm-nav > span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx .dz .dm-nav.on { background: rgba(255, 255, 255, .14); color: #fff; }
.lx .dz .dm-nav em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .6); }
.dz-badge { font-style: normal; min-width: 20px; height: 20px; border-radius: 10px; background: #fff; color: #0B4F70; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.dz-sec { display: flex; justify-content: space-between; align-items: center; padding: 22px 12px 8px 15px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.dz-sec .ic { color: #12AAD4; }
.dz-hash { font-style: normal; width: 18px; text-align: center; color: #12AAD4; font-weight: 600; }
.dz-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.dz-leave { display: flex; align-items: center; gap: 12px; padding: 6px 15px; font-size: 15px; color: rgba(255, 255, 255, .8); } .dz-leave .ic { color: #12AAD4; }
.dz-user { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 10px 0 8px; border-radius: 14px; background: rgba(255, 255, 255, .08); } .dz-user > .ic { color: #12AAD4; }
.dz-av { position: relative; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.dz-av i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 2px #0B4F70; }
.dz-ut { flex: 1; display: flex; flex-direction: column; } .dz-ut b { font-weight: 500; font-size: 15px; } .dz-ut small { font-size: 12px; color: rgba(255, 255, 255, .6); }
/* main */
.dz-main { position: relative; overflow: hidden; }
.lx .dz .dm-view { position: absolute; inset: 0; padding: 40px 40px 0; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.lx .dz .dm-view.on { opacity: 1; transform: none; }
.lx .dz .dm-view > * { animation: none !important; }
.dz-date { margin: 0; font-size: 17px; font-weight: 500; color: var(--z-ink2); }
.dz-title { margin: 12px 0 18px; font: 700 72px/1 var(--display); letter-spacing: -.055em; color: var(--z-ink); }
.dz-title i { font-style: normal; color: #12AAD4; }
.dz-title.sm { font-size: 60px; display: flex; gap: 10px; align-items: baseline; } .dz-title.sm .dz-hash { width: auto; }
.dz-title.cal { margin: 0 0 8px; font-size: 64px; } .dz-title.cal span { color: var(--z-ink2); }
.dz-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dz-tc { height: 151px; border-radius: 22px; padding: 16px 18px 15px; color: #fff; display: flex; flex-direction: column; box-shadow: var(--z-shadow); }
.dz-tc.c1 { background: var(--z-c1); } .dz-tc.c2 { background: var(--z-c2); } .dz-tc.c3 { background: var(--z-c3); box-shadow: 0 -6px 26px -12px rgba(127, 221, 245, .4), var(--z-shadow); } .dz-tc.c4 { background: var(--z-c4); }
.dz-tct { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 500; }
.dz-tc b { margin-top: auto; font: 700 54px/.95 var(--display); letter-spacing: -.03em; }
.dz-tc b sup { font-size: 26px; vertical-align: baseline; }
.dz-tc small { font-size: 14px; margin-top: 8px; color: rgba(255, 255, 255, .85); }
.dz-grid { display: grid; grid-template-columns: 626px 1fr; gap: 16px; margin-top: 16px; }
.dz-col { display: flex; flex-direction: column; gap: 16px; }
.dz-panel { border-radius: 26px; padding: 20px 20px 14px; color: #fff; box-shadow: 0 1px 2px rgba(3, 20, 32, .12), 0 18px 40px -22px rgba(3, 20, 32, .45); }
.dz-panel.p1 { background: var(--z-p1); } .dz-panel.p2 { background: var(--z-p2); } .dz-panel.p3 { background: var(--z-p3); }
.dz-ph { display: flex; align-items: center; gap: 10px; height: 36px; margin: 0 0 12px 6px; font: 700 19px/1 var(--display); letter-spacing: -.02em; }
.dz-count { font: 600 12px/1 var(--font, system-ui); font-style: normal; padding: 4px 7px; border-radius: 7px; background: rgba(255, 255, 255, .14); }
.dz-hash.big { font-size: 22px; color: #fff; width: auto; }
.dz-va { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font: 500 13.5px/1 var(--font, system-ui); }
.dz-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.dz-task { display: flex; align-items: center; gap: 16px; height: 76px; padding: 0 12px 0 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(127, 221, 245, .2) 0%, rgba(18, 170, 212, .09) 60%, rgba(255, 255, 255, .05) 100%); box-shadow: 0 8px 20px -14px rgba(0, 10, 20, .45); transition: background .4s; }
.dz-task.added { animation: dzIn .6s var(--ease-out) both; }
@keyframes dzIn { from { opacity: 0; transform: translateY(14px); } }
.lx .dz .dz-ck { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); background: transparent; display: grid; place-items: center; flex: none; transition: background .3s, box-shadow .3s, border-color .3s; }
.lx .dz .dz-ck svg { width: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s var(--ease-out) .05s; }
.lx .dz .dz-task.done .dz-ck { background: #12AAD4; border-color: #12AAD4; box-shadow: none; }
.lx .dz .dz-task.done .dz-ck svg { stroke-dashoffset: 0; }
.dz-tile { width: 44px; height: 44px; border-radius: 13px; background: #fff; color: #0B6F95; display: grid; place-items: center; flex: none; }
.dz-tm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dz-tm b { font-size: 16.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.dz-task.done .dz-tm b { opacity: .6; text-decoration: line-through; }
.dz-whens { display: flex; gap: 6px; } .dz-whens em { font-style: normal; font-size: 12px; padding: 3px 8px; border-radius: 980px; background: rgba(255, 255, 255, .14); } .dz-whens em.pl { background: none; padding: 3px 0; font-weight: 600; }
.dz-edit { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; align-self: flex-start; margin-top: 9px; }
.dz-card { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 16px; border-radius: 18px; margin-bottom: 12px; background: linear-gradient(135deg, rgba(127, 221, 245, .2) 0%, rgba(18, 170, 212, .09) 60%, rgba(255, 255, 255, .05) 100%); }
.dz-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dz-card b { font-size: 15px; font-weight: 600; } .dz-card small { font-size: 13px; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-wic { width: 54px; height: 54px; border-radius: 13px; background: #fff; color: #0B6F95; display: grid; place-items: center; }
.dz-sic { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-weight: 600; }
.dz-n { font-style: normal; font-size: 12px; font-weight: 600; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
/* composer */
.lx .dz .dz-composer { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 760px; display: block; padding: 10px 12px 8px; border: 0; border-radius: 20px; background: var(--z-comp); color: var(--z-comp-ink); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); animation: none !important; }
.dz-chips { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(127, 127, 127, .1); }
.dz-chips span { padding: 7px 12px; border-radius: 9px; font-size: 14px; color: var(--z-comp-ink2); }
.dz-chips span.on { background: var(--z-pill); color: var(--z-pill-ink); }
.dz-field { display: flex; align-items: center; height: 46px; padding: 0 4px; font-size: 16px; position: relative; }
.dz-ph2 { position: absolute; left: 4px; color: var(--z-comp-ink2); transition: opacity .2s; }
.lx .dz .dm-type { font-size: 16px; white-space: nowrap; overflow: hidden; color: var(--z-comp-ink); }
.dz-caret { width: 2px; height: 20px; background: #12AAD4; animation: caret 1s steps(1) infinite; margin-left: 1px; }
.dz-crow { display: flex; align-items: center; justify-content: space-between; }
.dz-target { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 14px; color: var(--z-comp-ink2); }
.lx .dz .dz-send { width: 36px; height: 36px; border-radius: 50%; background: #12AAD4; color: #fff; display: grid; place-items: center; margin: 0; }
/* channel */
.dz-msgs { margin-top: 10px; padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; min-height: 380px; }
.dz-sep { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); margin: 12px 0 6px; }
.dz-sep::before, .dz-sep::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .16); }
.lx .dz .dz-msg { display: flex; gap: 16px; padding: 12px 16px; border-radius: 14px; font-size: 16px; color: #fff; background: rgba(255, 255, 255, .08); }
.lx .dz .dz-msg em { font: 500 13px/22px var(--mono); color: rgba(255, 255, 255, .6); font-style: normal; }
.lx .dz .dz-msg.new { animation: dzIn .6s var(--ease-out) both; }
/* calendar */
.dz-calwrap { display: grid; grid-template-columns: 614px 1fr; gap: 20px; margin-top: 30px; align-items: start; }
.dz-cal { padding: 22px 22px 24px; }
.dz-dows { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); margin-bottom: 12px; }
.lx .dz .dz-calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 0; }
.lx .dz .dz-calgrid span { position: relative; width: auto; height: 76px; border-radius: 16px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; }
.lx .dz .dz-calgrid svg { position: absolute; width: 46px; height: 46px; inset: auto; transform: rotate(-90deg); }
.lx .dz .dz-calgrid circle { fill: none; stroke-width: 3; stroke-linecap: round; }
.lx .dz .dz-calgrid .t { stroke: rgba(0, 20, 35, .45); }
.lx .dz .dz-calgrid .v { stroke: #7FDDF5; stroke-dasharray: 95; stroke-dashoffset: 95; transition: stroke-dashoffset .9s var(--ease-out); }
.lx .dz .dz-calgrid span.fill .v { stroke-dashoffset: calc(95 - 95 * var(--v)); }
.lx .dz .dz-calgrid em { position: relative; font-style: normal; font-size: 15px; font-weight: 600; color: #fff; }
.lx .dz .dz-calgrid span.today { background: #fff; } .lx .dz .dz-calgrid span.today em { color: #0B4F70; } .lx .dz .dz-calgrid span.today .t { stroke: rgba(11, 79, 112, .2); } .lx .dz .dz-calgrid span.today .v { stroke: #0E98BE; }
.lx .dz .dz-calgrid span.fut { opacity: .3; }
.dz-day { padding: 26px 22px 18px; display: flex; flex-direction: column; gap: 6px; }
.dz-day > small { font-size: 14px; color: rgba(255, 255, 255, .8); } .dz-day > b { font: 700 20px/1.2 var(--display); letter-spacing: -.02em; }
.dz-donechip { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; margin: 4px 0 10px; }
.dz-day .dz-list { gap: 10px; } .dz-day .dz-task { height: 70px; } .dz-day .dz-edit { display: none; }

/* ---- landing v5 polish ---- */
/* tilted frame around the demo; the ripples live on the frame so they tilt with it */
.lx-stage .lx-demo-glow { padding: 12px; border-radius: 32px; transform-origin: 50% 0; will-change: transform; transition: transform .1s linear;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 100px -40px rgba(3, 20, 32, .7); }
:root:not([data-theme="dark"]) .lx-stage .lx-demo-glow { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(14, 152, 190, .18), 0 40px 90px -40px rgba(8, 58, 91, .35); }
.lx-stage .lx-demo-glow .demo { border-radius: 22px !important; transform: none !important; box-shadow: none !important; }
.lx-demo-glow::before, .lx-demo-glow::after { display: none !important; }
.lx-demo-glow .lx-wave { border-radius: 32px; border: 1.5px solid rgba(18, 170, 212, .5); animation: demoWave 4.5s cubic-bezier(.25, .6, .35, 1) infinite; opacity: 0; }
.lx-demo-glow .lx-wave.w2 { animation-delay: 1.5s; } .lx-demo-glow .lx-wave.w3 { animation-delay: 3s; }
@keyframes demoWave { 0% { transform: scale(1); opacity: 0; } 18% { opacity: .75; } 100% { transform: scale(1.035, 1.06); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lx-demo-glow .lx-wave { animation: none; } }

/* calm the glow behind the nav (top of page) and behind the footer */
.lx-calm { position: absolute; left: 0; right: 0; height: 260px; opacity: 0; transition: opacity .9s var(--ease-out); pointer-events: none; }
.lx-calm.t { top: 0; background: linear-gradient(180deg, #070C11 0%, #070C11 30%, transparent 100%); }
.lx-calm.b { bottom: 0; height: 70vh; background: linear-gradient(0deg, #070D13 0%, #070D13 45%, transparent 100%); }
:root:not([data-theme="dark"]) .lx-calm.t { background: linear-gradient(180deg, #ECF6FA 0%, #ECF6FA 30%, transparent 100%); }
:root:not([data-theme="dark"]) .lx-calm.b { background: linear-gradient(0deg, #F3F8FB 0%, #F3F8FB 45%, transparent 100%); }
.lx-bg.at-top .lx-calm.t, .lx-bg.at-foot .lx-calm.b { opacity: 1; }

/* tighter headlines */
.lx .lx-h2, .lx .lx-h2.big { line-height: .98 !important; }

/* "A week you can see" as one closed, rounded panel */
.lx-week > .lx-split { padding: 56px 64px; border-radius: 40px; background: linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(18, 170, 212, .06)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); box-sizing: border-box; }
:root:not([data-theme="dark"]) .lx-week > .lx-split { background: linear-gradient(150deg, #FFFFFF, #EEF7FB); box-shadow: 0 1px 2px rgba(8, 58, 91, .06), 0 24px 60px -30px rgba(8, 58, 91, .3); }
@media (max-width: 700px) { .lx-week > .lx-split { padding: 36px 22px; border-radius: 30px; } }

/* "See it work" in light mode: white with blue text */
:root:not([data-theme="dark"]) .lx .btn.pill.ghost { background: #fff; color: #0B6F95; box-shadow: 0 1px 2px rgba(8, 58, 91, .08), 0 8px 22px -12px rgba(8, 58, 91, .35); }
:root:not([data-theme="dark"]) .lx .btn.pill.ghost:hover { background: #fff; box-shadow: 0 1px 2px rgba(8, 58, 91, .08), 0 12px 28px -12px rgba(8, 58, 91, .45); }

/* softer hover glow in light mode */
:root:not([data-theme="dark"]) .btn.pill:not(.ghost):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 4px rgba(14, 152, 190, .08), 0 10px 24px -6px rgba(14, 152, 190, .25); }
:root:not([data-theme="dark"]) .btn.blue:hover, :root:not([data-theme="dark"]) .send-btn:hover { box-shadow: 0 6px 16px rgba(14, 152, 190, .18); }

/* peek card text */
.pk p { margin: -4px 0 0; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .72); text-align: left; max-width: 22ch; }

/* donut draws itself */
.lx-donut .dn-arc { opacity: 1; stroke-dasharray: 0 var(--C); transition: stroke-dasharray 0s; }
.lx-donut.in .dn-arc { stroke-dasharray: var(--len) var(--C); transition: stroke-dasharray 1.1s cubic-bezier(.45, 0, .2, 1) var(--d); }
.lx-donut svg { transform: rotate(-30deg); transition: transform 0s; }
.lx-donut.in svg { transform: none; transition: transform 2.4s var(--ease-out); }
.lx-donut .dn-center { opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s; }
.lx-donut.in .dn-center { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) .3s, transform .8s var(--ease-out) .3s; }
/* legend cards: white in light mode with a small shadow */
:root:not([data-theme="dark"]) .dn-label { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 2px rgba(8, 58, 91, .06), 0 10px 24px -10px rgba(8, 58, 91, .22); }

/* smooth theme switch */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
html.theme-fading, html.theme-fading *, html.theme-fading *::before, html.theme-fading *::after { transition: background-color .6s ease, color .6s ease, border-color .6s ease, fill .6s ease, box-shadow .6s ease !important; }
/* sun/moon toggle, used on the landing page and in the app */
.theme-tg { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: currentColor; background: transparent; border: 0; cursor: pointer; transition: background-color .3s var(--ease-out); }
.theme-tg .ic { position: absolute; transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
:root[data-theme="dark"] .theme-tg .ic:first-child, :root:not([data-theme="dark"]) .theme-tg .ic:last-child { opacity: 0; transform: rotate(-90deg) scale(.6); }
.app-theme { position: fixed; top: 20px; right: 24px; z-index: 45; color: var(--ink-2, #6E6E73); background: color-mix(in srgb, var(--ink, #1D1D1F) 6%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.app-theme:hover { background: color-mix(in srgb, var(--ink, #1D1D1F) 12%, transparent); color: var(--ink, #1D1D1F); }
.m-bar-r { display: flex; align-items: center; gap: 2px; }
.m-bar .theme-tg { width: 38px; height: 38px; }
@media (max-width: 900px) { .app-theme { display: none; } }
.dz-tc.c2 { color: #062A42; } .dz-tc.c2 small { color: rgba(6, 42, 66, .8); }

/* =====================================================================
   responsive v6: tablets use the space, phones keep the composer small
   ===================================================================== */
/* tablets (no sidebar, 640–900px) and narrow laptops with the sidebar */
@media (min-width: 640px) and (max-width: 900px), (min-width: 1000px) and (max-width: 1100px) {
  .tiles, .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 760px) and (max-width: 900px) {
  .home-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .page { padding-left: 28px; padding-right: 28px; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .composer.floating { width: min(640px, calc(100% - 48px)); }
  .tabbar { padding-left: max(8px, calc(50% - 320px)); padding-right: max(8px, calc(50% - 320px)); }
}
/* phones: the composer is one slim line until you tap it */
.composer.floating .cp-chips, .composer.floating .composer-row { transition: max-height .35s var(--ease-out), opacity .25s var(--ease-out), margin .35s var(--ease-out), padding .35s var(--ease-out); }
@media (max-width: 639px) {
  .composer.floating .cp-chips { max-height: 48px; }
  .composer.floating .composer-row { max-height: 52px; overflow: hidden; }
  .composer.floating:not(:focus-within):has(textarea:placeholder-shown) .cp-chips,
  .composer.floating:not(:focus-within):has(textarea:placeholder-shown) .composer-row { max-height: 0; opacity: 0; margin: 0; padding-top: 0; padding-bottom: 0; pointer-events: none; }
  .composer.floating:not(:focus-within):has(textarea:placeholder-shown) { padding-top: 4px; padding-bottom: 4px; }
  .home-title { font-size: 40px; line-height: 1; }
  .tile-card b.num { font-size: 44px; }
  .panel { padding: 16px 14px 12px; border-radius: 22px; }
  .panel-head h2 { font-size: 17px; }
  .task .tile.big { width: 40px; height: 40px; }
  .sheet { max-height: calc(100dvh - 24px); }
}
.lx-footer .lx-foot-top { padding-bottom: 64px; } .lx-footer .lx-foot-bottom { padding-top: 28px; padding-bottom: 8px; } @media (max-width: 900px) { .lx-footer .lx-foot-top { padding-bottom: 48px; } }
@media (max-width: 639px) {
  .task { gap: 10px; padding: 12px 10px 12px 12px; }
  .task .task-actions { flex-direction: column; gap: 6px; align-self: flex-start; }
  .task .task-actions .icon-btn.subtle, .task .task-actions .link-btn { width: 34px; height: 34px; }
  .task .task-title { font-size: 16px; line-height: 1.3; }
  .hero-head .today-ring { flex: none; }
}

/* =====================================================================
   phones v7: smaller type and icons so everything fits
   ===================================================================== */
@media (max-width: 639px) {
  html body .page { padding: 18px 14px calc(150px + var(--safe-b)); }
  html body .m-bar .brand-word { font-size: 17px; }
  html body .m-bar .brand-mark { width: 22px; height: 22px; }
  html body .m-bar .ic { width: 18px; height: 18px; }
  /* headings */
  html body .eyebrow, html body .home-date { font-size: 13px; margin-bottom: 4px; }
  html body .large-title, html body .home-title { font-size: 32px !important; line-height: 1.02 !important; letter-spacing: -.035em; }
  html body .lead { font-size: 15px; margin-top: 6px; }
  html body .hero-head { margin-bottom: 18px; gap: 12px; }
  html body .hero-head.with-ring { flex-direction: row; align-items: center; }
  html body .today-ring { width: 72px; height: 72px; }
  html body .today-ring .tr-label b { font-size: 18px; }
  html body .section-head h2, html body .group-title { font-size: 19px; }
  html body .btn { font-size: 14px; }
  html body .btn.small, html body .btn.pill.small { font-size: 13px; min-height: 34px; padding: 0 13px; }
  /* home tiles */
  html body .tiles { gap: 8px; }
  html body .tile-card { padding: 12px 13px 12px; min-height: 0; height: auto; border-radius: 18px; }
  html body .tile-card .tc-top .ic { width: 16px; height: 16px; }
  html body .tile-card .tc-top span { font-size: 12.5px; }
  html body .tile-card b.num { font-size: 34px !important; line-height: 1 !important; margin: 12px 0 4px; }
  html body .tile-card small { font-size: 12px; line-height: 1.3; }
  /* panels and task rows */
  html body .panel { padding: 14px 12px 10px; border-radius: 20px; }
  html body .panel-head h2 { font-size: 16px; } html body .panel-head h2 .ic { width: 16px; height: 16px; }
  html body .view-all { font-size: 12px; padding: 5px 10px; }
  html body .task { gap: 10px; padding: 10px 8px 10px 10px; border-radius: 16px; min-height: 0; }
  html body .task .check { width: 24px; height: 24px; margin-left: 0; }
  html body .task .tile.big { width: 36px; height: 36px; border-radius: 11px; }
  html body .task .tile.big .ic, html body .task .tile.big .ic-wrap, html body .task .tile.big svg, html body .task .tile.big img { width: 19px !important; height: 19px !important; }
  html body .task .task-title { font-size: 14.5px; line-height: 1.3; }
  html body .task .task-sub, html body .task .sub-txt { font-size: 12px; }
  html body .when { font-size: 11px; padding: 2px 7px; }
  html body .task .task-actions { flex-direction: row; gap: 4px; align-self: center; }
  html body .task .task-actions .icon-btn.subtle, html body .task .task-actions .link-btn { width: 30px; height: 30px; border-radius: 9px; }
  html body .task .task-actions .ic { width: 14px; height: 14px; }
  /* nudges: icon | text | ×, the action under the text */
  html body .nudge.gx { display: grid; grid-template-columns: 30px minmax(0, 1fr) 26px; column-gap: 10px; row-gap: 8px; align-items: start; padding: 11px 8px 11px 11px; border-radius: 16px; flex-wrap: nowrap; }
  html body .nudge.gx .nudge-ic { width: 30px; height: 30px; border-radius: 9px; grid-column: 1; grid-row: 1; }
  html body .nudge.gx .nudge-ic .ic { width: 14px; height: 14px; }
  html body .nudge.gx .nudge-txt { grid-column: 2; grid-row: 1; flex: none; min-width: 0; }
  html body .nudge.gx .nudge-txt b { font-size: 13.5px; line-height: 1.3; }
  html body .nudge.gx .nudge-txt span { display: block; font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
  html body .nudge.gx .nudge-x { grid-column: 3; grid-row: 1; width: 26px; height: 26px; border-radius: 8px; }
  html body .nudge.gx .nudge-x .ic { width: 12px; height: 12px; }
  html body .nudge.gx .nudge-act { grid-column: 2 / 4; grid-row: 2; justify-self: start; margin: 0; font-size: 12.5px; padding: 5px 10px; }
  html body .nudges { gap: 8px; }
  html body .nudges-foot .btn.text { font-size: 12px; }
  /* journal */
  html body .mood-row { gap: 6px; }
  html body .mood { padding: 10px 2px 9px; gap: 6px; border-radius: 14px; font-size: 11.5px; }
  html body .mood .mface, html body .mood svg { width: 24px; height: 24px; }
  html body .j-prompts { gap: 5px; margin: 12px 0 10px; }
  html body .j-prompts .chip { font-size: 12px; padding: 5px 9px; }
  /* composer and tab bar */
  html body .composer.floating:not(:focus-within):has(textarea:placeholder-shown) textarea { padding: 4px 4px; }
  html body .quick-add { min-height: 46px; padding-top: 0; padding-bottom: 0; }
  html body .quick-add input { font-size: 16px; }
  html body .tabbar a, html body .tabbar button { font-size: 10px; min-height: 44px; }
  html body .tabbar .ic { width: 20px; height: 20px; }
  /* stats kpis */
  html body .kpi { padding: 12px 13px; }
  html body .kpi b { font-size: 28px; }
}

/* =====================================================================
   auth v3: split layout in the same style as the landing and dashboard
   ===================================================================== */
.auth3 { --a-ink: #0B0D10; --a-ink2: #5B6470; --a-ink3: #8A929C; --a-field: rgba(255, 255, 255, .75); --a-field-on: #fff; --a-ring: rgba(14, 152, 190, .35);
  position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 24px; box-sizing: border-box; color: var(--a-ink); isolation: isolate; }
:root[data-theme="dark"] .auth3 { --a-ink: #F1F3F6; --a-ink2: #9AA2AC; --a-ink3: #69717B; --a-field: rgba(255, 255, 255, .06); --a-field-on: rgba(255, 255, 255, .1); --a-ring: rgba(18, 170, 212, .45); }
.auth3 > .lx-bg { z-index: -1; }
.auth3-top { position: absolute; top: 24px; right: 24px; left: calc(50% + 12px); display: flex; justify-content: space-between; align-items: center; z-index: 2; padding: 0 8px; }
.auth3-home { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; color: var(--a-ink2); font-size: 15px; font-weight: 500; transition: background-color .3s, color .3s; }
.auth3-home:hover { background: rgba(127, 127, 127, .12); color: var(--a-ink); }
.auth3 .theme-tg { color: var(--a-ink2); } .auth3 .theme-tg:hover { background: rgba(127, 127, 127, .12); color: var(--a-ink); }

/* brand panel: the same gradient card as the dashboard */
.auth3-brand { --g1: #05090D; --g2: #08202F; --g3: #0A4A66; position: relative; overflow: hidden; isolation: isolate; border-radius: 34px; padding: 34px 40px 40px; color: #fff; display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 130%); box-shadow: 0 40px 90px -40px rgba(3, 20, 32, .8); animation: authIn .7s var(--ease-out) both; }
:root:not([data-theme="dark"]) .auth3-brand { --g1: #0A2E45; --g2: #0B4F70; --g3: #0E7FA6; box-shadow: 0 40px 90px -40px rgba(8, 58, 91, .55); }
.auth3-brand::before { content: ""; position: absolute; z-index: -1; inset: -40%; background: radial-gradient(closest-side, rgba(18, 170, 212, .45), transparent 70%) 0 0 / 60% 60% no-repeat; animation: gxDrift 22s ease-in-out infinite alternate; }
.auth3-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.auth3-logo b { font-weight: 700; }
.auth3-mark { width: 30px; height: 30px; } .auth3-mark svg { width: 100%; height: 100%; } .auth3-mark .ld { fill: #fff !important; } .auth3-mark .ld-end { fill: #12AAD4 !important; }
.auth3-copy { margin-top: auto; }
.auth3-copy h2 { margin: 0; font: 700 clamp(44px, 5vw, 72px)/.95 var(--display); letter-spacing: -.045em; }
.auth3-copy h2 span { color: #7FDDF5; }
.auth3-copy p { margin: 16px 0 0; font-size: 17px; color: rgba(255, 255, 255, .72); max-width: 34ch; }
.auth3-preview { margin-top: 34px; padding: 16px; border-radius: 24px; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); max-width: 380px; display: flex; flex-direction: column; gap: 8px; }
.ap-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 4px; font-size: 14px; color: rgba(255, 255, 255, .7); } .ap-head b { font: 700 18px/1 var(--display); color: #fff; }
.ap-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 15px; font-size: 15px; background: linear-gradient(135deg, rgba(127, 221, 245, .18), rgba(18, 170, 212, .07)); }
.ap-row.on { color: rgba(255, 255, 255, .6); text-decoration: line-through; }
.ap-ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); color: transparent; flex: none; }
.ap-row.on .ap-ck { background: #12AAD4; box-shadow: none; color: #fff; }
.ap-ic { width: 32px; height: 32px; border-radius: 10px; background: #fff; color: #0B6F95; display: grid; place-items: center; flex: none; }
.ap-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); margin: 6px 4px 2px; overflow: hidden; } .ap-bar i { display: block; height: 100%; width: 66%; border-radius: inherit; background: linear-gradient(90deg, #12AAD4, #7FDDF5); }

/* form side */
.auth3-main { display: grid; place-items: center; padding: 80px 20px 40px; }
.auth3 .auth3-card { width: min(400px, 100%); text-align: left; }
.auth3 .auth2-icon { display: none; }
.auth3 .auth3-card h1 { margin: 0; font: 700 44px/1 var(--display) !important; letter-spacing: -.045em !important; color: var(--a-ink); }
.auth3-sub { margin: 10px 0 28px; color: var(--a-ink2); font-size: 16px; }
.auth3 .auth2-fields { gap: 10px; }
.auth3 .a-in { height: 54px; border-radius: 16px; border: 0 !important; background: var(--a-field) !important; color: var(--a-ink) !important; font-size: 16px; padding: 0 18px;
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .16); transition: box-shadow .3s var(--ease-out), background-color .3s var(--ease-out); }
:root:not([data-theme="dark"]) .auth3 .a-in { box-shadow: inset 0 0 0 1px rgba(8, 58, 91, .1), 0 1px 2px rgba(8, 58, 91, .05); }
.auth3 .a-in::placeholder { color: var(--a-ink3); }
.auth3 .a-in:focus { background: var(--a-field-on) !important; box-shadow: inset 0 0 0 1.5px #12AAD4, 0 0 0 4px var(--a-ring) !important; outline: none; }
.auth3 .pw-eye { color: var(--a-ink3); }
.auth3 .pw-rules li { color: var(--a-ink2); } .auth3 .pw-rules li.ok { color: var(--a-ink); }
.auth3 .remember { color: var(--a-ink2); }
.auth3 .auth2-card .btn { margin-top: 20px; height: 54px; font-size: 16px; }
.auth3 .auth2-card .btn:disabled { opacity: .5; box-shadow: none; filter: saturate(.6); }
.auth3 .auth2-switch { text-align: center; color: var(--a-ink2); font-size: 15px; }
.auth3 .auth2-switch a, .auth3 .auth2-note a { color: #12AAD4; }
.auth3 .auth2-note { justify-content: center; color: var(--a-ink3); }
.auth3 .field-msg { color: var(--a-ink2); }

@media (max-width: 900px) {
  .auth3 { grid-template-columns: 1fr; gap: 0; padding: 12px; align-content: start; }
  .auth3-top { left: 12px; right: 12px; top: 12px; }
  .auth3-brand { padding: 64px 22px 22px; border-radius: 26px; }
  .auth3-brand .auth3-logo { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); }
  .auth3-top { z-index: 3; } .auth3-top .auth3-home, .auth3-top .theme-tg { color: #fff; }
  .auth3-copy h2 { font-size: 36px; } .auth3-copy p { font-size: 14.5px; margin-top: 10px; }
  .auth3-preview { display: none; }
  .auth3-main { padding: 26px 8px 40px; }
  .auth3 .auth3-card h1 { font-size: 32px !important; }
  .auth3-sub { margin-bottom: 20px; font-size: 15px; }
  .auth3 .a-in, .auth3 .auth2-card .btn { height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .auth3-brand::before { animation: none; } }
@media (max-width: 900px) { .auth3-brand .auth3-logo { display: none; } .auth3-brand { padding-top: 58px; } }
