:root{--ink:#2c1b14;--muted:#796a62;--green:#a94716;--green2:#c45a20;--mint:#fae9df;--cream:#f6eee8;--line:#e3d6ce;--orange:#d9682d}
*{box-sizing:border-box}html{background:#ebece7}body{margin:0;color:var(--ink);background:#f8f9f6;font-family:Arial,Helvetica,sans-serif}button,select,input,textarea{font:inherit}button{cursor:pointer}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1180px)/2))}.brand{display:flex;align-items:center;gap:12px}.brandmark{display:grid;place-items:center;width:38px;height:38px;background:var(--green);color:#fff;border-radius:10px;font:700 23px Georgia}.brand b,.brand small{display:block}.brand b{letter-spacing:-.2px}.brand small{font-size:11px;color:var(--muted);margin-top:3px}.offline{font-size:12px;font-weight:700;color:var(--green);display:flex;align-items:center;gap:8px}.offline span{width:8px;height:8px;border-radius:50%;background:#2eaa72;box-shadow:0 0 0 4px #dff3e9}.hero{background:var(--cream);border-bottom:1px solid #e1ded2;padding:52px max(28px,calc((100vw - 1180px)/2)) 60px;display:flex;justify-content:space-between;align-items:flex-end;gap:32px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2.2px;color:var(--orange);margin:0 0 16px}.hero h1{font:500 clamp(36px,5vw,58px)/.98 Georgia,serif;letter-spacing:-2.5px;margin:0}.hero h1 em{font-weight:400;color:var(--green)}.lede{color:#667169;max-width:560px;line-height:1.6;margin:20px 0 0}.newButton,.empty button{border:0;background:var(--green);color:#fff;border-radius:8px;padding:15px 20px;font-weight:700;box-shadow:0 5px 14px #0f5a4326;white-space:nowrap}.newButton span{font-size:18px;margin-right:8px}.workspace{max-width:1180px;margin:-1px auto 0;padding:0 28px 70px}.journalbar{min-height:92px;background:#fff;border:1px solid var(--line);border-radius:0 0 12px 12px;box-shadow:0 8px 28px #1735230b;display:flex;align-items:center;gap:38px;padding:18px 22px;margin-bottom:28px}.journalbar>div:first-child{flex:1}.journalbar label{display:block;font-size:9px;letter-spacing:1.4px;font-weight:800;color:#859087;margin-bottom:7px}.journalbar select{font-weight:700;border:0;background:transparent;outline:0;width:min(100%,360px);color:var(--ink)}.metric{padding-left:28px;border-left:1px solid var(--line)}.metric b,.metric span{display:block}.metric b{font:600 24px Georgia}.metric span{font-size:10px;color:var(--muted);margin-top:2px}.recordsButton{border:1px solid #b9c9c0;background:#fff;color:var(--green);border-radius:7px;padding:10px 14px;font-size:12px;font-weight:700}.recordsButton:disabled{opacity:.4}.formcard,.recordcard,.empty{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 36px #1e37290a}.sectiontitle{display:flex;justify-content:space-between;align-items:center;padding:25px 28px;border-bottom:1px solid var(--line)}.sectiontitle>div{display:flex;gap:14px;align-items:center}.sectiontitle>div>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--mint);color:var(--green);font:700 13px Georgia}.sectiontitle h2,.recordhead h2{font:600 20px Georgia;margin:0}.sectiontitle p,.recordhead p{font-size:11px;color:var(--muted);margin:4px 0 0}.sampleBadge{background:#fff3dc;color:#8b5d18;border:1px solid #ead3a5;border-radius:99px;padding:6px 10px;font-size:10px;font-weight:800;letter-spacing:.5px}.autogrid{display:grid;grid-template-columns:repeat(3,1fr);background:#f1f7f3;border-bottom:1px solid var(--line)}.autogrid>div{padding:17px 28px;border-right:1px solid #d6e5dc}.autogrid>div:last-child{border:0}.autogrid label,.autogrid strong{display:block}.autogrid label{font-size:9px;font-weight:800;letter-spacing:1.2px;color:#748379;margin-bottom:6px}.autogrid strong{font:600 15px Georgia;color:var(--green)}.fields{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;padding:28px}.field{display:block;position:relative}.field.wide{grid-column:1/-1}.field>span{display:block;font-size:11px;font-weight:800;margin:0 0 8px}.field input,.field select,.field textarea{width:100%;border:1px solid #cfd7d2;border-radius:7px;background:#fbfcfa;padding:12px 13px;outline:0;color:var(--ink);transition:.15s}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #0f5a4315;background:#fff}.field select:disabled{background:#eff1ee;color:#9aa29d}.field textarea{height:92px;resize:vertical;padding-right:70px}.counter{position:absolute;right:12px;bottom:11px;color:#8b948e;font-size:10px}.formactions{border-top:1px solid var(--line);padding:18px 28px;display:flex;justify-content:flex-end;gap:12px}.formactions button{border-radius:7px;padding:12px 18px;font-size:12px;font-weight:800}.clear{background:#fff;border:1px solid var(--line);color:#68756d}.save{background:var(--green);border:0;color:#fff;min-width:190px}.save span{float:right;font-size:16px}.message{margin:0 28px 18px;padding:11px 13px;border-radius:6px;font-size:12px;font-weight:700}.error{background:#fff0ed;color:#a13d2c}.success{background:#e9f6ef;color:#176543}.empty{text-align:center;padding:80px 24px}.emptyIcon{margin:auto;width:54px;height:54px;display:grid;place-items:center;background:var(--mint);color:var(--green);border-radius:50%;font-size:26px}.empty h2{font:600 25px Georgia;margin:18px 0 8px}.empty p{color:var(--muted);max-width:430px;margin:0 auto 22px;line-height:1.5}.recordcard{margin-top:26px;overflow:hidden}.recordhead{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid var(--line)}.export{display:flex;gap:8px}.export button{background:#fff;border:1px solid #b9c9c0;color:var(--green);font-size:11px;font-weight:800;padding:9px 12px;border-radius:6px}.export button:disabled{opacity:.4}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;background:#f5f7f4;color:#68756d;font-size:9px;letter-spacing:.7px;text-transform:uppercase;padding:11px 14px}td{padding:14px;border-top:1px solid #edf0ed;vertical-align:top}td small{display:block;color:#7e8982;margin-top:4px}.status{display:inline-block;border-radius:99px;padding:5px 8px;background:#fff3dc;color:#805b20;font-size:9px;font-weight:800}.status.closed{background:#e7f5ed;color:#176543}.status.rejected{background:#ffebe8;color:#a33b2b}.delete{border:0;background:transparent;color:#a3aba6;font-size:20px}.norecords{text-align:center;color:var(--muted);padding:34px}footer{display:flex;justify-content:space-between;max-width:1180px;margin:auto;padding:24px 28px;border-top:1px solid var(--line);font-size:9px;color:#89928c;letter-spacing:1px;font-weight:800}
@media(max-width:760px){.topbar{padding:0 18px}.hero{padding:38px 20px 50px;display:block}.hero h1{font-size:42px}.newButton{margin-top:28px}.workspace{padding:0 14px 50px}.journalbar{flex-wrap:wrap;gap:18px}.journalbar>div:first-child{flex-basis:100%}.metric{padding-left:14px}.fields{grid-template-columns:1fr;padding:20px}.field.wide{grid-column:auto}.autogrid>div{padding:14px}.sectiontitle{padding:20px}.sampleBadge{display:none}.formactions{padding:16px 20px}.formactions button{flex:1}.recordhead{align-items:flex-start;gap:15px;flex-direction:column}.hero h1{letter-spacing:-1.5px}footer{padding:20px;display:block}footer span{display:block;margin:7px 0}}

/* Compact inspection action pane, aligned with the workspace cards. */
.hero{width:calc(100% - 56px);max-width:1124px;margin:18px auto 0;padding:14px 22px;border:1px solid #e7d7cc;border-radius:10px;align-items:center}
.hero .eyebrow{margin:0}
.hero .newButton{padding:11px 16px}
.workspace{margin-top:0}
.journalbar{margin-top:18px;border-radius:12px}
@media(max-width:760px){.hero{width:calc(100% - 28px);margin-top:14px;padding:12px 14px;display:flex}.hero .newButton{margin-top:0}.workspace{padding-top:0}.journalbar{margin-top:14px}}

.recordsTable{min-width:1680px}
.recordsTable th{white-space:nowrap}
.recordsTable td{white-space:nowrap}
.recordsTable .detailsCell{min-width:220px;max-width:320px;white-space:normal;line-height:1.45}
.recordsTable .actionHead,.recordsTable .actionCell{position:sticky;right:0;text-align:center;background:#f5f7f4;box-shadow:-1px 0 var(--line)}
.recordsTable .actionCell{background:#fff}
.reportInputs{display:grid;grid-template-columns:1fr 1fr;padding:20px 24px;gap:16px}.reportInputs .assemblyField{padding:0}.reportInputs .wideInput{grid-column:1/-1}@media(max-width:560px){.reportInputs{grid-template-columns:1fr}.reportInputs .wideInput{grid-column:auto}}
.reportInputs .assemblyField select{width:100%;border:1px solid #cfc3bb;border-radius:7px;padding:12px 13px;outline:0;background:#fff;color:var(--ink)}.reportInputs .assemblyField select:focus{border-color:var(--green);box-shadow:0 0 0 3px #a9471615}
#generateShareReport{background:#fff;border:1px solid var(--green);color:var(--green)}
.modalBackdrop{position:fixed;inset:0;z-index:50;background:#2c1b1499;display:grid;place-items:center;padding:20px}.modalBackdrop[hidden]{display:none}.reportModal{width:min(620px,100%);background:#fff;border-radius:14px;box-shadow:0 24px 80px #2c1b1440;overflow:hidden}.modalHead{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-bottom:1px solid var(--line)}.modalHead p{margin:0 0 5px;color:var(--orange);font-size:9px;font-weight:800;letter-spacing:1.5px}.modalHead h2{margin:0;font:600 23px Georgia}.modalHead button{border:0;background:var(--mint);color:var(--green);width:34px;height:34px;border-radius:50%;font-size:20px}.summaryPreview{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border-bottom:1px solid var(--line)}.summaryPreview div{background:#fbf8f5;padding:16px 18px}.summaryPreview span,.summaryPreview b{display:block}.summaryPreview span{font-size:9px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);margin-bottom:6px}.summaryPreview b{font-size:13px;color:var(--green)}.assemblyField{display:block;padding:22px 24px}.assemblyField>span{display:block;font-size:11px;font-weight:800;margin-bottom:8px}.assemblyField input{width:100%;border:1px solid #cfc3bb;border-radius:7px;padding:12px 13px;outline:0}.assemblyField input:focus{border-color:var(--green);box-shadow:0 0 0 3px #a9471615}.assemblyField small{display:block;color:var(--muted);font-size:10px;margin-top:7px}.modalError{margin:0 24px 18px;background:#fff0ed;color:#a13d2c;padding:10px 12px;border-radius:6px;font-size:11px;font-weight:700}.modalActions{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--line)}.modalActions button{border-radius:7px;padding:11px 16px;font-size:11px;font-weight:800}.modalActions button:first-child{background:#fff;border:1px solid var(--line);color:var(--muted)}.modalActions button:last-child{background:var(--green);border:1px solid var(--green);color:#fff}@media(max-width:560px){.summaryPreview{grid-template-columns:repeat(2,1fr)}}

/* Version 2 quality assurance dashboard shell */
body{background:#eee9e5}.dashboardShell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.dashboardNav{position:sticky;top:0;height:100vh;background:#2c1b14;color:#fff;padding:24px 16px 20px;display:flex;flex-direction:column;box-shadow:8px 0 32px #2c1b1414;z-index:10}.dashboardIdentity{display:flex;align-items:center;gap:12px;padding:0 8px 25px;border-bottom:1px solid #ffffff1a}.dashboardIdentity .brandmark{background:var(--orange);flex:0 0 auto}.dashboardIdentity b,.dashboardIdentity small{display:block}.dashboardIdentity b{font-size:14px}.dashboardIdentity small{color:#cbbdb6;font-size:10px;margin-top:4px}.dashboardNav nav{margin-top:28px}.navLabel{font-size:9px;font-weight:800;letter-spacing:1.8px;color:#bca9a0;margin:0 10px 12px}.moduleButton{width:100%;border:1px solid transparent;background:transparent;color:#f4ece8;border-radius:10px;padding:12px 10px;display:flex;text-align:left;align-items:center;gap:11px;margin:5px 0}.moduleButton .moduleIcon{width:31px;height:31px;display:grid;place-items:center;flex:0 0 auto;border-radius:8px;background:#ffffff12;color:#d9c8bf;font-size:9px;font-weight:800}.moduleButton b,.moduleButton small{display:block}.moduleButton b{font-size:11px;line-height:1.35}.moduleButton small{font-size:9px;color:#bca9a0;margin-top:4px}.moduleButton.active{background:#a94716;border-color:#d86b3540;box-shadow:0 8px 20px #170c0838}.moduleButton.active .moduleIcon{background:#fff;color:#a94716}.moduleButton.active small{color:#f7d7c7}.moduleButton:disabled{cursor:not-allowed;opacity:.48}.navStatus{margin-top:auto;border-top:1px solid #ffffff1a;padding:20px 9px 2px;display:flex;align-items:center;gap:10px}.navStatus>span{width:8px;height:8px;border-radius:50%;background:#55c58b;box-shadow:0 0 0 4px #55c58b1f}.navStatus b,.navStatus small{display:block}.navStatus b{font-size:10px}.navStatus small{font-size:9px;color:#bca9a0;margin-top:4px}.dashboardMain{min-width:0;padding:0 24px 30px}.dashboardHeader{min-height:102px;max-width:1240px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:24px}.dashboardHeader p{color:var(--orange);font-size:9px;font-weight:800;letter-spacing:1.8px;margin:0 0 7px}.dashboardHeader h1{font:600 28px Georgia,serif;letter-spacing:-.5px;margin:0}.activeModule{text-align:right}.activeModule span,.activeModule b{display:block}.activeModule span{font-size:8px;letter-spacing:1.4px;color:var(--muted);margin-bottom:5px}.activeModule b{font-size:11px;color:var(--green)}.modulePane{max-width:1240px;margin:auto;background:#f8f9f6;border:1px solid #dfd4cd;border-radius:14px;overflow:hidden;box-shadow:0 18px 55px #3d261a12}.modulePane .topbar{height:62px;padding:0 24px}.modulePane .topbar .brandmark{width:34px;height:34px;font-size:20px}.modulePane .hero{max-width:none}.modulePane .workspace{max-width:1180px}.modulePane footer{max-width:1180px}@media(max-width:900px){.dashboardShell{grid-template-columns:82px minmax(0,1fr)}.dashboardNav{padding-left:10px;padding-right:10px}.dashboardIdentity{justify-content:center;padding-left:0;padding-right:0}.dashboardIdentity div,.navLabel,.moduleButton>span:last-child,.navStatus div{display:none}.moduleButton{justify-content:center;padding:10px}.navStatus{justify-content:center}.dashboardMain{padding:0 12px 20px}.dashboardHeader{min-height:90px}.dashboardHeader h1{font-size:23px}}@media(max-width:620px){.dashboardShell{display:block}.dashboardNav{position:relative;width:100%;height:auto;padding:10px 14px;display:flex;flex-direction:row;align-items:center}.dashboardIdentity{border:0;padding:0}.dashboardIdentity div{display:block}.dashboardNav nav{margin:0 0 0 auto;display:flex}.dashboardNav .navLabel,.dashboardNav .moduleButton:not(.active),.navStatus{display:none}.dashboardNav .moduleButton.active{margin:0;width:auto}.dashboardNav .moduleButton.active>span:last-child{display:block}.dashboardMain{padding:0 8px 16px}.dashboardHeader{padding:0 8px;min-height:86px}.activeModule{display:none}.modulePane{border-radius:10px}}
