:root {
  --bg: #f2f4ef;
  --surface: #fbfcf9;
  --surface-2: #e9eee8;
  --ink: #18201e;
  --muted: #6f7a76;
  --line: #dde3dd;
  --dark: #121a18;
  --mint: #83dab5;
  --mint-soft: #dff5e9;
  --coral: #f58d78;
  --coral-soft: #ffebe6;
  --yellow: #e6c96e;
  --shadow: 0 18px 50px rgba(25, 39, 35, .08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px 1fr; }

.sidebar { position: sticky; top: 0; height: 100vh; background: var(--dark); color: #edf3ef; padding: 26px 18px 18px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 28px; font: 700 21px 'Manrope', sans-serif; letter-spacing: -.7px; }
.brand b { color: var(--mint); }
.quick-add { border: 0; border-radius: 12px; padding: 12px 13px; background: var(--mint); color: #12221c; font-weight: 700; display: flex; align-items: center; gap: 10px; cursor: pointer; box-shadow: 0 8px 22px rgba(104, 210, 166, .16); }
.quick-add span { font-size: 21px; line-height: 1; }.quick-add kbd { margin-left: auto; background: rgba(0,0,0,.1); }
.main-nav { display: grid; gap: 5px; margin-top: 23px; }
.nav-item, .area-link { border: 0; background: transparent; color: #aab6b1; min-height: 43px; border-radius: 10px; padding: 0 12px; display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; text-align: left; font-weight: 500; }
.nav-item:hover, .area-link:hover { background: rgba(255,255,255,.05); color: white; }
.nav-item.active { background: rgba(131,218,181,.13); color: var(--mint); }
.nav-icon { width: 19px; text-align: center; font-size: 19px; }.nav-count { margin-left: auto; font-size: 12px; }
.sidebar-section { border-top: 1px solid rgba(255,255,255,.08); margin-top: 20px; padding-top: 15px; }
.sidebar-label { color: #687570; font-size: 10px; letter-spacing: 1.7px; margin: 7px 12px; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }.dot.coral { background: var(--coral); }.dot.mint { background: var(--mint); }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.profile { border: 0; color: #edf3ef; background: rgba(255,255,255,.04); padding: 10px; border-radius: 12px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; text-align: left; width: 100%; cursor: pointer; margin-top: 6px; }
.profile b, .profile small { display: block; }.profile b { font-size: 13px; }.profile small { color: #7f8d88; font-size: 10px; margin-top: 2px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--coral); display: grid; place-items: center; color: #331c18; font-size: 11px; font-weight: 800; }

.main { min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(242,244,239,.84); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.search { border: 1px solid var(--line); background: rgba(255,255,255,.65); color: var(--muted); border-radius: 11px; min-width: 290px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; cursor: pointer; text-align: left; }.search kbd { margin-left: auto; }
kbd { border: 0; border-radius: 5px; padding: 3px 6px; background: var(--surface-2); color: var(--muted); font-size: 10px; font-family: inherit; }
.top-actions { display: flex; align-items: center; gap: 10px; }.sync-pill { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }.sync-pill i { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; }
.icon-button { border: 1px solid var(--line); background: var(--surface); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; font-size: 19px; }.menu-button { display: none; }
.content { max-width: 1240px; margin: 0 auto; padding: 46px clamp(22px, 5vw, 70px) 80px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 31px; }.eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 800; color: #6a7772; }.page-head h1 { font: 800 clamp(30px, 4vw, 45px)/1.05 'Manrope', sans-serif; letter-spacing: -2.2px; margin: 7px 0 6px; }.page-head p { margin: 0; color: var(--muted); }
.date-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 10px 14px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.grid { display: grid; gap: 18px; }.dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(260px, .8fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; }.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }.card-head h2 { font: 700 16px 'Manrope', sans-serif; margin: 0; letter-spacing: -.4px; }.card-head small { color: var(--muted); }
.progress-card { background: var(--dark); color: white; overflow: hidden; position: relative; }.progress-card::after { content: ''; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(131,218,181,.15); border-radius: 50%; right: -90px; bottom: -130px; box-shadow: 0 0 0 28px rgba(131,218,181,.04), 0 0 0 58px rgba(131,218,181,.025); }.progress-label { color: #93a19c; font-size: 11px; letter-spacing: 1.3px; font-weight: 700; }.progress-number { font: 800 51px 'Manrope'; letter-spacing: -3px; margin: 7px 0; }.progress-number span { color: var(--mint); }.progress-track { height: 7px; background: rgba(255,255,255,.1); border-radius: 9px; overflow: hidden; margin-top: 20px; }.progress-track i { display: block; height: 100%; background: var(--mint); border-radius: 9px; }.progress-caption { color: #8c9995; font-size: 12px; margin-top: 10px; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 18px; }.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 17px; }.metric small { display: block; color: var(--muted); font-size: 11px; }.metric strong { font: 750 28px 'Manrope'; display: block; margin-top: 6px; letter-spacing: -1px; }.metric strong.coral-text { color: #dc715e; }
.task-list { display: grid; gap: 2px; }.task-row { min-width: 0; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 11px; border-radius: 11px; padding: 11px 9px; cursor: pointer; }.task-row:hover { background: var(--surface-2); }.check { width: 20px; height: 20px; border: 1.5px solid #b8c2be; border-radius: 7px; background: transparent; cursor: pointer; }.check:hover { border-color: var(--mint); }.check.done { background: var(--mint); border-color: var(--mint); color: #173126; }.task-copy { min-width: 0; }.task-copy b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.task-copy small { color: var(--muted); font-size: 11px; display: flex; gap: 7px; margin-top: 4px; }.task-row.completed .task-copy b { text-decoration: line-through; color: #8d9994; }.priority { width: 7px; height: 7px; border-radius: 50%; background: #c9d0cc; }.priority.high { background: var(--coral); }.task-date { font-size: 11px; color: var(--muted); white-space: nowrap; }
.empty { text-align: center; padding: 42px 18px; color: var(--muted); }.empty .empty-icon { width: 48px; height: 48px; border-radius: 16px; background: var(--mint-soft); color: #317858; display: grid; place-items: center; margin: 0 auto 12px; font-size: 22px; }.empty h3 { margin: 0 0 5px; color: var(--ink); }.empty p { margin: 0; font-size: 13px; }
.habit-list { display: grid; gap: 10px; }.habit { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }.habit:last-child { border: 0; }.habit b { font-size: 13px; }.habit small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }.habit button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }.habit button.checked { background: var(--mint); border-color: var(--mint); }
.section-title { font: 750 18px 'Manrope'; margin: 32px 0 14px; letter-spacing: -.5px; }.section-title:first-child { margin-top: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }.filter { border: 1px solid var(--line); background: var(--surface); padding: 8px 13px; border-radius: 99px; color: var(--muted); cursor: pointer; font-size: 12px; }.filter.active { background: var(--dark); color: white; border-color: var(--dark); }.filters .primary-button { margin-left: auto; }
.primary-button, .ghost-button { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; }.primary-button { background: var(--dark); color: white; }.primary-button:hover { background: #25312e; }.ghost-button { background: var(--surface-2); color: var(--ink); }
.projects-grid, .notes-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(245px,1fr)); gap: 15px; }.project-card, .note-card { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 19px; cursor: pointer; transition: .2s ease; }.project-card:hover, .note-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }.project-card .project-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--mint-soft); margin-bottom: 24px; }.project-card h3, .note-card h3 { margin: 0 0 7px; font: 700 15px 'Manrope'; }.project-card p, .note-card p { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.55; }.project-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: var(--muted); font-size: 11px; }.mini-progress { width: 74px; height: 5px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }.mini-progress i { height: 100%; display: block; background: var(--mint); }.note-card { min-height: 176px; display: flex; flex-direction: column; }.note-card .note-foot { margin-top: auto; font-size: 10px; color: #98a19e; padding-top: 18px; }.add-card { display: grid; place-items: center; border-style: dashed; color: var(--muted); min-height: 176px; }.add-card span { font-size: 26px; display: block; text-align: center; }
.settings-grid { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }.setting-card h3 { margin: 0 0 8px; }.setting-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }.danger { color: #bb5544; }

dialog { border: 0; border-radius: 22px; padding: 0; width: min(620px, calc(100% - 28px)); color: var(--ink); background: var(--surface); box-shadow: 0 30px 90px rgba(10,20,17,.26); }dialog::backdrop { background: rgba(10,18,16,.56); backdrop-filter: blur(3px); }dialog form { padding: 26px; }.dialog-head { display: flex; justify-content: space-between; margin-bottom: 23px; }.dialog-head h2 { margin: 5px 0 0; font: 750 22px 'Manrope'; }.dialog-head .icon-button { border: 0; background: var(--surface-2); }.dialog-head .eyebrow { color: #4e9b78; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 15px; }input, textarea, select { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 10px; padding: 11px 12px; outline: 0; }input:focus, textarea:focus, select:focus { border-color: #6bc69f; box-shadow: 0 0 0 3px rgba(107,198,159,.13); }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.search-dialog { top: -28vh; }.search-dialog form { padding: 0; }.global-search { height: 62px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 17px; align-items: center; border-bottom: 1px solid var(--line); }.global-search input { border: 0; padding: 0; font-size: 15px; background: transparent; }.global-search input:focus { box-shadow: none; }.global-search button { border: 0; border-radius: 6px; color: var(--muted); font-size: 10px; padding: 5px 7px; }.search-results { padding: 10px; max-height: 350px; overflow: auto; }.search-results > p { color: var(--muted); font-size: 12px; padding: 10px; }.search-result { padding: 11px; border-radius: 9px; cursor: pointer; }.search-result:hover { background: var(--surface-2); }.search-result b { display: block; font-size: 13px; }.search-result small { color: var(--muted); }
#toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%,20px); background: var(--dark); color: white; border-radius: 10px; padding: 11px 16px; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s ease; }#toast.show { opacity: 1; transform: translate(-50%,0); }
.mobile-fab, .backdrop { display: none; }

body.dark { --bg:#151b19; --surface:#1d2522; --surface-2:#26302c; --ink:#edf3ef; --muted:#97a39f; --line:#303a36; --dark:#0c1210; --shadow:0 18px 50px rgba(0,0,0,.24); color-scheme:dark; }.dark input,.dark textarea,.dark select,.dark .habit button { background:#161e1b; }.dark .topbar { background:rgba(21,27,25,.85); }.dark .metric strong.coral-text { color:#ff9b88; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; transform: translateX(-102%); transition: transform .25s ease; width: 272px; box-shadow: 20px 0 60px rgba(0,0,0,.25); }.sidebar.open { transform: translateX(0); }.backdrop.show { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(0,0,0,.4); }.menu-button { display: grid; }.search { min-width: 0; width: min(360px,60vw); }.search kbd { display: none; }.dashboard-grid { grid-template-columns: 1fr; }.mobile-fab { display: grid; place-items: center; position: fixed; z-index: 12; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 17px; border: 0; background: var(--mint); color: #14251e; font-size: 27px; box-shadow: var(--shadow); }
}
@media (max-width: 570px) {
  .topbar { height: 66px; padding: 0 14px; gap: 10px; }.search span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.sync-pill { display: none; }.content { padding: 30px 15px 85px; }.page-head { align-items: flex-start; }.date-chip { display: none; }.metrics { grid-template-columns: 1fr 1fr; }.metric:last-child { grid-column: 1/-1; }.form-grid { grid-template-columns: 1fr; }.projects-grid,.notes-grid { grid-template-columns: 1fr; }.page-head h1 { font-size: 34px; }.task-row { grid-template-columns: 25px minmax(0,1fr); }.task-date { display: none; }
}
