:root{color-scheme:light;--ink:#152e3a;--sub:#4b6170;--line:#d7e1e6;--canvas:#f1f5f6;--card:#fff;--green:#19594e;--soft:#eaf4f0;--warn:#754f17;--pale:#fff4dd;font:16px/1.45 system-ui,sans-serif;color:var(--ink);background:var(--canvas)}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
h1,h2,h3,p,figure{margin:0}
h1{font-size:clamp(1.65rem,4vw,2.35rem);line-height:1.14;letter-spacing:-.035em}
h2{font-size:1.17rem}h3{font-size:1rem}
.top{background:#132c3a;color:#f1f7fa;padding:.8rem max(1rem,calc((100vw - 1160px)/2));display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;gap:.8rem;color:inherit;text-decoration:none;font-size:1rem;letter-spacing:.12em;font-weight:750}
.brand-logo{display:block;width:180px;aspect-ratio:247/89;overflow:hidden;flex-shrink:0}
.brand img{display:block;width:100%;height:auto}
#mode{font-size:.78rem;color:#dbe9ed}
#account{margin-inline-start:auto;display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;font-size:.83rem}
#account button{color:#fff;border-color:#496472;background:#203f4f}
main{max-width:1200px;margin:auto;padding:1.3rem clamp(.8rem,3vw,1.6rem) 2rem}
.stack{display:grid;grid-template-columns:minmax(0,1fr);gap:.9rem;align-content:start}
.section{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
main,.stack,.section,.row,.toolbar,.nav,.grid,.table-wrap{min-width:0;max-width:100%}
:where(.top,.stack,.section,.row,.toolbar,.nav,.grid)>*{min-width:0;max-width:100%}
.panel{--panel-inset:clamp(.8rem,3vw,1.2rem);min-width:0;overflow-wrap:anywhere;background:var(--card);border:1px solid var(--line);border-radius:13px;padding:var(--panel-inset);box-shadow:0 1px 2px #193c4c0e}
.signin{max-width:440px;margin:clamp(1rem,8vh,6rem) auto}
.row,.toolbar,.nav{display:flex;gap:.5rem .75rem;align-items:center;flex-wrap:wrap}
.spread{justify-content:space-between}.muted,small{color:var(--sub);font-size:.875rem}
.tag{display:inline-block;border-radius:30px;background:var(--soft);color:var(--green);padding:.2rem .6rem;font-size:.78rem;font-weight:650}
.tag.warn{background:var(--pale);color:var(--warn)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:.85rem}
.job-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);gap:1rem}
button,input,select,textarea{font:inherit;color:inherit}
label{display:grid;gap:.3rem;min-width:0;font-size:.9rem;font-weight:600}
input,select,textarea{width:100%;min-width:0;max-width:100%;border:1px solid #b5c7d0;border-radius:8px;padding:.53rem .65rem;background:#fff;min-height:42px;font-weight:400}
textarea{resize:vertical;min-height:100px}
button{border:1px solid #bdd1e1;border-radius:8px;background:#edf4fb;color:#244c6b;padding:.5rem .72rem;min-height:44px;cursor:pointer;font-weight:650;transition:filter .12s,box-shadow .12s}
button,.button-link{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.button-label{min-width:0}
button:hover:not(:disabled){filter:brightness(.96)}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid #186b60;outline-offset:2px}
button.primary{background:var(--green);border-color:var(--green);color:#fff}
button[aria-current=page]{background:var(--soft);border-color:var(--green);color:var(--green)}
.status:empty{display:none}.status[data-error=true]{color:#842521}.status{font-size:.875rem}
.report-status{display:inline-flex;align-items:center;gap:.4rem;border:1px solid currentColor;border-radius:20px;padding:.2rem .65rem;font-size:.8rem;font-weight:650}
.report-status::before{content:'';width:.45rem;height:.45rem;border-radius:50%;background:currentColor;flex-shrink:0}
.report-status[data-tone=red]{color:#922c29;background:#fff0ee}
.report-status[data-tone=yellow]{color:#805405;background:#fff6de}
.report-status[data-tone=green]{color:#195d48;background:#eaf6ef}
[data-offline-preparation]{font-size:.83rem;padding:.55rem .75rem;border-radius:8px;background:#fff6de;color:#805405}
[data-offline-preparation][data-tone=green]{color:#195d48;background:#eaf6ef}
.report-action[data-tone=red]{color:#922c29;background:#fff0ee;border-color:#c5746c}
.report-action[data-tone=yellow]{color:#805405;background:#fff6de;border-color:#bd943a}
.report-action[data-tone=green]{color:#195d48;background:#eaf6ef;border-color:#59927b}
.report-action[aria-pressed=true]{outline:2px solid currentColor;outline-offset:2px;text-decoration:underline;text-underline-offset:.2em}
.button-link{display:inline-flex;align-items:center;min-height:44px;padding:.5rem .72rem;border:1px solid #bdd1e1;border-radius:8px;text-decoration:none;color:#244c6b;background:#edf4fb;font-weight:650}
.action-button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;position:relative}
.button-icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-button{width:44px;height:44px;min-width:44px;padding:10px}
.icon-button .button-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.action-button[data-action-tone=neutral]{background:#eef2f5;border-color:#c6d0d8;color:#465b6b}
.action-button[data-action-tone=reference]{background:#f1ecfa;border-color:#d0c1e2;color:#63467f}
.action-button[data-action-tone=add]:not(.primary){background:#e6f3ec;border-color:#a7cbb9;color:#205e46}
.action-button[data-action-tone=danger]{background:#fff0ee;border-color:#dfa8a3;color:#922c29}
.nav button{background:#eaf1f8;border-color:#c0d1df;color:#315574}
.nav button[aria-current=page]{background:#19594e;border-color:#19594e;color:#fff;box-shadow:0 2px 5px #19594e20}
.job-card{border-top:1px solid var(--line);padding-top:.75rem}
.job-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;width:100%;margin:.35rem 0}
.job-steps button{min-height:56px;text-align:left;justify-content:flex-start;padding:.8rem .9rem;line-height:1.35}
.job-steps button[aria-current=step]{outline:2px solid currentColor;outline-offset:2px;font-weight:750}
.job-progress-line{grid-column:1/-1}
.workflow-summary{border-top:1px solid var(--line);padding-top:1rem;margin-top:.35rem}
.workflow-count{font-size:1.05rem;font-weight:700}
[data-entry-form-panel]{scroll-margin-top:1rem}
@media(max-width:640px){.job-steps{grid-template-columns:1fr;gap:.5rem}.job-steps button{min-height:48px;padding:.65rem .8rem}.workflow-summary>.row{align-items:stretch}.workflow-summary .primary{flex:1}}
.table-wrap{overflow:auto;overscroll-behavior-x:contain}
table{border-collapse:collapse;width:100%;text-align:left}th,td{border-bottom:1px solid var(--line);padding:.58rem .45rem;vertical-align:top}th{font-size:.8rem;color:var(--sub)}
.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.item-identity{display:flex;align-items:center;justify-content:space-between;gap:.55rem;min-height:44px}
.item-identity .icon-button{flex-shrink:0}
.map{width:100%;height:218px;border:0;border-radius:9px;background:var(--canvas)}
.map-placeholder{min-height:110px;background:var(--canvas);border-radius:9px;padding:.85rem;display:grid;place-items:center;text-align:center}
.metric b{display:block;font-size:1.7rem;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.metric{display:grid;gap:.2rem}
.schedule-comment{white-space:pre-wrap;overflow-wrap:anywhere}
.schedule-attachments{margin:0;padding-inline-start:1.2rem}
.schedule-attachments li+li{margin-top:.4rem}
.schedule-filters{display:grid;grid-template-columns:minmax(14rem,2fr) repeat(4,minmax(0,1fr));gap:.75rem;align-items:end}
.schedule-results{grid-column:1/-1;min-height:36px}
.schedule-results button{min-height:36px;padding:.35rem .65rem;font-size:.85rem}
.schedule-list{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.schedule-job{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:.6rem 1.1rem;
  align-items:start;padding:.85rem .4rem;border-bottom:1px solid var(--line);overflow-wrap:anywhere;font-size:.9rem}
.schedule-job > div{display:grid;justify-items:start;min-width:0;gap:.2rem}
.schedule-job button.schedule-job-name{min-height:0;padding:0;border:0;border-radius:2px;text-align:left;color:var(--green);background:none;font-size:1rem}
.schedule-job-name:hover{text-decoration:underline}
[href^="tel:"]{color:var(--green);text-underline-offset:.17em}
.schedule-phone a{display:inline-block;max-width:100%}
.field-checkbox{display:flex;align-items:center;gap:.55rem}
.field-checkbox input{width:1.15rem;min-height:1.15rem}
.part-dialog{width:min(480px,calc(100% - 2rem));border:1px solid var(--line);border-radius:13px;padding:1.3rem;color:var(--ink);background:var(--card)}
.part-dialog::backdrop{background:#132c3a88}
.reference-popup{position:fixed;inset:auto;margin:0;z-index:1000;display:flex;flex-direction:column;max-width:calc(100vw - 24px);padding:0;border:1px solid #9bb8b0;border-radius:13px;background:var(--card);color:var(--ink);box-shadow:0 12px 40px #132c3a38;overflow:hidden}
.reference-popup-header{display:flex;justify-content:space-between;align-items:start;gap:1rem;padding:1rem 1.1rem;border-bottom:1px solid var(--line);background:#f4f9f7;flex-shrink:0}
.reference-popup-header .stack{gap:.2rem;min-width:0;overflow-wrap:anywhere}
.reference-popup-header button{flex-shrink:0}
.reference-popup-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:1rem 1.1rem;scrollbar-gutter:stable}
.reference-popup-content .table-wrap{overflow:visible}
.reference-popup-content td{overflow-wrap:anywhere}
.reference-trigger-open{outline:2px solid var(--green);outline-offset:2px;background:var(--soft)}
@media(max-width:620px){.reference-popup-header,.reference-popup-content{padding:.75rem}.reference-popup-content .table-wrap{overflow:auto}.reference-popup-header h2{font-size:1.05rem}}
.field-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:.65rem}
.field-photos img{width:100%;max-height:260px;object-fit:contain;background:var(--canvas);border-radius:8px}
.photo-actions button{display:inline-flex;align-items:center;gap:.5rem;min-height:46px;background:#e6f3ec;border-color:#a7cbb9;color:#205e46}
.photo-actions svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.divider{margin-top:.35rem;border-top:1px solid var(--line);padding-top:.8rem}
.filters{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.65rem}
.filters input{min-width:0}
.item-filters{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto}
@media(max-width:760px){.item-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.item-filters>label:first-child,.item-filters>.status{grid-column:1/-1}}
@media(max-width:480px){.filters:not(.item-filters){grid-template-columns:minmax(0,1fr)}.filters:not(.item-filters)>button{justify-self:start}}
details summary{cursor:pointer;font-weight:650}details[open] summary{margin-bottom:.7rem}
.reference-section{--section-fill:#e8f1fc;--section-edge:#4777ad;--section-ink:#234d7b}
.reference-section[data-section=equipment]{--section-fill:#e6f5f1;--section-edge:#217969;--section-ink:#16594d}
.reference-section[data-section=files]{--section-fill:#fff3d6;--section-edge:#bf831c;--section-ink:#76520d}
.reference-section[data-section=assessment]{--section-fill:#edf1f6;--section-edge:#71819a;--section-ink:#3e526d}
.reference-section[data-section=history]{--section-fill:#eaf1f8;--section-edge:#6186a8;--section-ink:#355d7d}
.reference-section[data-section=bom]{--section-fill:#edeeff;--section-edge:#747bb0;--section-ink:#4e5689}
.reference-section>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:.65rem;list-style:none;min-height:50px;padding:.85rem 1rem;border-left:5px solid var(--section-edge);border-radius:9px;background:var(--section-fill);color:var(--section-ink);font-weight:700;line-height:1.5;cursor:pointer;box-shadow:inset 0 0 0 1px var(--section-edge)}
.reference-section>summary::-webkit-details-marker{display:none}
.reference-section>summary::after{content:'+ Open';font-size:.85rem;line-height:1.7;font-weight:700;white-space:nowrap}
.reference-section[open]>summary{margin-bottom:.9rem}
.reference-section[open]>summary::after{content:'− Close'}
.reference-section>summary:hover{filter:brightness(.97)}
.reference-section>summary:focus-visible{outline:2px solid var(--section-edge);outline-offset:3px}
.panel>.reference-section:only-child>summary{margin:calc(-1 * var(--panel-inset));border-radius:12px}
.panel>.reference-section[open]:only-child>summary{margin-bottom:.9rem;border-bottom-left-radius:0;border-bottom-right-radius:0}
@media(max-width:620px){.job-grid{grid-template-columns:1fr}.top{gap:.5rem}.brand{font-size:.875rem;gap:.55rem}.brand-logo{width:138px}.row,.toolbar{gap:.4rem}th,td{padding:.45rem .32rem}button,input,select,textarea{min-height:44px}input,select,textarea{font-size:16px}}
@media(max-width:860px){.schedule-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.schedule-filters > label:first-child{grid-column:1/-1}}
@media(max-width:640px){.schedule-filters,.schedule-job{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-job{padding:.8rem .2rem}.schedule-job > div:empty{display:none}.schedule-job button.schedule-job-name{min-height:44px}.schedule-results button{min-height:44px}}
