/* Keep controls compact while reserving the canvas as the main workspace. */
.app-shell>.app-header{height:48px;flex:0 0 48px;gap:10px;padding:0 24px;border-bottom:1px solid #f1f1ef}
.workspace-title{font-size:18px;line-height:1.4;font-weight:650;letter-spacing:-.25px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:72px}
.app-header .header-spacer{min-width:8px}
.workspace-sync-time{display:inline-flex;align-items:baseline;flex:none;gap:5px;color:#73726e;font-size:11px;line-height:1.4;white-space:nowrap}
.workspace-actions{display:flex;align-items:center;gap:8px;flex:none}
.app-header .workspace-save-status{display:inline-flex;min-height:28px;align-items:center;gap:6px;padding:4px 8px;border-radius:5px;color:#625f5a;font-size:11px;cursor:pointer}
.workspace-save-status::before{content:"";width:6px;height:6px;border-radius:50%;background:#a09c94}
.workspace-save-status:is([data-save-phase="saved"],[data-save-phase="synced"])::before{background:#68866b}
.workspace-save-status:is([data-save-phase="saving"],[data-save-phase="syncing"],[data-save-phase="background"])::before{background:#607f9e}
.workspace-save-status:is([data-save-phase="waiting"],[data-save-phase="conflict"],[data-save-phase="attention"],[data-save-phase="incomplete"],[data-save-phase="local-draft"])::before{background:#b88045}
.workspace-save-status:is([data-save-phase="failed"],[data-save-phase="draft-error"],[data-save-phase="recovery"],[data-save-phase="unavailable"])::before{background:#bf584b}
.sync-chevron{width:5px;height:5px;flex:none;margin:0 2px 2px;border:solid #88857b;border-width:0 1px 1px 0;transform:rotate(45deg)}
.board-sync-popover{box-sizing:border-box;position:fixed;inset:44px 12px auto auto;width:min(326px,calc(100vw - 24px));padding:15px 16px;margin:0;border:1px solid #e5e4e0;border-radius:8px;background:#fff;color:#37352f;box-shadow:0 8px 24px #282d3514}
.board-sync-popover h2{margin:0 0 6px;font-size:14px;font-weight:630}
.board-sync-popover p{margin:0;color:#6b685f;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.board-sync-popover .sync-blocked-reason{margin-top:6px;color:#8a593a}
.sync-status-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:12px}
.sync-status-actions :is(button,a){display:inline-flex;align-items:center;min-height:31px;padding:4px 8px;border-radius:4px;background:#f4f3ef;color:#4c514f;font-size:12px;text-decoration:none}
.sync-status-actions :is(button,a):hover{background:#ebece7}
.sync-status-actions [data-sync-publish]{background:transparent;color:#87583c}
.sync-status-actions [data-sync-publish]:hover{background:#f9f3eb}
.workspace-settings .local-board-copies{width:100%;margin-top:2px;border-top:1px solid #eeede8;padding-top:10px;font-size:13px;color:#66645d}
.local-board-copies summary{width:fit-content;cursor:pointer}
.local-board-copies a{display:block;width:fit-content;margin:8px 0 0 14px;color:#4e6476}
.workspace-tools{display:flex;align-items:center;gap:2px;padding-left:7px;border-left:1px solid #eeede9}
.workspace-tools button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:28px;height:28px;padding:4px 6px;white-space:nowrap}
.workspace-tools svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.workspace-save-status:hover,.workspace-save-status[aria-expanded="true"],.workspace-tools button:not(:disabled):hover{background:#f3f2ee;color:#37352f}
.load-caption{margin:0;padding:5px 24px;color:#73726e;font-size:11px}
.load-caption:empty{display:none}
.app-shell>.database-toolbar{flex:0 0 42px;height:42px;margin:0 24px;gap:18px}
.database-toolbar .search-wrap{margin-left:auto;width:220px}
.app-shell>.filterbar{flex:0 0 auto;min-height:42px;height:auto;padding:5px 24px;gap:6px 16px;flex-wrap:wrap}
.topic-direction-bar{display:flex;flex:0 0 100%;min-width:0;align-items:center;gap:14px;border-bottom:1px solid #eeede9}
.topic-direction-bar>span{flex:none;color:#6c6d68;font-size:12px;white-space:nowrap}
.topic-direction-filters{display:flex;min-width:0;align-items:stretch;gap:8px;overflow-x:auto;scrollbar-width:thin}
.topic-direction-filters button{position:relative;flex:none;min-height:34px;padding:0 9px;color:#64645e;font-size:13px;white-space:nowrap}
.topic-direction-filters button:hover{background:#f7f7f4}
.topic-direction-filters button:focus-visible{outline:2px solid #456779;outline-offset:-2px}
.topic-direction-filters button[aria-pressed="true"]{color:#456779;font-weight:640}
.topic-direction-filters button[aria-pressed="true"]::after{position:absolute;inset:auto 8px 0;height:2px;background:currentColor;border-radius:2px 2px 0 0;content:""}
#detail .topic-direction-field{flex:none;min-height:26px}
#detail .topic-direction-field.is-readonly{display:inline-flex;align-items:center;gap:6px;color:#737268;font-size:11px}
#detail .topic-direction-field select{max-width:170px;cursor:pointer}
#detail .topic-direction-field select:focus-visible{outline:2px solid #456779;outline-offset:1px}
#detail .topic-direction-field strong{font-weight:540;color:#456779}
.filterbar>.direction-focus-bar{min-height:30px;flex:0 1 auto;margin:0;padding:0 16px 0 0;border:0;border-right:1px solid #e9e9e6;gap:8px;flex-wrap:nowrap;max-width:55%}
.filterbar .direction-select-wrap{min-width:90px;max-width:230px;flex:0 1 auto}
.filterbar .direction-focus-select{width:100%;padding-top:4px;padding-bottom:4px}
.filterbar .direction-focus-count:empty{display:none}
.filterbar .filter-controls{margin-left:auto}
.filterbar .tag-panel{flex-basis:100%;padding:5px 0 3px;max-height:150px;overflow:auto}
.filterbar .direction-focus-label{font-size:11px;flex-shrink:0}
@media(min-width:761px){
 .project-detail-open .app-shell>.database-toolbar{height:42px;min-height:42px;margin-left:24px;padding-bottom:0}
 .project-detail-open .app-shell>.filterbar{min-height:42px;padding:5px 24px;gap:6px 12px}
 .project-detail-open .filterbar>.direction-focus-bar{max-width:100%;min-height:28px}
 .project-detail-open .filterbar .direction-select-wrap{max-width:160px}
}
@media(max-width:1000px){.filterbar .direction-focus-count{display:none}}
@media(max-width:760px){
 .app-shell>.app-header{height:44px;flex-basis:44px;padding:0 12px;gap:5px}
 .app-shell>.app-header:has(.workspace-sync-time:not([hidden])){flex-wrap:wrap;height:auto;flex-basis:auto;row-gap:0;padding-bottom:5px}
 .workspace-sync-time{flex-basis:100%;order:1;font-size:10px;padding-left:5px}
 .workspace-title{font-size:16px;min-width:0}
 .app-header .header-spacer{min-width:0}
 .workspace-actions{gap:4px}
 .app-header .workspace-save-status{font-size:10px;padding:3px 4px}
 .workspace-tools{gap:0;padding-left:3px}
 .workspace-tools button,.workspace-tools #help{min-width:27px;min-height:32px;padding:3px 5px}
 .app-shell>.database-toolbar{margin:0 16px;gap:10px}.database-toolbar .search-wrap{width:160px;flex:1;max-width:none}
 .app-shell>.filterbar{padding:5px 16px;gap:5px 10px;min-height:40px;align-content:start}
 .topic-direction-bar{gap:6px}
 .topic-direction-filters{gap:2px}
 .topic-direction-filters button{min-height:36px;padding-inline:6px;font-size:12px}
 .topic-direction-filters button[aria-pressed="true"]::after{inset-inline:5px}
 .filterbar>.direction-focus-bar{max-width:100%;padding-right:10px}.filterbar .direction-select-wrap{max-width:150px}
}

@media(max-width:430px){.workspace-tools button span{display:none}}
