/* Shared rhythm: compact spacing, never reduced personal text size. */
body.has-sidebar[data-density="compact"] .workspace{margin-top:26px;margin-bottom:36px}
body.has-sidebar[data-density="compact"] .workspace .page-heading{margin-bottom:20px;gap:16px}
body.has-sidebar[data-density="compact"] .workspace h1{font-size:1.9em}
body.has-sidebar[data-density="compact"] .workspace .card{padding:18px;margin-bottom:16px}
body.has-sidebar[data-density="compact"] .workspace .metrics{gap:12px;margin-bottom:16px}
body.has-sidebar[data-density="compact"] .workspace .metric{min-height:0;padding:16px 18px}
body.has-sidebar[data-density="compact"] .workspace .metric strong{font-size:1.6em}
body.has-sidebar[data-density="compact"] .workspace td{padding-block:12px}
body.has-sidebar[data-density="compact"] .workspace th{padding-block:12px;letter-spacing:0;text-transform:none}
body.has-sidebar[data-density="compact"] .workspace .section-heading{margin-bottom:14px}
.density-toggle{margin:6px 16px 12px;min-height:40px;font-size:13px;color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.page-sections{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);margin:0 0 18px}
.page-sections a{display:inline-flex;align-items:center;min-height:44px;padding:10px 15px;color:var(--muted);font-size:.9em;border-bottom:2px solid transparent}
.page-sections a[aria-selected="true"]{color:var(--text);border-bottom-color:var(--primary);font-weight:600}
[data-page-panel][hidden]{display:none!important}
[data-page-panel]>.card:last-child{margin-bottom:0}
.record-overview{display:flex;align-items:center;gap:32px;padding:0 2px 20px}
.record-overview>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.record-overview>div:first-child{flex:1}.record-overview strong{overflow-wrap:anywhere}
.record-overview .muted{font-size:.8em}
.service-detail .order-summary{border:1px solid var(--line);border-radius:12px;background:var(--surface);gap:0!important}
.service-detail .order-summary .card{border:0;border-radius:0;background:transparent;margin:0!important}
.service-detail .order-summary .card+.card{border-left:1px solid var(--line)}
.service-detail .order-summary small{font-size:.75em}
.service-detail .quick-menu-content small{padding:6px 8px}
.service-records-table{width:100%;table-layout:auto}
.service-records-table th{font-size:.8em;white-space:nowrap}
.service-records-table td{vertical-align:middle}
.record-identity{min-width:170px}.record-customer{display:block;margin-top:6px;font-size:.9em}
.record-description{width:32%;min-width:180px;max-width:400px}
.line-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:.9em;line-height:1.5;overflow-wrap:anywhere}
.record-assignee{display:block;margin-top:5px;font-size:.78em}
.service-records-table .quick-actions{min-width:0;flex-wrap:nowrap;gap:5px}
.service-records-table .quick-actions .small{min-height:40px;padding:8px 10px}
.service-records-table .badge{font-size:.78em;white-space:normal;text-align:left}
.status-trigger{cursor:pointer;min-height:38px;white-space:nowrap!important;gap:8px;border:1px solid transparent}
.quick-menu-content small{padding:6px 8px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.quick-menu-content form button{justify-content:flex-start}
.quick-menu-content form{margin:0}.quick-menu-content form button{border:0}
body .service-area-filters{padding-top:16px;align-items:flex-start;gap:12px}
.service-area-filters .service-area-search{flex:1;min-width:220px}
.service-area-search label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.record-filters{flex:0 0 auto}.record-filters>summary{border:1px solid var(--line);border-radius:9px;padding:10px 14px;min-height:44px;background:var(--surface);font-size:.88em}
.record-filters[open]{flex:1 1 100%;order:2}.record-filters[open]>summary{width:max-content}
.filter-options{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:14px;background:var(--canvas);border-radius:10px;margin-top:8px}
.filter-options .field{flex:1 1 150px}.service-results{margin:12px 0 6px}.service-area-tabs{padding-bottom:12px!important}
.settings-sections .settings-grid{display:block;max-width:760px}
@media(max-width:700px){
 .record-overview{flex-wrap:wrap;gap:16px}.record-overview>div:first-child{flex-basis:100%}
 .service-detail .page-heading{align-items:flex-start}.service-detail .page-heading .actions{gap:6px}
 .page-sections{flex-wrap:nowrap;overflow-x:auto}.page-sections a{white-space:nowrap;padding-inline:12px}
 .service-detail .order-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.has-sidebar[data-density="compact"] .service-detail .order-summary .card{padding:12px 8px}
 .service-detail .order-summary strong{font-size:1.1em!important;overflow-wrap:anywhere}.service-detail .order-summary .metric:last-child:nth-child(3){grid-column:auto}
 .service-detail .order-summary small{display:none}.service-detail .order-summary span{font-size:.72em}
 .service-records-table{min-width:0;display:block}
 .service-records-table thead{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
 .service-records-table tbody{display:block}
 .service-records-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 8px;padding:16px 0;border-bottom:1px solid var(--line)}
 body.has-sidebar .service-records-table td{display:block;border:0;padding:0!important;min-width:0;width:auto;max-width:none;text-align:left}
 .service-records-table .record-identity,.service-records-table .record-description,.service-records-table .empty{grid-column:1/-1}
 .service-records-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:400;color:var(--muted);margin-bottom:5px}
 .service-records-table .record-actions{align-self:end;justify-self:end}
 .service-records-table .record-customer{margin-top:4px}.service-records-table .small,.status-trigger{min-height:44px!important}
 .service-area-filters .service-area-search{flex-basis:calc(100% - 110px);min-width:0}
 .filter-options{display:grid;grid-template-columns:1fr;width:100%}.record-filters[open]{width:100%}
}
@media print{.density-toggle,.page-sections{display:none!important}[data-page-panel][hidden]{display:block!important}}
