/* Page chrome belongs to the workspace, independently of document width. */
html{scrollbar-gutter:auto!important}
html[data-overlay-scrollbars],html[data-overlay-scrollbars] *{scrollbar-width:none!important;scrollbar-gutter:auto!important}
html[data-overlay-scrollbars]::-webkit-scrollbar,html[data-overlay-scrollbars] *::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.scroll-overlay-thumb{position:fixed;inset:auto;margin:0;padding:0;border:0;background:transparent;box-sizing:border-box;overflow:visible;z-index:2147483000;opacity:0;pointer-events:none;transition:opacity 180ms;touch-action:none;outline:none;color:var(--scroll-overlay-color,var(--text))}
.scroll-overlay-thumb::after{content:'';position:absolute;border-radius:8px;background:currentColor;opacity:.38}
.scroll-overlay-y::after{top:0;bottom:0;right:2px;width:4px}.scroll-overlay-x::after{left:0;right:0;bottom:2px;height:4px}
.scroll-overlay-thumb.is-visible{opacity:1;pointer-events:auto}.scroll-overlay-thumb:hover::after,.scroll-overlay-thumb.is-dragging::after,.scroll-overlay-thumb:focus-visible::after{opacity:.7}
.scroll-overlay-thumb:focus-visible{outline:2px solid var(--focus);outline-offset:0}
.scroll-overlay-thumb[hidden]{display:none!important}
.note-column-segment{position:relative;margin-bottom:32px;min-width:0}.note-column-segment:last-child{margin-bottom:0}
.note-column-segment>.note-add-block{position:static!important;margin-top:4px!important;opacity:0}
.note-column-segment:hover>.note-add-block,.note-column-segment:focus-within>.note-add-block{opacity:1}
.note-column-segment>.layout-row-settings{top:-18px}
.page-cover-slot .note-cover-image{height:var(--cover-height,180px)!important}
.main>.page-cover-slot{width:100%;margin:0 0 24px;min-width:0}
.page-cover-slot .note-cover-area{margin:0}
.page-cover-slot .note-cover-image{border-radius:0!important;max-height:50dvh!important;height:180px;min-height:100px}
.page-cover-slot .note-cover-image>img{border-radius:0}
.cover-resize-handle{position:absolute;bottom:-6px;left:0;width:100%;height:12px;min-height:12px;padding:0;cursor:ns-resize;touch-action:none;background:transparent;z-index:6;border:0}
.cover-resize-handle:after{content:'';position:absolute;left:calc(50% - 28px);top:4px;width:56px;height:4px;border-radius:4px;background:#ffffffbd;box-shadow:0 0 2px #0009;opacity:0}
.note-cover-image:hover .cover-resize-handle:after,.cover-resize-handle:focus-visible:after{opacity:1}
.document-title-block .page-description{display:block;box-sizing:border-box;width:100%;min-height:28px;padding:4px 0;margin:0;border:0;border-radius:0;background:transparent;resize:none;field-sizing:content;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font:14px/1.6 var(--font-ui)}
.document-title-block .page-description:focus{outline:0;border-bottom:1px solid var(--line)}
#app-shell .workspace-card,#app-shell .workspace{padding:0!important;width:100%}
.workspace-name-trigger{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px 12px!important;line-height:24px;letter-spacing:normal;font-size:14px;box-sizing:border-box}
.workspace-name-trigger>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-name-trigger>svg{flex:0 0 16px;align-self:center}
.workspace-name-trigger:after{display:none!important}.workspace-name-trigger:hover,.workspace-name-trigger[aria-expanded=true]{background:var(--glass-field-hover);color:var(--text)}
#workspace-rename{display:none!important}
.records-toolbar{position:relative;gap:8px}
.records-search-shell{position:relative;display:flex;align-items:center;min-height:36px}
.records-search-shell>[data-record-search-toggle]{display:grid;place-items:center;width:36px;height:36px;min-width:36px;padding:0;border:0;background:transparent;border-radius:6px;color:var(--muted)}
.records-search-shell>[data-record-search-toggle]:hover{background:var(--glass-field)}
.records-toolbar .records-search{position:absolute;right:36px;top:0;display:flex!important;width:min(280px,45vw);min-width:0;margin:0!important;padding:0 8px;box-sizing:border-box;background:var(--paper)!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;z-index:8;animation:search-line-in .14s ease}
.records-toolbar .records-search[hidden]{display:none!important}
.records-toolbar .records-search input{border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;width:100%;min-width:0;height:36px;padding:4px 0;background:transparent!important;font-size:14px}
@keyframes search-line-in{from{opacity:0;transform:translateX(5px)}to{opacity:1;transform:none}}
.collection-search input,.linked-filter-row input[type=search]{border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.profile-screen>.page-head,.profile-screen>.context-bar,.profile-screen>.workspace-tools,.profile-screen>#sport-shortcut{display:none!important}
.profile-integrated.profile-page{max-width:820px;width:100%;margin:0 auto;padding:32px 0 40px}
.profile-integrated h1{font:650 28px/1.3 var(--font-ui);margin:0 0 24px}
.profile-integrated .profile-identity-body{padding:0 0 24px;margin:0;display:flex;align-items:center;gap:16px}
.profile-integrated .profile-avatar{width:56px;height:56px;min-width:56px;margin:0;border-radius:14px;font-size:22px;overflow:hidden;display:grid;place-items:center}
.profile-integrated .profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-integrated .profile-identity-body p{margin:4px 0 0;color:var(--muted);font-size:13px}
.profile-integrated .profile-card{padding:24px 0;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.profile-integrated .profile-card h2{font:600 18px/1.4 var(--font-ui);margin:0 0 16px}
.profile-integrated .profile-card p{font-size:14px;line-height:1.6;color:var(--muted)}
.profile-integrated form{display:flex;align-items:flex-end;gap:12px;max-width:580px}.profile-integrated form>label{flex:1;min-width:0}.profile-integrated form button{flex:none;margin:0}
.profile-integrated .theme-switch{max-width:480px}.profile-integrated .scrollbar-preference{max-width:480px}.profile-integrated .profile-cover-settings{margin:20px 0 0;padding:0;border:0}.profile-cover-settings summary{cursor:pointer;font-size:13px;color:var(--muted)}
.music-block [data-music-action=repeat],.music-block [data-music-action=mute],.music-block [data-music-action=queue-toggle],.music-dock [data-music-action=repeat],.music-dock [data-music-action=mute],.music-dock [data-music-action=queue-toggle]{border:0!important;box-shadow:none!important;border-radius:8px;min-width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.music-block button:focus:not(:focus-visible),.music-dock button:focus:not(:focus-visible){outline:none!important}
.music-block button[aria-pressed=true],.music-block button[aria-expanded=true],.music-dock button[aria-pressed=true],.music-dock button[aria-expanded=true]{background:#ffffff24!important}
.music-block button[data-music-action=repeat],.music-dock button[data-music-action=repeat]{position:relative;padding:8px}
.music-block [data-repeat-one],.music-dock [data-repeat-one]{position:absolute;top:3px;right:3px;font-size:9px;line-height:10px;font-weight:700}
.music-mini-line{gap:6px!important}.music-mini-line>.music-mini-previous,.music-mini-line>.music-mini-next{display:grid!important;place-items:center;flex:0 0 36px;min-width:36px;width:36px;height:44px;padding:0!important}
.music-mini-info{min-width:0;flex:1}.music-mini-info .music-description{min-width:0}
.music-block .music-queue[open]{max-height:min(300px,40dvh);overscroll-behavior:contain}
@media(max-width:620px){
 .note-column-segment>.note-add-block{display:none!important}
 .note-layout-row:last-child>.note-column:last-of-type>.note-column-segment:last-child>.note-add-block{display:flex!important;opacity:.6}
 .note-column-segment{margin-bottom:16px}
 html{scrollbar-gutter:auto!important}
 #app-shell .main{padding-bottom:calc(var(--mobile-nav-height,64px) + var(--music-dock-height,0px) + 32px)!important}
 #app-shell .mobile-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:fixed;inset:auto 0 0!important;width:auto!important;height:auto;min-height:0!important;padding:6px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;transform:none!important;overflow:visible}
 #app-shell .mobile-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:0!important;min-height:48px!important;width:100%;line-height:16px;font-size:11px!important;border-radius:0}
 #app-shell .mobile-nav>button span{line-height:16px;white-space:nowrap}
 .music-dock:not(.is-expanded){bottom:calc(var(--mobile-nav-height,64px) + 8px)!important;left:8px!important;right:8px!important}
 .main>.page-cover-slot{width:calc(100% + 2 * var(--touch-gutter));margin: -16px calc(-1 * var(--touch-gutter)) 20px}
 .page-cover-slot .note-cover-image{height:180px;max-height:50dvh!important}
 .page-cover-slot .note-cover-settings{display:block!important;position:absolute;right:12px;bottom:12px}
 .page-cover-slot .note-cover-settings>[data-cover-options]{display:flex!important;opacity:1;min-height:36px!important}
 .cover-resize-handle{height:20px;bottom:-10px}.cover-resize-handle:after{opacity:1;top:8px}
 .records-search-shell>[data-record-search-toggle]{display:none}.records-search-shell{position:static;min-height:0}
 .records-toolbar .records-search{top:48px;right:0;left:0;width:100%;height:44px}
 .records-toolbar:has(.records-search:not([hidden])){margin-bottom:56px!important}
 .records-toolbar .records-search input{height:44px;min-height:44px;font-size:16px!important}
 .profile-integrated.profile-page{padding:12px 0 24px!important}.profile-integrated form{align-items:stretch;flex-direction:column}.profile-integrated form button{align-self:flex-start}
 .mobile-keyboard .music-dock:not(.is-expanded){display:none!important}
}
@media(prefers-reduced-motion:reduce){.records-search{animation:none!important}}

.profile-cover-preview{height:96px;max-width:480px;margin:16px 0;border-radius:8px;overflow:hidden}.profile-cover-preview img{width:100%;height:100%;object-fit:cover}.profile-cover-presets{margin:12px 0}

/* Today shares the document canvas; its invitation takes no persistent editor space. */
.today-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 40px}
.today-page-heading h1{font-size:32px;margin:0 0 8px;line-height:1.2}
.today-page-heading time,.today-history{color:var(--muted);font-size:13px}
.today-history{position:relative;display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.today-history input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.today-history:focus-within{outline:2px solid var(--text);outline-offset:4px;border-radius:6px}
.today-welcome{padding:32px 0 24px}.today-welcome h2{font-size:21px;margin:0 0 10px}.today-welcome p{color:var(--muted);margin:0 0 24px}
.today-start-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 24px}
.today-start-actions button{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;background:transparent;border:0;border-radius:8px;color:var(--muted)}
.today-start-actions button:hover{background:var(--surface);color:var(--text)}
.today-workbench.is-empty-day .daily-canvas{display:none}
.today-task-line .today-task-title{height:auto;min-height:40px;flex:1;min-width:0;width:100%;background:transparent;border:0;border-radius:3px;padding:8px 0;font:inherit;color:inherit}
.today-task-line.is-complete .today-task-title{text-decoration:line-through;color:var(--muted)}
.today-task-line .today-task-date{font-size:12px;color:var(--muted);flex:0 0 auto;width:auto}
.today-task-line>.today-task-menu{flex:0 0 36px;width:36px;justify-content:center}
.today-completed{margin:20px 0;color:var(--muted)}.today-all-done{color:var(--muted)}
.music-mini-line>.music-mini-close{flex:0 0 36px;width:36px;min-height:44px;padding:8px}
@media(max-width:700px){.today-page-heading{margin:16px 0 24px;gap:12px}.today-page-heading h1{font-size:28px}.today-history span{display:none}.today-history{width:44px;justify-content:center}.today-task-line{flex-wrap:nowrap}.today-task-line .today-task-date{max-width:80px}.music-mini-line{gap:2px}.music-mini-line .music-art{width:32px;height:32px;flex-basis:32px}.music-mini-line .music-mini-info{gap:6px}.today-start-actions{gap:4px}.today-start-actions button{padding:8px}}

.note-block:has(>.today-task-line)>.block-properties-trigger,.note-block:has(>.today-task-line)>.mobile-block-more{display:none!important}

/* Daily task drafts and saved tasks share the same checkbox/text grid. */
.today-page-heading h1{font-weight:400}
.daily-canvas .note-block.todo{align-items:center;gap:10px}
.daily-canvas .note-block.todo>.block-text{padding:8px 0;line-height:24px;min-height:40px}
.today-workbench .today-task-line{gap:10px;align-items:center}
.today-workbench .today-task-line .today-task-title{padding:8px 0!important;line-height:24px;box-shadow:none}
@media(max-width:700px){.today-workbench .task-check-hit,.daily-canvas .block-todo-hit{flex:0 0 44px;width:44px;min-height:44px}.daily-canvas .note-block.todo>.block-text,.today-workbench .today-task-title{min-height:44px}}

.today-workbench .today-task-line{align-items:flex-start}.today-workbench .today-task-title{field-sizing:content;resize:none;overflow-wrap:anywhere;min-height:44px;max-height:240px}.today-workbench .task-check-hit{height:44px}

/* Profile rhythm: 8 / 12 / 16 / 24 / 32. */
.profile-integrated{--profile-gap:16px;--profile-section:32px}
.profile-integrated .profile-card{padding:var(--profile-section) 0}
.profile-integrated .profile-card>p{margin:0}
.profile-integrated .profile-card h2{margin:0 0 16px}
.profile-integrated .profile-card h3{font:600 14px/1.5 var(--font-ui);margin:24px 0 8px}
.profile-integrated .profile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}
.profile-integrated .profile-actions>button,.profile-integrated .profile-setting-row>button{min-height:40px;margin:0;padding:10px 14px;font-size:12px}
.profile-integrated .profile-card .profile-transfer{font-size:12px;margin-top:24px;max-width:68ch}
.profile-integrated form[data-profile-name]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px;max-width:620px;margin:0}
.profile-integrated form[data-profile-name]>label{margin:0;display:grid;gap:8px;font-size:12px}
.profile-integrated form[data-profile-name] input{height:44px;margin:0;box-sizing:border-box}
.profile-integrated form[data-profile-name]>button{height:44px;margin:0;align-self:end;font-size:12px;padding:0 16px}
.profile-integrated .profile-feedback{min-height:24px;margin:0;padding:0 0 8px;background:none;font-size:12px;line-height:16px;border-radius:0}
.profile-integrated .profile-identity-body{padding-bottom:16px;flex-wrap:nowrap}
.profile-integrated .profile-identity-body>div:last-child{min-width:0;overflow-wrap:anywhere}
.profile-avatar-wrap{position:relative;flex:none}
.profile-integrated .profile-avatar{position:relative;padding:0;border:0;box-shadow:none;width:64px;height:64px;border-radius:16px;background:var(--soft);color:var(--text)}
.profile-avatar-picture{display:grid;place-items:center;width:100%;height:100%;overflow:hidden;border-radius:inherit}
.profile-avatar-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#17182188;color:#fff;opacity:0;transition:opacity .15s}
.profile-avatar:hover .profile-avatar-overlay,.profile-avatar:focus-visible .profile-avatar-overlay{opacity:1}
.profile-avatar:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.profile-avatar-menu{position:absolute;left:0;top:calc(100% + 8px);z-index:20;min-width:180px;display:grid;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 32px var(--shadow)}
.profile-avatar-menu button{padding:12px;text-align:left;border-radius:8px;white-space:nowrap;font-size:13px}
.profile-avatar-menu button:hover,.profile-avatar-menu button:focus-visible{background:var(--soft)}
.profile-setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
.profile-setting-row>div{min-width:0;overflow-wrap:anywhere}.profile-setting-row strong{font-weight:500;font-size:14px}
.profile-integrated .profile-setting-row p{margin:4px 0 0;font-size:12px}
.profile-integrated .profile-signout{margin-top:24px}
#app-shell .sidebar-bottom{padding-top:16px;gap:8px}
@media(max-width:600px){
 .profile-integrated form[data-profile-name]{grid-template-columns:1fr;gap:12px}
 .profile-integrated form[data-profile-name]>button{justify-self:start}
 .profile-integrated .profile-actions{align-items:stretch}
 .profile-integrated .profile-actions>button{min-height:44px}
 .profile-setting-row{flex-wrap:wrap;gap:12px}
 .profile-integrated .profile-card{padding:24px 0}
}
@media(hover:none){.profile-avatar-overlay{opacity:1;inset:auto 0 0 auto;width:26px;height:26px;border-radius:10px 0 0 0}.profile-avatar-overlay svg{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){.profile-avatar-overlay{transition:none}}
