:root {
 --bg:#fbf6f7; --paper:#fffdfd; --ink:#3f363a; --sub:#786b70; --muted:#9c8f94; --line:#ece2e5;
 --blue:#d3a5b2; --blue-wash:#faeef2; --sage:#c78fa0; --sage-wash:#f9e9ee; --red:#bc7b84; --sand:#faf0f3;
 --radius:10px; --font:-apple-system,BlinkMacSystemFont,"Pretendard","Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
 font-family:var(--font); color:var(--ink); background:var(--bg); font-size:15px; font-synthesis:none; -webkit-font-smoothing:antialiased;
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { overflow-y:scroll; overflow-x:hidden; scroll-behavior:smooth; }
body { margin:0; line-height:1.55; letter-spacing:-.025em; min-width:320px; }
button,input,select,textarea { font:inherit; color:inherit; letter-spacing:inherit; }
button { cursor:pointer; border:0; background:none; padding:0; touch-action:manipulation; }
button:disabled { opacity:.5; cursor:not-allowed; }
input,select,textarea { min-width:0; }
button,a,input,select,textarea { outline-offset:3px; }
:focus-visible { outline:2px solid var(--blue); }
a { color:inherit; text-decoration:none; }
p,h1,h2,h3 { margin:0; }
h1 { font-size:29px; font-weight:650; letter-spacing:-.055em; line-height:1.4; }
h2 { font-size:16px; font-weight:600; letter-spacing:-.035em; }
h3 { font-size:14px; font-weight:550; }
b,strong { font-weight:600; }
small { font-size:12px; }
.icon { width:21px; height:21px; flex-shrink:0; vertical-align:middle; }
.icon-btn { width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; flex-shrink:0; color:var(--sub); }
.icon-btn:hover { background:var(--blue-wash); color:var(--blue); }
.icon-btn.small { width:36px; height:38px; }
.icon-btn.small .icon { width:18px; height:18px; }
.btn { min-height:42px; display:inline-flex; gap:7px; align-items:center; justify-content:center; padding:9px 16px; border-radius:7px; font-size:14px; font-weight:500; line-height:1.4; border:1px solid transparent; white-space:nowrap; }
.btn.primary { background:var(--blue); color:#fff; }
.btn.primary:hover { background:#c88f9f; }
.btn.secondary { background:#fff; border-color:var(--line); }
.btn.secondary:hover { background:var(--bg); }
.text-btn { display:inline-flex; gap:5px; align-items:center; justify-content:center; color:var(--blue); min-height:40px; font-size:13px; padding:7px 0; }
.text-btn .icon { width:16px; height:16px; }
.text-btn:hover { text-decoration:underline; text-underline-offset:4px; }
.danger { color:var(--red)!important; }
.full { width:100%; }
.hidden { display:none!important; }
.skip-link { position:absolute; left:20px; top:-100px; padding:10px; background:white; z-index:99; }
.skip-link:focus { top:10px; }
.app-shell { min-height:100dvh; }
.sidebar { width:198px; position:fixed; top:0; bottom:0; left:0; background:#f8eff2; border-right:1px solid #eadfe3; padding:36px 18px 22px; display:flex; flex-direction:column; z-index:20; }
.brand { display:flex; align-items:center; gap:11px; padding:0 9px; font-size:20px; font-weight:600; line-height:1.5; white-space:nowrap; }
.brand small { display:block; color:#9b8c92; font-size:11px; font-weight:400; margin-top:2px; letter-spacing:-.03em; }
.brand-mark { display:flex; align-items:center; justify-content:center; width:32px; height:35px; border-radius:7px; background:#d3a5b2; color:#fff; flex-shrink:0; }
.brand-mark .icon { width:23px; height:23px; }
.side-nav { display:flex; flex-direction:column; gap:6px; margin-top:43px; }
.nav-item { display:flex; align-items:center; gap:13px; padding:13px 15px; border-radius:8px; color:#887980; font-size:15px; min-height:48px; }
.nav-item:hover { background:#f4e7ec; }
.nav-item.active { background:#f1e0e7; color:#735e66; font-weight:550; }
.nav-item .icon { width:21px; height:21px; }
.sidebar-bottom { margin-top:auto; padding:20px 10px 0; color:#a29299; }
.storage-status { display:flex; gap:7px; align-items:center; font-size:11px; }
.storage-status .icon { width:15px; height:15px; }
.version { display:block; font-size:10px; margin-top:11px; }
.workspace { margin-left:198px; min-height:100dvh; display:flex; flex-direction:column; }
.topbar { display:flex; align-items:center; justify-content:space-between; min-height:79px; border-bottom:1px solid var(--line); padding:15px 36px; background:var(--bg); gap:12px; }
.breadcrumb { color:var(--sub); font-size:13px; }
.breadcrumb span { color:#c7b8bd; padding:0 10px; }
.topbar-actions { display:flex; align-items:center; gap:10px; }
.desktop-sync { color:#a08f96; font-size:11px; margin-right:12px; }
.mobile-brand { display:none; }
main { width:100%; max-width:1460px; margin:0 auto; padding:34px 36px 24px; flex:1; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:23px; min-height:86px; }
.eyebrow { font-size:10px; font-weight:550; letter-spacing:.16em; color:#a49299; margin-bottom:6px; }
.heading-dot { display:inline-block; width:7px; height:7px; background:#d8b3bf; border-radius:50%; margin:0 0 3px 6px; }
.sage-dot { background:var(--sage); }
.page-subtitle { color:var(--sub); font-size:13px; margin-top:7px; font-weight:400; }
.date-controls { display:flex; align-items:center; gap:0; flex-shrink:0; padding:2px; background:#fff; border:1px solid var(--line); border-radius:8px; }
.date-controls .icon-btn { width:34px; height:34px; }
.date-controls .icon { width:16px; height:16px; }
.today-button { font-size:12px; height:34px; padding:0 8px; color:var(--sub); }
.today-button:hover { color:var(--blue); }
.day-summary { background:var(--blue-wash); border:1px solid #efdfe5; border-radius:var(--radius); padding:17px 24px; display:flex; align-items:center; gap:28px; margin-bottom:24px; box-shadow:0 1px 0 #ffffffb3 inset; }
.day-summary>span { display:flex; align-items:center; gap:8px; font-size:13px; color:#8c737d; white-space:nowrap; }
.day-summary>span .icon { width:18px; height:18px; }
.day-summary b { color:#7c5e69; margin-left:2px; font-size:18px; font-weight:600; }
.day-summary small { font-size:11px; font-weight:400; color:#a18b93; }
.summary-link { margin-left:auto; display:flex; align-items:center; gap:8px; color:var(--blue); font-size:12px; min-height:30px; }
.summary-link .icon { width:16px; height:16px; }
.dday-line { display:flex; flex-wrap:wrap; gap:8px; margin-top:-7px; margin-bottom:20px; }
.dday-line button { background:var(--sand); padding:6px 10px; border-radius:6px; font-size:12px; color:#96767e; display:inline-flex; gap:8px; align-items:center; }
.home-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:22px; align-items:start; }
.home-right { display:grid; gap:22px; min-width:0; }
.card { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; min-width:0; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:36px; margin-bottom:12px; }
.section-head h2 { display:flex; gap:9px; align-items:center; min-width:0; word-break:break-word; }
.count { font-size:12px; color:var(--sub); font-weight:400; letter-spacing:0; }
.empty { text-align:center; padding:28px 8px 22px; display:flex; align-items:center; flex-direction:column; }
.empty-mark { background:#faf1f4; border-radius:11px; width:39px; height:39px; display:flex; align-items:center; justify-content:center; color:#b09ca2; margin-bottom:12px; }
.empty-mark .icon { width:20px; height:20px; }
.empty p { font-size:14px; color:#7e6f75; }
.empty>span:not(.empty-mark) { font-size:12px; color:#a08f95; max-width:270px; margin-top:7px; line-height:1.7; }
.empty .text-btn { margin-top:9px; }
.card-bottom-link { width:100%; display:flex; align-items:center; justify-content:center; gap:7px; padding:13px 4px 0; margin-top:13px; border-top:1px solid var(--line); color:#8e7c83; font-size:12px; min-height:42px; }
.card-bottom-link .icon { width:16px; height:16px; }
.event-row { display:flex; align-items:flex-start; gap:13px; padding:17px 0; text-align:left; width:100%; border-bottom:1px solid #f1e7ea; }
.event-row:last-of-type { border-bottom:0; }
.event-row:hover .row-title { color:var(--blue); }
.event-time { width:45px; flex-shrink:0; font-size:13px; color:#7d6870; line-height:1.6; padding-top:1px; font-variant-numeric:tabular-nums; }
.event-time small { display:block; font-size:11px; color:#b7aab0; margin-top:2px; }
.event-line { width:3px; align-self:stretch; min-height:33px; border-radius:2px; background:var(--item-color); opacity:.78; }
.row-body { text-align:left; flex:1; min-width:0; color:inherit; padding:2px 0; }
.row-title { display:flex; align-items:center; flex-wrap:wrap; gap:5px; font-size:14px; line-height:1.6; font-weight:450; overflow-wrap:anywhere; text-align:left; }
.row-meta { display:flex; align-items:center; flex-wrap:wrap; gap:4px 9px; font-size:11px; color:#a08f95; margin-top:4px; line-height:1.7; }
.row-meta>.icon { width:11px; height:11px; }
.category-dot { display:inline-flex; align-items:center; gap:5px; font-size:inherit; }
.category-dot i { width:5px; height:5px; border-radius:50%; background:var(--item-color); flex-shrink:0; }
.row-note { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-wrap; font-size:12px; line-height:1.7; color:#917f86; margin-top:7px; word-break:break-word; }
.row-arrow { width:14px; height:14px; color:#c5b7bc; margin-top:6px; }
.task-row,.routine-row { display:flex; align-items:center; gap:11px; border-bottom:1px solid #f1e7ea; padding:13px 0; min-width:0; }
.task-row:last-child,.routine-row:last-child { border-bottom:0; }
.check-btn { width:23px; height:23px; border:1.2px solid #ddcfd4; border-radius:6px; display:flex; justify-content:center; align-items:center; flex-shrink:0; position:relative; }
.check-btn::before { content:''; position:absolute; inset:-8px; }
.check-btn:hover { border-color:var(--sage); background:#fcf3f6; }
.check-btn.checked { background:var(--sage); color:#fff; border-color:var(--sage); }
.check-btn .icon { width:16px; height:16px; }
.is-done .row-title { text-decoration:line-through; text-decoration-color:#d8c8ce; color:#ac9ca2; }
.is-done .row-meta { opacity:.75; }
.is-skipped .row-title { color:#ae9fa4; }
.is-skipped .check-btn { background:#f8f4f5; color:#a89a9e; }
.important-icon { width:13px; height:13px; color:#c29aa5; fill:#f6e6eb; }
.row-more { color:#b5a6ac; }
.done-toggle { width:100%; display:flex; align-items:center; gap:6px; font-size:12px; padding:12px 0 2px; color:#a09197; min-height:40px; }
.done-toggle .icon { width:14px; height:14px; }
.rotated { transform:rotate(180deg); }
.past-section { margin-top:22px; }
.past-toggle { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border:1px solid var(--line); border-radius:8px; background:#f7eff2; }
.past-toggle>span { display:flex; align-items:center; gap:9px; font-size:13px; color:#897980; }
.past-toggle>span:last-child { font-size:11px; }
.past-toggle .icon { width:17px; height:17px; }
.past-card { margin-top:8px; }
.past-entry { display:flex; align-items:center; gap:15px; }
.past-entry>small { color:var(--sub); width:32px; flex-shrink:0; }
.past-entry>.task-row { flex:1; }
.badge { display:inline-flex; align-items:center; border-radius:4px; font-size:10px; font-weight:400; line-height:1.4; padding:3px 6px; background:#f8eef1; color:#8c7d83; white-space:nowrap; }
.badge.sage { background:var(--sage-wash); color:#9f7683; }
.overdue { color:var(--red); }
.heading-picker { display:flex; align-items:center; gap:9px; text-align:left; }
.heading-picker>.icon { width:18px; height:18px; color:#a39198; }
.calendar-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; align-items:start; }
.calendar-card { padding:12px 0 0; overflow:hidden; }
.calendar-weekdays { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); text-align:center; padding:6px 0 12px; font-size:12px; color:#8e7f85; }
.red-day { color:var(--red)!important; }
.blue-day { color:#ab95b0!important; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.calendar-cell { min-height:111px; text-align:left; border-top:1px solid var(--line); border-right:1px solid #f1e7ea; padding:7px 5px 6px; display:flex; flex-direction:column; gap:5px; min-width:0; overflow:hidden; position:relative; }
.calendar-cell:nth-child(7n) { border-right:0; }
.calendar-cell:hover:not(.outside) { background:#fff8fa; }
.calendar-cell.selected { background:#fbf0f4!important; }
.calendar-cell.selected::after { content:''; position:absolute; inset:0; border:1px solid #dfc2cc; pointer-events:none; }
.calendar-cell.outside { background:#fef9fb; }
.day-top { display:flex; align-items:center; width:100%; gap:2px; min-height:25px; }
.day-number { width:25px; height:25px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:12px; font-variant-numeric:tabular-nums; }
.is-today .day-number { border-radius:50%; background:var(--blue); color:white!important; }
.holiday { font-size:9px; color:var(--red); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cell-items { display:flex; flex-direction:column; gap:3px; width:100%; }
.calendar-event { display:block; background:color-mix(in srgb,var(--item-color) 13%,white); color:var(--item-color); font-size:10px; line-height:1.6; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:1px 4px; border-radius:3px; font-weight:450; }
.calendar-event.task-event { background:none; padding-top:0; padding-bottom:0; color:#8a7a82; }
.finished { text-decoration:line-through; opacity:.6; }
.more-events { color:#a4959b; font-size:9px; line-height:1.3; padding-left:4px; }
.calendar-key { display:flex; gap:15px; align-items:center; padding:14px 17px; border-top:1px solid var(--line); font-size:10px; color:#a39399; }
.calendar-key>span { display:inline-flex; align-items:center; gap:5px; }
.calendar-key-note { margin-left:auto; }
.calendar-key i { width:8px; height:8px; border-radius:2px; display:inline-block; background:#e0bcc9; }
.calendar-key i.key-task { background:transparent; border:1px solid #c9b5be; }
.day-detail { padding:18px; }
.day-detail h2 { font-size:15px; }
.day-detail .event-row { gap:9px; }
.day-detail .event-time { width:37px; font-size:12px; }
.day-detail .row-title { font-size:13px; }
.day-detail .row-meta { gap:3px 6px; }
.day-detail .row-arrow { display:none; }
.day-detail .event-line { width:2px; }
.holiday-detail { color:var(--red); font-size:12px; margin-bottom:14px; }
.subsection-title { color:#9f8f95; font-size:11px; font-weight:450; margin-top:18px; padding-bottom:5px; border-bottom:1px solid var(--line); }
.section-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:22px; }
.segmented { display:inline-flex; background:#f6ecef; border-radius:7px; padding:4px; gap:2px; }
.segmented button { color:#8c7d84; font-size:13px; padding:8px 17px; border-radius:5px; min-height:35px; display:flex; gap:7px; align-items:center; justify-content:center; }
.segmented button.selected { background:#fff; color:#7a626b; box-shadow:0 1px 3px #6b4b570d; }
.segmented span { font-size:10px; color:#a39499; }
.week-caption { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.week-caption h2 { font-size:15px; }
.week-caption>span { color:#a9999f; font-size:10px; }
.week-board { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border:1px solid var(--line); background:white; border-radius:9px; overflow:hidden; }
.week-column { border-right:1px solid var(--line); display:flex; flex-direction:column; min-width:0; }
.week-column:last-child { border-right:0; }
.week-column.today-column { background:#fff4f7; }
.week-column.drag-over { background:var(--blue-wash); outline:2px dashed var(--blue); outline-offset:-3px; }
.week-day { display:flex; flex-direction:column; align-items:center; gap:4px; padding:15px 3px 12px; border-bottom:1px solid var(--line); min-height:85px; }
.week-day>span { font-size:11px; color:#a39399; }
.week-day b { font-size:17px; line-height:29px; width:29px; height:29px; font-weight:500; }
.week-day small { font-size:9px; }
.today-circle { border-radius:50%; background:var(--blue); color:white; }
.week-items { padding:8px 8px 15px; min-height:192px; flex:1; }
.week-event { display:block; border-left:2px solid var(--item-color); padding:6px 7px; text-align:left; font-size:11px; background:color-mix(in srgb,var(--item-color) 10%,white); width:100%; margin-bottom:8px; border-radius:3px; word-break:break-word; line-height:1.6; }
.week-event small { display:block; font-size:9px; color:#a39198; margin-bottom:1px; }
.task-row.compact { gap:7px; padding:8px 0; align-items:flex-start; }
.task-row.compact .check-btn { width:17px; height:17px; border-radius:4px; margin-top:5px; }
.task-row.compact .check-btn .icon { width:12px; height:12px; }
.task-row.compact .row-title { font-size:11px; }
.week-column .task-row.compact .row-more { display:none; }
.task-row.compact .row-meta { font-size:10px; }
.week-blank { text-align:center; font-size:10px; color:#c2b4b9; padding:32px 0; }
.week-bottom { min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:4px; padding:0 5px 3px 10px; }
.week-bottom span { font-size:9px; color:#b2a1a7; }
.week-bottom .icon-btn { width:26px; height:30px; }
.week-bottom .icon { width:15px; height:15px; }
.week-lower { display:grid; grid-template-columns:1.1fr 1fr; gap:20px; margin-top:22px; align-items:start; }
.week-lower .compact .row-title { font-size:13px; }
.week-lower .compact { align-items:center; }
.week-lower .compact .check-btn { margin-top:0; }
.small-note { font-size:12px; line-height:1.8; color:#98898f; font-weight:400; }
.review-numbers { display:flex; gap:35px; margin:22px 0; }
.review-numbers>span { display:flex; flex-direction:column; font-size:11px; color:#998a91; }
.review-numbers b { font-size:25px; font-weight:500; color:#8b6b75; margin-bottom:4px; }
.review-numbers small { font-size:12px; font-weight:400; color:#ad9ba2; margin-left:3px; }
.filter-row { display:flex; gap:6px; margin-bottom:18px; }
.filter-chip { padding:7px 13px; border:1px solid var(--line); border-radius:6px; font-size:12px; color:#9f8f95; min-height:35px; }
.filter-chip.selected { background:white; border-color:#d7b9c4; color:#8a6974; }
.inbox-card { max-width:870px; }
.project-toolbar { margin-bottom:16px; }
.projects-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
.project-card .section-head .icon { width:18px; height:18px; color:var(--sage); }
.project-progress { height:4px; background:#faedf1; margin:5px 0 8px; border-radius:3px; overflow:hidden; }
.project-progress span { display:block; height:100%; background:#d7a7b5; }
.routine-main { max-width:840px; }
.routine-symbol { color:#b7a6ad; margin-right:2px; }
.routine-symbol .icon { width:21px; height:21px; }
.history-title { font-size:16px; }
.history-card { max-width:970px; }
.history-scroll { overflow-x:auto; }
.history-table { border-collapse:collapse; width:100%; text-align:center; min-width:370px; }
.history-table th,.history-table td { padding:12px 8px; border-bottom:1px solid var(--line); }
.history-table thead th { font-size:11px; color:#ae9da4; font-weight:400; }
.history-table thead th small { display:block; color:#8f7982; font-size:14px; margin-top:5px; }
.history-table thead th:first-child,.history-table tbody th { width:30%; text-align:left; }
.history-table tbody th { font-size:13px; font-weight:400; overflow-wrap:anywhere; }
.history-check { display:flex; align-items:center; justify-content:center; width:30px; height:30px; background:#faf1f4; border-radius:6px; margin:auto; color:#beaeb4; font-size:20px; }
.history-check.done { background:#c996a5; color:white; }
.history-check.skip { background:#f9edf0; color:#bf8f9c; }
.history-check .icon { width:16px; height:16px; }
.history-today { background:#fdf4f7; }
.not-scheduled { color:#d8c9ce; font-size:12px; }
.history-key { display:flex; gap:16px; flex-wrap:wrap; align-items:center; margin-top:18px; font-size:10px; color:#b09fa6; }
.history-key .icon { width:13px; height:13px; }
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
.settings-card { padding:22px; }
.setting-row { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:57px; border-bottom:1px solid #f0e5e8; font-size:13px; padding:10px 0; }
.setting-row:last-child { border:0; }
.setting-row select { width:105px; border:1px solid var(--line); background:var(--bg); border-radius:5px; font-size:12px; padding:8px; }
.setting-row small { color:#a39198; margin-right:6px; font-variant-numeric:tabular-nums; }
.setting-row input[type=checkbox] { appearance:none; width:35px; height:21px; background:#eadde2; border-radius:15px; padding:3px; cursor:pointer; position:relative; flex-shrink:0; }
.setting-row input[type=checkbox]:checked { background:#d19cab; }
.setting-row input[type=checkbox]::before { content:''; display:block; width:15px; height:15px; border-radius:50%; background:white; transition:transform .15s; }
.setting-row input[type=checkbox]:checked::before { transform:translateX(14px); }
.connection-box { display:flex; gap:12px; align-items:flex-start; padding:14px; background:var(--sage-wash); border-radius:7px; margin:9px 0 15px; }
.connection-box>.icon { color:#b08995; width:24px; height:24px; margin-top:2px; }
.connection-box b { font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.connection-box p { font-size:12px; color:#987f88; margin-top:5px; line-height:1.7; }
.info-note { font-size:12px; background:#faf1f4; border-radius:6px; padding:12px 13px; color:#98878f; margin-bottom:15px; line-height:1.8; }
.button-row { display:flex; gap:8px; flex-wrap:wrap; margin:17px 0 13px; }
.button-row .btn { font-size:12px; }
.category-list { display:grid; gap:2px; }
.category-edit { display:flex; justify-content:space-between; align-items:center; min-height:45px; font-size:13px; border-bottom:1px solid #f8eef1; }
.category-edit:last-child { border-bottom:0; }
.category-edit .icon { width:15px; height:15px; color:#b8a7ae; }
.category-edit .category-dot i { width:8px; height:8px; margin-right:3px; }
.feature-note { font-size:13px; margin-bottom:17px; }
.feature-note p { margin-top:8px; font-size:12px; line-height:1.8; color:#99898f; }
.page-footer { padding:32px 20px 22px; text-align:center; color:#c2b4b9; font-size:10px; font-weight:400; letter-spacing:0; }
.page-footer span { padding:0 5px; }
.bottom-nav { display:none; }
.notice { padding:13px 17px; border-radius:8px; font-size:13px; margin-bottom:18px; }
.notice.warning { background:#fbf0f3; color:#a26f7f; }
.notice .btn { min-height:28px; padding:2px 10px; }
/* Sheets */
.modal-open { overflow:hidden; }
.sheet { border:0; border-radius:13px; padding:0; width:min(540px,calc(100vw - 32px)); max-height:88dvh; background:var(--paper); color:var(--ink); box-shadow:0 18px 70px #5d46501f; }
.sheet.wide { width:min(620px,calc(100vw - 32px)); }
.sheet::backdrop { background:#4a374155; backdrop-filter:blur(3px); }
.sheet-header { display:flex; justify-content:space-between; align-items:center; padding:18px 22px 15px; border-bottom:1px solid var(--line); background:white; position:sticky; top:0; z-index:1; }
.sheet-header h2 { font-size:17px; font-weight:550; }
.sheet-header>div { display:flex; gap:7px; align-items:center; }
.sheet-header .btn { min-height:36px; padding:7px 16px; }
.sheet-header .icon-btn { width:33px; height:36px; }
.sheet-header .icon { width:20px; height:20px; }
.sheet-body { padding:22px; }
.sheet-grab { display:none; }
.field { display:flex; flex-direction:column; gap:8px; margin-bottom:20px; min-width:0; }
.field>span { font-size:12px; color:#8d7b82; font-weight:450; }
.field input,.field textarea,.field select { width:100%; border:1px solid #eadfe3; border-radius:6px; min-height:44px; padding:10px 12px; background:#fffafb; font-size:15px; font-weight:400; -webkit-appearance:none; appearance:none; line-height:1.5; }
.field select { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2396848c' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position:right 12px center; background-repeat:no-repeat; padding-right:33px; }
.field input:focus,.field textarea:focus,.field select:focus { border-color:#d3a5b2; outline:none; box-shadow:0 0 0 2px #f8e9ee; background:white; }
.field input::placeholder,.field textarea::placeholder { color:#c4b6bc; font-size:14px; }
.field textarea { min-height:108px; resize:vertical; }
.field input[readonly] { color:#a8979d; background:#faf2f4; }
.form-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:15px; }
.field-help { font-size:11px; line-height:1.8; color:#ab9aa1; margin:-11px 0 20px; }
.check-field { display:flex; flex-wrap:wrap; gap:9px; align-items:center; font-size:13px; margin-bottom:22px; color:#8d7a81; }
.check-field input { width:17px; height:17px; accent-color:var(--sage); margin:0; }
.check-field small { color:#ad9ba2; font-size:10px; }
.importance-field { padding-top:22px; }
.form-footer { display:flex; justify-content:flex-end; gap:17px; margin-top:24px; padding-top:18px; border-top:1px solid var(--line); align-items:center; }
.form-footer>.danger { margin-right:auto; }
.form-footer .text-btn { font-size:12px; }
.form-error { font-size:12px; color:var(--red); line-height:1.8; }
.form-error:not(:empty) { background:#fbf0ed; padding:10px 12px; border-radius:5px; margin:10px 0; }
.weekday-field,.color-field { margin:0 0 20px; padding:0; border:0; }
.weekday-field legend,.color-field legend { font-size:12px; color:#8b7a81; margin-bottom:10px; }
.weekday-field>div { display:grid; grid-template-columns:repeat(7,1fr); gap:7px; }
.weekday-field label { cursor:pointer; }
.weekday-field input { position:absolute; opacity:0; width:1px; height:1px; }
.weekday-field span { display:flex; align-items:center; justify-content:center; height:41px; border-radius:6px; border:1px solid var(--line); font-size:13px; color:#b0939c; }
.weekday-field input:checked+span { background:#f8eaf0; color:#9a7180; border-color:#dec4cd; }
.weekday-field input:focus-visible+span { outline:2px solid var(--blue); }
.color-field>div { display:flex; gap:16px; padding:3px; }
.color-field label { position:relative; cursor:pointer; }
.color-field input { position:absolute; opacity:0; }
.color-field span { display:block; width:29px; height:29px; border-radius:50%; background:var(--swatch); border:4px solid white; outline:1px solid transparent; }
.color-field input:checked+span { outline:2px solid var(--swatch); }
.type-choices { display:flex; flex-direction:column; gap:8px; }
.type-choice { display:flex; align-items:center; gap:15px; padding:17px 12px; text-align:left; border:1px solid var(--line); border-radius:9px; }
.type-choice:hover { background:#fff6f8; }
.type-icon { display:flex; width:43px; height:43px; align-items:center; justify-content:center; background:var(--blue-wash); color:var(--blue); border-radius:9px; }
.type-choice:nth-child(3) .type-icon { background:var(--sage-wash); color:var(--sage); }
.type-choice b { display:block; font-size:15px; font-weight:500; }
.type-choice small { display:block; color:#ab9aa1; font-size:12px; margin-top:5px; }
.type-choice>.icon { margin-left:auto; width:18px; height:18px; color:#baaab0; }
.move-title { font-size:17px; margin-bottom:20px; overflow-wrap:anywhere; }
.move-quick { display:flex; gap:8px; margin-bottom:23px; }
.move-quick .btn { flex:1; padding:9px 8px; font-size:13px; }
.move-secondary { text-align:center; margin-top:10px; }
.search-field { display:flex; align-items:center; gap:10px; background:#fbf3f6; border:1px solid var(--line); padding:11px 13px; border-radius:7px; }
.search-field .icon { width:18px; height:18px; color:#b09da4; }
.search-field input { width:100%; outline:none; border:0; background:none; font-size:16px; }
.search-results { padding-top:15px; min-height:100px; }
.search-result { width:100%; display:flex; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); text-align:left; }
.search-result>span:nth-child(2) { min-width:0; flex:1; }
.search-result b { display:block; font-size:14px; font-weight:450; overflow-wrap:anywhere; }
.search-result small { display:block; font-size:11px; color:#b19fa6; margin-top:4px; }
.search-result>.icon { width:16px; height:16px; color:#bfaeb5; }
.help-text { font-size:14px; line-height:1.95; color:#89787f; }
.help-text p { margin-bottom:18px; }
.help-text code { font-size:11px; background:#f9edf1; padding:2px 5px; overflow-wrap:anywhere; }
#toast { position:fixed; bottom:34px; left:calc(50% + 99px); transform:translate(-50%,15px); max-width:calc(100% - 35px); text-align:center; padding:13px 20px; background:#8a6b75; color:white; border-radius:9px; z-index:9999; font-size:13px; opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; box-shadow:0 3px 14px #4f3a4320; }
#toast.visible { opacity:1; transform:translate(-50%,0); }
@media (min-width:1450px) {
 main { padding-left:50px; padding-right:50px; }
 .calendar-cell { min-height:131px; }
 .calendar-event { font-size:11px; }
 .calendar-layout { grid-template-columns:minmax(0,1fr) 335px; }
}
@media (max-width:1190px) and (min-width:769px) {
 .sidebar { width:175px; padding:32px 13px 20px; }
 .workspace { margin-left:175px; }
 .brand { padding:0 6px; gap:9px; font-size:18px; }
 .brand small { font-size:10px; }
 .nav-item { padding-left:13px; }
 .topbar { padding-left:25px; padding-right:25px; }
 main { padding:25px; }
 .home-grid { grid-template-columns:1fr 1.1fr; gap:16px; }
 .card { padding:17px; }
 .calendar-layout { grid-template-columns:minmax(0,1fr); }
 .calendar-cell { min-height:120px; }
 .day-detail { display:block; }
 .day-summary { padding:15px 18px; gap:21px; }
 .summary-link { display:none; }
 .week-items { padding:7px 5px 10px; }
 .week-column .task-row.compact .check-btn { width:14px; height:14px; border-radius:3px; }
 .week-column .task-row.compact { gap:5px; }
 .week-column .task-row .row-title { font-size:10px; }
 .week-event { padding:5px; font-size:10px; }
 #toast { left:calc(50% + 87px); }
}
@media (max-width:768px) {
 :root { font-size:15px; }
 body { min-width:320px; }
 .sidebar,.breadcrumb,.desktop-sync,.desktop-only { display:none!important; }
 .workspace { margin-left:0; }
 .topbar { min-height:64px; padding:11px 19px; position:sticky; top:0; z-index:20; background:#fbf6f7f5; backdrop-filter:blur(10px); padding-top:max(11px,env(safe-area-inset-top)); }
 .mobile-brand { display:flex; align-items:center; gap:8px; font-size:17px; font-weight:550; letter-spacing:-.055em; }
 .mobile-brand .brand-mark { width:25px; height:27px; border-radius:5px; }
 .mobile-brand .brand-mark .icon { width:18px; height:18px; }
 .topbar-actions { gap:6px; }
 .add-main { padding:7px 12px; font-size:12px; min-height:36px; border-radius:6px; gap:3px; }
 .add-main .icon { width:16px; height:16px; }
 .topbar-actions>.icon-btn { width:34px; height:36px; }
 .topbar-actions>.icon-btn .icon { width:19px; height:19px; }
 main { padding:24px 19px 14px; }
 h1 { font-size:25px; }
 .page-heading { margin-bottom:20px; min-height:79px; gap:8px; }
 .eyebrow { font-size:9px; margin-bottom:4px; }
 .page-subtitle { font-size:12px; margin-top:6px; }
 .heading-dot { width:6px; height:6px; margin-left:4px; }
 .date-controls { padding:1px; border-radius:6px; }
 .date-controls .icon-btn { width:28px; height:32px; }
 .date-controls .icon { width:15px; height:15px; }
 .today-button { padding:0 7px; font-size:11px; height:32px; }
 .day-summary { gap:0; justify-content:space-between; padding:15px 14px; margin-bottom:18px; border-radius:8px; }
 .day-summary>span { font-size:11px; gap:5px; }
 .day-summary>span .icon { width:15px; height:15px; }
 .day-summary b { font-size:16px; margin-left:1px; }
 .day-summary small { font-size:10px; }
 .day-summary>span>small { display:none; }
 .summary-link { display:none; }
 .home-grid { grid-template-columns:1fr; gap:16px; }
 .home-right { gap:16px; }
 .card { padding:17px 18px; border-radius:9px; }
 .section-head { margin-bottom:8px; }
 .section-head h2 { font-size:15px; }
 .count { font-size:11px; }
 .empty { padding:22px 5px 16px; }
 .empty-mark { width:35px; height:35px; margin-bottom:10px; }
 .empty p { font-size:13px; }
 .empty>span:not(.empty-mark) { font-size:11px; margin-top:6px; }
 .card-bottom-link { font-size:11px; }
 .row-title { font-size:14px; }
 .row-meta { font-size:11px; }
 .row-note { font-size:12px; }
 .task-row,.routine-row { padding:12px 0; min-height:62px; }
 .event-row { padding:14px 0; }
 .check-btn { width:22px; height:22px; }
 .routine-row .icon-btn { width:34px; }
 .past-toggle { padding:13px 14px; }
 .past-toggle>span { font-size:12px; gap:6px; }
 .past-toggle>span:last-child { font-size:10px; }
 .past-entry { gap:10px; }
 .past-entry>.task-row { width:0; }
 .bottom-nav { position:fixed; left:0; right:0; bottom:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); min-height:68px; padding:5px 8px calc(5px + env(safe-area-inset-bottom)); background:#fffdfdfa; backdrop-filter:blur(10px); border-top:1px solid #ece1e5; z-index:30; }
 .bottom-nav .nav-item { flex-direction:column; align-items:center; justify-content:center; padding:7px 2px 5px; gap:4px; border-radius:0; font-size:10px; min-height:56px; font-weight:400; color:#ac9ba2; position:relative; }
 .bottom-nav .nav-item .icon { width:22px; height:22px; }
 .bottom-nav .nav-item.active { background:none; color:#8b6974; font-weight:500; }
 .bottom-nav .nav-item.active::before { content:''; position:absolute; top:3px; width:40px; height:30px; background:#f7ebef; border-radius:8px; z-index:-1; }
 .bottom-nav .nav-item:hover { background:none; }
 .page-footer { margin-bottom:calc(73px + env(safe-area-inset-bottom)); padding:20px 15px 18px; font-size:9px; }
 .calendar-layout { display:flex; flex-direction:column; gap:16px; }
 .calendar-card { width:100%; padding:9px 0 0; border-radius:8px; }
 .calendar-weekdays { font-size:10px; padding:6px 0 10px; }
 .calendar-cell { min-height:95px; padding:5px 3px; gap:4px; }
 .day-top { justify-content:center; min-height:23px; }
 .day-number { font-size:11px; height:23px; width:23px; }
 .holiday { display:none; }
 .calendar-event { font-size:9px; padding:1px 2px; border-radius:2px; letter-spacing:-.04em; line-height:1.6; }
 .cell-items { gap:3px; }
 .more-events { font-size:8px; line-height:1.4; padding-left:2px; }
 .calendar-key { gap:13px; font-size:9px; padding:11px; }
 .calendar-key-note { font-size:8px; }
 .day-detail { width:100%; padding:17px 18px; }
 .day-detail .row-title { font-size:14px; }
 .day-detail .event-time { font-size:13px; width:43px; }
 .day-detail .row-arrow { display:block; }
 .day-detail .event-row { gap:12px; }
 .heading-picker { gap:4px; }
 .heading-picker h1 { font-size:23px; }
 .heading-picker>.icon { width:16px; height:16px; }
 .section-toolbar { margin-bottom:18px; gap:8px; }
 .segmented { padding:3px; gap:0; }
 .segmented button { padding:7px 13px; min-height:33px; font-size:12px; gap:4px; }
 .segmented span { font-size:9px; }
 .week-caption { margin-bottom:11px; }
 .week-caption h2 { font-size:13px; }
 .week-caption>span { display:none; }
 .week-board { display:flex; flex-direction:column; border:0; background:none; border-radius:0; gap:9px; overflow:visible; }
 .week-column { display:grid; grid-template-columns:49px minmax(0,1fr) 29px; border:1px solid var(--line); border-radius:8px; background:#fff; align-items:stretch; min-height:90px; overflow:hidden; }
 .week-column:last-child { border-right:1px solid var(--line); }
 .week-day { border-bottom:0; border-right:1px solid var(--line); padding:12px 2px; align-self:stretch; justify-content:center; min-height:86px; gap:2px; }
 .week-day>span { font-size:10px; }
 .week-day b { font-size:17px; line-height:27px; width:27px; height:27px; }
 .week-day small { font-size:8px; text-align:center; padding:0 2px; }
 .week-items { min-height:60px; padding:9px 10px; }
 .week-blank { padding:17px 0; text-align:left; color:#c8b7be; font-size:11px; }
 .week-bottom { flex-direction:column; justify-content:center; padding:4px 2px; gap:4px; }
 .week-bottom span { display:none; }
 .week-bottom .icon-btn { width:26px; height:40px; }
 .week-event { font-size:12px; margin:0 0 6px; padding:5px 8px; display:flex; align-items:flex-start; gap:8px; }
 .week-event small { font-size:10px; white-space:nowrap; padding-top:2px; min-width:29px; }
 .week-column .task-row.compact .row-more { display:flex; width:25px; height:29px; }
 .week-column .task-row.compact .row-more .icon { width:14px; height:14px; }
 .task-row.compact { padding:6px 0; gap:9px; align-items:center; }
 .task-row.compact .check-btn { width:18px; height:18px; margin-top:0; }
 .task-row.compact .row-title { font-size:12px; }
 .task-row.compact .important-icon { width:11px; height:11px; }
 .week-lower { grid-template-columns:1fr; gap:16px; margin-top:18px; }
 .review-numbers { gap:30px; margin:18px 0; }
 .review-numbers b { font-size:24px; }
 .projects-grid { grid-template-columns:1fr; gap:16px; }
 .filter-chip { font-size:11px; }
 .history-card { padding:12px; }
 .history-table { min-width:300px; }
 .history-table th,.history-table td { padding:12px 3px; }
 .history-table tbody th { font-size:11px; width:26%; }
 .history-check { width:25px; height:28px; border-radius:4px; }
 .history-table thead th { font-size:10px; }
 .history-table thead th small { font-size:12px; }
 .history-key { gap:10px; font-size:9px; }
 .settings-grid { grid-template-columns:1fr; gap:16px; }
 .settings-card { padding:18px; }
 .setting-row { font-size:13px; min-height:57px; }
 .small-note { font-size:12px; }
 .sheet { width:100%; max-width:100%; margin:auto 0 0; border-radius:16px 16px 0 0; max-height:92dvh; padding-bottom:env(safe-area-inset-bottom); }
 .sheet.wide { width:100%; }
 .sheet-grab { display:block; height:18px; background:white; position:sticky; top:0; z-index:2; touch-action:none; }
 .sheet-grab::before { content:''; position:absolute; width:33px; height:4px; background:#ead9df; border-radius:3px; left:calc(50% - 16px); top:8px; }
 .sheet-header { top:18px; padding:8px 19px 13px; }
 .sheet-header h2 { font-size:16px; }
 .sheet-body { padding:22px 20px 26px; }
 .field input,.field textarea,.field select { font-size:16px; min-height:45px; }
 .field>span { font-size:12px; }
 .form-grid { gap:12px; }
 .field input[type=date],.field input[type=time],.field input[type=month] { font-size:14px; min-width:0; display:block; width:100%; text-align:left; }
 .field input::-webkit-date-and-time-value { text-align:left; min-height:21px; }
 .field-help { font-size:11px; }
 .check-field small { font-size:10px; }
 .color-field>div { gap:18px; }
 .help-text { font-size:13px; }
 #toast { left:50%; bottom:calc(84px + env(safe-area-inset-bottom)); font-size:12px; width:max-content; max-width:calc(100% - 32px); padding:12px 17px; }
 .notice { font-size:12px; }
}
@media (max-width:370px) {
 main { padding-left:13px; padding-right:13px; }
 .topbar { padding-left:14px; padding-right:14px; }
 h1 { font-size:23px; }
 .card { padding:16px; }
 .segmented button { padding:7px 9px; font-size:11px; }
 .section-toolbar .date-controls .icon-btn { width:25px; }
 .calendar-cell { min-height:91px; padding:5px 2px; }
 .calendar-event { font-size:8px; }
 .calendar-key-note { display:none!important; }
 .page-subtitle { font-size:11px; }
 .heading-picker h1 { font-size:21px; }
 .color-field>div { gap:13px; }
}
@media (prefers-reduced-motion:reduce) { * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media print { .sidebar,.topbar,.bottom-nav,.date-controls,.page-footer,.row-more,.card-bottom-link,.btn { display:none!important; } .workspace { margin:0; } main { padding:0; } .card { break-inside:avoid; } .week-board { display:grid; grid-template-columns:repeat(7,1fr); } .week-column { display:flex; } }
/* Readability and compact empty states on a phone. */
@media (max-width:768px) {
 .mobile-brand>span:last-child { line-height:1.25; }
 .mobile-brand small { display:block; font-size:9px; font-weight:400; letter-spacing:-.02em; color:#9f8e95; margin-top:3px; }
 .home-grid .section-head { margin-bottom:2px; }
 .home-grid .empty { padding:8px 0 0; text-align:left; align-items:flex-start; }
 .home-grid .empty-mark { display:none; }
 .home-grid .empty>span:not(.empty-mark) { max-width:none; }
 .home-grid .empty .text-btn { min-height:32px; margin-top:4px; padding:6px 0; }
 .home-grid .card-bottom-link { margin-top:8px; padding-top:8px; min-height:33px; }
 .calendar-cell { min-height:84px; }
}
.row-meta { color:#94828a; }
.small-note { color:#8f7d84; }
.field-help { color:#948189; }
@media (max-width:768px) { .bottom-nav .nav-item { color:#96858b; } }
