/* Full HD working area; preserve 1.53 controls and scale down only shared spacing. */
:root{--sidebar-width:204px}.with-nav,body:has(.inbox-layout) .with-nav{padding-left:18px;padding-right:18px}main{max-width:none}.workspace-top{min-height:49px;margin-bottom:12px;padding:6px 0}.panel{padding:16px}header{margin-bottom:12px}.table-wrap{max-width:100%;overflow:auto}.table-wrap thead th{position:sticky;top:0;z-index:2;background:#f4f5f6}.table-wrap th:first-child{left:0;z-index:3}.table-wrap td:first-child{position:sticky;left:0;background:#fff;z-index:1}.importance{color:#a86700;font-size:17px}.inbox-header{gap:12px}.inbox-tabs{gap:3px;margin-bottom:8px}.inbox-tabs a{padding:7px 9px;font-size:13px}.queue-filters{padding:0;margin:0 0 9px;gap:10px;display:flex;align-items:end}.queue-filters label{margin:0;max-width:250px;font-size:12px}.queue-filters select{margin:3px 0 0;min-height:32px;padding:5px 8px}.queue-filters button{min-height:32px;padding:5px 10px}
@media(min-width:1200px){.inbox-page .inbox-layout{grid-template-columns:300px minmax(400px,1fr) 280px;min-height:0;height:calc(100dvh - 228px)}.inbox-page .inbox-list,.inbox-page .conversation,.inbox-context{max-height:none;overflow:auto;height:100%;min-height:0}.inbox-page main>footer{margin:5px 0;font-size:11px}}
.inbox-context{border-left:1px solid var(--line);background:#fafbfc;min-width:0}.customer-context{padding:14px}.customer-context>summary{font-size:15px;font-weight:700}.context-content{font-size:13px;overflow-wrap:anywhere}.context-content h3{font-size:14px;margin:18px 0 6px}.context-content p{margin:7px 0}.context-content label{font-size:12px;margin-bottom:8px}.context-content input,.context-content select{font-size:13px;padding:6px 8px;min-height:33px}.context-content form{margin:14px 0}.context-actions{display:grid;gap:7px;margin:14px 0}.context-actions .button{font-size:12px;padding:7px 10px}.context-link{display:block;padding:8px 0;border-bottom:1px solid #e5e8ec}.context-link small{display:block;color:#647079}.close-lead{margin-top:16px;border-top:1px solid #ddd;padding-top:12px}.inbox-page .inbox-row{padding:10px 12px}.inbox-row .row-head{flex-wrap:wrap;gap:4px}.inbox-row .row-subject{margin:4px 0}.inbox-row .snippet{margin:4px 0}.inbox-row .row-alert{margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inbox-page .conversation-head{padding:13px 16px}.inbox-page .conversation-head h2{font-size:19px;margin:7px 0}.inbox-page .conversation-actions{gap:6px}.inbox-page .conversation-actions .button{font-size:12px;padding:6px 10px;min-height:32px}.compact-marker{margin:6px 16px!important}.next-action-box{margin:9px 16px;padding:9px 12px}.thread{padding:0 16px}.thread-order{font-size:11px;color:#68737d;margin:8px 0}.thread .message{padding:11px 13px;margin:9px 0}.thread .message p{max-height:280px;overflow:auto}.earlier-messages>summary{padding:12px;background:#f2f4f6;border-radius:6px;font-size:13px}.reply-box{margin:12px 16px;padding:14px}.reply-box .ai-toolbar,.reply-box .ai-instruction,.reply-box .ai-check-compact{font-size:12px}.thread .attachment-link{font-size:12px}
.kanban-page header h1{font-size:25px}.kanban-page .search{margin:8px 0 12px}.kanban-page .kanban{display:flex;gap:10px;overflow-x:auto;align-items:flex-start;max-height:calc(100dvh - 225px);padding:0 0 8px}.kanban-page .column{flex:1 0 235px;min-width:235px;max-width:310px;padding:9px;background:#edf0f2;border-radius:9px;max-height:calc(100dvh - 240px);overflow:auto}.kanban-page .column h2{font-size:14px;position:sticky;top:-9px;padding:10px 0;margin:-9px 0 8px;background:#edf0f2;z-index:3}.kanban-page .lead-card{padding:10px;margin-bottom:8px;border-radius:7px;box-shadow:none;display:block}.kanban-page .lead-card h3{font-size:13px;line-height:1.3;margin:5px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.kanban-page .lead-card small{font-size:11px;display:block;line-height:1.5}.kanban-page .card-top{margin-bottom:4px}.kanban-page .card-client{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kanban-page .card-money{font-weight:650;font-size:14px;margin:5px 0}.kanban-page .lead-card .next{font-size:11px;margin:4px 0;padding:0;background:none}.kanban-page .alert-label{font-size:11px;padding:3px 5px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kanban-page .lead-card .tag{font-size:10px}
.attachment-picker{grid-column:1/-1;margin:6px 0;min-width:0}.attachment-picked-list{list-style:none;margin:6px 0;padding:0}.attachment-picked-list li{display:flex;gap:8px;align-items:center;padding:5px 7px;border:1px solid #e0e4e8;border-radius:5px;margin:4px 0;font-size:12px;background:#fff}.attachment-picked-list .picked-name{flex:1;overflow-wrap:anywhere;min-width:0}.attachment-picked-list button{min-height:28px;padding:2px 7px;font-size:12px}.attachment-picker .secondary{font-size:12px;min-height:30px}.attachment-picker.dragging{outline:2px dashed #c39800;background:#fffae5}.attachment-picked-list:empty{display:none}.form-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.form-columns>*{min-width:0}.compact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.price-result{background:#fff9df;border:1px solid #e2ca77;border-radius:8px;padding:14px}.workflow-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.stage-row{border:1px solid #dce2e5;border-radius:8px;margin:10px 0;padding:12px}.stage-row[data-state=done]{border-left:4px solid #31856d}.stage-row[data-state=problem]{border-left:4px solid #bb5033}.stage-row summary{display:flex;gap:12px;align-items:center;font-weight:600}.stage-row small{margin-left:auto}.production-history article{border-bottom:1px solid #ddd;padding:12px 0}.step-photos{display:flex;flex-wrap:wrap;gap:8px}.step-photos img{max-width:150px;max-height:100px;object-fit:contain}.inline-error{padding:10px;background:#fff0e8;color:#8c341d;border-radius:6px}.compact-table input{min-width:70px}.mail-link-tools{padding:10px;border:1px solid #d5dfe9;border-radius:6px;margin-top:8px}.mail-link-tools summary{font-size:12px}.mail-link-tools form{margin:8px 0}.mail-link-tools .actions{flex-wrap:wrap}
@media(min-width:901px) and (max-width:1199px){.inbox-page .inbox-layout{grid-template-columns:270px minmax(0,1fr)}.inbox-context{grid-column:2;border-top:1px solid #ddd}.inbox-page .inbox-list{grid-row:1/3}.inbox-page .conversation{max-height:65vh}.inbox-context{max-height:350px;overflow:auto}}
@media(max-width:900px){.with-nav,body:has(.inbox-layout) .with-nav{margin-left:0;padding:0 12px 18px}.inbox-page .inbox-layout{display:flex;flex-direction:column;height:auto;min-height:0}.inbox-page .inbox-layout:not(.has-selection) .inbox-context{display:none}.inbox-page .inbox-layout.has-selection .inbox-context{order:-1;max-height:none;border:0;border-bottom:1px solid #ddd}.inbox-page .inbox-layout.has-selection .inbox-list{display:none}.inbox-page .inbox-layout:not(.has-selection) .conversation{display:none}.inbox-page .inbox-list{max-height:none}.inbox-page .conversation{max-height:none}.customer-context{padding:10px 13px}.context-content{font-size:14px}.customer-context:not([open]) .context-content{display:none}.context-actions{grid-template-columns:1fr 1fr}.queue-filters{flex-wrap:wrap}.queue-filters label{flex:1;min-width:120px}.inbox-tabs{flex-wrap:nowrap;overflow:auto;white-space:nowrap;padding-bottom:5px}.inbox-header{margin-top:8px}.inbox-header h1{font-size:23px}.inbox-page .conversation-head{padding:12px}.form-columns,.compact-grid{grid-template-columns:1fr}.kanban-page .kanban{max-height:none}.kanban-page .column{max-height:75dvh}.table-wrap{max-height:65dvh}.workflow-actions .button{flex:1}.settings-form{max-width:none}.workspace-top{margin-bottom:8px}.thread .message p{max-height:340px}}
@media print{.inbox-context,.attachment-picker,.workflow-actions{display:none}.table-wrap thead th{position:static}}
/* Keep daily actions in view at both target sizes. */
@media(min-width:1200px){.inbox-page .inbox-layout{height:calc(100dvh - 270px)}}
.kanban-page .lead-card{padding:8px 10px;margin:7px 0}.kanban-page .lead-card h3{margin:3px 0;font-size:12px}.kanban-page .card-money{margin:3px 0;font-size:13px}.kanban-page .lead-card small{line-height:1.4}.kanban-page .lead-card .next{border:0;margin:2px 0}.kanban-page .alert-label{padding:1px 4px;margin-top:3px;line-height:1.25}.kanban-page .card-top .tag{padding:1px 5px}.kanban-page .card-top{margin:0}
.acceptance-fields{margin:12px 0 16px;border:1px solid #dce2e5;border-radius:7px;padding:10px}.acceptance-fields>summary{font-size:13px}.acceptance-fields[open]>.form-columns{margin-top:16px}.traction-order-page .form-columns label{margin-bottom:4px}.traction-order-page .form-columns{gap:10px 14px}.traction-order-page .two-cols>.panel{margin-top:0}.row-edit{max-width:370px}.row-edit>summary{font-size:12px}.row-edit[open]>form{margin-top:14px}.row-edit label{font-size:12px}.row-edit input,.row-edit select{min-height:34px;padding:6px}.quick-status{margin:6px 16px;font-size:12px}.quick-status[open]{padding:12px;border:1px solid #ddd;border-radius:7px}.quick-status>form{display:grid;grid-template-columns:180px minmax(150px,1fr) auto;gap:10px;align-items:end}.quick-status label{margin:0}.quick-status textarea{min-height:40px}
.mail-compose{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px}.mail-compose>section{min-width:0}.mail-compose .mail-footer{grid-column:1/-1}.mail-compose textarea{min-height:260px}.mail-compose .notice{padding:10px;font-size:13px}.mail-compose .form-columns{grid-template-columns:1fr}.mail-compose .check{font-size:13px}
@media(max-width:900px){.inbox-page:has(.has-selection) .workspace-top,.inbox-page:has(.has-selection) .inbox-header,.inbox-page:has(.has-selection) .inbox-tabs,.inbox-page:has(.has-selection) .queue-filters{display:none}.inbox-page:has(.has-selection) .with-nav{padding-top:8px}.inbox-page:has(.has-selection) .compact-marker,.inbox-page:has(.has-selection) .manager-meta{display:none}.inbox-page .conversation-head h2{margin:4px 0}.inbox-page .conversation-head p{margin:7px 0}.inbox-page .conversation-actions .button{min-height:36px;padding:6px 9px}.inbox-page .attention-strip{padding:7px 12px;font-size:11px}.inbox-page .quick-status{margin:5px 12px}.quick-status>form{grid-template-columns:1fr}.inbox-page .next-action-box{margin:5px 12px;padding:6px 10px;font-size:12px}.inbox-page .thread-order{margin-top:6px}.inbox-page .thread .message{padding:9px 10px}.mail-compose{grid-template-columns:1fr;gap:10px}.mail-compose textarea{min-height:180px}.traction-order-page .workspace-top{display:none}.traction-order-page .two-cols{gap:8px}.traction-order-page header p{margin-bottom:0}}
.kanban-page header .search{flex:1;max-width:620px;margin:0}.kanban-page header .search input{min-width:150px}.kanban-page .kanban{max-height:calc(100dvh - 175px)}.kanban-page .column{max-height:calc(100dvh - 185px)}.price-result p{font-size:13px;margin:7px 0}.price-result dl{gap:5px}.price-result h2{margin-bottom:10px}.price-result h3{font-size:14px}.message:target{outline:2px solid #d5a800;scroll-margin-top:12px}
@media(max-width:900px){.production-order-page .workspace-top{display:none}.kanban-page header .search{flex:auto;width:100%}.kanban-page .kanban{max-height:none}.kanban-page .column{max-height:80dvh}}
@media(max-width:900px){.message:target{scroll-margin-top:76px}}
.party-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}.party-layout .panel{margin:0 0 14px}.party-layout .two-cols{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:start;gap:16px}.party-layout h2{font-size:16px;margin:8px 0 10px}.party-layout h2:not(:first-child){margin-top:24px}.party-layout p{font-size:13px;overflow-wrap:anywhere}.party-layout .button{font-size:12px;padding:6px 9px}.party-link-form,.party-files{margin:14px 0;font-size:12px}.party-link-form form{margin-top:12px}.party-message{padding:10px 0;border-bottom:1px solid #ddd}.party-message p{margin:6px 0}.party-message a{font-size:12px}.party-message .pre{max-height:180px;overflow:auto}.work-page .task-board>section,.work-page .overview-section .column{padding:10px;min-height:100px}.work-page .task-card,.work-page .lead-card{padding:10px;margin:7px 0;font-size:13px}.work-page .task-card h3,.work-page .lead-card h3{font-size:13px;margin:5px 0}.work-page .task-card p,.work-page .lead-card p{margin:5px 0}.work-page .task-card small,.work-page .lead-card small{font-size:11px}.work-page .task-board>section>h2{font-size:14px;margin-bottom:8px}.work-page main>details.panel{padding:10px 14px;margin:10px 0}.work-page .overview-section{margin:16px 0}.organization-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px}.organization-form>h2,.organization-form>.muted,.organization-form>small,.organization-form>.notice{grid-column:1/-1}.organization-form>button{justify-self:start}
@media(max-width:1100px){.party-layout{grid-template-columns:1fr}.party-layout .two-cols{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.party-layout .two-cols,.organization-form{grid-template-columns:1fr}.party-layout .panel{margin-bottom:10px}.party-page .workspace-top{display:none}}
.table-wrap:not(.timesheet-scroll){max-height:calc(100dvh - 260px)}
@media(max-width:900px){.table-wrap:not(.timesheet-scroll){max-height:65dvh}}
@media print{.table-wrap{max-height:none!important;overflow:visible!important}}
.chat-extras .attachment-picker{order:5;flex-basis:100%;margin:0}.chat-extras .attachment-picker>.secondary,.chat-extras #chat-files-selected{display:none}.chat-extras .attachment-picked-list{display:flex;flex-wrap:wrap;gap:6px;max-height:110px;overflow:auto;margin:0}.chat-extras .attachment-picked-list li{margin:0;max-width:100%}.chat-extras .attachment-picked-list:empty{display:none}
@media(max-width:900px){#traction-spec table{table-layout:fixed}#traction-spec th{white-space:normal;width:60%}}
