/* Full-width overview. Detailed editors retain their existing behavior. */
body.wzrd-overview{background:var(--cw-bg)!important;color:var(--cw-ink);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body.wzrd-overview [hidden]{display:none!important}
body.wzrd-overview .portal-header{background:var(--cw-panel)!important;border-bottom:1px solid var(--cw-line);position:relative;backdrop-filter:none;box-shadow:none}
body.wzrd-overview .portal-header .header-inner{max-width:none;width:100%;padding:14px 30px!important;display:flex!important;align-items:center;gap:30px;min-height:68px}
body.wzrd-overview .cw-brand{display:flex;align-items:center;gap:10px;background:transparent;color:#626650;font-size:14px;font-weight:700;letter-spacing:2.2px;white-space:nowrap;padding:0;min-height:38px}
.cw-brand-mark{width:32px;height:32px;flex:0 0 32px;display:block;background:transparent url('/favicon.svg') center/contain no-repeat;border-radius:50%}
html[data-theme=dark] body.wzrd-overview .cw-brand{color:#c5c9b3}
body.wzrd-overview .cw-nav{display:flex;gap:5px;align-items:center;flex:1;justify-content:center;min-width:0}
body.wzrd-overview .cw-nav-item,.cw-more>summary{font:500 12px/1.4 inherit;background:transparent;color:var(--cw-muted);padding:9px 13px;border:0;border-radius:7px;white-space:nowrap;cursor:pointer;min-height:36px}
body.wzrd-overview .cw-nav-item.active{background:var(--cw-tint);color:var(--cw-purple);font-weight:650}
body.wzrd-overview .cw-nav-item:hover,.cw-more>summary:hover{background:var(--cw-soft);color:var(--cw-ink)}
.cw-more{position:relative}.cw-more>summary{list-style:none}.cw-more>summary::-webkit-details-marker{display:none}.cw-menu-items{position:absolute;top:100%;right:0;background:var(--cw-panel);border:1px solid var(--cw-line);box-shadow:0 10px 32px #1112;padding:6px;border-radius:10px;display:grid;min-width:170px;z-index:30}.cw-menu-items button{text-align:left}
.cw-header-right{display:flex;align-items:center;gap:14px}.cw-theme{background:transparent;color:var(--cw-muted);font-size:24px;line-height:1;width:36px;height:36px;border:1px solid var(--cw-line);border-radius:10px}.cw-account{position:relative;z-index:30}.cw-account>summary{font-size:12px;list-style:none;cursor:pointer;color:var(--cw-muted);padding:9px 5px;min-height:36px;white-space:nowrap}.cw-account>summary::-webkit-details-marker{display:none}
body.wzrd-overview .cw-account[open]>.header-actions{display:flex;position:absolute;right:0;top:100%;width:280px;background:var(--cw-panel);border:1px solid var(--cw-line);padding:18px;border-radius:12px;box-shadow:0 12px 30px #1112;gap:10px;flex-wrap:wrap}.cw-account .header-actions>.theme-switch{display:flex}
body.wzrd-overview main{max-width:none!important;margin:0!important;width:100%;padding:18px 30px 12px!important}
body.wzrd-overview main>.topline,body.wzrd-overview[data-cw-view=today] .greeting{display:none!important}
body.wzrd-overview .save-strip{margin:0 0 8px!important;min-height:0;font-size:10px}.cw-save-strip>span:not(#save-status){display:none}.cw-save-strip #save-status{font-size:10px;color:var(--cw-muted)}.cw-save-strip .save-tools>summary{padding:2px 0;font-size:10px}
body.wzrd-overview[data-cw-view=today] footer{display:none}
.cw-board{color:var(--cw-ink)}.cw-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.cw-eyebrow{font-size:9px;font-weight:700;letter-spacing:1.8px;color:var(--cw-muted);margin:0 0 7px}.cw-intro h1{font-family:inherit!important;font-size:27px!important;font-weight:650;letter-spacing:-1px;line-height:1.2;margin:0 0 5px!important}.cw-date{font-size:11px;color:var(--cw-muted);margin:0}.cw-intro-actions{display:flex;gap:8px}
body.wzrd-overview #portal-app :is(.cw-primary,.cw-secondary){font-size:11px;font-weight:550;line-height:1.4;padding:9px 12px;border-radius:7px!important;min-height:34px;border:1px solid var(--cw-line);box-shadow:none;white-space:nowrap}
body.wzrd-overview #portal-app .cw-primary{background:var(--cw-button);color:var(--cw-panel);border-color:var(--cw-button)}body.wzrd-overview #portal-app .cw-secondary{background:var(--cw-panel);color:var(--cw-ink)}
.cw-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
body.wzrd-overview #portal-app .cw-stat{display:flex;align-items:center;gap:14px;text-align:left;background:var(--cw-panel);color:var(--cw-ink);padding:13px 17px;border:1px solid var(--cw-line);border-radius:11px;min-height:83px}
.cw-stat-icon{display:grid;place-items:center;background:var(--cw-soft);color:var(--cw-muted);width:38px;height:38px;border-radius:11px;flex:none}.cw-stat-icon svg{width:18px;height:18px}.cw-stat:first-child .cw-stat-icon{background:var(--cw-tint);color:var(--cw-purple)}.cw-stat-copy{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:baseline;min-width:0}.cw-stat-label{font-size:10px;color:var(--cw-muted);grid-column:1/-1;margin-bottom:3px}.cw-stat-copy strong{font-size:23px;letter-spacing:-.7px;font-weight:600;line-height:1.15}.cw-stat-copy small{font-size:9px;color:var(--cw-muted);line-height:1.4}
.cw-grid{display:grid;grid-template-columns:1.1fr 1.24fr 1fr 1fr;gap:14px;grid-template-rows:310px 208px;align-items:stretch}
body.wzrd-overview #portal-app .cw-card{background:var(--cw-panel)!important;border:1px solid var(--cw-line)!important;border-radius:12px!important;box-shadow:0 2px 4px #20243a02;padding:17px 18px;display:flex;flex-direction:column;min-width:0;overflow:hidden}
.cw-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.cw-card-head h2{font-family:inherit!important;font-size:12px!important;font-weight:650!important;letter-spacing:-.2px;display:flex;gap:8px;align-items:center;margin:0}.cw-card-head h2 svg{width:15px;height:15px;color:var(--cw-muted);flex:none}
body.wzrd-overview #portal-app .cw-link{padding:3px 0;background:transparent;color:var(--cw-muted);font-size:10px;border:0;border-radius:0;min-height:26px;white-space:nowrap}.cw-link:hover{color:var(--cw-purple)!important;text-decoration:underline}
.cw-card-body{min-height:0;flex:1;display:flex;flex-direction:column;position:relative}.cw-task-list{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--cw-line) transparent}
.cw-task{display:flex;gap:8px;align-items:center;min-height:29px;padding:6px 0;border-bottom:1px solid var(--cw-line);cursor:pointer;font-size:11px;line-height:1.45;color:var(--cw-ink)}.cw-task>input{width:15px;height:15px;flex:none;margin:0;accent-color:var(--cw-purple)}.cw-task>span{min-width:0;overflow-wrap:anywhere}.cw-task small{font-size:9px;color:var(--cw-muted);display:block;margin-top:2px}.cw-done>span{text-decoration:line-through;color:var(--cw-muted)}
body.wzrd-overview #portal-app .cw-list-more{background:transparent;color:var(--cw-purple);padding:7px 0;border:0;font-size:10px;text-align:left;min-height:30px}
body.wzrd-overview #portal-app .cw-add-form{display:flex;gap:6px;margin:10px 0 0!important;flex:none}body.wzrd-overview #portal-app .cw-add-form input{padding:8px 9px;font-size:11px!important;border:1px solid var(--cw-line)!important;border-radius:7px!important;min-height:33px;background:var(--cw-soft)!important;color:var(--cw-ink)!important;box-shadow:none;width:100%;min-width:0}body.wzrd-overview #portal-app .cw-add-form button{font-size:11px!important;padding:7px 10px!important;min-height:33px;border-radius:7px!important;background:var(--cw-button)!important;color:var(--cw-panel)!important;box-shadow:none}
.cw-empty{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;flex:1;padding:12px 0;color:var(--cw-muted);line-height:1.6;min-height:90px}.cw-empty-symbol{font-size:25px;color:var(--cw-purple);margin-bottom:10px}.cw-empty strong{font-size:12px;font-weight:550;color:var(--cw-ink)}.cw-empty p{font-size:11px;max-width:230px;margin:5px 0}.cw-calendar-empty{padding:13px 0 8px;margin:auto 0;line-height:1.5}.cw-calendar-empty strong{font-size:12px;font-weight:550}.cw-calendar-empty p{font-size:10px;color:var(--cw-muted);margin:5px 0}.cw-subtle{font-size:9px;color:var(--cw-muted);margin:8px 0 0}
.cw-week{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:10px}.cw-week-day{display:flex;flex-direction:column;align-items:center;gap:6px;border-radius:7px;padding:7px 2px;color:var(--cw-muted)}.cw-week-day small{font-size:9px}.cw-week-day strong{font-size:11px;font-weight:550}.cw-week-day.is-today{background:var(--cw-tint);color:var(--cw-purple)}.cw-event{display:flex;gap:10px;border-top:1px solid var(--cw-line);padding:10px 0;font-size:11px;line-height:1.4;min-height:40px}.cw-event time{color:var(--cw-muted);font-size:9px;min-width:45px;flex:none}.cw-event span{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
body.wzrd-overview #portal-app .cw-person{display:flex;align-items:center;gap:9px;text-align:left;width:100%;background:transparent;color:var(--cw-ink);padding:10px 0;border-bottom:1px solid var(--cw-line);border-radius:0}.cw-person>svg{width:13px;height:13px;color:var(--cw-muted);margin-left:auto;flex:none}.cw-avatar{width:31px;height:31px;border-radius:50%;background:var(--cw-tint);color:var(--cw-purple);display:grid;place-items:center;font-size:10px;font-weight:550;flex:none}.cw-person:nth-child(2n) .cw-avatar{background:var(--cw-soft);color:var(--cw-muted)}.cw-person-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.cw-person strong{font-size:11px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cw-person small{font-size:9px;color:var(--cw-muted)}
.cw-journal{grid-column:span 2}.cw-journal-meta{display:flex;align-items:center;gap:10px;font-size:10px;color:var(--cw-muted);margin-bottom:8px}.cw-pill{background:var(--cw-tint);color:var(--cw-purple);border-radius:5px;padding:3px 6px;font-size:9px;white-space:nowrap}.cw-journal-copy{font-size:13px;line-height:1.85;margin:0 0 10px;max-width:850px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--cw-ink)}.cw-journal-actions{display:flex;gap:14px;margin-top:auto;align-items:center}.cw-goal{padding:4px 0 9px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--cw-line)}.cw-goal strong{font-size:11px;font-weight:550;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.cw-goal small{font-size:9px;color:var(--cw-muted);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.cw-goal progress{height:4px;width:100%;accent-color:var(--cw-purple);margin:3px 0}.cw-health .cw-card-body{display:flex;flex-direction:row;align-items:center;gap:15px}.cw-health .cw-card-body>svg{width:94px;max-width:40%;flex:none}.cw-health-copy strong{font-size:12px;font-weight:550}.cw-health-copy p{font-size:10px;color:var(--cw-muted);line-height:1.7;margin:5px 0}
.cw-feedback{font-size:11px;color:var(--cw-muted);margin:4px 0 0}.cw-feedback:empty{display:none}.cw-bottom{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--cw-muted);margin-top:10px}
body.wzrd-overview .greeting{margin:8px 0 16px!important}.wzrd-overview .greeting h1{font-size:25px!important;font-family:inherit!important}.wzrd-overview .personal-history .ph-days-list{max-height:600px}.wzrd-overview .personal-history .ph-day-detail{position:static}
@media(min-width:1900px){.cw-grid{grid-template-rows:340px 230px}.cw-task{font-size:12px;min-height:31px}.cw-intro h1{font-size:30px!important}.cw-stat-copy strong{font-size:26px}.cw-journal-copy{font-size:15px}}
@media(min-width:1200px) and (max-height:850px){body.wzrd-overview .portal-header .header-inner{min-height:54px;padding:9px 24px!important}body.wzrd-overview main{padding:12px 24px 8px!important}.cw-intro{margin-bottom:12px}.cw-intro h1{font-size:25px!important}.cw-eyebrow{font-size:8px;margin-bottom:5px}.cw-date{font-size:10px}.cw-stats{margin-bottom:12px;gap:12px}body.wzrd-overview #portal-app .cw-stat{min-height:64px;padding:10px 14px}.cw-stat-icon{width:32px;height:32px}.cw-stat-copy strong{font-size:22px}.cw-stat-copy small{font-size:9px}.cw-grid{grid-template-rows:260px 170px;gap:12px}body.wzrd-overview #portal-app .cw-card{padding:13px 16px}.cw-card-head{margin-bottom:9px}.cw-task{padding:5px 0;min-height:28px}.cw-person{padding:8px 0!important}.cw-avatar{width:28px;height:28px}.cw-journal-copy{font-size:12px;line-height:1.65;-webkit-line-clamp:3;margin-bottom:5px}.cw-journal-meta{margin-bottom:5px}.cw-journal-actions .cw-primary{padding:6px 10px!important;min-height:28px!important}.cw-goal{padding-bottom:6px}.cw-week{margin-bottom:5px}.cw-week-day{padding:5px 2px}.cw-event{padding:8px 0;min-height:35px}.cw-health .cw-card-body>svg{width:82px}.cw-bottom{margin-top:7px}.cw-save-strip{margin-bottom:6px!important}}
@media(max-width:1199px){body.wzrd-overview .portal-header .header-inner{padding:12px 20px!important;gap:16px}.cw-nav-item{padding:8px 9px!important}body.wzrd-overview main{padding:16px 20px!important}.cw-grid{grid-template-columns:1fr 1.1fr 1fr;grid-template-rows:300px 230px 190px}.cw-people{grid-column:1;grid-row:2}.cw-journal{grid-column:2/4;grid-row:2}.cw-goals{grid-column:1/3;grid-row:3}.cw-health{grid-column:3;grid-row:3}.cw-goals .cw-card-body{flex-direction:row;gap:20px}.cw-goal{flex:1;min-width:0}.cw-stats{gap:10px}.cw-stat{gap:9px!important;padding:12px!important}.cw-stat-copy small{grid-column:1/-1;margin-top:4px}.cw-intro h1{font-size:25px!important}}
@media(max-width:800px){body.wzrd-overview .portal-header .header-inner{flex-wrap:wrap;padding:12px 16px!important;gap:8px}.cw-header-right{margin-left:auto}.cw-nav{order:3;flex-basis:100%!important;overflow:auto;justify-content:flex-start!important}.cw-nav-item{font-size:11px!important}.cw-brand{font-size:13px!important}.cw-intro{align-items:flex-start}.cw-intro-actions{display:none}.cw-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cw-grid{grid-template-columns:1fr 1fr;grid-template-rows:290px 280px 220px 190px}.cw-todos{grid-column:1;grid-row:1}.cw-checklist{grid-column:2;grid-row:1}.cw-calendar{grid-column:1;grid-row:2}.cw-people{grid-column:2;grid-row:2}.cw-journal{grid-column:1/3;grid-row:3}.cw-goals{grid-column:1;grid-row:4}.cw-health{grid-column:2;grid-row:4}.cw-goals .cw-card-body{flex-direction:column;gap:0}.cw-health .cw-card-body{gap:8px}.cw-health .cw-card-body>svg{width:70px}.cw-card{padding:15px!important}.cw-more .cw-menu-items{right:auto;left:0}}
@media(max-width:520px){body.wzrd-overview main{padding:12px!important}.cw-intro{margin-bottom:14px}.cw-intro h1{font-size:23px!important}.cw-date{font-size:10px}.cw-grid{display:flex;flex-direction:column;gap:12px}.cw-card{min-height:190px;max-height:320px}.cw-todos{min-height:220px}.cw-checklist{min-height:300px}.cw-journal{order:2;min-height:215px}.cw-calendar{order:3;min-height:260px}.cw-people{order:4;min-height:290px}.cw-goals{order:5}.cw-health{order:6}.cw-stats{gap:9px}.cw-stat{min-height:82px!important}.cw-stat-icon{width:28px;height:28px;border-radius:8px}.cw-stat-icon svg{width:15px}.cw-stat-copy strong{font-size:21px}.cw-stat-label{font-size:9px}.cw-stat-copy small{font-size:8px}.cw-task{min-height:36px;font-size:12px}.cw-task>input{width:18px;height:18px}.cw-health .cw-card-body>svg{width:95px}.cw-card-head h2{font-size:13px!important}.cw-link{min-height:34px!important}.cw-add-form input{font-size:16px!important}.cw-nav-item{min-height:40px!important}.cw-journal-copy{-webkit-line-clamp:4}.cw-bottom{font-size:9px;gap:10px}}

/* Clear keyboard focus and compact, editable goals. */
body.wzrd-overview #portal-app :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--cw-purple);outline-offset:3px}
body.wzrd-overview #portal-app button.cw-goal{background:transparent;color:var(--cw-ink);text-align:left;border-radius:0;width:100%;padding:4px 0 9px;min-height:0}
.cw-highlight{outline:2px solid var(--cw-purple);outline-offset:4px;border-radius:8px}
.cw-stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.cw-grid{grid-auto-flow:dense}
.audit-goals-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:20px 0}
.audit-goal-row{border:1px solid var(--cw-line);padding:16px;border-radius:10px}.audit-goal-row h3{margin:0 0 8px}.audit-goal-row button{margin:5px 7px 0 0}
.audit-goal-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:900px}.audit-goal-form label{display:flex;flex-direction:column;gap:7px;font-size:12px}.audit-goal-form input[type=checkbox]{width:20px;height:20px}.audit-goal-form .sync-note{grid-column:1/-1}
@media(max-width:600px){.audit-goal-form{grid-template-columns:1fr}.cw-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

body.wzrd-overview .cw-account>summary::after{content:none!important}

/* Personalized greetings wrap safely, including long display names on phones. */
.cw-intro>div:first-child{min-width:0}.cw-intro h1{overflow-wrap:anywhere}

/* Layout controls affect only Overview cards, never the four summary tiles. */
.cw-layout-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px}
.cw-layout-hint,.cw-layout-status{font-size:11px;line-height:1.6;color:var(--cw-muted);margin:0;max-width:620px}
.cw-layout-hint:empty,.cw-layout-status:empty{display:none}.cw-layout-status{flex-basis:100%}
.cw-layout-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;max-width:100%}
.cw-layout-controls{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding-bottom:11px;margin-bottom:12px;border-bottom:1px dashed var(--cw-line)}
body.wzrd-overview #portal-app :is(.cw-layout-handle,.cw-layout-move){display:inline-grid;place-items:center;width:34px;min-height:34px;padding:0;border:1px solid var(--cw-line);border-radius:6px;background:var(--cw-soft);color:var(--cw-ink);font-size:17px;flex:none}
body.wzrd-overview #portal-app .cw-layout-handle{cursor:grab;font-size:23px;user-select:none;touch-action:none}
.cw-layout-size{display:flex;align-items:center;gap:5px;margin-left:auto;color:var(--cw-muted);font-size:10px;min-width:0}
body.wzrd-overview #portal-app .cw-layout-size select{width:auto;max-width:95px;min-height:34px;padding:4px 5px;background:var(--cw-panel);color:var(--cw-ink);border:1px solid var(--cw-line);border-radius:6px;font-size:11px}
.cw-grid.cw-layout-active{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:8px;grid-auto-flow:row dense;align-items:start}
body.wzrd-overview #portal-app .cw-layout-active>.cw-card{grid-column:span var(--layout-span,1);grid-row:span var(--layout-rows,1);order:0;max-height:none;min-height:240px;overflow:visible}
body.wzrd-overview #portal-app .cw-layout-active>.cw-card[data-layout-size=small]{min-height:145px}
body.wzrd-overview #portal-app .cw-layout-active>.cw-card[data-layout-size=large]{min-height:350px}
.cw-layout-active .cw-task-list{flex:none;overflow:visible}.cw-layout-active .cw-card-body{min-width:0}
.cw-layout-active .cw-goals .cw-card-body{flex-direction:column;gap:0}
.cw-layout-active [data-layout-size=large] .cw-journal-copy{-webkit-line-clamp:12}
.cw-layout-active [data-layout-size=small] .cw-journal-copy{-webkit-line-clamp:2;line-height:1.6}
.cw-layout-active [data-layout-size=small] .cw-journal-actions .cw-link{display:none}
.cw-layout-active [data-layout-size=small] .cw-calendar-empty{margin:0;padding:5px 0}
.cw-layout-active [data-layout-size=large] :is(.cw-goal strong,.cw-goal small){-webkit-line-clamp:3}
.cw-layout-active [data-layout-size=small] .cw-empty{min-height:0;padding:4px 0}
.cw-layout-active [data-layout-size=small] .cw-empty-symbol{display:none}
.cw-layout-active [data-layout-size=small] .cw-health-copy{width:100%}
.cw-layout-summary{font-size:13px;font-weight:600;margin:0 0 8px}.cw-layout-detail{font-size:11px;line-height:1.6;color:var(--cw-muted);overflow-wrap:anywhere;margin:7px 0}
.cw-layout-active .cw-journal-actions{flex-wrap:wrap}.cw-layout-active .cw-journal-meta{flex-wrap:wrap}
.cw-layout-active .cw-card-head{flex-wrap:wrap}.cw-layout-active .cw-card-head h2{min-width:0;overflow-wrap:anywhere}
.cw-layout-dragging{opacity:.6}.cw-layout-drop-target{outline:2px dashed var(--cw-purple);outline-offset:3px}
.cw-layout-editing .cw-card{border-color:var(--cw-purple)!important}
@media(max-width:1199px){.cw-grid.cw-layout-active{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.cw-grid.cw-layout-active{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){
  .cw-grid.cw-layout-active{grid-template-columns:minmax(0,1fr)}
  body.wzrd-overview #portal-app .cw-layout-active>.cw-card{grid-column:1;min-height:220px}
  body.wzrd-overview #portal-app .cw-layout-active>.cw-card[data-layout-size=small]{min-height:140px}
  body.wzrd-overview #portal-app .cw-layout-active>.cw-card[data-layout-size=large]{min-height:320px}
  body.wzrd-overview #portal-app :is(.cw-layout-actions button,.cw-layout-handle,.cw-layout-move,.cw-layout-size select){min-height:44px}
  body.wzrd-overview #portal-app :is(.cw-layout-handle,.cw-layout-move){width:40px}
  .cw-layout-size{font-size:11px}.cw-layout-hint,.cw-layout-status{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.cw-board *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Uniform default cards; saved custom sizes and edit mode remain independent. */
.cw-grid:not(.cw-layout-active){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:310px;align-items:stretch}
body.wzrd-overview #portal-app .cw-grid:not(.cw-layout-active)>.cw-card{grid-column:auto;grid-row:auto;height:100%;min-height:0;max-height:none}
.cw-grid:not(.cw-layout-active) .cw-card-body{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--cw-line) transparent}
.cw-grid:not(.cw-layout-active) :is(.cw-journal-meta,.cw-journal-actions){flex-wrap:wrap}
.cw-grid:not(.cw-layout-active) .cw-goals .cw-card-body{flex-direction:column;gap:0}
.cw-grid:not(.cw-layout-active) .cw-goal{flex:none}
@media(min-width:1900px){.cw-grid:not(.cw-layout-active){grid-auto-rows:340px}}
@media(max-width:1199px){.cw-grid:not(.cw-layout-active){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.cw-grid:not(.cw-layout-active){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.cw-grid:not(.cw-layout-active){grid-template-columns:minmax(0,1fr);grid-auto-rows:320px}}

/* Header actions share the greeting row instead of reserving a separate edit-button row. */
.cw-intro{margin-bottom:14px;gap:16px}.cw-intro>div:first-child{flex:1}
.cw-intro-actions{align-items:center;justify-content:flex-end;flex-wrap:wrap;flex-shrink:0}
@media(max-width:800px){
  .cw-intro{align-items:center;gap:12px;flex-wrap:wrap}
  .cw-intro-actions{display:flex;margin-left:auto}
  .cw-intro-actions>button:not([aria-controls="cw-layout-grid"]){display:none}
}
@media(max-width:520px){
  .cw-intro>div:first-child{flex-basis:190px}
  body.wzrd-overview #portal-app .cw-intro-actions .cw-secondary{min-height:44px}
}

/* A daily reading view; saved card layouts remain available in All cards. */
.cw-view-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}
.cw-intro-actions{max-width:100%;min-width:0}
.cw-view-label{font-size:12px;color:var(--cw-muted);margin:0}
.cw-view-switch{display:flex;gap:3px;padding:3px;border:1px solid var(--cw-line);background:var(--cw-soft);border-radius:9px;flex:none}
body.wzrd-overview #portal-app .cw-view-choice{font:550 11px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:transparent;border:0;border-radius:6px;color:var(--cw-muted);padding:7px 13px;min-height:32px;box-shadow:none}
body.wzrd-overview #portal-app .cw-view-choice[aria-pressed=true]{background:var(--cw-panel);color:var(--cw-ink);box-shadow:0 1px 3px #1111}
body.wzrd-overview #portal-app .cw-view-choice:disabled{opacity:.55;cursor:default}
.cw-card-meta,.cw-routine-meta{font-size:11px;line-height:1.5;color:var(--cw-muted);margin:0 0 10px;flex:none}
.cw-routine-meta{display:flex;align-items:center;gap:12px;justify-content:space-between}
.cw-routine-meta progress{width:80px;max-width:35%;height:5px;accent-color:var(--cw-purple)}
.cw-today-focus .cw-grid,.cw-today-focus .cw-grid.cw-layout-active{display:grid;grid-template-columns:1.1fr 1.1fr 1fr;grid-template-rows:300px;grid-auto-rows:230px;grid-auto-flow:row;gap:14px;align-items:stretch}
body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-card{grid-column:auto;grid-row:auto;order:0;min-height:0;max-height:none;height:100%;overflow:hidden;padding:18px 20px}
body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-journal{grid-column:span 2}
.cw-today-focus .cw-card-head{margin-bottom:10px;flex-wrap:nowrap}
.cw-today-focus .cw-card-head h2{font-size:13px!important}
.cw-today-focus .cw-card-body{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--cw-line) transparent;min-height:0}
.cw-today-focus .cw-task-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}
.cw-today-focus .cw-task{font-size:12px;line-height:1.45;min-height:33px;padding:7px 0}
.cw-today-focus .cw-task>input{width:17px;height:17px}
.cw-today-focus .cw-task small{font-size:10px}
.cw-today-focus .cw-person strong{font-size:12px}
.cw-today-focus .cw-person small{font-size:10px}
.cw-today-focus .cw-person{padding:8px 0!important;min-height:46px}
.cw-today-focus .cw-event{font-size:12px;padding:10px 0}
.cw-today-focus .cw-event time{font-size:10px;min-width:53px}
.cw-today-focus .cw-journal-copy,.cw-today-focus .cw-layout-active [data-layout-size=small] .cw-journal-copy{font-size:14px;line-height:1.75;-webkit-line-clamp:3;max-width:75ch}
.cw-today-focus .cw-journal-meta{flex-wrap:wrap;line-height:1.5}
.cw-today-focus .cw-journal-actions{flex-wrap:wrap;gap:12px;padding-top:8px;flex:none}
.cw-today-focus .cw-layout-active [data-layout-size=small] .cw-journal-actions .cw-link{display:inline-block}
.cw-today-focus .cw-layout-active [data-layout-size=small] .cw-empty{min-height:70px;padding:8px 0}
.cw-today-focus .cw-layout-active [data-layout-size=small] .cw-empty-symbol{display:block}
.cw-today-focus .cw-layout-active [data-layout-size=small] .cw-calendar-empty{margin:auto 0;padding:13px 0 8px}
@media(min-width:1900px){
  .cw-today-focus .cw-grid,.cw-today-focus .cw-grid.cw-layout-active{grid-template-rows:330px;grid-auto-rows:250px}
  .cw-today-focus .cw-task{font-size:13px;min-height:36px}
}
@media(min-width:1200px) and (max-height:850px){
  .cw-view-bar{margin-bottom:0}
  .cw-today-focus .cw-grid,.cw-today-focus .cw-grid.cw-layout-active{grid-template-rows:280px;grid-auto-rows:210px;gap:12px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-card{padding:15px 18px}
  .cw-today-focus .cw-task{min-height:31px;padding:6px 0}
  .cw-today-focus .cw-journal-copy{font-size:13px}
}
@media(max-width:1199px){
  .cw-today-focus .cw-grid,.cw-today-focus .cw-grid.cw-layout-active{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:300px;grid-auto-rows:280px}
  .cw-today-focus .cw-grid>.cw-journal{grid-column:span 2}
}
@media(max-width:800px){
  .cw-view-label{font-size:11px}
  .cw-today-focus .cw-intro-actions>button:not([aria-controls="cw-layout-grid"]){display:inline-flex;align-items:center;justify-content:center}
  .cw-today-focus .cw-intro-actions{margin-left:0;justify-content:flex-start}
  body.wzrd-overview #portal-app .cw-view-choice{min-height:44px}
}
@media(max-width:600px){
  .cw-today-focus .cw-intro-actions>.cw-quick-add{display:none!important}
  .cw-today-focus .cw-grid,.cw-today-focus .cw-grid.cw-layout-active{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:auto;gap:12px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-card{grid-column:auto;grid-row:auto;height:auto;min-height:190px;max-height:380px;padding:18px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-todos{min-height:250px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-checklist{min-height:300px}
  .cw-today-focus .cw-task{min-height:44px;padding:10px 0;font-size:13px}
  .cw-today-focus .cw-task>input{width:20px;height:20px}
  body.wzrd-overview #portal-app .cw-today-focus :is(.cw-link,.cw-list-more,.cw-primary,.cw-secondary){min-height:44px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-add-form input{font-size:16px!important;min-height:44px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-add-form button{min-height:44px}
  .cw-today-focus .cw-journal-copy{-webkit-line-clamp:4;font-size:13px}
}

/* Compact native date chips for the personal To-do list. */
body.wzrd-overview #portal-app .cw-add-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;margin-top:12px!important;padding-top:12px;border-top:1px solid var(--cw-line)}
body.wzrd-overview #portal-app .cw-add-form>input{width:100%;min-width:0;min-height:36px}
body.wzrd-overview #portal-app .cw-add-form>button{min-height:36px;white-space:nowrap}
.cw-todos .cw-task{min-height:38px;padding:7px 0;gap:10px}
.cw-todos .cw-task:last-of-type{border-bottom:0}
.cw-task>span{flex:1}
.todo-date-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:108px;min-width:0;height:30px;margin:0;border:1px solid transparent;border-radius:7px;background:var(--cw-soft);color:var(--cw-muted);cursor:pointer;overflow:hidden}
.todo-date-chip.has-date{background:var(--cw-soft);color:var(--cw-purple)}
.todo-date-chip:hover{border-color:var(--cw-line);color:var(--cw-ink)}
.todo-date-chip-copy{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;font-size:11px;line-height:1}
.todo-date-symbol{display:flex}.todo-date-symbol svg{width:13px;height:13px}
body.wzrd-overview #portal-app .todo-date-chip>input{position:absolute;inset:0;box-sizing:border-box;width:100%;height:100%;min-height:0;margin:0;padding:3px 5px!important;border:0!important;border-radius:6px!important;opacity:0;cursor:pointer;font:11px system-ui!important;background:var(--cw-soft)!important;color:var(--cw-ink)!important;box-shadow:none}
.todo-date-chip:focus-within{outline:2px solid var(--cw-purple);outline-offset:2px}
.todo-date-chip:focus-within .todo-date-chip-copy{visibility:hidden}
body.wzrd-overview #portal-app .todo-date-chip:focus-within>input{opacity:1}
.cw-add-form .todo-date-chip{height:36px;width:108px}
@media(max-width:380px){body.wzrd-overview #portal-app .cw-add-form{gap:5px}.cw-add-form .todo-date-chip{width:94px}.cw-todos .cw-task{gap:7px}.cw-task-due{width:100px}}

/* Keep To-do focus rings inside the scrollable card instead of clipping them. */
body.wzrd-overview #portal-app .cw-todos :is(.cw-add-form>input,.cw-add-form>button,.todo-date-chip):focus-within{outline:2px solid var(--cw-purple)!important;outline-offset:-2px!important}
body.wzrd-overview #portal-app .cw-todos .todo-date-chip>input:focus-visible{outline:none!important}

/* Past due dates remain easy to spot in either theme, including while editing. */
.todo-date-chip.is-overdue{color:#b42318}
html[data-theme=dark] .todo-date-chip.is-overdue{color:#ff9b93}
body.wzrd-overview #portal-app .todo-date-chip.is-overdue>input{color:inherit!important}

/* Dense, divider-free To-do rows with optional Apple-style detail indicators. */
body.wzrd-overview #portal-app .cw-todos .cw-task{min-height:32px;padding:3px 0;gap:7px;border:0;cursor:default}
.cw-todos .cw-task-copy{display:flex;flex-direction:column;gap:2px;min-width:0;cursor:default}
.cw-todos .cw-task-title{display:block;overflow-wrap:anywhere}
.cw-task-marks{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;margin-right:5px}
.cw-task-marks:empty{display:none}.cw-task-marks svg{width:12px;height:12px;display:block}
.cw-task-priority{color:var(--cw-purple);font-weight:750;letter-spacing:-1px}.cw-task-flag{color:#a45b00}.cw-task-flag svg{fill:currentColor}.cw-task-note{color:var(--cw-muted)}
html[data-theme=dark] .cw-task-flag{color:#ffc46b}
.cw-task-tags{font-size:10px;color:var(--cw-purple);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
body.wzrd-overview #portal-app .cw-todos .cw-task-due{width:83px;height:24px;border-radius:5px;background:transparent}
.cw-todos .cw-task-due:hover{background:var(--cw-soft)}
.cw-todos .cw-task-due .todo-date-chip-copy{font-size:10px;gap:4px}
.cw-todos .cw-task-due .todo-date-symbol svg{width:12px;height:12px}
body.wzrd-overview #portal-app .cw-task-details{display:grid;place-items:center;flex:none;width:26px;height:26px;min-height:26px;padding:4px;border:0;border-radius:6px;background:transparent;color:var(--cw-muted)}
.cw-task-details svg{width:15px;height:15px}.cw-task-details:hover{background:var(--cw-soft)!important;color:var(--cw-purple)!important}
body.wzrd-overview #portal-app .cw-todos .cw-task-details:focus-visible{outline-offset:-2px}
body.wzrd-overview #portal-app .cw-todos .cw-add-form{border-top:0;margin-top:8px!important;padding-top:4px}
body.wzrd-overview #portal-app .todo-details-dialog{width:440px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid var(--cw-line);border-radius:16px;background:var(--cw-panel);color:var(--cw-ink);box-shadow:0 18px 64px #0003}
.todo-details-dialog::backdrop{background:#17191f55}.todo-details-dialog h2{font-size:20px;margin:0 0 18px}
#todo-details-form{display:grid;gap:12px}#todo-details-form label{display:grid;gap:6px;font-size:12px;font-weight:550}
#todo-details-form :is(input:not([type=checkbox]),select,textarea){width:100%;min-width:0;padding:9px 10px;border:1px solid var(--cw-line);border-radius:8px;background:var(--cw-soft);color:var(--cw-ink);font:inherit;font-size:14px}
#todo-details-form textarea{resize:vertical}#todo-details-form small{font-size:11px;color:var(--cw-muted);margin-top:-6px;line-height:1.5}
.todo-details-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}#todo-details-form .todo-flag-field{display:flex;align-items:center;gap:8px}#todo-details-form input[type=checkbox]{width:17px;height:17px;accent-color:var(--cw-purple);margin:0}
#todo-details-status:empty{display:none}#todo-details-form .setup-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
@media(pointer:coarse){body.wzrd-overview #portal-app .cw-todos .cw-task{min-height:40px}body.wzrd-overview #portal-app .cw-task-details{width:32px;height:36px}}
@media(max-width:380px){body.wzrd-overview #portal-app .cw-todos .cw-task{gap:4px}.todo-details-pair{grid-template-columns:1fr}}

.cw-todo-summary{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;flex:none}
.cw-todo-summary .cw-card-meta{margin:0}
body.wzrd-overview #portal-app .cw-completed-toggle{font-size:10px;min-height:24px;color:var(--cw-purple);padding:2px 0}
@media(max-width:600px){#todo-details-form :is(input:not([type=checkbox]),select,textarea){font-size:16px}}

/* Due-date progress stays separate from the full list and completed visibility. */
.cw-task-copy{cursor:default}

/* Keep long lists dense, with tags inline instead of adding a second row. */
body.wzrd-overview #portal-app .cw-todos .cw-task{min-height:26px;padding:1px 0;gap:6px;line-height:1.3}
.cw-todos .cw-task-copy{flex-direction:row;align-items:baseline;flex-wrap:wrap;column-gap:6px;row-gap:1px}
.cw-todos .cw-task-tags{max-width:140px}
body.wzrd-overview #portal-app .cw-todos .cw-task>input[type=checkbox]{width:14px;height:14px}
body.wzrd-overview #portal-app .cw-todos .cw-task-details{width:22px;height:24px;min-height:24px;padding:3px}
.cw-todos .cw-card-head{margin-bottom:8px}
.cw-todo-summary{margin-bottom:3px}
@media(pointer:coarse){body.wzrd-overview #portal-app .cw-todos .cw-task{min-height:32px}body.wzrd-overview #portal-app .cw-todos .cw-task-details{width:28px;height:30px;min-height:30px}}
.cw-todos .cw-task-list{scrollbar-gutter:stable;padding-right:4px}

/* Compact tag bubbles and a matching overdue task-name cue. */
.cw-todos .cw-task-tags{display:flex;flex-wrap:wrap;gap:3px;max-width:100%;white-space:normal;overflow:visible}
.cw-todos .cw-task-tag{display:inline-block;max-width:100%;padding:1px 6px;border-radius:999px;background:var(--cw-tint);color:var(--cw-purple);font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.cw-todos .cw-task-title.is-overdue{color:#b42318}
html[data-theme=dark] .cw-todos .cw-task-title.is-overdue{color:#ff9b93}

/* Weekly rhythm, with future and unrecorded days clearly distinguished. */
.cw-habit-week{flex:none;padding:10px 12px;margin:0 0 8px;border:1px solid var(--cw-line);border-radius:10px;background:var(--cw-soft)}
.cw-habit-week-top{display:flex;align-items:center;gap:18px}
.cw-habit-week-top>div{display:grid;gap:1px}
.cw-habit-week-top strong{font-size:20px;line-height:1.2;font-weight:650;color:var(--cw-ink)}
.cw-habit-week-top small{font-size:9px;color:var(--cw-muted)}
.cw-habit-status{margin-left:auto;font-size:9px;white-space:nowrap;padding:4px 7px;border-radius:999px;background:var(--cw-tint);color:var(--cw-purple)}
.cw-habit-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:9px}
.cw-habit-day{display:grid;justify-items:center;gap:4px;color:var(--cw-muted)}
.cw-habit-day>small{font-size:9px;font-weight:650}
.cw-habit-ring{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:radial-gradient(circle at center,var(--cw-panel) 59%,transparent 63%),conic-gradient(var(--cw-purple) var(--habit-progress),var(--cw-line) 0);font-size:10px;color:var(--cw-purple);font-weight:600}
.cw-habit-day.is-today{color:var(--cw-purple)}
.cw-habit-day.is-today .cw-habit-ring{outline:1px solid var(--cw-purple);outline-offset:2px}
.cw-habit-day:is(.is-future,.is-unrecorded) .cw-habit-ring{background:none;border:1px dashed var(--cw-line)}
.cw-habit-day.is-future{opacity:.6}
.cw-habit-note{font-size:9px;line-height:1.4;color:var(--cw-muted);margin:7px 0 0}
.cw-checklist .cw-routine-meta{flex:none;font-size:10px;margin-bottom:4px}
.cw-checklist .cw-task-list{scrollbar-gutter:stable;padding-right:4px}
@media(max-width:380px){.cw-habit-week{padding:9px}.cw-habit-week-top{gap:12px}.cw-habit-status{padding:4px 5px;font-size:8px}}
.cw-habit-week{padding:8px 10px}
.cw-habit-week-top strong{font-size:18px}
.cw-habit-days{margin-top:7px;gap:3px}
.cw-habit-day{gap:3px}
.cw-habit-day:is(.is-future,.is-unrecorded) .cw-habit-ring{border-color:var(--cw-muted);opacity:.55}
.cw-habit-day.is-future{opacity:1}
.cw-habit-note{margin-top:5px}
@media(min-width:601px){.cw-today-focus .cw-grid,.cw-today-focus .cw-grid.cw-layout-active{grid-template-rows:340px}}

/* Browse saved plans by day without leaving the overview. */
.cw-calendar-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-bottom:8px;flex:none}
.cw-calendar-controls{display:flex;align-items:center;gap:3px}
body.wzrd-overview #portal-app .cw-calendar-step{min-width:28px;min-height:28px;padding:3px 6px;border:0;border-radius:6px;background:var(--cw-soft);color:var(--cw-ink);font-size:18px;line-height:1;box-shadow:none}
body.wzrd-overview #portal-app .cw-calendar-step[data-calendar-focus=today]{font-size:10px}
body.wzrd-overview #portal-app .cw-calendar .cw-week-day{min-width:0;min-height:38px;padding:5px 2px;border:0;background:transparent;color:var(--cw-muted);box-shadow:none}
body.wzrd-overview #portal-app .cw-calendar .cw-week-day.is-today{color:var(--cw-purple)}
body.wzrd-overview #portal-app .cw-calendar .cw-week-day.is-selected{background:var(--cw-tint);color:var(--cw-purple)}
body.wzrd-overview #portal-app .cw-calendar :is(.cw-calendar-step,.cw-week-day):hover{background:var(--cw-tint)}
body.wzrd-overview #portal-app .cw-calendar :is(.cw-calendar-step,.cw-week-day):focus-visible{outline:2px solid var(--cw-purple);outline-offset:-2px}
.cw-calendar-selected{font-size:10px;color:var(--cw-muted);margin:0 0 4px;flex:none}
@media(pointer:coarse){body.wzrd-overview #portal-app .cw-calendar-step{min-width:34px;min-height:34px}}

/* Account actions stay readable as a short vertical menu. */
body.wzrd-overview .cw-account>summary{font-size:14px;color:var(--cw-ink);font-weight:600;padding:10px 12px;border-radius:8px}
body.wzrd-overview .cw-account>summary:hover{background:var(--cw-soft)}
body.wzrd-overview .cw-account[open]>.header-actions{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;width:260px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:8px;gap:4px;top:calc(100% + 6px)}
body.wzrd-overview #portal-app .cw-account .header-actions>button{display:block;width:100%;min-height:44px;text-align:left;padding:11px 12px;border:0;border-radius:7px;background:transparent;color:var(--cw-ink);font-size:14px;font-weight:500;box-shadow:none}
body.wzrd-overview #portal-app .cw-account .header-actions>button:hover{background:var(--cw-soft)}
.cw-account-settings{order:1}.cw-account-signout{order:2}
body.wzrd-overview .cw-account .cw-account-appearance{order:3;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:12px 8px 8px;margin:4px 0 0;border:0;border-top:1px solid var(--cw-line);border-radius:0;background:transparent}
.cw-appearance-label{grid-column:1/-1;font-size:13px;font-weight:500;color:var(--cw-ink);padding:0 4px 6px}
body.wzrd-overview #portal-app .cw-account-appearance button{width:auto;min-height:40px;padding:8px;font-size:13px;color:var(--cw-muted);background:var(--cw-soft);border:1px solid transparent;box-shadow:none}
body.wzrd-overview #portal-app .cw-account-appearance button[aria-pressed=true]{background:var(--cw-tint);color:var(--cw-purple);border-color:var(--cw-purple)}
body.wzrd-overview .cw-account-appearance button span{display:inline}
body.wzrd-overview .cw-account :is(summary,button):focus-visible{outline:2px solid var(--cw-purple);outline-offset:-2px}
.cw-account-details{margin-top:16px;display:flex;gap:12px;flex-wrap:wrap;align-items:center}.cw-account-details h2{width:100%;margin:0}

/* One clear daily finish line for dated to-dos. */
.cw-todo-progress{display:grid;gap:7px;margin:0 0 10px;flex:none}
.cw-todo-progress-label{font-size:12px;font-weight:600;color:var(--cw-ink)}
.cw-todo-bar{height:7px;border-radius:999px;overflow:hidden;background:var(--cw-soft)}
.cw-todo-fill{display:block;width:0;height:100%;border-radius:inherit;background:var(--cw-purple);transition:width .35s ease,background-color .25s ease}
.cw-todo-celebration{margin:0;font-size:12px;font-weight:600;color:var(--cw-purple)}
.cw-todo-celebration[hidden]{display:none}
.cw-todo-celebration::before{content:'✓';margin-right:6px}
.cw-todo-progress.is-advancing .cw-todo-bar{animation:cw-todo-pulse .45s ease}
.cw-todo-progress.is-celebrating .cw-todo-celebration{animation:cw-todo-cheer .65s ease}
.cw-todo-progress.is-celebrating .cw-todo-bar{animation:cw-todo-pulse .6s ease 2}
@keyframes cw-todo-pulse{50%{box-shadow:0 0 0 4px var(--cw-tint)}}
@keyframes cw-todo-cheer{0%{opacity:0;transform:translateY(4px)}60%{transform:translateY(-2px)}100%{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.cw-todo-fill{transition:none}.cw-todo-progress.is-advancing .cw-todo-bar,.cw-todo-progress.is-celebrating .cw-todo-bar,.cw-todo-progress.is-celebrating .cw-todo-celebration{animation:none}}

/* The full task page shares the overview's rows, editors and daily progress. */
body.wzrd-overview[data-cw-view=todos] .greeting{display:none!important}
#todos{max-width:1040px;margin:10px auto 36px;width:100%;min-width:0}
#todos.visible{display:block}
.cw-todo-page-heading{margin:0 0 22px}
.cw-todo-page-heading h1{font-family:inherit!important;font-size:28px!important;font-weight:650;line-height:1.2;letter-spacing:-.8px;margin:0 0 8px}
.cw-todo-page-heading p{font-size:13px;color:var(--cw-muted);margin:0}
.cw-todo-sheet{background:var(--cw-panel);border:1px solid var(--cw-line);border-radius:16px;padding:24px;box-shadow:0 8px 30px #17243a05}
.cw-todo-page-top .cw-todo-progress{max-width:100%;margin-bottom:14px}
.cw-todo-page-top .cw-todo-progress-label{font-size:13px}
.cw-todo-page-top .cw-todo-summary{margin:0 0 14px}
body.wzrd-overview #portal-app #todos .cw-completed-toggle{font-size:12px;min-height:32px}
#todos .cw-add-form{margin:0;flex:none}
.cw-todo-compose{padding:12px 14px;background:var(--cw-soft);border-radius:10px;margin-bottom:20px}
.cw-todo-compose .sync-note:empty{display:none}
.cw-todo-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.cw-todo-tools>input{flex:1;width:0;min-width:160px}
.cw-todo-tools>select,.cw-todo-tools label select{width:auto}.cw-todo-tools label{white-space:nowrap;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--cw-muted)}
.cw-todo-tools :is(input,select){background:var(--cw-panel);border:1px solid var(--cw-line);border-radius:8px;color:var(--cw-ink);font:inherit;font-size:13px;padding:9px 11px;min-height:38px}
#todos .cw-task-list{overflow:visible;padding:0;min-height:160px}
body.wzrd-overview #portal-app #todos .cw-task{font-size:14px;min-height:36px;padding:4px 0;border:0}
#todos .cw-task-copy{min-width:0}#todos .cw-task-title{white-space:normal;overflow-wrap:anywhere}
#todos .cw-task-due{font-size:11px}#todos .cw-task-tag{font-size:11px}
.cw-todo-empty{color:var(--cw-muted);font-size:13px;text-align:center;padding:42px 12px}
@media(max-width:600px){.cw-todo-sheet{padding:16px 12px}.cw-todo-page-heading{margin-bottom:18px}.cw-todo-tools>input{flex-basis:100%;font-size:16px}.cw-todo-tools select{font-size:16px;max-width:160px}.cw-todo-tools{gap:8px}.cw-todo-compose{padding:10px}.cw-todo-tools label{margin-left:auto;font-size:11px}body.wzrd-overview #portal-app #todos .cw-task{font-size:13px}.cw-todo-page-heading h1{font-size:25px!important}}

/* Full Habit Tracker, sharing the dashboard's recorded weekly progress. */
body.wzrd-overview[data-cw-view=habit-tracker] .greeting{display:none!important}
#habit-tracker{max-width:1040px;width:100%;margin:10px auto 36px;min-width:0}
#habit-tracker.visible{display:block}
.ht-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.ht-heading h1{font-family:inherit!important;font-size:28px!important;font-weight:650;line-height:1.2;letter-spacing:-.8px;margin:0 0 8px}
.ht-heading p{font-size:13px;color:var(--cw-muted);margin:0}
.ht-heading>button{flex:none}
.ht-week{padding:22px 24px;margin-bottom:18px;background:var(--cw-panel);border-radius:16px}
.ht-week .cw-habit-week-top strong{font-size:28px}.ht-week .cw-habit-week-top small{font-size:12px}.ht-week .cw-habit-status{font-size:11px}
.ht-week .cw-habit-days{margin-top:22px}.ht-week .cw-habit-day>small{font-size:11px}.ht-week .cw-habit-ring{width:34px;height:34px;font-size:12px}.ht-week .cw-habit-note{font-size:12px;margin-top:14px}
.ht-sheet{padding:20px 24px;background:var(--cw-panel);border:1px solid var(--cw-line);border-radius:16px}
.ht-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ht-tabs{display:flex;gap:4px;background:var(--cw-soft);padding:4px;border-radius:9px}
body.wzrd-overview #portal-app .ht-tabs button{font-size:13px;padding:7px 12px;min-height:34px;border-radius:6px;color:var(--cw-muted)}
body.wzrd-overview #portal-app .ht-tabs button[aria-pressed=true]{color:var(--cw-purple);background:var(--cw-tint)}
.ht-toolbar>input{width:240px;max-width:100%;font-size:13px;border:1px solid var(--cw-line);background:var(--cw-panel);color:var(--cw-ink);border-radius:8px;padding:10px 12px}
.ht-count{font-size:12px;color:var(--cw-muted);margin:18px 0 8px}
.ht-row{display:flex;gap:10px;align-items:center;min-height:46px;padding:5px 0}
.ht-row>input{flex:none;width:16px;height:16px;accent-color:var(--cw-purple);cursor:pointer}.ht-row>input:disabled{cursor:default}
.ht-row-copy{min-width:0;flex:1;display:grid;gap:2px}.ht-name{font-size:14px;overflow-wrap:anywhere}.ht-row-copy small{font-size:11px;color:var(--cw-muted);overflow-wrap:anywhere}.ht-row.is-done .ht-name{color:var(--cw-muted)}
body.wzrd-overview #portal-app .ht-row>button{font-size:12px;padding:6px 9px;min-height:32px;flex:none}
.ht-empty{padding:30px 12px;text-align:center;color:var(--cw-muted);font-size:13px}
.ht-status,.ht-note{font-size:12px;line-height:1.5;color:var(--cw-muted)}.ht-status:empty{display:none}
.ht-legacy{margin-top:18px!important;padding:20px 24px!important}.ht-legacy .habit-row{flex-wrap:wrap}.ht-legacy .habit-row>.task{min-width:180px;flex:1}
.ht-dialog{width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:1px solid var(--cw-line);border-radius:16px;background:var(--cw-panel);color:var(--cw-ink)}
.ht-dialog::backdrop{background:#13172270;backdrop-filter:blur(3px)}.ht-dialog h2{font-size:21px;margin:0 0 20px}.ht-dialog form{display:grid;gap:15px}
.ht-dialog label{display:grid;gap:6px;font-size:13px}.ht-dialog :is(input,select){width:100%;min-height:40px;padding:9px 10px;font:inherit;border:1px solid var(--cw-line);border-radius:8px;background:var(--cw-panel);color:var(--cw-ink)}
.ht-editor-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ht-editor-actions{display:flex;flex-wrap:wrap;gap:8px}.ht-editor-actions [data-remove]{margin-left:auto;color:#b42318}html[data-theme=dark] .ht-editor-actions [data-remove]{color:#ff9b93}
@media(max-width:600px){.ht-heading{gap:8px}.ht-heading h1{font-size:25px!important}.ht-heading p{font-size:12px}.ht-heading>button{padding:8px 12px!important}.ht-week,.ht-sheet{padding:18px 14px}.ht-week .cw-habit-week-top{gap:12px}.ht-week .cw-habit-status{white-space:normal;text-align:center}.ht-week .cw-habit-week-top strong{font-size:24px}.ht-week .cw-habit-week-top small{font-size:10px}.ht-week .cw-habit-ring{width:27px;height:27px}.ht-toolbar{gap:12px}.ht-toolbar>input{width:100%;font-size:16px}.ht-dialog{padding:20px 16px}.ht-dialog :is(input,select){font-size:16px}.ht-editor-pair{grid-template-columns:1fr}.ht-legacy{padding:18px 14px!important}}

/* A year of habit history alongside the day-to-day list. */
#habit-tracker:has(.hi-columns){max-width:1440px}
.hi-columns{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(410px,1fr);gap:24px;align-items:start}
.hi-main,.hi-panel{min-width:0}.hi-panel{background:var(--cw-panel);border:1px solid var(--cw-line);border-radius:16px;padding:22px}
.hi-top h2{font-family:inherit!important;font-size:20px!important;margin:0 0 6px}.hi-top>p{font-size:12px;color:var(--cw-muted);margin:0 0 18px}
.hi-top label{display:flex;align-items:center;gap:12px;color:var(--cw-muted);font-size:12px}.hi-top select{min-width:0;flex:1;width:auto;border:1px solid var(--cw-line);border-radius:8px;background:var(--cw-panel);color:var(--cw-ink);font:inherit;padding:9px}
.hi-calendar-head{display:flex;justify-content:space-between;align-items:center;margin-top:22px}.hi-calendar-head h3{font-size:14px;margin:0}
body.wzrd-overview #portal-app .hi-calendar-head button{font-size:24px;min-width:32px;min-height:32px;padding:0 8px}
.hi-note,.hi-method{font-size:11px;line-height:1.5;color:var(--cw-muted)}.hi-method{margin:16px 0 0}
.hi-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 14px;margin:16px 0}.hi-month h4{font-size:10px;font-weight:600;margin:0 0 6px;color:var(--cw-ink)}
.hi-month-grid{max-width:126px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.hi-month-grid>small{font-size:8px;color:var(--cw-muted);text-align:center}
body.wzrd-overview #portal-app button.hi-day{width:100%;aspect-ratio:1;min-width:0;min-height:0;height:auto;padding:0;border:1px solid transparent;border-radius:3px;cursor:pointer;opacity:1;box-shadow:none}
.hi-level-0{background:#eeeafa!important}.hi-level-1{background:#d9cff7!important}.hi-level-2{background:#b29ce9!important}.hi-level-3{background:#896aca!important}.hi-level-4{background:#6345a1!important}
.hi-day.is-partial,.hi-swatch.is-partial{background:repeating-linear-gradient(135deg,var(--cw-panel),var(--cw-panel) 2px,var(--cw-tint) 2px,var(--cw-tint) 4px)!important;border:1px dashed var(--cw-purple)!important}
.hi-day.is-unrecorded,.hi-swatch.is-unrecorded{background:var(--cw-panel)!important;border:1px dashed var(--cw-line)!important}
.hi-day.is-unscheduled,.hi-swatch.is-unscheduled{background:var(--cw-soft)!important;border:1px solid var(--cw-line)!important}
body.wzrd-overview #portal-app .hi-day.is-future{background:var(--cw-soft);opacity:.3;cursor:default}.hi-day.is-loading{background:var(--cw-soft)!important;opacity:.5!important}
body.wzrd-overview #portal-app .hi-day[aria-pressed=true]{outline:2px solid var(--cw-ink);outline-offset:1px}.hi-day:focus-visible{outline:2px solid var(--cw-purple)!important;outline-offset:2px!important}
.hi-legend{display:flex;gap:8px 12px;flex-wrap:wrap;margin:14px 0;font-size:9px;color:var(--cw-muted)}.hi-legend>span{display:flex;align-items:center;gap:4px}.hi-swatch{display:inline-block;width:10px;height:10px;box-sizing:border-box;border-radius:2px}
.hi-day-detail{padding:12px;background:var(--cw-soft);border-radius:9px;margin:16px 0}.hi-day-detail>strong{font-size:12px}.hi-day-detail>p{font-size:11px;color:var(--cw-muted);margin:5px 0}.hi-day-detail ul{max-height:180px;overflow:auto;list-style:none;padding:0;margin:10px 0 0}.hi-day-detail li{display:flex;justify-content:space-between;gap:10px;font-size:11px;padding:4px 0}.hi-day-detail li>span{overflow-wrap:anywhere;min-width:0}.hi-day-detail li small{white-space:nowrap;color:var(--cw-muted)}
.hi-insight-cards{display:grid;gap:10px;margin-top:18px}.hi-insight-cards article{border:1px solid var(--cw-line);border-radius:10px;padding:14px}.hi-insight-cards h3{font-size:11px;color:var(--cw-purple);margin:0 0 6px}.hi-insight-cards p{font-size:13px;line-height:1.5;margin:0}.hi-insight-cards small{display:block;color:var(--cw-muted);font-size:10px;line-height:1.5;margin-top:7px}
@media(min-width:1000px) and (max-width:1200px){.hi-columns{gap:16px;grid-template-columns:minmax(0,1fr) minmax(380px,1fr)}.hi-panel{padding:18px}}
@media(max-width:999px){.hi-columns{grid-template-columns:1fr}.hi-panel{padding:20px}.hi-months{gap:18px 24px}.hi-month-grid{gap:5px}}
@media(max-width:520px){.hi-panel{padding:16px 12px}.hi-months{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hi-top label{align-items:flex-start;flex-direction:column;gap:6px}.hi-top select{width:100%;font-size:16px}.hi-month-grid{gap:3px}}

#todos:has(.cw-todo-columns){max-width:1440px}
.cw-todo-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:24px;align-items:start}
.cw-todo-columns>*{min-width:0}.cw-todo-insights{background:var(--cw-panel);border:1px solid var(--cw-line);border-radius:16px;padding:24px}
.cw-todo-insights h2{font-family:inherit;font-size:20px;font-weight:650;line-height:1.3;margin:0 0 6px}.cw-insights-subtitle,.cw-insights-note{font-size:12px;color:var(--cw-muted);line-height:1.5}.cw-insights-subtitle{margin:0 0 22px}.cw-insights-note{margin:14px 0 0;font-size:11px}
.cw-insights-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.cw-insights-stats strong{display:block;font-size:26px;color:var(--cw-ink)}.cw-insights-stats span{font-size:11px;color:var(--cw-muted)}
.cw-insights-chart{margin:24px 0}.cw-todo-insights h3{font-size:12px;margin:0 0 12px;color:var(--cw-purple)}
.cw-insights-bars{display:grid;grid-template-columns:repeat(7,1fr);gap:9px;text-align:center}.cw-insights-bars strong,.cw-insights-bars small{font-size:10px;color:var(--cw-muted)}.cw-insights-track{height:90px;display:flex;align-items:flex-end;background:var(--cw-soft);border-radius:5px;margin:7px 0}.cw-insights-track i{width:100%;background:var(--cw-purple);border-radius:5px;min-height:0}
.cw-insights-tip{border:1px solid var(--cw-line);padding:14px;border-radius:10px;margin-top:10px}.cw-insights-tip h3{margin-bottom:6px}.cw-insights-tip p{font-size:13px;line-height:1.5;margin:0;overflow-wrap:anywhere}.cw-insights-tip small{display:block;margin-top:8px;color:var(--cw-muted);font-size:11px}
@media(max-width:999px){.cw-todo-columns{grid-template-columns:1fr}}@media(max-width:520px){.cw-todo-insights{padding:18px 14px}}

body.wzrd-overview[data-cw-view=journal] .greeting{display:none!important}
#journal{max-width:1200px;margin:10px auto 36px;width:100%;min-width:0}
#journal.visible{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}
#journal .journal-editor,#journal .journal-goal{min-width:0;background:var(--cw-panel);border:1px solid var(--cw-line);border-radius:16px;padding:24px}
#journal h2{font-family:inherit!important;font-size:20px!important;font-weight:650;margin:0 0 16px}
#journal .journal-toolbar{justify-content:space-between;margin:0 0 20px;gap:12px;flex-wrap:wrap}#journal .journal-toolbar label{font-size:12px;color:var(--cw-muted)}
#journal .journal-prompts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}#journal .journal-prompts>p{flex-basis:100%;margin:0}
body.wzrd-overview #portal-app #journal .journal-prompt-chip{background:var(--cw-tint);color:var(--cw-purple);border:0;border-radius:18px;padding:7px 12px;font-size:12px;min-height:32px}
#journal .journal-entry-label{display:block;font-size:12px;margin-bottom:8px;color:var(--cw-muted)}#journal #reflection{width:100%;box-sizing:border-box;min-height:280px;resize:vertical;font-family:inherit;font-size:15px;line-height:1.7;border:1px solid var(--cw-line);border-radius:10px;background:var(--cw-panel);color:var(--cw-ink);padding:16px}
#journal .journal-goal label{display:block;font-size:12px;margin:18px 0 8px;color:var(--cw-muted)}#journal .journal-goal select{width:100%;padding:10px;border-radius:8px;border:1px solid var(--cw-line);background:var(--cw-panel);color:var(--cw-ink);margin-bottom:14px}
@media(max-width:800px){#journal.visible{grid-template-columns:1fr}}@media(max-width:520px){#journal .journal-editor,#journal .journal-goal{padding:18px 14px}#journal #reflection,#journal input,#journal select{font-size:16px}}

/* Structured journal tags sit alongside free-form writing. */
.journal-tags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:8px 0 24px}
.journal-tag-group{min-width:0}.journal-tag-group>label{display:block;font-weight:600;font-size:13px;margin-bottom:8px}
.journal-tag-group select{width:100%;min-width:0;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:8px;padding:9px;font:inherit;font-size:13px}
.journal-tag-chips{display:flex;flex-wrap:wrap;gap:5px}.journal-tag-chip{border:0;border-radius:20px;background:var(--accent-soft,#efedf8);color:var(--accent,#62559e);padding:5px 10px;font-size:12px;overflow-wrap:anywhere;max-width:100%;text-align:left;margin-bottom:6px}
.journal-tag-group details{margin-top:8px;font-size:12px}.journal-tag-group summary{cursor:pointer;color:var(--muted)}
.journal-tag-add{display:flex;gap:5px;margin-top:8px}.journal-tag-add input{min-width:0;width:100%;font:inherit;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--text)}.journal-tag-add button{padding:7px 10px;font-size:12px}.journal-tag-group .sync-note:empty{display:none}
@media(max-width:600px){.journal-tags{grid-template-columns:1fr;gap:16px}.journal-tag-group select,.journal-tag-add input{font-size:16px}}
.journal-day-rating{margin:4px 0 24px}.journal-rating-label{font-size:13px;font-weight:600;margin-bottom:8px}.journal-rating-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.journal-rating-button{min-width:36px;min-height:36px;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit}.journal-rating-button[aria-pressed=true]{background:var(--accent,#62559e);color:white;border-color:var(--accent,#62559e)}.journal-day-rating .sync-note{margin:7px 0 0;font-size:12px}.journal-rating-clear{border:0;background:transparent;color:var(--muted);font-size:12px;padding:7px}.journal-new-category{margin:-8px 0 28px;font-size:13px}.journal-new-category summary{cursor:pointer;color:var(--accent,#62559e);width:max-content}.journal-new-category .journal-tag-add{max-width:330px}.journal-new-category .sync-note:empty{display:none}

/* One compact, aligned row per journal category. */
#journal .journal-tags{grid-template-columns:minmax(0,1fr);gap:14px;margin:8px 0 20px}
#journal .journal-tag-group{display:grid;grid-template-columns:90px minmax(0,280px) 150px 220px;align-items:center;gap:8px 12px}
#journal .journal-tag-group>label{grid-column:1;grid-row:1;margin:0;overflow-wrap:anywhere}
#journal .journal-tag-chips{grid-column:2;grid-row:1;min-width:0}
#journal .journal-tag-chip{margin:0}
#journal .journal-tag-group>select{grid-column:3;grid-row:1}
#journal .journal-tag-group>details{grid-column:4;grid-row:1;margin:0}
#journal .journal-tag-group>details{position:relative;min-width:0}
#journal .journal-tag-group>details[open] summary{position:absolute;right:0;top:8px;font-size:0;list-style:none}
#journal .journal-tag-group>details[open] summary::-webkit-details-marker{display:none}
#journal .journal-tag-group>details[open] summary::after{content:'×';font-size:20px;line-height:20px}
#journal .journal-tag-group>details[open] .journal-tag-add{margin:0 26px 0 0}
#journal .journal-tag-group>details:not([open]){justify-self:start}
#journal .journal-tag-group .journal-tag-add button{flex:none}
#journal .journal-tag-group>.sync-note{grid-column:2 / -1;margin:0}
#journal .journal-tag-add{max-width:350px}
#journal .journal-new-category{margin:0 0 24px}
@media(max-width:1100px){#journal .journal-tag-group{grid-template-columns:80px minmax(0,1fr) 130px 190px;gap:8px}}
@media(max-width:700px){#journal .journal-tags{gap:16px}#journal .journal-tag-group{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:8px}#journal .journal-tag-group>label{grid-column:1 / -1;grid-row:1}#journal .journal-tag-chips{grid-column:1 / -1;grid-row:3}#journal .journal-tag-group>select{grid-column:1;grid-row:2}#journal .journal-tag-group>details{grid-column:2;grid-row:2}#journal .journal-tag-group>.sync-note{grid-column:1 / -1}#journal .journal-tag-chips:empty{display:none}}


#journal .journal-tabs{grid-column:1 / -1;display:flex;gap:5px;border-bottom:1px solid var(--cw-line);padding-bottom:10px}
#journal .journal-tabs button{border:0;background:transparent;color:var(--cw-muted);padding:9px 16px;border-radius:8px;font:inherit;font-size:14px}
#journal .journal-tabs button[aria-selected=true]{background:var(--cw-tint);color:var(--cw-purple);font-weight:650}
#journal[data-journal-mode=entries]>.journal-editor,#journal[data-journal-mode=entries]>.journal-goal{display:none}
#journal .journal-archive{grid-column:1 / -1;min-width:0;background:var(--cw-panel);border:1px solid var(--cw-line);border-radius:16px;padding:24px}
#journal .journal-archive[hidden]{display:none}#journal .journal-archive-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}#journal .journal-archive h2{margin:0}#journal .journal-archive input{width:100%;box-sizing:border-box;font:inherit;font-size:15px;padding:12px;border:1px solid var(--cw-line);border-radius:8px;background:var(--cw-panel);color:var(--cw-ink)}
.journal-entry-list{display:grid;gap:14px;margin:20px 0}.journal-entry-card{border:1px solid var(--cw-line);border-radius:12px;padding:18px}.journal-entry-top{display:flex;gap:12px;align-items:center;flex-wrap:wrap}#journal .journal-entry-open{border:0;background:none;color:var(--cw-ink);font:inherit;font-weight:650;text-align:left;padding:0}.journal-entry-rating{margin-left:auto;font-size:13px;color:var(--cw-purple);background:var(--cw-tint);padding:5px 10px;border-radius:20px}.journal-entry-preview{line-height:1.6;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.journal-entry-tags{display:grid;gap:7px}.journal-entry-tag-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.journal-entry-tag-label{font-size:12px;color:var(--cw-muted);margin-right:5px}.journal-entry-tag{font-size:12px;background:var(--cw-tint);color:var(--cw-purple);border-radius:20px;padding:5px 10px;overflow-wrap:anywhere;max-width:100%}
@media(max-width:520px){#journal .journal-archive{padding:18px 14px}.journal-entry-card{padding:14px}#journal .journal-archive input{font-size:16px}}

#journal.visible{grid-template-columns:minmax(0,1fr)}
#journal .journal-editor>.cardhead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
#journal .journal-goal-compact{display:grid;grid-template-columns:auto 145px;align-items:center;gap:6px 8px;margin-left:auto;font-size:12px}
#journal .journal-goal-compact label{color:var(--cw-muted)}#journal .journal-goal-compact select{font:inherit;background:var(--cw-panel);color:var(--cw-ink);border:1px solid var(--cw-line);border-radius:8px;padding:7px;min-width:0;width:100%}
#journal .journal-goal-compact .sync-note{grid-column:1 / -1;margin:0;font-size:11px;max-width:240px}#journal .journal-goal-compact .sync-note:empty{display:none}
#journal .journal-tag-group[hidden]{display:none}.journal-category-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 24px;margin-bottom:24px}#journal .journal-category-actions>.journal-new-category{margin:0}.journal-manage-categories{font-size:13px}.journal-manage-categories>summary{cursor:pointer;color:var(--cw-muted)}.journal-manage-categories[open]{flex-basis:100%}.journal-manage-list{display:grid;gap:10px;margin-top:16px;max-width:540px}.journal-manage-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.journal-manage-row>span,.journal-manage-row>input{flex:1;min-width:100px}.journal-manage-row>input{font:inherit;padding:8px;border:1px solid var(--cw-line);border-radius:8px;background:var(--cw-panel);color:var(--cw-ink)}.journal-manage-row button{font-size:12px;padding:7px 10px}.journal-manage-row .sync-note{flex-basis:100%;margin:0}.journal-manage-row .sync-note:empty{display:none}
@media(max-width:520px){#journal .journal-goal-compact{grid-template-columns:auto minmax(0,145px)}#journal .journal-goal-compact select{font-size:14px}.journal-manage-row>input{font-size:16px}}

#journal [role=tabpanel][hidden]{display:none!important}
#journal .journal-insights{grid-column:1 / -1;background:var(--cw-panel);border:1px solid var(--cw-line);border-radius:16px;padding:24px;min-width:0}
#journal .journal-insights h2{margin:0}.journal-insight-controls{display:flex;align-items:center;gap:10px}.journal-insight-controls select{font:inherit;font-size:14px;padding:8px;border:1px solid var(--cw-line);border-radius:8px;background:var(--cw-panel);color:var(--cw-ink)}
.journal-insight-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.journal-insight-metrics>div{padding:20px;background:var(--cw-soft);border-radius:12px}.journal-insight-metrics strong{display:block;font-size:27px;font-weight:650}.journal-insight-metrics span{display:block;font-size:12px;color:var(--cw-muted);margin-top:8px}
.journal-insight-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.journal-insight-highlights p{margin:0;background:var(--cw-tint);color:var(--cw-ink);border-radius:12px;padding:18px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.journal-insight-months{margin:26px 0;padding:20px;border:1px solid var(--cw-line);border-radius:12px}.journal-insights h3{font-size:15px;margin:0 0 18px}.journal-month-bars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;text-align:center;font-size:11px;color:var(--cw-muted)}.journal-month-track{height:90px;background:var(--cw-soft);border-radius:5px;display:flex;align-items:flex-end;margin:7px 0}.journal-month-track i{width:100%;background:var(--cw-purple);border-radius:5px}
.journal-insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.journal-insight-ranking{border:1px solid var(--cw-line);border-radius:12px;padding:20px;min-width:0}.journal-insight-rank{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-bottom:16px;font-size:13px;overflow-wrap:anywhere}.journal-insight-rank>span:nth-child(2){color:var(--cw-muted);font-size:12px}.journal-insight-track{height:5px;border-radius:5px;background:var(--cw-soft);grid-column:1 / -1}.journal-insight-track i{display:block;height:100%;border-radius:5px;background:var(--cw-purple)}.journal-insights-empty{padding:25px 0;color:var(--cw-muted);line-height:1.7}
@media(max-width:800px){.journal-insight-grid,.journal-insight-highlights{grid-template-columns:1fr}.journal-insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-month-bars{gap:5px}}
@media(max-width:520px){#journal .journal-insights{padding:18px 14px}.journal-insights .journal-archive-head{align-items:flex-start;flex-direction:column}.journal-month-bars{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 8px}.journal-insight-metrics>div{padding:14px}.journal-insight-metrics strong{font-size:23px}}

/* Settings categories stay beside the active pane; all fields retain unsaved values. */
#settings>.card{max-width:1100px;margin:0 auto;padding:28px!important}
#settings>.card>p{color:var(--cw-muted);font-size:13px;max-width:700px;margin:8px 0 28px}
#settings .settings-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:32px;align-items:start}
#settings .settings-sidebar{display:flex;flex-direction:column;gap:5px;border-right:1px solid var(--cw-line);padding-right:20px}
#settings .settings-sidebar button{text-align:left;background:transparent;border:0;border-radius:9px;color:var(--cw-muted);padding:12px 14px;font-size:14px;line-height:1.4}
#settings .settings-sidebar button[aria-selected=true]{background:var(--cw-soft);color:var(--cw-accent);font-weight:650}
html[data-theme] #settings .settings-grid{display:block;min-height:270px}
#settings [role=tabpanel][hidden],#settings .settings-footer[hidden]{display:none}
#settings [role=tabpanel] h3{font-size:17px;margin:0 0 16px}
#settings [role=tabpanel]>section+section{margin-top:28px}
#settings [role=tabpanel] p{color:var(--cw-muted);font-size:13px;line-height:1.6}
#settings .settings-option{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:14px}
#settings #settings-panel-topics>label{display:grid;gap:8px;max-width:400px;margin-bottom:22px;font-size:14px}
#settings .settings-footer{border-top:1px solid var(--cw-line);padding-top:20px;margin-top:24px}
#settings .settings-footer .sync-note{margin-bottom:0}
@media(max-width:600px){#settings>.card{padding:18px!important}#settings .settings-layout{grid-template-columns:108px minmax(0,1fr);gap:16px}#settings .settings-sidebar{padding-right:10px}#settings .settings-sidebar button{padding:10px 7px;font-size:12px;overflow-wrap:anywhere}#settings [role=tabpanel] h3{font-size:15px}#settings .settings-layout form{min-width:0}#settings select{width:100%;min-width:0}}

#settings .settings-option{min-height:34px;margin:6px 0}
#settings>.card>p{margin-top:0}

/* Compact account menu: one readable action per row. */
body.wzrd-overview .cw-account[open]>.header-actions{width:248px;padding:7px;border-radius:13px;gap:2px}
body.wzrd-overview #portal-app .cw-account .header-actions>button{display:flex;align-items:center;gap:12px;min-height:44px;padding:11px 12px;font-size:14px}
.cw-account .header-actions>button>svg{width:18px;height:18px;flex:0 0 18px;color:var(--cw-muted)}
body.wzrd-overview .cw-account .cw-theme-source{display:none!important}
.cw-account-theme{order:0}.cw-account-settings{order:1}
body.wzrd-overview #portal-app .cw-account .header-actions>.cw-account-signout{order:2;border-top:1px solid var(--cw-line);border-radius:0;margin-top:6px;padding-top:15px}
.cw-account-signout::before{content:'↪';width:18px;flex:0 0 18px;font-size:21px;line-height:18px;color:var(--cw-muted)}
.cw-theme-indicator{margin-left:auto;width:28px;height:16px;border-radius:12px;background:var(--cw-line);position:relative;flex:none}
.cw-theme-indicator::after{content:'';position:absolute;width:12px;height:12px;border-radius:50%;background:var(--cw-panel);top:2px;left:2px}
.cw-account-theme[aria-checked=true] .cw-theme-indicator{background:var(--cw-purple)}
.cw-account-theme[aria-checked=true] .cw-theme-indicator::after{left:14px}

/* Private golf dashboard. Separate score scales retain the distinction between nines and 18s. */
.capture-card{margin:18px 0 24px;padding:22px;border:1px solid var(--cw-line);border-radius:16px;background:var(--cw-panel);min-width:0}.capture-card h2{font-size:21px;margin:0 0 10px}.capture-card form,.capture-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.capture-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}.capture-card label:has(textarea),.capture-details,.capture-summary,.capture-card [role=status]{grid-column:1/-1}.capture-card input,.capture-card textarea,.capture-card select{min-width:0;width:100%;max-width:100%;box-sizing:border-box}.capture-card textarea{resize:vertical;min-height:88px}.capture-summary{border-top:1px solid var(--cw-line);overflow-wrap:anywhere}.capture-summary:empty{display:none}.capture-summary pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.6}.capture-card button{white-space:normal;min-width:0;min-height:44px}.capture-audience{font-weight:600}.capture-card [role=status]{margin:0;overflow-wrap:anywhere}@media(max-width:600px){.capture-card{padding:16px}.capture-card form,.capture-details{grid-template-columns:minmax(0,1fr)}}
.golf-page{max-width:1200px;margin:auto}.golf-page>h1{font-size:30px;margin:10px 0}.golf-page>.card{margin:20px 0;min-width:0}.golf-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:20px 0}.golf-tools>input,.golf-tools>select{width:auto;min-width:0;max-width:100%}.golf-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.golf-metric{border:1px solid var(--cw-line);border-radius:12px;padding:18px;background:var(--cw-panel);min-width:0}.golf-metric strong{display:block;font-size:25px;overflow-wrap:anywhere}.golf-metric span{font-size:12px;color:var(--cw-muted)}.golf-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.golf-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}.golf-form label:has(textarea){grid-column:1/-1}.golf-form textarea{resize:vertical;min-height:80px}.golf-form input,.golf-form select,.golf-form textarea{max-width:100%;min-width:0}.golf-history-row,.golf-import-row{padding:18px 0;border-bottom:1px solid var(--cw-line);overflow-wrap:anywhere}.golf-history-row>.secondary{margin:10px 8px 0 0}.golf-source-cells{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:var(--cw-muted)}.golf-warning{color:var(--cw-purple);font-size:13px;line-height:1.6}.golf-import details{margin:16px 0}.golf-import summary{cursor:pointer}.golf-import>input{max-width:100%}.golf-audience{font-weight:600;font-size:13px}.golf-date-correction{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.golf-date-correction input{width:auto;min-width:0;max-width:100%}.golf-trend table{width:100%;font-size:13px;border-collapse:collapse;display:block;overflow-x:auto}.golf-trend th,.golf-trend td{padding:10px 18px 10px 0;border-bottom:1px solid var(--cw-line);text-align:left;white-space:nowrap}.golf-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.golf-chart{min-width:0}.golf-chart h3{font-size:14px}.golf-chart svg{width:100%;height:auto}.golf-chart text{fill:var(--cw-muted);font-size:12px}.golf-line{fill:none;stroke-width:2}.golf-front{stroke:#8979dc;fill:#8979dc}.golf-back{stroke:#489b89;fill:#489b89}.golf-unknown{stroke:#8795a8;fill:#8795a8}.golf-18{stroke:#5996d4;fill:#5996d4}.golf-line{fill:none}.cw-golf .cw-card-body{overflow-wrap:anywhere}.cw-golf .cw-card-body>strong{font-size:20px}.cw-golf .cw-card-body p{font-size:12px;color:var(--cw-muted)}
@media(max-width:720px){.golf-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.golf-charts,.golf-form{grid-template-columns:1fr}.golf-form label{grid-column:1!important}.golf-page>.card{padding:18px}.golf-metric{padding:14px}.golf-metric strong{font-size:21px}.golf-tools>input,.golf-tools>select{flex:1 1 140px;width:100%}}

/* A tighter workspace shell, with phone spacing independent of touch targets. */
body.wzrd-overview .portal-header .header-inner{gap:20px}
body.wzrd-overview #portal-app .cw-card{box-shadow:0 1px 3px #20243a04}
.cw-intro{margin-bottom:12px}
.cw-card-head{margin-bottom:10px}
.cw-card-head h2{line-height:1.35}
.cw-card-body,.cw-intro-actions,.cw-header-right{min-width:0}
.cw-bottom{flex-wrap:wrap;gap:6px 12px}
@media(min-width:801px){
  body.wzrd-overview .portal-header .header-inner{padding:10px max(24px,env(safe-area-inset-right)) 10px max(24px,env(safe-area-inset-left))!important;min-height:60px}
  body.wzrd-overview main{padding:14px max(24px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))!important}
  .cw-today-focus .cw-grid,.cw-today-focus .cw-grid.cw-layout-active{gap:12px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-card{padding:16px 18px}
}
@media(min-width:601px) and (max-width:800px){
  body.wzrd-overview .portal-header .header-inner{padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left))!important}
  body.wzrd-overview main{padding:14px max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))!important}
}
@media(max-width:600px){
  body.wzrd-overview .portal-header .header-inner{
    padding:6px max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left))!important;
    padding-top:max(6px,env(safe-area-inset-top))!important;
    gap:2px 10px;
  }
  body.wzrd-overview main{
    padding:10px max(12px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;
  }
  body.wzrd-overview .cw-brand{min-height:44px;gap:8px;letter-spacing:1.6px}
  .cw-brand-mark{width:28px;height:28px;flex-basis:28px}
  .cw-header-right{gap:6px}
  body.wzrd-overview .cw-account>summary{display:flex;align-items:center;min-height:44px;padding:6px 2px;font-size:12px}
  body.wzrd-overview .cw-account[open]>.header-actions{max-width:calc(100vw - 24px)}
  body.wzrd-overview .cw-nav{gap:2px;scroll-padding-inline:4px;overscroll-behavior-x:contain}
  body.wzrd-overview .cw-nav-item,.cw-more>summary{min-height:44px!important;font-size:12px!important;padding:10px!important}
  .cw-intro{align-items:center;gap:8px 12px;margin-bottom:10px}
  .cw-intro>div:first-child{flex-basis:170px}
  .cw-intro h1{font-size:22px!important;line-height:1.22;letter-spacing:-.65px}
  .cw-date{font-size:11px;line-height:1.5}
  .cw-intro-actions{gap:6px}
  .cw-today-focus .cw-grid,.cw-today-focus .cw-grid.cw-layout-active{gap:10px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-card{padding:12px 14px!important;min-height:164px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-todos{min-height:230px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-checklist{min-height:280px}
  .cw-today-focus .cw-card-head{margin-bottom:6px}
  .cw-today-focus .cw-card-head h2{font-size:14px!important}
  body.wzrd-overview #portal-app .cw-today-focus .cw-card-head>.cw-link{display:inline-flex;align-items:center;justify-content:flex-end;min-width:44px;min-height:44px;padding:0;font-size:12px}
  .cw-today-focus .cw-journal-copy{line-height:1.65}
  body.wzrd-overview #portal-app .cw-todos .cw-task{min-height:44px;padding:3px 0;font-size:13px;line-height:1.4;gap:6px}
  body.wzrd-overview #portal-app .cw-todos .cw-task>input[type=checkbox]{width:20px;height:20px}
  body.wzrd-overview #portal-app .cw-todos .cw-task-details{width:44px;height:44px;min-height:44px;padding:12px}
  body.wzrd-overview #portal-app .cw-todos .cw-task-due{height:44px;width:80px}
  .cw-todos .cw-task-due .todo-date-chip-copy{font-size:11px}
  body.wzrd-overview #portal-app .cw-add-form{gap:6px}
  body.wzrd-overview #portal-app .cw-add-form>input{font-size:16px!important;min-height:44px}
  body.wzrd-overview #portal-app .cw-add-form>button{min-width:44px;min-height:44px}
  .cw-add-form .todo-date-chip{width:90px;height:44px}
  body.wzrd-overview #portal-app .todo-date-chip>input{font-size:16px!important}
  body.wzrd-overview #portal-app .cw-layout-size select{font-size:16px;max-width:110px}
  body.wzrd-overview #portal-app #todos .cw-add-form{grid-template-columns:minmax(0,1fr) auto}
  #todos .cw-add-form>input{grid-column:1/-1}
  #todos .cw-add-form>.todo-date-chip{width:108px}
  .cw-todo-sheet,.ht-week,.ht-sheet,.hi-panel{border-radius:12px}
  .cw-todo-compose{margin-bottom:14px}
  .cw-todo-page-heading,.ht-heading{margin-bottom:14px}
  #journal.visible{gap:14px}
  #journal .journal-editor,#journal .journal-archive,#journal .journal-insights{padding:16px 14px;border-radius:12px}
  #journal .journal-tags{gap:12px;margin-bottom:16px}
  #journal .journal-goal-compact select{font-size:16px}
  #settings>.card{padding:16px 14px!important;border-radius:12px}
  #settings>.card>p{margin-bottom:16px;line-height:1.5}
  #settings .settings-layout{grid-template-columns:minmax(0,1fr);gap:18px}
  #settings .settings-sidebar{flex-direction:row;gap:4px;overflow-x:auto;overscroll-behavior-x:contain;border-right:0;border-bottom:1px solid var(--cw-line);padding:0 0 8px;max-width:100%}
  #settings .settings-sidebar button{flex:0 0 auto;min-height:44px;padding:9px 11px;font-size:12px;white-space:nowrap}
  #settings .settings-grid{min-height:0}
  #settings .settings-option{min-height:44px;margin:2px 0}
  #settings .settings-footer{padding-top:14px;margin-top:16px}
}

/* Daily app: calm surfaces, a clear reading order, and navigation within reach. */
body.wzrd-overview{--bg:#f3f4ef;--panel:#fffefa;--ink:#24372f;--muted:#65736b;--line:#dfe5dc;--accent:#355d49;--soft:#edf1e9;--field:#fffefa;--control-line:#d4ded2;--cw-bg:#f3f4ef;--cw-panel:#fffefa;--cw-ink:#24372f;--cw-muted:#65736b;--cw-line:#dfe5dc;--cw-soft:#edf1e9;--cw-purple:#355d49;--cw-tint:#e5eddf;--cw-button:#2f5543;--cw-accent:#355d49;color-scheme:light}
html[data-theme=dark] body.wzrd-overview{--bg:#18221e;--panel:#202e27;--ink:#edf3e9;--muted:#b0bfb3;--line:#3a4a3f;--accent:#bdd5b3;--soft:#2c3b31;--field:#202e27;--control-line:#4b5b50;--cw-bg:#18221e;--cw-panel:#202e27;--cw-ink:#edf3e9;--cw-muted:#b0bfb3;--cw-line:#3a4a3f;--cw-soft:#2c3b31;--cw-purple:#bdd5b3;--cw-tint:#334b38;--cw-button:#c3d9ba;--cw-accent:#bdd5b3;color-scheme:dark}
body.wzrd-overview .cw-brand{color:var(--cw-ink)!important;font-size:13px;letter-spacing:1.4px;gap:9px}
body.wzrd-overview .cw-nav-item{display:flex;align-items:center;gap:11px;font-size:13px;font-weight:550;line-height:1.4}
.cw-nav-item>svg{width:19px;height:19px;flex:none;stroke-width:1.7}
.cw-nav-item>span{min-width:0}
.cw-intro{margin:2px 0 18px;gap:16px}
.cw-intro h1{font-family:Georgia,'Times New Roman',serif!important;font-size:32px!important;font-weight:500!important;line-height:1.15;letter-spacing:-1.1px;margin-bottom:7px!important}
.cw-date{font-size:12px;line-height:1.5;color:var(--cw-muted)}
.cw-intro-actions .cw-secondary{border-radius:999px!important}
body.wzrd-overview #portal-app .cw-card{border-radius:18px!important;border-color:var(--cw-line)!important;box-shadow:none;padding:20px}
.cw-today-focus .cw-card-head{margin-bottom:12px}
.cw-today-focus .cw-card-head h2{font-size:16px!important;letter-spacing:-.3px;gap:9px}
.cw-card-head h2 svg{width:18px;height:18px;color:var(--cw-purple)}
body.wzrd-overview #portal-app .cw-card-head>.cw-link{font-size:12px;font-weight:600;color:var(--cw-purple);min-height:36px}
.cw-card-meta,.cw-routine-meta{font-size:12px}
.cw-today-focus .cw-grid,.cw-today-focus .cw-grid.cw-layout-active{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;grid-auto-rows:minmax(270px,auto);gap:16px;align-items:stretch}
body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-card{height:auto;min-height:270px;max-height:none;padding:18px 20px;grid-column:auto;grid-row:auto}
body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-journal{grid-column:1/-1;min-height:200px}
.cw-today-focus .cw-card-body,.cw-today-focus .cw-task-list{overflow:visible}
.cw-today-focus .cw-task-list{flex:initial}
body.wzrd-overview #portal-app .cw-todos .cw-task{font-size:14px;line-height:1.45;min-height:42px;padding:7px 0;gap:8px}
body.wzrd-overview #portal-app .cw-todos .cw-task>input[type=checkbox]{width:18px;height:18px}
.cw-todos .cw-task-copy{row-gap:4px}
body.wzrd-overview #portal-app .cw-todos .cw-task-due{background:var(--cw-soft);border-radius:7px;width:76px;min-height:28px}
.cw-todos .cw-task-due .todo-date-chip-copy{font-size:11px}
.cw-todo-progress{gap:7px;margin-bottom:10px}
.cw-todo-progress-label{font-size:12px;font-weight:500;color:var(--cw-muted)}
.cw-todo-bar{height:4px;background:var(--cw-soft)}
.cw-todo-fill{background:var(--cw-purple)}
.cw-todo-summary{margin-bottom:4px}
body.wzrd-overview #portal-app .cw-todos .cw-add-form{margin-top:12px!important;padding-top:12px;border-top:1px solid var(--cw-line)}
body.wzrd-overview #portal-app .cw-add-form>input{background:transparent!important;border-color:var(--cw-line)!important;border-radius:9px!important}
body.wzrd-overview #portal-app .cw-add-form>button{border-radius:9px!important;font-size:12px!important}
.cw-habit-week{border:0;background:var(--cw-soft);border-radius:12px;padding:12px;margin-bottom:12px}
.cw-habit-week-top strong{font-size:23px;font-weight:600}
.cw-habit-week-top small,.cw-habit-note{font-size:10px}
.cw-habit-day>small{font-size:10px}
.cw-habit-ring{width:28px;height:28px;font-size:10px}
.cw-today-focus .cw-checklist .cw-task{font-size:14px;min-height:40px;padding:8px 0}
.cw-today-focus .cw-checklist .cw-task>input{width:18px;height:18px}
.cw-week-day{border-radius:10px}
.cw-event{gap:14px;line-height:1.5}
.cw-today-focus .cw-event{font-size:14px;min-height:48px}
.cw-today-focus .cw-event time{font-size:11px}
.cw-today-focus .cw-person{min-height:58px;padding:10px 0!important}
.cw-person .cw-avatar{width:36px;height:36px;font-size:12px}
.cw-today-focus .cw-person strong{font-size:14px}
.cw-today-focus .cw-person small{font-size:11px}
.cw-today-focus .cw-journal-copy{font-family:Georgia,'Times New Roman',serif;font-size:19px;line-height:1.6;max-width:64ch;-webkit-line-clamp:3}
.cw-journal-meta{font-size:11px;margin-bottom:12px}
.cw-pill{font-size:10px;padding:4px 8px;border-radius:999px}
.cw-today-focus .cw-journal-actions{padding-top:12px}
.cw-empty{min-height:90px;padding:12px 0}
.cw-empty-symbol{font-size:22px}
.cw-empty strong{font-size:14px}
.cw-empty p{font-size:12px;max-width:32ch}
.cw-bottom{margin-top:16px;font-size:11px}
.lw-account-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--cw-tint);color:var(--cw-purple);font-size:12px;font-weight:650;flex:none}
body.wzrd-overview .cw-account>summary{display:flex;align-items:center;gap:10px;padding:6px;min-height:44px}
.lw-account-label{font-size:12px}
.lw-todo-filters{margin:0 0 14px;border-bottom:1px solid var(--cw-line);padding-bottom:8px}
.lw-todo-filters>summary{width:max-content;max-width:100%;min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--cw-muted);font-size:12px;list-style:none}
.lw-todo-filters>summary::-webkit-details-marker{display:none}
.lw-todo-filters>summary::before{content:'+';font-size:19px;font-weight:400;color:var(--cw-purple)}
.lw-todo-filters[open]>summary::before{content:'−'}
.lw-todo-filters .cw-todo-tools{margin:8px 0}

/* A quiet capture launcher opens the same retained, review-before-save form. */
body.wzrd-overview #portal-app #private-capture{padding:0!important;margin:0 0 18px;background:var(--cw-panel);border:1px solid var(--cw-line);border-radius:14px;box-shadow:none}
.capture-launcher{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 16px!important;cursor:pointer;list-style:none}
.capture-launcher::-webkit-details-marker{display:none}
.capture-launcher-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--cw-tint);color:var(--cw-purple);font-size:26px;font-weight:300;flex:none}
.capture-launcher-copy{display:grid;gap:3px;min-width:0}
.capture-launcher-copy strong{font-size:14px;font-weight:600;color:var(--cw-ink)}
.capture-launcher-copy>span{font-size:12px;color:var(--cw-muted)}
.capture-launcher::after{content:'⌄';margin-left:auto;color:var(--cw-muted);font-size:20px;line-height:1}
.capture-composer[open]>.capture-launcher::after{transform:rotate(180deg)}
.capture-composer>.capture-help{font-size:12px;line-height:1.6;color:var(--cw-muted);margin:0 16px 16px}
.capture-composer>form{margin:0 16px 16px;gap:12px}
.capture-card input,.capture-card textarea,.capture-card select{font:inherit;font-size:15px;padding:11px 12px;border:1px solid var(--cw-line);border-radius:10px;color:var(--cw-ink);background:var(--cw-panel)}
.capture-card button{border-radius:10px;min-height:44px}
.capture-summary{padding-top:10px;line-height:1.6}
.capture-card .capture-audience{font-size:13px}
.capture-card [role=status]{font-size:12px;line-height:1.6}
.capture-card :is(input,textarea,select,button){scroll-margin-block:100px}
.capture-card form>button:not([hidden]):has(+button[hidden]){scroll-margin-bottom:120px}

/* The phone menu is a real modal sheet, never a clipped child of a scrolling nav. */
.lw-mobile-nav{display:none}
body.wzrd-overview #portal-app .lw-more-sheet{position:fixed;inset:auto 8px 8px;margin:0 auto;width:calc(100% - 16px);max-width:520px;max-height:calc(100dvh - 72px - env(safe-area-inset-top));padding:20px 16px max(20px,env(safe-area-inset-bottom));border:1px solid var(--cw-line);border-radius:24px;background:var(--cw-panel);color:var(--cw-ink);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #0003}
.lw-more-sheet::backdrop{background:#10251b66;backdrop-filter:blur(5px)}
.lw-more-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.lw-more-head h2{font-family:Georgia,'Times New Roman',serif!important;font-size:25px!important;letter-spacing:-.6px;margin:0}
body.wzrd-overview #portal-app .lw-more-close{width:44px;height:44px;padding:0;font-size:27px;font-weight:300;border-radius:50%;background:var(--cw-soft);color:var(--cw-ink);border:0}
.lw-more-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.wzrd-overview #portal-app .lw-more-links .lw-destination{display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 12px;background:var(--cw-soft);color:var(--cw-ink);border:1px solid transparent;border-radius:12px;text-align:left;font-size:13px;line-height:1.3;white-space:normal}
.lw-destination>svg{width:21px;height:21px;flex:none}
.lw-more-links .lw-destination.active{border-color:var(--cw-purple)!important;background:var(--cw-tint)!important}
@media(min-width:1000px){
  body.wzrd-overview .demo-notice{margin-left:218px;width:calc(100% - 218px)}
  body.wzrd-overview .portal-header{position:fixed;inset:0 auto 0 0;width:218px;border-right:1px solid var(--cw-line);border-bottom:0;background:var(--cw-panel)!important;z-index:35}
  body.wzrd-overview .portal-header .header-inner{height:100dvh;min-height:0;display:flex!important;flex-direction:column;align-items:stretch;padding:24px 16px 18px!important;gap:28px;overflow:visible}
  body.wzrd-overview .cw-brand{justify-content:flex-start;padding:0 10px;min-height:44px}
  body.wzrd-overview .cw-nav{flex-direction:column;justify-content:flex-start;align-items:stretch;gap:6px;flex:1;overflow:visible}
  body.wzrd-overview .cw-nav-item,.cw-more>summary{min-height:44px;padding:11px 13px!important;border-radius:10px;font-size:13px!important;text-align:left}
  .cw-more>summary{color:var(--cw-muted);margin-top:5px}
  .cw-more .cw-menu-items{left:calc(100% + 8px);right:auto;top:0;max-height:60dvh;overflow-y:auto;min-width:190px}
  .cw-header-right{margin:0;border-top:1px solid var(--cw-line);padding-top:14px;display:block}
  .cw-account{width:100%}
  body.wzrd-overview .cw-account>summary{padding:4px 10px}
  body.wzrd-overview .cw-account[open]>.header-actions{left:calc(100% + 8px);right:auto;top:auto;bottom:0}
  body.wzrd-overview main{width:calc(100% - 218px);margin-left:218px!important;padding:30px 32px 28px!important;max-width:1540px!important}
  .cw-intro{margin-bottom:20px}
}
@media(min-width:701px) and (max-width:999px){
  body.wzrd-overview .portal-header .header-inner{flex-wrap:wrap;padding:10px 18px!important;gap:8px}
  .cw-header-right{margin-left:auto}
  body.wzrd-overview .cw-nav{position:relative;order:3;flex-basis:100%;flex-wrap:wrap;justify-content:flex-start!important;overflow:visible}
  .cw-more{position:static}
  .cw-more .cw-menu-items{left:auto;right:0;top:100%;max-width:calc(100vw - 36px);max-height:65dvh;overflow-y:auto}
  body.wzrd-overview .cw-nav-item{padding:8px 10px!important;font-size:12px!important;gap:7px}
  .cw-nav-item>svg{width:16px;height:16px}
  body.wzrd-overview main{padding:22px 20px!important}
}
@media(max-width:700px){
  body.wzrd-overview .portal-header{background:var(--cw-bg)!important;border:0}
  body.wzrd-overview .portal-header .header-inner{display:flex!important;flex-wrap:nowrap;justify-content:space-between;min-height:60px;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left))!important;gap:10px}
  body.wzrd-overview .cw-brand{font-size:12px!important;min-height:44px;letter-spacing:1.5px}
  .cw-brand-mark{width:29px;height:29px;flex-basis:29px}
  body.wzrd-overview .cw-nav{display:none!important}
  .cw-header-right{margin-left:auto}
  body.wzrd-overview .hh-scope{padding:2px;margin-left:auto;gap:0}
  body.wzrd-overview .hh-scope-choice{min-width:40px!important;min-height:44px!important;padding:6px 8px!important}
  body.wzrd-overview .cw-account>summary{width:44px;height:44px;justify-content:center;padding:0}
  .lw-account-label{display:none}
  .lw-account-avatar{width:34px;height:34px;font-size:13px}
  body.wzrd-overview main{padding:10px max(16px,env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))!important}
  .cw-intro{margin:0 0 16px;gap:8px;align-items:center;flex-wrap:nowrap}
  .cw-intro>div:first-child{flex-basis:auto}
  .cw-intro h1{font-size:28px!important;letter-spacing:-.9px;line-height:1.15;margin-bottom:6px!important}
  .cw-date{font-size:11px}
  .cw-intro-actions{margin-left:0}
  body.wzrd-overview #portal-app .cw-intro-actions .cw-secondary{min-height:44px;padding:8px 10px;font-size:11px;white-space:normal;max-width:72px;border:0;background:transparent;color:var(--cw-muted)}
  body.wzrd-overview #portal-app #private-capture{margin-bottom:14px;border-radius:14px}
  .capture-launcher{min-height:58px;padding:10px 12px!important;gap:10px}
  .capture-launcher-icon{width:32px;height:32px;font-size:24px}
  .capture-launcher-copy strong{font-size:14px}
  .capture-launcher-copy>span{font-size:11px}
  .capture-composer>form{margin:0 12px 14px;grid-template-columns:minmax(0,1fr)}
  .capture-composer>.capture-help{margin:0 12px 14px}
  .capture-card :is(input,textarea,select){font-size:16px}
  .cw-today-focus .cw-grid,.cw-today-focus .cw-grid.cw-layout-active{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;gap:14px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-card,body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-journal{padding:14px 16px!important;min-height:0;max-height:none;grid-column:auto}
  .cw-today-focus .cw-card-head{margin-bottom:8px}
  .cw-today-focus .cw-card-head h2{font-size:16px!important}
  body.wzrd-overview #portal-app .cw-todos .cw-task{font-size:14px;min-height:48px;padding:7px 0;gap:8px}
  body.wzrd-overview #portal-app .cw-todos .cw-task>input[type=checkbox]{width:20px;height:20px}
  body.wzrd-overview #portal-app .cw-todos .cw-task-details{width:44px;height:44px;min-height:44px;padding:12px;flex:none}
  body.wzrd-overview #portal-app .cw-todos .cw-task-due{width:67px;height:44px;min-height:44px;background:transparent}
  .cw-todos .cw-task-due .todo-date-chip-copy{font-size:10px;gap:3px}
  .cw-todos .cw-task-due .todo-date-symbol{display:none}
  body.wzrd-overview #portal-app .cw-todos .cw-task-details svg{width:18px;height:18px}
  .cw-today-focus .cw-task-list{padding:0}
  .cw-today-focus .cw-checklist .cw-task{min-height:46px;font-size:14px}
  .cw-today-focus .cw-journal-copy{font-size:18px;line-height:1.55;-webkit-line-clamp:4}
  .cw-today-focus .cw-person{min-height:56px}
  .cw-bottom{margin-top:14px}
  body.wzrd-overview #portal-app .lw-mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:50;padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-top:1px solid var(--cw-line);background:var(--cw-panel);gap:4px;box-shadow:0 -4px 20px #12251b06}
  body.wzrd-overview #portal-app .lw-mobile-nav .lw-destination{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:50px;padding:6px 4px;background:transparent;color:var(--cw-muted);border:0;border-radius:12px;font-size:10px;line-height:1.2;font-weight:550}
  body.wzrd-overview #portal-app .lw-mobile-nav .lw-destination.active{color:var(--cw-purple);background:var(--cw-tint)}
  .lw-mobile-nav .lw-destination>svg{width:22px;height:22px}
  .cw-todo-page-heading h1,.ht-heading h1{font-family:Georgia,'Times New Roman',serif!important;font-size:29px!important;font-weight:500!important}
  .cw-todo-sheet,.ht-sheet,.hi-panel,#journal .journal-editor,#journal .journal-archive,#journal .journal-insights{border-radius:16px}
  #todos,#habit-tracker{margin-top:0}
  .cw-todo-compose{padding:0;background:transparent}
  #journal .journal-tabs{gap:4px;overflow-x:auto}
  #journal .journal-tabs button{min-height:44px;white-space:nowrap;padding:9px 12px}
  #journal .journal-editor>.cardhead{gap:10px;margin-bottom:16px}
  #journal #reflection{font-size:16px;line-height:1.65;min-height:220px;padding:12px}
  body.wzrd-overview #portal-app dialog{scroll-padding-bottom:24px}
  body.wzrd-overview #portal-app .toast{bottom:calc(86px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){
  body.wzrd-overview main{padding-left:12px!important;padding-right:12px!important}
  .cw-intro h1{font-size:25px!important}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-card{padding-left:12px!important;padding-right:12px!important}
  .lw-more-links{gap:6px}
  body.wzrd-overview #portal-app .lw-more-links .lw-destination{padding:9px;font-size:12px;gap:8px}
}

/* Loading uses the existing logo and real status. No timers or artificial delay. */
body:has(#portal-gate:not([hidden]) #gate-signin[hidden]):not(:has(#gate-retry:not([hidden]))){background:#0d1e1b!important;background-image:radial-gradient(ellipse at 50% 15%,#234f4366,transparent 65%)!important;min-height:100dvh}
#portal-gate:has(#gate-signin[hidden]):not(:has(#gate-retry:not([hidden]))){position:relative;isolation:isolate;overflow:hidden;border:1px solid #4a806a55!important;background:linear-gradient(145deg,#17342e,#10251f)!important;color:#effbf3!important;border-radius:28px!important;padding:40px 32px!important;box-shadow:0 24px 100px #0004;width:calc(100% - 32px);max-width:520px;margin:max(40px,9vh) auto}
#portal-gate:has(#gate-signin[hidden]):not(:has(#gate-retry:not([hidden])))::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(#7de6ba06 1px,transparent 1px),linear-gradient(90deg,#7de6ba06 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(#000,transparent 80%)}
#portal-gate:has(#gate-signin[hidden]):not(:has(#gate-retry:not([hidden]))) .brand{display:flex;flex-direction:column;align-items:center;gap:22px;margin:0 0 30px;color:#b9e8ca}
#portal-gate:has(#gate-signin[hidden]):not(:has(#gate-retry:not([hidden]))) .brand .spark{width:76px!important;height:76px!important;flex-basis:76px!important;overflow:visible!important;animation:lw-logo-heartbeat 1.8s ease-in-out infinite;filter:drop-shadow(0 0 18px #78ddad55)}
#portal-gate:has(#gate-signin[hidden]):not(:has(#gate-retry:not([hidden]))) .brand .eyebrow{color:#a5d7bc!important;font:600 11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:4px}
#portal-gate:has(#gate-signin[hidden]):not(:has(#gate-retry:not([hidden]))) h1{text-align:center;color:#effbf3!important;font-size:29px!important;line-height:1.2;letter-spacing:-1px;margin:0 0 14px}
#portal-gate:has(#gate-signin[hidden]):not(:has(#gate-retry:not([hidden]))) #gate-status{position:relative;color:#b5d5c4!important;text-align:center;font-size:13px;line-height:1.6;padding-bottom:26px;margin-bottom:12px}
#portal-gate:has(#gate-signin[hidden]):not(:has(#gate-retry:not([hidden]))) #gate-status::after{content:'';position:absolute;bottom:0;left:calc(50% - 60px);width:120px;height:3px;border-radius:999px;background:linear-gradient(90deg,#7dd9ac00,#a6edc8,#7dd9ac00);background-size:200% 100%;animation:lw-loading-signal 1.8s linear infinite;opacity:.8}
#portal-gate:has(#gate-signin[hidden]):not(:has(#gate-retry:not([hidden]))) :is(.gate-preferences legend,.gate-privacy-note){color:#aac7b8!important}
#portal-gate:has(#gate-signin[hidden]):not(:has(#gate-retry:not([hidden]))) .gate-preferences{border-top:1px solid #6ba58b33;padding-top:18px}
@keyframes lw-logo-heartbeat{0%,42%,100%{transform:scale(1)}12%{transform:scale(1.07)}22%{transform:scale(1)}31%{transform:scale(1.045)}}
@keyframes lw-loading-signal{from{background-position:200% 0}to{background-position:-200% 0}}
@media(max-width:600px){#portal-gate:has(#gate-signin[hidden]):not(:has(#gate-retry:not([hidden]))){padding:32px 22px!important;margin-top:max(24px,env(safe-area-inset-top));border-radius:24px!important}#portal-gate:has(#gate-signin[hidden]) .brand .spark{width:68px!important;height:68px!important;flex-basis:68px!important}}
@media(prefers-reduced-motion:reduce){#portal-gate .brand .spark,#portal-gate #gate-status::after{animation:none!important;transform:none!important}}

/* iPhone correction: essential surfaces do not depend on :has() support or invalidation. */
body.wzrd-overview .lw-week-details{border-top:1px solid var(--cw-line,#dfe5dc);margin-top:10px}
body.wzrd-overview .lw-week-details>summary{display:flex;align-items:center;gap:8px;list-style:none;min-height:44px;color:var(--cw-muted,#65736b);font-size:12px;cursor:pointer}
.lw-week-details>summary::-webkit-details-marker{display:none}
.lw-week-details>summary::before{content:'+';font-size:18px;color:var(--cw-purple,#355d49)}
.lw-week-details[open]>summary::before{content:'−'}
.lw-week-details .cw-habit-week{margin-bottom:0}
@media(max-width:700px){
  body.wzrd-overview{overflow:hidden;background:var(--cw-bg,#f3f4ef)!important}
  body.wzrd-overview #portal-app.lw-phone-shell{height:var(--lw-shell-height,100vh);height:var(--lw-shell-height,100dvh);display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;overflow:hidden}
  body.wzrd-overview #portal-app.lw-phone-shell>.portal-header{grid-row:1;min-width:0;background:var(--cw-bg,#f3f4ef)!important}
  body.wzrd-overview #portal-app.lw-phone-shell>main{grid-row:2;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:4px 14px 18px!important;scroll-padding-block:12px 24px}
  body.wzrd-overview #portal-app.lw-phone-shell>.lw-mobile-nav{grid-row:3;position:relative;inset:auto;z-index:10;background:var(--cw-panel,#fffefa);border-top:1px solid var(--cw-line,#dfe5dc);box-shadow:none;padding:6px max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  body.wzrd-overview .portal-header .header-inner{min-height:58px;gap:8px;padding:6px 14px!important;padding-top:max(6px,env(safe-area-inset-top))!important}
  body.wzrd-overview .cw-brand{font-size:11px!important;letter-spacing:1.1px;gap:7px}
  body.wzrd-overview .cw-brand-mark{width:27px;height:27px;flex-basis:27px}
  body.wzrd-overview .hh-scope{background:var(--cw-soft,#edf1e9);border:1px solid var(--cw-line,#dfe5dc);border-radius:999px}
  body.wzrd-overview .hh-scope-choice{border-radius:999px;min-width:36px!important;padding-inline:6px!important}
  body.wzrd-overview .lw-account-avatar{background:var(--cw-tint,#e5eddf);color:var(--cw-purple,#355d49)}
  body.wzrd-overview #portal-app .lw-mobile-nav .lw-destination{min-height:48px}
  body.wzrd-overview .save-strip{margin:0 0 4px!important;gap:6px;align-items:center}
  body.wzrd-overview .save-strip .save-tools>summary{min-height:44px;padding:9px 0;font-size:10px}
  body.wzrd-overview .cw-intro{margin:0 0 12px;align-items:center}
  body.wzrd-overview .cw-intro h1{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:25px!important;font-weight:680!important;line-height:1.12;letter-spacing:-.85px;margin-bottom:5px!important}
  body.wzrd-overview .cw-date{font-size:11px;color:var(--cw-muted,#65736b)}
  body.wzrd-overview #portal-app .cw-intro-actions .cw-secondary{font-size:10px;max-width:62px;min-height:44px;padding:5px 6px;color:var(--cw-muted,#65736b)}
  body.wzrd-overview #portal-app #private-capture{margin-bottom:12px;background:var(--cw-tint,#e5eddf);border:1px solid var(--cw-line,#dfe5dc);border-radius:14px}
  body.wzrd-overview .capture-launcher{min-height:54px;padding:9px 12px!important}
  body.wzrd-overview .capture-launcher-icon{width:30px;height:30px;background:var(--cw-panel,#fffefa);color:var(--cw-purple,#355d49);border-radius:10px}
  body.wzrd-overview .capture-launcher-copy strong{font-size:13px;font-weight:650}
  body.wzrd-overview .capture-launcher-copy>span{font-size:10px;color:var(--cw-muted,#65736b)}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid{gap:12px}
  body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-card{padding:12px 14px!important;min-height:0;border:1px solid var(--cw-line,#dfe5dc);border-radius:16px!important;background:var(--cw-panel,#fffefa);box-shadow:0 2px 6px #1c352405}
  body.wzrd-overview .cw-card-head{margin-bottom:6px;min-height:36px}
  body.wzrd-overview .cw-card-head h2{font-size:15px!important;font-weight:650;gap:8px}
  body.wzrd-overview #portal-app .cw-card-head>.cw-link{font-size:11px;min-height:36px;color:var(--cw-purple,#355d49)}
  body.wzrd-overview .cw-card-meta,body.wzrd-overview .cw-routine-meta{font-size:11px;margin:0 0 4px;line-height:1.4;color:var(--cw-muted,#65736b)}
  body.wzrd-overview .cw-todo-progress{margin:0 0 6px;gap:4px}
  body.wzrd-overview .cw-todo-progress-label{font-size:11px}
  body.wzrd-overview .cw-todo-summary{margin:0 0 2px;min-height:0}
  body.wzrd-overview #portal-app .cw-todos .cw-task,body.wzrd-overview #portal-app .cw-checklist .cw-task{min-height:44px;padding:5px 0;font-size:13px;line-height:1.4;border-bottom:1px solid var(--cw-line,#dfe5dc)}
  body.wzrd-overview #portal-app .cw-todos .cw-task:last-child,body.wzrd-overview #portal-app .cw-checklist .cw-task:last-child{border-bottom:0}
  body.wzrd-overview #portal-app .cw-task>input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;accent-color:var(--cw-purple,#355d49)}
  body.wzrd-overview #portal-app .cw-todos .cw-add-form{margin-top:8px!important;padding-top:10px;gap:7px}
  body.wzrd-overview #portal-app .cw-add-form>input{background:var(--cw-soft,#edf1e9)!important;min-height:44px;border:1px solid var(--cw-line,#dfe5dc)!important;border-radius:9px!important;padding:9px 10px!important}
  body.wzrd-overview #portal-app .cw-add-form>button{min-height:44px;border-radius:9px;background:var(--cw-button,#2f5543);color:var(--cw-panel,#fffefa)}
  body.wzrd-overview .cw-checklist .cw-list-more{min-height:36px;padding:8px 0;font-size:11px}
  body.wzrd-overview .lw-week-details{margin-top:6px}
  body.wzrd-overview .lw-week-details>summary{font-size:11px;min-height:44px}
  body.wzrd-overview .cw-bottom{margin-top:12px;font-size:10px}
}
.cw-todo-quick-views{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 6px;min-width:0}
body.wzrd-overview #portal-app .cw-todo-quick-view{min-height:44px;max-width:100%;padding:8px 12px;border:1px solid var(--cw-line);border-radius:999px;background:var(--cw-panel);color:var(--cw-muted);font:inherit;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
body.wzrd-overview #portal-app .cw-todo-quick-view[aria-pressed=true]{background:var(--cw-ink);border-color:var(--cw-ink);color:var(--cw-panel)}
.cw-todo-view-status{font-size:12px;line-height:1.5;color:var(--cw-muted);margin:8px 0;overflow-wrap:anywhere}
.cw-todo-quick-view:focus-visible,.cw-todo-view-status:focus-visible,.cw-insights-tip .cw-link:focus-visible{outline:2px solid var(--cw-ink);outline-offset:3px}
body.wzrd-overview #portal-app .cw-insights-tip .cw-link{display:block;min-height:44px;max-width:100%;margin-top:6px;white-space:normal;text-align:left;overflow-wrap:anywhere}

/* Daily home: a small working list, with the complete overview on demand.
   This changes presentation only; saved card order/sizes remain in Edit layout. */
body.wzrd-overview #portal-app .cw-today-focus:not(.cw-home-expanded) .cw-grid>.cw-card:not(.cw-todos):not(.cw-checklist):not(.cw-calendar){display:none!important}
body.wzrd-overview #portal-app .cw-today-focus .cw-grid{grid-auto-rows:auto;align-items:start;gap:16px}
body.wzrd-overview #portal-app .cw-today-focus .cw-grid>.cw-card{min-height:0;box-shadow:none}
.cw-daily-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}
.cw-daily-links[hidden]{display:none}
body.wzrd-overview #portal-app .cw-daily-link{display:grid;grid-template-columns:20px minmax(0,1fr) 16px;gap:2px 10px;align-items:center;text-align:left;min-height:68px;padding:12px 14px;border:1px solid var(--cw-line);border-radius:12px;background:var(--cw-panel);color:var(--cw-ink);cursor:pointer}
.cw-daily-link>svg{width:18px;height:18px;grid-row:1/3;color:var(--cw-purple)}
.cw-daily-link>svg:last-child{grid-column:3}
.cw-daily-link>strong{font-size:14px;font-weight:600;grid-column:2}
.cw-daily-link>span{font-size:12px;color:var(--cw-muted);grid-column:2;overflow-wrap:anywhere}
body.wzrd-overview #portal-app .cw-overview-toggle{display:block;min-height:48px;margin:16px auto 0;padding:10px 20px;border:1px solid var(--cw-line);border-radius:999px;background:transparent;color:var(--cw-muted);font:inherit;font-size:13px;cursor:pointer}
body.wzrd-overview #portal-app .cw-overview-toggle[hidden]{display:none}
.cw-overview-toggle:focus-visible,.cw-daily-link:focus-visible{outline:2px solid var(--cw-purple);outline-offset:3px}
body.wzrd-overview #portal-app .cw-today-focus .cw-todo-progress{margin-bottom:10px}
body.wzrd-overview #portal-app .cw-today-focus .cw-task-tags{display:none}
body.wzrd-overview #portal-app .cw-today-focus .cw-task-marks{display:none}
body.wzrd-overview #portal-app .cw-today-focus .cw-task{min-height:48px}
@media(max-width:700px){
 .cw-daily-links{gap:8px;margin-bottom:14px}
 body.wzrd-overview #portal-app .cw-daily-link{grid-template-columns:minmax(0,1fr);min-height:66px;padding:10px 12px;gap:4px}
 .cw-daily-link>svg{display:none}
 .cw-daily-link>strong,.cw-daily-link>span{grid-column:1}
 .cw-daily-link>span{font-size:11px}
 body.wzrd-overview #portal-app .cw-today-focus .cw-grid{gap:14px}
 body.wzrd-overview #portal-app .cw-today-focus .cw-card-head h2{font-size:16px!important}
 body.wzrd-overview #portal-app .cw-today-focus .cw-task{font-size:14px;min-height:48px}
}

.cw-calendar-freshness{font-size:12px;line-height:1.5;color:var(--cw-muted);overflow-wrap:anywhere}
.cw-calendar .cw-event time{min-width:90px;white-space:normal}
.cw-calendar .cw-event span{min-width:0;overflow-wrap:anywhere}

body.wzrd-overview #portal-app .cw-calendar-step[data-calendar-focus=next7]{font-size:12px;min-height:36px;white-space:normal}
.cw-calendar-controls{flex-wrap:wrap}

/* Saved Gmail context stays outside the collapsible dashboard card grid. */
.lw-home-email{margin-top:18px;min-width:0}
.lw-home-email h2{font-size:18px}
.lw-email-list{list-style:none;padding:0;margin:12px 0}
.lw-email-list li{padding:12px 0;border-bottom:1px solid #dce2df;overflow-wrap:anywhere}
.lw-email-list li p{font-size:12px;line-height:1.5;margin:5px 0}
.lw-email-list li a,.lw-email-list li button{display:inline-flex;align-items:center;min-height:44px;margin-right:12px;max-width:100%;white-space:normal}

/* Local-only source-status prototype: metadata only, no provider content. */
.lw-home-sync-status{margin-top:18px;min-width:0}
.lw-home-sync-status h2{font-size:18px}
.lw-home-sync-status p,.cw-calendar-timezone{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.lw-home-sync-status button{min-height:44px;max-width:100%;white-space:normal}

/* Compact Today queue navigation; no new persistence. */
.cw-home-task-links{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.cw-home-task-links button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.cw-home-task-links[hidden]{display:none}
