:root{color-scheme:dark;font-family:Poppins,Segoe UI,sans-serif;background:#151514;color:#f7f2e9;--bg-dark: #151514;--bg-panel: #202121;--bg-cream: #f3eee5;--text-main: #f7f2e9;--text-dim: rgba(247, 242, 233, .72);--brand: #ca2128;--brand-strong: #9f1218;--brand-dim: rgba(202, 33, 40, .18);--line: rgba(255, 255, 255, .08);--success: #2f7c5e;--success-bg: rgba(47, 124, 94, .15);--warning: #b57b2a;--warning-bg: rgba(181, 123, 42, .15);--error: #ff9fa3;--error-bg: rgba(202, 33, 40, .15);--radius-xl: 20px;--radius-lg: 15px;--radius-md: 11px;--shadow-soft: 0 14px 36px rgba(0, 0, 0, .18)}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{background:radial-gradient(circle at top right,rgba(202,33,40,.12),transparent 26%),linear-gradient(180deg,#151514,#1d1e1e);color:var(--text-main)}button,input,textarea,select{font:inherit}button,input,textarea,select,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}.app-shell,.login-layout{width:min(1160px,calc(100vw - 22px));margin:0 auto}.brand-lockup{display:grid;gap:4px}.topbar{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:14px 0 10px}.topbar h1,.hero-panel h1,.auth-panel h2,.section-card h2,.section-card h3,.section-card h4{margin:0}.topbar h1{font-size:1.28rem;line-height:1}.eyebrow{margin:0 0 8px;color:#f7f2e9cc;font-size:.7rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}.topbar-actions,.summary-list,.inspection-meta,.item-flags,.attachment-row,.toggle-group{display:flex;gap:12px;flex-wrap:wrap}.app-main{padding:0 0 88px}.page-grid,.detail-layout{display:grid;gap:12px}.detail-layout{grid-template-columns:minmax(280px,320px) minmax(0,1fr);align-items:start}.summary-panel{position:sticky;top:16px}.section-card,.hero-panel,.auth-panel .section-card,.inspection-card{border:1px solid var(--line);border-radius:var(--radius-xl);background:#0b0d10b8;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:var(--shadow-soft)}.section-card,.hero-panel{padding:16px}.hero-panel,.auth-panel{min-height:calc(100vh - 88px)}.login-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(360px,.7fr);gap:16px;padding:12px 0 18px}.hero-panel{display:flex;flex-direction:column;gap:16px;justify-content:space-between;background:radial-gradient(circle at top right,rgba(202,33,40,.22),transparent 32%),linear-gradient(180deg,#202121e0,#151514f5)}.hero-intro{display:grid;gap:8px}.muted{color:var(--text-dim)}.hero-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.metric-card,.status-card,.checklist-item{border:1px solid rgba(255,255,255,.08);border-radius:var(--radius-lg);background:#ffffff0a}.metric-card{padding:12px;display:grid;gap:4px}.metric-card strong{font-size:.98rem}.auth-panel{display:flex;align-items:center}.auth-card,.auth-form,.auth-card-head,.form-stack,.item-stack,.form-sections{display:grid;gap:10px}.field{display:grid;gap:6px}.checkbox-field{grid-template-columns:auto 1fr;align-items:center;gap:10px}.checkbox-field input{width:18px;height:18px;margin:0}.input,.field input,.textarea,select{width:100%;border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-md);background:#f3eee5f5;color:#151514;padding:11px 13px}.textarea{resize:vertical;min-height:88px}.textarea-note{min-height:58px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:0;border-radius:999px;background:linear-gradient(180deg,#ca2128,#9f1218);color:#fff;padding:10px 14px;cursor:pointer;font-weight:600;font-size:.92rem;min-height:40px;touch-action:manipulation}.button-small{padding:8px 12px;font-size:.84rem}.button-block{width:100%}.button-segment{flex:1 1 0;min-height:44px}.toggle-group-split{margin-bottom:12px}.button:disabled{opacity:.55;cursor:not-allowed}.button-ghost{background:transparent;border:1px solid rgba(255,255,255,.16)}.status-card{padding:12px 13px}.pill,.status-badge{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#ffffff14;color:var(--text-main);font-size:.78rem;font-weight:600}.section-header-stack,.section-title-block,.summary-topline,.inspection-meta-grid,.attachment-list-wrap,.mobile-action-meta,.inspection-overview,.section-rail,.progress-foot,.section-stage-head,.section-stage-copy,.section-stage-nav,.item-order{display:grid;gap:8px}.section-header-stack{align-items:stretch}.summary-list-grid{display:grid;gap:5px}.inspection-overview{grid-template-columns:78px minmax(0,1fr);align-items:center}.progress-donut{width:78px;height:78px;border-radius:50%;padding:7px;background:radial-gradient(circle at center,rgba(11,13,16,.88) 58%,transparent 59%),conic-gradient(#ca2128 0 var(--progress, 0%),rgba(255,255,255,.1) var(--progress, 0%) 100%);display:grid;place-items:center}.progress-donut-core{width:100%;height:100%;border-radius:50%;background:#0b0d10f5;border:1px solid rgba(255,255,255,.08);display:grid;place-items:center;text-align:center}.progress-donut-core strong{font-size:1rem;line-height:1}.progress-donut-core span{color:var(--text-dim);font-size:.8rem}.compact-metric{padding:10px}.compact-metric strong{font-size:.92rem;line-height:1.2}.status-assigned{background:#b57b2a38}.status-in-progress{background:#2f7c5e38}.status-submitted,.status-exported{background:#ca212838}.section-header,.inspection-card-header,.item-heading{display:flex;justify-content:space-between;align-items:start;gap:10px}.list-actions,.form-actions{display:flex;gap:8px;flex-wrap:wrap}.list-actions{width:100%}.list-actions>*{flex:1 1 0}.form-actions{justify-content:space-between}.compact-status{padding:10px 12px}.inspection-list{display:grid;gap:12px;margin-top:12px}.inspection-card{padding:14px;transition:transform .2s ease,border-color .2s ease}.inspection-card:hover{transform:translateY(-2px);border-color:#ca212873}.progress-block{display:grid;gap:8px;margin-top:10px}.progress-foot{grid-template-columns:1fr auto;align-items:center;color:var(--text-dim);font-size:.82rem}.progress-bar{height:7px;border-radius:999px;background:#ffffff14;overflow:hidden}.progress-bar span{display:block;height:100%;background:linear-gradient(90deg,#ca2128,#f27046);border-radius:inherit}.checklist-item{padding:12px;display:grid;gap:10px;background:linear-gradient(180deg,#ffffff0b,#ffffff08),#ffffff08}.toggle-group-split{width:100%}.file-button{position:relative;overflow:hidden}.file-button input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.attachment-preview-grid{grid-template-columns:repeat(auto-fit,minmax(74px,74px))}.attachment-thumb{width:74px;height:74px;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:#ffffff0f;cursor:pointer}.attachment-thumb img{width:100%;height:100%;object-fit:cover;display:block}.attachment-thumb-empty{display:grid;place-items:center;color:var(--text-dim);font-size:.72rem}.attachment-fallback{max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.back-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:#ffffff0f;color:#fff;font-weight:700;letter-spacing:.01em;text-decoration:none;box-shadow:0 6px 18px #00000029;transition:transform .15s ease,background .15s ease,border-color .15s ease}.back-link:hover,.back-link:focus-visible{background:#ffffff1c;border-color:#ffffff47;transform:translateY(-1px)}.section-rail{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.section-rail-steps{position:static}.section-chip{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:#0b0d1099;color:var(--text-main);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.section-chip span{flex:0 0 auto;width:20px;height:20px;border-radius:999px;display:inline-grid;place-items:center;background:#ca212838;font-size:.74rem;font-weight:700}.section-chip-active{border-color:#ca212873;background:#ca212824}.section-sheet{scroll-margin-top:20px}.section-stage-head{grid-template-columns:1fr auto;align-items:center;padding-bottom:10px;margin-bottom:4px;border-bottom:1px solid rgba(255,255,255,.08)}.section-stage-stats{color:var(--text-dim);font-size:.82rem}.item-order{grid-template-columns:auto 1fr;align-items:start}.item-order-index{width:24px;height:24px;display:inline-grid;place-items:center;border-radius:999px;background:#ffffff14;color:var(--text-main);font-size:.72rem;font-weight:700}.section-stage-nav{grid-template-columns:1fr 1fr;margin-top:16px}.mobile-action-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;align-items:center;gap:10px;padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px));background:#0b0d10f0;border-top:1px solid rgba(255,255,255,.08);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.attachment-row{margin-top:10px}.ai-panel{margin-top:12px}.preview-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;border:0;padding:12px;background:#000000c7;display:grid;place-items:center}.preview-modal-frame{width:min(100%,960px);height:min(100%,calc(100dvh - 24px));display:grid;grid-template-rows:auto 1fr;gap:12px}.preview-modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:16px;background:#0b0d10f0;border:1px solid rgba(255,255,255,.08)}.preview-modal-title{color:#f7f2e9;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-modal-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.preview-modal-frame img{width:100%;max-height:100%;object-fit:contain;border-radius:16px;background:#0b0d10f0}.preview-modal-pdf{width:100%;height:100%;min-height:0;border:0;border-radius:16px;background:#0b0d10f0}.preview-modal-caption{color:#f7f2e9;text-align:center;font-size:.86rem}.pdf-viewer{min-height:calc(100dvh - 88px);display:grid;gap:14px;padding-bottom:24px}.pdf-viewer-toolbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;gap:14px;padding:14px 0 10px;background:linear-gradient(180deg,#151514fa,#151514eb);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.pdf-viewer-toolbar-main{display:flex;align-items:flex-start;gap:12px;min-width:0}.pdf-viewer-toolbar-main h2{margin:0}.pdf-viewer-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.pdf-viewer-content{display:grid;gap:14px}.pdf-viewer-state{padding:18px;border-radius:16px;background:#ffffff0a;border:1px solid rgba(255,255,255,.08)}.pdf-viewer-error{color:#ffb5b8}.pdf-page-shell{display:grid;gap:8px;justify-items:center;padding:14px;border-radius:18px;background:#ffffff0a;border:1px solid rgba(255,255,255,.08)}.pdf-page-canvas{max-width:100%;height:auto;border-radius:12px;background:#fff}.pdf-page-number{color:var(--text-dim);font-size:.84rem}.mobile-action-meta{min-width:88px;color:var(--text-dim)}.mobile-action-meta strong{display:block;color:var(--text-main);font-size:.96rem}.error-text{color:#ff9fa3;margin:0}@media (max-width: 1024px){.login-layout,.detail-layout{grid-template-columns:1fr}.hero-panel,.auth-panel{min-height:auto}.summary-panel{position:static}.inspection-overview{grid-template-columns:88px minmax(0,1fr)}.progress-donut{width:88px;height:88px}}@media (max-width: 720px){.app-shell,.login-layout{width:min(100vw - 14px,100%)}.topbar{flex-direction:column;gap:8px;padding:10px 0 8px}.hero-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-card,.hero-panel,.inspection-card{padding:13px;border-radius:16px}.hero-panel,.auth-panel{min-height:auto}.login-layout{gap:10px;padding:8px 0 14px}.hero-panel h1{font-size:1.4rem;line-height:1.04}.topbar h1,.section-card h2{font-size:1.08rem}.section-card h3{font-size:.98rem}.section-card h4{font-size:.93rem}.topbar-actions{width:100%;align-items:stretch}.topbar-actions>*{width:100%}.button,.pdf-download-btn{padding:8px 12px;font-size:.85rem}.button,.pdf-download-btn,.topbar-icon-link,.topbar-install-button{min-height:38px}.topbar-icon-link{width:36px;height:36px}.section-header,.inspection-card-header,.item-heading{flex-direction:column;align-items:stretch}.inspection-meta-grid{grid-template-columns:1fr;gap:8px}.inspection-overview{grid-template-columns:1fr}.progress-donut{width:72px;height:72px}.toggle-group-split{display:grid;grid-template-columns:1fr 1fr}.button-block-mobile{width:100%;justify-content:center}.list-actions,.form-actions,.pdf-viewer-toolbar-actions,.preview-modal-actions{width:100%;flex-direction:column}.list-actions>*,.form-actions>*,.pdf-viewer-toolbar-actions>*,.preview-modal-actions>*{width:100%}.attachment-row{display:grid;gap:8px}.attachment-preview-grid{grid-template-columns:repeat(auto-fit,minmax(66px,66px))}.attachment-thumb{width:66px;height:66px}.item-flags{gap:6px}.summary-topline{grid-template-columns:1fr auto;align-items:center}.detail-layout{gap:10px}.mobile-summary{gap:8px}.section-rail,.section-stage-head,.item-order,.section-stage-nav{grid-template-columns:1fr}.pdf-viewer-toolbar,.pdf-viewer-toolbar-main{flex-direction:column;align-items:stretch}}@media (max-width: 480px){.hero-grid{grid-template-columns:1fr}.app-main{padding-bottom:104px}.mobile-action-bar{align-items:stretch;flex-direction:column}.mobile-action-meta{min-width:0;display:flex;justify-content:space-between;align-items:baseline}.metric-card strong{font-size:1rem}.button,.pdf-download-btn{width:100%}}.ai-panel{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem;padding:.75rem;border:1px solid var(--line);border-radius:var(--radius-md);background:#ffffff08}.ai-panel-label{font-size:.72rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text-dim);margin:0 0 .25rem}.ai-evaluation-panel{border-left:3px solid var(--brand)}.ai-evaluation-body{display:flex;flex-direction:column;gap:.5rem;padding-top:.5rem;white-space:pre-wrap;font-size:.9rem;line-height:1.6}.ai-evaluation-body h4{font-size:1rem;font-weight:600;margin:.75rem 0 .25rem;border-bottom:1px solid var(--line);padding-bottom:.25rem}.ai-evaluation-body h5{font-size:.9rem;font-weight:600;margin:.5rem 0 .1rem}.ai-evaluation-body p,.ai-evaluation-body .ai-list-item{margin:0}.ai-evaluation-body .ai-list-item{padding-left:1rem}.vis-section{margin-bottom:1.5rem}.vis-label{font-size:.9rem;font-weight:600;margin-bottom:.75rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:.04em}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem}.photo-grid-item{position:relative;border:2px solid var(--line);border-radius:8px;overflow:hidden;cursor:pointer;background:#ffffff0a;padding:0;text-align:left;transition:border-color .15s,box-shadow .15s}.photo-grid-item:hover{border-color:var(--brand)}.photo-grid-item-selected{border-color:var(--brand);box-shadow:0 0 0 3px #ca212833}.photo-grid-item img{width:100%;height:100px;object-fit:cover;display:block}.photo-grid-placeholder{width:100%;height:100px;display:flex;align-items:center;justify-content:center;background:#ffffff14;font-size:.75rem;color:var(--text-dim);padding:.5rem;text-align:center}.photo-grid-caption{font-size:.7rem;color:var(--text-dim);padding:4px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-grid-check{position:absolute;top:6px;right:6px;background:var(--brand);color:#fff;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700}.settings-current{background:#ffffff0a;border:1px solid var(--line);border-radius:var(--radius-md);padding:1rem;margin-bottom:1rem}.settings-meta-grid{display:grid;grid-template-columns:max-content 1fr;gap:4px 16px;margin-top:.5rem;font-size:.875rem}.settings-meta-grid .label{font-weight:600;color:var(--text-dim)}.settings-meta-grid code{font-family:monospace;font-size:.8rem;background:#ffffff14;color:var(--text-main);padding:1px 6px;border-radius:4px;word-break:break-all}.settings-form{display:flex;flex-direction:column;gap:1rem}.form-group{display:flex;flex-direction:column;gap:.35rem}.form-label{font-size:.875rem;font-weight:600}.summary-field{font-size:.875rem;display:flex;gap:.25rem;align-items:baseline}.summary-note{font-size:.85rem;font-style:italic;margin:0;color:var(--text-dim);padding:.5rem .75rem;border-left:2px solid var(--line)}.required-missing-pill{display:inline-flex;align-items:center;gap:4px;color:var(--error);font-size:.78rem;font-weight:600;background:var(--error-bg);padding:3px 9px;border-radius:999px;border:1px solid rgba(202,33,40,.4)}.section-chip-done{border-color:#2f7c5e73}.section-chip-done span{background:#2f7c5e4d}.pdf-download-btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:0;border-radius:999px;background:linear-gradient(180deg,#2f7c5e,#1e5c45);color:#fff;padding:10px 14px;cursor:pointer;font-weight:600;font-size:.92rem;width:100%;min-height:40px;touch-action:manipulation}.list-stats-bar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:4px}.stat-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:999px;border:1px solid var(--line);background:#ffffff0a;font-size:.78rem;color:var(--text-dim)}.stat-chip strong{color:var(--text-main);font-size:.88rem}.item-help-text{font-size:.8rem;color:var(--text-dim);margin:0;line-height:1.5}.section-description{font-size:.84rem;color:var(--text-dim);margin:0;line-height:1.5}.topbar-subtitle{display:block;font-size:.7rem;color:var(--text-dim);font-weight:400;letter-spacing:.04em;margin-top:2px}.topbar-icon-link{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:999px;border:1px solid rgba(255,255,255,.16);font-size:1.1rem;color:var(--text-main);background:transparent;cursor:pointer;text-decoration:none}.topbar-install-button{min-height:38px;padding:0 12px}.install-panel{display:grid;gap:10px;padding:12px 13px;border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-lg);background:#ffffff0a}.install-panel-compact{padding:8px 10px;align-items:center;grid-auto-flow:column;grid-template-columns:auto auto}.install-panel-copy{display:grid;gap:2px}.install-panel-copy strong{font-size:.9rem}.install-panel-copy span,.install-panel-hint{font-size:.8rem;color:var(--text-dim)}.install-panel-button{width:fit-content}input[type=datetime-local],input[type=date],input[type=time],.input-datetime{display:block;width:100%;min-width:0;max-width:100%;height:46px;min-height:46px;line-height:1.2;box-sizing:border-box;-moz-appearance:none;appearance:none;-webkit-appearance:none}.field-label{font-size:.875rem;font-weight:600;color:var(--text-dim)}.field-required{color:var(--brand)}.contact-preview{display:flex;gap:.5rem;align-items:baseline;padding:8px 12px;background:#ffffff0a;border:1px solid var(--line);border-radius:var(--radius-md);font-size:.875rem}.status-card-error{border-color:#ca212859;background:var(--error-bg);color:var(--error)}.status-card-warning{border-color:#f59e0b59;background:#f59e0b1f;color:#fde68a}.inspection-card-title{display:flex;flex-direction:column;gap:3px;min-width:0}.inspection-date{font-size:.8rem;color:var(--text-dim)}.meta-item{font-size:.84rem}.meta-item-dim{color:var(--text-dim)}.stat-chip-progress{border-color:#2f7c5e59;color:#5db896}.stat-chip-progress strong{color:#5db896}.checklist-item-done{border-color:#2f7c5e4d}.button-yes{background:linear-gradient(180deg,#2f7c5e,#1e5c45);border-color:transparent}.button-no{background:linear-gradient(180deg,#9f1218,#7a0d12);border-color:transparent}.section-stage-count{font-size:1.1rem;font-weight:700;color:var(--text-main)}.pill-required{background:var(--error-bg);color:var(--error);border:1px solid rgba(202,33,40,.3);font-size:.7rem}.pill-photo{background:#ffffff0f;font-size:.85rem;padding:4px 7px}.saving-hint{font-size:.78rem;margin:0}.hero-desc{margin:0;font-size:.95rem;line-height:1.6;max-width:420px}.hero-features{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.hero-feature-item{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:var(--radius-md);background:#ffffff08;font-size:.9rem}.hero-feature-icon{font-size:1.3rem}.server-config-stack{padding:12px;border:1px solid var(--line);border-radius:var(--radius-md);background:#ffffff06;gap:8px!important}.field select,.field input[type=datetime-local],.field input[type=date]{color-scheme:light;min-width:0;max-width:100%;width:100%;height:46px}.field input[type=datetime-local]::-webkit-calendar-picker-indicator,.field input[type=date]::-webkit-calendar-picker-indicator,.field input[type=time]::-webkit-calendar-picker-indicator{margin:0}
