/* M3E-VNEXT-20261016 / G6. Page-owned workbench and registration composition.
   The carousel owns item width/height, placement and visibility at every size. */
html[data-m3e-theme] #workbenchHome { --content-ease:cubic-bezier(.2,.8,.2,1); }
html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .m3e-home-date { gap:6px 12px; padding:6px 12px; margin:0 0 14px; border:1px solid var(--md-outline); border-radius:18px; background:var(--m3e-surface); }
#workbenchHome .home-report-mark { display:grid; place-items:center; width:32px; height:32px; border-radius:11px; background:var(--md-primary-container); color:var(--md-primary); font-size:19px; flex:none; }
html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .m3e-home-date>p { margin:0 0 0 auto; font-size:12px; color:var(--md-muted); line-height:1.5; }
html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .home-dashboard { gap:20px; align-items:start; }
html[data-m3e-theme] #workbenchHome .m3e-home-overview { gap:12px; align-content:start; grid-template-rows:auto auto; }
html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .home-hero-main { display:block; padding:24px; border-radius:30px 30px 12px 30px; background:var(--md-primary-container); color:var(--md-on-primary-container); overflow:hidden; }
html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .home-hero-copy { display:flex; flex-direction:column; align-items:stretch; gap:0; width:100%; text-align:left; }
#workbenchHome .home-volume-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
html[data-m3e-theme] #moduleViewWorkbench #workbenchHome #homeHoursTitle { margin:0; max-width:none; min-height:0; font-size:20px; line-height:1.4; font-weight:720; letter-spacing:-.3px; color:inherit; }
#workbenchHome .home-volume-label { padding:5px 9px; font-size:11px; font-weight:600; border:1px solid color-mix(in srgb,currentColor 22%,transparent); border-radius:9px; }
#workbenchHome .home-volume-lead { display:grid; grid-template-columns:minmax(0,1fr) minmax(92px,35%); align-items:center; gap:8px; margin:12px 0 4px; }
#workbenchHome .home-volume-lead>div { min-width:0; }
html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .m3e-home-total { display:flex; align-items:baseline; justify-content:flex-start; gap:8px; margin:0; font-size:14px; line-height:1.2; }
html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .m3e-home-total strong { font-size:clamp(36px,3.8vw,54px); line-height:1.1; letter-spacing:-1.5px; color:inherit; font-weight:760; font-variant-numeric:tabular-nums; }
#workbenchHome .m3e-home-total>span { font-size:13px; letter-spacing:0; }
html[data-m3e-theme] #workbenchHome .home-hero-compare { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:3px 9px; margin-top:8px; color:inherit; font-size:12px; }
html[data-m3e-theme] #workbenchHome .home-hero-compare .compare-row { justify-content:flex-start; font-size:12px; }
#workbenchHome .home-hero-compare:empty { display:none; }
html[data-m3e-theme] #workbenchHome #homeHoursContext { margin:8px 0 12px; color:inherit; opacity:.82; font-size:12px; line-height:1.6; }
#workbenchHome .home-parcel-scene { width:100%; max-width:174px; max-height:112px; justify-self:end; color:var(--md-primary); overflow:visible; }
#workbenchHome .home-parcel-guide { stroke:currentColor; stroke-width:1.4; stroke-dasharray:3 5; opacity:.25; }
#workbenchHome .home-parcel-shadow { fill:currentColor; opacity:.12; }
#workbenchHome .home-parcel-box { fill:var(--m3e-surface); stroke:currentColor; stroke-width:2; stroke-linejoin:round; }
#workbenchHome .home-parcel-fold { stroke:currentColor; stroke-width:2; stroke-linejoin:round; }
#workbenchHome .home-parcel-label { fill:var(--md-accent); stroke:currentColor; stroke-width:1.2; }
#workbenchHome .home-parcel-check { fill:var(--md-accent); stroke:var(--md-on-accent); stroke-width:1.5; }
#workbenchHome .home-parcel-tick { stroke:var(--md-on-accent); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
#workbenchHome .home-parcel-scan { stroke:currentColor; stroke-width:2; stroke-linecap:round; }
#workbenchHome .home-volume-mix { display:flex; gap:3px; height:8px; padding:2px; box-sizing:content-box; margin:0 0 2px; border-radius:10px; background:color-mix(in srgb,var(--m3e-surface) 60%,transparent); overflow:hidden; }
#workbenchHome .home-volume-mix[hidden] { display:none; }
#workbenchHome .home-volume-mix>span { min-width:0; flex-shrink:1; border-radius:8px; background:var(--md-primary); }
#workbenchHome .home-volume-mix>.home-volume-pollution { background:var(--md-on-accent); }
html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .m3e-home-hero-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:12px 0 18px; padding:0; border:0; text-align:left; }
html[data-m3e-theme] #workbenchHome .m3e-home-hero-facts>div { padding:0; background:none; color:inherit; border:0; border-radius:0; }
html[data-m3e-theme] #workbenchHome .m3e-home-hero-facts>div+div { padding-left:16px; border-left:1px solid color-mix(in srgb,currentColor 20%,transparent); }
html[data-m3e-theme] #workbenchHome .m3e-home-hero-facts dt { display:flex; justify-content:flex-start; align-items:center; gap:5px; font-size:12px; color:inherit; line-height:1.5; }
#workbenchHome .m3e-home-hero-facts dt>.m3e-symbol { font-size:17px; }
#workbenchHome .home-broken-fact dt>.m3e-symbol { color:var(--md-primary); }
#workbenchHome .home-pollution-fact dt>.m3e-symbol { color:var(--md-on-accent); }
html[data-m3e-theme] #workbenchHome .m3e-home-hero-facts dd { margin:8px 0 0; font-size:12px; line-height:1.3; }
html[data-m3e-theme] #workbenchHome .m3e-home-hero-facts strong { color:inherit; font-size:29px; font-weight:700; letter-spacing:-.6px; }
#workbenchHome .home-hero-share { display:block; margin-top:5px; font-size:11px; color:inherit; opacity:.8; }
#workbenchHome .home-volume-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
html[data-m3e-theme] #workbenchHome #homeOpenHours { display:flex; justify-content:space-between; flex:1 1 auto; gap:14px; margin:0; min-height:46px; padding:10px 16px; border-radius:17px; border:0; color:var(--md-on-primary); background:var(--md-primary); font-size:14px; }
#workbenchHome #homeHoursRetry { min-height:44px; margin:0; color:inherit; }
html[data-m3e-theme] #workbenchHome .home-hero-main :is(a,button):focus-visible { outline-color:var(--md-primary); }
html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .home-operation-card { position:relative; border-radius:22px; border:1px solid var(--md-outline); background:var(--m3e-surface); color:var(--md-on-surface); overflow:hidden; }
html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .home-operation-card>a { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto 1fr auto; gap:8px; padding:16px; }
#workbenchHome .home-operation-heading { gap:7px; font-size:14px; line-height:1.4; font-weight:650; }
#workbenchHome .home-operation-heading>.m3e-symbol { display:grid; place-items:center; flex:none; width:30px; height:32px; border-radius:10px 10px 5px 10px; background:var(--md-accent); color:var(--md-on-accent); font-size:19px; }
#workbenchHome .home-schedule-card .home-operation-heading>.m3e-symbol { background:var(--md-primary-container); color:var(--md-on-primary-container); border-radius:10px 5px 10px 10px; }
#workbenchHome .home-operation-number { margin:2px 0 0; gap:5px; }
#workbenchHome .home-operation-number strong { font-size:31px; letter-spacing:-.8px; line-height:1.2; }
#workbenchHome .home-operation-number small { font-size:12px; }
#workbenchHome .home-schedule-card .home-operation-number strong { font-size:19px; letter-spacing:0; line-height:1.4; }
#workbenchHome .home-operation-description { color:var(--md-muted); font-size:12px; line-height:1.6; }
#workbenchHome .home-schedule-card .home-operation-description { color:var(--md-on-surface); font-size:13px; font-weight:600; }
#workbenchHome .home-operation-date { font-size:11px; color:var(--md-muted); }
#workbenchHome .home-operation-action { padding-top:8px; margin-top:2px; border-top:1px solid var(--md-surface-high); color:var(--md-primary); font-size:12px; min-height:36px; }
#workbenchHome .home-operation-action>.m3e-symbol { font-size:19px; }
html[data-m3e-theme] #workbenchHome :is(.home-registration-summary,.home-people-panel,.m3e-home-notices) { padding:22px; border-radius:28px; border:1px solid var(--md-outline); background:var(--m3e-surface); }
#workbenchHome .home-module-heading { margin-bottom:6px; gap:8px; }
#workbenchHome :is(.home-module-heading,.home-section-header) h2 { font-size:20px; font-weight:700; letter-spacing:-.3px; line-height:1.4; }
#workbenchHome .home-section-header { align-items:center; gap:8px 12px; }
#workbenchHome .home-section-header>div { min-width:0; }
#workbenchHome .home-section-header>div>p { font-size:12px; margin:5px 0 0; }
#workbenchHome .home-section-header>a { padding:6px 0 6px 8px; font-size:12px; min-height:40px; }
html[data-m3e-theme] #workbenchHome .home-quality-grid { gap:12px; margin-top:12px; }
html[data-m3e-theme] #workbenchHome .home-metric-panel { display:grid; grid-template-columns:minmax(0,1fr); align-content:start; gap:6px; padding:16px; border:0; border-radius:22px 22px 10px 22px; background:var(--md-surface-container); }
html[data-m3e-theme] #workbenchHome .home-metric-panel.quality-standard { border-radius:22px 10px 22px 22px; background:color-mix(in srgb,var(--md-accent) 48%,var(--m3e-surface)); }
#workbenchHome .home-metric-panel>header { min-height:38px; align-items:center; gap:6px; }
#workbenchHome .home-metric-panel>header h3 { font-size:15px; font-weight:650; }
#workbenchHome .home-metric-panel .card-heading-art,#workbenchHome .home-metric-panel .card-heading-art .card-illustration { width:40px; height:36px; }
#workbenchHome .home-metric-panel .home-metric-value { margin:4px 0 0; font-size:clamp(25px,2.5vw,36px); line-height:1.15; letter-spacing:-1px; }
#workbenchHome .home-metric-panel>p:not(.home-metric-value) { margin:0; font-size:11px; }
#workbenchHome .home-metric-panel .card-meter-slot { margin:5px 0 8px; }
#workbenchHome .home-fact-rows { margin:0; gap:8px; }
#workbenchHome .home-fact-rows>div { font-size:12px; gap:6px; }
#workbenchHome .home-fact-rows dt { font-size:12px; }
#workbenchHome .home-fact-rows dd { font-size:12px; font-weight:600; }
#workbenchHome .home-metric-panel>a { margin-top:5px; padding:8px 0 0; min-height:38px; font-size:12px; }
#workbenchHome :is(#homeDateRange,#homeRegistrationStatus)[hidden] { display:none; }
#workbenchHome .m3e-home-notices .home-notice { min-height:0; padding:14px 0; grid-template-columns:36px minmax(0,1fr) 18px; }
#workbenchHome .m3e-home-notices .home-notice-icon { width:36px; height:38px; border-radius:13px 13px 6px 13px; }
#workbenchHome .m3e-home-notices .home-notice p { font-size:12px; line-height:1.6; }
#workbenchHome .m3e-home-quality { min-height:60px; padding:12px 14px; border-radius:18px; margin-top:14px; }

/* One person is one record: identity, participation, registration facts, quality. */
html[data-m3e-theme] :is(#workbenchHome .home-person-list .person-card,#registrationRoutes>details.registration-person-card>summary.person-card) { position:relative; border-radius:24px; padding:20px; gap:12px; background:var(--md-surface-container); color:var(--md-on-surface); box-shadow:none; }
html[data-m3e-theme] #registrationRoutes>details.registration-person-card>summary.person-card { grid-template-areas:"identity" "main" "facts" "quality" "note" "action"; }
html[data-m3e-theme] :is(#workbenchHome .home-person-list>li:nth-child(3n+2) .person-card,#registrationRoutes>details.registration-person-card:nth-child(3n+2)>.person-card) { background:color-mix(in srgb,var(--md-primary-container) 68%,var(--m3e-surface)); color:var(--md-on-primary-container); border-radius:24px; }
html[data-m3e-theme] :is(#workbenchHome .home-person-list>li:nth-child(3n) .person-card,#registrationRoutes>details.registration-person-card:nth-child(3n)>.person-card) { background:color-mix(in srgb,var(--md-accent) 48%,var(--m3e-surface)); color:var(--md-on-accent); border-radius:24px; }
:is(#workbenchHome,#registrationRoutes) .person-card-identity { gap:10px; align-items:center; }
html[data-m3e-theme] :is(#workbenchHome,#registrationRoutes) .person-card-avatar { width:42px; height:42px; flex:0 0 42px; font-size:20px; border-radius:16px 16px 6px 16px; background:var(--md-primary); color:var(--md-on-primary); }
:is(#workbenchHome,#registrationRoutes) .person-card-identity>span:nth-child(2) { min-width:0; }
:is(#workbenchHome,#registrationRoutes) .person-card-identity strong { font-size:21px; line-height:1.35; font-weight:700; }
:is(#workbenchHome,#registrationRoutes) .person-card-identity small { display:block; font-size:11px; opacity:.75; }
:is(#workbenchHome,#registrationRoutes) .person-card-record-mark { display:block; margin-left:auto; width:34px; height:28px; flex:none; opacity:.5; color:inherit; }
html[data-m3e-theme] #registrationRoutes .person-card .person-card-record-mark { width:34px; height:28px; padding:0; }
.person-card-record-mark svg { width:100%; height:100%; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
html[data-m3e-theme] :is(#workbenchHome,#registrationRoutes) .person-card-main { display:flex; align-items:center; justify-content:space-between; min-height:76px; gap:12px; padding:4px 0; background:none; border-radius:0; }
html[data-m3e-theme] :is(#workbenchHome,#registrationRoutes) .person-card-metric b { font-size:40px; line-height:1.1; letter-spacing:-1px; }
:is(#workbenchHome,#registrationRoutes) .person-card-metric>small { font-size:12px; }
:is(#workbenchHome,#registrationRoutes) .person-card-metric>span { display:block; font-size:12px; margin-top:4px; }
html[data-m3e-theme] :is(#workbenchHome,#registrationRoutes) .person-card-main>.card-illustration { width:98px; max-width:40%; height:76px; }
html[data-m3e-theme] #registrationRoutes .route-person-journey { padding:0 4px 10px; flex:0 1 124px; width:124px; max-width:43%; background:none; border-radius:0; }
html[data-m3e-theme] #registrationRoutes .route-person-journey .card-illustration { width:104px; height:76px; max-width:100%; }
#registrationRoutes .route-person-path { height:19px; }
html[data-m3e-theme] :is(#workbenchHome,#registrationRoutes) .person-card-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; border-radius:15px; overflow:hidden; background:color-mix(in srgb,currentColor 13%,transparent); }
html[data-m3e-theme] :is(#workbenchHome,#registrationRoutes) .person-card-facts>span { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:11px 12px; border-radius:0; background:var(--m3e-surface); color:var(--md-on-surface); font-size:12px; }
:is(#workbenchHome,#registrationRoutes) .person-card-facts>span>small { font-size:11px; color:var(--md-muted); }
:is(#workbenchHome,#registrationRoutes) .person-card-facts>span>span { font-size:12px; line-height:1.4; }
html[data-m3e-theme] :is(#workbenchHome,#registrationRoutes) .person-card-facts b { font-size:22px; line-height:1.25; font-weight:650; }
:is(#workbenchHome,#registrationRoutes) .person-card-quality { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; font-size:12px; }
:is(#workbenchHome,#registrationRoutes) .person-card-quality>span { display:block; font-size:12px; }
:is(#workbenchHome,#registrationRoutes) .person-card-quality b { display:inline; font-size:13px!important; margin-left:4px; }
:is(#workbenchHome,#registrationRoutes) .person-card-quality .card-meter { height:5px; margin-top:7px; background:color-mix(in srgb,currentColor 13%,transparent); }
:is(#workbenchHome,#registrationRoutes) .person-card-note { font-size:11px; line-height:1.6; color:inherit; opacity:.8; }
:is(#workbenchHome,#registrationRoutes) .person-card-action { min-height:40px; padding-top:8px; margin-top:auto; font-size:13px; }
html[data-m3e-theme] #registrationRoutes .person-card-action :is(.when-closed,.when-open) { font-size:13px; }
html[data-m3e-theme] #registrationRoutes>details.registration-person-card { border:1px solid var(--md-outline); border-radius:25px; background:var(--m3e-surface); }
html[data-m3e-theme] #registrationRoutes>details.registration-person-card[open] { border-color:var(--md-primary); box-shadow:none; }
html[data-m3e-theme] #registrationRoutes .person-card-detail { padding:18px; background:var(--m3e-surface); }
html[data-m3e-theme] #registrationRoutes .person-card-detail-overview { display:flex; flex-wrap:wrap; align-items:center; padding:10px 12px; margin:0; border-radius:12px; background:var(--md-primary-container); color:var(--md-on-primary-container); font-size:12px; }
html[data-m3e-theme] #registrationRoutes .person-card-detail h4 { display:flex; flex-wrap:wrap; justify-content:flex-start; font-size:15px; gap:6px; line-height:1.5; }
#registrationRoutes .person-card-detail h4>span { margin-left:auto; }
#registrationRoutes .registration-trip-group h4::before { content:''; width:8px; height:8px; flex:none; border-radius:3px; background:var(--md-primary); }
#registrationRoutes .registration-trip-group[data-trip-tier="1"] h4::before { opacity:.65; }
#registrationRoutes .registration-trip-group[data-trip-tier="2"] h4::before { opacity:.35; }
html[data-m3e-theme] #registrationRoutes :is(.registration-device-list,.registration-trip-list) { margin:10px 0 0; }
html[data-m3e-theme] #registrationRoutes :is(.registration-device-list,.registration-trip-list)>li { display:block; padding:16px; border:1px solid var(--md-outline); border-radius:19px; background:var(--md-surface-container); }
#registrationRoutes .registration-linked-card>summary { gap:10px; padding:0; }
#registrationRoutes .registration-linked-card>summary header { margin:0 0 8px; }
html[data-m3e-theme] #registrationRoutes .registration-trip-list li header strong { font-size:17px; line-height:1.45; }
html[data-m3e-theme] #registrationRoutes .registration-trip-time { display:block; margin-top:4px; font-size:12px; }
html[data-m3e-theme] #registrationRoutes .registration-trip-list .trip-share { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 8px; margin:8px 0 0; font-size:12px; }
#registrationRoutes .registration-contribution { display:block; margin:8px 0 12px; font-size:11px; color:var(--md-muted); }
#registrationRoutes .registration-contribution>.card-meter { height:7px; margin-top:7px; }
html[data-m3e-theme] #registrationRoutes .registration-trip-list dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:12px 0; margin:0; }
html[data-m3e-theme] #registrationRoutes .registration-trip-list dd strong { font-size:23px; }
#registrationRoutes .registration-detail-action { min-height:44px; margin-top:8px; padding-top:8px; border-top:1px solid var(--md-outline); color:var(--md-primary); font-size:12px; }
#registrationRoutes .registration-linked-toggle { padding:5px 9px; border-radius:10px; background:var(--m3e-surface); font-size:11px; }
#registrationRoutes .registration-linked-content { margin-top:10px; padding-top:10px; border-top:1px solid var(--md-outline); }
#registrationRoutes .registration-participant-list { display:grid; gap:8px; padding:0; margin:0; list-style:none; }
#registrationRoutes .registration-participant-list>li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 10px; padding:12px; border-radius:12px; background:var(--m3e-surface); }
#registrationRoutes .registration-participant-list>li>span,#registrationRoutes .registration-participant-list>li>.card-meter { grid-column:1/-1; }
#registrationRoutes .registration-participant-list>li>.card-meter { height:4px; margin:2px 0 0; }
#registrationRoutes .registration-device-people>section { padding:12px; border-radius:12px; background:var(--m3e-surface); }
#registrationRoutes .registration-route-details { margin-top:18px; border-top:1px solid var(--md-outline); }
#registrationRoutes .registration-route-details>summary { font-size:14px; }
#registrationRoutes .registration-route-hour { margin:0 0 8px; padding:0 12px 12px; border-radius:14px; background:var(--md-surface-container); }
#registrationRoutes .registration-table { border-radius:12px; background:var(--m3e-surface); }
#registrationRoutes .registration-table :is(th,td) { padding:11px 12px; }
html[data-m3e-theme] #routeApp .route-area-switch { padding:5px; border-radius:20px; border:1px solid var(--md-outline); background:var(--m3e-surface); }
html[data-m3e-theme] #routeApp .route-area-switch button { border-radius:15px; font-size:14px; }
html[data-m3e-theme] #routeApp #registrationRoute { margin-top:14px; padding:22px; border:1px solid var(--md-outline); border-radius:28px; background:var(--m3e-surface); }
html[data-m3e-theme] #routeApp #registrationSummary .registration-facts { gap:1px; margin:14px 0 8px; overflow:hidden; border-radius:18px; background:var(--md-outline); }
html[data-m3e-theme] #routeApp #registrationSummary .registration-facts>div { padding:14px; border-radius:0; background:var(--md-surface-container); }
#routeApp #registrationSummary .registration-facts dd { font-size:24px; margin-top:6px; }
#routeApp #registrationSummary .registration-facts small { font-size:11px; line-height:1.55; }
#routeApp #registrationSummary .registration-trip-totals { padding:10px 0; margin:0; font-size:12px; }

/* The other route view uses the same report-and-record rhythm. */
html[data-m3e-theme] #routeApp #routeKpis { grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr)); gap:10px; margin:0 0 18px; }
html[data-m3e-theme] #routeApp #routeKpis>.kpi { min-height:0; padding:18px; border:1px solid var(--md-outline); border-radius:22px; background:var(--m3e-surface); box-shadow:none; }
html[data-m3e-theme] #routeApp #routeKpis>.kpi>.kpi-label { font-size:12px; }
html[data-m3e-theme] #routeApp #routeKpis>.kpi>strong { margin:14px 0 8px; font-size:30px; font-weight:700; letter-spacing:-.7px; }
html[data-m3e-theme] #routeApp #routeKpis>.kpi>p { font-size:11px; line-height:1.6; }
html[data-m3e-theme] #routeApp #routeKpis>.kpi>.route-illustration { position:absolute; top:12px; right:12px; width:36px; height:30px; opacity:.55; }
html[data-m3e-theme] #routeApp #routeKpis>.kpi.total { grid-template-columns:minmax(0,1fr) 90px; grid-template-areas:"label art" "value art"; gap:6px; background:var(--md-primary-container); color:var(--md-on-primary-container); border-color:transparent; border-radius:24px 24px 10px 24px; }
html[data-m3e-theme] #routeApp #routeKpis>.kpi.total>strong { margin:0; font-size:40px; color:inherit; }
html[data-m3e-theme] #routeApp #routeKpis>.kpi.total>.route-illustration { position:static; width:90px; height:88px; opacity:1; }
html[data-m3e-theme] #routeApp .top-panel { padding:22px; border:1px solid var(--md-outline); border-radius:28px; background:var(--m3e-surface); box-shadow:none; }
html[data-m3e-theme] #routeApp .section-heading h2 { font-size:20px; font-weight:700; }
#routeApp .top-panel .section-heading { align-items:center; gap:8px 16px; }
html[data-m3e-theme] #routeApp #routeTop>.top-route { grid-template-columns:minmax(0,1fr) 84px; grid-template-areas:"heading art" "name art" "metrics metrics" "track track" "comparison comparison" "action action"; padding:20px; gap:10px 12px; border:1px solid var(--md-outline); border-radius:22px; background:var(--md-surface-container); color:var(--md-on-surface); }
html[data-m3e-theme] #routeApp #routeTop>.top-route:nth-child(even) { background:color-mix(in srgb,var(--md-primary-container) 64%,var(--m3e-surface)); color:var(--md-on-primary-container); }
html[data-m3e-theme] #routeApp #routeTop .top-route .top-name { font-size:22px; line-height:1.4; }
html[data-m3e-theme] #routeApp #routeTop .top-route .top-count { font-size:36px; line-height:1.1; }
#routeApp #routeTop .top-route .route-illustration { max-width:84px; height:78px; }
#routeApp #routeTop .top-action { margin-top:2px; padding-top:9px; min-height:40px; font-size:12px; }
html[data-m3e-theme] #routeApp #routeLevels>.level-card { min-height:0; padding:14px; gap:6px; border:1px solid var(--md-outline); border-radius:18px; background:var(--m3e-surface); box-shadow:none; }
html[data-m3e-theme] #routeApp #routeLevels>.level-card[aria-pressed="true"] { background:var(--md-primary-container); border-color:var(--md-primary); color:var(--md-on-primary-container); }
#routeApp #routeLevels strong { font-size:25px; line-height:1.2; }
#routeApp #routeLevels .route-level-signal { transform:scale(.75); transform-origin:right center; }
html[data-m3e-theme] #routeApp .detail-panel { padding:20px; border:1px solid var(--md-outline); border-radius:24px; background:var(--m3e-surface); box-shadow:none; }
#routeApp #routeListToggle { padding:2px 0; min-height:48px; font-size:18px; }
#routeApp .list-toolbar { margin:12px 0; gap:10px; }
#routeApp .search-control { border-radius:14px; background:var(--md-surface-container); }
html[data-m3e-theme] #routeApp .route-table thead th { background:var(--md-surface-container); font-size:12px; }
html[data-m3e-theme] #routeApp .route-table :is(th,td) { border-color:var(--md-outline); }
#routeApp .route-table .route-name { line-height:1.5; }
html[data-m3e-theme] #routeApp .expanded-row>td { padding:16px; background:var(--md-surface-container); }
#routeApp .chart-heading { align-items:center; gap:8px; }

/* Keep the mobile two-column hour grid and all status semantics intact. */
html[data-m3e-theme] #moduleViewWorkbench .mobile-person-card { border-radius:22px; border:1px solid var(--md-outline); background:var(--m3e-surface); }
html[data-m3e-theme] #moduleViewWorkbench .mobile-person-summary { border-radius:21px; }
html[data-m3e-theme] #moduleViewWorkbench .mobile-person-card[open] .mobile-person-summary { border-radius:21px 21px 8px 8px; }
html[data-m3e-theme] #moduleViewWorkbench .mobile-person-disclosure { padding-top:7px; border-top:1px solid var(--md-outline); }
html[data-m3e-theme] #moduleViewWorkbench .mobile-hour-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px; }
html[data-m3e-theme] #moduleViewWorkbench .mobile-hour-detail { border-radius:14px; }

@container route-person (min-width:620px) {
 html[data-m3e-theme] #registrationRoutes>details.registration-person-card>summary.person-card { grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important; grid-template-areas:"identity main" "facts quality" "note action"; gap:14px 24px; }
 html[data-m3e-theme] #registrationRoutes .person-card-main { min-height:72px; padding:0; }
 html[data-m3e-theme] #registrationRoutes .person-card-quality { align-content:center; }
}
@media(max-width:759px) {
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .m3e-home-date { gap:5px 8px; padding:6px 9px; margin-bottom:12px; }
 #workbenchHome .home-report-mark { width:28px; height:30px; font-size:17px; }
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .m3e-home-date>p { flex-basis:100%; margin-left:36px; font-size:11px; }
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .home-dashboard { gap:16px; }
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .home-hero-main { padding:18px; border-radius:26px 26px 12px 26px; }
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome #homeHoursTitle { font-size:18px; }
 #workbenchHome .home-volume-label { font-size:10px; padding:4px 7px; }
 #workbenchHome .home-volume-lead { margin-top:10px; grid-template-columns:minmax(0,1fr) minmax(80px,32%); }
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .m3e-home-total strong { font-size:42px; }
 #workbenchHome .home-parcel-scene { max-height:88px; }
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .m3e-home-hero-facts { gap:12px; margin:10px 0 16px; padding:0; }
 html[data-m3e-theme] #workbenchHome .m3e-home-hero-facts>div+div { padding-left:12px; }
 html[data-m3e-theme] #workbenchHome .m3e-home-hero-facts strong { font-size:26px; }
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .home-operation-card>a { padding:13px 12px; gap:7px; }
 #workbenchHome .home-operation-heading { font-size:13px; gap:6px; }
 #workbenchHome .home-operation-heading>.m3e-symbol { width:26px; height:28px; font-size:17px; }
 #workbenchHome .home-operation-number strong { font-size:28px; }
 #workbenchHome .home-schedule-card .home-operation-number strong { font-size:17px; }
 html[data-m3e-theme] #workbenchHome :is(.home-registration-summary,.home-people-panel,.m3e-home-notices) { padding:16px 12px; border-radius:24px; }
 #workbenchHome :is(.home-module-heading,.home-section-header) h2 { font-size:18px; }
 html[data-m3e-theme] #workbenchHome .home-quality-grid { gap:8px; }
 html[data-m3e-theme] #workbenchHome .home-metric-panel { padding:12px 10px; gap:5px; border-radius:18px 18px 8px 18px; }
 #workbenchHome .home-metric-panel>header h3 { font-size:14px; }
 #workbenchHome .home-metric-panel .card-heading-art,#workbenchHome .home-metric-panel .card-heading-art .card-illustration { width:30px; height:30px; }
 html[data-m3e-theme] #workbenchHome .home-person-list .person-card { padding:18px; gap:12px; }
 html[data-m3e-theme] #routeApp #registrationRoute { padding:16px 12px; margin-top:10px; border-radius:24px; }
 html[data-m3e-theme] #registrationRoutes .person-card-main { min-height:76px; }
 html[data-m3e-theme] #registrationRoutes .person-card-detail { padding:12px; }
 html[data-m3e-theme] #registrationRoutes :is(.registration-device-list,.registration-trip-list)>li { padding:13px; }
 #routeApp #registrationSummary .registration-facts dd { font-size:21px; }
 html[data-m3e-theme] #routeApp #routeKpis { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
 html[data-m3e-theme] #routeApp #routeKpis>.kpi { padding:12px 10px; border-radius:17px; min-height:0; }
 html[data-m3e-theme] #routeApp #routeKpis>.kpi.total { grid-column:1/-1; grid-template-columns:minmax(0,1fr) 90px; min-height:0; padding:16px; }
 html[data-m3e-theme] #routeApp #routeKpis>.kpi.total>strong { font-size:36px; }
 html[data-m3e-theme] #routeApp #routeKpis>.kpi:not(.total)>strong { font-size:25px; margin:13px 0 6px; }
 html[data-m3e-theme] #routeApp #routeKpis>.kpi:not(.total)>.route-illustration { display:none; }
 html[data-m3e-theme] #routeApp .top-panel { padding:16px 12px; border-radius:23px; }
 html[data-m3e-theme] #routeApp .section-heading h2 { font-size:18px; }
 html[data-m3e-theme] #routeApp #routeTop>.top-route { padding:17px 15px; grid-template-columns:minmax(0,1fr) 72px; }
 html[data-m3e-theme] #routeApp #routeTop .top-route .top-count { font-size:32px; }
 html[data-m3e-theme] #routeApp #routeTop .top-route .top-name { font-size:20px; }
 html[data-m3e-theme] #routeApp #routeLevels>.level-card { padding:12px 10px; min-height:0; }
 html[data-m3e-theme] #routeApp .detail-panel { padding:14px 12px; border-radius:21px; }
}
@media(max-width:359px) {
 #workbenchHome .home-report-mark { display:none; }
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .m3e-home-date>p { margin-left:0; }
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .home-hero-main { padding:15px; }
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .m3e-home-total strong { font-size:36px; }
 #workbenchHome .home-volume-lead { grid-template-columns:minmax(0,1fr) 82px; }
 #workbenchHome .home-parcel-scene { max-height:76px; }
 #workbenchHome .home-volume-label { display:none; }
 html[data-m3e-theme] #workbenchHome .m3e-home-hero-facts strong { font-size:23px; }
 #workbenchHome .home-metric-panel .home-metric-value { font-size:24px; }
 :is(#workbenchHome,#registrationRoutes) .person-card-quality { gap:10px; }
 :is(#workbenchHome,#registrationRoutes) .person-card-quality b { display:block; margin-left:0; }
}
@media(prefers-reduced-motion:no-preference) {
 #workbenchHome .home-parcel-scene { animation:home-parcel-arrive 640ms cubic-bezier(.2,.8,.2,1) both; }
 #workbenchHome .home-parcel-check { transform-origin:143px 31px; animation:home-parcel-check 480ms 120ms cubic-bezier(.2,.8,.2,1) both; }
 #workbenchHome :is(.home-operation-card,.home-volume-mix>span),#registrationRoutes .registration-linked-toggle { transition:transform 220ms var(--content-ease,cubic-bezier(.2,.8,.2,1)),background-color 220ms ease,border-radius 220ms ease; }
 :is(#workbenchHome,#registrationRoutes) .person-card-record-mark { transition:transform 260ms cubic-bezier(.2,.8,.2,1),opacity 260ms ease; }
 #registrationRoutes .registration-linked-card[open]>.registration-linked-content { animation:registration-detail-enter 240ms cubic-bezier(.2,.8,.2,1); }
 #registrationRoutes .registration-linked-card[open] .registration-linked-toggle { border-radius:6px; background:var(--md-primary-container); }
 @keyframes home-parcel-arrive { from { opacity:0; transform:translate(8px,5px) rotate(3deg); } to { opacity:1; transform:none; } }
 @keyframes home-parcel-check { from { transform:scale(.65); opacity:0; } to { transform:scale(1); opacity:1; } }
 @keyframes registration-detail-enter { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:none; } }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 #workbenchHome .home-operation-card:hover { transform:translateY(-2px); border-color:var(--md-primary); }
 :is(#workbenchHome,#registrationRoutes) .person-card:hover .person-card-record-mark { transform:translateX(3px); opacity:.9; }
}
@media(prefers-reduced-motion:reduce) {
 #workbenchHome .home-parcel-scene,#workbenchHome .home-parcel-check,#workbenchHome .home-operation-card,#registrationRoutes .registration-linked-content,:is(#workbenchHome,#registrationRoutes) .person-card-record-mark { animation:none; transition:none; }
}

/* Keep the report controls together so people, rather than empty tool rows,
   own the first screen. The carousel wrapper remains a full-width grid item. */
@media(min-width:1200px) {
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .home-dashboard { grid-template-areas:"volume registration" "operations operations" "people secondary"; }
 html[data-m3e-theme] #workbenchHome .m3e-home-overview { display:contents; }
 html[data-m3e-theme] #workbenchHome .m3e-home-hero { grid-area:volume; align-self:stretch; }
 html[data-m3e-theme] #workbenchHome .home-operation-grid { grid-area:operations; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:20px; }
 html[data-m3e-theme] #workbenchHome .home-registration-summary { align-self:stretch; }
 html[data-m3e-theme] #workbenchHome .home-quality-grid { flex:0 1 auto; }
 html[data-m3e-theme] #moduleViewWorkbench #workbenchHome .home-operation-card>a { grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto auto; gap:4px 16px; }
 html[data-m3e-theme] #workbenchHome .home-operation-heading { grid-column:1; }
 html[data-m3e-theme] #workbenchHome .home-operation-number { grid-column:2; grid-row:1/3; align-self:center; text-align:right; }
 html[data-m3e-theme] #workbenchHome .home-operation-action { grid-column:1/-1; }
}
html[data-m3e-theme] #routeApp #registrationRoute { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 18px; }
html[data-m3e-theme] #routeApp #registrationRoute>.registration-heading { margin:0; align-self:center; }
html[data-m3e-theme] #routeApp #registrationRoute>.registration-form { display:grid; grid-template-columns:minmax(180px,230px) auto; align-items:end; gap:8px; margin:0; }
html[data-m3e-theme] #routeApp #registrationRoute>.registration-form>button { min-width:100px; width:auto; padding-inline:18px; }
html[data-m3e-theme] #routeApp #registrationRoute>:is(#registrationRouteStatus,#registrationSummary,.m3e-carousel-viewport,#registrationRoutes) { grid-column:1/-1; min-width:0; }
html[data-m3e-theme] #routeApp #registrationRoute>#registrationRouteStatus { margin:0; font-size:12px; }
html[data-m3e-theme] #routeApp #registrationSummary .registration-facts { margin:0; }
html[data-m3e-theme] #routeApp #registrationSummary .registration-trip-totals { padding:8px 0 0; }
html[data-m3e-theme] #routeApp #registrationRoute>.registration-view-tools { display:block; min-width:0; margin:0; }
html[data-m3e-theme] #routeApp #registrationRoute>.registration-view-tools>label { display:flex; flex-direction:row; align-items:center; gap:12px; font-size:12px; }
html[data-m3e-theme] #routeApp #registrationSearch { flex:1 1 260px; min-width:0; max-width:520px; height:44px; margin:0; }
html[data-m3e-theme] #routeApp #registrationRoute>.registration-help { margin:0; align-self:center; border:0; }
html[data-m3e-theme] #routeApp #registrationRoute>.registration-help>summary { min-height:44px; padding:10px 0; font-size:12px; }
html[data-m3e-theme] #routeApp #registrationRoute>.registration-help[open] { grid-column:1/-1; }
@media(max-width:1000px) {
 html[data-m3e-theme] #routeApp #registrationRoute>.registration-heading { grid-column:1/-1; }
 html[data-m3e-theme] #routeApp #registrationRoute>.registration-form { grid-column:1/-1; grid-template-columns:minmax(0,1fr) auto; }
}
@media(max-width:759px) {
 html[data-m3e-theme] #routeApp #registrationRoute { gap:10px; }
 html[data-m3e-theme] #routeApp #registrationRoute>.registration-view-tools { grid-column:1/-1; }
 html[data-m3e-theme] #routeApp #registrationRoute>.registration-view-tools>label { display:grid; gap:5px; }
 html[data-m3e-theme] #routeApp #registrationSearch { width:100%; max-width:none; }
 html[data-m3e-theme] #routeApp #registrationRoute>.registration-help { grid-column:1/-1; }
 html[data-m3e-theme] #routeApp #registrationRoute>.registration-help>summary { min-height:36px; padding:8px 0; }
 html[data-m3e-theme] #routeApp #registrationRoute .registration-heading-mark { width:40px; height:40px; }
 html[data-m3e-theme] #routeApp #registrationTitle { font-size:18px; line-height:1.4; }
}

/* Keep intrinsic carousel widths from expanding the narrow single column. */
html[data-m3e-theme] #workbenchHome .home-secondary-stack{grid-template-columns:minmax(0,1fr)}
html[data-m3e-theme] #workbenchHome #homeAnalysisSlot{min-width:0}
/* Match desktop column bottoms; use the available height inside the analysis. */
@media(min-width:1200px){
 html[data-m3e-theme] #workbenchHome .home-secondary-stack{align-self:stretch;grid-template-rows:auto minmax(min-content,1fr);align-content:stretch}
 html[data-m3e-theme] #workbenchHome #homeAnalysisSlot{display:grid;min-width:0;min-height:0}
 html[data-m3e-theme] #workbenchHome #businessAnalysisBlock{display:flex;flex-direction:column;min-height:0;gap:8px;padding:20px}
 html[data-m3e-theme] #workbenchHome .m3e-home-notices .home-notice{padding-block:7px}
 html[data-m3e-theme] #workbenchHome .m3e-home-quality{margin-top:10px}
 html[data-m3e-theme] #workbenchHome #businessAnalysisBlock{justify-content:space-between}
 html[data-m3e-theme] #workbenchHome #businessAnalysisBlock>.m3e-carousel-viewport{min-height:0}
}
html[data-m3e-theme] #moduleViewWorkbench #businessAnalysisBlock #kpiGrid{align-items:stretch!important}
html[data-m3e-theme] #moduleViewWorkbench #businessAnalysisBlock #kpiGrid>:is(.op-summary-card,.actual-period-card){display:flex;flex-direction:column;align-items:stretch;align-self:stretch;justify-content:flex-start;box-sizing:border-box;gap:12px;margin:0;padding:22px;min-width:0;min-height:0;grid-row:auto;grid-template:none;border:0;border-radius:28px;background:var(--m3e-container);color:var(--m3e-on-container);overflow:hidden}
html[data-m3e-theme] #businessAnalysisBlock :is(.op-summary-card,.actual-period-card) header{display:flex;justify-content:space-between;align-items:center;gap:12px}
html[data-m3e-theme] #businessAnalysisBlock :is(.op-summary-card,.actual-period-card) header svg{width:48px;height:36px;padding:0;border-radius:0;background:none;flex:none;transform:rotate(-5deg);color:var(--m3e-primary)}
html[data-m3e-theme] #businessAnalysisBlock :is(.op-summary-card,.actual-period-card) h3{margin:0;font-size:18px;line-height:1.4}
html[data-m3e-theme] #businessAnalysisBlock .op-card-number{font-size:38px;line-height:1.1}
html[data-m3e-theme] #businessAnalysisBlock .op-summary-card footer{min-height:44px;margin-top:auto;padding-top:0}
/* Only visible disclosures animate; every person's shared open state is retained. */
html[data-m3e-theme] .registration-person-card.m3e-carousel-slide:not(.is-current):not(.is-companion)>.person-card-detail{animation:none!important}
