:root{--brand-navy:#233f97;--brand-blue:#3159b4;--brand-yellow:#fbbb12;--brand-yellow-hover:#e4aa00;--brand-pale:#eef1fb;--brand-ink:#20275f;color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;background:#f1f5f9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}h1,h2,h3,p{margin-top:0}.center-state{color:#475569;place-items:center;min-height:100vh;display:grid}.login-layout{background:radial-gradient(circle at 18% 18%,#38bdf838,#0000 28%),#082f49;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);min-height:100vh;display:grid}.login-intro{color:#e0f2fe;flex-direction:column;justify-content:center;padding:clamp(48px,9vw,140px);display:flex}.brand-mark{background:#ffffff14;border:1px solid #e0f2fe59;border-radius:17px;place-items:center;width:58px;height:58px;margin-bottom:42px;font-size:26px;font-weight:800;display:grid}.eyebrow{color:#0284c7;letter-spacing:.14em;text-transform:uppercase;margin-bottom:8px;font-size:12px;font-weight:800}.login-intro h1{letter-spacing:-.055em;max-width:760px;margin-bottom:24px;font-size:clamp(42px,6vw,78px);line-height:.98}.login-card{background:#fff;border-radius:26px;align-self:center;width:min(430px,100% - 48px);margin:48px auto;padding:38px;box-shadow:0 30px 80px #02081740}.login-card h2{letter-spacing:-.025em;margin-bottom:32px;font-size:30px}label{color:#334155;gap:8px;margin-bottom:20px;font-size:14px;font-weight:700;display:grid}input,select,textarea{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:12px;outline:none;width:100%;min-height:50px;padding:12px 14px;transition:border-color .12s,box-shadow .12s}textarea{resize:vertical;min-height:96px}.primary-button,.secondary-button,.ghost-button,.icon-button{border:0;border-radius:12px;min-height:46px;font-weight:750}.primary-button{color:#fff;background:#0369a1;padding:0 20px;box-shadow:0 8px 22px #0369a138}.login-card .primary-button{width:100%;margin-top:6px}.secondary-button{color:#075985;background:#e0f2fe;padding:0 18px}.ghost-button{color:#475569;background:0 0;padding:0 14px}.settings-button[aria-current=page]{background:var(--brand-pale);color:var(--brand-navy)}.icon-button{color:#475569;background:#f1f5f9;width:46px;font-size:26px}.form-error{color:#b91c1c;background:#fef2f2;border-radius:10px;padding:11px 13px;font-size:14px}.form-hint{color:#94a3b8;text-align:center;margin:18px 0 0;font-size:12px}.app-shell{background:#f1f5f9;min-height:100vh}.app-header{background:#fffffff0;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:24px;min-height:118px;padding:30px clamp(24px,5vw,72px);display:flex}.app-header h1{letter-spacing:-.035em;margin-bottom:0;font-size:34px}.header-actions,.section-actions,.modal-actions{align-items:center;gap:10px;display:flex}.connection-pill{color:#475569;background:#f1f5f9;border-radius:999px;align-items:center;gap:8px;min-height:38px;padding:0 13px;font-size:13px;font-weight:750;display:flex}.connection-pill span{border-radius:50%;width:8px;height:8px}.connection-pill.online span{background:#16a34a;box-shadow:0 0 0 4px #16a34a1f}.connection-pill.offline span{background:#f97316;box-shadow:0 0 0 4px #f973161f}.offline-banner{color:#9a3412;background:#fff7ed;padding:12px clamp(24px,5vw,72px);font-size:14px;font-weight:650}.dashboard{width:min(1440px,100%);margin:0 auto;padding:34px clamp(20px,5vw,72px) 72px}.settings-view{gap:22px;display:grid}.settings-heading{justify-content:space-between;gap:24px;display:flex}.settings-heading h2{color:var(--brand-ink);letter-spacing:-.035em;margin-bottom:8px;font-size:30px}.settings-heading>div>p:last-child{color:#64748b;margin-bottom:0}.settings-grid{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);align-items:start;gap:20px;display:grid}.settings-side{gap:20px;display:grid}.settings-card{margin-bottom:0}.settings-card-heading{align-items:center;gap:14px;margin-bottom:24px;display:flex}.settings-card-heading h3,.profile-form h4,.password-form h4,.session-settings h4{color:var(--brand-ink);margin-bottom:0}.settings-card-heading .eyebrow{margin-bottom:4px}.settings-icon{background:var(--brand-pale);width:42px;height:42px;color:var(--brand-blue);border-radius:13px;flex:none;place-items:center;font-weight:850;display:grid}.settings-facts{gap:0;margin:0;display:grid}.settings-facts>div{border-bottom:1px solid #e2e8f0;justify-content:space-between;gap:18px;padding:14px 0;display:flex}.settings-facts>div:first-child{padding-top:0}.settings-facts dt{color:#64748b;font-size:13px;font-weight:650}.settings-facts dd{color:#0f172a;overflow-wrap:anywhere;text-align:right;margin:0;font-weight:750}.profile-form,.password-form{border-top:1px solid #e2e8f0;max-width:620px;margin-top:28px;padding-top:26px}.profile-form h4,.password-form h4{margin-bottom:20px}.settings-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;display:grid}.settings-form-grid .full-width{grid-column:1/-1}.password-form label small{color:#64748b;font-size:12px;font-weight:500}.profile-form .primary-button,.password-form .primary-button{margin-top:4px}.settings-success,.settings-note{border-radius:10px;padding:11px 13px;font-size:13px;font-weight:650}.settings-success{color:#047857;background:#ecfdf5}.settings-note{color:#9a3412;background:#fff7ed}.session-settings{border-top:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:20px;margin-top:30px;padding-top:24px;display:flex}.session-settings p{color:#64748b;margin:6px 0 0;font-size:13px}.session-error{margin:14px 0 0}.settings-placeholder{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;padding:18px}.settings-placeholder strong{color:#334155}.settings-placeholder p{color:#64748b;margin:7px 0 0;font-size:13px;line-height:1.55}.build-facts>div:last-child{border-bottom:0}.contact-list,.document-list{gap:12px;display:grid}.contact-card,.document-card{background:#fff;border:1px solid #e2e8f0;border-radius:15px;justify-content:space-between;align-items:center;gap:18px;padding:16px;display:flex}.contact-card h4,.document-card h4{margin:0 0 5px}.contact-card p,.document-card p{color:#64748b;margin:0 0 7px;font-size:13px}.contact-links{flex-wrap:wrap;gap:8px 16px;display:flex}.contact-links a,.document-link{color:var(--brand-blue);font-size:13px;font-weight:700;text-decoration:none}.document-card{justify-content:flex-start}.document-icon{color:#b91c1c;background:#fee2e2;border-radius:12px;flex:none;place-items:center;width:48px;height:48px;font-size:12px;font-weight:850;display:grid}.pdf-thumbnail-button{background:#e2e8f0;border:1px solid #cbd5e1;border-radius:10px;flex:none;width:152px;height:106px;padding:0;overflow:hidden}.pdf-thumbnail-button:hover{border-color:var(--brand-blue);box-shadow:0 4px 14px #233f972e}.pdf-thumbnail{color:#b91c1c;background:linear-gradient(135deg,#f8fafc,#e2e8f0);place-items:center;width:100%;height:100%;font-size:13px;font-weight:850;display:grid;overflow:hidden}.pdf-thumbnail canvas{object-fit:contain;background:#fff;width:100%;height:100%}.document-main{flex:1;min-width:0}.document-main>span,.map-help,.map-file,.map-location{color:#64748b;font-size:13px}.document-picker,.map-upload{width:fit-content}.map-upload{cursor:pointer;align-items:center;min-height:46px;display:inline-flex}.map-upload.disabled{cursor:not-allowed;opacity:.55}.map-upload input,.document-picker input{opacity:0;width:1px;height:1px;position:absolute;overflow:hidden}.protocol-map{z-index:0;border:1px solid #cbd5e1;border-radius:16px;min-height:480px;margin-top:16px;overflow:hidden}.map-help{margin-bottom:8px}.map-file{margin:8px 0}.map-location{color:var(--brand-ink);margin:8px 0}.protocol-location-marker{background:0 0;border:0}.protocol-location-marker span{background:var(--brand-yellow);border:4px solid #fff;border-radius:50% 50% 50% 0;width:30px;height:30px;display:block;transform:rotate(-45deg);box-shadow:0 4px 12px #10214e52}.protocol-location-marker span:after{background:var(--brand-navy);content:"";border-radius:50%;width:9px;height:9px;margin:7px;display:block}.leaflet-container{font-family:inherit}.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px;display:grid}.summary-card,.content-card{background:#fff;border:1px solid #e2e8f0;box-shadow:0 8px 30px #0f172a0a}.summary-card{border-radius:18px;flex-direction:column;justify-content:space-between;min-height:150px;padding:24px;display:flex}.summary-card span{color:#64748b;font-size:14px;font-weight:650}.summary-card strong{color:#0f172a;letter-spacing:-.04em;font-size:34px}.summary-card.accent{background:#082f49;border-color:#082f49}.content-card{border-radius:20px;min-height:440px;padding:28px}.section-heading{justify-content:space-between;align-items:center;gap:20px;display:flex}.section-heading h2{letter-spacing:-.025em;margin-bottom:0;font-size:25px}.sync-message{color:#0369a1;margin:18px 0 0;font-size:13px}.empty-state{color:#64748b;text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:320px;display:flex}.empty-state h3{color:#334155;margin-bottom:8px}.empty-icon{color:#0369a1;background:#e0f2fe;border-radius:16px;place-items:center;width:54px;height:54px;margin-bottom:18px;font-size:30px;display:grid}.protocol-list{gap:10px;margin-top:24px;display:grid}.protocol-row{width:100%;color:inherit;font:inherit;text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:15px;grid-template-columns:48px minmax(180px,1fr) auto auto auto;align-items:center;gap:16px;padding:16px;transition:border-color .12s,box-shadow .12s,transform .12s;display:grid}.protocol-row:hover{border-color:#7dd3fc;transform:translateY(-1px);box-shadow:0 8px 24px #0ea5e91a}.protocol-row:focus-visible{outline-offset:2px;outline:3px solid #0ea5e93d}.protocol-index{color:#0369a1;background:#f1f5f9;border-radius:13px;place-items:center;width:48px;height:48px;font-size:12px;font-weight:850;display:grid}.protocol-main h3{margin-bottom:4px;font-size:16px}.protocol-main p{color:#64748b;margin-bottom:0;font-size:13px}.status,.sync-state{white-space:nowrap;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:750}.sync-state{color:#64748b;background:#f1f5f9}.sync-pending{color:#9a3412;background:#fff7ed}.sync-error{color:#b91c1c;background:#fef2f2}.protocol-detail{gap:18px;display:grid}.detail-heading{padding:4px 2px 8px}.detail-heading h2{letter-spacing:-.04em;margin-bottom:14px;font-size:clamp(28px,4vw,42px)}.back-button{color:#0369a1;background:0 0;border:0;margin:0 0 24px;padding:0;font-size:14px;font-weight:750}.back-button:hover{color:#075985;text-decoration:underline}.detail-meta{color:#64748b;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;font-weight:650;display:flex}.detail-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:28px;box-shadow:0 8px 30px #0f172a0a}.form-section-heading{justify-content:space-between;align-items:flex-start;gap:28px;display:flex}.form-section-heading h3{letter-spacing:-.02em;margin-bottom:0;font-size:21px}.form-section-heading>p{color:#64748b;max-width:460px;margin-bottom:0;font-size:13px;line-height:1.55}.detail-form-grid{max-width:980px;margin-top:28px}input[aria-invalid=true]{border-color:#ef4444;box-shadow:0 0 0 3px #ef44441a}.route-section-heading{align-items:center}.route-section-heading-actions{align-items:center;gap:10px;display:flex}.route-summary{grid-template-columns:repeat(2,minmax(0,220px));gap:12px;margin-top:24px;display:grid}.route-summary>div{background:#f8fafc;border-radius:14px;justify-content:space-between;align-items:baseline;gap:18px;padding:16px 18px;display:flex}.route-summary span{color:#64748b;font-size:13px;font-weight:700}.route-summary strong{font-size:19px}.route-empty-state{color:#64748b;border:1px dashed #cbd5e1;border-radius:16px;justify-content:center;align-items:center;gap:18px;min-height:150px;margin-top:18px;padding:24px;display:flex}.route-empty-state>span{color:#0369a1;background:#e0f2fe;border-radius:14px;flex:none;place-items:center;width:48px;height:48px;font-size:27px;display:grid}.route-empty-state h4{color:#334155;margin:0 0 5px}.route-empty-state p{max-width:600px;margin:0;font-size:13px;line-height:1.55}.route-section-list{gap:10px;margin:20px 0 0;padding:0;list-style:none;display:grid}.route-section-item{background:#fff;border:1px solid #e2e8f0;border-radius:15px;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px;display:grid}.route-number{color:#e0f2fe;background:#082f49;border-radius:12px;place-items:center;width:42px;height:42px;font-size:14px;font-weight:850;display:grid}.route-section-content{min-width:0}.route-section-content h4{overflow-wrap:anywhere;margin:0 0 5px;font-size:15px}.route-section-content>p{color:#64748b;margin:0 0 7px;font-size:13px}.route-section-facts{flex-wrap:wrap;gap:6px;display:flex}.route-section-facts span{color:#475569;background:#f1f5f9;border-radius:8px;padding:5px 8px;font-size:11px;font-weight:700}.route-section-actions{justify-content:flex-end;align-items:center;gap:6px;display:flex}.compact-button{color:#475569;background:#f1f5f9;border:0;border-radius:10px;min-height:38px;padding:0 11px;font-weight:750}.compact-button:hover:not(:disabled){background:#e2e8f0}.text-button{color:#0369a1}.danger-button{color:#b91c1c;background:#fef2f2}.danger-button:hover:not(:disabled){background:#fee2e2}.route-message{color:#047857;margin:16px 0 0;font-size:13px;font-weight:700}.route-editor{width:min(820px,100%)}.room-list{gap:14px;margin-top:20px;display:grid}.room-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:18px}.room-heading{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.room-heading h4{margin:0 0 5px;font-size:17px}.room-heading p,.room-empty{color:#64748b;margin:0;font-size:13px}.room-empty{margin-top:16px}.equipment-list{gap:8px;margin:16px 0 0;padding:0;list-style:none;display:grid}.equipment-list li{background:#fff;border:1px solid #e2e8f0;border-radius:12px;justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;display:flex}.equipment-list li>div:first-child{gap:3px;display:grid}.equipment-list strong{font-size:14px}.equipment-list span{color:#64748b;font-size:12px}.add-equipment{color:#0369a1;margin-top:14px}.inline-hint{text-align:left;margin:0}.selected-room-hint{background:#f0f9ff;border:1px solid #bae6fd;border-radius:12px;align-content:center;gap:3px;min-height:50px;margin-bottom:20px;padding:11px 14px;display:grid}.selected-room-hint span{color:#0369a1;text-transform:uppercase;font-size:11px;font-weight:750}.selected-room-hint strong{color:#0f172a;font-size:14px}.endpoint-editor{background:#f8fafc;border:1px solid #cbd5e1;border-radius:14px;min-width:0;margin:0 0 20px;padding:16px}.endpoint-editor legend{color:#334155;padding:0 6px;font-size:14px;font-weight:800}.endpoint-editor label:last-child,.endpoint-room-hint{margin-bottom:0}.endpoint-room-hint{background:#fff}.route-endpoint-details{font-weight:650;color:#0369a1!important}.measure-toolbar{gap:7px;margin-top:22px;display:flex}.measure-toolbar button{color:#475569;background:#f1f5f9;border:0;border-radius:999px;min-height:38px;padding:0 14px;font-weight:750}.measure-toolbar button.active{color:#e0f2fe;background:#082f49}.measure-list{gap:10px;margin-top:18px;display:grid}.measure-card{border:1px solid #e2e8f0;border-radius:15px;justify-content:space-between;align-items:center;gap:18px;padding:16px;display:flex}.measure-card.overdue{background:#fff7ed;border-color:#fdba74}.measure-main{min-width:0}.measure-title-row{align-items:center;gap:8px;display:flex}.measure-title-row h4{margin:0}.measure-main>p{color:#64748b;margin:6px 0 9px;font-size:13px}.measure-priority{color:#075985;background:#e0f2fe;border-radius:7px;padding:4px 7px;font-size:10px;font-weight:800}.priority-high{color:#b91c1c;background:#fee2e2}.priority-low{color:#047857;background:#ecfdf5}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin-top:22px;display:grid}.photo-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden}.photo-image{background:#e2e8f0;position:relative;overflow:hidden}.photo-image img{width:100%;display:block}.photo-placeholder{aspect-ratio:4/3;width:100%;display:block}.photo-image .sync-state{position:absolute;bottom:10px;right:10px;box-shadow:0 3px 12px #0f172a33}.photo-content{padding:15px}.photo-content h4{margin:0 0 5px}.photo-content>p{color:#64748b;margin:0 0 9px;font-size:13px}.photo-content>span{color:#0369a1;font-size:12px;font-weight:700}.photo-content .route-section-actions{justify-content:flex-start;margin-top:14px}.photo-source-actions{gap:10px;margin-top:26px;display:flex}.photo-picker{color:#fff;cursor:pointer;background:#0369a1;border-radius:12px;align-items:center;min-height:46px;margin:0;padding:0 18px;display:inline-flex}.photo-picker.secondary{color:#075985;background:#e0f2fe}.photo-picker input{opacity:0;width:1px;height:1px;position:absolute;overflow:hidden}.selected-photo-info{color:#047857;background:#ecfdf5;border-radius:10px;margin-top:12px;padding:10px 12px;font-size:13px;font-weight:700}.clarification-count{color:#9a5b00;background:#fff4d6;border-radius:999px;padding:.35rem .65rem;font-size:.8rem;font-weight:700}.clarification-warning{color:#754500;background:#fff8e7;border:1px solid #efc667;border-radius:.75rem;margin:0 0 1rem;padding:.8rem 1rem;font-weight:700}.clarification-list{gap:.85rem;display:grid}.clarification-item{background:#fff;border:1px solid #e2e8f0;border-radius:.9rem;justify-content:space-between;gap:1rem;padding:1rem;display:flex}.clarification-item.overdue{border-left:4px solid #c23b32}.clarification-main{flex:1;min-width:0}.clarification-main h4,.clarification-main p{margin:0 0 .45rem}.blocking-badge{color:#9b2c25;background:#ffebe9;border-radius:999px;padding:.25rem .55rem;font-size:.75rem;font-weight:800}.clarification-answer{background:#eef8f4;border-radius:.7rem;gap:.35rem;margin:.8rem 0;padding:.8rem;display:grid}.clarification-answer span{color:#64748b;font-size:.82rem}.clarification-editor{max-height:90vh;overflow-y:auto}.checkbox-label{align-items:center;gap:.55rem;flex-direction:row!important}.checkbox-label input{width:auto}.protocol-edit-fields{border:0;min-width:0;margin:0;padding:0}.protocol-edit-fields:disabled{opacity:.78}.status-transition-actions,.pdf-download-block,.annotation-toolbar,.annotation-text-entry,.duplication-preview,.duplication-options{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.status-transition-actions>span,.pdf-download-block>span{color:#64748b;font-size:14px}.status-history{margin-top:18px}.status-history summary{color:#64748b;cursor:pointer;font-weight:700}.status-history ol{gap:8px;margin:14px 0 0;padding:0;list-style:none;display:grid}.status-history li{border-left:3px solid #7dd3fc;flex-direction:column;gap:2px;padding-left:12px;display:flex}.status-history li span,.final-lock-note{color:#64748b;font-size:13px}.pdf-download-block{background:#e0f2fe;border:1px solid #bae6fd;border-radius:18px;margin-bottom:20px;padding:16px 20px}.duplication-preview,.duplication-options{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;flex-direction:column;align-items:flex-start;margin-top:16px;padding:14px}.duplication-preview small{color:#64748b}.annotated-photo,.annotation-stage{position:relative}.annotated-photo>img,.annotation-stage>img{width:100%;height:auto;display:block}.annotation-overlay,.annotation-input-layer{width:100%;height:100%;position:absolute;inset:0}.annotation-input-layer{cursor:crosshair;touch-action:none}.annotation-editor{gap:12px;margin:14px 0;display:grid}.annotation-toolbar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:10px}.annotation-toolbar button{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:8px 10px}.annotation-toolbar button.active{color:#fff;background:#082f49}.annotation-toolbar label{flex-direction:row;align-items:center}.annotation-stage{background:#0f172a;border-radius:14px;overflow:hidden}.annotation-toggle{margin-top:12px}@media (width<=720px){.clarification-item{flex-direction:column}}.confirm-card{width:min(520px,100%)}.confirm-card h2{margin-bottom:12px}.confirm-card>p:not(.eyebrow){color:#64748b;line-height:1.6}.destructive-primary{background:#b91c1c;box-shadow:0 8px 22px #b91c1c33}.delete-protocol-button{border:0;border-radius:12px;min-height:46px;padding:0 16px;font-weight:750}.conflict-card{background:#fffaf0;border-color:#fbbb12}.conflict-card>p,.conflict-card div>p:last-child{color:#64748b;line-height:1.5}.field-error{color:#b91c1c;margin-top:-2px;font-size:12px;font-weight:650}.save-bar{z-index:10;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff5;border:1px solid #cbd5e1;border-radius:18px;justify-content:space-between;align-items:center;gap:20px;min-height:78px;padding:14px 18px;display:flex;position:sticky;bottom:16px;box-shadow:0 14px 40px #0f172a24}.save-bar p{margin-bottom:0}.save-message{color:#047857;font-size:13px;font-weight:700}.modal-backdrop{z-index:20;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#0f172a94;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.modal-card{background:#fff;border-radius:22px;width:min(720px,100%);max-height:calc(100vh - 48px);padding:30px;overflow:auto;box-shadow:0 30px 90px #0f172a52}.pdf-preview-modal{flex-direction:column;width:min(1120px,100%);height:calc(100vh - 48px);display:flex;overflow:hidden}.pdf-preview-heading{flex:none;margin-bottom:16px}.pdf-preview-heading h2{margin-bottom:4px}.pdf-preview-heading p:last-child{color:#64748b;margin-bottom:0;font-size:13px}.pdf-preview-frame{background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;width:100%;height:100%;min-height:360px;display:block}.pdf-preview-content{flex:1;min-height:360px;overflow:hidden}.pdf-preview-loading{color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;place-items:center;height:100%;font-weight:700;display:grid}.pdf-open-button{justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin-top:28px;display:grid}.full-width{grid-column:1/-1}.modal-actions{justify-content:flex-end;margin-top:12px}.login-layout{background:radial-gradient(circle at 18% 18%, #3159b461, transparent 32%), var(--brand-navy)}.login-intro{color:#fff}.login-intro .eyebrow,.login-intro>p:last-child{color:var(--brand-yellow)}.brand-mark{color:var(--brand-yellow);background:#3159b473;border-color:#ffffff61}.eyebrow,.sync-message,.back-button,.text-button,.add-equipment,.route-endpoint-details,.photo-content>span{color:var(--brand-blue)}.primary-button,.photo-picker{background:var(--brand-yellow);color:var(--brand-ink);box-shadow:0 8px 22px #fbbb1240}.primary-button:hover,.photo-picker:hover{background:var(--brand-yellow-hover)}.secondary-button,.photo-picker.secondary{background:var(--brand-pale);color:var(--brand-navy)}.app-shell{background:#f4f6fb}.app-header{border-bottom:4px solid var(--brand-yellow)}.app-header h1,.section-heading h2,.detail-heading h2,.form-section-heading h3{color:var(--brand-ink)}.summary-card.accent,.route-number,.measure-toolbar button.active,.annotation-toolbar button.active{border-color:var(--brand-navy);background:var(--brand-navy)}.summary-card.accent{box-shadow:inset 0 4px 0 var(--brand-yellow), 0 10px 30px #233f9729}.summary-card.accent span,.summary-card.accent strong{color:#fff}.route-number,.measure-toolbar button.active{color:var(--brand-yellow)}.empty-icon,.protocol-index,.route-empty-state>span,.status,.measure-priority{background:var(--brand-pale);color:var(--brand-blue)}.protocol-row:focus-visible{outline-color:#fbbb1273}.back-button:hover{color:var(--brand-navy)}.selected-room-hint{background:var(--brand-pale);border-color:#cdd6f3}.selected-room-hint span{color:var(--brand-blue)}.destructive-primary{color:#fff;background:#b91c1c;box-shadow:0 8px 22px #b91c1c33}.destructive-primary:hover{background:#991b1b}.danger-eyebrow{color:#b91c1c}@media (width<=860px){.login-layout{grid-template-columns:1fr}.login-intro{padding:48px 28px 20px}.brand-mark{margin-bottom:24px}.login-intro h1{font-size:44px}.login-intro>p:last-child{font-size:16px}.login-card{margin:24px auto 48px}.summary-grid,.settings-grid{grid-template-columns:1fr}.protocol-row{grid-template-columns:48px 1fr}.status,.sync-state,.clarification-count{grid-column:2;width:fit-content}.route-section-item{grid-template-columns:42px minmax(0,1fr)}.route-section-actions{flex-wrap:wrap;grid-column:2;justify-content:flex-start}.room-heading,.equipment-list li,.measure-card,.contact-card,.document-card{flex-direction:column;align-items:flex-start}.document-card .route-section-actions,.contact-card .route-section-actions{width:100%}.pdf-thumbnail-button{width:100%;height:180px}}@media (width<=620px){.app-header,.section-heading{flex-direction:column;align-items:flex-start}.header-actions{flex-wrap:wrap;justify-content:flex-start;align-items:stretch;width:100%}.header-actions .ghost-button{flex:1}.connection-pill,.section-actions{width:100%}.section-actions button{flex:1}.content-card,.modal-card,.detail-card{padding:20px}.pdf-preview-backdrop{padding:8px}.pdf-preview-modal{border-radius:16px;width:100%;height:calc(100vh - 16px);max-height:none;padding:14px}.pdf-preview-modal .modal-actions{flex-direction:column-reverse}.pdf-preview-modal .modal-actions>*{width:100%}.form-section-heading,.save-bar{flex-direction:column;align-items:flex-start}.route-section-heading-actions{justify-content:space-between;width:100%}.route-summary{grid-template-columns:1fr}.route-section-item{align-items:start}.route-section-actions{grid-column:1/-1}.route-section-actions .text-button,.route-section-actions .danger-button{flex:1}.save-bar{bottom:8px}.save-bar .section-actions{width:100%}.save-bar .section-actions button{flex:1}.form-grid,.settings-form-grid{grid-template-columns:1fr}.full-width,.settings-form-grid .full-width{grid-column:auto}.session-settings,.settings-facts>div{flex-direction:column;align-items:flex-start}.settings-facts dd{text-align:left}.session-settings .secondary-button{width:100%}.protocol-map{min-height:380px}}:root{--tp-navy:#0f1638;--tp-navy-deep:#0b1130;--tp-navy-soft:#141c46;--tp-blue:#2d4da8;--tp-yellow:#fbbb12;--tp-surface:#f7f8fb;--tp-line:#dfe4ef;--tp-muted:#75809d;--tp-green:#43c883;--brand-navy:var(--tp-navy);--brand-blue:var(--tp-blue);--brand-yellow:var(--tp-yellow);--brand-ink:var(--tp-navy);background:var(--tp-surface);color:var(--tp-navy)}body{background:var(--tp-navy)}h1,h2,h3,h4,strong{letter-spacing:-.018em}.eyebrow{color:#8490b2;letter-spacing:.16em;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:10.5px;font-weight:700}.login-layout{background:var(--tp-navy-deep);grid-template-columns:minmax(0,1.55fr) minmax(430px,1fr)}.login-intro{justify-content:center;padding:clamp(52px,5vw,76px);position:relative}.brand-lockup{color:#fff;align-items:center;gap:12px;display:flex;position:absolute;top:clamp(38px,5vw,60px);left:clamp(52px,5vw,76px)}.brand-lockup strong{font-size:16px}.brand-mark,.app-brand-mark{background:var(--tp-yellow);width:42px;height:42px;color:var(--tp-navy-deep);box-shadow:none;border:0;border-radius:12px;place-items:center;font-size:18px;font-weight:900;display:grid}.login-intro .brand-mark{margin:0}.login-intro .eyebrow{color:#818fc5}.login-intro h1{color:#fff;max-width:650px;margin-bottom:26px;font-size:clamp(54px,5.1vw,76px);line-height:.98}.login-intro>p:last-child{color:#aab4d9;max-width:580px;font-size:18px;line-height:1.55}.login-card{width:100%;box-shadow:none;background:#121a42;border-radius:28px 0 0 28px;flex-direction:column;justify-content:center;align-self:stretch;margin:0;padding:clamp(48px,8vw,110px) clamp(48px,4vw,76px);display:flex}.login-card h2{color:#fff;margin-bottom:34px;font-size:34px}.login-card label{color:#aab4d9;font-weight:600}.login-card input{color:#fff;background:#18224f;border-color:#2a376f;min-height:54px}.login-card input:focus{border-color:#6d7ab5;box-shadow:0 0 0 4px #6d7ab529}.login-card .primary-button{min-height:54px;color:var(--tp-navy-deep);margin-top:6px}.login-card .form-hint{color:#6d7ab5;text-align:left}.app-shell{background:var(--tp-surface);border-radius:0 24px 24px 0;grid-template-rows:auto 1fr;grid-template-columns:220px minmax(0,1fr);min-height:100vh;display:grid;overflow:clip}.app-header{z-index:12;background:var(--tp-navy-deep);border:0;flex-direction:column;grid-area:1/1/3;justify-content:flex-start;align-items:stretch;gap:28px;min-height:100vh;padding:24px 18px;position:sticky;top:0}.app-brand{color:#fff;align-items:center;gap:12px;display:flex}.app-brand-mark{border-radius:11px;width:38px;height:38px;font-size:16px}.app-brand strong,.app-brand small{display:block}.app-brand strong{font-size:14px}.app-brand small{color:#6d7ab5;margin-top:3px;font-size:10px}.app-context{border-top:1px solid #1e2858;border-bottom:1px solid #1e2858;padding:18px 12px}.app-context .eyebrow{color:#6d7ab5;margin-bottom:5px}.app-header h1{color:#fff;font-size:24px}.header-actions{flex-direction:column;flex:1;align-items:stretch}.header-actions .ghost-button{color:#aab4d9;text-align:left;justify-content:flex-start;padding:0 13px}.header-actions .ghost-button:hover,.settings-button[aria-current=page]{color:#fff;background:#1c285c}.connection-pill{background:var(--tp-navy-soft);color:#aab4d9;border-radius:12px;margin-bottom:auto}.offline-banner{color:#785500;background:#fff9e9;border-bottom:1px solid #e8c96e;grid-column:2;padding:10px 30px}.dashboard{grid-column:2;width:100%;max-width:1500px;margin:0 auto;padding:30px clamp(24px,3vw,44px) 72px}.cockpit-heading{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px;display:flex}.cockpit-heading h2{color:var(--tp-navy);margin:0;font-size:clamp(30px,3vw,42px)}.primary-button{background:var(--tp-yellow);color:var(--tp-navy-deep);box-shadow:none;border-radius:13px}.primary-button:hover{background:#eeb000}.secondary-button{color:var(--tp-blue);background:#fff;border:1px solid #d2d9e9;border-radius:13px}input,select,textarea{border-color:#d2d9e9;border-radius:12px}input:focus,select:focus,textarea:focus{border-color:var(--tp-blue);box-shadow:0 0 0 4px #2d4da81c}.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.summary-card,.content-card,.detail-card{border-color:var(--tp-line);box-shadow:none}.summary-card{border-radius:17px;min-height:112px;padding:18px 20px}.summary-card strong{color:var(--tp-navy);font-size:30px}.summary-card.accent{border-color:var(--tp-navy);background:var(--tp-navy);box-shadow:none}.summary-card.accent:before{background:var(--tp-yellow);content:"";border-radius:999px;width:38px;height:4px}.content-card{border-radius:19px;padding:24px}.protocol-row{border-color:var(--tp-line);border-radius:15px}.protocol-row:hover{border-color:#b8c2de;box-shadow:0 8px 20px #0f163812}.protocol-index,.route-number{background:var(--tp-navy);color:#fff}.status{color:var(--tp-blue);background:#eef1fb}.clarification-count{color:#805b00;background:#fff4d2}.detail-mode .dashboard{max-width:1260px}.protocol-detail{gap:14px}.detail-heading{border-bottom:1px solid var(--tp-line);background:#fff;margin:-30px calc(-1*clamp(24px,3vw,44px)) 8px;padding:24px clamp(24px,3vw,44px) 20px}.detail-heading h2{font-size:clamp(28px,3vw,38px)}.back-button{color:var(--tp-blue)}.detail-card{border-radius:18px;padding:24px}.form-section-heading h3{color:var(--tp-navy)}.status-workflow-card{border-color:var(--tp-navy);background:var(--tp-navy);color:#fff}.status-workflow-card h3,.status-workflow-card .status-history strong{color:#fff}.status-workflow-card .eyebrow,.status-workflow-card .status-history summary,.status-workflow-card .status-history li span,.status-workflow-card .final-lock-note,.status-workflow-card .status-transition-actions>span{color:#aab4d9}.status-workflow-card .status{color:var(--tp-yellow);background:#20295c}.pdf-download-block{background:#fff;border-color:#dfe4ef;border-radius:16px}.room-card,.route-summary>div,.endpoint-editor,.annotation-toolbar{background:var(--tp-surface);border-color:#e3e7f0}.measure-toolbar button.active,.annotation-toolbar button.active{background:var(--tp-navy);color:#fff}.save-bar{border-color:#d6dce9;border-radius:16px;box-shadow:0 14px 36px #0f16381f}.modal-backdrop{background:#070c23ad}.modal-card{border:1px solid #e0e5ef;border-radius:20px}@media (width<=980px){.app-shell{grid-template-columns:184px minmax(0,1fr)}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.protocol-row{grid-template-columns:48px minmax(160px,1fr) auto}.protocol-row .clarification-count,.protocol-row .sync-state{grid-column:2/-1}}@media (width<=760px){.login-layout{grid-template-columns:1fr}.login-intro{min-height:430px;padding:110px 28px 48px}.brand-lockup{top:30px;left:28px}.login-intro h1{font-size:46px}.login-card{border-radius:24px 24px 0 0;padding:48px 28px}.app-shell{border-radius:0;display:block}.app-header{flex-direction:row;align-items:center;gap:16px;min-height:auto;padding:16px 18px;position:static}.app-context{display:none}.app-brand{margin-right:auto}.app-brand small{display:none}.header-actions{flex-direction:row;flex:0 auto}.connection-pill{margin:0}.header-actions .ghost-button{min-height:40px;padding:0 10px;font-size:0}.header-actions .settings-button{font-size:12px}.offline-banner,.dashboard{grid-column:auto}.dashboard{padding:24px 18px 64px}.cockpit-heading{flex-direction:column;align-items:flex-start}.detail-heading{margin:-24px -18px 8px;padding:22px 18px 18px}}@media (width<=540px){.summary-grid{grid-template-columns:1fr}.cockpit-heading .primary-button,.cockpit-heading,.section-actions{width:100%}.protocol-row{grid-template-columns:42px minmax(0,1fr)}.protocol-row .status,.protocol-row .clarification-count,.protocol-row .sync-state{grid-column:2}}
