@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#283f36;background:#f6f8f5;font-size:14px;--green:#356454;--line:#e2e9e3;--muted:#7c8b82}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #88b5a1;outline-offset:3px}a{color:inherit}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:'Manrope',sans-serif}h1{font-weight:700;font-size:34px;letter-spacing:-1.3px;margin-bottom:10px}h2{font-size:18px}h3{font-size:16px}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:37px 24px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font:800 21px 'Manrope',sans-serif;letter-spacing:-.7px}.brand small{display:block;font:600 8px 'DM Sans',sans-serif;letter-spacing:1.8px;margin-top:5px;color:#8a968e}.brand-mark{background:#365f50;color:white;font-size:24px;line-height:44px;width:44px;height:44px;text-align:center;border-radius:14px 14px 14px 4px;display:inline-block;letter-spacing:-1.8px}.family-label{font-size:9px;letter-spacing:1.8px;color:#8c9890;margin:39px 0 12px}.family-select{width:100%;background:#f8faf7!important;border-color:#e5ece5!important;font-weight:600;font-size:13px!important;padding:11px!important}.sidebar nav{display:grid;gap:6px;margin-top:27px}.nav-item{border:0;background:none;text-align:left;padding:13px 14px;border-radius:9px;color:#718076;display:flex;align-items:center;gap:12px;font-size:13px;font-weight:500}.nav-item:hover{background:#f7f9f6}.nav-item.active{background:#eaf2ec;color:#315c48;font-weight:700}.nav-icon{font-size:21px;width:24px;line-height:22px}.nav-count{margin-left:auto;font-size:10px;background:#d9e8dd;border-radius:6px;padding:3px 7px}.sidebar-tip{margin-top:auto;padding:28px 5px 24px;color:#8b9c8a}.sidebar-tip>span{font-size:34px;color:#b7c7a5}.sidebar-tip h3{font-size:16px;color:#627a63;margin:14px 0 8px}.sidebar-tip p{font-size:11px;line-height:1.9}.sidebar-footer{display:flex;align-items:center;gap:10px;padding-top:20px;border-top:1px solid var(--line);font-size:11px}.sidebar-footer small{display:block;font-size:9px;color:#8b968c;margin-top:4px}.avatar{display:inline-grid;place-items:center;background:#e8ede2;border:3px solid #fff;color:#5b7350;border-radius:50%;width:34px;height:34px;font-size:12px;font-weight:700}.main{flex:1;min-width:0}.topbar{height:76px;padding:0 45px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#879189}.topbar>div{display:flex;gap:20px;align-items:center}.topbar .muted{margin:0 12px;color:#c4ccc5}.icon-button{border:0;background:none;font-size:22px;color:#6a7d70;padding:4px 8px}.content{padding:38px 45px 15px;max-width:1500px;margin:auto}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.8px;color:#879886;margin-bottom:13px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px;gap:20px}.page-heading>div>p:last-child{color:#8b948b;font-size:12px;margin:0}.primary,.secondary{display:inline-block;border:1px solid var(--green);border-radius:8px;padding:12px 20px;background:var(--green);color:white;text-decoration:none;font-weight:600;font-size:12px;white-space:nowrap}.primary:hover{background:#264d3f}.secondary{background:white;color:#46664f;border-color:#dae4d8}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:34px}.stats>div{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:20px}.stat-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:24px}.mint{background:#eef4ed;color:#749976}.amber{background:#fcf5e7;color:#c0a269}.rose{background:#f9eceb;color:#bf8c83}.stats strong{display:block;font:700 23px 'Manrope',sans-serif;line-height:1.1}.stats small{display:block;font-size:10px;color:#8a968b;margin-top:5px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 268px;gap:30px}.section-toolbar{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:25px}.section-toolbar h2{margin:0}.segmented{display:flex;gap:4px;background:#eaf0e8;padding:4px;border-radius:8px}.segmented button{border:0;background:none;color:#7d8c7c;font-size:10px;padding:8px 13px;border-radius:6px}.segmented .selected{background:#fff;color:#476746;box-shadow:0 2px 4px #304d4010;font-weight:700}.search{font-size:11px!important;max-width:175px;background:transparent!important}.timeline{position:relative}.timeline:before{content:'';position:absolute;left:14px;top:15px;bottom:35px;width:1px;background:#d9e4d7}.date-divider{position:relative;display:flex;gap:12px;align-items:center;margin:23px 0 20px}.date-divider>span{width:29px;flex-shrink:0}.date-divider>span:before{content:'';position:absolute;width:9px;height:9px;background:#7d9e7b;border:3px solid #f6f8f5;box-shadow:0 0 0 1px #c3d3bf;border-radius:50%;left:7px;top:3px}.date-divider h2{font-size:12px;margin:0;text-transform:capitalize;letter-spacing:.2px}.date-divider small{font-size:10px;color:#9aa493;margin-left:auto}.timeline-row{position:relative;display:flex;gap:15px;align-items:flex-start;margin-bottom:15px}.timeline-dot{margin-top:24px;background:#fff;border:2px solid #b9ccb7;position:relative;border-radius:50%;width:29px;height:29px;flex-shrink:0;display:grid;place-items:center;color:#7d9b75;font-size:15px}.timeline-dot.hot{border-color:#d5b0a1;color:#bd8d79}.task-card{background:white;border:1px solid var(--line);border-left:3px solid #bbccba;border-radius:10px;padding:20px 22px 0;flex:1;min-width:0;box-shadow:0 3px 6px #27423702}.task-card.priority-2{border-left-color:#d8b96c}.task-card.priority-3{border-left-color:#cb8d82}.card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:11px}.category{font-size:8px;letter-spacing:1.5px;color:#8c9d8a;font-weight:700}.priority-badge{font-size:9px;border-radius:4px;padding:4px 8px;background:#f2f5f0;color:#88987e}.priority-badge.p2{background:#fcf5e6;color:#aa8c48}.priority-badge.p3{background:#f9ece8;color:#b77b67}.task-card h3{font-size:16px;margin-bottom:9px;line-height:1.5}.task-notes{white-space:pre-wrap;color:#859080;font-size:11px;line-height:1.8;margin-bottom:14px;overflow-wrap:anywhere}.task-meta{display:flex;gap:15px;flex-wrap:wrap;font-size:10px;color:#8d9b87;margin:14px 0 17px}.overdue{color:#bd8376}.card-bottom{border-top:1px solid #eef1ea;padding:11px 0;display:flex;justify-content:space-between;align-items:center;min-height:42px}.complete-button{border:0;background:none;color:#6f8966;font-size:10px;padding:0}.complete-button>span{border:1px solid #cddbc8;border-radius:4px;margin-right:6px;display:inline-grid;place-items:center;width:16px;height:16px;font-size:10px}.complete-button:hover{color:#2d653f}.text-button{background:none;border:0;color:#84947b;font-size:10px;padding:5px 0}.completed .task-card{background:#f5faf3;border-color:#cee1c8}.done-label{color:#73956a;font-size:10px}.day-card{background:#eaf0e3;border:1px solid #dfe7d5;border-radius:12px;padding:26px 23px;text-align:center;color:#627b52}.sun{display:block;font-size:44px;color:#b9c49a;margin-bottom:20px}.day-card>p{font-size:8px;letter-spacing:1.8px;color:#839971;margin-bottom:13px}.day-card h2{font-size:17px;line-height:1.65;letter-spacing:-.3px}.day-line{display:block;width:30px;border-top:1px solid #c8d6b9;margin:20px auto}.day-card small{font-size:11px;line-height:1.9;color:#8a9a7b}.upcoming{margin-top:25px;padding:0 3px}.section-title{display:flex;justify-content:space-between;align-items:center}.section-title h3{font-size:12px;margin-bottom:18px}.section-title>span{font-size:20px;color:#9eaf8c}.occasion-mini{display:flex;align-items:center;gap:12px;padding:12px 0;width:100%;border:0;border-bottom:1px solid #e5ebe0;background:none;text-align:left}.mini-date{background:#fff;border:1px solid #e0e7d8;border-radius:8px;min-width:40px;text-align:center;padding:8px;font-size:16px;font-weight:600;color:#789069}.mini-date small{display:block;font-size:8px;text-transform:uppercase;color:#9aa78c}.occasion-mini strong{font-size:11px;display:block;line-height:1.5}.occasion-mini>span>small{display:block;color:#99a38f;font-size:9px;margin-top:5px}.upcoming>p{font-size:11px;line-height:1.8;color:#8c9882}.upcoming>.text-button{margin-top:12px}.small-note{margin-top:28px;background:#f9f3e5;border:1px solid #eee5d1;border-radius:10px;padding:20px;color:#a4936e;transform:rotate(-1deg)}.small-note>span{font-size:24px;float:right;color:#c4b48b}.small-note h3{font-size:12px;color:#9b8a64}.small-note p{font-size:11px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.small-note .text-button{color:#ac9c78}.page-footer{display:flex;justify-content:space-between;border-top:1px solid #e5ebe0;margin-top:35px;padding:20px 0;color:#99a28d;font-size:9px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:25px}.panel>p{color:#7b8c7b;font-size:13px;line-height:1.8}.empty{text-align:center;padding:50px 25px;color:#8c9c82}.empty>span{font-size:40px;color:#b7c49e}.empty h2{margin-top:20px}.empty p{font-size:12px}.demo-banner{padding:7px 25px;background:#edf2e8;text-align:center;font-size:8px;color:#80916d;letter-spacing:1px}.error{background:#fff0eb;color:#9b463c;border:1px solid #f0d0c6;padding:14px;border-radius:8px;margin-bottom:15px;font-size:12px}.error button{margin-left:12px;border:0;background:none;color:inherit;text-decoration:underline}.inline-form{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.inline-form input{flex:1;min-width:140px}.inline{display:flex;align-items:center;gap:8px;font-size:12px}.inline input{width:auto}.shopping-row{padding:15px 0;border-bottom:1px solid var(--line);display:flex;gap:15px;align-items:center}.shopping-row>div{flex:1}.shopping-row strong{font-weight:500;font-size:13px}.shopping-row small{display:block;color:#99a28f;font-size:10px;margin-top:5px}.check-circle{width:25px;height:25px;background:white;border:1px solid #b7c9ae;border-radius:6px;color:#718e62}.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px}.note-tile{padding:24px;border-radius:10px;border:1px solid #00000008}.note-tile>span,.note-tile small{font-size:10px;color:#88917e}.note-tile h3{margin:15px 0;font-size:16px}.note-tile p{white-space:pre-wrap;line-height:1.8;font-size:12px;overflow-wrap:anywhere}.note-tile button{margin-right:15px}.sage{background:#eaf1e2}.sand{background:#fbf2dc}.note-tile.rose{background:#f8e8e4}.blue{background:#e6eff4}.invite-box{background:#eff5ea;padding:16px;border-radius:10px}.invite-box input{font-family:monospace;font-size:12px}.invite-box small{color:#859578}.modal-backdrop{position:fixed;inset:0;z-index:100;background:#1b302c66;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:20px}.modal{max-width:640px;width:100%;max-height:92vh;overflow-y:auto;border-radius:16px;background:#fff;padding:30px;box-shadow:0 25px 100px #163f3933}.modal h2{font-size:23px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}label{display:block;font-size:11px;color:#75866e;margin-bottom:17px}label input,label select,label textarea{display:block;width:100%;margin-top:7px}input,select,textarea{border:1px solid #dfe7db;background:#fcfdfb;border-radius:7px;padding:11px 12px;color:#39503d;max-width:100%;font-size:13px}textarea{resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.welcome{max-width:700px;margin:10vh auto;text-align:center;padding:45px}.welcome>p{line-height:1.9}.welcome h1{margin:20px 0}.welcome label{text-align:left;margin-top:25px}
@media(min-width:1600px){.content{padding-top:50px}.task-card{padding-top:24px}.stats{margin-bottom:45px}}
@media(max-width:1180px){.sidebar{width:215px;padding:30px 17px}.content{padding:30px 25px}.topbar{padding:0 25px}.workspace{grid-template-columns:minmax(0,1fr) 235px;gap:20px}.stats>div{padding:15px;gap:10px}.stats small{font-size:9px}h1{font-size:29px}.brand{font-size:18px}}
@media(max-width:960px){.right-panel{display:none}.workspace{grid-template-columns:1fr}.sidebar{width:190px}.stats{gap:8px}.stats>div{padding:12px;gap:9px}.stat-icon{width:30px;height:30px;font-size:20px}.stats strong{font-size:20px}.sidebar-tip{padding-bottom:10px}.brand-mark{width:36px;height:36px;line-height:36px}.brand small{font-size:6px}}
@media(max-width:700px){.app-shell{display:block}.sidebar{position:relative;height:auto;width:100%;padding:18px 18px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:20px}.brand small{font-size:7px}.family-label,.family-select,.sidebar-tip,.sidebar-footer{display:none}.sidebar nav{display:flex;overflow-x:auto;margin-top:17px;gap:2px;padding-bottom:10px}.nav-item{flex-shrink:0;padding:9px 10px;gap:5px;font-size:10px}.nav-icon{font-size:17px;width:19px}.nav-count{display:none}.topbar{height:45px;padding:0 20px}.topbar .avatar{width:27px;height:27px}.content{padding:25px 18px 10px}.page-heading{align-items:flex-start;gap:12px;flex-direction:column;margin-bottom:22px}.page-heading>div>p:last-child{font-size:11px;line-height:1.7}.page-heading .primary{padding:10px 14px}h1{font-size:28px}.eyebrow{font-size:8px;letter-spacing:1.5px}.stats{grid-template-columns:1fr 1fr;margin-bottom:25px;gap:9px}.stats>div{padding:16px}.stats strong{font-size:21px}.stats small{font-size:10px}.stat-icon{width:34px;height:34px}.section-toolbar{gap:8px;flex-wrap:wrap}.search{max-width:100%;flex:1;min-width:120px}.segmented button{padding:7px 10px}.task-card{padding:17px 15px 0}.task-card h3{font-size:15px}.timeline-row{gap:10px}.task-meta{gap:11px}.card-top{gap:5px}.category{font-size:7px}.modal{padding:22px}.modal-backdrop{padding:10px}.form-grid{grid-template-columns:1fr}.page-footer{font-size:8px}.inline-form{flex-direction:column}.welcome{margin:20px}.note-tile{padding:20px}.demo-banner{font-size:7px;letter-spacing:.6px}}

/* A card is the completion action; editing stays an independent button. */
.task-card{position:relative;isolation:isolate;transition:background .2s,border-color .2s,box-shadow .2s}
.task-hit-area{position:absolute;inset:0;z-index:1;width:100%;height:100%;border:0;border-radius:inherit;background:transparent;padding:0;color:inherit}
.task-hit-area:focus-visible{outline:3px solid #508dcc;outline-offset:3px}
.task-card:has(.task-hit-area:not(:disabled)):hover{box-shadow:0 0 0 1px currentColor}
.edit-task{position:relative;z-index:2;min-height:32px;padding:6px 10px;margin:-5px -10px}
.card-bottom:has(.edit-task){justify-content:flex-end}
.task-card.priority-0{background:#f1f4f8;border-color:#c3cddc;border-left-color:#8194b0}
.task-card.priority-1{background:#eaf3fc;border-color:#b5d2ea;border-left-color:#4d92c9}
.task-card.priority-2{background:#fff4dd;border-color:#e4ca8a;border-left-color:#c79730}
.task-card.priority-3{background:#fdebed;border-color:#e8afb8;border-left-color:#c55769}
.task-card .category,.task-card .task-notes,.task-card .task-meta{color:#53645d}
.priority-badge.p0{background:#dce3ee;color:#445570}.priority-badge.p1{background:#d4e8fa;color:#255c86}.priority-badge.p2{background:#f5e0ac;color:#735214}.priority-badge.p3{background:#f3ccd3;color:#8b3545}
.timeline-row.completed .task-card{background:#e2f3e7;border-color:#83b496;border-left-color:#3c9060;color:#215c39}
.timeline-row.completed .timeline-dot{background:#34845b;border-color:#34845b;color:#fff}
.timeline-row.collapsed{align-items:center;margin-bottom:10px}
.timeline-row.collapsed .timeline-dot{margin-top:0}
.timeline-row.collapsed .task-card{display:flex;align-items:center;gap:14px;padding:12px 16px;min-height:48px}
.timeline-row.collapsed h3{margin:0;min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.5}
.timeline-row.completed .done-label{color:#286d43;font-weight:600;white-space:nowrap;flex-shrink:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.theme-toggle{width:38px;height:38px;display:grid;place-items:center;border-radius:9px}
.theme-toggle:hover{background:#eaf0e8}
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;color:#e4ece8;background:#101917;--green:#39775e;--line:#30423b;--muted:#a7b8af}
[data-theme="dark"] .sidebar,[data-theme="dark"] .topbar{background:#17231f}
[data-theme="dark"] .brand small,[data-theme="dark"] .family-label,[data-theme="dark"] .sidebar-footer small,[data-theme="dark"] .topbar,[data-theme="dark"] .eyebrow,[data-theme="dark"] .page-heading>div>p:last-child,[data-theme="dark"] .stats small,[data-theme="dark"] .date-divider small,[data-theme="dark"] .page-footer,[data-theme="dark"] .shopping-row small,[data-theme="dark"] label{color:#afc0b5}
[data-theme="dark"] .family-select{background:#203129!important;border-color:#3b5045!important}
[data-theme="dark"] .nav-item{color:#b6c6bc}
[data-theme="dark"] .nav-item:hover,[data-theme="dark"] .theme-toggle:hover{background:#24382e}
[data-theme="dark"] .nav-item.active{background:#2b4939;color:#c4efd3}
[data-theme="dark"] .nav-count{background:#38604a;color:#daf5e4}
[data-theme="dark"] .sidebar-tip,[data-theme="dark"] .sidebar-tip h3{color:#a6bfab}
[data-theme="dark"] .sidebar-tip>span{color:#8cb08d}
[data-theme="dark"] .avatar{background:#304e3d;border-color:#26382e;color:#c5e8c8}
[data-theme="dark"] .icon-button,[data-theme="dark"] .text-button{color:#b4d6bf}
[data-theme="dark"] .secondary{background:#203129;border-color:#486351;color:#c5e5ce}
[data-theme="dark"] .primary:hover{background:#458c70}
[data-theme="dark"] .stats>div,[data-theme="dark"] .panel,[data-theme="dark"] .modal{background:#1a2922}
[data-theme="dark"] .mint{background:#2b4633;color:#a5cfa5}
[data-theme="dark"] .amber{background:#493d25;color:#e6c984}
[data-theme="dark"] .rose{background:#472d34;color:#e6a6b3}
[data-theme="dark"] .segmented{background:#1d2d25}
[data-theme="dark"] .segmented button{color:#b3c5b6}
[data-theme="dark"] .segmented .selected{background:#38523f;color:#e6f3e7}
[data-theme="dark"] .timeline:before{background:#3a5142}
[data-theme="dark"] .date-divider>span:before{border-color:#101917;box-shadow:0 0 0 1px #789c7d;background:#8db291}
[data-theme="dark"] .timeline-dot{background:#17231f;border-color:#668373;color:#b3d0ba}
[data-theme="dark"] .timeline-dot.hot{border-color:#b1946b;color:#e1c8a5}
[data-theme="dark"] .task-card.priority-0{background:#252f3b;border-color:#46566a;border-left-color:#8396b4}
[data-theme="dark"] .task-card.priority-1{background:#203746;border-color:#365a75;border-left-color:#71b4df}
[data-theme="dark"] .task-card.priority-2{background:#403723;border-color:#78613b;border-left-color:#e4b958}
[data-theme="dark"] .task-card.priority-3{background:#432a32;border-color:#7d4654;border-left-color:#e58e9c}
[data-theme="dark"] .task-card h3{color:#f0f3ed}
[data-theme="dark"] .task-card .category,[data-theme="dark"] .task-card .task-notes,[data-theme="dark"] .task-card .task-meta{color:#c2cfc9}
[data-theme="dark"] .task-card .overdue{color:#ffb2a5}
[data-theme="dark"] .card-bottom{border-color:#ffffff20}
[data-theme="dark"] .priority-badge.p0{background:#39475a;color:#d6e1f3}
[data-theme="dark"] .priority-badge.p1{background:#2e526c;color:#d0eafa}
[data-theme="dark"] .priority-badge.p2{background:#61502e;color:#ffe0a0}
[data-theme="dark"] .priority-badge.p3{background:#673b49;color:#ffd2d9}
[data-theme="dark"] .timeline-row.completed .task-card{background:#203f2c;border-color:#46855c;border-left-color:#74c58d;color:#d0f1d8}
[data-theme="dark"] .timeline-row.completed h3{color:#d0f1d8}
[data-theme="dark"] .timeline-row.completed .done-label{color:#a4e4b6}
[data-theme="dark"] .timeline-row.completed .timeline-dot{background:#387d50;border-color:#68ac7d;color:#e3ffeb}
[data-theme="dark"] .day-card{background:#263b29;border-color:#3c5438;color:#c5dfbd}
[data-theme="dark"] .sun{color:#c7ce8e}
[data-theme="dark"] .day-card>p,[data-theme="dark"] .day-card small,[data-theme="dark"] .upcoming>p{color:#b2c7a8}
[data-theme="dark"] .day-line{border-color:#728268}
[data-theme="dark"] .occasion-mini{color:#e0eadd;border-color:#354a3a}
[data-theme="dark"] .mini-date{background:#26382a;border-color:#476042;color:#d4e5c8}
[data-theme="dark"] .mini-date small,[data-theme="dark"] .occasion-mini>span>small{color:#acbfa3}
[data-theme="dark"] .small-note{background:#3b3525;border-color:#5f5336;color:#d6c9a1}
[data-theme="dark"] .small-note h3,[data-theme="dark"] .small-note .text-button{color:#e5d4a4}
[data-theme="dark"] .page-footer{border-color:#30423b}
[data-theme="dark"] .panel>p,[data-theme="dark"] .empty{color:#b3c5b5}
[data-theme="dark"] .demo-banner{background:#233626;color:#bdd0ae}
[data-theme="dark"] .error{background:#452a28;color:#ffd1c7;border-color:#7d4742}
[data-theme="dark"] .check-circle{background:#233c2b;border-color:#6c9d75;color:#b4e0bd}
[data-theme="dark"] .note-tile.sage{background:#2b4430}
[data-theme="dark"] .note-tile.sand{background:#443c25}
[data-theme="dark"] .note-tile.rose{background:#482f39}
[data-theme="dark"] .note-tile.blue{background:#283f4c}
[data-theme="dark"] .note-tile>span,[data-theme="dark"] .note-tile small{color:#bdcbb8}
[data-theme="dark"] .invite-box{background:#293f2b}
[data-theme="dark"] .invite-box small{color:#b2c8a7}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background:#14231c;color:#e1eee4;border-color:#425b49}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#9aae9f;opacity:1}
[data-theme="dark"] .modal-backdrop{background:#050d0ac7}
@media(max-width:700px){.topbar>div{gap:9px}.timeline-row.collapsed .task-card{padding:11px 12px;gap:8px}.timeline-row.collapsed h3{font-size:13px}.timeline-row.collapsed .done-label{font-size:9px}.task-card .text-button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.task-card{transition:none}}

/* The first row is always category · time · recurrence · person · edit. */
.task-header-line{justify-content:flex-start;gap:8px;flex-wrap:nowrap;min-width:0;min-height:28px;margin-top:-6px;margin-bottom:10px;font-size:10px;color:#53645d}
.task-header-line .category{font-size:10px;letter-spacing:0;font-weight:600;flex:0 1 auto;max-width:30%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.task-header-line .meta-time,.task-header-line .meta-repeat{flex-shrink:0;white-space:nowrap}
.task-header-line .meta-person{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.task-header-line .meta-separator{flex:none;opacity:.65}
.task-header-line .edit-task{flex:0 0 28px;width:28px;height:28px;min-height:28px;margin:0;padding:0;font-size:20px;line-height:1;border-radius:6px}
.task-header-line .edit-task:hover{background:#00000012}
.task-status{align-items:center;margin:12px 0 17px}
[data-theme="dark"] .task-header-line{color:#c2cfc9}
[data-theme="dark"] .task-header-line .edit-task:hover{background:#ffffff15}
@media(max-width:700px){.task-header-line{gap:5px;font-size:9px}.task-header-line .category{font-size:9px}.task-header-line .meta-person{min-width:15px}.task-header-line .edit-task{flex-basis:24px;width:24px;height:26px;font-size:19px}}

.task-header-line{position:relative;z-index:2;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#71897955 transparent;padding-bottom:3px}
.task-header-line .priority-badge,.task-header-line .overdue{flex-shrink:0;white-space:nowrap;font-size:9px}
.task-header-line .category{flex-shrink:0;max-width:none}
.task-header-line .meta-person{flex:1 0 45px;max-width:120px}
.task-card:has(.task-hit-area) .task-header-line{cursor:pointer}
.task-card>h3:last-child,.task-card>.task-notes:last-child{margin-bottom:20px}
.task-card .overdue{color:#984536}
.readonly-label{display:block;color:var(--muted);font-size:10px;margin-bottom:16px}
@media(max-width:700px){.task-header-line{gap:6px}.task-header-line .meta-person{flex-basis:42px}.task-header-line .priority-badge{padding:3px 5px}}

.timeline-panel,.workspace{min-width:0}

/* Overdue takes precedence over priority; completed tasks keep their green state. */
html[data-theme] .timeline-row:not(.completed) .task-card:has(.overdue){background:#8a0303;border-color:#c93c3c;border-left-color:#ff6666;color:#fff4f4}
html[data-theme] .timeline-row:not(.completed) .task-card:has(.overdue) :is(h3,.task-notes,.category,.task-header-line,.edit-task){color:#fff4f4}
html[data-theme] .timeline-row:not(.completed) .task-card:has(.overdue) .priority-badge{background:#580000;color:#ffe6e6}
html[data-theme] .timeline-row:not(.completed) .task-card:has(.overdue) .overdue{background:#580000;color:#fff;font-weight:700;border:1px solid #ee7c7c;border-radius:4px;padding:3px 6px}
html[data-theme] .timeline-row:not(.completed):has(.overdue) .timeline-dot{background:#8a0303;border-color:#ff7777;color:#fff}
html[data-theme] .timeline-row:not(.completed) .task-card:has(.overdue) .task-header-line{scrollbar-color:#ef939366 transparent}

/* Family sharing */
.family-banner{display:flex;align-items:center;gap:28px;padding:19px 23px;border:1px solid var(--line);border-radius:16px;background:#fff;margin-bottom:28px;min-width:0}.family-banner-title{display:grid;gap:6px;flex-shrink:0}.family-banner-title>span{font-size:9px;letter-spacing:1.8px;color:var(--muted)}.family-banner-title strong{font:700 15px 'Manrope',sans-serif}.family-people{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}.family-person{display:flex;align-items:center;gap:9px;padding:7px 11px;border-radius:12px;background:#f2f6f1;font-weight:600;font-size:13px}.family-person small{display:block;color:var(--muted);font-size:10px;margin-top:3px;font-weight:400}.member-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#d9e8df;color:#315849;font-size:13px}.family-person:nth-child(3n+2) .member-avatar{background:#e9ddd6;color:#704b3a}.family-person:nth-child(3n) .member-avatar{background:#dce3ef;color:#3e587f}.family-person.is-me{box-shadow:inset 0 0 0 1px #91b29e}.family-add{border:1px dashed #7b9d8b;background:transparent;color:var(--green);border-radius:50%;width:42px;height:42px;flex-shrink:0;font-size:26px}.family-add:hover{background:#dcebe2}.demo-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}.demo-banner form{display:flex;align-items:center;gap:6px}.demo-banner select{width:auto!important;padding:4px 10px!important;font-size:12px!important}.demo-banner button{font-size:11px}.private-badge{font-size:10px;white-space:nowrap;opacity:.85}.transfer-task{font-size:19px!important}.privacy-choice{padding:13px;border-radius:10px;background:#edf4ed;margin:14px 0}.notification-bell{position:relative}.notification-count{position:absolute;top:-2px;right:-3px;min-width:17px;border-radius:12px;background:#aa3232;color:white;font-size:10px;padding:2px}.assignment-toast{display:flex;align-items:center;gap:14px;padding:16px 20px;border:1px solid #86af96;border-radius:12px;background:#e6f2e8;margin-bottom:20px}.assignment-toast>span{font-size:24px}.assignment-toast>div{flex:1;min-width:0}.assignment-toast p{margin:5px 0 0;overflow-wrap:anywhere}.notification-item{display:grid;gap:7px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;color:inherit;padding:18px 10px}.notification-item.unread{border-left:3px solid #79ac8d;background:#eaf3ed}.notification-item span,.notification-item small{color:var(--muted)}.modal h3{margin-top:22px}.invite-code{font-family:monospace;font-size:17px;letter-spacing:1px}
html[data-theme="dark"] .family-banner{background:#1b2822}html[data-theme="dark"] .family-person{background:#23352b}html[data-theme="dark"] .family-add{color:#abd3b8}html[data-theme="dark"] .family-add:hover{background:#304839}html[data-theme="dark"] .privacy-choice,html[data-theme="dark"] .assignment-toast,html[data-theme="dark"] .notification-item.unread{background:#213b2e;color:#d5ebdc}
@media(max-width:700px){.family-banner{align-items:flex-start;flex-direction:column;gap:13px;padding:16px;margin-bottom:20px}.family-people{gap:8px}.family-person{padding:6px 8px;font-size:12px}.member-avatar{width:30px;height:30px}.family-banner-title{display:flex;align-items:center;gap:10px}.family-banner-title strong{font-size:13px}.assignment-toast{flex-wrap:wrap;padding:12px}.demo-banner{font-size:9px}.demo-banner form{width:100%;justify-content:center}.topbar{gap:4px}.notification-item{overflow-wrap:anywhere}}

/* Transfer recipient tiles: native radios retain keyboard navigation. */
.recipient-picker{border:0;padding:0;margin:22px 0}.recipient-picker legend{font-weight:600;margin-bottom:12px}.recipient-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.recipient-tile{position:relative;display:flex!important;flex-direction:column;align-items:center;text-align:center;gap:7px;margin:0!important;padding:21px 14px 17px;border:1px solid var(--line);border-radius:14px;background:#f4f7f3;cursor:pointer;min-width:0;transition:background .15s,border-color .15s}.recipient-tile .member-avatar{width:48px;height:48px;font-size:18px;margin-bottom:4px;flex-shrink:0}.recipient-tile strong{font-size:14px;overflow-wrap:anywhere;max-width:100%}.recipient-tile small{font-size:11px;color:var(--muted)}.recipient-tile:nth-child(3n+2) .member-avatar{background:#e9ddd6;color:#704b3a}.recipient-tile:nth-child(3n) .member-avatar{background:#dce3ef;color:#3e587f}.recipient-check{position:absolute;top:10px;right:10px;width:19px;height:19px;border:1px solid #a3b5a8;border-radius:50%;font-size:12px;line-height:17px}.recipient-tile:hover{border-color:#7b9d8b;background:#edf4ed}.recipient-tile.selected{border-color:#4e8767;background:#e5f1e7;box-shadow:inset 0 0 0 1px #4e8767}.recipient-tile.selected .recipient-check{background:#397353;border-color:#397353;color:white}.recipient-tile:has(input:focus-visible){outline:3px solid #88b5a1;outline-offset:3px}.recipient-tile:has(input:disabled){cursor:default;opacity:.6}.recipient-empty{color:var(--muted);margin:0}html[data-theme="dark"] .recipient-tile{background:#23352b;border-color:#3d5145;color:#d9eade}html[data-theme="dark"] .recipient-tile:hover{background:#2b4033;border-color:#80aa8e}html[data-theme="dark"] .recipient-tile.selected{background:#2d4937;border-color:#9bcaab;box-shadow:inset 0 0 0 1px #9bcaab}html[data-theme="dark"] .recipient-tile.selected .recipient-check{background:#abd3b8;border-color:#abd3b8;color:#1b3424}
@media(max-width:440px){.recipient-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.recipient-tile{padding:19px 9px 14px}}

/* Personal timelines and private cards. */
.family-person{border:1px solid transparent;color:inherit;text-align:left}.family-person:hover{border-color:#91b29e}.family-person.selected{border-color:#578567;box-shadow:inset 0 0 0 1px #578567;background:#e0eee2}.family-all{align-self:stretch;border:1px solid var(--line);border-radius:12px;background:transparent;color:inherit;padding:10px 14px;font-size:12px;font-weight:600}.family-all.selected{background:#e0eee2;border-color:#578567}.member-scope{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;padding:14px 18px;border-left:3px solid #80aa8e;background:#edf4ed;border-radius:0 12px 12px 0}.member-scope strong{display:block;font-size:14px}.member-scope small{display:block;margin-top:5px;color:var(--muted)}
html[data-theme="dark"] .family-person.selected,html[data-theme="dark"] .family-all.selected{background:#2d4937;border-color:#9bcaab;box-shadow:inset 0 0 0 1px #9bcaab}html[data-theme="dark"] .member-scope{background:#213b2e}
html[data-theme] .timeline-row.private-task .task-card{border-style:dashed}
@media(max-width:700px){.family-all{padding:9px 10px}.member-scope{align-items:flex-start;flex-direction:column;gap:7px}.member-scope .text-button{padding-left:0}}
