/* Workspace components share the dashboard tokens. Legacy page-owned visual
   declarations have been removed from the old stylesheets; layout is retained. */
.sh-workspace-page{padding:0;margin:0;color:var(--sh-ink);font:400 14px/1.45 var(--sh-font);background:transparent;display:grid;align-content:start;gap:16px;min-width:0;min-height:0}
.sh-workspace-page :is(button,input,select,textarea){font:inherit}
.sh-workspace-page :is(.module-title-row,.page-title-row){display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0;margin:0 0 2px;background:none;border:0;box-shadow:none}
.sh-workspace-page :is(.module-title-row,.page-title-row) h1{font:600 28px/1.2 var(--sh-font);letter-spacing:-.035em;margin:0;color:var(--sh-ink)}
.sh-workspace-page :is(.module-title-row,.page-title-row) p{font-size:13px;line-height:1.5;color:var(--sh-muted);margin:5px 0 0}
.sh-workspace-page :is(.module-title-row,.page-title-row) .eyebrow{display:none}
.sh-workspace-page :is(h2,h3){font-family:var(--sh-font);font-weight:600;letter-spacing:-.02em;line-height:1.35}
.sh-workspace-page h2{font-size:18px}.sh-workspace-page h3{font-size:16px}
.sh-workspace-page :is(.button-primary,.primary-button){background:var(--sh-forest);color:white;border:1px solid var(--sh-forest);border-radius:8px;box-shadow:none;min-height:40px;padding:9px 14px;font-weight:500}
.sh-workspace-page :is(.button-secondary,.secondary-button){background:var(--sh-surface);color:var(--sh-forest);border:1px solid var(--sh-line);border-radius:8px;box-shadow:none;min-height:40px;padding:9px 14px;font-weight:500}
.sh-workspace-page :is(.button-primary,.primary-button):hover{background:#104a35}.sh-workspace-page :is(.button-secondary,.secondary-button):hover{background:var(--sh-hover)}
.sh-workspace-page :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--sh-focus);outline-offset:3px}
.sh-workspace-page :is(.fault-tabs,.knowledge-tabs){display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--sh-line);border-radius:10px;background:rgba(237,248,250,.7);width:fit-content;margin:0}
.sh-workspace-page :is(.fault-tabs,.knowledge-tabs) button{min-height:40px;padding:8px 14px;border:0;border-radius:7px;background:transparent;color:var(--sh-muted);font-size:14px;font-weight:500;box-shadow:none}
.sh-workspace-page :is(.fault-tabs,.knowledge-tabs) button.is-active{background:var(--sh-surface);color:var(--sh-forest);box-shadow:0 1px 2px #203b2010}
.sh-workspace-page :is(.fault-tabs,.knowledge-tabs) button:hover{color:var(--sh-forest);background:#f7faf4}
.sh-workspace-page :is(.fault-tabs,.fault-region-tabs) b{font-size:12px;font-weight:600;color:inherit;background:transparent;padding:0 4px}
.sh-workspace-page .fault-region-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0}
.sh-workspace-page .fault-region-tabs{display:flex;flex-wrap:wrap;gap:6px;background:none;border:0;padding:0}
.sh-workspace-page .fault-region-tabs button{min-height:36px;padding:6px 12px;border:1px solid var(--sh-line);border-radius:8px;background:var(--sh-surface);color:var(--sh-muted);font-weight:500}
.sh-workspace-page .fault-region-tabs button.is-active{color:var(--sh-forest);background:var(--sh-selected);border-color:#bed1c0}
.sh-workspace-page :is(.fault-toolbar,.knowledge-toolbar,.rota-toolbar){display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px;background:var(--sh-surface);border:1px solid var(--sh-line);border-radius:10px;margin:0}
.sh-workspace-page :is(.filter-search,.knowledge-search){display:flex;align-items:center;gap:8px;flex:1 1 220px;min-width:0;background:var(--sh-surface);border:1px solid #cdd5cd;border-radius:8px;min-height:40px;padding:0 10px;box-shadow:none}
.sh-workspace-page :is(.filter-search,.knowledge-search) input:not([type=checkbox]):not([type=radio]){width:100%;min-width:0;min-height:38px;padding:8px 0;border:0;background:none;outline-offset:0;box-shadow:none;font-size:14px;color:var(--sh-ink)}
.sh-workspace-page :is(select,input[type=date]){min-height:40px;padding:8px 10px;border:1px solid #cdd5cd;border-radius:8px;background-color:white;color:var(--sh-ink);font-size:14px;max-width:100%}
.sh-workspace-page .fault-toolbar select{flex:0 1 auto;min-width:130px;width:auto}.sh-workspace-page .fault-result-count{font-size:12px;color:var(--sh-muted);white-space:normal}
.sh-workspace-page :is(.fault-summary-strip,.map-summary,.rota-summary){display:grid;gap:12px;margin:0;background:none;border:0;box-shadow:none;padding:0}
.sh-workspace-page .fault-summary-strip,.sh-workspace-page .map-summary{grid-template-columns:repeat(5,minmax(0,1fr))}
.sh-workspace-page .rota-summary{grid-template-columns:2fr 1fr 1fr}
.sh-workspace-page :is(.fault-summary-strip,.map-summary,.rota-summary)>:is(button,div){display:flex;align-items:center;gap:12px;min-width:0;min-height:100px;padding:14px 16px;border:1px solid var(--sh-line);border-radius:var(--sh-radius);background:var(--sh-surface);color:var(--sh-ink);box-shadow:none;text-align:left}
.sh-workspace-page :is(.fault-summary-strip,.map-summary,.rota-summary)>:is(button,div):after{display:none}
.sh-workspace-page :is(.fault-summary-strip,.map-summary,.rota-summary) strong{display:block;font-size:28px;line-height:1.15;font-weight:600;font-variant-numeric:tabular-nums;color:var(--sh-ink);letter-spacing:-.025em}
.sh-workspace-page :is(.fault-summary-strip,.map-summary,.rota-summary) :is(small,span){font-size:12px;font-weight:400;line-height:1.4;color:var(--sh-muted);text-transform:none;letter-spacing:0}
.sh-workspace-page .fault-summary-strip>button>i{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;background:none;color:var(--sh-forest);border:0;border-radius:0;font-style:normal}
.sh-workspace-page .fault-summary-strip>button>i svg{width:22px;height:22px;display:block}
.sh-workspace-page .fault-summary-strip>button.is-selected{border-color:var(--sh-forest);background:#f6faf4}
.sh-workspace-page .fault-summary--critical.is-critical strong{color:var(--sh-red)}
.sh-workspace-page .map-summary>div{display:block}.sh-workspace-page .map-summary span{display:flex;align-items:center;gap:6px;margin-top:5px}
.sh-workspace-page :is(.fault-register-card,.rota-panel,.knowledge-panel){background:var(--sh-surface);border:1px solid var(--sh-line);border-radius:var(--sh-radius);box-shadow:none;min-width:0;overflow:hidden;margin:0}
.sh-workspace-page :is(.fault-register-card,.rota-table-wrap,.knowledge-apn-wrap){position:relative;overflow-x:auto;scrollbar-width:thin}
.sh-workspace-page :is(.faults-table,.rota-table,.knowledge-apn-table){width:100%;border-collapse:collapse;color:var(--sh-ink);background:var(--sh-surface)}
.sh-workspace-page .faults-table{min-width:1200px;table-layout:auto}.sh-workspace-page .rota-table{min-width:780px}
.sh-workspace-page :is(.faults-table,.rota-table,.knowledge-apn-table) th{background:rgba(248,252,255,.7);color:var(--sh-muted);font-size:12px;font-weight:500;text-align:left;letter-spacing:0;text-transform:none;padding:12px 14px;border:0;border-bottom:1px solid var(--sh-line);height:auto}
.sh-workspace-page :is(.faults-table,.rota-table,.knowledge-apn-table) td{padding:12px 14px;font-size:14px;line-height:1.45;font-weight:400;text-align:left;vertical-align:middle;border:0;border-bottom:1px solid var(--sh-line);background:var(--sh-surface);box-shadow:none}
.sh-workspace-page :is(.faults-table,.rota-table,.knowledge-apn-table) tbody tr:hover>td{background:#eff9fa}
.sh-workspace-page :is(.faults-table,.rota-table) strong{font-weight:600}.sh-workspace-page .fault-customer{color:#163e2a;font-weight:600;font-size:14px}
.sh-workspace-page .faults-table :is(p,small,.fault-county,.fault-updated){font-size:12px;color:var(--sh-muted);line-height:1.5}
.sh-workspace-page .faults-table td{white-space:normal}.sh-workspace-page .faults-table td:nth-child(4){min-width:230px;max-width:420px;white-space:normal;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset}
.sh-workspace-page .faults-table td:nth-child(4)>*{white-space:normal;overflow:visible;-webkit-line-clamp:unset;display:block;max-height:none}
.sh-workspace-page .system-type-mark--compact{display:flex;align-items:center;justify-content:center;padding:4px;width:84px;min-width:0;background:transparent;border:0;box-shadow:none}
.sh-workspace-page .system-type-mark--compact img{object-fit:contain;max-width:72px;max-height:24px;width:auto;height:auto}
.sh-workspace-page .fault-fix-type-select{min-width:125px;min-height:36px;font-size:12px;padding:6px}
.sh-workspace-page :is(.priority,.status-pill,.rota-badge,.fault-age){display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;line-height:1.4;padding:3px 7px;border-radius:5px;background:#f0f2ed;color:#536159;letter-spacing:0;text-transform:none;white-space:normal}
.sh-workspace-page :is(.priority--critical,.fault-age--critical,.rota-badge--danger){color:var(--sh-red);background:#fff0ef}
.sh-workspace-page :is(.priority--high,.fault-age--warning,.fault-age--alert,.fault-age--strong-warning,.fault-age--watch,.rota-badge--warning){color:var(--sh-amber);background:#fff5e5}
.sh-workspace-page :is(.rota-badge--success,.rota-badge--live,.status-pill--resolved){color:var(--sh-forest);background:var(--sh-selected)}
.sh-workspace-page .rota-summary-primary strong{font-size:18px}.sh-workspace-page .rota-summary-stat{flex-direction:column;align-items:flex-start;justify-content:center;gap:5px}.sh-workspace-page .rota-summary-stat strong{font-size:22px}
.sh-workspace-page .rota-summary-icon{display:none}.sh-workspace-page .rota-rotation{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 12px;background:var(--sh-surface);border:1px solid var(--sh-line);border-radius:10px;margin:0;font-size:12px}
.sh-workspace-page .rota-rotation>div{display:flex;align-items:center;gap:6px;padding:5px 7px;border-radius:7px;background:transparent;border:0;font-size:13px}.sh-workspace-page .rota-rotation .is-next{background:var(--sh-selected);color:var(--sh-forest)}
.sh-workspace-page .rota-rotation .staff-avatar{width:28px;height:28px;min-width:28px}.sh-workspace-page .rota-rotation b{font-weight:500}
.sh-workspace-page .rota-toolbar{border:0;border-bottom:1px solid var(--sh-line);border-radius:0;justify-content:space-between;padding:14px 16px}.sh-workspace-page .rota-toolbar>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sh-workspace-page .rota-toolbar button,.sh-workspace-page .rota-actions button{min-height:38px;border:1px solid var(--sh-line);border-radius:8px;background:var(--sh-surface);color:var(--sh-forest);font-size:13px;padding:7px 10px}
.sh-workspace-page .rota-table .rota-month-row th{background:#e2efef;color:var(--sh-forest);font-size:12px;font-weight:600;padding:8px 14px}
.sh-workspace-page .rota-row--mine>td:first-child{box-shadow:inset 3px 0 var(--sh-forest)}.sh-workspace-page .rota-row--live>td{background:#f1f7ed}
.sh-workspace-page .rota-table td>span{display:block;font-size:12px;color:var(--sh-muted)}.sh-workspace-page .rota-person{display:flex;align-items:center;gap:9px}.sh-workspace-page .rota-person .staff-avatar{width:32px;height:32px}
.sh-workspace-page .rota-person strong{font-size:14px}.sh-workspace-page .rota-person small{display:block;font-size:12px;color:var(--sh-muted)}
.sh-workspace-page .knowledge-toolbar{padding:0;background:none;border:0}.sh-workspace-page .knowledge-panel>header{display:flex;align-items:center;gap:12px;padding:16px 18px;background:rgba(248,252,255,.7);border-bottom:1px solid var(--sh-line);color:var(--sh-forest)}
.sh-workspace-page .knowledge-panel>header h2{font-size:18px;color:var(--sh-ink);margin:0}.sh-workspace-page .knowledge-panel>header p{font-size:13px;color:var(--sh-muted);margin:3px 0 0}
.sh-workspace-page .knowledge-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px}
.sh-workspace-page .knowledge-profile{min-width:0;border:0;border-radius:0;background:var(--sh-surface);box-shadow:none}.sh-workspace-page .knowledge-profile:before{display:none}
.sh-workspace-page .knowledge-profile>header{display:flex;align-items:center;gap:9px;padding:8px 0 12px;border-bottom:1px solid var(--sh-line);background:var(--sh-surface);color:var(--sh-forest)}
.sh-workspace-page .knowledge-profile>header strong{font-size:16px;font-weight:600}.sh-workspace-page .knowledge-profile>header span{font-size:12px;color:var(--sh-muted)}
.sh-workspace-page .knowledge-profile dl{display:block;margin:0}
.sh-workspace-page .knowledge-profile dl>div{border-left:0;border-right:0;display:grid;grid-template-columns:140px minmax(0,1fr);align-items:start;gap:10px;padding:8px 0;background:var(--sh-surface);border-bottom:1px solid #eef0ea}
.sh-workspace-page .knowledge-profile dt{font-size:13px;color:var(--sh-muted);font-weight:500;letter-spacing:0;text-transform:none}.sh-workspace-page .knowledge-profile dd{min-width:0;margin:0}
.sh-workspace-page .knowledge-copy{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:4px 7px;border:0;border-radius:5px;background:transparent;color:var(--sh-ink);width:100%;text-align:left}
.sh-workspace-page .knowledge-copy:not(.is-static):hover{background:var(--sh-hover);color:var(--sh-forest)}.sh-workspace-page .knowledge-copy code{font:400 13px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:normal;overflow-wrap:anywhere;color:inherit}
.sh-workspace-page .knowledge-copy svg{width:15px;height:15px;flex-shrink:0;color:var(--sh-forest)}
.sh-workspace-page .knowledge-caution{padding:12px 16px;margin:12px 16px;background:#fff6e6;border:1px solid #efdcb5;border-radius:8px;color:#79500e;font-size:13px;line-height:1.6}
.sh-workspace-page .knowledge-check-grid,.sh-workspace-page .knowledge-symptoms{gap:12px;padding:16px}.sh-workspace-page .knowledge-check-grid article,.sh-workspace-page .knowledge-symptoms article{background:var(--sh-surface);border:1px solid var(--sh-line);border-radius:8px;padding:14px;box-shadow:none}
.sh-workspace-page .knowledge-check-grid article>span{color:var(--sh-forest);background:var(--sh-selected);font-size:13px}.sh-workspace-page .knowledge-check-grid p,.sh-workspace-page .knowledge-symptoms span,.sh-workspace-page .knowledge-mobile-checks li{font-size:13px;line-height:1.6;color:var(--sh-muted)}
.sh-workspace-page .knowledge-mobile-checks{padding-bottom:16px}.sh-workspace-page .knowledge-mobile-checks ol{padding:16px 24px}.sh-workspace-page .knowledge-copy-feedback{color:var(--sh-forest);font-size:13px}
.sh-workspace-page :is(.rota-empty,.knowledge-empty,.map-config-state,.map-empty-overlay){font-size:14px;color:var(--sh-muted);padding:24px;background:var(--sh-surface);border-radius:10px}
.sh-workspace-page .map-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;background:transparent;border:0;box-shadow:none;min-height:580px;height:calc(100vh - 280px)}
.sh-workspace-page .map-filters{position:relative;inset:auto;transform:none;display:flex;flex-direction:column;gap:12px;width:auto;min-width:0;padding:16px;background:var(--sh-surface);border:1px solid var(--sh-line);border-radius:var(--sh-radius);box-shadow:none;overflow-y:auto}
.sh-workspace-page .map-filter-heading{color:var(--sh-ink);font-size:16px}.sh-workspace-page .map-select{display:grid;gap:5px}.sh-workspace-page .map-select>span,.sh-workspace-page .check-filter{font-size:13px;color:var(--sh-muted);font-weight:500}
.sh-workspace-page .map-filters .filter-search{flex:0 0 auto}.sh-workspace-page .map-filter-foot{display:grid;gap:8px;font-size:12px;color:var(--sh-muted);border-top:1px solid var(--sh-line);padding-top:12px}
.sh-workspace-page .map-stage{position:relative;border:1px solid var(--sh-line);border-radius:var(--sh-radius);overflow:hidden;min-width:0;min-height:580px;background:#eef2eb}.sh-workspace-page .google-map{height:100%;width:100%;min-height:580px}
.sh-workspace-page .map-live-state{color:var(--sh-muted);font-size:12px;background:none;border:0}.sh-workspace-page .map-mobile-actions button{background:var(--sh-surface);color:var(--sh-forest);border:1px solid var(--sh-line);border-radius:8px;min-height:40px}
.fault-map-marker>i{display:block;box-sizing:border-box;width:12px;height:12px;border:2px solid #fff1f3;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff8aa0,#df3152 72%);box-shadow:0 0 0 5px #df315226,0 1px 4px #8f183040}
.fault-map-marker>i::after{display:none;content:none}
.fault-map-marker:hover>i,.fault-map-marker:focus-within>i{background:#c91f42;box-shadow:0 0 0 6px #df315240,0 1px 4px #8f183040}
.live-map-page .marker-key{background:#df3152;border:2px solid #fff1f3;border-radius:50%;box-shadow:0 0 0 3px #df315226}
.fault-map-marker>span{display:none}.fault-map-marker:hover>span,.fault-map-marker:focus-within>span{display:block;background:var(--sh-surface);color:var(--sh-ink);font:500 12px/1.4 var(--sh-font);border-radius:5px;padding:4px 6px}
.engineer-map-marker{font-family:var(--sh-font)}.engineer-map-marker strong{font-size:12px}.engineer-map-marker small{font-size:11px}
.sh-workspace-page .map-fault-card{background:var(--sh-surface);border:1px solid var(--sh-line);border-radius:var(--sh-radius);box-shadow:0 8px 30px #182c1f18;color:var(--sh-ink);max-width:calc(100vw - 32px)}
.sh-workspace-page .map-fault-card h2{font-size:18px}.sh-workspace-page .map-fault-card :is(p,dt,dd,small){font-size:13px;line-height:1.5}.sh-workspace-page .map-fault-card dt{color:var(--sh-muted)}
@media(max-width:1320px){.sh-workspace-page .fault-summary-strip,.sh-workspace-page .map-summary{gap:8px}.sh-workspace-page .knowledge-profile dl>div{grid-template-columns:110px minmax(0,1fr)}}
@media(max-width:1100px){.sh-workspace-page .knowledge-profile-grid{grid-template-columns:1fr}.sh-workspace-page .rota-summary{grid-template-columns:1fr 1fr}.sh-workspace-page .rota-summary-primary{grid-column:1/-1}.sh-workspace-page .map-workspace{grid-template-columns:1fr;height:auto}.sh-workspace-page .map-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.sh-workspace-page .map-filter-heading,.sh-workspace-page .map-filter-foot{grid-column:1/-1}.sh-workspace-page .filter-mobile-close,.sh-workspace-page .map-filter-scrim{display:none}.sh-workspace-page .map-mobile-actions>button:first-child{display:none}.sh-workspace-page .google-map{height:600px}}
@media(max-width:700px){.sh-workspace-page :is(.module-title-row,.page-title-row){align-items:flex-start;flex-direction:column}.sh-workspace-page .fault-summary-strip,.sh-workspace-page .map-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.sh-workspace-page .rota-summary{grid-template-columns:1fr}.sh-workspace-page .knowledge-tabs{width:100%}.sh-workspace-page .knowledge-profile dl>div{grid-template-columns:1fr;gap:2px}.sh-workspace-page .map-filters{grid-template-columns:1fr}.sh-workspace-page .fault-toolbar>*{max-width:100%}}
.sh-workspace-page .faults-table td:first-child{min-width:220px;width:20%}
.sh-workspace-page .faults-table td:nth-child(6)>*{text-align:left;align-items:flex-start;justify-content:flex-start}
.sh-workspace-page .fault-customer strong{display:block;white-space:normal;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset;max-height:none}
.sh-workspace-page .fault-toolbar{min-height:0;height:auto;gap:8px}
.sh-workspace-page .fault-result-count{margin:0;padding:0;min-height:0;height:auto;line-height:18px}
.sh-workspace-page .rota-summary-stat:last-child{border:1px solid var(--sh-line)}
.sh-workspace-page .sh-rota-label{display:block;font-size:12px;color:var(--sh-forest);margin-top:3px}
.live-map-page .map-filters{padding:16px;gap:10px;background:var(--sh-surface);border-color:#ffffffcf;box-shadow:0 8px 24px #36576c0a}
.live-map-page .map-stage{border-color:#ffffffcf;box-shadow:0 8px 24px #36576c0a}
.live-map-page .map-select>span,.live-map-page .check-filter{font-size:13px;line-height:1.5;color:var(--sh-muted)}
.live-map-page .map-filters .check-filter{min-height:32px;align-items:center}
.live-map-page .map-filter-foot{margin-top:auto;line-height:1.5}
.live-map-page .map-summary>div{min-height:88px;padding:14px 16px;border-color:#ffffffcf}
.live-map-page .map-summary strong{font-size:26px}
.live-map-page .map-filter-heading{font-size:16px;font-weight:600}
@media(max-width:1100px){.live-map-page .map-filter-foot{margin-top:0}.live-map-page .map-filters{gap:10px 16px}}
