:root{--navy:#092347;--navy2:#214b82;--ink:#163152;--muted:#566f90;--accent:#2868d1;--bg:#f3f7ff;--line:#d8e5f7;--red:#be2842;--pass-blue:#1756ae;--draft-blue:#335b94;--blue:#245db1;--card:#fff}*{box-sizing:border-box}html{font:15px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--blue)}.boot{margin:20vh auto;text-align:center;color:var(--muted)}.header{background:var(--navy);color:white;box-shadow:0 2px 12px #071a2c22}.header-in{max-width:1180px;padding:12px 22px;min-height:75px;margin:auto;display:flex;align-items:center;gap:13px}.shield{width:52px;height:58px;object-fit:contain;flex:none}.brand{font-size:21px;line-height:1;font-weight:900;letter-spacing:-.6px}.tag{font-size:10px;color:#c6dcf0;letter-spacing:1.7px;font-weight:800;margin-top:5px}.right{margin-left:auto}.navs{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.navs button{border:0;background:none;color:#d8e9f4;padding:10px 12px;border-radius:9px;font-weight:750}.navs button:hover,.navs button.on{background:#2b4a6d;color:white}.rolechip{padding:5px 9px;border:1px solid #53708d;color:#e4f4fc;border-radius:20px;font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:900}.wrap{max-width:1180px;margin:auto;padding:30px 22px 90px}.eyebrow{color:#287aa9;letter-spacing:1.9px;font-size:11px;font-weight:900;text-transform:uppercase}h1{font-size:32px;line-height:1.15;letter-spacing:-1.1px;margin:7px 0}h2{font-size:20px;margin:0 0 10px;letter-spacing:-.35px}h3{font-size:16px;margin:0 0 8px}p{margin:7px 0 13px}.muted{color:var(--muted)}.small{font-size:12px}.intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.actions,.inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.btn{padding:10px 16px;min-height:42px;border:1px solid #ccd8e3;border-radius:10px;background:#fff;color:var(--navy);font-weight:800;box-shadow:0 1px 2px #142d4410;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn:hover{filter:brightness(.97)}.btn.primary{background:var(--navy);color:white;border-color:var(--navy)}.btn.accent{background:var(--accent);border-color:var(--accent)}.btn.danger{color:#ac243c}.btn.sm{padding:6px 10px;min-height:34px;font-size:12px}.card{background:var(--card);padding:22px;border-radius:16px;border:1px solid var(--line);box-shadow:0 4px 20px #102d4a0c;margin-bottom:16px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.stat label{font-size:12px;font-weight:750;color:var(--muted);display:block}.stat strong{display:block;font-size:31px;letter-spacing:-1px;color:var(--navy);margin:5px 0}.stat span{font-size:12px;color:var(--muted)}.split{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:17px}.stack{display:grid;gap:12px}.listitem{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:16px;border:1px solid var(--line);border-radius:12px;background:white;margin-bottom:9px}.listitem strong{font-size:15px}.listitem .muted{font-size:12px;margin-top:3px}.pill{font-size:11px;letter-spacing:.15px;font-weight:900;padding:5px 9px;background:#e9eef5;color:#4e647b;border-radius:999px;display:inline-block}.pill.submitted{background:#e4efff;color:var(--pass-blue)}.pill.finding{background:#fee9ed;color:var(--red)}.pill.draft{background:#eaf1fc;color:var(--draft-blue)}.pill.admin{background:#e6f0fd;color:#255e8b}.notice{border:1px solid #d4e5f5;border-radius:11px;background:#edf5fe;padding:13px 16px;color:#254968;font-size:13px}.notice.warn{border-color:#c2d4eb;background:#eaf2ff;color:#204b88}.notice.success{border-color:#b9d2f3;background:#e8f2ff;color:#174d9b}.notice.error{background:#fff0f1;color:#a21d33;border-color:#ecb5bb}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.full{grid-column:1/-1}.field label{font-weight:750;font-size:12px;color:#415970}.field input,.field select,.field textarea{border:1px solid #cddae6;border-radius:10px;background:white;padding:11px 12px;outline-color:#5d9ece;width:100%;min-width:0;color:var(--ink)}.field textarea{min-height:90px;resize:vertical}.field input:disabled{background:#f1f4f7}.section{border-radius:14px;border:1px solid var(--line);overflow:hidden;background:white;margin-bottom:15px}.sectionhead{background:#eff4f8;border-bottom:1px solid #d9e3ee;padding:14px 17px;font-weight:850;color:#173e63;display:flex;justify-content:space-between;gap:8px}.item{padding:17px;border-bottom:1px solid #e9eef3}.item:last-child{border-bottom:0}.itemtitle{font-weight:850;color:#1a3045}.hint{font-size:12px;color:var(--muted);margin:5px 0}.choices{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.choice{padding:8px 14px;background:#f6f8fb;border:1px solid #d9e3ec;border-radius:9px;font-weight:850;font-size:12px}.choice.selected.pass{background:#e3efff;color:var(--pass-blue);border-color:#6a9cdb}.choice.selected.fail{background:#ffe9eb;color:var(--red);border-color:#d78996}.choice.selected.na{background:#e9edf4;color:#405e7e;border-color:#92abc6}.details{background:#f8fafc;border:1px solid #e7edf3;border-radius:11px;padding:13px;margin-top:10px}.photos{display:flex;gap:8px;margin:9px 0;flex-wrap:wrap}.photo{width:98px;height:85px;border:1px solid #d5e1eb;border-radius:9px;object-fit:cover}.photo-wrap{position:relative}.photo-wrap .x{position:absolute;top:2px;right:2px;border:0;background:white;color:var(--red);border-radius:6px;font-weight:900}.upload{font-size:12px;border:1px dashed #a0b4c8;border-radius:9px;display:inline-block;padding:8px 12px;cursor:pointer;background:#fff}.upload input{display:none}.progress{background:#dae5ee;height:9px;border-radius:8px;overflow:hidden;margin:12px 0}.progress div{height:100%;background:var(--accent)}.banner{background:linear-gradient(120deg,#0b2340,#1f5079);border-radius:16px;padding:21px 23px;color:white;margin-bottom:20px}.banner .eyebrow{color:var(--accent)}.banner p{color:#d9e6f2}.sticky{position:sticky;bottom:0;background:#f3f6faf4;backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:20px;z-index:2}.loginbg{min-height:100vh;display:grid;place-items:center;padding:23px;background:radial-gradient(circle at top left,#225078,#0b2340 60%)}.loginbox{max-width:460px;width:100%;padding:33px;border-radius:18px;background:white;box-shadow:0 20px 80px #020a145e}.logoblock{display:flex;gap:12px;align-items:center;margin-bottom:27px}.logoblock .brand{color:var(--navy)}.logoblock .tag{color:#4a6b8d}.loginbox h1{font-size:26px}.loginbox .field{margin:15px 0}.loginbox .btn{width:100%}.receipt{max-width:650px;margin:45px auto;background:white;border:1px solid #c5d9f5;border-radius:20px;text-align:center;padding:35px}.check{font-size:45px;color:#2267c2}.report-hero{background:var(--navy);color:white;border-bottom:6px solid var(--accent);padding:22px;border-radius:14px 14px 0 0}.report-hero h2{color:white;margin:3px 0}.reportcard{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:18px}.reportbody{padding:23px}.reportkpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.reportkpis>div{background:#f0f4f8;padding:15px;border-radius:11px}.reportkpis strong{display:block;font-size:24px;color:var(--navy)}.findingline{border-left:4px solid #bc2e3e;background:#fff9f9;padding:14px;margin:9px 0;border-radius:7px}.report-list{width:100%;border-collapse:collapse;font-size:13px}.report-list th,.report-list td{border-bottom:1px solid var(--line);padding:10px;text-align:left;vertical-align:top}.report-list th{background:#edf2f7;color:#36536e}.tablewrap{overflow:auto}#toast{position:fixed;bottom:22px;right:22px;max-width:350px;z-index:100}.toast{padding:13px 18px;border-radius:11px;background:#0d2844;color:#fff;box-shadow:0 6px 25px #0d284448}.toast.error{background:#9e2035}.divider{border:0;border-top:1px solid var(--line);margin:19px 0}.empty{border:1px dashed #bacbd9;text-align:center;padding:29px;border-radius:13px;color:var(--muted)}.hidden{display:none!important}.mark{width:36px}.sr{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
@media(max-width:850px){.split{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.header-in{flex-wrap:wrap}.navs{width:100%;overflow:auto}.navs button{padding:9px}.wrap{padding:23px 14px 85px}.intro{flex-wrap:wrap}h1{font-size:27px}}@media(max-width:560px){.fields{grid-template-columns:1fr}.field.full{grid-column:1}.stats{gap:9px}.card{padding:16px}.stat strong{font-size:27px}.listitem{flex-wrap:wrap}.reportkpis{grid-template-columns:repeat(2,1fr)}.reportbody{padding:15px}.brand{font-size:19px}.navs{justify-content:flex-start}.sticky{flex-wrap:wrap}.sticky .btn{flex:1}.loginbox{padding:24px}}

/* v3 self-inspection disclosure and attestations */
.checkline{display:flex;align-items:flex-start;gap:12px;padding:13px 12px;margin:12px 0;border:1px solid #d5e1ed;border-radius:10px;background:#f9fbfd;font-size:13px;line-height:1.5;font-weight:650}.checkline input{margin-top:3px;width:19px;height:19px;flex:none;accent-color:#1a638b}.actionedit{margin-top:12px;padding:13px;background:#fff;border:1px solid #f0d4d7;border-radius:11px}.actionedit textarea{min-height:62px}.pill.received{background:#eaf2ff;color:#244d88}.pill.ready{background:#e4efff;color:#1856a9}.pill.delivered{background:#e5edf9;color:#2b557e}

summary.sectionhead{cursor:pointer;list-style:none}summary.sectionhead::-webkit-details-marker{display:none}summary.sectionhead:hover{background:#e7f0f8}details.section:not([open]){margin-bottom:11px}

/* Clearly flag non-production deployments. */
.fieldtest{background:#a01f3c;color:#fff;padding:8px 14px;font-size:12px;font-weight:800;letter-spacing:.04em;text-align:center;position:sticky;top:0;z-index:9999;}

@media(max-width:600px){.header .shield{width:44px;height:50px}.logoblock .shield{width:54px;height:62px}}

/* 2026-10-11 mobile field-test usability: presentation only.
   The disclosure remains visible; authorization, submissions and photo logic stay untouched. */
@media (max-width:600px) {
  html, body, #root { width:100%; max-width:100%; overflow-x:clip; }
  .fieldtest {
    font-size:10px;
    line-height:1.25;
    letter-spacing:0;
    padding:5px 9px;
    overflow-wrap:break-word;
  }
  .header-in {
    display:grid;
    grid-template-columns:40px minmax(0,1fr) auto;
    align-items:center;
    column-gap:9px;
    row-gap:6px;
    padding:9px 12px 7px;
    min-height:0;
  }
  .header .shield { width:38px; height:42px; }
  .header-in > div:nth-child(2) { min-width:0; }
  .header .brand { font-size:17px; line-height:1.1; overflow-wrap:normal; }
  .header .tag { font-size:9px; letter-spacing:.7px; margin-top:3px; }
  .header .rolechip { grid-column:3;grid-row:1;white-space:nowrap;padding:3px 7px; }
  .header .navs {
    grid-column:1/-1;
    grid-row:2;
    width:100%;
    min-width:0;
    margin-left:0;
    display:flex;
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    gap:3px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .header .navs::-webkit-scrollbar { display:none; }
  .header .navs button {
    flex:0 0 auto;
    padding:6px 9px;
    min-height:36px;
    white-space:nowrap;
    font-size:12px;
    border-radius:8px;
  }
  .wrap { max-width:100%; padding:17px 12px 82px; }
  .intro,.card,.section,.item,.details,.listitem,.banner { min-width:0; max-width:100%; }
  .itemtitle,.listitem strong,.banner h1,h1,h2,h3 { overflow-wrap:anywhere; }
  .item { padding:13px 12px; }
  .sectionhead { padding:11px 12px;align-items:center; }
  .sectionhead .small { flex:none;font-size:11px; }
  .details { padding:11px; }
  .upload { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
  .photos { max-width:100%; }
  .photo-wrap { max-width:100%; }
  .sticky {
    position:sticky;
    bottom:0;
    z-index:15;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:center;
    gap:4px;
    padding:6px 7px calc(6px + env(safe-area-inset-bottom, 0px));
    margin:15px -12px 0;
    border-radius:11px 11px 0 0;
    box-shadow:0 -2px 10px #0b234010;
  }
  .sticky #dirtyLabel { font-size:10px;line-height:1.2;padding-left:2px; }
  .sticky .actions {
    width:100%;
    display:flex;
    flex-wrap:nowrap;
    gap:5px;
    align-items:stretch;
  }
  .sticky .actions .btn {
    flex:1 1 0;
    width:0;
    min-width:0;
    min-height:42px;
    padding:5px 3px;
    border-radius:8px;
    font-size:12px;
    line-height:1.15;
    text-align:center;
    white-space:normal;
    overflow-wrap:break-word;
    box-shadow:none;
  }
  .sticky .actions .btn:last-child { flex-grow:1.25; }
  #toast {
    bottom:calc(80px + env(safe-area-inset-bottom, 0px));
    left:12px;
    right:12px;
    max-width:calc(100% - 24px);
    pointer-events:none;
  }
  .toast { font-size:12px;line-height:1.35;padding:9px 12px; }
}
@media (max-width:370px) {
  .header .navs button { padding:6px 6px;font-size:11px; }
  .sticky .actions .btn { font-size:11px; }
}


/* 2026-10-11 iPhone keyboard and date field refinements.
   CSS-only: do not change existing inspection, client security, photo or reporting logic. */
@media (max-width:600px) {
  /* Prevent Safari's intrinsic date-picker sizing from overflowing a one-column card. */
  .fields, .field { min-width:0; max-width:100%; }
  .field input[type="date"] {
    display:block;
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
    font-size:16px;
    line-height:1.4;
  }
  .field input[type="date"]::-webkit-date-and-time-value { text-align:left; }

  /* Make each primary action accessible without two-line labels on normal phones. */
  .sticky .actions .btn:first-child { flex:.80 1 0; }
  .sticky .actions .btn:nth-child(2) { flex:1.02 1 0; }
  .sticky .actions .btn:last-child { flex:1.48 1 0; }
  .sticky .actions .btn { min-height:40px; }

  /* Do not let the status banner occupy unnecessary room on small screens. */
  .fieldtest { padding-top:4px; padding-bottom:4px; }
}
/* iOS Safari puts its software keyboard above the viewport. While the user types,
   release the sticky action bar back into normal document flow; the bar becomes
   sticky again after the native Done/dismiss action, without keyboard listeners. */
@supports selector(body:has(textarea:focus)) {
  @media (max-width:600px) {
    body:has(.field textarea:focus, .field input:not([type="date"]):focus) .wrap .sticky {
      position:static;
      bottom:auto;
      box-shadow:none;
    }
  }
}

/* NEXUSAFE BRAND PALETTE - 2026-10-11
   Functional classes and labels remain unchanged; colors only.
   A white/blue neutral scale, navy/royal-blue for positive actions, red for findings/errors. */
:root { color-scheme:light; }
.btn.accent {background:var(--accent);border-color:var(--accent);color:#fff;}
.btn.accent:hover {background:#174f9c;border-color:#174f9c;filter:none;}
.btn.primary:hover{background:#143f78;border-color:#143f78;filter:none;}
.btn:focus-visible,.choice:focus-visible,.navs button:focus-visible,.field :is(input,textarea,select):focus-visible{outline:3px solid #3576d8;outline-offset:2px;}
.pill.submitted,.pill.ready,.notice.success,.choice.selected.pass{background:#e4efff;color:#174d98;border-color:#9cbee9;}
.pill.received,.pill.draft{background:#edf3ff;color:#284e88;}
.pill.delivered{background:#d8e8fd;color:#173b70;}
.pill.finding,.notice.error,.choice.selected.fail{background:#fee9ed;color:#aa203a;border-color:#e6b1bf;}
.notice.warn{border-color:#9bbce6;background:#eaf2ff;color:#204b88;}
.report-hero{border-bottom-color:#be2842;}
.banner .eyebrow{color:#dce9ff;}
.fieldtest{background:#a01f3c;color:#fff;}
.progress div{background:#2868d1;}
.check{color:#1756ae;}
.receipt{border-color:#aac7ed;}
.field input[type='checkbox'],.checkline input{accent-color:#235fb9;}
/* Blue-tinted and white surfaces only. */
body{background:#f3f7ff;}

/* Item-level OSHA reference links */
.osha-reference{margin:9px 0 12px;padding:9px 11px;border-left:3px solid #2774b9;background:#eef5fc;color:#193b61;font-size:12px;line-height:1.6;overflow-wrap:anywhere;}
.osha-reference strong{font-weight:750;}
.osha-reference a{color:#075a9b;text-decoration:underline;text-underline-offset:2px;}
.osha-reference a:hover{color:#092347;}
.osha-reference a:focus-visible{outline:2px solid #185f9c;outline-offset:3px;}
.osha-reference-note{margin-top:5px;color:#4b5e74;font-size:12px;line-height:1.5;}
.osha-scope{margin:12px 0 0;color:#4b5e74;font-size:12px;line-height:1.5;}
@media print{.osha-reference{break-inside:avoid;background:#fff;}.osha-reference a{color:#193b61;}}
