.mt-workspace{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}.mt-workspace .page-heading{flex-shrink:0}.mt-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.mt-actions .small-button{white-space:nowrap}.mt-panel{padding:24px 0 0}.mt-panel h2,.mt-section-heading h2{font-size:18px;font-weight:600;line-height:1.4;letter-spacing:-.3px;margin:0}.mt-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.mt-section-heading p{margin:6px 0 0;font-size:13px;color:#747474}.mt-panel .mt-section-heading~.mt-section-heading{margin-top:28px}.mt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px}.mt-grid .mt-full{grid-column:1/-1}.mt-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px}.mt-field>span:first-child{font-weight:500}.mt-field input,.mt-field select,.mt-field textarea{width:100%;min-width:0;font-family:inherit;font-size:13px;font-weight:400;border:1px solid #ccc;border-radius:6px;background:#fff;padding:9px 10px;min-height:36px}.mt-field textarea{resize:vertical;min-height:95px;line-height:1.5}.mt-field input[type=checkbox]{min-height:0;width:16px;height:16px}.mt-field .mt-check{display:flex;align-items:center;gap:8px}.mt-field .mt-money{position:relative}.mt-money:before{content:'$';position:absolute;left:10px;top:9px;color:#686868}.mt-money input{padding-left:24px}.mt-save-status{font-size:12px;color:#777;min-height:18px}.mt-summary{display:flex;flex-wrap:wrap;gap:20px;margin:20px 0}.mt-summary>div{flex:1;min-width:130px;background:#f7f7f7;border:1px solid #e8e8e8;border-radius:8px;padding:16px}.mt-summary strong{display:block;font-size:21px;margin-top:7px;font-weight:600}.mt-summary span{font-size:12px;color:#666}.mt-card{border:1px solid #e5e5e5;border-radius:8px;padding:18px;margin-bottom:14px;background:#fff;min-width:0}.mt-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.mt-card h3{font-size:14px;font-weight:600;margin:0 0 8px}.mt-card p{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.mt-card .mt-actions{margin-top:14px}.mt-muted{color:#727272;font-size:12px}.mt-badge{display:inline-flex;align-items:center;font-size:11px;font-weight:500;border-radius:5px;padding:4px 7px;line-height:1.35;white-space:nowrap;background:#f0f1f3;color:#50545c}.mt-badge-blue{background:#e8effd;color:#235fb4}.mt-badge-green{background:#e4f5eb;color:#217543}.mt-badge-yellow{background:#fff3d5;color:#885900}.mt-badge-red{background:#ffebeb;color:#b53a36}.mt-warning{border:1px solid #f0dbac;border-radius:6px;background:#fffbf1;padding:12px 14px;font-size:13px;line-height:1.5;margin:12px 0}.mt-warning.blocking{border-color:#f0cccc;background:#fff6f6;color:#923d39}.mt-empty{padding:36px 0;text-align:left;color:#737373;border:0;border-radius:0}.mt-empty h3{font-size:15px;color:#333;margin:10px 0}.mt-empty p{font-size:13px;line-height:1.65;max-width:530px;margin:7px 0}.mt-register{display:flex;flex-direction:column;flex:1;min-height:0}.mt-register .table-scroll{flex:1;min-height:150px;border:1px solid #e6e6e6;border-radius:8px;overflow:auto}.mt-register th{white-space:nowrap}.mt-register .sort-button{font-family:inherit;font-weight:500;color:inherit;cursor:pointer}.mt-register td{font-size:12px}.mt-register td a{font-weight:500}.mt-register .mt-subline{display:block;font-size:11px;color:#777;margin-top:5px}.mt-register .table-toolbar{flex-wrap:wrap}.mt-register .table-search{min-width:160px}.mt-view-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 16px}.mt-view-tabs button[aria-pressed=true]{background:#242424;color:#fff;border-color:#242424}.mt-count{font-size:12px;color:#777;margin-left:auto}.mt-record{height:100%;min-height:0}.mt-record .overview-body{padding:20px 0 0}.mt-record .record-content{min-width:0}.mt-record .record-tabs{flex-shrink:0}.mt-record-panel{overflow:auto;flex:1;min-height:0}.mt-record .record-content{display:flex;flex-direction:column}.mt-timestamps{border-top:1px solid #e8e8e8;margin-top:24px;padding-top:14px;font-size:11px;color:#777;display:grid;gap:8px}.mt-timestamps div{display:flex;justify-content:space-between;gap:10px}.mt-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #ddd;border-radius:12px;box-shadow:0 20px 80px #0003}.mt-dialog::backdrop{background:#0006}.mt-dialog .dialog-heading{padding:24px 24px 0;margin:0;display:flex;align-items:center;justify-content:space-between}.mt-dialog .dialog-heading h2{font-size:20px;line-height:1.4;margin:0}.mt-dialog-body{padding:20px 24px 24px;overflow:auto;max-height:calc(100dvh - 128px)}.mt-dialog-body>form>.mt-actions{justify-content:flex-end;margin-top:24px}.mt-dialog .mt-section-heading{margin-top:18px}.mt-picker{position:relative}.mt-picker-results{max-height:225px;overflow:auto;margin-top:5px;border:1px solid #ddd;border-radius:6px;background:#fff}.mt-picker-results button{display:block;text-align:left;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #f1f1f1;background:#fff;font:inherit;cursor:pointer}.mt-picker-results button:hover,.mt-picker-results button:focus{background:#f4f4f4}.mt-picker-value{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border:1px solid #ddd;border-radius:6px;min-height:38px}.mt-files{display:grid;gap:10px;margin:12px 0}.mt-file{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f7f7f7;border:1px solid #e8e8e8;border-radius:6px;font-size:12px;overflow-wrap:anywhere}.mt-file a{min-width:0}.mt-file small{margin-left:auto;white-space:nowrap;color:#777}.mt-file .icon{flex-shrink:0}.mt-upload input{max-width:100%;font:inherit}.mt-pdf{width:100%;border:1px solid #ddd;background:#f4f4f4;overflow:auto;border-radius:6px;padding:12px;text-align:center;max-height:65vh}.mt-pdf canvas{max-width:100%;height:auto;background:#fff;box-shadow:0 2px 8px #0002}.mt-budget-row{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.5fr;gap:12px;align-items:end;border-top:1px solid #eee;padding:14px 0}.mt-budget-row>strong{font-size:13px;padding-bottom:10px}.mt-event{border-bottom:1px solid #eee;padding:16px 0}.mt-event:first-child{padding-top:0}.mt-event h3{margin:0;font-size:13px;font-weight:600}.mt-event p{font-size:12px;line-height:1.6;color:#666;white-space:pre-wrap}.mt-event dl{font-size:12px;display:grid;grid-template-columns:1fr 2fr;gap:6px;overflow-wrap:anywhere}.mt-event dd{margin:0}.mt-comment{border-bottom:1px solid #eee;padding:16px 0}.mt-comment.reply{margin-left:28px}.mt-comment p{white-space:pre-wrap;line-height:1.6;font-size:13px;overflow-wrap:anywhere}.mt-comment .mt-actions{gap:5px}.mt-comment .small-button{font-size:11px;padding:5px 8px;min-height:28px}.mt-comment-header{display:flex;align-items:center;gap:10px;font-size:12px;flex-wrap:wrap}.mt-composer{display:grid;gap:14px;margin-top:24px}.mt-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.mt-card-grid .mt-card{margin:0}.portal-shell{height:100dvh;display:flex;flex-direction:column;background:#fff}.portal-header{min-height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e5e5;padding:14px 28px;gap:20px}.portal-header img{display:block;width:140px;height:auto}.portal-header span{font-size:13px}.portal-main{flex:1;min-height:0;padding:24px 28px;display:flex;flex-direction:column;overflow:auto}.portal-main.record-main{overflow:hidden}.portal-main .breadcrumbs{flex-shrink:0}.portal-main .record-heading{margin-bottom:20px}.portal-main .record-overview{background:#fafafa}.portal-home{max-width:1500px;width:100%;margin:auto}.portal-home h1{font-size:24px}.portal-home .mt-section-heading{margin-top:28px}.portal-job-link{color:inherit;text-decoration:none}.portal-job-link:hover h3{text-decoration:underline}.portal-home .mt-actions{margin-top:12px}.mt-inline-error{font-size:13px;color:#b13e37}.mt-checkbox-list{display:grid;gap:10px;max-height:260px;overflow:auto;border:1px solid #eee;border-radius:6px;padding:14px}.mt-checkbox-list label{display:flex;gap:10px;align-items:center;font-size:13px}.mt-checkbox-list input{width:16px;height:16px}.mt-attachment-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.mt-selected{font-weight:500}.mt-notification.unread{border-left:3px solid #393939}.mt-notification a{font-weight:500}.mt-text-pre{white-space:pre-wrap;overflow-wrap:anywhere}.mt-portal-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.mt-portal-nav button[aria-pressed=true]{background:#242424;color:white}.mt-workspace>.form-error{flex-shrink:0}.mt-register .table-scroll:focus-visible{outline:2px solid #444;outline-offset:3px}
@media(min-width:1000px){.mt-record{grid-template-columns:450px minmax(0,1fr)}}
@media(max-width:999px){.mt-record{grid-template-columns:340px minmax(0,1fr)}.mt-budget-row{grid-template-columns:1fr 1fr}.mt-budget-row>strong{grid-column:1/-1}.mt-panel{padding:20px 0 0}}
@media(max-width:760px){.mt-record{display:flex;flex-direction:column;height:auto;overflow:visible}.mt-record .record-overview,.mt-record .record-content,.mt-record-panel{overflow:visible;max-height:none}.mt-record .record-content{min-height:400px}.mt-workspace:has(.mt-record){overflow:visible}.portal-main.record-main{overflow:auto}.mt-grid{grid-template-columns:1fr 1fr;gap:16px 12px}.mt-panel{padding:20px 0 0}.mt-section-heading{align-items:flex-start;flex-wrap:wrap}.mt-dialog-body{padding:20px 16px}.mt-dialog .dialog-heading{padding:20px 16px 0}.mt-dialog .mt-grid{grid-template-columns:1fr}.mt-budget-row{grid-template-columns:1fr 1fr}.portal-header{padding:16px;gap:12px;align-items:flex-start}.portal-header img{width:110px;margin-top:6px}.portal-header .mt-actions{justify-content:flex-end;gap:6px}.portal-header .mt-actions>span{width:100%;text-align:right}.portal-header .small-button{font-size:11px;padding:6px 8px;min-height:30px}.portal-main{padding:18px 14px}.mt-card-grid{grid-template-columns:1fr}.mt-register .table-search{flex:1}.mt-register .table-toolbar{gap:8px}.mt-count{width:100%;margin-left:0}.mt-register .page-heading{gap:12px}.mt-summary{gap:10px}.mt-summary>div{min-width:110px;padding:12px}.mt-summary strong{font-size:19px}.mt-record .record-tabs{overflow-x:auto}.mt-card{padding:14px}.mt-comment.reply{margin-left:16px}}
/* Keep module controls at the same compact scale as existing record forms. */
.mt-field{margin:0}.mt-field input:not([type=checkbox]):not([type=file]),.mt-field select{height:38px}.mt-field input[type=file]{height:auto;min-height:38px;font-size:12px}.mt-field input[type=checkbox]{height:16px}.mt-field>span{line-height:1.4}.mt-picker>label{margin:0}.mt-picker>input[type=search]{height:38px}.mt-register th{padding:1px}.mt-record .overview-body>form{margin-top:16px}.mt-record .record-tabs{padding-left:0;padding-right:0}.mt-record-panel{padding-top:24px}.portal-home{margin:0 auto}.portal-main .mt-grid input:disabled,.portal-main .mt-grid textarea:disabled,.portal-main .mt-grid select:disabled{opacity:1;color:#424242;-webkit-text-fill-color:#424242;background:#f7f7f7}.mt-dialog .icon-button>span{display:none}.mt-dialog .icon-button{width:34px;height:34px;min-width:34px}
.mt-file{min-width:0}.mt-file a{flex:1;min-width:0;overflow-wrap:anywhere}.mt-file small{flex-shrink:0;margin-left:0}.mt-files{min-width:0}.mt-record .record-overview>summary .icon{transform:rotate(90deg)}.mt-record .record-overview[open]>summary .icon{transform:rotate(-90deg)}
.mt-workspace .icon,.mt-dialog .icon{width:18px;height:18px;flex-shrink:0}.mt-empty>.icon{width:26px;height:26px;color:#8a8a8a}.portal-home .mt-card>svg{width:22px;height:22px;margin-bottom:12px;color:#555}.portal-home .page-heading{align-items:flex-start}.portal-home .page-heading h1{margin-top:0}
@media(max-width:760px){.portal-home .page-heading{flex-direction:column}.portal-home .page-heading .mt-actions{margin-top:0}.portal-home .page-heading h1{font-size:24px}.portal-home .page-heading>div{width:100%}}

.mt-field select.mt-yes{background-color:#eef9f1;color:#17773a;border-color:#c0e7cd}.mt-field select.mt-no{background-color:#fff1f0;color:#bd2922;border-color:#f2cdca}

.mt-thumbnail{width:64px;height:64px;object-fit:cover;flex-shrink:0;border-radius:4px}.mt-file:has(.mt-thumbnail){align-items:center}

.mt-dialog form{margin:0}.mt-dialog form>.mt-actions{position:sticky;bottom:-24px;background:white;margin:16px -24px -24px;padding:16px 24px;border-top:1px solid #eee;z-index:3}@media(max-width:760px){.mt-dialog form>.mt-actions{bottom:-20px;margin:16px -16px -20px;padding:14px 16px}}

.mt-empty>.icon{display:block;margin:0 auto}

/* Maintenance uses the shared record and table scale. */
.mt-field input:focus,.mt-field textarea:focus,.mt-field select:focus{outline:2px solid #333;outline-offset:1px}
.mt-card .mt-section-heading h2{font-size:14px;letter-spacing:0}.mt-card .mt-section-heading{margin-bottom:14px}.mt-card .mt-section-heading p{font-size:12px;line-height:1.5;margin-top:4px}
.mt-section-heading>.mt-actions{margin-top:0}.mt-register .table-search{height:38px;padding:0 11px;font:inherit;font-size:13px;border:1px solid #d4d4d4;border-radius:6px}.mt-register td.table-empty{font-size:13px}
.mt-record .record-content{overflow:hidden}.mt-record-panel{overscroll-behavior:contain;scrollbar-width:thin}.mt-record .overview-body>form{margin-top:20px}.mt-record .record-overview{scrollbar-width:thin;overscroll-behavior:contain}.mt-timestamps+ .mt-actions{margin-top:16px}
.mt-dialog{overflow:hidden;width:min(640px,calc(100vw - 32px))}.mt-dialog-body{max-height:calc(100dvh - 140px);overscroll-behavior:contain}.mt-dialog .mt-field{font-weight:400}.mt-dialog .mt-field>span{font-weight:500}.mt-dialog .dialog-heading .icon-button{background:transparent;border:0}.mt-dialog input[type=file]{height:auto;padding:9px;font-size:12px}.mt-dialog .mt-section-heading h2{font-size:14px}
.mt-photo-overview{margin:0 0 20px;border:1px solid #e4e4e4;border-radius:8px;overflow:hidden;text-align:center;background:#fafafa;min-width:0}.mt-photo-overview:has(>strong){padding:28px 16px}.mt-photo-overview>svg{display:block;margin:0 auto 10px;color:#8a8a8a;width:24px;height:24px}.mt-photo-overview>strong{font-size:13px;font-weight:500}.mt-photo-overview>p{font-size:12px;margin:6px 0 16px}.mt-photo-cover{display:block;padding:0;width:100%;border:0;background:#eee;position:relative;cursor:zoom-in;text-align:left}.mt-photo-cover>img{display:block;width:100%;height:210px;object-fit:cover}.mt-photo-cover>span{position:absolute;bottom:10px;right:10px;color:white;background:#171717b8;border-radius:5px;padding:5px 8px;font-size:11px}.mt-photo-strip{display:flex;gap:6px;align-items:center;padding:8px;background:white}.mt-photo-thumb{border:1px solid #ddd;border-radius:4px;overflow:hidden;width:40px;height:36px;padding:0;background:#fff;flex-shrink:0}.mt-photo-thumb img{width:100%;height:100%;object-fit:cover}.mt-photo-strip>.small-button{margin-left:auto;min-height:30px;padding:5px 8px;font-size:11px}.mt-photo-strip>.small-button svg{height:14px;width:14px}.mt-gallery-dialog{width:min(1100px,calc(100vw - 32px))}.mt-gallery-frame{background:#f7f7f7;border-radius:6px;display:flex;justify-content:center;align-items:center;min-height:160px}.mt-gallery-image{max-width:100%;max-height:65vh;object-fit:contain}.mt-gallery-dialog .mt-grid{gap:12px}.mt-gallery-dialog .mt-actions p{margin:0;flex:1;overflow-wrap:anywhere}.mt-chevron-back svg{transform:rotate(180deg)}
.mt-contact-context{margin-top:18px}.mt-contact-group{border-top:1px solid #e7e7e7;padding:14px 0}.mt-contact{display:grid;gap:4px;margin-top:12px;min-width:0}.mt-contact>a{font-size:12px;overflow-wrap:anywhere}.mt-contact-detail{color:#686868;text-decoration:none}.mt-contact-detail:hover{text-decoration:underline}.mt-contact-group summary:after{content:'⌄';color:#777}
.mt-progress{display:flex;list-style:none;margin:0 0 24px;padding:0;gap:0;overflow-x:auto}.mt-progress li{flex:1;display:flex;align-items:center;gap:8px;white-space:nowrap;color:#8a8a8a;font-size:11px;position:relative;padding:0 10px 0 0}.mt-progress li+li:before{content:'';width:12px;height:1px;background:#ddd;margin-right:2px}.mt-progress li>span{border:1px solid #ddd;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;flex-shrink:0}.mt-progress li>strong{font-weight:400}.mt-progress li.current{color:#171717}.mt-progress li.current>span{background:#222;border-color:#222;color:white}.mt-progress li.current>strong{font-weight:600}.mt-progress li.complete>span{background:#edf6ee;color:#267241;border-color:#d2e6d7}.mt-progress li.complete{color:#555}
.mt-next-action{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #ddd;border-radius:8px;padding:20px;margin-bottom:20px;background:#fafafa}.mt-next-action h3{font-size:18px;line-height:1.4;font-weight:600;letter-spacing:-.3px;margin:5px 0}.mt-next-action p{font-size:13px;color:#666;line-height:1.5;margin:5px 0 0}.mt-next-action>.mt-actions{flex-shrink:0}.mt-eyebrow{font-size:11px;color:#777;font-weight:500}.mt-job-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 24px;border-bottom:1px solid #e8e8e8;padding-bottom:20px;gap:18px}.mt-job-facts dt{font-size:11px;color:#777;margin-bottom:7px}.mt-job-facts dd{font-size:13px;font-weight:500;margin:0;overflow-wrap:anywhere}.mt-workflow-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px}.mt-workflow-columns>div{min-width:0}.mt-followup-row{display:flex;gap:10px;align-items:center;padding:12px 0;border-top:1px solid #eee;font-size:12px}.mt-followup-row>div{flex:1;min-width:0}.mt-followup-row strong{font-size:12px;font-weight:500}.mt-followup-row p{font-size:12px;margin:4px 0 0}.mt-followup-row .small-button{font-size:11px;min-height:30px;padding:5px 9px}.mt-due{font-size:11px;white-space:nowrap;color:#555}.mt-due.is-due{color:#a43b32;background:#fff0ed;padding:4px 7px;border-radius:4px}.mt-completed{font-size:12px;color:#737373;margin-top:12px}.mt-completed summary{cursor:pointer}.mt-recent-event{padding:12px 0;border-top:1px solid #eee}.mt-recent-event strong{font-size:12px;font-weight:500}.mt-recent-event p{margin:4px 0 0;font-size:11px}.mt-budget-facts{font-size:12px;margin:0;display:grid;gap:12px}.mt-budget-facts>div{display:flex;justify-content:space-between;gap:10px}.mt-budget-facts dt{color:#666}.mt-budget-facts dd{margin:0;font-weight:500;font-variant-numeric:tabular-nums}.mt-card meter{width:100%;height:12px;margin-top:14px}.mt-policy{font-size:12px;border-top:1px solid #eee;padding-top:12px;margin-top:12px}.mt-policy summary{cursor:pointer}.mt-completion-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 0 0;margin-top:4px;border-top:1px solid #eee}.mt-option-list{display:grid;gap:10px}.mt-option-list button{justify-content:flex-start}
.mt-settings{max-width:960px;padding-bottom:30px}.mt-settings-group{border:1px solid #e2e2e2;border-radius:8px;padding:20px;margin:0 0 14px}.mt-settings-group>summary{font-size:14px;font-weight:500;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}.mt-settings-group>summary:after{content:'⌄';color:#777}.mt-settings-group[open]>summary{margin-bottom:10px}.mt-settings-group .mt-grid{margin-top:18px}.mt-settings-group p{font-size:12px;line-height:1.6;max-width:680px}.mt-category-settings{font-size:12px;margin-top:20px;border-top:1px solid #eee;padding-top:16px}.mt-category-settings>summary{cursor:pointer}.mt-settings input:disabled,.mt-settings select:disabled,.mt-settings textarea:disabled{opacity:1;color:#555;background:#f7f7f7}.mt-settings .mt-field select{width:100%;height:38px;font:inherit;font-size:13px;border:1px solid #ccc;border-radius:6px;padding:0 10px}
@media(max-width:1500px){.mt-workflow-columns{grid-template-columns:1fr}.mt-next-action{align-items:flex-start;flex-direction:column;gap:14px}.mt-job-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.mt-progress li{font-size:10px;gap:5px}.mt-progress li+li:before{width:6px;margin-right:0}}
@media(max-width:760px){.mt-record .record-content{overflow:visible}.mt-record .overview-body{padding-top:16px}.mt-photo-cover>img{height:200px}.mt-next-action{padding:16px}.mt-next-action h3{font-size:16px}.mt-progress{padding-bottom:8px;gap:8px}.mt-progress li{font-size:10px;flex:none}.mt-job-facts{gap:16px}.mt-followup-row{flex-wrap:wrap}.mt-followup-row>.mt-due{margin-left:auto}.mt-completion-actions{align-items:flex-start;flex-direction:column}.mt-settings-group{padding:16px}.mt-settings .mt-grid{grid-template-columns:1fr}.mt-gallery-image{max-height:50vh}.mt-gallery-dialog .mt-actions{gap:6px}.mt-photo-strip>.small-button{margin-left:auto}.mt-record-panel{overflow:visible}}
.mt-stage-strip{display:grid;grid-template-columns:repeat(10,minmax(105px,1fr));border:1px solid #e4e4e4;border-radius:8px;margin:0 0 18px;flex-shrink:0;overflow-x:auto;background:#fff}.mt-stage-strip:empty{display:none}.mt-stage{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:13px 16px;border:0;border-right:1px solid #eee;background:white;white-space:nowrap;font:inherit;cursor:pointer}.mt-stage:last-child{border-right:0}.mt-stage>strong{font-size:21px;line-height:1.1;font-weight:600;letter-spacing:-.5px}.mt-stage>span{font-size:11px;color:#6b6b6b}.mt-stage:hover,.mt-stage[aria-pressed=true]{background:#f3f3f3}.mt-stage[aria-pressed=true]{box-shadow:inset 0 -2px #222}.mt-saved-view{height:34px;max-width:160px;border:1px solid #ddd;border-radius:6px;background:#fff;padding:0 8px;font:inherit;font-size:12px}.mt-view-tabs button[data-attention=due]{margin-left:auto}.mt-register .filter-popover{width:320px;max-height:70vh;overflow:auto;z-index:10;display:grid;gap:14px}.mt-register .filter-popover[hidden]{display:none}.mt-register .table-toolbar{flex-shrink:0}.mt-register .table-footer{min-height:20px}.mt-view-tabs button[data-attention][aria-pressed=true]{background:#fff0ed;border-color:#edcbc5;color:#a43b32}.mt-register .table-filters{position:relative}.mt-register th .sort-indicator{font-size:13px}
@media(max-width:1000px){.mt-stage-strip{grid-template-columns:repeat(8,110px)}.mt-stage{padding:11px 13px}.mt-stage>strong{font-size:19px}.mt-register .table-toolbar{gap:8px}.mt-saved-view{max-width:140px}.mt-register .table-toolbar>.small-button{font-size:11px}.mt-view-tabs{gap:5px}}
@media(max-width:760px){.mt-view-tabs button[data-attention=due]{margin-left:0}.mt-register .filter-popover{position:fixed;top:190px;left:16px;right:16px;max-width:calc(100vw - 32px);width:auto;max-height:55vh}.mt-stage-strip{margin-bottom:12px}.mt-register .mt-count{width:auto;margin-left:auto}.mt-register .table-toolbar{margin-bottom:12px}.mt-stage>span{font-size:10px}.mt-workspace>.page-heading .mt-actions{gap:6px}.mt-workspace>.page-heading{flex-wrap:wrap}.mt-workspace>.page-heading>div:first-child{flex-basis:100%}.mt-register .mt-view-tabs .small-button{font-size:11px;padding:6px 8px;min-height:32px}}
.mt-services-dialog{width:min(850px,calc(100vw - 32px))}.mt-services-dialog .mt-grid>.mt-full>.mt-section-heading{margin-top:0}.mt-upload-queue{max-height:260px;overflow:auto;border-top:1px solid #eee}.mt-upload-queue p{padding:10px 0;border-bottom:1px solid #eee;margin:0;overflow-wrap:anywhere}.mt-quote-comparison{overflow:auto;border:1px solid #ddd;border-radius:8px;margin-bottom:10px}.mt-quote-comparison th{padding:12px 16px;font-size:12px}.mt-quote-comparison .tenancy-table{font-size:12px}.mt-quote-lowest{display:block;font-size:10px;color:#2b7546;margin-top:4px}.mt-invoice-review{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.mt-invoice-document{min-width:0;position:sticky;top:0}.mt-invoice-document>.mt-field{margin-bottom:12px}.mt-invoice-document .mt-pdf{max-height:calc(100dvh - 440px);min-height:360px;margin-top:12px}.mt-invoice-decisions{min-width:0}.mt-invoice-totals{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px;border:1px solid #dedede;border-radius:8px;margin-bottom:14px;background:#fafafa}.mt-invoice-totals span{font-size:11px;color:#777;display:block;margin-bottom:6px}.mt-invoice-totals strong{font-size:20px;font-weight:600;letter-spacing:-.4px;font-variant-numeric:tabular-nums}.mt-invoice-totals>div+div strong{font-size:16px;color:#666}.mt-check-summary{display:flex;align-items:center;gap:9px;font-size:12px;padding-bottom:12px}.mt-check-summary strong{font-weight:500}.mt-check-summary.blocking{color:#ac3930}.mt-check-summary.warning{color:#865c14}.mt-check-summary.clear{color:#286b42}.mt-check-row{display:flex;gap:9px;padding:11px 0;border-top:1px solid #eee;font-size:12px;color:#775d2e;line-height:1.6}.mt-check-row.blocking{color:#9a453d}.mt-check-row>.icon{width:15px;height:15px;margin-top:2px}.mt-review-options,.mt-add-document{font-size:12px;padding:12px 0}.mt-review-options summary,.mt-add-document summary{cursor:pointer;color:#555}.mt-review-options .mt-option-list,.mt-add-document .mt-upload{margin-top:14px}.mt-review-options .small-button{font-size:12px}.mt-duplicate-link{display:block;margin:10px 0;font-size:12px}.mt-match-suggestion{border-top:1px solid #eee;padding:12px 0;font-size:12px}.mt-match-suggestion strong{font-weight:500}.mt-match-suggestion p{font-size:12px}.mt-invoice-document .mt-actions{gap:6px}.mt-invoice-document .mt-actions .small-button{font-size:11px;padding:5px 8px;min-height:30px}
@media(max-width:1750px){.mt-invoice-review{grid-template-columns:minmax(0,1fr)}.mt-invoice-document{position:static;order:2}.mt-invoice-decisions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mt-invoice-decisions>.mt-card,.mt-invoice-totals{margin-bottom:0}.mt-invoice-document .mt-pdf{max-height:65vh}.mt-invoice-totals{grid-column:1/-1}}
@media(max-width:1000px){.mt-invoice-decisions{grid-template-columns:1fr}.mt-invoice-review{gap:16px}.mt-invoice-document .mt-pdf{min-height:240px}.mt-invoice-totals strong{font-size:19px}}

.mt-settings .mt-field select.mt-yes{background:#eaf6ef;color:#267248}.mt-settings .mt-field select.mt-no{background:#fff0ef;color:#af3e38}
.mt-pdf-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.mt-pdf-tools .mt-muted{margin:0 4px}.mt-pdf canvas{max-width:none;flex-shrink:0}.mt-pdf{overflow:auto;max-height:calc(100dvh - 350px);min-height:240px}.mt-pdf-tools .small-button{padding:6px 9px}@media(max-width:760px){.mt-pdf{max-height:65dvh}.mt-pdf-tools{gap:6px}}
/* Match the shared register and keep job actions deliberately compact. */
.mt-register td{font-size:13px;white-space:nowrap}
.mt-job-summary{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;margin:0 0 20px;flex-shrink:0}
.mt-summary-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-width:0;min-height:86px;padding:14px;border:1px solid #dedede;border-radius:8px;background:#fff;text-align:left;font:inherit;cursor:pointer;color:#252525}
.mt-summary-card strong{font-size:24px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.mt-summary-card span{font-size:12px;line-height:1.4;color:#666}
.mt-summary-card:hover{background:#fafafa;border-color:#aaa}
.mt-summary-card[aria-pressed=true]{border-color:#333;background:#f7f7f7;box-shadow:inset 0 0 0 1px #333}
.mt-summary-card[aria-pressed=true] span{color:#222}
.mt-summary-card:focus-visible,.mt-choice:focus-visible{outline:2px solid #333;outline-offset:3px}
.mt-badge{background:#e2e8f0;color:#475569}.mt-badge-blue{background:#dbeafe;color:#1d4ed8}.mt-badge-green{background:#dcfce7;color:#166534}.mt-badge-yellow{background:#fef3c7;color:#92400e}.mt-badge-red{background:#fee2e2;color:#991b1b}
.mt-badge-sky{background:#e0f2fe;color:#075985}.mt-badge-slate{background:#e8edf2;color:#475569}.mt-badge-violet{background:#ede9fe;color:#6d28d9}.mt-badge-purple{background:#fae8ff;color:#86198f}.mt-badge-amber{background:#ffedd5;color:#9a4d0b}.mt-badge-cyan{background:#cffafe;color:#155e75}.mt-badge-orange{background:#ffe4d6;color:#a13d0b}.mt-badge-teal{background:#ccfbf1;color:#115e59}.mt-badge-pink{background:#fce7f3;color:#9d174d}.mt-badge-indigo{background:#e0e7ff;color:#3730a3}.mt-badge-stone{background:#ece7e2;color:#655344}
.mt-field select.mt-colour-select{font-weight:500}.mt-field select.mt-badge-blue{background-color:#e8effd;color:#235fb4;border-color:#ccdcf8}.mt-field select.mt-badge-green{background-color:#e4f5eb;color:#217543;border-color:#c6e8d4}.mt-field select.mt-badge-yellow{background-color:#fff3d5;color:#885900;border-color:#f0dfad}.mt-field select.mt-badge-red{background-color:#ffebeb;color:#b53a36;border-color:#f3c9c6}
.mt-job-choices{border:1px solid #ddd;border-radius:8px;overflow:hidden;margin-bottom:18px}
.mt-choice-heading{padding:14px 16px;background:#fafafa;border-bottom:1px solid #e5e5e5}
.mt-choice-heading h3{font-size:13px;font-weight:500;line-height:1.5;margin:0}
.mt-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px}
.mt-choice{display:flex;align-items:center;gap:10px;padding:14px;min-height:48px;border:1px solid #e5e5e5;border-radius:6px;background:#fafafa;font:inherit;font-size:13px;text-align:left;color:#303030;cursor:pointer}
.mt-choice:hover{background:#f1f1f1;border-color:#bdbdbd}.mt-choice:disabled{opacity:.45;cursor:not-allowed}
.mt-workflow-state{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.mt-workflow-state>.mt-actions{margin:0 0 0 auto}
.mt-workflow-details{border-top:1px solid #e7e7e7;padding:14px 0;font-size:13px}.mt-workflow-details>summary{cursor:pointer;font-weight:500;color:#555}.mt-workflow-details>.mt-section-heading{margin-top:20px}.mt-workflow-details>.mt-card{border:0;border-radius:0;padding:20px 0 0;margin:0}.mt-workflow-details h2,.mt-owner-request h2,.mt-workflow-notes h2,.mt-workflow-activity h2{font-size:15px;font-weight:600;letter-spacing:0}
.mt-owner-request{padding:16px;border:1px solid #dedede;border-radius:8px;margin-bottom:20px;font-size:13px}.mt-owner-request>.mt-section-heading{margin-bottom:10px}.mt-owner-request p,.mt-workflow-notes p{white-space:pre-wrap;line-height:1.65}
.mt-workflow-activity{border-top:1px solid #e7e7e7;padding-top:22px;margin-top:4px}.mt-workflow-activity>.mt-section-heading{margin-bottom:10px}.mt-workflow-activity .mt-recent-event{padding:12px 0}.mt-workflow-activity .mt-recent-event strong{font-size:13px;font-weight:500}.mt-workflow-activity .mt-recent-event p{margin:5px 0 0}.mt-workflow-notes{margin:20px 0}
@media(max-width:1500px){.mt-job-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.mt-summary-card{min-height:75px;padding:12px 14px;gap:6px}.mt-summary-card strong{font-size:22px}}
@media(max-width:760px){.mt-job-summary{display:flex;overflow-x:auto;gap:8px;margin-bottom:14px;padding:2px 2px 5px;scroll-snap-type:x proximity}.mt-summary-card{flex:0 0 150px;min-height:76px;scroll-snap-align:start}.mt-choice-grid{grid-template-columns:1fr;padding:12px}.mt-choice:last-child{grid-column:auto}.mt-choice{min-height:46px}.mt-workflow-state>.mt-actions{margin-left:0}.mt-workflow-details .mt-section-heading{gap:10px}}

.mt-photo-cover>video{display:block;width:100%;height:210px;object-fit:cover;pointer-events:none}.mt-video-symbol{font-size:16px;color:#555}.mt-photo-overview.mt-dropzone{position:relative;transition:border-color .15s,background .15s}.mt-photo-overview.is-dragging{border:2px dashed #444;background:#eaeaea}.mt-dropzone.is-dragging::after{content:'Drop to add files';position:absolute;inset:0;display:grid;place-items:center;background:#fffffff0;color:#222;font-size:15px;font-weight:500;pointer-events:none}.mt-photo-overview>.mt-drop-hint{margin:0;padding:10px 12px 14px;color:#686868;font-size:12px}.mt-photo-overview:has(>strong)>.mt-drop-hint{padding-bottom:0;margin-top:14px}.mt-upload-queue-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #eee;font-size:12px}.mt-upload-queue-row>span:first-child{flex:1;overflow-wrap:anywhere}.mt-upload-queue-row>.icon-button{width:28px;height:28px;flex:none}.mt-upload-queue-row>.icon-button span{display:none}.mt-upload-queue-row>.icon-button svg{width:16px;height:16px}.mt-choice{min-width:0}.mt-choice>span{overflow-wrap:anywhere}.mt-trade-detail{display:block;color:#737373;font-size:12px;margin-top:4px}.mt-trade-selected{display:flex;gap:6px;flex-wrap:wrap}.mt-trade-picker-results{max-height:260px;overflow:auto}.mt-trade-picker-results label{align-items:flex-start}.mt-trade-picker-results input{flex:none;margin-top:3px}.mt-trade-picker-results label:has(input:disabled){color:#888}.mt-gallery-frame>video{width:100%}
@media(max-width:760px){.mt-choice-grid{grid-template-columns:1fr}.mt-photo-cover>video{height:200px}}

.property-maintenance-card{display:grid;grid-template-columns:72px minmax(0,1fr) 190px 144px 18px;align-items:center;column-gap:12px;padding:6px 10px 6px 6px;min-height:84px;margin:0 0 8px;border:1px solid #e5e5e5;border-radius:8px;background:#fff;color:inherit;text-decoration:none;transition:background .15s,border-color .15s}.property-maintenance-card:hover,.property-maintenance-card:focus-visible{background:#fafafa;border-color:#cfcfcf}.property-maintenance-card-media{display:grid;place-items:center;width:72px;height:72px;overflow:hidden;border-radius:6px;background:#f1f3f2;color:#7b8580}.property-maintenance-card-media img{display:block;width:100%;height:100%;object-fit:cover}.property-maintenance-card-title{min-width:0;font-size:13px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}.property-maintenance-card-meta{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;font-size:11px;color:#777;justify-self:start}.property-maintenance-card-meta strong{font-size:12px;font-weight:600;color:#303030}.property-maintenance-card-status{justify-self:end;white-space:nowrap}.property-maintenance-card-chevron{width:16px;height:16px;color:#888}
@media(max-width:760px){.property-maintenance-card{grid-template-columns:56px minmax(0,1fr) auto;column-gap:10px;row-gap:4px;padding:5px 8px 5px 5px;min-height:66px}.property-maintenance-card-media{width:56px;height:56px;grid-row:1 / span 2}.property-maintenance-card-title{grid-column:2 / -1}.property-maintenance-card-meta{grid-column:2;grid-row:2}.property-maintenance-card-status{grid-column:3;grid-row:2;justify-self:end}.property-maintenance-card-chevron{display:none}}

/* People Portal tab: separated heading, access controls, grants and sign-in. */
.people-portal-panel{display:grid;gap:20px;min-width:0}
.people-portal-panel>.mt-section-heading,.people-portal-panel>.mt-card{margin:0}
.people-portal-contact{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;padding:16px;border:1px solid var(--line,#e5e5e5);border-radius:8px;background:#fafafa;min-width:0}
.people-portal-contact>.mt-muted{margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere;min-width:0}
.people-portal-contact>.small-button{flex:none;margin:0;min-height:38px}
.people-portal-panel>.small-button{justify-self:start;margin:0}
.people-portal-panel .mt-card>.small-button{margin-top:8px}
@media(max-width:600px){.people-portal-contact{align-items:flex-start;flex-direction:column}.people-portal-contact>.small-button{min-height:42px}.people-portal-panel{gap:16px}}

.trade-rating{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px}.trade-rating-stars{display:inline-flex;gap:1px;color:#b9c1bd;font-size:13px}.trade-rating-stars .filled{color:#946600}.trade-rating-value{font-weight:500}.trade-review-summary{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.trade-review-summary h3{flex-basis:100%;margin:0}.trade-review{padding:14px 0;border-bottom:1px solid #e6e9e7}.trade-review p{margin:5px 0}.trade-review-comment{white-space:pre-wrap;overflow-wrap:anywhere}.trade-review-list{gap:10px}

.trade-rating-stars .half{background:linear-gradient(90deg,#946600 50%,#b9c1bd 50%);background-clip:text;color:transparent}

/* Explicit staff maintenance draft; existing record/workflow surfaces stay in place. */
.mt-job-details-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 18px}
.mt-job-details-heading h3{font-size:13px;font-weight:600;margin:0}
.mt-job-details-heading .small-button{font-size:12px;gap:6px;min-height:34px}
.mt-details-feedback:empty{display:none}.mt-details-feedback{font-size:12px;color:#217543;margin:12px 0}
body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer{inset:0 0 0 auto;margin:0;width:min(540px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--line,#ddd);border-radius:0;padding:0;overflow:hidden;box-shadow:-12px 0 50px #0002}
body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer[open]{display:flex;flex-direction:column}
body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer .dialog-heading{flex:none;border-bottom:1px solid var(--line,#e5e5e5)}
body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer .dialog-heading h2{font-size:var(--record-heading-size,18px);font-weight:600;line-height:var(--font-line-heading,1.4)}
body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer .dialog-heading .icon-button{width:36px;height:36px;flex:none}body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer .dialog-heading .icon-button span{display:none}
.mt-details-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;}
.mt-details-body>.mt-muted{margin:0 0 var(--ui-section-gap,24px);line-height:1.5}
.mt-details-fields{border:0;padding:0;margin:0;min-width:0}
.mt-details-footer{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex:none;border-top:1px solid var(--line,#e5e5e5);background:#fff}
.mt-details-status{margin:0 auto 0 0;font-size:12px;color:#626262}body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer .form-error{font-size:13px;line-height:1.5}
body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer .mt-field textarea{min-height:108px}body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer .mt-field:focus-within{scroll-margin:18px}
@media(max-width:699px){body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer{width:100vw;border:0}body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer .mt-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer,body[data-page="workspace"] dialog#mt-job-details-drawer.mt-details-drawer *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Maintenance overview relationships follow the shared record labels and values.
   Keep portal typography and the existing contact/link behaviour unchanged. */
body[data-page="workspace"] .mt-record .mt-contact-context{margin-top:14px}
body[data-page="workspace"] .mt-record .mt-contact-group{padding:14px 0;min-width:0}
body[data-page="workspace"] .workspace-layout .mt-record .mt-contact-group>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;padding:0;font-family:inherit;font-size:12px;line-height:1.5;letter-spacing:normal;font-weight:var(--font-medium,500);color:#737373;position:static!important;cursor:pointer;background:transparent;list-style:none}
body[data-page="workspace"] .mt-record .mt-contact-group>summary::-webkit-details-marker{display:none}
body[data-page="workspace"] .mt-record .mt-contact-group>summary::after{flex:none;transform:rotate(-90deg)}
body[data-page="workspace"] .mt-record .mt-contact-group[open]>summary::after{transform:none}
body[data-page="workspace"] .mt-record .mt-contact{gap:2px;margin-top:8px;font-size:var(--record-body-size,13px);line-height:var(--font-line-body,1.5)}
body[data-page="workspace"] .mt-record .mt-contact+.mt-contact{margin-top:14px}
body[data-page="workspace"] .mt-record .mt-contact>a{min-width:0;max-width:100%;font-size:inherit;font-weight:var(--font-regular,400);line-height:inherit;overflow-wrap:anywhere;text-underline-offset:3px}
body[data-page="workspace"] .mt-record :is(.mt-contact-group>summary,.mt-contact>a):focus-visible{outline:2px solid var(--delegate-ink,#1b3030);outline-offset:3px}
@media(max-width:760px){body[data-page="workspace"] .workspace-layout .mt-record .mt-contact-group>summary{min-height:44px}}
