.ops-nav{height:54px;display:flex;gap:6px;align-items:center;padding:7px 20px;border-bottom:1px solid var(--line);background:var(--panel);overflow-x:auto;white-space:nowrap}.ops-nav button{border-color:transparent;background:transparent;font-size:13px}.ops-nav button.active{background:var(--card);border-color:var(--red)}.ops-nav .account{margin-left:auto}.ops-nav .unread{background:var(--red);border-radius:10px;padding:1px 6px;color:#fff;font-size:10px}.workspace{height:calc(100dvh - 208px)}.ops-screen{height:calc(100dvh - 130px);overflow:auto;padding:26px 32px}.ops-screen h1{font-size:26px;letter-spacing:-.8px;margin:0}.ops-heading{display:flex;align-items:flex-start;gap:15px;justify-content:space-between;margin-bottom:22px}.ops-heading p{margin:5px 0;color:var(--muted)}.ops-panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px;margin:16px 0}.ops-panel h2{margin:0 0 12px;font-size:18px}.ops-status{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.ops-status:before{content:'';width:7px;height:7px;background:#db9d4c;border-radius:50%}.ops-status.online:before{background:#35bd9d}.ops-filters{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:9px;margin:16px 0}.ops-filters input,.ops-filters select{min-width:0}.ops-filters label{margin:0}.ops-filters .wide{grid-column:span 2}.ops-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.ops-table th{color:var(--muted);font-size:10px;letter-spacing:.6px;text-transform:uppercase;font-weight:600;padding:12px}.ops-table td{padding:14px 12px;border-top:1px solid var(--line);vertical-align:top}.ops-table tbody tr:hover{background:var(--card)}.ops-table button{background:transparent;border:0;padding:0;text-align:left;color:var(--text)}.ops-table button strong{color:#ef858d}.ops-table small{display:block;color:var(--muted);margin-top:4px}.ops-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.status-badge{display:inline-block;font-size:10px;line-height:1.7;border:1px solid #64758b;border-radius:5px;padding:2px 7px;white-space:nowrap;background:#64758b20}.status-badge[data-status="Completed"]{color:#62d9ac;border-color:#367b62}.status-badge[data-status="Needs Parts"],.status-badge[data-status="Comeback Required"]{color:#edc47c;border-color:#876631}.status-badge[data-status="In Progress"]{color:#81c8ef;border-color:#367da3}.priority-Urgent,.priority-High{color:#ff8e98;font-weight:700}.ops-empty{padding:48px 20px;text-align:center;color:var(--muted)}.ops-empty h2{color:var(--text)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.metric{text-align:left;padding:20px;background:var(--panel);min-height:110px}.metric strong{display:block;font-size:32px;margin-bottom:4px}.metric span{color:var(--muted);font-size:12px}.ops-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.ops-feed{list-style:none;padding:0}.ops-feed li{padding:12px 0;border-bottom:1px solid var(--line)}.ops-feed small{display:block;color:var(--muted);font-size:11px}.ops-dialog{width:min(850px,95vw);max-height:90dvh;overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:15px;padding:24px;box-shadow:var(--shadow)}.ops-dialog::backdrop{background:#000a}.ops-dialog h2{font-size:24px;margin:0 0 6px;letter-spacing:-.6px}.ops-dialog h3{font-size:15px;margin-top:24px}.ops-dialog textarea,.ops-screen textarea{width:100%;min-height:90px;resize:vertical;background:var(--input);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit}.ops-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ops-grid .full{grid-column:1/-1}.ops-grid label{margin:0}.ops-grid label input,.ops-grid label select,.ops-grid label textarea{margin-top:5px}.ops-comment{padding:12px 0;border-bottom:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere}.ops-comment small{display:block;color:var(--muted);font-size:11px}.ops-error{color:#ff9b9b;font-size:12px;white-space:pre-wrap}.ops-info{color:var(--muted);font-size:12px;white-space:pre-wrap}.ops-message{padding:12px;border:1px solid var(--line);border-radius:8px;font-size:12px;margin:12px 0}.ops-dialog .close{position:sticky;top:0}.ops-dialog input[type=checkbox]{width:auto}.ops-job-link{width:100%;text-align:left;margin-top:8px;font-size:12px}.work-count{position:absolute;right:-9px;top:-9px;background:#e45059;color:#fff;border:2px solid var(--panel);border-radius:20px;font-size:10px;min-width:19px;text-align:center;font-weight:700;z-index:4}.wo-map-filter{max-width:180px;background:var(--panel);padding:8px;font-size:11px}.ops-photo-list{display:flex;gap:7px;flex-wrap:wrap}.ops-save-state{font-size:12px;color:var(--muted);margin-top:9px}.ops-user-row{display:grid;grid-template-columns:1fr 130px 100px;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.ops-hidden{display:none!important}.ops-auth-dialog{max-width:420px}.ops-auth-dialog form{margin-top:20px}.ops-notice{font-size:12px;color:var(--muted);margin-top:8px}.ops-check{display:flex;align-items:center;gap:8px}.ops-check input{width:auto}.ops-raw{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font-size:12px}.ops-link{color:#7fc8ed}.ops-date-label{font-size:10px;color:var(--muted)}
@media(max-width:850px){.ops-filters{grid-template-columns:1fr 1fr}.metrics{grid-template-columns:1fr 1fr}.ops-two{grid-template-columns:1fr}.ops-screen{padding:20px}}
@media(max-width:650px){.ops-nav{padding:6px 8px;gap:0;height:52px}.ops-nav button{padding:8px;font-size:11px}.ops-nav .account{margin-left:0}.workspace{height:calc(100dvh - 186px)}.ops-screen{height:calc(100dvh - 118px);padding:18px 12px}.ops-heading{display:block}.ops-heading h1{font-size:23px}.ops-heading .row{margin-top:10px}.ops-grid{grid-template-columns:1fr}.ops-table td{padding:12px 8px}.ops-table th{padding:10px 8px}.ops-table{font-size:11px}.ops-dialog{padding:18px;max-height:94dvh}.metric{padding:14px;min-height:90px}.metric strong{font-size:26px}.ops-panel{padding:15px}.wo-map-filter{max-width:140px}.ops-user-row{grid-template-columns:1fr}.ops-nav .account{max-width:110px;overflow:hidden;text-overflow:ellipsis}}
@media print{.ops-nav,.ops-screen,.ops-dialog{display:none!important}}
.email-information{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:10px}.email-information h3{margin-top:0}.email-information h4{margin:16px 0 8px}.email-problem{padding:12px;background:var(--input);border-radius:8px}.email-problem h4{margin-top:0}.email-problem p{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0}.email-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0}.email-field-grid dt{font-size:11px;color:var(--muted);margin-bottom:4px}.email-field-grid dd{margin:0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.email-open-link{display:inline-block;margin-top:12px;padding:10px 14px;color:var(--text);border:1px solid var(--line);border-radius:8px}@media(max-width:550px){.email-field-grid{grid-template-columns:1fr}}

/* Work-order reading and editing layout. The dialog owns vertical scrolling. */
#ops-job{width:min(900px,95vw);padding:28px;scrollbar-gutter:stable;overscroll-behavior:contain}
#ops-job h2{font-size:23px;line-height:1.35;max-width:calc(100% - 44px);overflow-wrap:anywhere;margin:8px 0 10px}
#ops-job h3{font-size:15px;line-height:1.4;letter-spacing:.1px}
#ops-job .eyebrow{font-size:11px;letter-spacing:1px;color:var(--muted)}
#ops-job .close{z-index:2;background:var(--panel);border:1px solid var(--line);border-radius:50%;width:32px;height:32px;display:grid;place-items:center}
#ops-job .row{flex-wrap:wrap;gap:8px}
#ops-job details{margin:14px 0;padding:12px 14px;border:1px solid var(--line);border-radius:9px}
#ops-job summary{cursor:pointer;font-size:12px;font-weight:600;line-height:1.6;color:var(--muted)}
#ops-job details[open]>summary{color:var(--text);margin-bottom:12px}
#ops-job details>p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
#ops-job .email-information{padding:20px;background:var(--input);margin:20px 0}
#ops-job .email-information>h3{margin:0 0 16px}
#ops-job .email-problem{background:var(--panel);padding:14px 16px;border-left:3px solid #7fc8ed}
#ops-job .email-problem p{font-size:14px;line-height:1.65}
#ops-job .email-field-grid{column-gap:28px;row-gap:16px}
#ops-job .email-field-grid dd{line-height:1.55}
#ops-job .ops-assignment,#job-edit{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:10px}
#ops-job .ops-assignment h3,#job-edit>h3{margin:0 0 14px}
#ops-job .ops-assignment label{margin:0 0 12px}
#ops-job .ops-assignment select{max-width:440px}
.ops-status-actions{margin-bottom:16px}.ops-status-actions button{font-size:11px;padding:8px 10px}
#job-edit .ops-grid{gap:16px;margin-top:14px}#job-edit label{font-size:12px;color:var(--muted)}
#ops-job .ops-comment{font-size:13px;line-height:1.65;padding:14px 0}
#ops-job .ops-comment small{line-height:1.6;margin-bottom:6px}
#job-comment{margin-top:16px}#job-comment button{margin-top:10px}
#job-history{overflow:visible;max-height:none}
.history-list{list-style:none;padding:0;margin:16px 0 0}
.history-item{position:relative;display:grid;grid-template-columns:12px minmax(0,1fr);gap:14px;padding:0 0 22px;white-space:normal}
.history-item:not(:last-child):before{content:'';position:absolute;left:4px;top:12px;bottom:0;width:1px;background:var(--line)}
.history-dot{width:9px;height:9px;border-radius:50%;background:#7fc8ed;margin-top:5px;border:2px solid var(--panel);box-shadow:0 0 0 1px var(--line)}
.history-meta{font-size:11px;line-height:1.5;color:var(--muted);margin-bottom:5px}
.history-item strong{font-size:13px;font-weight:600;line-height:1.5}
.history-item p{font-size:12px;color:var(--muted);line-height:1.6;margin:4px 0 0;overflow-wrap:anywhere}
.status-badge[data-status="Cancelled"]{color:#b8c2d1;border-color:#687487;background:#68748718}
.ops-table td:first-child{min-width:210px;max-width:440px}.ops-table td:first-child small{line-height:1.5}
.ops-dialog button:focus-visible,.ops-dialog summary:focus-visible,.ops-dialog a:focus-visible{outline:2px solid #7fc8ed;outline-offset:3px}
@media(max-width:650px){#ops-job{padding:18px 14px;width:96vw}#ops-job h2{font-size:20px}#ops-job .email-information,#ops-job .ops-assignment,#job-edit{padding:14px}.history-item{gap:10px}.ops-status-actions button{flex:1 1 auto;min-height:36px}}

.pm-progress{margin:16px 0}.pm-progress>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.pm-progress span{color:var(--muted)}.pm-progress progress{width:100%;height:14px;margin-top:14px;accent-color:#46b88a}.status-badge[data-status=Overdue]{color:#ffbd88;background:#643617}.status-badge[data-status=Pending]{color:#c9d4e2;background:#29394b}

.pm-checkbox{display:flex;align-items:center;gap:10px;cursor:pointer;white-space:nowrap}.pm-checkbox input[type=checkbox]{width:23px;height:23px;accent-color:#46b88a;cursor:pointer}.pm-last-missing{color:#eab780;font-size:13px}.pm-last-complete{color:#67cca4;font-size:13px}
/* Phone layouts: shared controls and data remain available on every screen. */
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,a.action,summary{touch-action:manipulation}
@media screen and (max-width:650px){
 html{height:100%;-webkit-text-size-adjust:100%}
 body{height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
 header{height:62px;flex:0 0 62px;padding:8px 12px}header .eyebrow{display:none}.brand-title{font-size:15px}header .brand{flex-shrink:0}.header-actions button{min-width:44px;min-height:44px}
 .ops-nav{height:auto;flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px 8px;overflow:visible;background:var(--panel)}
 .ops-nav button{min-height:44px;padding:8px 3px;font-size:12px;border-radius:10px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ops-nav button.active{background:var(--red);color:white;border-color:var(--red);font-weight:700}.ops-nav .account{max-width:none;width:100%;margin:0}.ops-nav .unread{padding:1px 4px}
 .stats{flex:0 0 58px;height:58px;padding:8px 14px;gap:24px}.stat strong{font-size:20px}.stat span{font-size:10px}
 .workspace{flex:1 1 0;height:auto;min-height:0}.ops-screen{flex:1 1 0;height:auto;min-height:0;padding:18px 12px 24px;overflow-x:hidden;overscroll-behavior-y:contain;scroll-padding:16px}
 .ops-heading{margin-bottom:16px}.ops-heading p{font-size:13px;line-height:1.6}.ops-heading>button{margin-top:12px}.ops-heading h1{font-size:26px}
 button,a.action,input:not([type=checkbox]),select,summary{min-height:44px}input:not([type=checkbox]),select,textarea{font-size:16px!important}input[type=checkbox]{min-width:24px;min-height:24px}summary{display:flex;align-items:center;gap:8px}summary:before{content:'›';font-size:22px}details[open]>summary:before{transform:rotate(90deg)}
 .ops-filters{gap:12px 10px;grid-template-columns:repeat(2,minmax(0,1fr))}.ops-filters>input[type=search],.ops-filters>label:has(input[type=search]){grid-column:1/-1}.ops-filters label{font-size:12px}.ops-filters label input,.ops-filters label select{margin-top:5px}
 .ops-table-wrap:has(.mobile-cards){border:0;background:transparent;overflow:visible}.mobile-cards{display:block;width:100%;font-size:14px}.mobile-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mobile-cards tbody{display:grid;gap:14px}.mobile-cards tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:4px 14px 10px;box-shadow:0 3px 12px #0001}.mobile-cards tbody tr:hover{background:var(--panel)}
 .mobile-cards tbody td{display:block!important;min-width:0;max-width:none;padding:12px 6px;border:0;overflow-wrap:anywhere}.mobile-cards tbody td:before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);margin-bottom:7px;line-height:1.5}.mobile-cards tbody td:first-child{grid-column:1/-1;border-bottom:1px solid var(--line);padding:14px 6px;font-size:16px;min-width:0;max-width:none}.mobile-cards tbody td:first-child:before{display:none}.mobile-cards td:first-child button{width:100%;min-height:44px}.mobile-cards small{font-size:12px;line-height:1.55}.status-badge{font-size:12px;padding:3px 8px}
 .pm-checkbox{min-height:48px;white-space:normal;margin:0;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--input);font-size:12px;color:var(--text);gap:8px}.pm-checkbox input[type=checkbox]{flex:0 0 24px;margin:0}.pm-checkbox:has(input:checked){border-color:#3b9675;background:#35bd9d12}.pm-last-missing,.pm-last-complete{font-size:12px}.pm-progress{padding:16px}.pm-progress>div{font-size:13px}.pm-history summary{font-size:14px;font-weight:650}
 .ops-dialog,#ops-job{width:100%;max-width:100%;max-height:94dvh;margin:auto 0 0;border-radius:20px 20px 0 0;padding:20px 16px calc(24px + env(safe-area-inset-bottom));scrollbar-gutter:auto;overscroll-behavior:contain}.ops-auth-dialog{max-width:100%}#ops-job .close,.ops-dialog .close{width:44px;height:44px;min-height:44px;top:0;z-index:5;background:var(--panel);border:1px solid var(--line);border-radius:50%}#ops-job h2{font-size:22px;max-width:calc(100% - 50px)}.ops-grid{gap:16px}.ops-status-actions{display:grid;grid-template-columns:1fr 1fr}.ops-status-actions button{min-height:44px;font-size:12px}.ops-dialog .row>button{min-width:110px}.ops-dialog .email-field-grid{grid-template-columns:1fr}.ops-dialog textarea{min-height:110px}
 aside{width:min(360px,92vw)}.tabs{padding:8px 10px 0}.pane{padding:12px}.store{min-height:72px}.store small{font-size:12px}.map-tools{max-width:calc(100% - 58px);gap:6px}.map-tools button{min-height:44px;font-size:12px}.wo-map-filter{max-width:170px!important;font-size:14px!important}.detail{top:auto;bottom:8px;left:8px;right:8px;width:auto;max-height:78%;padding:16px;border-radius:18px}.detail .close{width:44px;height:44px}.detail h2{font-size:22px}.map-caption{max-width:calc(100% - 20px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.stop{flex-wrap:wrap}.stop .stop-name{min-width:90px}.stop button{min-width:44px;min-height:44px}#toast{bottom:calc(16px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 24px);font-size:13px;z-index:3000}
 .metrics{gap:10px}.metric{border-radius:14px;min-height:106px}.metric span{font-size:13px}.ops-user-row{gap:12px}.ops-panel{border-radius:14px}.ops-comment{line-height:1.65}.ops-two{gap:0}
}
@media screen and (max-width:370px){.brand-title{font-size:13px}.ops-nav button{font-size:11px}.mobile-cards tbody tr{padding-left:10px;padding-right:10px}.pm-checkbox{padding:6px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media screen and (max-width:650px){.mobile-cards:has([data-pm]) tbody td:nth-child(4){grid-column:1/-1}.mobile-cards:has([data-pm]) tbody td:nth-child(5),.mobile-cards:has([data-pm]) tbody td:nth-child(6){align-self:start}}

.ops-more-filters{margin:12px 0}.ops-more-filters summary{font-size:12px;font-weight:600;padding:8px 0}@media screen and (max-width:650px){.ops-more-filters{padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.ops-more-filters summary{min-height:48px;line-height:1.5}.ops-more-filters .ops-filters{margin-top:6px}}
/* Compact phone density, retaining every field and comfortable touch targets. */
@media screen and (max-width:650px){
 header{height:52px;flex-basis:52px;padding:4px 10px;gap:8px}.brand{width:32px;height:32px;line-height:32px;font-size:20px}.header-actions button{padding:6px 9px}
 .ops-nav{padding:2px 6px;gap:0 4px}.ops-nav button{border-radius:8px;padding:6px 2px;min-height:44px}
 .ops-screen{padding:10px 10px 16px}.ops-heading{display:flex;align-items:flex-start;gap:8px;margin-bottom:10px}.ops-heading>div{min-width:0}.ops-heading h1{font-size:23px}.ops-heading p{font-size:12px;line-height:1.4;margin:3px 0}.ops-heading>.row{margin:0;flex:0 0 auto}.ops-heading>button{margin-top:0;flex-shrink:0;padding:7px 10px}.ops-heading .eyebrow{font-size:8px}.ops-status{font-size:11px}
 .ops-filters{margin:10px 0;gap:7px 8px}.ops-filters label{font-size:11px}.ops-filters label input,.ops-filters label select{margin-top:3px}.ops-filters input,.ops-filters select{padding:8px}.ops-more-filters{margin:8px 0;padding:0 10px}.ops-more-filters summary{min-height:44px;font-size:11px}
 .mobile-cards tbody{gap:9px}.mobile-cards tbody tr{border-radius:12px;padding:0 10px 4px}.mobile-cards tbody td{padding:7px 5px;font-size:13px;line-height:1.4}.mobile-cards tbody td:before{font-size:9px;margin-bottom:3px;letter-spacing:.3px}.mobile-cards tbody td:first-child{padding:9px 5px;font-size:15px}.mobile-cards small{font-size:11px;line-height:1.4;margin-top:3px}.mobile-cards .status-badge{font-size:11px;padding:1px 6px;line-height:1.6}
 .mobile-cards:has([data-pm]) tbody td:nth-child(4){grid-column:auto}.mobile-cards:has([data-pm]) tbody td:nth-child(2){grid-column:1;grid-row:2}.mobile-cards:has([data-pm]) tbody td:nth-child(3){grid-column:2;grid-row:2 / span 2}.mobile-cards:has([data-pm]) tbody td:nth-child(4){grid-column:1;grid-row:3}.mobile-cards:has([data-pm]) tbody td:nth-child(5){grid-column:1;grid-row:4}.mobile-cards:has([data-pm]) tbody td:nth-child(6){grid-column:2;grid-row:4}
 .pm-checkbox{min-height:44px;padding:6px;gap:6px;border-radius:8px;font-size:11px}.pm-last-missing,.pm-last-complete{font-size:11px}.pm-progress{margin:9px 0;padding:10px 12px}.pm-progress>div{font-size:12px;gap:4px}.pm-progress progress{height:9px;margin-top:7px}.pm-progress p{font-size:12px;margin:5px 0}.ops-panel{padding:12px;margin:10px 0}.pm-history summary{font-size:13px}
 .metrics{gap:8px}.metric{padding:11px;min-height:82px}.metric strong{font-size:24px;margin-bottom:1px}.metric span{font-size:12px}
 .ops-dialog,#ops-job{padding:14px 12px calc(16px + env(safe-area-inset-bottom));max-height:96dvh}.ops-dialog h2,#ops-job h2{font-size:20px;margin:4px 0 7px}#ops-job .email-information,#ops-job .ops-assignment,#job-edit{padding:12px;margin-top:12px}#ops-job details{margin:9px 0;padding:6px 10px}.ops-grid{gap:10px}#job-edit .ops-grid{gap:10px;margin-top:9px}.ops-status-actions{gap:6px;margin-bottom:10px}.ops-dialog h3,#ops-job h3{margin-top:16px}.email-field-grid{gap:10px}.history-item{padding-bottom:14px}
 .stats{height:50px;flex-basis:50px;padding:6px 12px;gap:20px}.stat strong{font-size:18px}.store{min-height:62px;padding:9px 8px;margin:3px 0}.store small{font-size:11px}.detail{padding:12px}.detail h2{font-size:20px}
}

.status-badge[data-status='Third party']{color:#c2afff;border-color:#8065b8;background:#8065b818}
