:root {
  --bg: #101219;
  --bg-2: #171a22;
  --panel: rgba(31, 35, 46, 0.74);
  --panel-solid: #202530;
  --panel-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f2f0f5;
  --muted: #a9a8b3;
  --accent: #a997d8;
  --accent-rgb: 169, 151, 216;
  --accent-2: #92b9aa;
  --danger: #e78383;
  --warning: #e5be77;
  --success: #8ec9a4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar: 248px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="tide"] {
  --bg: #e9ecec;
  --bg-2: #f5f3ef;
  --panel: rgba(255,255,255,.72);
  --panel-solid: #ffffff;
  --panel-soft: rgba(24, 31, 39, 0.045);
  --line: rgba(26, 32, 39, 0.09);
  --line-strong: rgba(26, 32, 39, 0.16);
  --text: #20252b;
  --muted: #687079;
  --shadow: 0 24px 70px rgba(43, 54, 62, 0.12);
}

html[data-theme="forest"] {
  --bg: #0d1614;
  --bg-2: #15211d;
  --panel: rgba(25, 41, 35, 0.74);
  --panel-solid: #1b2b25;
  --panel-soft: rgba(255,255,255,.045);
  --line: rgba(237, 244, 239, .085);
  --line-strong: rgba(237,244,239,.15);
  --text: #eef4ef;
  --muted: #a5b1a8;
  --accent-2: #b4cfb8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 12%, rgba(var(--accent-rgb), 0.16), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(118, 161, 145, 0.13), transparent 34%),
    linear-gradient(150deg, var(--bg), var(--bg-2));
  font-family: var(--font);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 80%);
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { background: rgba(var(--accent-rgb), .32); }

.noise {
  position: fixed;
  inset: 0;
  opacity: .045;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.hidden { display: none !important; }
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: .69rem;
  letter-spacing: .16em;
  font-weight: 760;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.tiny { font-size: .72rem; }
.small-text { font-size: .88rem; line-height: 1.5; }
.stack { display: flex; flex-direction: column; }
.gap-xs { gap: 7px; }
.gap-sm { gap: 12px; }
.full { width: 100%; }
.center { text-align: center; }

.app-shell { min-height: 100vh; position: relative; z-index: 2; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 26px; }
.brand strong { display: block; font-size: .98rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .68rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 850; letter-spacing: -.09em;
  color: #15151c;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 50%, white));
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), .23);
}
.brand-mark span { font-size: .6em; margin-left: 1px; opacity: .75; }
.brand-mark.large { width: 70px; height: 70px; border-radius: 21px; margin: 0 auto 18px; font-size: 1.5rem; }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  position: relative;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: var(--muted);
  cursor: pointer;
  transition: .2s ease;
  text-align: left;
}
.nav-item:hover { color: var(--text); background: var(--panel-soft); }
.nav-item.active { color: var(--text); background: rgba(var(--accent-rgb), .14); }
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 5px; background: var(--accent);
}
.nav-icon { width: 22px; display: inline-grid; place-items: center; font-size: 1.05rem; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; border-radius: 999px; padding: 0 6px; display: grid; place-items: center; background: var(--panel-soft); font-size: .68rem; }
.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 5px; }
.profile-chip { margin-top: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; gap: 10px; background: var(--panel-soft); }
.avatar { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .18); color: var(--accent); font-weight: 800; }
.profile-chip strong, .profile-chip small { display: block; }
.profile-chip strong { font-size: .84rem; }
.profile-chip small { color: var(--muted); font-size: .67rem; margin-top: 2px; }
.profile-chip .icon-button { margin-left: auto; }
.mini-action { border: 1px solid var(--line); background: var(--panel-soft); border-radius: 12px; padding: 10px 12px; cursor: pointer; color: var(--muted); }

.main-content { margin-left: var(--sidebar); padding: 0 34px 70px; max-width: 1680px; }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 15; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 91%, transparent) 64%, transparent); backdrop-filter: blur(12px); }
.topbar h2 { margin: 0; font-size: 1.38rem; letter-spacing: -.035em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.command-trigger { height: 42px; min-width: 245px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-soft); color: var(--muted); display: flex; align-items: center; gap: 9px; padding: 0 10px 0 13px; cursor: pointer; }
.command-trigger kbd { margin-left: auto; border: 1px solid var(--line); border-radius: 7px; padding: 3px 6px; font-size: .67rem; background: var(--panel); color: var(--muted); }

.view { display: none; animation: viewIn .34s ease both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 720;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #15151b; box-shadow: 0 10px 28px rgba(var(--accent-rgb), .2); }
.btn.soft { border-color: rgba(var(--accent-rgb), .18); background: rgba(var(--accent-rgb), .14); color: color-mix(in srgb, var(--accent) 72%, var(--text)); }
.btn.ghost { border-color: var(--line); background: var(--panel-soft); color: var(--muted); }
.btn.danger { border-color: rgba(231, 131, 131, .18); background: rgba(231, 131, 131, .11); color: var(--danger); }
.text-button { border: 0; background: none; padding: 4px; color: var(--muted); cursor: pointer; font-size: .78rem; }
.text-button:hover { color: var(--text); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--panel-soft); border-radius: 12px; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); flex: 0 0 auto; }
.icon-button:hover { color: var(--text); border-color: var(--line-strong); }
.icon-button.small { width: 30px; height: 30px; border-radius: 9px; }
.icon-button.large { width: 50px; height: 50px; border-radius: 16px; font-size: 1.2rem; }

.input, .select, textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 12px;
  min-height: 43px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
}
.input:focus, .select:focus, textarea:focus { border-color: rgba(var(--accent-rgb), .5); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .09); }
select option { color: #17191e; }
label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: .78rem; }
.color-input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); padding: 5px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.inline-form { display: flex; gap: 10px; align-items: center; }
.inline-form .input { flex: 1; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(260px, .85fr); gap: 16px; margin-bottom: 16px; }
.hero-card, .weather-card { min-height: 220px; border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.hero-card { padding: 29px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-card::after { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; right: -90px; top: -150px; background: radial-gradient(circle, rgba(var(--accent-rgb), .23), transparent 65%); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: .96; letter-spacing: -.065em; max-width: 720px; }
.hero-subtitle { margin: 13px 0 0; color: var(--muted); font-size: 1rem; }
.decision-button { position: relative; z-index: 2; width: min(410px, 100%); border: 1px solid rgba(var(--accent-rgb), .22); background: rgba(var(--accent-rgb), .09); border-radius: 18px; padding: 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; transition: .25s ease; }
.decision-button:hover { transform: translateY(-2px); background: rgba(var(--accent-rgb), .14); }
.decision-orb { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #16161d; background: var(--accent); box-shadow: 0 0 28px rgba(var(--accent-rgb), .3); }
.decision-button small, .decision-button strong { display: block; }
.decision-button small { color: var(--muted); font-size: .68rem; margin-bottom: 2px; }
.decision-button strong { font-size: .88rem; }
.decision-button .arrow { margin-left: auto; color: var(--accent); font-size: 1.2rem; padding-right: 5px; }
.weather-card { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.card-topline { display: flex; justify-content: space-between; align-items: flex-start; }
.weather-main { display: flex; align-items: center; gap: 17px; }
.weather-icon { font-size: 3.5rem; color: var(--accent-2); line-height: 1; }
.weather-main strong { font-size: 2.45rem; letter-spacing: -.06em; }
.weather-main p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.weather-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; }

.dashboard-grid, .stats-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }
.panel { border-radius: var(--radius-lg); padding: 20px; min-width: 0; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 17px; }
.panel-header h3, .section-header h3, .page-actions h3 { margin: 0; font-size: 1rem; letter-spacing: -.025em; }
.panel-footer-button { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); margin: 14px 0 -8px; padding: 15px 0 0; display: flex; justify-content: space-between; cursor: pointer; }

.continue-list { display: flex; flex-direction: column; gap: 7px; }
.continue-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; transition: .2s; cursor: pointer; }
.continue-item:hover { background: var(--panel-soft); }
.project-dot { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--project-color) 18%, transparent); color: var(--project-color); font-weight: 850; }
.continue-item > div:nth-child(2) { min-width: 0; }
.continue-item strong, .continue-item small { display: block; }
.continue-item strong { font-size: .86rem; margin-bottom: 4px; }
.continue-item small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue-meta { text-align: right; }
.continue-meta span { display: block; font-size: .72rem; color: var(--muted); }
.continue-meta b { font-size: .75rem; color: var(--accent); }

.task-list { display: flex; flex-direction: column; gap: 7px; }
.task-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid transparent; border-radius: 13px; transition: .18s; }
.task-row:hover { background: var(--panel-soft); border-color: var(--line); }
.task-row.done { opacity: .55; }
.task-row.done .task-title { text-decoration: line-through; }
.task-check { width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 7px; background: transparent; cursor: pointer; display: grid; place-items: center; color: #17191d; }
.task-check.checked { background: var(--success); border-color: transparent; }
.task-title { font-size: .83rem; font-weight: 720; display: block; }
.task-sub { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--muted); font-size: .67rem; }
.task-tag { display: inline-flex; align-items: center; gap: 5px; }
.task-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--project-color, var(--accent)); }
.task-actions { display: flex; gap: 5px; opacity: 0; transition: .18s; }
.task-row:hover .task-actions { opacity: 1; }
.task-actions button { width: 29px; height: 29px; border: 0; border-radius: 8px; background: var(--panel-soft); color: var(--muted); cursor: pointer; }
.task-alert { color: var(--warning); }
.task-blocked { color: var(--danger); }

.orbit-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.orbit-chip { padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel-soft); min-width: 0; }
.orbit-chip span { display: block; color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.orbit-chip strong { display: block; font-size: .83rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.couple-card { text-align: center; padding: 4px 0 0; }
.couple-symbol { font-size: 1.55rem; font-weight: 900; letter-spacing: -.05em; margin: 2px 0 15px; }
.couple-symbol span { color: var(--accent); margin: 0 7px; }
.couple-card > strong { display: block; font-size: 2rem; letter-spacing: -.05em; }
.couple-card > p { margin: 5px 0 16px; color: var(--muted); font-size: .75rem; }
.couple-actions { display: flex; gap: 8px; justify-content: center; }
.couple-actions .btn { min-height: 36px; padding: 0 12px; font-size: .72rem; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-stat { border: 1px solid var(--line); border-radius: 15px; padding: 12px; background: var(--panel-soft); }
.mini-stat strong { display: block; font-size: 1.25rem; letter-spacing: -.04em; }
.mini-stat small { color: var(--muted); font-size: .65rem; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.quick-link { position: relative; min-height: 93px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--panel-soft); display: flex; flex-direction: column; justify-content: space-between; transition: .2s ease; overflow: hidden; }
.quick-link::after { content: ""; position: absolute; width: 55px; height: 55px; border-radius: 50%; right: -17px; bottom: -19px; background: color-mix(in srgb, var(--link-color) 25%, transparent); filter: blur(1px); }
.quick-link:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.quick-link-icon { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--link-color) 18%, transparent); color: var(--link-color); font-weight: 850; }
.quick-link strong { font-size: .76rem; position: relative; z-index: 2; }

.page-actions { min-height: 50px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-intro { max-width: 710px; margin: 0; color: var(--muted); line-height: 1.55; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-soft); overflow-x: auto; }
.segmented button { border: 0; background: transparent; color: var(--muted); min-height: 34px; border-radius: 9px; padding: 0 12px; cursor: pointer; white-space: nowrap; }
.segmented button.active { background: rgba(var(--accent-rgb), .15); color: var(--text); }
.overview-strip { border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: repeat(3, minmax(100px, 160px)) 1fr; gap: 15px; align-items: center; margin-bottom: 18px; }
.overview-strip > div:not(.overview-message) { padding-right: 15px; border-right: 1px solid var(--line); }
.overview-strip span { display: block; font-size: 1.35rem; font-weight: 800; }
.overview-strip small { color: var(--muted); font-size: .69rem; }
.overview-message { text-align: right; }
.overview-message strong, .overview-message small { display: block; }
.overview-message strong { font-size: .86rem; margin-bottom: 3px; }
.task-groups { display: flex; flex-direction: column; gap: 18px; }
.task-group { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.task-group-header { padding: 14px 17px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.task-group-header strong { font-size: .83rem; }
.task-group-header span { color: var(--muted); font-size: .7rem; }
.task-group .task-row { border-radius: 0; border-bottom: 1px solid var(--line); padding: 13px 16px; }
.task-group .task-row:last-child { border-bottom: 0; }
.empty-state { border: 1px dashed var(--line-strong); border-radius: 18px; padding: 34px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); margin-bottom: 6px; }

.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { position: relative; min-height: 250px; border-radius: var(--radius-lg); padding: 20px; overflow: hidden; }
.project-card::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -70px; top: -75px; background: radial-gradient(circle, color-mix(in srgb, var(--project-color) 30%, transparent), transparent 67%); }
.project-card-top { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; }
.project-card .project-dot { width: 48px; height: 48px; border-radius: 15px; }
.project-menu { display: flex; gap: 5px; }
.project-card h3 { margin: 22px 0 7px; font-size: 1.25rem; letter-spacing: -.04em; }
.project-card p { color: var(--muted); font-size: .8rem; line-height: 1.5; min-height: 38px; }
.project-next { border: 1px solid var(--line); background: var(--panel-soft); border-radius: 14px; padding: 11px; margin-top: 16px; }
.project-next span { display: block; color: var(--muted); font-size: .61rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px; }
.project-next strong { font-size: .76rem; }
.progress-track { height: 6px; border-radius: 999px; background: var(--panel-soft); overflow: hidden; margin-top: 18px; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--project-color); }
.project-card-footer { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: .67rem; }
.project-status { text-transform: capitalize; }

.capture-hero { border-radius: var(--radius-xl); padding: 28px; margin-bottom: 25px; }
.capture-hero h2 { margin: 0 0 7px; font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -.055em; }
.capture-form { margin-top: 22px; }
.capture-form textarea { min-height: 110px; font-size: 1rem; }
.capture-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.capture-actions .select { width: auto; min-width: 210px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 24px 0 14px; }
.inbox-list { display: flex; flex-direction: column; gap: 10px; }
.inbox-item { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 15px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; }
.inbox-type { width: 38px; height: 38px; border-radius: 12px; background: rgba(var(--accent-rgb), .13); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.inbox-item p { margin: 0; line-height: 1.45; font-size: .84rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-item small { color: var(--muted); display: block; margin-top: 5px; }
.inbox-actions { display: flex; gap: 6px; }
.inbox-actions button { min-height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); color: var(--muted); padding: 0 10px; cursor: pointer; }

.focus-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr); gap: 16px; min-height: calc(100vh - 160px); }
.focus-stage { border-radius: var(--radius-xl); padding: 30px; min-height: 610px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.focus-stage::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .16), transparent 65%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .68; } }
.focus-stage > * { position: relative; z-index: 2; }
.focus-task-select { border: 0; background: transparent; color: var(--text); text-align: center; max-width: 620px; font-size: 1rem; outline: none; margin-bottom: 20px; }
.focus-timer { font-size: clamp(5.5rem, 12vw, 10rem); line-height: 1; letter-spacing: -.085em; font-weight: 790; margin: 20px 0 12px; }
.focus-controls { display: flex; align-items: center; gap: 16px; margin: 26px 0; }
.focus-play { width: 78px; height: 78px; border: 0; border-radius: 50%; background: var(--accent); color: #17181c; display: grid; place-items: center; cursor: pointer; font-size: 1.4rem; box-shadow: 0 16px 42px rgba(var(--accent-rgb), .28); }
.focus-presets { margin-top: 12px; }
.focus-side { display: flex; flex-direction: column; gap: 16px; }
.focus-side .panel { flex: 1; }
.focus-session-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.focus-session-stats div { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); }
.focus-session-stats strong, .focus-session-stats small { display: block; }
.focus-session-stats strong { font-size: 1.35rem; }
.focus-session-stats small { color: var(--muted); font-size: .68rem; margin-top: 4px; }
.music-panel { display: flex; flex-direction: column; }
.music-art { width: 100%; aspect-ratio: 1.65; border-radius: 18px; margin-bottom: 17px; display: grid; place-items: center; font-size: 3rem; font-weight: 900; letter-spacing: -.08em; color: #15171b; background: linear-gradient(145deg, #a7bdab, #d1c4e7 55%, #e6d8c5); }
.music-panel h3 { margin: 0; }
.music-panel .btn { margin-top: auto; }

.orbit-hero { border-radius: var(--radius-xl); padding: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.orbit-hero h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.06em; }
.mood-selector { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.mood-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-soft); cursor: pointer; font-size: 1.05rem; }
.mood-button.active { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .16); }
.orbit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.orbit-card { min-height: 220px; border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; }
.orbit-card-icon { font-size: 1.8rem; margin-bottom: auto; }
.orbit-card label { margin-top: 20px; }
.orbit-card input { font-size: 1.15rem; font-weight: 760; border: 0; padding-left: 0; background: transparent; border-radius: 0; border-bottom: 1px solid var(--line); }
.orbit-card input:focus { box-shadow: none; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 110px 14px 1fr; gap: 13px; align-items: center; color: var(--muted); font-size: .78rem; }
.timeline-point { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .09); }
.timeline-copy { border-left: 1px solid var(--line); padding: 10px 0 10px 17px; color: var(--text); }

.vault-tabs { margin-bottom: 18px; }
.vault-pane { display: none; }
.vault-pane.active { display: block; animation: viewIn .25s ease; }
.colors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.color-card { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.color-swatch { height: 120px; position: relative; cursor: pointer; }
.color-swatch::after { content: "Copier"; position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 8px; background: rgba(0,0,0,.32); color: white; font-size: .66rem; opacity: 0; transition: .18s; }
.color-swatch:hover::after { opacity: 1; }
.color-info { padding: 13px; display: flex; align-items: center; gap: 10px; }
.color-info div { min-width: 0; }
.color-info strong, .color-info small { display: block; }
.color-info strong { font-size: .82rem; }
.color-info small { color: var(--muted); margin-top: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.color-info .icon-button { margin-left: auto; width: 31px; height: 31px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.note-card { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 17px; min-height: 185px; display: flex; flex-direction: column; }
.note-card h3 { margin: 0 0 9px; font-size: .95rem; }
.note-card p { color: var(--muted); font-size: .78rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .65rem; }
.note-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.note-tag { border: 1px solid var(--line); padding: 3px 6px; border-radius: 999px; }
.vault-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vault-link-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 15px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; }
.vault-link-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--panel-soft); display: grid; place-items: center; color: var(--accent); }
.vault-link-card strong, .vault-link-card small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-link-card strong { font-size: .82rem; }
.vault-link-card small { color: var(--muted); margin-top: 4px; }

.stats-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card { border-radius: 19px; padding: 20px; }
.stat-card strong { display: block; font-size: 2rem; letter-spacing: -.06em; }
.stat-card span { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; }
.bar-chart { height: 250px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; padding: 25px 5px 0; }
.bar-column { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bar { width: min(38px, 72%); min-height: 3px; border-radius: 10px 10px 4px 4px; background: linear-gradient(to top, color-mix(in srgb, var(--accent) 65%, transparent), var(--accent)); box-shadow: 0 7px 20px rgba(var(--accent-rgb), .15); }
.bar-column strong { font-size: .68rem; }
.bar-column span { color: var(--muted); font-size: .63rem; }
.distribution-list { display: flex; flex-direction: column; gap: 13px; }
.distribution-item { display: grid; grid-template-columns: 1fr 55px; gap: 10px; align-items: center; }
.distribution-item-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .75rem; }
.distribution-item-top span { color: var(--muted); }
.distribution-bar { height: 7px; border-radius: 999px; background: var(--panel-soft); overflow: hidden; }
.distribution-bar div { height: 100%; border-radius: inherit; background: var(--project-color); }
.distribution-item > strong { text-align: right; font-size: .72rem; }
.streaks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.streak-card { padding: 14px; border: 1px solid var(--line); background: var(--panel-soft); border-radius: 15px; }
.streak-card strong { font-size: 1.25rem; display: block; }
.streak-card small { color: var(--muted); }
.wins-list { display: flex; flex-direction: column; gap: 10px; }
.win-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; }
.win-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(142,201,164,.12); color: var(--success); }
.win-item strong { font-size: .78rem; display: block; }
.win-item span { color: var(--muted); font-size: .65rem; }

.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.settings-grid .panel h3 { margin: 0 0 18px; }
.full-span { grid-column: 1 / -1; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; }
.theme-option { border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); padding: 8px; cursor: pointer; }
.theme-option.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .1); }
.theme-preview { height: 65px; border-radius: 10px; margin-bottom: 8px; }
.theme-option strong { font-size: .72rem; }
.toggle-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { color: var(--text); font-size: .82rem; }
.toggle-row small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.toggle-row.simple { padding: 5px 0; border: 0; color: var(--text); }
.toggle-row input[type="checkbox"] { appearance: none; width: 42px; height: 24px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-soft); position: relative; cursor: pointer; flex: 0 0 auto; transition: .2s; }
.toggle-row input[type="checkbox"]::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); top: 2px; left: 3px; transition: .2s; }
.toggle-row input[type="checkbox"]:checked { background: rgba(var(--accent-rgb), .22); border-color: rgba(var(--accent-rgb), .42); }
.toggle-row input[type="checkbox"]:checked::after { transform: translateX(16px); background: var(--accent); }
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.file-label { cursor: pointer; }

.modal, .command-modal {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
  box-shadow: 0 40px 120px rgba(0,0,0,.45);
  backdrop-filter: blur(30px);
}
.modal { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 30px); border-radius: 24px; padding: 0; overflow: auto; }
.modal::backdrop, .command-modal::backdrop { background: rgba(5,7,10,.67); backdrop-filter: blur(8px); }
.modal-close-form { position: sticky; top: 12px; z-index: 4; height: 0; display: flex; justify-content: flex-end; padding-right: 12px; }
.modal-close-form .icon-button { background: var(--panel-solid); }
.modal-content { padding: 28px; display: flex; flex-direction: column; gap: 15px; }
.modal-content h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.05em; }
.compact-modal { width: min(520px, calc(100vw - 24px)); }
.decision-modal { width: min(670px, calc(100vw - 24px)); }
.decision-field { margin-top: 4px; }
.decision-field > span { display: block; margin-bottom: 9px; color: var(--muted); font-size: .78rem; }
.choice-grid, .energy-choice { display: grid; gap: 7px; }
.choice-grid { grid-template-columns: repeat(4, 1fr); }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.energy-choice { grid-template-columns: repeat(5, 1fr); }
.choice-grid button, .energy-choice button { min-height: 43px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); color: var(--muted); cursor: pointer; }
.choice-grid button.active, .energy-choice button.active { color: var(--text); border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .15); }
.decision-result { border: 1px solid rgba(var(--accent-rgb), .25); background: rgba(var(--accent-rgb), .1); border-radius: 18px; padding: 18px; }
.decision-result .result-kicker { color: var(--accent); font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; }
.decision-result h3 { margin: 7px 0; font-size: 1.25rem; }
.decision-result p { color: var(--muted); line-height: 1.55; margin: 0 0 15px; }
.decision-result-actions { display: flex; gap: 8px; }

.command-modal { width: min(680px, calc(100vw - 20px)); max-height: min(650px, calc(100vh - 30px)); border-radius: 21px; padding: 0; margin-top: 10vh; overflow: hidden; }
.command-box { display: flex; flex-direction: column; max-height: min(650px, calc(100vh - 30px)); }
.command-input-wrap { min-height: 67px; display: flex; align-items: center; gap: 12px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.command-input-wrap input { flex: 1; border: 0; background: transparent; color: var(--text); outline: none; font-size: 1rem; }
.command-input-wrap kbd { border: 1px solid var(--line); border-radius: 7px; padding: 4px 7px; color: var(--muted); font-size: .66rem; }
.command-results { overflow: auto; padding: 9px; }
.command-section-title { padding: 8px 10px 5px; color: var(--muted); font-size: .62rem; letter-spacing: .11em; text-transform: uppercase; }
.command-result { width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: transparent; color: var(--text); padding: 9px 10px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.command-result:hover, .command-result.selected { background: var(--panel-soft); }
.command-result-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.command-result strong, .command-result small { display: block; }
.command-result strong { font-size: .8rem; }
.command-result small { color: var(--muted); margin-top: 3px; }
.command-result kbd { color: var(--muted); font-size: .65rem; }
.command-hint { display: flex; gap: 15px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .63rem; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { min-width: 250px; max-width: min(380px, calc(100vw - 30px)); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; background: var(--panel-solid); box-shadow: var(--shadow); animation: toastIn .25s ease both; }
.toast strong { display: block; font-size: .8rem; }
.toast span { color: var(--muted); font-size: .7rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
.celebrate { position: fixed; inset: 0; pointer-events: none; z-index: 99; overflow: hidden; }
.confetti { position: absolute; width: 8px; height: 14px; border-radius: 3px; background: var(--accent); animation: fall 1.1s ease-out forwards; }
@keyframes fall { to { transform: translate(var(--x), 90vh) rotate(520deg); opacity: 0; } }

.lock-screen { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), .18), transparent 28%), var(--bg); }
.lock-card { width: min(380px, 100%); border-radius: 27px; padding: 30px; text-align: center; }
.lock-card h1 { margin: 0; font-size: 2rem; }
.lock-card .muted { line-height: 1.5; }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  :root { --sidebar: 214px; }
  .main-content { padding-left: 24px; padding-right: 24px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-7, .span-5, .span-4, .span-3 { grid-column: span 6; }
  .quick-links { grid-template-columns: repeat(4, 1fr); }
  .orbit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --sidebar: 0px; }
  body { padding-bottom: 82px; }
  .sidebar { display: none; }
  .main-content { margin: 0; padding: 0 16px 30px; }
  .topbar { height: 78px; }
  .topbar h2 { font-size: 1.12rem; }
  .topbar .eyebrow { font-size: .6rem; }
  .desktop-only, .command-trigger span:nth-child(2), .command-trigger kbd { display: none; }
  .command-trigger { min-width: 42px; width: 42px; justify-content: center; padding: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 260px; }
  .weather-card { min-height: 185px; }
  .dashboard-grid, .stats-grid { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-12 { grid-column: 1; }
  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .mobile-nav { position: fixed; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); min-height: 62px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 20px; background: color-mix(in srgb, var(--panel-solid) 90%, transparent); box-shadow: 0 20px 55px rgba(0,0,0,.35); backdrop-filter: blur(24px); }
  .mobile-nav button { border: 0; background: transparent; color: var(--muted); border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
  .mobile-nav button.active { background: rgba(var(--accent-rgb), .14); color: var(--text); }
  .mobile-nav small { font-size: .59rem; }
  .mobile-nav .mobile-capture { width: 52px; height: 52px; border-radius: 17px; background: var(--accent); color: #17191d; align-self: center; justify-self: center; font-size: 1.4rem; transform: translateY(-13px); box-shadow: 0 12px 30px rgba(var(--accent-rgb), .3); }
  .overview-strip { grid-template-columns: repeat(3, 1fr); }
  .overview-message { grid-column: 1 / -1; text-align: left; padding-top: 12px; border-top: 1px solid var(--line); }
  .projects-grid, .notes-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-layout { grid-template-columns: 1fr; min-height: auto; }
  .focus-stage { min-height: 520px; }
  .focus-side { display: grid; grid-template-columns: 1fr 1fr; }
  .orbit-hero { align-items: flex-start; flex-direction: column; }
  .mood-selector { justify-content: flex-start; }
  .settings-grid { grid-template-columns: 1fr; }
  .stats-hero { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .main-content { padding-left: 12px; padding-right: 12px; }
  .topbar-actions { gap: 6px; }
  .hero-card, .weather-card, .capture-hero { border-radius: 22px; }
  .hero-card { padding: 22px; min-height: 270px; }
  .hero-copy h1 { font-size: 2.55rem; }
  .panel { padding: 16px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .task-actions { opacity: 1; }
  .page-actions { align-items: stretch; flex-direction: column; }
  .page-actions .btn { align-self: flex-end; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .overview-strip { grid-template-columns: repeat(3, 1fr); padding: 13px; }
  .overview-strip > div:not(.overview-message) { padding-right: 8px; }
  .overview-strip span { font-size: 1.1rem; }
  .projects-grid, .orbit-grid, .notes-grid, .vault-links-grid { grid-template-columns: 1fr; }
  .capture-actions { flex-direction: column; }
  .capture-actions .select { width: 100%; }
  .inbox-item { grid-template-columns: 36px 1fr; }
  .inbox-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .focus-timer { font-size: 5.6rem; }
  .focus-side { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 78px 12px 1fr; }
  .colors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-hero { grid-template-columns: repeat(2, 1fr); }
  .bar-chart { gap: 6px; }
  .settings-actions { flex-direction: column; }
  .inline-form { flex-wrap: wrap; }
  .inline-form .input { width: 100%; flex-basis: 100%; }
  .form-grid, .form-grid.two { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-grid.three { grid-template-columns: 1fr; }
  .modal-content { padding: 24px 18px; }
  .decision-result-actions { flex-direction: column; }
  .theme-options { grid-template-columns: 1fr; }
}

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