/* Shared density layer: reduce empty space, never scale the page or its text. */
:root{--content-gap:12px}
.signed-in main{padding:14px 18px}
.workspace-grid-page,.task-canvas{margin:-14px -18px;padding:14px 18px 24px;min-height:0}
.signed-in header{height:auto;min-height:60px;margin:6px 10px 0;padding:8px 14px;border-radius:14px;gap:12px}
.header-actions{gap:8px;flex-wrap:wrap}.user-menu{gap:8px}.user-profile-link{padding:4px 8px;gap:8px}
.user-profile-link .avatar{width:30px;height:30px;flex:0 0 30px}
.icon-button{width:36px;height:36px;border-radius:10px}
.page-heading,.task-view-header{gap:12px;margin-bottom:10px;flex-wrap:wrap}
.page-heading>div,.task-view-header>div{min-width:0}
.page-heading h1,.task-view-header h1{font-size:25px;line-height:1.25;margin-bottom:4px;overflow-wrap:anywhere}
.page-heading p{font-size:13px;line-height:1.45}.eyebrow{margin-bottom:3px}
.panel,.command-center .panel{padding:14px;margin-bottom:10px;border-radius:15px}
.panel>h2,.panel>h3{margin-bottom:10px}
.section-heading{gap:10px;margin-bottom:8px;flex-wrap:wrap}
.section-heading input{max-width:100%;min-width:0}
.two-column,.form-layout,.record-layout,.profile-layout,.project-grid,.member-grid,.metric-strip,.stats{gap:var(--content-gap)}
.two-column>*,.form-layout>*,.record-layout>*,.profile-layout>*,.project-grid>*{min-width:0}
.dashboard-hero,.project-hero{padding:12px 16px;margin-bottom:10px;gap:12px}
.dashboard-hero h1,.project-hero h1{font-size:26px;margin-bottom:5px}
.dashboard-hero p,.project-hero p{margin-bottom:0;font-size:13px}
.metric-strip,.stats,.project-grid{margin-bottom:12px}
.metric-card{min-height:76px;padding:11px 13px;gap:10px;border-radius:14px}
.metric-card strong,.stat strong{font-size:24px;margin:3px 0}
.metric-card .metric-icon{width:29px;height:29px}
.stat,.project-card{padding:14px;border-radius:14px}
.project-top{margin-bottom:10px}.progress-label{margin-top:10px}
.workspace-summary-cards{gap:8px;margin:8px 0}
.workspace-summary-cards>a{padding:8px 11px;min-height:64px;border-radius:13px}
.workspace-toolbar,.modern-toolbar{padding:8px 10px;margin:8px 0;gap:10px;flex-wrap:wrap}
.toolbar,.tabs{gap:10px;margin-bottom:10px;flex-wrap:wrap}
.records-panel{padding:8px 14px}.empty{padding:22px 14px}.empty.compact{padding:12px}
th,td{padding:9px 10px}.activity-row,.compact-row,.attachment-row{padding-top:9px;padding-bottom:9px}
button:where(:not(.icon-button):not(.task-expand):not(.icon-only):not(.search-select-option):not(.picker-toggle)),.button{padding:7px 11px}
form label:not(.person-option):not(.switch-row):not(.chat-attach-button):not(.attachment-button):not(.update-file-picker){margin-bottom:10px}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),select,textarea{padding:8px 10px;margin-top:4px}
.search-select-input,.picker-search,.toolbar input,.chat-input-row textarea{margin-top:0!important}
.picker-toggle{padding:8px 10px}.search-select-option{padding:7px 9px}
.person-option{padding:7px 8px;gap:8px;margin-bottom:0}
.person-option .avatar{width:28px;height:28px;flex:0 0 28px;font-size:11px}
.form-section-title{gap:9px;margin-bottom:12px}.form-section-title>span{width:28px;height:28px;border-radius:8px}
.record-create textarea{height:92px;min-height:64px}
.checks{gap:12px;margin:10px 0}.hint{margin:7px 0;font-size:11px}
.divider{margin:14px 0}.member-card{padding:9px;gap:8px;border-radius:11px}
.hierarchy-level{padding:9px 11px;margin:7px 0}.hierarchy-editor h3{margin-top:14px}
.hierarchy-summary{padding:10px;margin-bottom:10px}.hierarchy-summary li{padding:5px}
.profile-avatar{width:100px;height:100px;margin-bottom:10px}
.profile-identity{grid-template-columns:110px minmax(0,1fr);gap:8px 12px}
.profile-facts>div{padding:7px 2px}
.task-meta-strip{margin-bottom:10px}.task-meta-strip>div{padding:9px 12px}
.task-description-card,.task-people-card{padding:12px 14px}
.task-branches{padding:14px}.task-branches .branch-card{padding:10px 12px;min-height:0}
.branch-card>p{margin:5px 0}.branch-compose-actions{margin-top:8px;padding-top:8px}
.branch-update-form input,.branch-update-form .search-select-input,.branch-update-form textarea{min-height:38px;padding:8px 10px;font-size:13px}
.branch-update-form textarea{min-height:64px}
.branch-update-form>.update-fields{gap:8px}.branch-compose[open]{padding:10px}
.participants-dropdown summary{padding:7px}.participants-dropdown .task-people-list{padding:7px;gap:8px!important}
.project-task-group{padding:10px;margin-top:10px}.project-task-group h3{font-size:16px;margin-bottom:8px}
.project-task-table .task-table-row{padding:10px 10px!important}
.project-task-table .task-table-head{padding:10px}.project-task-identity{gap:12px!important}
.project-task-identity .task-check{width:30px!important;height:30px!important;flex-basis:30px!important}
.task-board .task-row{padding:10px!important;grid-template-columns:32px minmax(230px,1fr) 150px 130px 100px!important;gap:14px!important}
.task-board .task-check{width:30px!important;height:30px!important}
.task-board .task-list-head{padding-left:56px}
/* Both edge controls share real grid gutters; text remains in its own column. */
.workspace-task-panel.edge-to-edge{padding:6px 12px;border-radius:16px}
.compact-workspace{overflow-x:auto!important}
.compact-workspace .task-table-head,.compact-workspace .workspace-task-row{grid-template-columns:minmax(220px,2fr) minmax(70px,.6fr) minmax(105px,.9fr) minmax(65px,.6fr) minmax(96px,.8fr) 100px 32px;gap:10px;min-width:880px!important;box-sizing:border-box}
.compact-workspace .task-table-head{padding:9px 12px}
.compact-workspace .workspace-task-row{padding:10px 12px;min-height:68px}
.compact-workspace .workspace-task-row>*{min-width:0}
.compact-workspace .task-main-link{grid-template-columns:32px minmax(0,1fr);gap:16px}
.compact-workspace .task-check{position:static!important;width:30px;height:30px;border-radius:9px;margin:0}
.compact-workspace .task-expand{width:30px;height:30px;margin:0;justify-self:center;padding:0}
.compact-workspace .row-progress{min-width:0}.compact-workspace .row-progress progress{min-width:0}
.compact-workspace .task-update-preview{padding:8px 12px 10px 60px}
html:not([data-theme="dark"]) .task-expand{background:#e4f3e9!important;color:#286a43!important;border:1px solid #bbddc6!important}
html:not([data-theme="dark"]) .task-expand:hover,html:not([data-theme="dark"]) .task-expand.expanded{background:#d3ebdc!important}
.inline-task-preview{padding:5px 10px 8px}.inline-task-preview .preview-update{padding:6px 10px;margin-top:4px}
.context-menu{padding:5px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto}
.context-menu:not([hidden]){display:flex;flex-direction:column;gap:1px}
.context-menu button{padding:8px 10px;margin:0;line-height:1.4;flex:none;border-radius:7px}
.conversation-shell{min-height:400px;grid-template-columns:240px minmax(0,1fr)}
.conversation-sidebar{padding:10px;gap:8px}
.conversation-sidebar .conversation-item{padding:9px 10px;margin-bottom:3px}
.conversation-title{font-size:16px;padding:10px 14px}
.conversation-shell .chat-feed{padding:10px;min-height:180px}
.conversation-shell .chat-message{padding:9px 12px!important;margin-bottom:7px!important}
.chat-composer{padding:8px 10px}.chat-recipient-panel{padding:8px;margin-top:7px;gap:8px}
.notification-popover .notification-item,.notification-page .notification-page-row{padding:10px 12px}
.notification-popover .popover-heading{padding:12px 16px}
.department-tree-panel{padding:18px!important;margin-top:14px}
.department-org-viewport{padding:16px 6px 24px}
.department-org-person{width:176px!important;gap:10px!important}
.department-org-avatar{width:76px;height:76px;font-size:25px}
.department-org-employee .department-org-avatar{width:64px;height:64px}
.sidebar nav a{min-height:30px;padding:4px 7px}
.sidebar .nav-label{margin-top:6px}.sidebar-footer{margin-top:10px}
footer{padding:12px 18px}
.auth-panel{padding:24px}.auth-card form{margin-top:18px}.auth-links{gap:10px;margin-top:16px}
.auth-story{padding:36px}.auth-story .brand{margin-bottom:36px}.story-stats{margin:28px 0}
@media(max-width:1100px){.form-layout,.record-layout{grid-template-columns:minmax(0,1fr)}.metric-strip,.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.signed-in main{padding:12px}.workspace-grid-page,.task-canvas{margin:-12px;padding:12px 12px 20px}.signed-in header{align-items:flex-start;flex-wrap:wrap;padding:9px 12px}.header-actions{gap:6px}.two-column,.profile-layout{grid-template-columns:minmax(0,1fr)}.conversation-shell{grid-template-columns:minmax(0,1fr)}.conversation-sidebar{max-height:180px}.section-heading{align-items:flex-start}.workspace-task-panel.edge-to-edge{padding-inline:6px}.profile-identity{grid-template-columns:90px minmax(0,1fr)}.profile-avatar{width:80px;height:80px}.task-view-header>div:first-child{min-width:0;width:100%}.auth-story{padding:24px}}
@media(pointer:coarse){.icon-button,.task-expand,.chat-attach-button,.chat-send-button{min-width:40px;min-height:40px}.compact-workspace .task-table-head,.compact-workspace .workspace-task-row{grid-template-columns:minmax(220px,2fr) minmax(70px,.6fr) minmax(105px,.9fr) minmax(65px,.6fr) minmax(96px,.8fr) 100px 40px}}
