:root{--ink:#142b40;--muted:#4b6576;--line:#cedde5;--blue:#165978;--pale:#eef4f7}*{box-sizing:border-box}body{margin:0;background:#f4f7f9;color:var(--ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;background:white;border:1px solid #a7bfcd;border-radius:5px;color:var(--ink);padding:10px 16px;min-height:44px;font-weight:600}button:hover{background:#e7f0f5}button.primary{background:var(--blue);color:#fff;border-color:var(--blue)}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #ce7925;outline-offset:3px}input,select,textarea{border:1px solid #9ab1c0;border-radius:4px;padding:10px;background:white;color:var(--ink);width:100%;min-height:44px}textarea{min-height:90px}input[type=checkbox]{width:22px;min-height:22px;height:22px}label{display:block;font-weight:600;font-size:14px}label>input,label>select,label>textarea{display:block;margin-top:6px}h1{font-size:32px;line-height:1.15;letter-spacing:-.035em;margin:0 0 10px}h2{font-size:23px;line-height:1.25;margin:0 0 18px}h3{font-size:19px;margin:0 0 10px}p{margin:0 0 15px}small{font-size:13px}.muted,small{color:var(--muted)}.demo-bar{background:#142b40;color:white;padding:7px 20px;font-size:13px;text-align:center}header{display:flex;align-items:center;gap:24px;padding:12px 32px;background:white;border-bottom:1px solid var(--line)}header img{object-fit:contain}header small{display:block;margin-top:5px}nav{padding:10px 32px;display:flex;gap:8px;background:white;border-bottom:1px solid var(--line);overflow:auto}nav button{white-space:nowrap;border-color:transparent}nav button.active{background:var(--ink);color:white}main{max-width:1440px;padding:32px;margin:auto}#notice:not(:empty){padding:12px 32px;background:#fff4ce;color:#573f04}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.filters{display:grid;grid-template-columns:1.5fr 1.5fr 1fr;gap:16px;padding:20px;background:white;border:1px solid var(--line);margin:22px 0}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.card,.panel{background:white;border:1px solid var(--line);border-radius:7px;padding:22px}.card strong{font-size:34px;display:block;letter-spacing:-.04em}.card span{font-size:14px;color:var(--muted)}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:7px}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th{background:#eaf1f5;font-weight:650;white-space:nowrap}td,th{padding:14px 16px;border-bottom:1px solid #dee7ec;vertical-align:top}td button{font-size:14px;padding:7px 12px}td small{display:block}td{max-width:380px;overflow-wrap:anywhere}.badge{display:inline-block;border-radius:4px;background:#eaf1f5;padding:4px 8px;font-size:13px;font-weight:650;white-space:nowrap}.bad{background:#fbe7e4;color:#932e20}.warn{background:#fff0d1;color:#795500}.good{background:#def0e7;color:#226047}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.stack>*+*{margin-top:18px}.section{margin-top:30px}.callout{padding:16px;background:#fff6de;border-left:3px solid #a97810;margin-bottom:20px}.pager{display:flex;justify-content:space-between;align-items:center;margin-top:18px;gap:12px}dialog{border:1px solid #a7bfcd;border-radius:10px;max-width:1000px;width:calc(100% - 32px);max-height:92vh;padding:28px;color:var(--ink)}dialog::backdrop{background:#10233499}dialog #dialog-body>.heading{position:sticky;top:-22px;background:white;padding:12px 0;z-index:5}fieldset{border:1px solid var(--line);padding:18px;border-radius:6px;margin:16px 0}legend{font-weight:650}.step-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px}.step-row{padding:18px;border:1px solid var(--line);margin-bottom:15px;background:#f8fafb}.check{display:flex;gap:10px;align-items:center;font-size:16px}.check input{margin:0}.history{padding:16px 0;border-bottom:1px solid var(--line)}.asset-photo{max-width:240px;max-height:180px;object-fit:contain}.label-sheet{background:white;margin:20px 0;border:1px dashed #526c7b;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden;max-width:100%}.label-sheet img{width:65%;max-height:55%;object-fit:contain}.label-sheet strong{font:700 18px/1.1 Arial,sans-serif;overflow-wrap:anywhere;text-align:center;max-width:95%}.mini-chart{height:80px;display:flex;gap:5px;align-items:flex-end;padding:8px;border-bottom:1px solid var(--line)}.mini-chart i{display:block;background:#31799a;min-width:8px;flex:1;max-width:50px}a{color:var(--blue)}#print-area{display:none}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.procedure-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.procedure-list .panel{display:flex;flex-direction:column;gap:12px}.procedure-list .panel button{margin-top:auto}.empty{padding:30px;color:var(--muted)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;background:var(--pale);padding:12px}@media(max-width:800px){header{padding:8px 16px;gap:10px}header img{width:110px;height:60px}header strong{font-size:16px}nav{padding:8px 12px}main{padding:22px 16px}.heading{align-items:flex-start;flex-direction:column;gap:12px}.cards{grid-template-columns:repeat(2,1fr);gap:10px}.card{padding:15px}.card strong{font-size:28px}.filters,.grid,.procedure-list{grid-template-columns:1fr}.filters{gap:10px}.step-grid{grid-template-columns:1fr 1fr}.step-grid label:first-child{grid-column:1/-1}dialog{padding:18px}dialog #dialog-body>.heading{top:-22px}.demo-bar{font-size:12px}.table-wrap{max-width:100%}h1{font-size:29px}}@media print{body>*{display:none!important}#print-area{display:block!important;background:white;color:black}#print-area table{font-size:10px}#print-area td,#print-area th{padding:6px}.label-sheet{margin:0;border:0;break-after:page}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media screen and (max-width:800px){#asset-list .table-wrap{border:0;background:transparent;overflow:visible}#asset-list table,#asset-list tbody{display:block}#asset-list thead{display:none}#asset-list tr{display:grid;grid-template-columns:1fr auto;background:white;border:1px solid var(--line);border-radius:7px;padding:14px;margin-bottom:12px;gap:10px}#asset-list td{display:block;padding:0;border:0;max-width:none}#asset-list td:first-child{grid-column:1;grid-row:1}#asset-list td:nth-child(2){grid-column:1/-1;grid-row:2}#asset-list td:nth-child(3){grid-column:1/-1;grid-row:3}#asset-list td:nth-child(4){grid-column:1/-1;grid-row:4;border-top:1px solid var(--line);padding-top:10px}#asset-list td:nth-child(4)>div{margin-bottom:8px}#asset-list td:nth-child(5){grid-column:2;grid-row:1}}

[hidden]{display:none!important}.import-error{color:#932e20}.import-warning{color:#795500}select,input{min-width:0;max-width:100%}.grid>*,.filters>*{min-width:0}#import-review fieldset{min-width:0}


.report-filter-groups{display:grid;gap:12px}.report-filter{border:1px solid var(--line);border-radius:7px;background:white}.report-filter summary{cursor:pointer;padding:16px 20px;min-height:60px}.report-filter summary strong{margin-right:14px}.report-filter summary span{color:var(--muted);font-size:14px;overflow-wrap:anywhere}.report-filter summary:focus-visible{outline:3px solid #ce7925;outline-offset:3px}.report-filter-body{border-top:1px solid var(--line);padding:20px}.report-filter-body p{margin-top:16px}.report-status-options{display:flex;gap:20px;flex-wrap:wrap;margin-top:18px}.report-filter-actions{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-top:22px}#report-active ul{margin:6px 0;padding-left:20px}#report-error{color:#932e20}#report-count{font-weight:650;margin-top:18px}@media(max-width:800px){.report-filter summary span{display:block;margin:6px 0 0 18px}.report-filter-actions{flex-direction:column}.report-status-options{flex-direction:column}}

/* Consistent UI title capitalization; entered data and identifiers retain their case. */
h1,h2,h3,legend,button,th,label,.badge,summary,.card span{text-transform:capitalize}
input,textarea,select,option,pre,code,summary span{ text-transform:none }

/* Keep the procedure-program save action visible with large inventories. */
.program-actions{position:sticky;bottom:0;background:#fff;padding:12px 0;border-top:1px solid #d7e0e5;z-index:2}.program-actions p{margin:0 0 8px}.program-equipment{max-height:38vh;overflow:auto}

/* Isolated visual proposal; does not change the hosted application. */
:root{--ink:#292d2c;--muted:#626a66;--line:#d6dcd8;--blue:#203e32;--pale:#f0f2f0;--forest:#203e32;--gold:#ffdf22}
body{background:#f1f2f1;color:var(--ink)}
.demo-bar{background:#292d2c;color:#f8f8f6;border-bottom:3px solid var(--gold)}
header{border-bottom:0;padding-top:18px;padding-bottom:18px}
nav{background:#fff;border-bottom:1px solid #d6dcd8;padding-bottom:14px}
button{border-color:#a8b2ac;background:white;color:#263b30;border-radius:6px}
button:hover{background:#fff3a6;border-color:#b89b13}
button.primary,td button,.heading>button:not(:is(#close,[data-procedure-back])){background:var(--gold);border-color:#d0b21b;color:#252b26}
button.primary:hover,td button:hover{background:#ffe955;border-color:#b89b13}
nav button.active{background:var(--forest);color:#fff;border-color:var(--forest);box-shadow:inset 0 -3px 0 var(--gold)}
nav button:hover{background:#edf1ee}
nav button.active:hover{background:#294b3b}
input,select,textarea{border-color:#a9b2ad;background:#fff;color:var(--ink)}
input[type=checkbox]{accent-color:var(--forest)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:#a77606}
.card,.panel,.filters,.table-wrap,.report-filter{border-color:#ccd4ce;box-shadow:0 2px 5px #203e3206}
.filters,.panel,.report-filter{border-top:4px solid var(--forest);border-radius:7px}
.cards .card{border-top:4px solid var(--forest)}
.card strong{color:var(--forest)}
th{background:var(--forest);color:#fff}
td,th{border-bottom-color:#dde2de}
.badge{background:#ecefed;color:#414b45}.bad{background:#fbe7e4;color:#932e20}.warn{background:#fff0c4;color:#725100}.good{background:#dfede4;color:#234d36}
fieldset,.step-row{border-color:#ccd4ce;border-left:4px solid var(--forest);background:#f7f8f7}
legend{color:var(--forest)}
dialog{border-color:#a8b3ab;border-top:6px solid var(--forest);color:var(--ink)}
dialog::backdrop{background:#20252299}
dialog .heading{border-bottom:1px solid var(--line);padding-bottom:16px}
.callout{background:#faf4df;border-left-color:#bb911d;color:#51421b}
.mini-chart i{background:var(--forest)}
.label-sheet{border-color:#68756c}
.report-filter summary strong{color:var(--forest)}
.program-actions{border-top-color:var(--line)}
a{color:#24573c}
@media print{.card,.panel,.filters,.table-wrap,.report-filter{box-shadow:none}}

button{box-shadow:inset 0 -2px 0 #ffdf22}button:disabled{box-shadow:none}nav button{box-shadow:none}nav button.active{box-shadow:inset 0 -3px 0 var(--gold)}




/* Compact equipment toolbar: dropdowns together, search gets useful width. */
.equipment-filters{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) minmax(145px,.8fr);gap:12px 14px;padding:14px 16px;margin:18px 0 24px;align-items:end}
.equipment-filters label{font-size:12px;letter-spacing:.015em;color:#56615a}
.equipment-filters label:has(#search){grid-column:1/-1;grid-row:2}
.equipment-filters label:has(#filter){grid-column:3;grid-row:1}
.equipment-filters input,.equipment-filters select{font-size:14px;min-height:42px;height:42px;padding:8px 10px;border-radius:6px;margin-top:4px;background:#f8f9f8}
.equipment-filters input:focus,.equipment-filters select:focus{outline:2px solid #203e32;outline-offset:1px;background:#fff}
@media(min-width:1100px){.equipment-filters{grid-template-columns:minmax(170px,1fr) minmax(170px,1fr) minmax(240px,1.6fr) minmax(155px,.85fr)}.equipment-filters label:has(#search){grid-column:3;grid-row:1}.equipment-filters label:has(#filter){grid-column:4;grid-row:1}}
@media(max-width:560px){.equipment-filters{grid-template-columns:1fr 1fr;gap:10px;padding:12px}.equipment-filters label:has(#filter){grid-column:1;grid-row:2}.equipment-filters label:has(#search){grid-column:1/-1;grid-row:3}}

.location-customer-filter{width:min(100%,340px);margin:0 auto 24px;font-size:13px;color:var(--muted)}.location-customer-filter select{height:42px;min-height:42px;padding:8px 10px;font-size:14px;background:#fff}

/* Consistent compact typography and controls across workspace screens. */
main{font-size:14px;line-height:1.45}
main h1{font-size:28px;margin-bottom:8px}
main h2{font-size:21px;margin-bottom:14px}
main h3{font-size:17px}
main .heading{margin-bottom:20px}
main label,dialog label{font-size:12px;letter-spacing:.015em}
main input,main select,main textarea,dialog input,dialog select,dialog textarea{font-size:14px;padding:8px 10px;min-height:42px;margin-top:4px}
main button,dialog button{font-size:14px;padding:8px 13px;min-height:42px}
main .panel{padding:18px}
main .grid{gap:16px}
main .stack>*+*{margin-top:14px}
main .filters{gap:12px;padding:16px}
main table{font-size:13px}
main td,main th{padding:11px 13px}
main .report-filter summary{padding:12px 16px;min-height:48px}
main .report-filter summary span{font-size:13px}
main .report-filter-body{padding:16px}
main .report-status-options{gap:14px;margin-top:14px}
main .procedure-list{gap:14px}
main .procedure-list .panel{gap:9px}
main .check,dialog .check{font-size:14px}
dialog{font-size:14px;line-height:1.45}
dialog h2{font-size:21px}dialog h3{font-size:17px}
dialog fieldset{padding:14px;margin:12px 0}
dialog .step-row{padding:14px}
main input[type=checkbox],dialog input[type=checkbox]{min-height:20px;width:20px;height:20px}
@media(max-width:560px){main h1{font-size:26px}main button,dialog button,main input,main select,dialog input,dialog select{min-height:44px}}

/* Compact procedure measurements, with full-width instructions above. */
.procedure-step-fields{display:grid;grid-template-columns:minmax(160px,1.4fr) minmax(80px,.7fr) minmax(100px,1fr) minmax(100px,1fr);gap:12px;align-items:end}.procedure-step-fields label{min-width:0}.procedure-step-fields label:first-child{grid-column:auto}.procedure-step-fields input,.procedure-step-fields select{min-width:0;width:100%}@media(max-width:600px){.procedure-step-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:360px){.procedure-step-fields{grid-template-columns:1fr}}

.schedule-choice{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.schedule-option{display:flex;gap:10px;align-items:flex-start;border:1px solid #ccd4ce;border-radius:8px;padding:12px;background:white}.schedule-option:has(input:checked){border-color:#203e32;box-shadow:inset 0 0 0 1px #203e32}.schedule-option input[type=radio]{width:18px;min-height:18px;height:18px;flex:0 0 18px;margin:3px 0}.schedule-option small{display:block;font-weight:400;margin-top:5px}@media(max-width:600px){.schedule-choice{grid-template-columns:1fr}}

.program-actions{position:static}.program-schedule-fields{display:flex;flex-wrap:wrap;gap:14px;align-items:end}.periodicity-control{display:flex;align-items:center;margin-top:6px;border:1px solid #aebbb2;border-radius:5px;overflow:hidden;background:#f1f2f1}.periodicity-control input{width:82px;min-width:0;border:0;border-radius:0}.periodicity-control span{padding:0 10px}.program-schedule-fields select{width:210px}.program-schedule-fields input[type=date]{width:180px}.program-header-actions{display:flex;gap:8px;flex-wrap:wrap}.program-header-actions button{padding:8px 12px;font-size:12px}dialog:has(#type-program-form){overflow:hidden}dialog:has(#type-program-form) #dialog-body{display:flex;flex-direction:column;max-height:calc(90vh - 40px)}dialog:has(#type-program-form) #dialog-body>.heading{position:static;flex-shrink:0;flex-wrap:wrap;gap:10px}#type-program-form{overflow:auto;min-height:0;padding:2px 8px 8px 2px}#schedule-help[hidden]{display:none}@media(max-width:600px){.program-schedule-fields select{width:190px}.program-schedule-fields input[type=date]{width:170px}}

dialog:has(#type-program-form) #dialog-body>.heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}dialog:has(#type-program-form) #dialog-body>.heading h2{margin:0}dialog:has(#type-program-form) .program-header-actions{grid-column:1/-1;margin:0}

.equipment-program-selector,.program-add-picker{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.equipment-program-selector select{width:240px;max-width:100%}.program-add-picker{margin-top:16px}.program-add-picker select{width:260px;max-width:100%}.program-add-picker[hidden]{display:none}.program-schedule-fields button[data-remove-program]{font-size:12px;padding:8px 10px}@media(max-width:500px){.equipment-program-selector label{width:100%}.equipment-program-selector select{width:min(240px,100%)}}

.procedure-tile-actions{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:auto;padding-top:.4rem;position:relative}
.procedure-tile-actions .procedure-tile-edit{width:auto;min-width:5rem;flex:none;padding:.45rem 1rem;margin:0}
.procedure-tile-details{position:static;font-size:.85rem}
.procedure-tile-details summary{cursor:pointer;list-style:none;text-decoration:underline;text-underline-offset:3px;padding:.45rem .3rem}
.procedure-tile-details summary::-webkit-details-marker{display:none}
.procedure-tile-details>.procedure-tile-popover{display:block;visibility:hidden;position:absolute;bottom:calc(100% + .1rem);left:50%;transform:translateX(-50%);width:max-content;max-width:100%;padding:.65rem .9rem;background:#fff;color:#252b2a;border:1px solid #adb8b1;border-radius:.5rem;box-shadow:0 4px 16px #0002;z-index:5;line-height:1.55;pointer-events:none}
.procedure-tile-details[open]>.procedure-tile-popover{visibility:visible}
@media(hover:hover){.procedure-tile-details:hover>.procedure-tile-popover{visibility:visible}}

.procedure-tile-actions{display:grid;grid-template-columns:1fr auto 1fr}.procedure-tile-details{grid-column:1;justify-self:end}.procedure-tile-edit{grid-column:2}

.inventory-comparison-controls{display:flex;align-items:end;gap:.8rem;flex-wrap:wrap}.inventory-comparison-controls[hidden]{display:none}.inventory-comparison-controls>label{width:12rem;max-width:100%;margin:0}.inventory-comparison-controls>label[hidden]{display:none}.inventory-comparison-controls>details{max-width:38rem;font-size:.85rem}

/* Compact, responsive report filters. Expanded controls stay in document flow. */
main .report-filter-groups{display:grid;grid-template-columns:repeat(3,minmax(0,18rem));align-items:start;gap:.65rem}
main .report-filter summary{padding:.55rem .7rem;min-height:0;line-height:1.3}
main .report-filter summary strong{display:inline;font-size:.9rem;margin-right:0}
main .report-filter summary span{display:block;margin:.2rem 0 0;font-size:.76rem;line-height:1.3}
main .report-filter-body{padding:.7rem}
main .report-filter-body label{font-size:.8rem}
main .report-filter-body input,main .report-filter-body select{font-size:.85rem;padding:.45rem .55rem;min-height:2.2rem}
main .report-filter-body .grid{grid-template-columns:1fr;gap:.55rem}
main .report-filter-body p{font-size:.76rem;line-height:1.4;margin:.65rem 0 0}
main .report-status-options{gap:.45rem;flex-direction:column;margin-top:.6rem}
main .report-filter-actions{margin-top:.7rem;gap:.6rem;align-items:center}
main #report-active{font-size:.78rem}main #report-active strong{display:none}
main #report-active ul{display:flex;gap:.4rem;flex-wrap:wrap;list-style:none;padding:0;margin:0}
main #report-active li{padding:.2rem .45rem;background:#edf1ee;border-radius:4px}
main #report-reset{width:auto;padding:.4rem .65rem;font-size:.8rem;flex:none}
@media(max-width:680px){main .report-filter-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){main .report-filter-groups{grid-template-columns:minmax(0,1fr)}}

.badge.bad{background:#f9dce4;color:#842842}.badge.due-today{background:#ffd6ad;color:#713600}.badge.due-soon{background:#fff1a6;color:#615000}.badge.good{background:#dcefe1;color:#205334}.maintenance-cue{margin-top:.3rem;font-size:.75rem}.maintenance-cue .badge{font-size:.72rem}td .badge{margin-bottom:.15rem}

/* Due dates use text color; equipment service status retains filled badges. */
.badge.schedule-status{background:transparent;border:0;border-radius:0;padding:0;font-weight:700}
.badge.schedule-status.bad{color:#a62650}.badge.schedule-status.due-today{color:#a34b00}.badge.schedule-status.due-soon{color:#806500}.badge.schedule-status.good{color:#23623b}

/* Keep the page stationary while a modal owns scrolling. */
html{scrollbar-gutter:stable}
html:has(dialog[open]),body:has(dialog[open]){overflow:hidden;overscroll-behavior:none}
dialog[open],dialog[open] form,dialog[open] .table-wrap,dialog[open] .program-equipment{overscroll-behavior:contain}

/* Selection fields and actions have distinct visual treatments. */
.equipment-program-selector select{appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23203e32' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;border:2px solid #6e8578;padding-right:42px;box-shadow:none}
.equipment-program-selector>button{background:#dce8df;color:#203e32;border:1px solid #839c8b;border-bottom:4px solid var(--gold);box-shadow:0 2px 3px #203e3210}
.equipment-program-selector>button:hover:not(:disabled){background:#203e32;color:#fff;border-color:#203e32;border-bottom-color:var(--gold)}
.equipment-program-selector>button:active:not(:disabled){background:#152e24;transform:translateY(1px)}
.equipment-program-selector select:focus-visible,.equipment-program-selector>button:focus-visible{outline:3px solid #203e32;outline-offset:3px}

.equipment-program-selector>button{box-shadow:inset 0 -1px 0 #203e32,0 2px 3px #203e3210}

/* Consistent action feedback throughout the app. */
body button{transition:background-color .14s ease,color .14s ease,border-color .14s ease,box-shadow .14s ease}
body button:hover:not(:disabled){background:#203e32;color:#fff;border-color:#203e32;box-shadow:inset 0 -3px 0 var(--gold)}
body button:active:not(:disabled){background:#152e24;color:#fff;border-color:#152e24}
@media(prefers-reduced-motion:reduce){body button{transition:none}}

/* Item actions use green/accent; page-level tools use solid yellow. */
body main button,body dialog button,body main button.primary,body dialog button.primary{background:#dce8df;color:#203e32;border:1px solid #839c8b;border-bottom:4px solid var(--gold);box-shadow:inset 0 -1px 0 #203e32,0 2px 3px #203e3210}
body main>.heading button,body header button,body #install-app,body :is(#close,[data-procedure-back]),body #report-print,body #report-export-assets{background:var(--gold);color:#252b26;border:1px solid #c3a913;box-shadow:none}
body main button:hover:not(:disabled),body dialog button:hover:not(:disabled),body header button:hover:not(:disabled){background:#203e32;color:#fff;border-color:#203e32;box-shadow:inset 0 -3px 0 var(--gold)}

main .managed-location-search{width:50%;max-width:520px;min-width:260px;margin:26px auto 28px;font-size:17px;text-align:center;color:var(--forest)}
main .managed-location-search input{margin-top:10px;text-align:left;border:2px solid #6e8578;background:#fff;padding:10px 14px}
.managed-location-list{max-width:960px;margin:0 auto}
#managed-locations-table th,#managed-locations-table td{padding:10px 14px}
#managed-locations-table th:nth-child(4),#managed-locations-table td:nth-child(4){text-align:center}
@media(max-width:600px){main .managed-location-search{width:100%;min-width:0;max-width:360px}.managed-location-list{overflow-x:auto}#managed-locations-table{min-width:570px}}

/* Small location forms should not inherit the wide procedure editor. */
dialog:has(#location-form){max-width:560px;padding:22px}
#location-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#location-form>*{margin:0}
#location-form>label:first-child,#location-form>.check,#location-form>p{grid-column:1/-1}
#location-form>button{justify-self:start;width:auto}
#location-form>.check{font-size:12px;color:var(--muted)}
#location-form>#place-error:empty{display:none}
.managed-location-list{max-width:800px}
@media(max-width:480px){#location-form{grid-template-columns:1fr}#location-form>*{grid-column:1/-1}}

dialog:has(#location-form) .heading{display:flex;flex-direction:row;align-items:center;gap:12px;margin-bottom:18px;padding-bottom:12px}dialog:has(#location-form) .heading h2{margin:0}dialog:has(#location-form) :is(#close,[data-procedure-back]){width:auto;flex:none}

/* Size each workspace to its content rather than stretching to the viewport. */
main{max-width:1120px;padding:24px}
main>.heading{align-items:center;gap:16px}
main .cards{gap:12px;margin:18px 0}
main .card{padding:16px}
main .card strong{font-size:28px}
main>.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));align-items:start}
main .panel>button,main .stack>button,dialog form>button{width:fit-content;max-width:100%;align-self:start}
dialog{max-width:820px;padding:22px}
dialog .heading{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px;padding-bottom:12px}
dialog .heading h2{margin:0;flex:1;min-width:0}
dialog :is(#close,[data-procedure-back]){width:auto;flex:none}
dialog:has(#new-type-form),dialog:has(#facility-form){max-width:520px}
dialog:has(#job-form){max-width:620px}
dialog:has(#asset-form){max-width:760px}
#asset-form>.grid{gap:12px 16px}
#asset-form textarea{min-height:72px}
dialog:has(#proc-form),dialog:has(#type-program-form){max-width:900px}
main:has(#label-form){max-width:960px}
@media(max-width:600px){main{padding:16px}dialog{padding:16px}#asset-form>.grid{grid-template-columns:minmax(0,1fr)}main .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(min-width:601px){#asset-form>.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Nested procedure card headings must scroll beneath the dialog header. */
dialog .panel .heading{position:static;z-index:auto}
@media(max-width:600px){dialog #dialog-body>.heading{top:-16px}}

.report-optional-comparison{width:fit-content;max-width:100%;margin:12px 0 18px 12px;padding:10px 14px;border-left:2px solid #a8b8ad;background:#e9eeea;border-radius:0 5px 5px 0}
main .report-optional-comparison>.check{font-size:13px;font-weight:500;margin:0}
.report-optional-comparison .inventory-comparison-controls{margin-top:12px;gap:12px}
.report-optional-comparison details{font-size:12px;max-width:440px}

@media(min-width:901px){main .report-filter-groups{grid-template-columns:repeat(4,minmax(0,1fr))}}

@media(min-width:901px){main .report-filter-groups{grid-template-columns:repeat(3,minmax(0,1fr))}}
.report-selected-types{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.report-selected-types:empty{display:none}
body main .report-selected-types button{font-size:12px;min-height:36px;padding:5px 9px;border-bottom-width:2px}
.report-equipment-status{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}

.admin-card-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.admin-card-actions>button{margin:0}

.admin-menu{display:flex;flex-direction:column;gap:14px;width:min(100%,360px);margin:24px auto 32px}
body main .admin-menu>button{width:100%;min-height:54px;font-size:16px;padding:12px 20px}
.admin-usage{max-width:600px;margin:24px auto;padding-top:20px;border-top:1px solid var(--line)}
.usage-reading{display:flex;justify-content:space-between;gap:12px}.usage-state.normal{color:#23623b}.usage-state.warning,.usage-state.limit{color:#a62650}.usage-state.unavailable{color:#626a66}
.admin-usage progress{width:100%;accent-color:#23623b}.admin-usage small{display:block;margin:8px 0}.admin-usage details{margin-top:14px}.admin-usage details p{margin-top:8px;font-size:13px}
#usage-warning{padding:12px 24px;background:#fff1a6;color:#613f00;font-weight:600}

.usage-actions{margin-top:12px}.sync-upgrade{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}

/* Yellow page actions mirror the website accent swap. */
body main>.heading button,body header button,body #install-app,body :is(#close,[data-procedure-back]),body #report-print,body #report-export-assets{border-color:var(--forest);box-shadow:inset 0 -3px 0 var(--forest)}
body main>.heading button:hover:not(:disabled),body header button:hover:not(:disabled),body #install-app:hover:not(:disabled),body :is(#close,[data-procedure-back]):hover:not(:disabled),body #report-print:hover:not(:disabled),body #report-export-assets:hover:not(:disabled){background:var(--forest);color:white;border-color:var(--forest);box-shadow:inset 0 -3px 0 var(--gold)}

/* Avoid sticky touch hover looking like a second selected tab. */
@media(hover:none){body nav button:not(.active):hover:not(:disabled){background:white;color:var(--ink);border-color:transparent;box-shadow:none}}

/* All workspace actions belong beneath the brand/status on every screen. */
header{flex-direction:column;align-items:stretch;gap:12px}
.workspace-brand{display:flex;align-items:center;gap:18px;min-width:0}
.workspace-brand>div{min-width:0;flex:1}
.workspace-brand #connection{overflow-wrap:anywhere}
.workspace-brand img{flex-shrink:0;max-width:35%;height:auto}
.workspace-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;min-width:0}
.workspace-actions #cloud-actions:not([hidden]){display:contents}
.workspace-actions #cloud-actions[hidden]{display:none}
.workspace-actions button,.workspace-actions a.button{margin:0;max-width:100%;white-space:normal;text-align:center}
@media(max-width:480px){.workspace-brand{gap:12px}.workspace-actions button,.workspace-actions a.button{font-size:14px;padding:9px 12px;min-height:44px}.workspace-actions{gap:8px}}

.record-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}.record-card{position:relative}.record-card>.record-actions{justify-content:flex-end;margin-top:16px}.record-trash{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:#a12222;border-color:#a12222;background:#fff}.danger{background:#a12222;color:#fff;border-color:#a12222}.delete-column-heading,.delete-category-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.delete-category{border-bottom:1px solid #ccc;padding:12px 0}.delete-category-heading button{flex:1;text-align:left}.delete-category-heading input{width:22px;height:22px;flex:none}.delete-category .check{padding:8px}.delete-category [hidden]{display:none}@media(max-width:600px){.record-card{padding-right:16px}.record-card>.record-actions{position:static;margin-top:12px}.heading{flex-wrap:wrap}.record-actions{margin-left:0}}

.record-footer{justify-content:flex-end;width:100%;margin:24px 0 0;padding-top:16px;border-top:1px solid #ddd}.record-footer .record-trash{margin-left:auto}

.step-instruction{resize:vertical;min-height:90px;white-space:pre-wrap}.step-editor-actions{justify-content:flex-start;margin-top:1rem}.step-row .heading label{max-width:240px}.run-instruction p{white-space:pre-wrap;overflow-wrap:anywhere}.run-step.is-complete{background:#e7e9e8;border-color:#aeb5b1}.run-step.is-complete>legend,.run-step.is-complete>.run-instruction,.run-step.is-complete>.run-limits{opacity:.45}.run-step.is-complete .reading-block input,.run-step.is-complete .reading-result{opacity:1;background:#fff;color:#182f27}.measurement-settings{margin-top:1rem}[hidden]{display:none!important}

.measurement-with-unit{display:flex;align-items:center;gap:.6rem}.measurement-with-unit input{flex:1;min-width:0}.measurement-with-unit span{flex:none}.run-limits{display:flex;gap:.6rem;flex-wrap:wrap}

.type-management-links{margin-top:1rem;display:flex;flex-wrap:wrap;gap:1rem}.type-management-links button{background:none;border:0;box-shadow:none;text-decoration:underline;padding:.25rem;font-size:.9rem;min-height:36px}.equipment-program-selector #edit-type-program{order:1}.equipment-program-selector{align-items:end}

button.record-trash{flex:0 0 40px!important;width:40px!important;max-width:40px!important;min-width:40px!important;height:40px;min-height:40px;padding:8px!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;align-self:center}button.record-trash svg{width:20px;height:20px;flex:none}button.record-trash:focus-visible{outline:2px solid #203e32;outline-offset:2px}.equipment-save-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:12px;width:100%}.equipment-save-actions>.primary{margin-left:auto;width:auto!important;min-width:0;flex:0 1 auto}

.step-result-options{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.step-result-options button[aria-pressed="true"]{background:#203e32;color:white;outline:2px solid #ffdf00}.step-result-options button[data-choice="Flag"][aria-pressed="true"]{background:#765000}

.equipment-order-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #ddd;padding:10px 0}.equipment-order-row>div:first-child{min-width:0;overflow-wrap:anywhere}.equipment-order-row .row{flex-wrap:nowrap;flex:none}.equipment-order-row button{min-width:40px;min-height:40px;padding:6px}.equipment-order-row small{display:block}#equipment-order-rows{max-height:55vh;overflow-y:auto}

/* Independent equipment status and condition indicators: shared tracks. */
.equipment-indicators{display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:12px}.equipment-indicators>div{text-align:center}.indicator-cell{text-align:center;vertical-align:top;min-width:110px;padding:12px!important}.equipment-indicator{display:grid;grid-template-rows:24px minmax(2.8em,auto);justify-items:center;align-items:start;gap:8px;padding:4px 6px}.equipment-light{display:block;width:22px;height:22px;border:2px solid #33483c;border-radius:50%;box-sizing:border-box}.light-green{background:#258145}.light-yellow{background:#f1c232}.light-red{background:#c12c32}.equipment-light.is-muted{opacity:.42;filter:saturate(.55);box-shadow:none}.run-step.is-complete [data-condition-note]{opacity:1;color:#172820;background:white}@media(max-width:600px){.indicator-cell{min-width:96px;padding:10px 5px!important}.equipment-indicator{padding:4px 0}.equipment-indicators{grid-template-columns:repeat(2,minmax(96px,1fr))}}
@media screen and (max-width:800px){#asset-list tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#asset-list td:nth-child(3){grid-column:1;grid-row:3}#asset-list td:nth-child(4){grid-column:2;grid-row:3;border-top:0}#asset-list td:nth-child(4)>div{margin-bottom:0}#asset-list td:nth-child(5){grid-column:1/-1;grid-row:4;border-top:1px solid var(--line);padding-top:10px}#asset-list td:nth-child(6){grid-column:2;grid-row:1;text-align:right}#asset-list td:nth-child(3)::before{content:'Equipment status';display:block;font-weight:600;text-align:center}#asset-list td:nth-child(4)::before{content:'Equipment condition';display:block;font-weight:600;text-align:center}#asset-list .equipment-indicator{grid-template-rows:24px minmax(2.8em,auto)}}
@media screen and (max-width:800px){#asset-list td:nth-child(3)::before,#asset-list td:nth-child(4)::before{height:3em;line-height:1.5;overflow-wrap:normal}}
/* Compact equipment cards: information, both lights and Open share the top row. */
@media screen and (max-width:800px){
 #asset-list tr{grid-template-columns:minmax(0,1fr) 64px 68px auto;gap:8px;align-items:start}
 #asset-list td:first-child{grid-column:1;grid-row:1;min-width:0}
 #asset-list td:nth-child(2){grid-column:1/-1;grid-row:2}
 #asset-list td:nth-child(3){grid-column:2;grid-row:1}
 #asset-list td:nth-child(4){grid-column:3;grid-row:1;border:0}
 #asset-list td:nth-child(5){grid-column:1/-1;grid-row:3}
 #asset-list td:nth-child(6){grid-column:4;grid-row:1;align-self:center}
 #asset-list td.indicator-cell{min-width:0;padding:0!important}
 #asset-list td:nth-child(3)::before{content:'Status'}
 #asset-list td:nth-child(4)::before{content:'Condition'}
 #asset-list td:nth-child(3)::before,#asset-list td:nth-child(4)::before{height:20px;line-height:20px;font-size:12px;white-space:nowrap}
 #asset-list .equipment-indicator{grid-template-rows:22px auto;gap:4px;padding:3px 0 0;font-size:11px;line-height:1.2}
 #asset-list td:nth-child(6) button{padding:7px 10px;min-height:44px}
}

/* CES: keep equipment actions readable at every width. */
#asset-list button[data-open]{white-space:nowrap;word-break:normal;overflow-wrap:normal;min-width:64px;width:auto;flex-shrink:0}
#asset-list td:last-child:has(button[data-open]){min-width:64px}
/* Match result choices to equipment condition lights; labels remain explicit. */
.step-result-options button:is([data-choice="Pass"],[data-choice="Operational"]){--result-color:#258145;--result-ink:#fff}
.step-result-options button:is([data-choice="Flag"],[data-choice="Flagged"]){--result-color:#f1c232;--result-ink:#172820}
.step-result-options button:is([data-choice="Fail"],[data-choice="Failed"]){--result-color:#c12c32;--result-ink:#fff}
.step-result-options button[data-choice]:is([data-choice="Pass"],[data-choice="Operational"],[data-choice="Flag"],[data-choice="Flagged"],[data-choice="Fail"],[data-choice="Failed"]){background:var(--result-color);color:var(--result-ink);border:2px solid var(--result-color);min-height:44px}
.step-result-options button[data-choice][aria-pressed="true"]:is([data-choice="Pass"],[data-choice="Operational"],[data-choice="Flag"],[data-choice="Flagged"],[data-choice="Fail"],[data-choice="Failed"]){background:var(--result-color);color:var(--result-ink);outline:3px solid #172820;outline-offset:3px;box-shadow:inset 0 0 0 2px var(--result-ink);font-weight:700}
.step-result-options button[data-choice]:focus-visible{outline:3px dashed #172820;outline-offset:6px}

.program-save-footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}.program-save-footer #program-save{grid-column:2;font-weight:700;white-space:nowrap}.program-save-footer .record-trash{justify-self:end}.program-save-footer>button:first-child:not(#program-save){justify-self:start}

/* CES background theme: colors only; existing dimensions and layout retained. */
@media screen{
 body{background:#293731;color:#f4f6f4}
 header,nav{background:#203e32;color:#f4f6f4}
 header small,header .muted{color:#dce4df}
 nav{border-bottom-color:#718178}
 body nav button,body nav button.active{background:#203e32;color:#fff;outline:1px solid #f1f4f1;outline-offset:-1px;box-shadow:inset 0 -3px 0 var(--gold)}
 body nav button:hover:not(:disabled),body nav button.active:hover{background:#294b3b;color:#fff}
 .card,.panel,.filters,.table-wrap,.report-filter,dialog,.program-actions{background:#fff;color:#292d2c}
 main>.heading,main>.heading .muted,main>p,main>h2,main>h3,main>.pager,main>section>h2,main>section>p,#report-count,#equipment-filter-summary,#equipment-count-note{color:#edf2ee}
 main>.heading a{color:#ffdf22}
 input,select,textarea,input[type=search],#search{background:#fff;color:#292d2c;border-color:#a9b2ad}
 input::placeholder,textarea::placeholder{color:#66716a;opacity:1}
 header a:not(.button){color:#ffdf22}
}

/* Procedure controls — additive patch on the restored live stylesheet, 2026-10-16. */
@media screen{
 #run-form .step-result-options{justify-content:center;gap:12px;width:min(100%,600px);margin:16px auto;flex-wrap:wrap}
 #run-form .step-result-options button[data-choice]{flex:1 1 0;min-width:72px;max-width:200px;min-height:50px;font-weight:700;border:3px solid #000}
 #run-form .step-result-options button[data-choice]:hover:not(:disabled){box-shadow:inset 0 -3px 0 var(--gold)}
 #run-form .step-result-options button[data-choice][aria-pressed="true"]{outline:3px solid #000;outline-offset:3px;box-shadow:inset 0 0 0 2px var(--result-ink,#fff)}
 #run-form [data-complete-step]{display:block;margin:16px auto 0}
 #run-form>.actions{justify-content:center}
}

/* CES contrast corrections, 2026-10-16. Preserve current controls and layout. */
@media screen{
 body header{background:#ecefed;color:#203e32}
 body header strong,body header small,body header .muted,body header #connection{color:#203e32}
 body header a:not(.button){color:#203e32}
 body main>p.muted,body main>.location-customer-filter,body main>.managed-location-search{color:#f4f6f4}
 body main>.panel>h2,body main>.panel>p{color:#292d2c}
 body #admin-usage{background:#f4f6f4;color:#292d2c;padding:20px;border:1px solid #d6dcd8;border-top:4px solid #203e32;border-radius:7px}
 body #admin-usage h2,body #admin-usage h3,body #admin-usage p{color:#292d2c}
 body #admin-usage small,body #admin-usage .muted{color:#48534c}
 body #admin-usage .usage-state.normal{color:#23623b}
}

/* Temperature reading: numeric entry takes remaining width; unit selector stays compact. */
#run-form .measurement-with-unit>input[data-value]{flex:1 1 0%;width:0;min-width:0}
#run-form .measurement-with-unit>select[data-reading-unit]{flex:0 0 5.5rem;width:5.5rem;min-width:5.5rem;max-width:5.5rem}

/* Help readability and action feedback. Scope guide colors to the guide page. */
body.help-guide nav[aria-label="Guide contents"]{background:#f4f6f4;color:#292d2c;border-color:#ccd4cf}
body.help-guide nav[aria-label="Guide contents"] :is(h2,li){color:#292d2c}
body.help-guide article{background:#fff;color:#292d2c}
body.help-guide article :is(h2,h3,h4,p,li,summary,label,legend){color:#292d2c}
body.help-guide article :is(small,.muted){color:#48534c}
body.help-guide nav[aria-label="Guide contents"] a,body.help-guide article a{color:#203e32}
body.help-guide nav[aria-label="Guide contents"] a:hover,body.help-guide article a:hover{text-decoration:underline}
body.help-guide a:focus-visible{outline:3px solid #203e32;outline-offset:3px}
.workspace-actions a.button:hover,body.help-guide .help-back:hover{background:#203e32!important;color:#fff!important;border-color:#203e32!important;box-shadow:inset 0 -3px 0 #ffdf22}
.workspace-actions a.button:focus-visible,body.help-guide .help-back:focus-visible{outline:3px solid #203e32;outline-offset:3px}

/* Draft-safe header creation menu; not another navigation tab. */
#header-add{position:relative;display:inline-block}#header-add-options{position:absolute;right:0;top:100%;z-index:20;min-width:180px;max-width:calc(100vw - 32px);padding:8px;background:white;color:#203e32;border:1px solid #203e32;box-shadow:0 4px 12px #0003}#header-add-options button{display:block;width:100%;margin:4px 0;text-align:left}nav[aria-label="Workspace"]{flex-wrap:nowrap;overflow-x:auto}#wo-rows small{display:block}

/* Keep Help and the existing service control together; Add stays at the far right. */
body>header .workspace-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:12px;row-gap:8px}
#workspace-primary-actions{grid-column:1;grid-row:1;display:flex;align-items:center;gap:8px;min-width:0}
body>header #header-add{grid-column:2;grid-row:1;justify-self:end;align-self:start;margin:0}
body>header .workspace-actions #cloud-actions:not([hidden]){display:flex;flex-wrap:wrap;grid-column:1/-1;grid-row:2;gap:8px}
#workspace-primary-actions>a.button,#workspace-primary-actions>.trouble-ticket-link,#header-add-button{white-space:nowrap;min-height:44px}
#header-add-options{max-height:min(440px,70vh);overflow-y:auto}
#header-add-close{border-bottom:2px solid #203e32;font-weight:bold}
@media(max-width:480px){body>header .workspace-actions{column-gap:10px}#workspace-primary-actions{gap:6px}#workspace-primary-actions>a.button,#workspace-primary-actions>.trouble-ticket-link,#header-add-button{font-size:14px;padding:9px 10px!important}}

/* Report controls remain readable regardless of the page theme. Screen only. */
@media screen {
 body main .report-filter,body main .report-filter-body,body main .report-filter summary{color:#173d2d;background:#fff;min-width:0}
 body main .report-filter summary strong,body main .report-filter summary span{color:#173d2d}
 body main .report-selected-types button{color:#173d2d!important;background:#edf3ef!important;-webkit-text-fill-color:#173d2d;border-color:#507960;white-space:normal;overflow-wrap:anywhere;max-width:100%}
 body main .report-selected-types button:hover,body main .report-selected-types button:active{background:#d4e5da!important;color:#102d20!important}
 body main .report-selected-types button:focus-visible{outline:3px solid #0757a8;outline-offset:2px}
 body main .report-optional-comparison,body main .report-optional-comparison label,body main .report-optional-comparison summary,body main .report-optional-comparison p{color:#173d2d!important;background:#e9eeea}
 body main .report-filter input,body main .report-filter select,body main .report-optional-comparison input,body main .report-optional-comparison select{color:#173d2d!important;background:#fff!important;-webkit-text-fill-color:#173d2d;max-width:100%;min-width:0;box-sizing:border-box}
 body main .report-filter input:disabled,body main .report-filter select:disabled{color:#46534b!important;background:#e5e9e6!important;-webkit-text-fill-color:#46534b;opacity:1}
 body main .report-filter-body label,body main .inventory-comparison-controls>*,body main #cr-output,body main #report{min-width:0;overflow-wrap:anywhere}
 body main .report-optional-comparison{box-sizing:border-box;margin-left:0;width:fit-content;max-width:100%}
 body main .facility-report-pager{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;max-width:100%}
 body main #report .table-wrap,body main #cr-output .table-wrap{max-width:100%;min-width:0;overflow-x:auto}
 body main:has(#report),body main:has(#cr-output){min-width:0;max-width:100%;box-sizing:border-box}
 @media(max-width:600px){body main:has(#report)>.heading,body main:has(#cr-output)>.heading{flex-wrap:wrap;min-width:0}body main:has(#report) .actions,body main:has(#cr-output) .actions{flex-wrap:wrap;min-width:0}body main:has(#cr-output) .grid,body main .inventory-comparison-controls{grid-template-columns:minmax(0,1fr)}body main:has(#cr-output) label,body main:has(#cr-output) select,body main:has(#cr-output) input{min-width:0;max-width:100%;box-sizing:border-box}}
}
@media screen{body :is(main,dialog,header) button:disabled{opacity:1!important;border-style:dashed!important;cursor:not-allowed}body :is(main,dialog) :is(input,select,textarea):disabled{opacity:1;color:#46534b;background:#e5e9e6;-webkit-text-fill-color:#46534b}}
@media screen{body :is(main,dialog) button.record-trash{color:#9b1c1c!important;background:#fff!important;-webkit-text-fill-color:#9b1c1c}body :is(main,dialog) button.record-trash:is(:hover,:active):not(:disabled){color:#fff!important;background:#9b1c1c!important;-webkit-text-fill-color:#fff}body :is(main,dialog) button.record-trash:focus-visible{outline:3px solid #9b1c1c;outline-offset:3px}}

/* Non-AI procedure guidance: no changes to completion rules. */
.ces-guided-hidden{display:none!important}.ces-guidance{border:2px solid #203e32;background:#f3f7f4;color:#182c24}.ces-guidance .actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}.run-step .ces-reading-entry{border:2px solid #315d48;background:#fff;min-height:3rem;font-size:1.15rem}.run-step .ces-reading-entry:focus{outline:3px solid #ffd500;outline-offset:2px}.ces-reading-hint{display:block;font-size:.88rem;line-height:1.35;color:#263b31;margin-top:.4rem}.run-limits input[readonly]{background:#edf0ee;color:#263b31}
