/* Daily use stays simple; scheduling and changes live behind Edit. */
.edit-list{border:1px solid var(--line);border-radius:99px!important;padding:9px 13px!important;font-size:12px!important;color:var(--accent)!important;min-height:40px}
.list-editor{padding:12px;margin:12px 0;background:var(--c-eef1e8);border-radius:12px}.schedule-control label{display:flex;flex-direction:column;gap:7px;font-size:12px}.schedule-control select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:9px;background:var(--paper);font-size:13px}.schedule-days{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.schedule-days button{min-height:42px;min-width:38px;padding:8px;font-size:11px;background:var(--paper);border:1px solid var(--line)}.schedule-days button[aria-pressed=true]{background:var(--accent);color:white;border-color:var(--accent)}.schedule-note{font-size:11px;line-height:1.6;margin:10px 0;color:var(--c-7c8873)}.editor-actions,.task-actions{display:flex;justify-content:flex-end;gap:5px}.editor-actions button,.task-actions button{font-size:11px;min-height:40px}.danger{color:#a24b3c}.task-editor{background:var(--c-eef1e8);border-radius:10px;padding:10px;margin:3px 0 10px}.task-editor label{font-size:0}.task-actions{margin-top:5px}.task.not-due{opacity:.55}.task-schedule-label{font-size:10px;color:var(--c-7c8873);margin:0 0 7px 33px}.task input[type=checkbox]{box-shadow:0 0 0 8px transparent}.task{min-height:52px}.task .text{font-size:14px}.task .text[readonly],.list-title[readonly]{cursor:default}.is-editing .text,.is-editing .list-title{border-bottom:1px dashed var(--c-87917f)}.daily-help{font-size:11px;margin:12px 0 18px;color:var(--c-7c8873)}.daily-help summary{cursor:pointer;min-height:32px;display:flex;align-items:center;gap:6px}.daily-help summary:before{content:'ⓘ'}.daily-help p{line-height:1.7;max-width:650px;margin:4px 0 12px}.add-task{min-height:48px}.add-task input{font-size:14px}.add-task button{min-width:48px;min-height:40px;font-size:12px}.card-meta{line-height:1.6;gap:10px}.card-meta>span{overflow-wrap:anywhere}
@media(max-width:600px){
 aside{padding:15px 16px 10px!important;display:flex!important;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}aside .brand{font-size:17px;max-width:calc(100% - 100px)}aside>.primary{position:static!important;margin:0 0 0 auto!important;float:none;min-height:44px;font-size:11px!important}aside .overview{margin:4px 0 0!important;min-height:44px;font-size:12px}aside .settings-nav{margin:4px 0 0 auto!important;min-height:44px;font-size:12px}aside nav{order:5;width:100%;margin:0!important;display:flex}aside nav button{min-height:44px;font-size:12px!important}aside .aside-bottom{display:none}main{padding:14px 16px 28px!important}header>span{display:none}.storage-notice{font-size:10px!important}.intro{padding-top:15px!important}.intro .appearance-button{min-height:44px;font-size:11px}#signedOutControls button,#signedInControls button{min-height:44px;font-size:12px}.day{min-height:64px}.day .weekday{font-size:10px!important}.week-row{gap:2px}.week-arrow{min-width:28px;min-height:44px;padding:5px!important}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-label{font-size:12px!important}.metric-edit{min-width:44px;min-height:44px}.metric-value input{font-size:29px!important}.metric-target strong{font-size:11px!important}.metric-foot{font-size:10px!important}#toggleSnapshot{font-size:16px!important;min-height:44px}.snapshot-actions>button{min-height:44px;font-size:11px}.daily-heading h2{font-size:25px}.daily-summary>span{font-size:11px!important}.filters button{min-height:44px;font-size:12px}.card{padding:17px!important}.task{min-height:56px;gap:13px!important}.task input[type=checkbox]{width:26px!important;height:26px!important;flex-basis:26px!important}.task .text{font-size:16px!important;min-height:44px}.list-title{font-size:22px!important}.card-meta{font-size:11px!important}.add-task input{font-size:16px!important}.add-task button{font-size:13px!important}.add-checklist{min-height:48px;font-size:13px!important}.schedule-control select{font-size:16px}.schedule-days button{min-height:44px;flex:1;min-width:30px;padding:7px 3px}.daily-help{margin-top:10px}.daily-help summary{min-height:44px}dialog{max-height:calc(100dvh - 28px);overflow:auto}dialog input,dialog select{font-size:16px!important}#settingsDialog{padding:20px}.palette-choice{min-height:44px}.settings-buttons button{min-height:44px}#profileName{font-size:16px!important;max-width:145px;width:140px!important}.profile{font-size:12px!important}
}
.task span.text{display:flex;align-items:center;overflow-wrap:anywhere;line-height:1.55}
@media(max-width:600px){aside .brand{flex:1;max-width:calc(100% - 118px)}aside .overview{order:3;width:calc(50% - 4px)}aside .settings-nav{order:4;width:calc(50% - 4px);text-align:right}aside nav{order:5}}
.checklist-dates>strong{font-size:13px}.date-chips{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.date-chip{display:inline-flex;align-items:center;gap:5px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:4px 10px;font-size:13px;min-height:44px}.date-chip button{font-size:20px;min-width:36px;min-height:36px;padding:4px}.add-date{display:flex;align-items:flex-end;gap:8px;margin:12px 0}.add-date label{font-size:12px;flex:1;min-width:0}.add-date input{display:block;margin-top:6px;width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:14px}.add-date button{min-height:44px;white-space:nowrap;font-size:12px}.empty-day{grid-column:1/-1;text-align:center;padding:30px 16px;border:1px dashed var(--line);border-radius:18px}.empty-day h3{margin:0 0 8px;font-size:20px}.empty-day p{font-size:13px;color:var(--c-7c8873)}@media(max-width:600px){.add-date input{font-size:16px}}
/* Sketch-inspired checklist composer. */
#checklistDialog{max-width:590px;width:calc(100% - 28px);padding:28px;border-radius:26px;max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 28px 120px #172b2450}#checklistDialog::backdrop{background:#20382e66;backdrop-filter:blur(5px)}.compose-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.compose-eyebrow{font-size:9px;font-weight:650;letter-spacing:1.8px;color:var(--c-7c8873)}.compose-heading h2{font-family:var(--app-font);font-size:28px;letter-spacing:-1px;margin:8px 0 16px}.compose-heading>button{align-self:flex-start;font-size:25px;min-width:44px;min-height:44px;background:var(--c-eef1e8);border-radius:50%}#checklistDialog .compose-name{font-size:12px;margin-top:4px}#checklistName{font-size:17px;padding:13px;border-radius:12px}.compose-days{margin:23px 0;padding:17px;background:var(--c-eef1e8);border-radius:18px}.compose-days h3,.compose-tasks h3{font-size:14px;letter-spacing:-.2px;margin:0 0 12px}.day-presets{display:flex;gap:5px;flex-wrap:wrap}.day-presets button{font-size:11px;min-height:36px;background:var(--paper);border:1px solid var(--line);border-radius:99px;padding:7px 12px}.compose-week{display:flex;align-items:center;justify-content:space-between;margin:14px 0 7px;font-size:11px}.compose-week button{font-size:24px;padding:4px 10px;min-height:38px}.compose-day-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.pick-day{display:flex;flex-direction:column;align-items:center;gap:6px;border:1px solid var(--line);background:var(--paper);border-radius:13px;padding:10px 2px;min-height:62px}.pick-day span{font-size:10px}.pick-day strong{font-size:19px;font-weight:600}.pick-day[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:white;box-shadow:0 3px 9px #20382e18}#chosenDaysSummary{font-size:11px;line-height:1.7;margin:12px 0;color:var(--c-7c8873);max-height:85px;overflow:auto}#checklistDialog .repeat-choice{display:flex;gap:8px;align-items:center;font-size:11px;margin-top:6px}#repeatChecklist{width:17px;height:17px;display:inline-block;margin:0;accent-color:var(--accent)}.draft-task{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:5px 0}.draft-box{width:20px;height:20px;border:1px solid var(--c-87917f);border-radius:6px;flex-shrink:0}.draft-task input{width:100%;min-width:0;border:0;padding:12px 0;background:transparent;font-size:14px}.draft-task button{font-size:20px;min-width:40px;min-height:40px;color:var(--c-7c8873)}#draftTasksEmpty{font-size:12px;padding:10px 0;color:var(--c-7c8873)}.compose-add-task{display:flex;align-items:center;gap:8px;border:1px dashed var(--line);padding:6px 9px;border-radius:12px;margin-top:12px}.compose-add-task input{flex:1;min-width:0;border:0;background:transparent;padding:10px 0;font-size:14px}.compose-add-task button{background:var(--c-eef1e8);font-size:12px;min-height:40px}.compose-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:17px;margin-top:20px;font-size:12px}.compose-footer button{min-height:44px;border-radius:12px}#deleteChecklist{margin-right:auto;font-size:10px;padding-left:0}#checklistError{color:#a24b3c;font-size:12px}:root[data-style=classic] .compose-heading h2{font-family:var(--journal-heading)}
@media(max-width:600px){#checklistDialog{padding:20px 16px;max-height:calc(100dvh - 24px);border-radius:23px}.compose-heading h2{font-size:26px}.compose-days{padding:13px}.compose-day-grid{gap:4px}.day-presets{gap:4px}.day-presets button{font-size:10px;padding:7px 9px;min-height:40px}.pick-day{border-radius:11px}.pick-day span{font-size:10px}.compose-footer{flex-wrap:wrap}.compose-footer .primary{flex:1}#deleteChecklist{flex-basis:100%;text-align:left}.compose-add-task input,.draft-task input{font-size:16px}}
#checklistDialog{padding:22px 26px}.compose-heading h2{margin-bottom:10px}.compose-days{margin:17px 0;padding:14px}.compose-week{margin:8px 0 5px}.pick-day{min-height:54px;padding:8px 2px}#chosenDaysSummary{margin:8px 0}.compose-footer{margin-top:14px;padding-top:12px}.compose-add-task{margin-top:8px}.compose-heading>button{min-height:38px;min-width:38px}#checklistDialog #draftTasksEmpty{margin:8px 0;padding:3px 0}
@media(max-width:600px){#checklistDialog{padding:19px 15px}}
.compose-heading>button{width:40px;height:40px;min-width:40px;min-height:40px;flex:0 0 40px;padding:0;display:grid;place-items:center;aspect-ratio:1;border-radius:50%;line-height:1}

/* Keep account storage and backup controls in Settings. */
aside>.settings-nav{margin-top:auto;padding-top:14px;flex-shrink:0}aside>nav{margin-bottom:28px}#settingsDialog .storage-notice{padding:0;margin:8px 0 12px;font-size:12px;flex-wrap:wrap}#settingsDialog .saved{font-size:11px;margin:8px 0}#settingsDialog .storage-notice button{min-height:40px}
@media(max-width:600px){aside>.settings-nav{padding-top:9px}aside>nav{margin-bottom:0}}
/* Settings with a persistent section menu. */
#settingsDialog{max-width:830px;width:calc(100% - 30px);height:min(710px,calc(100dvh - 36px));max-height:calc(100dvh - 36px);padding:25px;overflow:hidden}#settingsDialog[open]{display:flex;flex-direction:column}.settings-top{padding-bottom:20px;flex-shrink:0}.settings-top p{font-size:12px}.settings-top>button{height:38px;width:38px;flex:0 0 38px;padding:0;border-radius:50%;display:grid;place-items:center;background:var(--c-eef1e8)}.settings-frame{display:grid;grid-template-columns:185px minmax(0,1fr);flex:1;min-height:0;border-top:1px solid var(--line)}.settings-menu{display:flex;flex-direction:column;gap:8px;padding:19px 14px 10px 0;border-right:1px solid var(--line)}.settings-menu button{display:flex;gap:10px;align-items:flex-start;text-align:left;padding:13px 10px;border-radius:12px;min-height:60px}.settings-menu button>span:first-child{font-size:19px;width:20px;flex-shrink:0}.settings-menu strong{display:block;font-size:13px;font-weight:600}.settings-menu small{display:block;font-size:9px;color:var(--c-7c8873);margin-top:5px;line-height:1.4}.settings-menu button[aria-selected=true]{background:var(--c-dfe7d7);color:var(--accent)}.settings-content{overflow:auto;padding:20px 5px 15px 24px;min-width:0;overscroll-behavior:contain}.settings-content [role=tabpanel]{outline-offset:-3px}.settings-content .settings-section:first-child{border:0;padding-top:0;margin-top:0}.settings-content .settings-section h3{font-family:var(--app-font);font-size:20px;letter-spacing:-.4px;margin-bottom:12px}.settings-content .design-choices{margin-top:14px}.settings-content .settings-section p{font-size:12px}.settings-content .settings-section label{font-size:12px}#settingsDialog #settingsStatus{flex-shrink:0;min-height:0;margin:8px 0 0}#settingsDialog .settings-done{flex-shrink:0;margin-top:9px;min-height:44px}.settings-content .settings-buttons button{min-height:42px}#settingsPanel-account #settingsAccountInfo{margin:20px 0 15px;padding:12px;border-radius:10px;background:var(--c-eef1e8)}
@media(max-width:600px){#settingsDialog{padding:19px 15px;height:min(760px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}.settings-top{padding-bottom:14px}.settings-top p{font-size:11px}.settings-frame{display:flex;flex-direction:column}.settings-menu{flex-direction:row;gap:4px;padding:10px 0;border-right:0;border-bottom:1px solid var(--line);flex-shrink:0;overflow:auto}.settings-menu button{flex:1;min-width:65px;min-height:55px;padding:8px 6px;flex-direction:column;align-items:center;gap:4px;text-align:center}.settings-menu button>span:first-child{font-size:17px}.settings-menu strong{font-size:10px;white-space:nowrap}.settings-menu small{display:none}.settings-content{padding:17px 3px 10px;flex:1}.settings-content .settings-section h3{font-size:21px}.settings-content .palette-choices{gap:6px}.settings-content .settings-grid{grid-template-columns:1fr}.settings-content .design-choice>span:last-child{line-height:1.5;display:block}.settings-content .settings-section label{font-size:12px}}
/* A small, always reachable notch opens and closes navigation. */
:root{--sidebar-size:248px}.sidebar-notch{position:fixed;left:calc(var(--sidebar-size) - 17px);top:105px;z-index:55;width:34px;height:46px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--accent);font-size:27px;line-height:1;box-shadow:0 3px 12px #20382e10}.sidebar-notch:hover{background:var(--c-dfe7d7)}.sidebar-collapsed .sidebar-notch{left:9px}.sidebar-collapsed main{padding-left:58px}#sidebarBackdrop{position:fixed;inset:0;z-index:40;background:#20382e55;border-radius:0;backdrop-filter:blur(3px)}.account-loading .sidebar-notch,.account-loading #sidebarBackdrop{display:none!important}
@media(max-width:1100px){:root{--sidebar-size:220px}}@media(max-width:850px){:root{--sidebar-size:195px}}
@media(max-width:600px){:root{--sidebar-size:min(300px,84vw)}#appSidebar{position:fixed!important;left:0;top:0;bottom:0;width:var(--sidebar-size)!important;height:100dvh!important;z-index:45;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:8px;padding:26px 20px!important;overflow:auto;border-right:1px solid var(--line);box-shadow:10px 0 50px #20382e15}#appSidebar[hidden]{display:none!important}#appSidebar .brand{flex:0 0 auto;max-width:100%;font-size:19px}#appSidebar>.primary{width:100%;margin:24px 0 0!important;text-align:left;font-size:13px!important}#appSidebar .overview{order:0;width:100%;margin:14px 0 0!important;text-align:left;font-size:13px}#appSidebar h2{display:block;font-size:12px;margin:20px 8px 0}#appSidebar nav{order:0;display:flex;flex-direction:column;overflow:visible;width:100%;margin-bottom:20px!important}#appSidebar nav button{width:100%;max-width:none;font-size:13px!important;min-height:44px}#appSidebar .settings-nav{order:0;width:100%;margin:auto 0 0!important;text-align:left;font-size:13px;padding-top:14px}.sidebar-notch{top:18px;left:calc(var(--sidebar-size) - 17px);height:44px;width:34px;z-index:55}.sidebar-collapsed .sidebar-notch{left:11px}.sidebar-collapsed main{padding-left:16px!important}main>header{padding-left:42px;min-height:44px}.phone-menu-open{overflow:hidden}.phone-menu-open main{pointer-events:none}}

/* A familiar menu button stays in the top-left corner. */
.sidebar-notch,.sidebar-collapsed .sidebar-notch{left:16px;top:16px;width:44px;height:44px;border-radius:12px;font-size:initial}.sidebar-notch svg{display:block;pointer-events:none}#appSidebar{padding-top:80px!important}@media(max-width:600px){.sidebar-notch,.sidebar-collapsed .sidebar-notch{left:12px;top:14px;width:44px;height:44px}#appSidebar{padding-top:80px!important}}

.checklist-heading-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}#toggleChecklistView{display:inline-flex;align-items:center;gap:7px;min-height:38px;border:1px solid var(--line);border-radius:99px;background:var(--paper);color:var(--accent);padding:8px 13px;font-size:11px}#toggleChecklistView[aria-pressed=true]{background:var(--c-dfe7d7);border-color:var(--c-87917f)}#checklists.wide-checklists{grid-template-columns:minmax(0,1fr)}#checklists.wide-checklists .card{width:100%}@media(max-width:850px){#toggleChecklistView{display:none}}

.checklist-options-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:8px 0 17px}.checklist-options-row .daily-help{margin:0;flex:1}.list-toolbar #toggleChecklistView{flex:0 0 40px;width:40px;height:36px;min-height:36px;padding:5px;border:0;background:transparent;border-radius:8px;color:var(--accent)}.list-toolbar #toggleChecklistView:hover{background:var(--c-dfe7d7)}.list-toolbar #toggleChecklistView[aria-pressed=true]{background:var(--c-eef1e8)}.list-toolbar #toggleChecklistView svg{display:block;flex-shrink:0}

/* Brand belongs to the daily page, above its dashboard label. */
.main-brand{width:fit-content;margin:0 0 19px;font-size:21px;gap:10px}.main-brand span{width:35px;height:35px;font-size:23px;border-radius:11px}#appSidebar{padding-top:72px!important}#appSidebar>.primary{margin-top:0!important}:root[data-style=classic] .main-brand{font-family:var(--journal-heading)}@media(max-width:600px){.main-brand{margin:0 0 16px 44px;font-size:19px;min-height:38px;letter-spacing:-.5px}.main-brand span{height:31px;width:31px;font-size:21px}main>header{padding-left:0;align-items:center}main>header>span{display:block;font-size:8px;letter-spacing:1.2px}#appSidebar{padding-top:75px!important}}
.settings-gear{display:block;flex:0 0 20px;color:currentColor}
/* Drag only from handles, leaving normal page scrolling untouched. */
.drag-handle{display:inline-grid;place-items:center;width:30px;min-width:30px;height:38px;min-height:38px;padding:3px!important;color:var(--c-87917f);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;border-radius:7px;flex-shrink:0}.drag-handle:active{cursor:grabbing}.drag-handle:hover,.drag-handle:focus-visible{color:var(--accent);background:var(--c-eef1e8)}.card-top{gap:6px}.card-top>.drag-handle{margin-left:-9px}.task>.drag-handle{margin-left:auto}.draft-task>.drag-handle{min-width:30px;width:30px}.being-dragged{opacity:.45}.drop-before{outline:2px dashed var(--accent);outline-offset:5px}.drop-after{outline:2px dashed var(--accent);outline-offset:5px}.task-group.drop-before,.draft-task.drop-before{outline:0;box-shadow:0 -3px 0 var(--accent)}.task-group.drop-after,.draft-task.drop-after{outline:0;box-shadow:0 3px 0 var(--accent)}.undo-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:100;display:flex;align-items:center;gap:15px;background:var(--accent);color:#fff;border:1px solid #ffffff25;border-radius:15px;box-shadow:0 8px 35px #20382e30;padding:10px 12px 10px 19px;width:max-content;max-width:calc(100vw - 28px);font-size:13px}.undo-toast>span{overflow-wrap:anywhere}.undo-toast button{min-height:40px;color:#fff;flex-shrink:0}.undo-toast #undoAction{font-weight:650;text-decoration:underline;text-underline-offset:3px}.undo-toast button:hover{background:#ffffff20}.undo-toast #dismissUndo{font-size:21px;padding:5px 9px}dialog .undo-toast{max-width:min(480px,calc(100vw - 28px))}@media(max-width:600px){.drag-handle{width:34px;min-width:34px;height:44px;min-height:44px}.card-top .list-number{display:none}.card-top>.drag-handle{margin-left:-7px}.task{gap:8px!important}.task>.drag-handle{width:30px;min-width:30px}.undo-toast{bottom:16px;gap:8px;font-size:12px;padding-left:12px}.undo-toast button{min-height:44px}}

.duplicate-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);background:var(--paper);color:var(--accent);white-space:nowrap}.duplicate-button svg{flex-shrink:0}#duplicateDialog{max-width:460px;width:calc(100% - 30px);padding:26px;border-radius:24px;max-height:calc(100dvh - 30px);overflow:auto}#duplicateDialog .compose-heading h2{font-size:27px}#duplicateDialog label{font-size:12px}#duplicateDialog label input{min-height:46px;font-size:15px;border-radius:10px}#duplicateDialog p{font-size:12px}.duplicate-summary{display:flex;align-items:center;gap:12px;padding:18px;background:var(--c-eef1e8);border-radius:14px;margin:22px 0 12px;color:var(--accent)}.duplicate-summary svg{width:26px;height:26px;flex-shrink:0}.duplicate-summary strong{font-size:14px}#duplicateError{color:#a24b3c!important}@media(max-width:600px){#duplicateDialog{padding:22px 17px}#duplicateDialog .compose-heading h2{font-size:24px}#duplicateDialog label input{font-size:16px}.compose-footer .duplicate-button{font-size:11px;padding:9px}.duplicate-summary strong{font-size:13px}}

.compose-copy-action{margin-top:20px}.compose-copy-action .duplicate-button{width:100%;padding:13px 15px;border-radius:13px;justify-content:flex-start;gap:12px;text-align:left;background:var(--c-eef1e8);border:1px solid var(--line)}.compose-copy-action .duplicate-button svg{width:22px;height:22px}.compose-copy-action strong{display:block;font-size:13px;font-weight:600}.compose-copy-action small{display:block;font-size:11px;color:var(--c-7c8873);margin-top:4px}.copy-notice{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:90;display:flex;align-items:center;gap:16px;width:max-content;max-width:calc(100vw - 28px);background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 40px #20382e20;padding:13px 14px 13px 19px}.copy-notice>div{min-width:0}.copy-notice strong{display:block;font-size:13px;margin-bottom:4px}.copy-notice span{display:block;font-size:11px;color:var(--c-7c8873);overflow-wrap:anywhere;max-width:300px}.copy-notice button{flex-shrink:0;min-height:42px;font-size:12px}.copy-notice #openCreatedCopy{background:var(--accent);color:#fff;padding:10px 15px;border-radius:11px}.copy-notice #dismissCopyNotice{font-size:22px;padding:4px 7px}@media(max-width:600px){.copy-notice{bottom:14px;gap:8px;padding:12px;max-width:calc(100vw - 20px)}.copy-notice>div{flex:1}.copy-notice span{font-size:10px}.copy-notice #openCreatedCopy{padding:10px;font-size:11px}.copy-notice button{min-height:44px}.compose-copy-action strong{font-size:13px}.compose-copy-action small{font-size:11px}}

.checklist-management{display:grid;grid-template-columns:minmax(90px,.75fr) minmax(0,1.5fr);align-items:stretch;gap:14px;margin-top:20px}.checklist-management .compose-copy-action{margin:0}.checklist-management #deleteChecklist{margin:0;padding:12px;min-height:64px;font-size:12px;text-align:left;align-self:center;flex-basis:auto}.checklist-management .duplicate-button{height:100%;min-height:64px}.checklist-management+.compose-footer{margin-top:15px}@media(max-width:600px){.checklist-management{grid-template-columns:86px minmax(0,1fr);gap:9px}.checklist-management #deleteChecklist{font-size:11px;padding:9px}.checklist-management .duplicate-button{padding:12px 10px;gap:8px}.checklist-management .duplicate-button strong{font-size:12px}.checklist-management .duplicate-button small{font-size:10px;line-height:1.5}}

/* Keep all checklist actions together. */
.checklist-actions{flex-wrap:nowrap;gap:8px;align-items:stretch}.checklist-actions .checklist-management{display:contents}.checklist-actions .checklist-management[hidden]{display:none}.checklist-actions .compose-copy-action{flex:1;min-width:0;margin:0}.checklist-actions #deleteChecklist{flex:0 0 78px;min-height:54px;padding:8px 0;margin:0;font-size:11px;align-self:stretch}.checklist-actions .duplicate-button{min-height:54px;padding:9px 11px;gap:8px;white-space:normal}.checklist-actions .duplicate-button strong{font-size:12px}.checklist-actions .duplicate-button small{font-size:10px;line-height:1.4}.checklist-actions>button{flex:0 0 auto;padding:10px 12px}.checklist-actions .duplicate-button svg{width:18px;height:18px}@media(max-width:600px){.checklist-actions{gap:5px}.checklist-actions #deleteChecklist{flex:0 0 53px;font-size:10px}.checklist-actions .duplicate-button{padding:8px 6px;gap:4px}.checklist-actions .duplicate-button strong{font-size:10px}.checklist-actions .duplicate-button small{display:none}.checklist-actions .duplicate-button svg{width:15px;height:15px}.checklist-actions>button,.checklist-actions>.primary{flex:0 0 auto;padding:8px 7px;font-size:10px}}

.checklist-actions .compose-copy-action{flex:0 0 auto}.checklist-actions .duplicate-button{width:auto}.checklist-actions #deleteChecklist{margin-right:auto}@media(max-width:600px){.checklist-actions #deleteChecklist{margin-right:0}.checklist-actions .duplicate-button{max-width:110px}}
.daily-extras{display:flex;gap:12px;align-items:center;margin:12px 0 22px}.quick-entry{display:flex;align-items:center;gap:9px;flex:1;padding:8px 10px;background:var(--paper);border:1px solid var(--line);border-radius:15px;min-width:0}.quick-entry>span{color:var(--accent)}.quick-entry input{border:0;background:transparent;min-width:70px;flex:1;padding:10px 0;font-size:14px}.quick-entry select{max-width:160px;width:auto;min-width:95px;border:0;background:var(--c-eef1e8);border-radius:9px;padding:10px;font-size:12px}.quick-entry button,.template-launch{min-height:42px;font-size:12px;border-radius:10px}.template-launch{background:var(--c-eef1e8);color:var(--accent);padding:11px 16px;white-space:nowrap}.weekly-overview{margin-top:30px;background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden}.weekly-overview>summary{cursor:pointer;padding:20px;font-size:16px;font-weight:600}.weekly-overview>summary span{float:right;font-size:12px;font-weight:400;color:var(--c-7c8873)}.weekly-body{padding:0 24px 20px}.weekly-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.weekly-heading h3{font-size:14px}.weekly-heading>span,.weekly-body>p{font-size:12px;color:var(--c-7c8873);line-height:1.7}.weekly-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;max-width:640px;margin:20px auto}.weekly-day{display:flex;flex-direction:column;gap:9px;align-items:center;min-width:0;padding:8px;border-radius:11px;font-size:12px}.weekly-day[aria-pressed=true]{background:var(--c-eef1e8)}.weekly-column{height:85px;width:100%;max-width:45px;display:flex;align-items:flex-end;border-bottom:1px solid var(--line)}.weekly-fill{display:block;width:100%;background:var(--accent);border-radius:6px 6px 0 0;opacity:.75}.weekly-day strong{font-size:13px;font-weight:500}#templatesDialog{width:calc(100% - 28px);max-width:760px;max-height:calc(100dvh - 30px);padding:26px;border-radius:24px;overflow:auto}#templatesDialog::backdrop{background:#20382e66;backdrop-filter:blur(5px)}#templatesDialog>p{font-size:13px;line-height:1.6;color:var(--c-7c8873)}#templatesDialog .compose-heading>button{width:38px;height:38px;flex:0 0 38px;padding:0}.template-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.template-card{padding:18px 14px;border:1px solid var(--line);background:var(--c-eef1e8);border-radius:16px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}.template-kind{font-size:8px;letter-spacing:1.3px;color:var(--c-7c8873)}.template-card h3{font-size:17px;margin:12px 0 3px;overflow-wrap:anywhere}.template-card>p{font-size:12px;color:var(--c-7c8873);margin:4px 0}.template-preview{padding-left:15px;font-size:11px;line-height:1.7;margin:12px 0 20px;flex:1}.template-card>button{font-size:11px;min-height:42px;border-radius:10px}.template-remove{color:var(--c-7c8873);margin-top:7px}.save-template{padding-top:12px;border-top:1px solid var(--line)}.save-template h3{font-size:16px}.save-template label{font-size:12px}.save-template button{font-size:12px;min-height:44px}.save-template p{font-size:12px;color:var(--accent)}@media(max-width:600px){.daily-extras{flex-wrap:wrap;gap:8px}.quick-entry{flex-basis:100%;gap:6px;padding:6px 8px;flex-wrap:wrap}.quick-entry input{font-size:16px;flex-basis:calc(100% - 30px)}.quick-entry select{flex:1;max-width:none}.quick-entry button{min-width:60px}.template-launch{margin-left:auto}.weekly-overview>summary{padding:16px;font-size:14px}.weekly-overview>summary span{font-size:10px}.weekly-body{padding:0 12px 15px}.weekly-heading{display:block}.weekly-heading>span{font-size:10px}.weekly-bars{gap:3px}.weekly-day{padding:6px 3px;font-size:10px}.template-cards{grid-template-columns:1fr}.template-card{padding:17px}.template-preview{margin:10px 0;font-size:12px}#templatesDialog{padding:20px 16px}.weekly-column{height:70px}}
.save-template label{display:block;margin:14px 0}.save-template select{display:block;width:100%;min-height:44px;margin-top:7px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:inherit}.save-template input{margin-top:7px}.save-template input,.save-template select{font-size:14px}@media(max-width:600px){.save-template input,.save-template select{font-size:16px}}

.daily-extras{justify-content:flex-end}

.weekly-nav{display:flex;align-items:center;gap:12px;width:100%;margin:13px 0 6px;padding:13px 16px;border-radius:12px;text-align:left;color:var(--accent);font-size:13px;background:var(--c-eef1e8)}.weekly-nav svg{flex-shrink:0}.weekly-dialog{max-width:650px;width:calc(100% - 28px);padding:26px;border-radius:24px;max-height:calc(100dvh - 30px);overflow:auto}.weekly-dialog::backdrop{background:#20382e66;backdrop-filter:blur(5px)}.weekly-dialog .compose-heading>button{width:38px;height:38px;min-width:38px;min-height:38px;padding:0;flex-shrink:0}.weekly-dialog .weekly-total{font-size:14px;color:var(--accent);background:var(--c-eef1e8);padding:15px 18px;border-radius:12px;margin:20px 0}.weekly-dialog .weekly-body{padding:0}.weekly-dialog .weekly-column{height:120px}@media(max-width:600px){.weekly-dialog{padding:21px 16px}.weekly-dialog .weekly-column{height:95px}}

.weekly-page{margin-top:38px;max-width:1050px}.weekly-page .compose-heading{align-items:center;margin-bottom:24px}.weekly-page h1{font-size:40px;letter-spacing:-1.5px;margin:10px 0}.weekly-page .compose-heading>.back-daily{font-size:12px;min-width:0;min-height:44px;width:auto;height:auto;border-radius:11px;padding:10px 15px;align-self:center;white-space:nowrap}.weekly-page .weekly-total{padding:22px;background:var(--c-eef1e8);color:var(--accent);border-radius:16px;font-size:18px}.weekly-page .weekly-body{padding:22px;background:var(--paper);border:1px solid var(--line);border-radius:20px;margin-top:20px}.weekly-page .weekly-column{height:190px;max-width:65px}.weekly-page .weekly-bars{max-width:none;margin:26px 0}.weekly-page-controls{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:22px 0;font-size:13px;color:var(--c-7c8873)}.weekly-page-controls button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:11px;background:var(--paper)}.weekly-nav.selected{box-shadow:inset 0 0 0 1px var(--accent)}@media(max-width:600px){.weekly-page{margin-top:24px}.weekly-page h1{font-size:32px}.weekly-page .compose-heading{gap:8px;flex-wrap:wrap}.weekly-page .compose-heading>.back-daily{font-size:11px;padding:9px 11px}.weekly-page .weekly-body{padding:16px 12px}.weekly-page .weekly-column{height:150px}.weekly-page .weekly-total{font-size:16px;padding:18px}}
.weekly-page .compose-heading>.back-daily{flex:0 0 auto;max-width:100%}.weekly-page{width:100%;min-width:0}.weekly-page .weekly-column{height:140px}
.weekly-page .compose-heading>.back-daily{aspect-ratio:auto;height:44px;min-height:44px;border-radius:11px}

.dashboard-nav{display:flex;align-items:center;gap:12px;width:100%;padding:13px 16px;border-radius:12px;text-align:left;color:var(--accent);font-size:13px;background:transparent}.dashboard-nav svg{flex-shrink:0}.dashboard-nav.selected{background:var(--c-eef1e8);box-shadow:inset 0 0 0 1px var(--accent)}
.dashboard-nav,.dashboard-nav.selected{background:var(--accent);color:#fff;box-shadow:0 3px 10px #20382e14;font-weight:600;min-height:48px;border:1px solid var(--accent)}.dashboard-nav:hover{filter:brightness(.96)}.dashboard-nav:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
aside h2:has(#sidebarChecklistHeading){display:flex;align-items:flex-start;justify-content:space-between;gap:8px}#sidebarChecklistHeading{float:none;flex:1;min-width:0}aside h2 #listCount{float:none;flex:0 0 auto}
body:not(.sidebar-collapsed) .sidebar-notch{left:calc(var(--sidebar-size) + 10px);top:16px}#appSidebar{padding-top:24px!important}body:not(.sidebar-collapsed) .main-brand{margin-left:32px}@media(max-width:600px){body:not(.sidebar-collapsed) .sidebar-notch{left:calc(var(--sidebar-size) + 8px);top:14px}#appSidebar{padding-top:22px!important}body:not(.sidebar-collapsed) .main-brand{margin-left:0}}
.templates-page{margin-top:38px;max-width:1050px}.templates-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:34px}.templates-page h1{font-size:40px;margin:10px 0}.templates-page-heading p{font-size:14px;color:var(--c-7c8873);margin:10px 0}.templates-page-heading>button{font-size:12px;min-height:46px;border-radius:12px}.templates-page section>h2{font-size:23px;letter-spacing:-.5px;margin:30px 0 18px}.templates-page .template-cards{margin:0 0 36px}.templates-page .saved-template-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.routine-card{background:var(--paper);padding:22px;border-radius:19px}.routine-icon{display:grid;place-items:center;width:46px;height:46px;background:var(--c-eef1e8);border-radius:12px;color:var(--accent);font-size:28px}.routine-card h3{font-size:20px;margin:16px 0 4px}.routine-card .template-preview{font-size:13px;line-height:1.8;margin:17px 0 22px;padding-left:18px;overflow-wrap:anywhere}.template-more{color:var(--c-7c8873);list-style:none;font-size:11px}.routine-actions{display:flex;gap:8px;width:100%;margin-top:auto}.routine-actions button{min-height:44px;font-size:12px;border-radius:11px;flex:1}.routine-outline{border:1px solid var(--line);background:var(--paper);color:var(--accent)}.routine-card .template-remove{font-size:10px;min-height:38px;margin-bottom:-10px}.template-empty{grid-column:1/-1;border:1px dashed var(--line);background:var(--paper);border-radius:18px;padding:25px}.template-empty h3{font-size:17px}.template-empty p{font-size:13px;line-height:1.7;color:var(--c-7c8873)}.template-empty button{font-size:12px;background:var(--c-eef1e8);min-height:44px}.templates-nav{margin-top:4px}.templates-nav.selected{box-shadow:inset 0 0 0 1px var(--accent)}#templatesDialog{max-width:470px}#templatesDialog .save-template{border:0;padding-top:0}#templateEditor{width:calc(100% - 28px);max-width:570px;max-height:calc(100dvh - 30px);overflow:auto;padding:26px;border-radius:24px}#templateEditor::backdrop{background:#20382e66;backdrop-filter:blur(5px)}#templateEditor .compose-heading>button{width:38px;height:38px;min-width:38px;min-height:38px;padding:0;flex:0 0 38px}#templateEditor label{display:block;font-size:12px}#templateEditor h3{font-size:14px;margin:22px 0 10px}#templateEditor .compose-footer{flex-wrap:wrap}#templateEditor .compose-footer button{font-size:12px}.template-editor-note{font-size:12px;color:var(--c-7c8873);line-height:1.7;margin-top:18px}#templateEditorError{font-size:12px;color:#a24b3c}@media(max-width:600px){.templates-page{margin-top:25px}.templates-page-heading{align-items:flex-start;flex-direction:column;gap:8px;margin-bottom:26px}.templates-page h1{font-size:34px}.templates-page .template-cards,.templates-page .saved-template-cards{grid-template-columns:1fr}.templates-page section>h2{font-size:21px}.routine-card{padding:20px}.routine-card .template-preview{font-size:13px}#templateEditor{padding:22px 16px}#templateEditor .draft-task input{font-size:16px}#templateEditor .compose-footer .primary{flex:1}}

.add-checklist-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}.add-checklist-actions .add-checklist{margin:0}.use-saved-template{min-height:46px;padding:12px 17px;border:1px solid var(--line);border-radius:12px;background:var(--c-eef1e8);color:var(--accent);font-size:12px}#savedTemplatePicker{max-width:720px;width:calc(100% - 28px);padding:26px;border-radius:24px;max-height:calc(100dvh - 30px);overflow:auto}#savedTemplatePicker::backdrop{background:#20382e66;backdrop-filter:blur(5px)}#savedTemplatePicker .compose-heading>button{flex:0 0 38px;width:38px;height:38px;min-width:38px;min-height:38px;padding:0}#savedTemplatePickerDate,.template-picker-empty{font-size:13px;line-height:1.7;color:var(--c-7c8873)}#savedTemplatePickerCards{grid-template-columns:repeat(2,minmax(0,1fr))}.template-picker-empty{grid-column:1/-1}#manageSavedTemplates{min-height:44px;font-size:12px;padding:11px 15px}@media(max-width:600px){#savedTemplatePicker{padding:22px 16px}#savedTemplatePickerCards{grid-template-columns:1fr}.use-saved-template{min-height:48px;font-size:13px}}

.checklist-action-menu{position:relative}.checklist-action-menu>summary{list-style:none;cursor:pointer;display:grid;place-items:center;min-width:42px;height:38px;padding:5px 10px;background:var(--c-eef1e8);color:var(--accent);border:1px solid var(--line);border-radius:11px;font-size:15px;letter-spacing:2px;line-height:1}.checklist-action-menu>summary::-webkit-details-marker{display:none}.checklist-action-menu>summary:focus-visible{outline:3px solid var(--c-a4b88a);outline-offset:3px}.checklist-action-popup{position:absolute;right:0;top:calc(100% + 7px);min-width:205px;max-width:calc(100vw - 50px);padding:6px;border:1px solid var(--line);border-radius:13px;background:var(--paper);box-shadow:0 8px 30px #20382e22;z-index:25}.tools .checklist-action-popup button{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;font-size:12px;color:var(--ink);padding:10px;text-align:left;white-space:nowrap;border-radius:8px}.menu-action-icon{display:inline-flex;color:var(--accent)}.tools .checklist-action-popup .menu-delete,.tools .menu-delete .menu-action-icon{color:#a24b3c}.card.menu-open{position:relative;z-index:26;overflow:visible}.add-checklist-actions[hidden]{display:none!important}.add-checklist-actions .add-checklist.primary{background:var(--accent);color:white;border-color:var(--accent);font-weight:600}.refined-empty-day{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:30px 20px;text-align:center}.empty-checklist-icon{display:inline-flex;color:var(--accent);margin-bottom:6px}.refined-empty-day h3{font-size:23px;margin:12px 0}.refined-empty-day p{font-size:13px;line-height:1.7}.empty-day-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px}.empty-day-actions button{min-height:46px;padding:12px 18px;border-radius:12px;font-size:12px}@media(max-width:600px){.checklist-action-menu>summary{min-width:44px;height:44px}.refined-empty-day{padding:26px 16px}.empty-day-actions{gap:8px}.empty-day-actions button{font-size:12px;padding:11px 13px}.checklist-action-popup{min-width:205px}.tools .checklist-action-popup button{font-size:13px;min-height:46px}}

.search-nav{margin-top:4px}#searchDialog{width:calc(100% - 28px);max-width:600px;max-height:calc(100dvh - 30px);padding:26px;border-radius:24px;overflow:auto}#searchDialog::backdrop{background:#20382e66;backdrop-filter:blur(5px)}#searchDialog .compose-heading>button{width:38px;height:38px;min-width:38px;min-height:38px;flex:0 0 38px;padding:0}.search-field{display:flex;align-items:center;gap:11px;margin:18px 0 14px;padding:0 13px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--accent)}.search-field:focus-within{outline:2px solid var(--c-a4b88a);outline-offset:2px}.search-field input{flex:1;min-width:0;width:100%;background:transparent;border:0;padding:14px 0;margin:0;font-size:16px;outline:none!important;box-shadow:none}.search-field svg{flex-shrink:0}.search-filters{display:flex;gap:7px}.search-filters button{border:1px solid var(--line);border-radius:99px;font-size:12px;padding:9px 14px;min-height:40px}.search-filters button[aria-pressed=true]{background:var(--c-eef1e8);color:var(--accent);border-color:var(--c-a4b88a)}#searchResultStatus{font-size:12px;color:var(--c-7c8873);line-height:1.6;margin:18px 0}.search-group-title{font-size:14px;margin:20px 0 10px}.search-result{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);border-radius:12px;padding:14px;margin:8px 0;background:var(--paper);min-height:72px}.search-result-icon{display:grid;place-items:center;flex:0 0 35px;height:35px;border-radius:10px;background:var(--c-eef1e8);color:var(--accent);font-size:23px}.search-result-body{flex:1;min-width:0;overflow-wrap:anywhere}.search-result-body strong{display:block;font-size:14px;font-weight:600}.search-result-body small{display:block;font-size:11px;color:var(--c-7c8873);margin-top:5px;line-height:1.5}.search-task-match{display:block;margin-top:7px;font-size:12px;color:var(--accent)}.search-result-arrow{font-size:24px;color:var(--c-7c8873)}.search-help{border-top:1px solid var(--line);padding-top:17px;margin-top:23px;font-size:11px;line-height:1.7;color:var(--c-7c8873)}@media(max-width:600px){#searchDialog{padding:22px 16px}.search-result{padding:12px;gap:9px}.search-result-body strong{font-size:13px}.search-filters button{min-height:44px}.search-result-body small{font-size:10px}}

.header-search{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--accent)}#searchDialog{height:min(680px,calc(100dvh - 30px));overflow:hidden}#searchDialog[open]{display:flex;flex-direction:column}#searchDialog>.compose-heading,#searchDialog>.search-field,#searchDialog>.search-filters,#searchDialog>#searchResultStatus,#searchDialog>.search-help{flex-shrink:0}#journalSearchResults{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 3px 4px 0;scrollbar-gutter:stable}#searchResultStatus{margin:14px 0 8px}.search-help{margin-bottom:0;margin-top:15px;padding-top:13px}@media(max-width:600px){.header-search{flex-basis:44px;width:44px;height:44px}#searchDialog{height:min(680px,calc(100dvh - 24px))}}
@media(max-width:600px){.header-right{display:flex!important;align-items:center;justify-content:flex-end;gap:9px}.header-right>.header-search{flex-shrink:0}.header-right #signedOutControls{display:flex;align-items:center;gap:5px}}
@media(max-width:600px){.header-right{flex-wrap:nowrap!important;flex:1;min-width:0}main>header>span{display:none!important}}
@media(max-width:600px){.header-right{flex-direction:row!important}}

.daily-note{margin-top:24px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}
.daily-note summary{padding:16px 20px;cursor:pointer;font-size:14px;font-weight:600}
#dailyNoteHint{float:right;font-size:11px;font-weight:400;color:var(--c-7c8873)}
.daily-note-body{padding:0 20px 14px}
.daily-note textarea{display:block;width:100%;min-height:110px;resize:vertical;font:inherit;font-size:16px;line-height:1.55;color:var(--ink);background:var(--c-fafbf7);border:1px solid var(--line);border-radius:12px;padding:12px}
.daily-note textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.daily-note-body p{margin:8px 0 0;font-size:11px;color:var(--c-7c8873)}

.checklist-options-row{justify-content:flex-end}
body:not(.sidebar-collapsed) .main-brand,.main-brand{margin-left:0}
@media(min-width:601px){
  body:not(.sidebar-collapsed) main{padding-left:max(66px,calc(var(--sidebar-size) + 66px - 248px))}
}
@media(max-width:600px){
  body.sidebar-collapsed .sidebar-notch{left:auto;right:16px}
  .main-brand{max-width:calc(100% - 58px)}
}

.list-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto}
.friends-profile{display:flex;align-items:center;gap:10px;text-align:left;width:100%;margin-bottom:12px;min-height:48px}
#friendsAvatar{display:grid;place-items:center;border-radius:50%;width:34px;height:34px;flex:none;background:var(--theme-sidebar-control);font-weight:700}
#friendsProfileName{overflow-wrap:anywhere}
#friendsPage{max-width:900px;margin-top:28px}
#friendsPage form{margin:15px 0}
#friendsPage p{font-size:13px;line-height:1.5}
#friendsPage button{min-height:40px}
.friend-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--line)}
.friend-row span{margin-right:auto;overflow-wrap:anywhere}

.social-identity{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--c-eef1e8)}
.social-identity h3,.social-identity p{margin:3px 0;overflow-wrap:anywhere}
#socialAvatar{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;flex:none;font-size:28px;font-weight:700}
#socialAvatar,#friendsAvatar[data-colour]{background:#dce9d8;color:#293b31}
:is(#socialAvatar,#friendsAvatar)[data-colour=rose]{background:#f0d9e2;color:#562940}
:is(#socialAvatar,#friendsAvatar)[data-colour=ocean]{background:#d4e9f4;color:#1f4559}
:is(#socialAvatar,#friendsAvatar)[data-colour=lilac]{background:#e7ddf5;color:#462f60}
.social-actions{display:flex;gap:8px;margin:12px 0}
.social-actions button{border:1px solid var(--line)}
.social-discovery{border-top:1px solid var(--line);margin-top:18px;padding-top:10px}
#friendsPage textarea,#friendsPage select{display:block;width:100%;margin:6px 0 12px;padding:9px;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:8px;font:inherit}
/* Profile page */
#friendsPage{max-width:980px;margin:32px auto 0}
#friendsPage>.compose-heading{margin-bottom:24px}
#friendsPage .profile-card,#friendsPage .social-discovery,.profile-list-card,#friendsUsername{border:1px solid var(--line);border-radius:20px;background:var(--paper);padding:clamp(16px,3vw,28px)}
#friendsPage .profile-card{background:linear-gradient(145deg,var(--c-eef1e8),var(--paper) 72%)}
#friendsPage .social-identity{padding:0;border:0;background:none;gap:20px;align-items:center}
#socialAvatar{width:76px;height:76px;font-size:34px;border:3px solid var(--paper)}
#socialName{font-size:clamp(24px,4vw,34px);letter-spacing:-.03em;line-height:1.1}
#socialHandle,#socialBio{color:var(--ink);opacity:.78}
#friendsPage .social-actions{margin:20px 0 0;flex-wrap:wrap}
#friendsPage .social-actions button{border-radius:10px;padding:0 14px;background:var(--paper)}
#friendsPage .social-actions #editSocialProfile{background:var(--accent);color:var(--on-accent,#fff);border-color:transparent}
#friendsPage #socialEditor{padding-top:15px;border-top:1px solid var(--line)}
#friendsPage label{display:block;font-size:13px;font-weight:600}
#friendsPage input{display:block;width:100%;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:inherit;padding:10px;margin:6px 0 12px}
#friendsPage .social-discovery{margin:16px 0}
#findFriendsTitle,.profile-list-card h3{margin:0;font-size:17px}
#friendsPage #friendsInvite{display:flex;align-items:end;gap:10px;margin:12px 0 0}
#friendsInvite label{flex:1;min-width:0}
#friendsPage #friendsInvite input{margin-bottom:0}
#friendsInvite button{flex:none}
#friendsLists{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.profile-list-card h3{display:flex;align-items:center;gap:8px;justify-content:space-between}
.profile-count{border-radius:99px;background:var(--c-eef1e8);padding:4px 8px;font-size:12px;font-weight:500}
.profile-list-card p{opacity:.7;margin-bottom:0}
#friendsPage .friend-row:last-child{border-bottom:0}
#friendsStatus:empty,#friendSearchResult:empty{display:none}
@media(max-width:790px){#friendsLists{grid-template-columns:1fr}}
@media(max-width:390px){#socialAvatar{width:58px;height:58px}#friendsPage .social-identity{gap:12px}}
#friendsPage .profile-card{background:var(--paper);display:grid;grid-template-columns:1fr auto;gap:14px 20px}
#friendsPage .social-identity{grid-column:1;grid-row:1 / span 2}
#socialAvatar{width:clamp(70px,11vw,112px);height:clamp(70px,11vw,112px);border:4px solid var(--paper);box-shadow:0 0 0 2px var(--accent)}
.profile-stats{display:flex;gap:20px;justify-content:flex-end;font-size:13px;align-self:end}
.profile-stats strong{font-size:17px;margin-right:4px}
#friendsPage .social-actions{justify-content:flex-end;margin:0}
#friendsPage #socialEditor{grid-column:1/-1}
.profile-nav{display:flex;gap:8px;margin:24px 0 14px;border-bottom:1px solid var(--line)}
.profile-nav button{border-radius:0;padding:8px 14px;border-bottom:2px solid transparent}
.profile-nav button[aria-pressed=true]{border-bottom-color:var(--accent);font-weight:700}
#friendsLists:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
#friendsLists[data-view=friends]{grid-template-columns:1fr}
#friendsLists[data-view=friends] [data-group=requests],#friendsLists[data-view=requests] [data-group=friends]{display:none}
#friendsLists[hidden]{display:none}
@media(max-width:660px){
  #friendsPage .profile-card{grid-template-columns:1fr}
  #friendsPage .social-identity{grid-row:auto}
  .profile-stats,#friendsPage .social-actions{justify-content:flex-start}
  #friendsLists:not([hidden]){grid-template-columns:1fr}
}
#achievementFeed{margin-top:16px}
#achievementComposer{padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
#achievementPosts{display:grid;gap:10px}
.achievement-post p{overflow-wrap:anywhere;opacity:1}
#friendsLists:not([hidden]){grid-template-columns:1fr}
#achievementComposer textarea{resize:vertical;max-width:100%}
#achievementPhotoPreview,.achievement-post img{display:block;max-width:100%;max-height:420px;object-fit:contain;border-radius:12px;margin:10px 0}
#achievementPhotoPreview[hidden]{display:none}
.achievement-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.achievement-actions button{border:1px solid var(--line)}
.achievement-caption{white-space:pre-wrap}
.feed-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.feed-heading h2{margin:0;font-size:22px;letter-spacing:-.03em}
.feed-heading button{padding:8px 16px;border-radius:24px;flex:none}
#achievementFeed{max-width:680px;margin:22px auto 0}
#achievementComposer{padding:clamp(16px,4vw,24px);margin-bottom:18px;border-radius:20px}
#achievementComposer[hidden]{display:none}
#achievementPosts{gap:16px}
#achievementFeed .achievement-post{padding:clamp(14px,3vw,22px);overflow:hidden}
.achievement-author{display:flex;align-items:center;gap:10px;min-height:44px;letter-spacing:normal;color:var(--ink);font-size:14px}
.achievement-author time{margin-left:auto;font-size:11px;opacity:.7}
.achievement-avatar{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--c-eef1e8);color:var(--accent);font-weight:700}
#achievementFeed .achievement-task{display:table;margin:14px 0 10px;border-radius:10px;background:var(--c-eef1e8);padding:7px 10px;font-size:13px;font-weight:600}
.achievement-task::before{content:'✓';margin-right:7px}
#achievementFeed .achievement-caption{margin:10px 0 14px;font-size:16px;line-height:1.55}
#achievementFeed .achievement-post img{width:100%;max-height:500px;object-fit:contain;background:var(--c-eef1e8);border-radius:14px}
#achievementFeed .achievement-post .achievement-actions{justify-content:flex-end;border-top:1px solid var(--line);padding-top:8px}
#achievementFeed .achievement-post .achievement-actions button{border:0;min-height:36px;font-size:13px}
#achievementStatus:not(:empty){background:var(--c-eef1e8);padding:12px 14px;border-radius:12px}
#friendPrivacy{margin:14px 0}
#friendsPage #shareFriendProgress{display:inline-block;width:auto;margin:0 8px 0 0;accent-color:var(--accent)}
#nudgeInbox p{background:var(--c-eef1e8);padding:9px;border-radius:8px}
.friend-profile-link{margin-right:auto;text-align:left;font-weight:700}
#friendDetail{width:min(420px,calc(100% - 28px));padding:20px}
#friendListDialog{width:min(480px,calc(100% - 28px));padding:20px;max-height:85dvh;overflow:auto}
#openFriendList{min-height:38px;padding:6px 12px;border:1px solid var(--line);border-radius:12px}
#progressSharingStatus:empty{display:none}
#achievementFeed .private-nudge{background:var(--c-eef1e8);border-left:3px solid var(--accent)}
#achievementComposerDialog{width:min(560px,calc(100% - 28px));max-height:88dvh;overflow:auto;padding:22px;border-radius:22px}
#achievementComposerDialog::backdrop{background:#10191277;backdrop-filter:blur(4px)}
#achievementComposerDialog #achievementComposer{border:0;margin:0;padding:0}
#achievementComposerDialog :is(textarea,select,input[type=file]){display:block;width:100%;margin:6px 0 14px;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:10px;font:inherit}
#achievementComposerDialog label{display:block;font-weight:600;font-size:14px}
#achievementComposerDialog p{font-size:12px;line-height:1.5}
#achievementComposeError:empty{display:none}
#achievementFeed .private-nudge{display:flex;align-items:center;gap:14px;border-left:1px solid var(--line);padding:14px 18px}
.private-nudge strong{display:inline-block;font-size:11px;color:var(--accent);letter-spacing:.03em}
.private-nudge p{margin:4px 0 0}
.nudge-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--paper);color:var(--accent);font-size:20px;flex:none}
#achievementComposerDialog{width:min(700px,calc(100% - 24px));max-height:92dvh;padding:clamp(18px,4vw,30px)}
#achievementComposerDialog textarea{min-height:126px}
:is(#friendsAvatar,#socialAvatar){overflow:hidden}
:is(#friendsAvatar,#socialAvatar) img{display:block;width:100%;height:100%;object-fit:cover}
#friendsPage #profilePhotoInput{font-weight:400}
.profile-photo-tools{display:flex;align-items:center;gap:12px}
#profilePhotoPreview:not([hidden]){display:block;width:68px;height:68px;object-fit:cover;border-radius:50%}
#profilePhotoStatus:empty{display:none}
#achievementComposerDialog{width:min(1200px,calc(100% - 32px));height:92dvh;max-height:92dvh;max-width:none}
#achievementComposerDialog textarea{min-height:clamp(180px,34dvh,380px)}
@media(max-width:600px){#achievementComposerDialog{width:calc(100% - 12px);height:96dvh;max-height:96dvh}}
#achievementComposerDialog{
  box-sizing:border-box;
  inset:0;
  margin:auto;
  width:min(1160px,calc(100% - 48px));
  height:min(640px,calc(100dvh - 48px));
  max-height:none;
  padding:clamp(20px,3vw,36px);
  border:1px solid var(--line);
  border-radius:20px;
}
#achievementComposerDialog .compose-heading{margin-bottom:18px}
#achievementComposerDialog textarea{min-height:clamp(140px,24dvh,250px)}
@media(max-width:600px){
  #achievementComposerDialog{width:calc(100% - 24px);height:min(640px,calc(100dvh - 24px));padding:18px;border-radius:16px}
}
#settingsPage{max-width:1160px;margin:32px auto 0}
#settingsPage .settings-top{margin-bottom:24px}
#settingsPage .settings-frame{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start;border:0;background:none}
#settingsPage .settings-navigation{position:sticky;top:16px}
#settingsSearch{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font:inherit;margin-bottom:12px}
#settingsPage .settings-menu{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:8px;width:auto}
#settingsPage .settings-menu button{width:100%;text-align:left}
#settingsPage .settings-content{min-width:0;max-height:none;overflow:visible;padding:0;background:none}
#settingsPage .settings-section{margin:0 0 16px;border:1px solid var(--line);border-radius:18px;background:var(--paper);padding:20px}
#settingsPage .settings-section h3{font-size:18px;margin:0 0 16px}
#settingsPage .settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
#settingsPage .settings-row small{display:block;margin-top:4px;color:var(--c-7c8873);line-height:1.5}
#settingsPage .settings-row select{width:auto;margin:0}
#settingsPage .settings-row input{accent-color:var(--accent)}
#settingsPage [hidden]{display:none!important}
@media(max-width:760px){
  #settingsPage .settings-frame{grid-template-columns:1fr;gap:12px}
  #settingsPage .settings-navigation{position:static}
  #settingsPage .settings-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #settingsPage .settings-section{padding:16px}
}
