/* Help and exit protection are separate dialogs; open inspection forms stay mounted. */
.guide-open-entry{width:100%;min-height:46px;margin-top:12px;border:1px solid #bfc7ba;border-radius:9px;background:#fafaf5;color:#26322e;font-size:14px;font-weight:700;cursor:pointer}
.login-form select{width:100%;min-width:0;min-height:48px;padding:11px 13px;border:1px solid #cbd2c5;border-radius:8px;background:#fff;color:#26322e;font:inherit;font-size:16px}
.inspection-unit-create{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;margin:0 0 16px}
.inspection-unit-create button{min-height:44px}
.guide-modal{display:none;width:min(900px,calc(100% - 24px));height:min(810px,calc(100dvh - 24px));max-width:900px;max-height:calc(100dvh - 24px);padding:0;margin:auto;border:1px solid #bfc5b7;border-radius:18px;color:#26322e;background:#f6f5ee;box-shadow:0 24px 90px #16231c55;overflow:hidden}
.guide-modal[open]{display:flex;flex-direction:column}
.guide-modal::backdrop,.exit-warning::backdrop{background:#101b18a6;backdrop-filter:blur(3px)}
.guide-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:20px 24px;background:#fff;border-bottom:1px solid #dcdfd4}
.guide-header small{display:block;margin-bottom:3px;font-size:12px;color:#687162}
.guide-header h2{margin:0;font-size:23px;letter-spacing:-.8px}
.guide-header button{min-width:54px;min-height:44px;border:1px solid #d5dace;background:#fff;border-radius:8px;font-size:14px;color:#38423b;cursor:pointer}
.guide-steps{display:flex;gap:6px;flex:none;padding:12px 16px;overflow:auto;overscroll-behavior:contain;border-bottom:1px solid #dcdfd4;background:#f1f1e7}
.guide-steps button{flex:1 0 auto;min-height:43px;padding:8px 11px;border:1px solid transparent;border-radius:8px;color:#56604f;background:transparent;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}
.guide-steps b{margin-right:3px;font-size:12px}
.guide-steps button.active{border-color:#b29636;background:#f2c230;color:#302b19}
.guide-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:26px;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:22px 28px}
.guide-visual{min-width:0;text-align:center}
.guide-drawing{display:block;width:100%;max-width:360px;height:auto;margin:0 auto;overflow:visible}
.guide-instructions{min-width:0}
.guide-step-number{display:inline-block;margin-bottom:10px;font-size:12px;font-weight:800;letter-spacing:1.5px;color:#7d6515}
.guide-instructions h3{margin:0 0 14px;font-size:27px;line-height:1.35;letter-spacing:-1.1px;word-break:keep-all;overflow-wrap:anywhere}
.guide-lead{margin:0 0 19px;font-size:16px;line-height:1.7;color:#374239;word-break:keep-all;overflow-wrap:anywhere}
.guide-instructions ol{margin:0 0 22px;padding-left:23px}
.guide-instructions li{padding-left:3px;margin:10px 0;font-size:14px;line-height:1.7;color:#465043;word-break:keep-all;overflow-wrap:anywhere}
.guide-instructions li::marker{font-weight:800;color:#7c6721}
.guide-note{padding:14px 15px;border-left:3px solid #c09a23;border-radius:0 8px 8px 0;background:#eeeddf;color:#515b4d;font-size:13px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
.guide-example-note{display:block;margin-top:16px;font-size:11px;line-height:1.5;color:#72796b}
.guide-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:none;padding:14px 22px calc(14px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #dcdfd4}
.guide-footer button{min-width:94px;min-height:46px;padding:10px 17px;border:1px solid #c9d0c1;border-radius:9px;background:#fff;color:#344031;font-size:14px;font-weight:700;cursor:pointer}
.guide-footer [data-guide-next]{background:#26322e;border-color:#26322e;color:#fff}
.guide-footer button:disabled{opacity:.4;cursor:default}
.guide-page{color:#747c6d;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.guide-modal button:focus-visible,.exit-warning button:focus-visible,.guide-open-entry:focus-visible{outline:3px solid #c49b18;outline-offset:2px}
.exit-warning{display:none;width:min(440px,calc(100% - 32px));max-width:440px;padding:27px;border:1px solid #c7cdbf;border-radius:17px;background:#fbfbf6;color:#26322e;box-shadow:0 24px 90px #14211d55}
.exit-warning[open]{display:block}
.exit-warning-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#f2c230;color:#403617;font-weight:900;font-size:24px;margin-bottom:15px}
.exit-warning h2{font-size:22px;line-height:1.55;letter-spacing:-.7px;margin:0 0 12px;word-break:keep-all;overflow-wrap:anywhere}
.exit-warning p{font-size:13px;line-height:1.65;color:#65705f;margin:0 0 16px;word-break:keep-all;overflow-wrap:anywhere}
.exit-warning #exit-warning-note:empty{display:none}
.exit-warning-actions{display:flex;gap:10px;margin-top:22px}
.exit-warning-actions button{flex:1;min-height:46px;border:1px solid #c8d0bf;border-radius:9px;font-size:15px;font-weight:700;cursor:pointer;background:#fff;color:#37432f}
.exit-warning-actions [data-exit-stay]{background:#26322e;color:#fff;border-color:#26322e}
.exit-warning-actions button:disabled{opacity:.5;cursor:wait}
.record-thumb{position:relative}
.record-thumb .thumb-status{display:none;position:absolute;inset:0;padding:4px;align-items:center;justify-content:center;text-align:center;background:#e9e9de;color:#606957;font-size:11px;line-height:1.3;white-space:normal;word-break:keep-all}
.record-thumb[data-thumb-state="loading"] img,.record-thumb[data-thumb-state="error"] img{opacity:0}
.record-thumb[data-thumb-state="loading"] .thumb-status,.record-thumb[data-thumb-state="error"] .thumb-status{display:flex}
.record-thumb[data-thumb-state="error"] .thumb-status{background:#f3e9dd;color:#8b4b2b;font-weight:700}
.feed-head{flex-wrap:wrap}
.feed-photo-retry{margin-left:auto;padding:7px 10px;min-height:34px;max-width:100%;font-size:11px;font-weight:700;border:1px solid #bdab87;border-radius:7px;color:#70512a;background:#faf4e5;cursor:pointer}
.feed-photo-retry[hidden]{display:none!important}
@media(max-width:680px){
 .guide-modal{width:calc(100% - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:14px}
 .guide-header{padding:14px 16px}.guide-header h2{font-size:21px}.guide-header small{font-size:11px}
 .guide-steps{padding:9px 10px;gap:4px}.guide-steps button{flex:0 0 auto;padding:8px 11px}
 .guide-body{grid-template-columns:minmax(0,1fr);align-content:start;gap:18px;padding:14px 18px 24px}
 .guide-drawing{max-width:320px}.guide-instructions h3{font-size:23px;margin-bottom:10px}.guide-step-number{margin-bottom:7px}
 .guide-lead{font-size:15px;margin-bottom:12px}.guide-instructions li{font-size:14px;margin:8px 0}
 .guide-footer{padding:11px 13px calc(11px + env(safe-area-inset-bottom,0px));gap:8px}.guide-footer button{min-width:82px;font-size:13px;padding:10px 12px}
 .exit-warning{padding:23px}.exit-warning h2{font-size:20px}
}
@media print{.guide-modal,.exit-warning,[data-guide-open],.feed-photo-retry{display:none!important}}
