:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: rgba(255,255,255,.82);
  --panel-solid: #fff;
  --text: #15211d;
  --muted: #708078;
  --line: #e7ebe8;
  --green: #159fa7;
  --green-dark: #087078;
  --green-soft: #e5f7f7;
  --blue-soft: #edf3ff;
  --blue: #4b73d1;
  --shadow: 0 24px 70px rgba(33,55,45,.10);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1311;
  --panel: rgba(20,31,27,.88);
  --panel-solid: #141f1b;
  --text: #edf5f1;
  --muted: #8fa39a;
  --line: #293832;
  --green-soft: #163a2b;
  --blue-soft: #172845;
  --shadow: 0 28px 70px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; font-family: "DM Sans", sans-serif; color: var(--text); background: var(--bg); transition: background .25s, color .25s; overflow-x: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
.ambient { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .75; }
.ambient-one { width: 440px; height: 440px; right: -170px; top: -170px; background: radial-gradient(circle, rgba(92,208,153,.16), transparent 68%); }
.ambient-two { width: 380px; height: 380px; left: -180px; bottom: -200px; background: radial-gradient(circle, rgba(86,128,224,.12), transparent 67%); }
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 72px; position: relative; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font: 600 18px/1 "Manrope", sans-serif; letter-spacing: -.4px; }
.brand strong { color: var(--green); font-weight: 800; }
.brand-logo { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #101e27, #17263d); box-shadow: -5px 5px 18px rgba(255,46,116,.14), 5px 5px 20px rgba(20,190,216,.18); }
.brand-logo img { width: 96%; height: 96%; object-fit: contain; transform: translateY(2px); }
.header-meta { display: flex; align-items: center; gap: 12px; }
.logout-button { border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; padding: 8px; }
.sync-state { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.sync-state i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(31,157,104,.1); }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--panel); border-radius: 13px; display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.moon-icon { display: none; } [data-theme="dark"] .sun-icon { display: none; } [data-theme="dark"] .moon-icon { display: block; }
.hero { min-height: 210px; display: flex; align-items: center; justify-content: space-between; padding: 28px 12px 42px; gap: 40px; }
.eyebrow { margin: 0 0 11px; color: var(--green); font-weight: 800; font-size: 11px; letter-spacing: 1.8px; }
h1 { margin: 0; font: 700 clamp(38px, 5vw, 58px)/1.05 "Manrope", sans-serif; letter-spacing: -2.7px; }
h1 em { font-style: normal; color: var(--green); }
.progress-card { display: flex; align-items: center; gap: 15px; background: var(--panel); border: 1px solid rgba(255,255,255,.4); border-radius: 22px; padding: 15px 20px 15px 15px; box-shadow: 0 12px 45px rgba(39,80,61,.07); backdrop-filter: blur(14px); min-width: 245px; }
.progress-card strong, .progress-card small { display: block; }.progress-card strong { font-size: 14px; margin-bottom: 4px; }.progress-card small { color: var(--muted); font-size: 11px; }
.progress-ring { --progress: 0deg; width: 55px; height: 55px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) var(--progress), var(--line) 0); position: relative; }
.progress-ring::after { content: ""; position: absolute; inset: 5px; background: var(--panel-solid); border-radius: inherit; }.progress-ring span { position: relative; z-index: 1; font-size: 10px; font-weight: 800; }
.calendar-card { margin-bottom: 16px; background: var(--panel); border: 1px solid rgba(255,255,255,.55); border-radius: 28px; box-shadow: 0 18px 55px rgba(33,55,45,.07); backdrop-filter: blur(18px); padding: 22px 24px 24px; }
.calendar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }.calendar-head h2 { margin: 0; font: 700 20px "Manrope"; letter-spacing: -.7px; }.calendar-head .eyebrow { margin-bottom: 5px; }
.calendar-legend { display: flex; gap: 13px; color: var(--muted); font-size: 10px; font-weight: 700; }.calendar-legend span { display: flex; align-items: center; gap: 6px; }.calendar-legend i, .calendar-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }.dot-work, .calendar-dot.work { background: var(--green); }.dot-personal, .calendar-dot.personal { background: var(--blue); }
.calendar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.month-card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }.month-title { margin: 0 0 11px; font: 700 13px "Manrope"; text-transform: capitalize; }.month-weekdays, .month-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }.month-weekdays span { color: var(--muted); text-align: center; font-size: 8px; font-weight: 800; text-transform: uppercase; }.calendar-day { aspect-ratio: 1; min-width: 0; position: relative; display: grid; place-items: center; border: 0; border-radius: 9px; color: var(--text); background: transparent; font-size: 10px; cursor: pointer; }.calendar-day:hover { background: var(--bg); }.calendar-day.today { box-shadow: inset 0 0 0 1px var(--green); color: var(--green); font-weight: 800; }.calendar-day.selected { background: var(--text); color: var(--panel-solid); }.calendar-day.empty { pointer-events: none; }.calendar-dots { position: absolute; bottom: 3px; display: flex; gap: 2px; }.calendar-day.selected .calendar-dot { box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.quick-filters { display: flex; gap: 8px; margin: 0 0 16px; padding: 2px; overflow-x: auto; scrollbar-width: none; }.quick-filters::-webkit-scrollbar { display: none; }.quick-filter { flex: 0 0 auto; height: 36px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--panel); color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }.quick-filter.active { background: var(--text); border-color: var(--text); color: var(--panel-solid); }.quick-filter b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; padding: 0 4px; border-radius: 9px; background: var(--line); color: var(--muted); font-size: 9px; }.quick-filter.active b { background: rgba(255,255,255,.17); color: inherit; }
.workspace { background: var(--panel); border: 1px solid rgba(255,255,255,.55); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(18px); padding: 20px 24px 26px; min-height: 390px; }
.toolbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.tabs { display: flex; gap: 5px; background: var(--bg); padding: 5px; border-radius: 15px; }
.tab { border: 0; background: transparent; padding: 8px 12px; border-radius: 11px; font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; cursor: pointer; color: var(--muted); transition: .18s; }
.tab.active { background: var(--panel-solid); color: var(--text); box-shadow: 0 3px 12px rgba(20,40,30,.08); }
.tab-icon { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; color: var(--green); background: var(--green-soft); }.personal-icon { color: var(--blue); background: var(--blue-soft); }
.tab b { background: var(--line); color: var(--muted); min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-size: 10px; }
.toolbar-actions { display: flex; gap: 10px; }
.search-box { width: 190px; height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 13px; padding: 0 12px; background: var(--panel-solid); }
.search-box svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; }.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }.search-box input::placeholder { color: var(--muted); }
.add-button { height: 42px; border: 0; border-radius: 13px; padding: 0 16px; background: var(--text); color: var(--panel-solid); font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 7px 18px rgba(20,40,30,.15); }.add-button span:first-child { color: #31c7ce; font-size: 20px; font-weight: 400; }
[data-theme="dark"] .add-button { color: #122019; background: #eef5f1; }
.list-header { display: flex; justify-content: space-between; align-items: center; padding: 21px 7px 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.1px; font-size: 9px; font-weight: 800; }.list-header button { border: 0; background: transparent; cursor: pointer; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 10px; }
.task-list { display: grid; gap: 8px; }
.task { min-height: 68px; border: 1px solid var(--line); background: var(--panel-solid); border-radius: 17px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 10px 12px 10px 15px; gap: 14px; transition: transform .16s, border-color .16s, opacity .2s; animation: task-in .25s ease both; }.task:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }.task.done { opacity: .62; }.task.done .task-title { text-decoration: line-through; }
@keyframes task-in { from { opacity: 0; transform: translateY(6px); } }
.check { appearance: none; width: 21px; height: 21px; border: 1.5px solid #bcc8c2; border-radius: 7px; cursor: pointer; display: grid; place-items: center; transition: .15s; }.check::after { content: "✓"; color: white; font-size: 13px; opacity: 0; transform: scale(.4); transition: .15s; }.check:checked { background: var(--green); border-color: var(--green); }.check:checked::after { opacity: 1; transform: scale(1); }
.task-title { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }.task-date { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }.task-date.soon { color: #c67723; }.task-date.overdue { color: #d85353; }.task-date svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }.priority-badge { border-radius: 8px; padding: 3px 6px; font-size: 8px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }.priority-badge.important { color: #a66619; background: #fff0d8; }.priority-badge.urgent { color: #bd3f4c; background: #ffe3e6; }[data-theme="dark"] .priority-badge.important { background: #49351b; color: #f1b761; }[data-theme="dark"] .priority-badge.urgent { background: #4b252a; color: #ff8994; }.task-notes { margin: 5px 0 0; max-width: 680px; color: var(--muted); font-size: 10px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-menu { display: flex; gap: 3px; opacity: 0; transition: opacity .15s; }.task:hover .task-menu, .task:focus-within .task-menu { opacity: 1; }.task-menu button { border: 0; background: transparent; color: var(--muted); width: 31px; height: 31px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; font-size: 16px; }.task-menu button:hover { background: var(--bg); color: var(--text); }.task-menu .delete:hover { color: #d85353; }
.completed-section { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 11px; }.completed-section summary { width: fit-content; color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: .8px; padding: 5px 7px; }.completed-list { display: grid; gap: 8px; margin-top: 8px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }.empty-check { margin: 0 auto 14px; width: 45px; height: 45px; border-radius: 15px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 20px; }.empty-state h2 { margin: 0 0 5px; color: var(--text); font: 700 16px "Manrope"; }.empty-state p { margin: 0; font-size: 12px; }
.mobile-fab { display: none; }
dialog { width: min(540px, calc(100% - 32px)); border: 0; border-radius: 25px; background: var(--panel-solid); color: var(--text); padding: 0; box-shadow: 0 30px 90px rgba(0,0,0,.25); } dialog::backdrop { background: rgba(9,17,14,.48); backdrop-filter: blur(5px); } dialog[open] { animation: dialog-in .2s ease; } @keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
#taskForm { padding: 27px; }.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }.dialog-head h2 { margin: 0; font: 700 24px "Manrope"; letter-spacing: -1px; }.dialog-close { border: 0; background: var(--bg); border-radius: 10px; width: 34px; height: 34px; color: var(--muted); font-size: 22px; cursor: pointer; }.field { display: grid; gap: 8px; margin-bottom: 17px; }.field > span { font-size: 11px; font-weight: 700; }.field small { color: var(--muted); font-weight: 500; }.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); color: var(--text); padding: 0 13px; outline: 0; font-size: 13px; }.field input, .field select { height: 48px; }.field textarea { min-height: 78px; padding-top: 12px; resize: vertical; font-family: inherit; }.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,157,104,.1); }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }.dialog-actions button { height: 43px; border-radius: 12px; padding: 0 17px; font-size: 12px; font-weight: 700; cursor: pointer; }.secondary-button { border: 1px solid var(--line); background: transparent; }.primary-button { border: 0; background: var(--green); color: white; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); display: flex; align-items: center; gap: 12px; color: white; background: #17241e; border-radius: 12px; padding: 11px 16px; font-size: 11px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 30; box-shadow: 0 10px 40px rgba(0,0,0,.2); }.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }.toast button { border: 0; background: rgba(255,255,255,.14); color: #69e2d0; border-radius: 8px; padding: 5px 8px; font-size: 10px; font-weight: 800; cursor: pointer; }
.auth-dialog { width: min(410px, calc(100% - 32px)); text-align: center; }
.auth-dialog::backdrop { background: rgba(7,15,20,.72); backdrop-filter: blur(12px); }
.auth-dialog form { padding: 30px; }
.auth-mascot { width: 88px; height: 88px; margin: 0 auto 17px; border-radius: 27px; background: linear-gradient(145deg, #101e27, #17263d); overflow: hidden; box-shadow: -7px 8px 24px rgba(255,46,116,.16), 7px 8px 26px rgba(20,190,216,.18); }
.auth-mascot img { width: 100%; height: 100%; object-fit: contain; }
.auth-dialog h2 { margin: 0 0 7px; font: 700 25px "Manrope"; letter-spacing: -1px; }
.auth-copy { color: var(--muted); font-size: 12px; margin: 0 0 24px; }
.auth-dialog .field { text-align: left; }
.auth-error { min-height: 18px; margin: -5px 0 8px; color: #d85353; font-size: 11px; }
.task-error { min-height: 18px; margin: -7px 0 8px; color: #d85353; font-size: 11px; text-align: right; }
.auth-submit { width: 100%; height: 47px; border-radius: 13px; font-size: 13px; cursor: pointer; }
.auth-note { display: block; color: var(--muted); margin-top: 15px; font-size: 10px; line-height: 1.4; }

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 600px); padding-bottom: 90px; }.topbar { height: 72px; }.sync-state span { display: none; }.hero { min-height: 190px; display: block; padding: 34px 6px 28px; }.hero h1 { font-size: 39px; letter-spacing: -2px; }.progress-card { margin-top: 25px; min-width: 0; width: 100%; }.calendar-card { border-radius: 22px; padding: 18px 13px; overflow: hidden; }.calendar-head { align-items: flex-start; }.calendar-head h2 { font-size: 17px; }.calendar-legend { padding-top: 3px; }.calendar-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 5px; scrollbar-width: none; }.calendar-grid::-webkit-scrollbar { display: none; }.month-card { flex: 0 0 calc(100vw - 52px); max-width: 340px; scroll-snap-align: start; }.calendar-day { font-size: 11px; }.quick-filters { margin-left: -2px; margin-right: -2px; }.workspace { border-radius: 22px; padding: 14px 13px 20px; }.toolbar { align-items: stretch; flex-direction: column; border-bottom: 0; padding-bottom: 9px; gap: 11px; }.tabs { width: 100%; }.tab { flex: 1; justify-content: center; }.toolbar-actions { width: 100%; }.search-box { width: 100%; }.add-button { display: none; }.task { min-height: 71px; padding-left: 12px; gap: 11px; }.task-menu { opacity: 1; }.mobile-fab { display: grid; place-items: center; position: fixed; z-index: 5; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border: 0; border-radius: 18px; background: var(--green); color: white; font-size: 31px; font-weight: 300; box-shadow: 0 12px 28px rgba(31,157,104,.35); }.list-header { padding-top: 17px; }.field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 380px) { .task-menu button { width: 27px; }.task { grid-template-columns: auto minmax(0, 1fr) auto; }.hero h1 { font-size: 35px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
