/* A single compact layout system. Primary screens do not inherit dashboard cards. */
body.compact-review{--canvas:#f5f4f8;--panel:#fff;--surface-soft:#eee8f6;--ink:#25212d;--muted:#655f70;--line:#e0dce7;--cr-footer-height:calc(68px * var(--text-scale, 1));background:var(--canvas);margin:0}
body.compact-review.night-mode{--canvas:#050505;--panel:#141414;--surface-soft:#212121;--ink:#ffffff;--muted:#9e9e9e;--line:rgb(255 255 255 / 14%)}
.compact-review #app-shell,.compact-review #srt93-bottom,.compact-review #role-preview-banner,.compact-review #access-screen{display:none!important}
#compact-review{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;position:fixed;inset:0;max-width:760px;margin:auto;color:var(--ink);display:flex;flex-direction:column;font-size:calc(14px * var(--text-scale,1));background:var(--canvas);border-inline:1px solid var(--line)}
#compact-review *{box-sizing:border-box}
#compact-review button,#compact-review input,#compact-review select{font:inherit}
#compact-review :is(input,select,textarea){font-size:max(16px,1em)}
#compact-review button{cursor:pointer;touch-action:manipulation}
#compact-review button:focus-visible,#compact-review input:focus-visible,#compact-review select:focus-visible{outline:3px solid var(--srt93-accent);outline-offset:2px}
#compact-review svg{width:22px;height:22px;flex-shrink:0}
#compact-review .cr-header{display:flex;align-items:center;gap:10px;flex-shrink:0;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top));border-bottom:1px solid var(--line);background:var(--panel);min-height:64px}
#compact-review .cr-brand{width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;background:var(--surface-soft);color:var(--srt93-accent);border-radius:10px;font-weight:800;letter-spacing:-.04em;font-size:15px}
#compact-review .cr-header>div{flex:1;min-width:0}
#compact-review .cr-header strong{display:block;font-size:14px;line-height:1.3}
#compact-review .cr-header small{display:block;font-size:11px;color:var(--muted);margin-top:2px;text-transform:capitalize}
#compact-review .cr-iconbutton{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;border:0;border-radius:9px;background:transparent;color:var(--muted);padding:8px}
#compact-review .cr-main{flex:1;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain;scroll-padding-bottom:20px}
#compact-review .cr-pagehead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 16px}
#compact-review h1{font-size:calc(25px * var(--text-scale,1));line-height:1.15;letter-spacing:-.04em;margin:0;color:var(--ink)}
#compact-review h2{font-size:calc(14px * var(--text-scale,1));line-height:1.3;margin:0;color:var(--ink)}
#compact-review .cr-date{font-size:12px;color:var(--muted)}
#compact-review .cr-button{min-height:40px;padding:9px 13px;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:calc(13px * var(--text-scale,1));font-weight:600;white-space:normal}
#compact-review .cr-primary{background:var(--srt93-accent);color:var(--srt93-on-accent);border-color:var(--srt93-accent)}
#compact-review .cr-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden;margin-bottom:12px}
#compact-review .cr-metrics button{border:0;border-right:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;padding:13px 12px}
#compact-review .cr-metrics button:last-child{border:0}
#compact-review .cr-metrics b{display:block;font-size:calc(23px * var(--text-scale,1));line-height:1.2;font-weight:650;letter-spacing:-.03em}
#compact-review .cr-metrics span{display:block;color:var(--muted);font-size:calc(11px * var(--text-scale,1));margin-top:5px}
#compact-review .cr-quick{display:flex;gap:8px;margin-bottom:20px}
#compact-review .cr-quick button{flex:1}
#compact-review .cr-sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 9px}
#compact-review .cr-sectionhead button{display:flex;align-items:center;gap:3px;background:transparent;border:0;min-height:32px;color:var(--srt93-accent);font-size:12px;padding:0}
#compact-review .cr-sectionhead svg{width:14px;height:14px}
#compact-review .cr-list{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}
#compact-review .cr-row{display:flex;align-items:center;gap:11px;border:0;border-bottom:1px solid var(--line);padding:12px;width:100%;min-height:62px;text-align:left;background:var(--panel);color:var(--ink)}
#compact-review .cr-row:last-child{border-bottom:0}
#compact-review .cr-rowbody{flex:1;min-width:0}
#compact-review .cr-row strong{display:block;font-size:calc(13px * var(--text-scale,1));line-height:1.35;font-weight:650}
#compact-review .cr-row small{display:block;color:var(--muted);font-size:calc(11px * var(--text-scale,1));line-height:1.4;margin-top:4px;overflow-wrap:anywhere}
#compact-review .cr-row>svg{width:15px;height:15px;color:var(--muted)}
#compact-review .cr-icon{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:8px;background:var(--surface-soft);color:var(--srt93-accent)}
#compact-review .cr-icon svg{width:19px;height:19px}
#compact-review .cr-job{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);padding:13px;background:var(--panel);color:var(--ink)}
#compact-review .cr-job:last-child{border-bottom:0}
#compact-review .cr-rowhead,#compact-review .cr-rowfoot{display:flex;justify-content:space-between;align-items:center;gap:10px}
#compact-review .cr-rowhead strong{font-size:calc(14px * var(--text-scale,1));line-height:1.35}
#compact-review .cr-pill{background:var(--surface-soft);color:var(--ink);padding:4px 7px;border-radius:6px;font-size:10px;white-space:normal;max-width:45%}
#compact-review .cr-meta,#compact-review .cr-route{display:block;font-size:calc(12px * var(--text-scale,1));line-height:1.4;margin-top:5px;overflow-wrap:anywhere}
#compact-review .cr-meta{color:var(--muted)}
#compact-review .cr-rowfoot{font-size:11px;color:var(--muted);margin-top:10px}
#compact-review .cr-rowfoot span:last-child{display:flex;align-items:center;gap:5px}
#compact-review .cr-rowfoot svg{width:13px;height:13px}
#compact-review .cr-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);margin:0 0 14px;overflow-x:auto}
#compact-review .cr-tabs button{flex:1;min-height:42px;padding:8px 7px;background:transparent;color:var(--muted);border:0;border-bottom:2px solid transparent;font-size:calc(12px * var(--text-scale,1));white-space:nowrap}
#compact-review .cr-tabs button[aria-pressed=true]{color:var(--srt93-accent);border-bottom-color:var(--srt93-accent);font-weight:650}
#compact-review .cr-empty{text-align:center;padding:28px 16px;color:var(--ink)}
#compact-review .cr-empty strong{font-size:14px}
#compact-review .cr-empty p{font-size:12px;color:var(--muted);margin:8px 0 0;line-height:1.5}
#compact-review .cr-search{display:flex;gap:8px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:0 10px;margin-bottom:10px;color:var(--muted)}
#compact-review .cr-search svg{width:17px;height:17px}
#compact-review .cr-search input{width:100%;min-width:0;min-height:44px;padding:8px 0;border:0;box-shadow:none;background:transparent;color:var(--ink);font-size:16px}
#compact-review .cr-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:7px 10px max(7px,env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line);flex-shrink:0}
#compact-review .cr-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:0;min-height:53px;border-radius:10px;background:transparent;color:var(--muted);font-size:11px;padding:7px 2px}
#compact-review .cr-nav button[aria-current=page]{background:var(--surface-soft);color:var(--srt93-accent);font-weight:650}
#compact-review .cr-nav svg{width:21px;height:21px}
#compact-review .cr-review-controls{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:13px;display:grid;gap:12px}
#compact-review .cr-review-controls label{display:grid;gap:6px;font-size:12px;font-weight:600}
#compact-review .cr-review-controls select{border:1px solid var(--line);border-radius:8px;min-height:40px;padding:8px;background:var(--panel);color:var(--ink);text-transform:capitalize}
#compact-review .cr-review-controls p{font-size:11px;color:var(--muted);line-height:1.5;margin:0}
/* Actual app forms share the same compact spacing and remain independently scrollable. */
body.compact-review #modal{max-width:760px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;top:0!important;width:100%!important;height:calc(var(--app-viewport-height,100dvh) - var(--cr-footer-height, 68px) - env(safe-area-inset-bottom))!important;max-height:calc(var(--app-viewport-height,100dvh) - var(--cr-footer-height, 68px) - env(safe-area-inset-bottom))!important;background:var(--canvas);z-index:1000}
body.compact-review #compact-review .cr-nav{position:relative;z-index:1101}
body.compact-review .modal-head{padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));gap:8px}
body.compact-review .modal-head h2{font-size:calc(19px * var(--text-scale,1));line-height:1.25;margin:0}
body.compact-review .modal-head p{font-size:calc(11px * var(--text-scale,1));line-height:1.4;margin:5px 0 0;color:var(--muted)}
body.compact-review .modal-close{width:36px;min-height:36px;height:36px;flex-basis:36px;font-size:25px}
body.compact-review .modal-body{padding:14px 16px 24px;font-size:calc(13px * var(--text-scale,1));line-height:1.5}
body.compact-review .modal-body :is(.form-section,.form-card){padding:12px 0;margin:0;background:transparent;box-shadow:none}
body.compact-review .modal-body .form-row{gap:12px}
body.compact-review .modal-body .field{gap:5px;margin:0 0 12px}
body.compact-review .modal-body :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),select){min-height:44px;padding:9px 10px;font-size:16px;border:1px solid var(--line);border-radius:8px}
body.compact-review .modal-body label{font-size:calc(12px * var(--text-scale,1));font-weight:600}
body.compact-review .modal-body .button{min-height:40px;padding:9px 12px;border-radius:9px;font-size:calc(12px * var(--text-scale,1))}
body.compact-review .modal-body :is(p,small){line-height:1.45}
body.compact-review .modal-body .form-actions{margin:12px 0 0;padding:0;gap:8px;box-shadow:none;background:transparent}
body.compact-review .display-settings{display:block;padding:0}
body.compact-review .display-settings section{display:block;margin:0!important;padding:14px 0!important}
body.compact-review .display-settings section:first-child{padding-top:0!important}
body.compact-review .display-settings .settings-section-heading{margin:0 0 10px}
body.compact-review .display-settings :is(p,h3){margin:0 0 7px}
body.compact-review .settings-choice{min-height:48px;padding:9px 10px}
body.compact-review .settings-choice-grid{gap:7px}
body.compact-review .display-text-preview{padding:12px;margin:12px 0}
body.compact-review .simple-menu-card{min-height:56px;padding:10px;box-shadow:none;border:1px solid var(--line);background:var(--panel);color:var(--ink)}
body.compact-review .simple-menu-copy strong{font-size:13px}
body.compact-review .simple-menu-copy small{font-size:11px;color:var(--muted)}
body.compact-review .cr-tools{display:grid;gap:8px}
body.compact-review .toast-region{z-index:1200;bottom:calc(80px + env(safe-area-inset-bottom));top:auto}
body.compact-review #modal-backdrop{z-index:999;opacity:0;pointer-events:none}
#compact-review #cr-drafts .list-row{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid var(--line);background:var(--panel)}
#compact-review #cr-drafts .list-row>div{flex:1 1 100%}
#compact-review #cr-drafts .list-row :is(p,small){font-size:12px;color:var(--muted);margin:4px 0}
#compact-review #cr-drafts .button{min-height:38px;padding:8px 12px;font-size:12px}
@media(min-width:760px){#compact-review{box-shadow:0 0 60px #0000000a}#compact-review .cr-main{padding:22px}body.compact-review .modal-body{padding:20px 24px}}
@media(max-width:350px){#compact-review .cr-header{padding-inline:10px;gap:7px}#compact-review .cr-main{padding:12px}#compact-review .cr-header strong{font-size:13px}#compact-review .cr-tabs button{font-size:11px}}
/* Exact reference drawings and compact alerts. */
.cr-iconbutton{position:relative}.cr-badge{position:absolute;right:0;top:0;background:#ad2845;color:white;border-radius:20px;padding:2px 5px;font-size:10px;line-height:14px;min-width:16px;text-align:center}
body.compact-review .srt93-reference-map{max-width:300px;width:100%;margin:14px auto;overflow:visible}
body.compact-review .modal .srt93-reference-hit{min-height:0;padding:0;width:9%;height:9%}
body.compact-review .modal .srt93-system-pin{min-height:26px;width:26px;height:26px;padding:0;font-size:12px;background:var(--panel);color:var(--ink);border:1px solid var(--srt93-accent)}
body.compact-review .review-wheel-picker{border:0;padding:0;margin:0;min-width:0}
body.compact-review .review-wheel-hit{position:absolute;transform:translate(-50%,-50%);width:10%;height:9%;display:block}
body.compact-review .review-wheel-hit input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
body.compact-review .review-wheel-hit span{position:absolute;inset:0;display:grid;place-items:center;border:2px solid transparent;border-radius:6px;font-size:10px;color:transparent}
body.compact-review .review-wheel-hit input:checked+span{border-color:var(--srt93-accent);background:var(--surface-soft);color:var(--ink);font-weight:700}
body.compact-review .review-wheel-hit input:focus-visible+span{outline:3px solid var(--srt93-accent)}
body.compact-review #configuration-diagram-preview button:disabled{opacity:1;cursor:default}
body.compact-review .srt93-wheel-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}
/* Phone review: compact forms, one toolbar row, and an opaque keyboard-safe dialog. */
body.compact-review #modal{top:var(--app-viewport-top,0px)!important}
body.compact-review #modal .modal-head{padding:10px 14px;gap:8px}
body.compact-review #modal .modal-head h2{font-size:calc(17px * var(--text-scale,1))}
body.compact-review #modal .modal-body{padding:10px 14px 18px}
body.compact-review #modal .form-card,body.compact-review #modal .form-section{padding:0;margin:0;gap:10px}
body.compact-review #modal .form-row{gap:10px;align-items:start}
body.compact-review #modal .field{margin:0;gap:4px}
body.compact-review #modal .form-section>.field,body.compact-review #modal .form-section>.form-row,body.compact-review #modal .form-section>.form-note{margin-bottom:10px}
body.compact-review #modal .form-section>p{margin:8px 0 10px}
body.compact-review #modal .form-note{padding:8px;font-size:12px;margin:8px 0}
body.compact-review #modal textarea{font-size:16px;padding:9px;min-height:64px}
body.compact-review #modal .cr-config-extra{border-top:1px solid var(--line);padding:0;margin:8px 0}
body.compact-review #modal .cr-config-extra>summary{padding:12px 0;font-size:13px;font-weight:600;cursor:pointer}
body.compact-review #modal .cr-config-extra[open]>summary{margin-bottom:8px}
body.compact-review #modal .cr-message-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 10px}
body.compact-review #modal .cr-message-toolbar .button{width:auto;min-height:40px;padding:8px 4px;font-size:12px}
body.compact-review #modal .v89-message{padding:10px;margin:8px 0;border-radius:8px}
body.compact-review #modal .v89-message p{margin:6px 0;font-size:13px}
body.compact-review #modal .v89-message strong{font-size:12px}
body.compact-review #modal .v89-replies{margin:8px 0}
body.compact-review #modal .notification-overview-v86>div{padding:8px 5px;gap:3px;border-radius:8px}
body.compact-review #modal .notification-overview-v86 strong{font-size:22px}
body.compact-review #modal .notification-overview-v86 span{font-size:11px}
body.compact-review #modal .notification-card-v86 .notice-open{padding:10px;gap:8px;min-height:44px}
body.compact-review #modal .notification-card-v86 .notice-open strong{font-size:14px}
body.compact-review #modal .notification-card-v86 .notice-open>span:nth-child(2){gap:3px;font-size:13px;line-height:1.35}
body.compact-review #modal .notification-card-v86 .notice-open small{font-size:11px}
body.compact-review #modal .notification-card-v86>.button{margin:0 10px 8px 48px;min-height:36px;padding:6px 10px}
body.compact-review #modal .notification-section-v86 h3{font-size:15px;margin:10px 0 6px}
body.compact-review #modal .form-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
body.compact-review #modal .form-actions>.button{flex:1 1 130px;width:auto}
body.compact-review.cr-keyboard-open #compact-review{visibility:hidden}
body.compact-review.cr-keyboard-open #modal{height:var(--app-viewport-height,100dvh)!important;max-height:var(--app-viewport-height,100dvh)!important}
body.compact-review.cr-keyboard-open #modal-backdrop{opacity:1;background:var(--canvas)}
#compact-review .cr-quick{display:flex;gap:8px;margin:10px 0 14px}
#compact-review .cr-quick>.cr-button{flex:1}
#compact-review .cr-sectionhead{margin:14px 0 8px}
@media(min-width:380px){body.compact-review #asset-configuration-form>.form-section>.form-row:first-child{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}}

/* Compact work summary and section navigation, 16 October. */
body.compact-review :is(#compact-review,.cr-profile) .cr-job{padding:0;display:block;background:var(--panel);color:var(--ink);border:0;border-bottom:1px solid var(--line)}
body.compact-review :is(#compact-review,.cr-profile) .cr-job:last-child{border-bottom:0}
body.compact-review :is(#compact-review,.cr-profile) .cr-job>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:11px 12px;min-height:72px;cursor:pointer}
body.compact-review :is(#compact-review,.cr-profile) .cr-job>summary::-webkit-details-marker{display:none}
body.compact-review :is(#compact-review,.cr-profile) .cr-job>summary:focus-visible{outline:3px solid var(--srt93-accent);outline-offset:-3px}
body.compact-review :is(#compact-review,.cr-profile) .cr-job-main{flex:1;min-width:0}
body.compact-review :is(#compact-review,.cr-profile) .cr-job .cr-rowhead{display:flex;gap:8px;align-items:center;justify-content:space-between}
body.compact-review :is(#compact-review,.cr-profile) .cr-job .cr-rowhead strong{font-size:calc(12px * var(--text-scale,1));line-height:1.35;overflow-wrap:anywhere}
body.compact-review :is(#compact-review,.cr-profile) .cr-job-sub{display:block;font-size:calc(11px * var(--text-scale,1));color:var(--muted);margin-top:4px}
body.compact-review :is(#compact-review,.cr-profile) .cr-job .cr-route{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px;font-size:calc(11px * var(--text-scale,1));color:var(--muted)}
body.compact-review :is(#compact-review,.cr-profile) .cr-job[open] .cr-route{white-space:normal;overflow-wrap:anywhere}
body.compact-review :is(#compact-review,.cr-profile) .cr-expand{display:flex;flex-direction:column;align-items:center;flex-shrink:0;gap:2px;color:var(--srt93-accent)}
body.compact-review :is(#compact-review,.cr-profile) .cr-expand svg{width:17px;height:17px;transition:transform .15s}
body.compact-review :is(#compact-review,.cr-profile) .cr-expand small{font-size:9px}
body.compact-review :is(#compact-review,.cr-profile) .cr-job[open]>summary .cr-expand svg{transform:rotate(90deg)}
body.compact-review :is(#compact-review,.cr-profile) .cr-job-detail{padding:0 12px 12px;border-top:1px solid var(--line)}
body.compact-review .cr-facts{margin:10px 0;display:grid;gap:10px;font-size:calc(12px * var(--text-scale,1));overflow-wrap:anywhere}
body.compact-review .cr-facts>div{display:grid;gap:3px}
body.compact-review .cr-facts dt{color:var(--muted);font-size:calc(11px * var(--text-scale,1))}
body.compact-review .cr-facts dd{margin:0;color:var(--ink)}
body.compact-review .cr-facts small{display:block;color:var(--muted);margin-top:3px}
body.compact-review :is(#compact-review,.cr-profile) .cr-subdetails{margin-top:10px}
body.compact-review :is(#compact-review,.cr-profile) .cr-subdetails>summary{cursor:pointer;padding:10px 0;min-height:44px;font-size:12px}
body.compact-review .cr-detail-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
body.compact-review .cr-profile .cr-list{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--panel)}
body.compact-review .cr-profile .cr-row{display:flex;align-items:center;gap:10px;padding:10px;min-height:54px;width:100%;border:0;border-bottom:1px solid var(--line);background:var(--panel);color:var(--ink);text-align:left}
body.compact-review .cr-profile .cr-rowbody{flex:1;min-width:0}
body.compact-review .cr-profile .cr-row strong{display:block;font-size:13px;overflow-wrap:anywhere}
body.compact-review .cr-profile .cr-row small{display:block;font-size:11px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
body.compact-review .cr-profile svg{width:20px;height:20px;flex-shrink:0}
body.compact-review .cr-profile .cr-row>svg{width:15px;height:15px}
body.compact-review .cr-profile .cr-button{padding:9px 12px;min-height:42px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit}
body.compact-review .cr-profile .cr-empty{padding:14px;font-size:12px}
body.compact-review .cr-profile .cr-empty p{color:var(--muted);margin:5px 0 0}
body.compact-review .cr-profile .cr-sectionhead{margin:12px 0 8px}
body.compact-review .cr-profile .cr-sectionhead h2{font-size:14px}
body.compact-review .cr-profile .cr-pill{font-size:10px;border-radius:5px;background:var(--surface-soft);padding:4px 6px}
body.compact-review .cr-profile .field{display:grid;gap:5px;margin:0 0 12px!important}
body.compact-review .cr-preference{display:flex;align-items:center;gap:10px;min-height:46px;padding:6px 0;cursor:pointer}
#compact-review .cr-metrics button{padding:9px 12px}
#compact-review .cr-metrics b{font-size:calc(19px * var(--text-scale,1))}
#compact-review .cr-metrics span{margin-top:2px}
#compact-review .cr-pagehead{margin-bottom:12px}
#compact-review .cr-tabs{margin-bottom:10px;scrollbar-width:thin}
#compact-review .cr-tabs button{flex:1 0 auto;min-height:44px}
#compact-review .cr-note{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 12px}
#compact-review .cr-preview-options{margin-top:20px;font-size:12px;color:var(--muted)}
#compact-review .cr-preview-options>summary{min-height:44px;padding:12px 0;cursor:pointer}
#compact-review .cr-date-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
#compact-review .cr-date-range label{display:grid;gap:4px;font-size:12px;color:var(--muted)}
#compact-review .cr-date-range input{width:100%;min-width:0;min-height:42px;padding:7px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:16px}
#compact-review .cr-report{padding:14px}
#compact-review .cr-report p{font-size:12px;color:var(--muted);margin:4px 0 0}
@media(prefers-reduced-motion:reduce){body.compact-review .cr-expand svg{transition:none!important}}

/* Content-sized controls with practical phone touch targets. */
#compact-review .cr-tabs button{flex:0 0 auto;padding:8px 12px;min-width:44px;min-height:44px}
#compact-review .cr-row{min-height:52px;padding:10px;gap:10px}
#compact-review .cr-icon{width:30px;height:30px}
#compact-review .cr-row small{margin-top:2px}
#compact-review .cr-main{padding:12px 14px}
#compact-review .cr-header{min-height:58px;padding-bottom:8px}
#compact-review .cr-pagehead{margin-bottom:10px}
#compact-review .cr-sectionhead{margin:12px 0 6px}
#compact-review .cr-empty{padding:18px 12px}
#compact-review .cr-job-detail .cr-empty{padding:12px}
#compact-review .cr-team-actions{margin-bottom:10px}
body.compact-review .display-settings>section[hidden]{display:none!important}

/* Invoice review keeps quantities visible without oversized cards. */
.cr-invoice-filter{display:flex;align-items:center;gap:10px;margin:10px 0}.cr-invoice-filter select{min-height:44px;max-width:230px}.cr-invoice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px}.cr-invoice-work{border:1px solid var(--border,#ddd);border-radius:10px;padding:12px;margin:12px 0;min-width:0}.cr-invoice-work legend{max-width:100%;font-weight:600}.cr-invoice-work small,.cr-invoice-line small{display:block;color:var(--muted,#666);margin-bottom:8px}.cr-invoice-work input[type=checkbox]{width:22px;min-height:22px;vertical-align:middle}.cr-invoice-line{padding:12px;border-bottom:1px solid var(--border,#ddd)}.cr-invoice-line p{margin:6px 0}.cr-invoice-error{color:#a12727}.cr-invoice-grid label{min-width:0}.cr-profile input,.cr-profile select,.cr-profile textarea{max-width:100%;box-sizing:border-box}.cr-invoice-line .cr-button{margin:4px 0}.cr-invoice-work legend label{display:flex;align-items:center;gap:8px}

/* Phone form repair: labels and controls are full-width, independent grid items. */
body.compact-review .modal-body *,body.compact-review .modal-head *{box-sizing:border-box}
body.compact-review #modal .modal-body{min-width:0;overflow-x:hidden}
body.compact-review #modal .cr-invoice-form{display:grid;gap:12px;width:100%;min-width:0;margin:0;padding:0}
body.compact-review #modal .cr-invoice-form label{display:grid;gap:5px;min-width:0;max-width:100%;font-size:calc(12px * var(--text-scale,1));line-height:1.4}
body.compact-review #modal .cr-invoice-form :is(input:not([type=checkbox]),select,textarea){display:block;width:100%;min-width:0;max-width:100%;margin:0;font-size:16px;line-height:1.35}
body.compact-review #modal .cr-invoice-form input[type=date]{-webkit-appearance:none;appearance:none;min-width:0;text-align:left;height:44px}
body.compact-review #modal .cr-invoice-form input::-webkit-date-and-time-value{text-align:left;min-width:0}
body.compact-review #modal .cr-invoice-form input[readonly]{background:var(--surface-soft);color:var(--ink)}
body.compact-review #modal .cr-invoice-form p{margin:0;font-size:12px;line-height:1.45}
body.compact-review #modal .cr-invoice-error:empty{display:none}
body.compact-review #modal .cr-invoice-error:not(:empty){padding:8px 10px;border-left:3px solid currentColor}
body.compact-review.night-mode .cr-invoice-error{color:#ff8d98}
body.compact-review #modal .cr-invoice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;width:100%;align-items:start}
body.compact-review #modal .cr-invoice-work{display:grid;gap:10px;margin:0 0 12px;padding:10px;min-width:0;width:100%;border:1px solid var(--line);background:var(--panel)}
body.compact-review #modal .cr-invoice-work:last-child{margin-bottom:0}
body.compact-review #modal .cr-invoice-work legend{padding:0 3px;max-width:100%;font-size:13px;overflow-wrap:anywhere}
body.compact-review #modal .cr-invoice-work legend label{display:flex;align-items:flex-start;gap:8px;min-height:32px;padding:3px 0}
body.compact-review #modal .cr-invoice-work input[type=checkbox]{width:22px;height:22px;min-height:22px;flex:0 0 22px;margin:0}
body.compact-review #modal .cr-invoice-work small{font-size:11px;margin:0}
body.compact-review #modal .cr-invoice-measurements>label:first-child{grid-column:1 / -1}
body.compact-review #modal .cr-invoice-form>.cr-button{min-height:44px;border:0;border-radius:8px;background:var(--srt93-accent);color:var(--srt93-on-accent);padding:10px 12px;font-weight:650}
@media(min-width:560px){body.compact-review #modal .cr-invoice-measurements{grid-template-columns:repeat(3,minmax(0,1fr))}body.compact-review #modal .cr-invoice-measurements>label:first-child{grid-column:auto}}
@media(max-width:360px){body.compact-review #modal .cr-invoice-grid{grid-template-columns:minmax(0,1fr)}}
/* Preferences stay in Settings instead of taking over an almost-empty screen. */
#compact-review .cr-settings-preferences{margin-top:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);overflow:hidden}
#compact-review .cr-settings-preferences>summary{padding:12px;min-height:48px;cursor:pointer;font-size:13px;font-weight:650}
#compact-review .cr-settings-preferences>summary small{margin-left:8px;font-size:11px;font-weight:400;color:var(--muted)}
#compact-review .cr-settings-preferences>div{padding:0 12px 8px}
#compact-review .cr-settings-preferences p{font-size:12px;color:var(--muted);margin:0 0 6px;line-height:1.45}
#compact-review .cr-preference{font-size:13px}
#compact-review .cr-preference input{width:22px;height:22px;min-height:22px;flex:0 0 22px;accent-color:var(--srt93-accent)}
/* Every service card keeps its vehicle, readings and actions together. */
body.compact-review .cr-services{display:grid;gap:10px;min-width:0;color:var(--ink)}
body.compact-review .cr-service-toolbar{display:flex;flex-wrap:wrap;gap:6px}
body.compact-review #modal .cr-service-toolbar .button{flex:1 1 auto;min-height:44px;padding:8px 10px;font-size:12px}
body.compact-review .cr-service-filter{display:grid;gap:5px;min-width:0}
body.compact-review .cr-service-filter select{width:100%;min-width:0;max-width:100%}
body.compact-review .cr-service-note{margin:0;font-size:12px;color:var(--muted)}
body.compact-review .cr-service-cards{display:grid;gap:10px;min-width:0}
body.compact-review .cr-service-card{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);min-width:0;overflow-wrap:anywhere}
body.compact-review .cr-service-card header{display:flex;gap:8px;align-items:start;justify-content:space-between;flex-wrap:wrap}
body.compact-review .cr-service-card header>div{flex:1 1 140px;min-width:0}
body.compact-review .cr-service-card h3{font-size:14px;margin:0 0 3px;line-height:1.35;color:var(--ink)}
body.compact-review .cr-service-card small{display:block;font-size:11px;color:var(--muted);line-height:1.4}
body.compact-review .cr-service-card .pill{min-height:0;max-width:100%;font-size:10px;padding:4px 7px;white-space:normal;line-height:1.35}
body.compact-review .cr-service-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin:12px 0}
body.compact-review .cr-service-facts>div{min-width:0}
body.compact-review .cr-service-facts dt{font-size:11px;color:var(--muted);margin-bottom:3px}
body.compact-review .cr-service-facts dd{margin:0;font-size:13px;font-weight:550}
body.compact-review .cr-service-card p{font-size:12px;margin:8px 0}
body.compact-review .cr-service-actions{display:flex;gap:8px;margin-top:10px}
body.compact-review #modal .cr-service-actions .button{flex:1 1 0;min-width:0;min-height:44px;font-size:12px;white-space:normal;padding:9px 10px}
body.compact-review .cr-service-heading{font-size:14px;margin:8px 0 0}
body.compact-review .cr-service-audit>summary,body.compact-review .cr-service-alerts>summary{font-size:12px;cursor:pointer;padding:12px 0;min-height:44px}
body.compact-review .cr-service-audit>.cr-service-card{margin-bottom:8px}
body.compact-review .cr-service-evidence:empty{display:none}
@media(min-width:620px){body.compact-review .cr-service-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Home map is contained, page scrolling stays available; expanded view can pan. */
body.compact-review .cr-map-panel{min-width:0;max-width:100%;border:1px solid var(--line);border-radius:11px;background:var(--panel);overflow:hidden;color:var(--ink);margin-bottom:12px}
body.compact-review .cr-map-heading{display:flex;align-items:center;gap:8px;padding:10px 12px}
body.compact-review .cr-map-heading>div{flex:1;min-width:0}
body.compact-review .cr-map-heading h2{font-size:14px;margin:0 0 3px;color:var(--ink)}
body.compact-review .cr-map-heading small{display:block;font-size:11px;color:var(--muted)}
body.compact-review .cr-map-panel .cr-button{min-height:40px;border:1px solid var(--line);border-radius:8px;font-size:12px;padding:8px 10px;background:var(--panel);color:var(--ink);cursor:pointer}
body.compact-review .cr-map-sample{font-size:10px;font-weight:650;padding:4px 6px;border-radius:5px;background:var(--surface-soft);color:var(--ink)}
body.compact-review .cr-map-canvas{display:block;width:100%;min-width:0;height:230px;min-height:230px;isolation:isolate;background:#e6e8e3;border-block:1px solid var(--line);touch-action:pan-y}
body.compact-review .cr-map-expanded .cr-map-canvas{height:clamp(250px,45vh,460px);height:clamp(250px,45dvh,460px);min-height:250px;touch-action:none}
body.compact-review .cr-map-canvas .leaflet-control-zoom a{width:36px;height:36px;line-height:36px;color:#25212d}
body.compact-review .cr-map-canvas .leaflet-control-attribution{font-size:9px;color:#25212d;background:#ffffffed}
body.compact-review .cr-map-actions{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px 0}
body.compact-review .cr-map-note{font-size:11px;line-height:1.4;color:var(--muted);padding:7px 12px 10px;margin:0}
body.compact-review .cr-map-empty{padding:22px 12px;font-size:13px;text-align:center;background:var(--canvas)}
body.compact-review .cr-map-empty p{font-size:12px;line-height:1.4;color:var(--muted);margin:6px 0 0}
body.compact-review .cr-map-filter{display:grid;gap:4px;padding:0 12px 10px;font-size:12px;min-width:0}
body.compact-review .cr-map-filter select{width:100%;min-width:0;max-width:100%}
body.compact-review .cr-map-truck{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;border-top:1px solid var(--line);padding:10px 12px;background:var(--panel);color:var(--ink);text-align:left;min-height:48px;cursor:pointer}
body.compact-review .cr-map-truck>span:first-child{min-width:0;overflow-wrap:anywhere}
body.compact-review .cr-map-truck strong{display:block;font-size:13px}
body.compact-review .cr-map-truck small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
body.compact-review .cr-map-age{font-size:11px;white-space:nowrap;color:#217244}
body.compact-review .cr-map-age.is-stale{color:var(--muted);white-space:normal}
body.compact-review.night-mode .cr-map-age:not(.is-stale){color:#00c972}
body.compact-review .cr-truck-pin{display:flex;align-items:center;gap:5px;padding:6px;color:#fff;background:#31694b;border:2px solid #fff;border-radius:8px;box-shadow:0 2px 8px #0003;font-size:11px;line-height:1.2}
body.compact-review .cr-truck-pin.is-stale{background:#6d5b35}
body.compact-review .cr-truck-pin svg{width:19px!important;height:19px!important;flex-shrink:0}
body.compact-review .cr-truck-pin strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.compact-review .cr-map-popup{font:12px/1.4 system-ui;color:#25212d}
body.compact-review .cr-map-popup>strong{font-size:14px}
body.compact-review .cr-map-popup p{margin:6px 0;font-size:12px}
body.compact-review .cr-map-popup small{font-size:10px;display:block}
body.compact-review .cr-map-popup button{margin-top:10px;width:100%;min-height:42px;border:1px solid #c9c4d1;border-radius:6px;padding:8px;background:#eee8f6;color:#37204f;cursor:pointer;font:600 12px system-ui}

#compact-review[hidden]{display:none!important}
body.compact-review .modal-body form>label:not(.confirmation-check):has(input:not([type=checkbox]),select,textarea){display:grid;gap:5px;min-width:0;width:100%;margin-bottom:10px}
body.compact-review .modal-body :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),select,textarea){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
body.compact-review .modal-body input[type=date]{-webkit-appearance:none;appearance:none;min-width:0;text-align:left}

/* v102: keep menu glyphs bounded and controls legible across display settings. */
#compact-review svg { flex-shrink:0; width:22px; height:22px; max-width:100%; }
#compact-review .cr-row > svg { width:20px; height:20px; }
#compact-review .cr-nav button { color:var(--ink); min-height:48px; }
#compact-review .cr-nav button:focus-visible, #compact-review .cr-row:focus-visible { outline:3px solid #1670bb; outline-offset:2px; }
#compact-review .cr-row .cr-icon { color:#175c91; background:#e7f2fc; }
#compact-review .srt-weight-docket .cr-icon { color:#704600; background:#fff0ce; }
#compact-review .srt-driver-docket .cr-icon { color:#633c87; background:#f2e8fc; }
#compact-review .layout-status-review { color:var(--ink); border-left:4px solid #a65c00; }

#compact-review .cr-nav { grid-template-columns:repeat(auto-fit,minmax(0,1fr)); }

.srt-more-menu { color:var(--ink); font-size:calc(14px * var(--text-scale,1)); }

.srt-more-menu svg{width:22px;height:22px;flex-shrink:0}
.srt-more-menu .cr-iconbutton{display:grid;place-items:center;width:40px;height:40px;min-width:40px;border:0;border-radius:9px;background:transparent;color:var(--muted);padding:8px}
.srt-more-menu .cr-pagehead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 16px}
.srt-more-menu .cr-sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 9px}
.srt-more-menu .cr-sectionhead button{display:flex;align-items:center;gap:3px;background:transparent;border:0;min-height:32px;color:var(--srt93-accent);font-size:12px;padding:0}
.srt-more-menu .cr-sectionhead svg{width:14px;height:14px}
.srt-more-menu .cr-list{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}
.srt-more-menu .cr-row{display:flex;align-items:center;gap:11px;border:0;border-bottom:1px solid var(--line);padding:12px;width:100%;min-height:62px;text-align:left;background:var(--panel);color:var(--ink)}
.srt-more-menu .cr-row:last-child{border-bottom:0}
.srt-more-menu .cr-rowbody{flex:1;min-width:0}
.srt-more-menu .cr-row strong{display:block;font-size:calc(13px * var(--text-scale,1));line-height:1.35;font-weight:650}
.srt-more-menu .cr-row small{display:block;color:var(--muted);font-size:calc(11px * var(--text-scale,1));line-height:1.4;margin-top:4px;overflow-wrap:anywhere}
.srt-more-menu .cr-row>svg{width:15px;height:15px;color:var(--muted)}
.srt-more-menu .cr-icon{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:8px;background:var(--surface-soft);color:var(--srt93-accent)}
.srt-more-menu .cr-icon svg{width:19px;height:19px}
.srt-more-menu .cr-rowhead,.srt-more-menu .cr-rowfoot{display:flex;justify-content:space-between;align-items:center;gap:10px}
.srt-more-menu .cr-rowhead strong{font-size:calc(14px * var(--text-scale,1));line-height:1.35}
.srt-more-menu .cr-rowfoot{font-size:11px;color:var(--muted);margin-top:10px}
.srt-more-menu .cr-rowfoot span:last-child{display:flex;align-items:center;gap:5px}
.srt-more-menu .cr-rowfoot svg{width:13px;height:13px}
.srt-more-menu .cr-search svg{width:17px;height:17px}
.srt-more-menu .cr-nav svg{width:21px;height:21px}
@media(max-width:420px){#compact-review .cr-header{gap:4px;padding-inline:8px}#compact-review .cr-brand{display:none}#compact-review .cr-header strong{overflow-wrap:anywhere}}

/* Icon-only header menu; keep the existing 64px slot beside the bell. */
#compact-review .cr-header .cr-iconbutton.cr-menu-trigger{width:64px;min-width:64px;min-height:44px;color:var(--ink)}
#compact-review .cr-menu-trigger .cr-menu-dots{width:28px;height:28px}

/* Responsive touch and keyboard sizing; no device or posture sniffing. */
body.compact-review #modal :is(input,select,textarea){font-size:max(16px,1em)}
#compact-review .layout-shift-time{min-width:58px;overflow-wrap:normal;word-break:normal}

/* Prominent shift recovery and compact, consistent navigation rows. */
#compact-review .cr-open-shift{min-height:88px;margin:8px 0;padding:16px;border:1px solid #235f4c;border-radius:12px;background:#235f4c;color:#fff;gap:12px}
#compact-review .cr-open-shift .cr-rowbody b{display:block;font-size:calc(19px * var(--text-scale,1));line-height:1.3;margin-top:6px}
#compact-review .cr-open-shift .cr-rowbody small{color:#edf7f3}
body.compact-review #modal .simple-menu-card{grid-template-columns:32px minmax(0,1fr) auto;min-height:60px;padding:12px;gap:10px;align-items:center;height:auto}
body.compact-review #modal .simple-menu-icon{width:32px;height:32px;font-size:18px;border-radius:7px;overflow:hidden}
body.compact-review #modal .simple-menu-icon svg{width:21px;height:21px}
body.compact-review #modal .simple-menu-copy :is(strong,small){display:block;overflow-wrap:anywhere}
body.compact-review #modal .simple-menu-arrow{font-size:20px;line-height:1}
body.compact-review #modal .simple-menu-meta:empty{display:none}
body.compact-review #modal .simple-menu-card:has(.simple-menu-meta){grid-template-columns:32px minmax(0,1fr) auto 16px}
body.compact-review #modal .modal-head{flex-shrink:0}
body.compact-review #modal .modal-body{scroll-padding-block:12px 36px}

body.compact-review #modal .truck-pack .button,body.compact-review #modal button:has(.cr-nav-action-icon){display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:48px;height:auto;line-height:1.35;white-space:normal;padding:12px}
body.compact-review #modal .cr-nav-action-icon{display:inline-flex;width:22px;height:22px;flex:0 0 22px;align-items:center}
body.compact-review #modal .cr-nav-action-icon svg{width:20px;height:20px}
body.compact-review #modal [data-action="modal-back"] .cr-nav-action-icon svg{transform:rotate(180deg)}
body.compact-review #modal .truck-pack>.form-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;align-items:start}
/* v100-layout.css shrinks header icon buttons to 40px and is left unchanged. Higher specificity keeps Messages and Notifications at 44px. The 64px header menu keeps its own rule. */
body.compact-review #compact-review .cr-header .cr-iconbutton:not(.cr-menu-trigger){width:44px;height:44px;min-width:44px;min-height:44px}
label.check-row.hazard-confirm{min-height:44px;cursor:pointer}
