:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#20201f;background:#f3f2ee;font-size:16px;--ink: #171716;--yellow: #f4c430;--green: #16764a;--red: #ba2d2d;--amber: #aa6b00;--line: #d9d7cf}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{min-height:44px;border:1px solid var(--line);border-radius:9px;padding:.65rem .9rem;background:#fff;cursor:pointer}button:disabled{opacity:.5;cursor:default}button.primary{color:#111;background:var(--yellow);border-color:#d8aa16;font-weight:800}button.large{min-height:52px}button.quiet,.brand-button{color:#fff;background:transparent;border-color:#555}button.back{background:transparent;border:0;padding-left:0}button.danger-text,button.remove{color:var(--red)}.app-header{height:58px;padding:7px max(14px,env(safe-area-inset-left));background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:30}.app-header .brand-button{color:var(--yellow);font-weight:900}main{width:min(1100px,100%);margin:0 auto;padding:18px}main.narrow{width:min(640px,100%)}h1,h2,p{margin-top:0}h1{font-size:clamp(1.65rem,6vw,2.4rem)}h2{font-size:1.2rem}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:16px}.hero{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:14px 0 20px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-weight:800;font-size:.75rem;color:#6d685d}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.metrics article{min-height:96px;background:var(--ink);color:#fff;border-radius:12px;padding:14px;display:flex;flex-direction:column;justify-content:space-between}.metrics strong,.metrics .score{font-size:1.6rem}.metrics span:last-child{color:#cbc8be;font-size:.85rem}.score{border-radius:999px;padding:.2rem .55rem;display:inline-block;font-weight:900;width:max-content}.score.green{color:#eafff3;background:var(--green)}.score.amber{color:#fff7df;background:var(--amber)}.score.red{color:#fff0f0;background:var(--red)}.score.neutral{color:#444;background:#e3e1dc}.section-title,.history article,.history-action,.checkpoint-title,.audit-context>div,.config-head,.parameter-scores>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h2{margin:0}.history article{padding:14px 0;border-top:1px solid var(--line)}.history article:first-child{border-top:0}.history article>div:first-child{display:grid;gap:3px}.history small,.history span,.muted{color:#6c6961}.status{padding:.25rem .5rem;background:#ecebe6;border-radius:99px;text-transform:capitalize;font-size:.8rem}.status.in_progress{color:#674a00;background:#fff0bd}.status.completed{color:#075e38;background:#dff6e9}.form-grid{display:grid;gap:16px}label{display:grid;gap:7px;font-weight:700;font-size:.9rem}input,select,textarea{width:100%;min-height:48px;padding:.7rem;border:1px solid #aaa79e;border-radius:8px;background:#fff;color:#111}textarea{resize:vertical}.error{color:#7a1010;background:#ffe4e4;border:1px solid #e6a8a8;padding:12px;margin:12px 0;border-radius:8px}.access{max-width:440px;margin-top:10vh;text-align:center}.access form{display:grid;gap:14px;text-align:left}.brand-mark{margin:auto auto 16px;width:74px;height:74px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;font-size:1.5rem;font-weight:900}.audit-main{padding-top:0}.sticky-actions{position:sticky;top:58px;z-index:20;margin:0 -18px;padding:8px 18px;background:#f3f2eef2;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;gap:8px}.sticky-actions .save{margin-left:auto;color:#68645a;font-size:.82rem}.sticky-actions .failed{color:var(--red)}.audit-context{background:var(--ink);color:#fff;margin:0 -18px;padding:22px 18px 18px}.audit-context p{color:#ccc8bd;margin-bottom:8px}.audit-context h1{margin:0;font-size:1.6rem}progress{width:100%;height:10px;accent-color:var(--yellow)}.section-nav{display:flex;overflow-x:auto;gap:8px;padding:12px 0;scrollbar-width:thin}.section-nav button{flex:0 0 52px;font-weight:800}.section-nav button.selected{background:var(--yellow);border-color:#c99c0a}.checkpoints{display:grid;gap:12px}.checkpoint{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;break-inside:avoid}.checkpoint-title{margin-bottom:12px}.critical{color:#fff;background:var(--red);border-radius:4px;padding:.2rem .45rem;font-size:.75rem;text-transform:uppercase}.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0 14px}.segmented button{text-transform:capitalize;font-weight:900;min-height:52px}.segmented .active.pass{color:#fff;background:var(--green)}.segmented .active.fail{color:#fff;background:var(--red)}.segmented .active.na{color:#fff;background:#575757}.segmented .active.normal{color:#fff;background:#4b5563}.photos{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.photo{width:92px;height:92px;margin:0;position:relative}.photo img,.photo-loading{width:100%;height:100%;border-radius:8px;object-fit:cover;background:#ddd;display:grid;place-items:center;font-size:.7rem}.photo button{position:absolute;right:-6px;top:-6px;min-width:30px;min-height:30px;padding:0;color:#fff;background:var(--red);border:2px solid white;border-radius:50%}.upload{display:inline-flex;width:max-content;padding:.65rem .85rem;border:1px dashed #777;border-radius:8px;cursor:pointer}.upload input{display:none}.summary-actions{display:flex;justify-content:end;gap:8px;margin-bottom:14px}.report-head .score{font-size:2rem}.parameter-scores{display:grid;gap:9px}.findings article{padding:12px 0;border-top:1px solid var(--line);break-inside:avoid}.findings.prominent{border:2px solid var(--red)}.config-head{position:sticky;top:58px;z-index:15;padding:12px 0;background:#f3f2ee}.config-head h1,.config-head p{margin:0}.config-row{display:grid;grid-template-columns:minmax(320px,3fr) minmax(240px,1.5fr) 150px 34px;gap:9px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}.config-row .checkpoint-name{min-width:0}.outlet-scope{display:grid;gap:6px}.outlet-scope select{min-height:42px}.all-outlets{min-height:34px;padding:.35rem .6rem;font-size:.82rem}.outlet-chips{display:flex;flex-wrap:wrap;gap:5px}.scope-label,.scope-chip{color:#555149;background:#ecebe6;border-radius:5px;padding:.25rem .4rem;font-size:.75rem}.scope-chip{display:inline-flex;align-items:center;gap:4px}.scope-chip button{min-height:18px;width:18px;padding:0;border:0;color:var(--red);background:transparent;font-size:.9rem;line-height:1}.config-row small{display:none}.config-row>select{min-height:42px}.config-row .remove{min-height:28px;width:28px;padding:0;border:0;border-radius:50%;font-size:1rem;line-height:1}button.add{width:100%;margin-top:8px;border-style:dashed}@media(max-width:700px){main{padding:14px}.hero{align-items:stretch;flex-direction:column}.metrics{grid-template-columns:1fr 1fr}.history article{align-items:flex-start}.history-action{flex-direction:column;align-items:end}.sticky-actions{top:58px;margin:0 -14px;padding:8px;gap:5px}.sticky-actions button{padding:.55rem .58rem;font-size:.82rem}.audit-context{margin:0 -14px;padding-left:14px;padding-right:14px}.config-head{align-items:end}.config-head .large{max-width:155px}.config-row{grid-template-columns:1fr 34px;padding:14px 0}.config-row input,.config-row select,.config-row small,.config-row .segmented{grid-column:1}.config-row .remove{grid-column:2;grid-row:1}.config-row small{display:block}}@media print{:root,body{background:#fff}.no-print,.app-header{display:none!important}main{width:100%;padding:0}.panel{border:0;padding:8px 0}.photo{width:120px;height:120px}.findings article,.panel{break-inside:avoid}}
