:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#102e50;background:#e9eef5;font-size:16px;--navy:#102e50;--teal:#008e93;--muted:#66758b;--line:#dbe3ed;--red:#bb1d30}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #0da2a7;outline-offset:3px}#app{max-width:660px;margin:auto;min-height:100dvh;background:#f5f7fb;padding-bottom:110px}header{position:sticky;top:0;background:#fffffff5;backdrop-filter:blur(16px);z-index:5;border-bottom:1px solid var(--line);padding:calc(18px + env(safe-area-inset-top)) 22px 15px;display:flex;gap:12px;align-items:center}header h1{font-size:21px;margin:0;letter-spacing:-.5px;line-height:1.3}header small{display:block;font-size:13px;color:var(--muted);margin-top:5px}.brand{width:42px;height:46px;margin-left:auto;flex-shrink:0}.back{border:0;background:none;color:var(--navy);padding:8px 8px 8px 0;font-size:24px;min-width:36px}.content{padding:22px}.eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:12px;font-weight:700;color:var(--teal)}h2{font-size:26px;letter-spacing:-.7px;margin:12px 0}h3{font-size:17px;margin:0 0 12px}p{line-height:1.55}.subtle{font-size:14px;color:var(--muted)}.hero{padding:4px 0 18px}.hero p{margin:10px 0}.action-card{width:100%;display:flex;align-items:center;text-align:left;gap:18px;padding:22px 19px;border:0;border-radius:18px;background:var(--navy);color:white;margin-bottom:14px;box-shadow:0 6px 15px #102e5012}.action-card.alt{background:#dff1f3;color:var(--navy);box-shadow:none}.action-card strong{font-size:19px;display:block}.action-card small{font-size:14px;display:block;margin-top:7px;opacity:.8}.round-icon{display:grid;place-items:center;width:49px;height:49px;border-radius:50%;background:#ffffff20;font-size:30px;flex-shrink:0}.alt .round-icon{background:var(--teal);color:white}.section-title{display:flex;justify-content:space-between;align-items:center;margin:26px 0 13px}.section-title h3{margin:0}.card{background:white;border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:16px;box-shadow:0 2px 6px #102e5004}.card h3{line-height:1.4}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.pill{font-size:13px;line-height:1.4;padding:6px 10px;border-radius:9px;background:#eaf1f6;color:var(--navy);display:inline-block;font-weight:600}.urgent{color:var(--red);background:#ffebee;font-weight:700}.teal{background:#e0f4f0;color:#00695c}.draft{color:#815310;background:#fff1d1}.btn{border:0;background:var(--navy);color:white;min-height:50px;padding:13px 18px;border-radius:11px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn.secondary{background:white;border:1px solid #bbcbdc;color:var(--navy)}.btn.text{background:transparent;color:var(--teal);padding:8px 0;min-height:40px}.btn.danger{background:#fff0f2;color:var(--red);border:1px solid #efc1ca}.wide{width:100%}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,660px);padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:flex;background:#fffffff5;border-top:1px solid var(--line);z-index:10}.bottom-nav button{flex:1;color:var(--muted);background:none;border:0;font-size:13px;min-height:42px}.bottom-nav b{display:block;font-size:19px;margin-bottom:5px}.bottom-nav button.active{color:var(--navy);font-weight:700}.sticky-action{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,660px);padding:12px 22px calc(12px + env(safe-area-inset-bottom));background:#f5f7fbf5;border-top:1px solid var(--line);z-index:10}.sticky-action .row>*{flex:1}.field{display:block;margin:0 0 17px;font-weight:550;font-size:14px}.field input,.field textarea,.field select{display:block;width:100%;margin-top:7px;border:1px solid #bfcddd;border-radius:9px;background:white;padding:13px;color:var(--navy);font-size:16px;font-weight:400;min-height:48px}.field textarea{resize:vertical;min-height:100px;line-height:1.5}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #0b999b;outline-offset:1px}.field small{display:block;font-weight:400;color:var(--muted);margin-top:7px;line-height:1.45}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.type-choice{display:grid;gap:9px;margin:15px 0 22px}.type-choice label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:white;border-radius:10px;min-height:52px;padding:13px;font-size:15px}.type-choice label:has(input:checked){border-color:var(--teal);background:#e5f4f5}.type-choice input{accent-color:var(--teal)}.save-state{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:7px;margin-top:8px}.save-state:before{content:'✓';color:var(--teal)}.save-state.error{color:var(--red)}.save-state.error:before{content:'!';color:var(--red)}.search{width:100%;border:1px solid var(--line);background:#eaf0f6;border-radius:10px;padding:13px 15px;font-size:16px;margin-bottom:17px}.issue-card{padding:16px}.issue-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.issue-head strong{font-size:15px}.issue-photos{display:flex;overflow-x:auto;gap:8px;margin-bottom:13px}.issue-photos img{width:100%;max-height:260px;object-fit:contain;background:#eef2f7;border-radius:9px;flex-shrink:0}.issue-description{font-size:16px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 15px}.issue-foot{padding-top:12px;border-top:1px solid #edf0f5}.empty{padding:30px 12px;text-align:center;color:var(--muted);line-height:1.6}.empty strong{display:block;color:var(--navy);font-size:18px;margin-bottom:8px}.photo-slot{border:1px dashed #aebfd3;border-radius:12px;padding:22px 16px;text-align:center;background:#f8fafc;margin-bottom:14px}.photo-slot p{margin:0 0 12px;font-size:14px;color:var(--muted)}.photo-editor{position:relative;margin:0 0 12px}.photo-editor img{width:100%;max-height:300px;object-fit:contain;border-radius:10px;background:#e9eef4}.photo-editor button{position:absolute;right:9px;top:9px;background:white;border:1px solid var(--line);border-radius:20px;padding:8px 13px;color:var(--red)}.file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.deadline{display:flex;gap:8px;margin:9px 0 17px}.deadline button{flex:1;min-height:46px;border:1px solid #bfccdd;border-radius:9px;background:white;color:var(--navy)}.deadline button.selected{border-color:var(--teal);background:#e0f4f2;font-weight:700}.deadline button.selected[data-value="now"]{background:var(--red);border-color:var(--red);color:white}.notice{padding:12px 14px;border-radius:10px;background:#e7f0f8;font-size:14px;line-height:1.5;margin:14px 0}.notice.warning{background:#fff3dd;color:#785013}.notice.error{background:#ffebee;color:var(--red)}details{background:white;border:1px solid var(--line);padding:16px;border-radius:12px;margin-bottom:18px}summary{font-size:15px;font-weight:650;cursor:pointer}details[open] summary{margin-bottom:20px}.status-option{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid var(--line);border-radius:8px;margin-bottom:8px;font-size:15px}.status-option:has(input:checked){background:#e0f4f2;border-color:var(--teal)}.status-option input{accent-color:var(--teal)}.logo-upload{border:1px dashed #b9c8d7;border-radius:12px;padding:15px;background:white}.logo-upload img{max-width:100%;height:60px;object-fit:contain;display:block;margin:0 auto 12px}.logo-upload p{font-size:14px;margin:0 0 12px}.report-shell{overflow:auto;background:#dfe6ed;padding:12px;border-radius:12px}.report-page{background:white;padding:24px 20px;min-width:290px;color:#13283d;font-size:12px;line-height:1.5}.report-logos{display:flex;justify-content:space-between;gap:15px}.report-logos div{width:48%;font-size:11px}.report-logos div:last-child{text-align:right}.report-logos img{height:42px;max-width:100%;object-fit:contain}.report-page h2{font-size:17px;text-align:center;margin:24px 0 16px}.report-page dl{display:grid;grid-template-columns:105px 1fr;gap:5px;font-size:11px}.report-page dt{font-weight:650}.report-page dd{margin:0;overflow-wrap:anywhere}.report-item{border-top:2px solid #102e50;padding-top:8px;margin-top:20px}.report-item h3{font-size:13px;margin:0 0 8px}.report-body{display:flex;gap:12px}.report-images{width:33%;flex-shrink:0}.report-images img{width:100%;display:block;margin-bottom:8px}.report-text{flex:1;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}.report-text p{margin:0 0 7px;font-size:11px}.report-footer{border-top:1px solid var(--line);margin-top:30px;padding-top:10px;display:flex;align-items:center;gap:6px;font-size:9px;color:#586777}.report-footer img{width:20px;height:22px}.report-footer span:last-child{margin-left:auto}.export-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 10px}#toast{position:fixed;bottom:105px;left:50%;transform:translateX(-50%);background:#102e50;color:white;padding:13px 18px;border-radius:12px;z-index:50;max-width:90%;width:max-content;font-size:14px;box-shadow:0 5px 20px #0002;display:none}#toast.visible{display:block}.checkline{display:flex;align-items:flex-start;gap:10px;line-height:1.5;font-size:14px;margin:17px 0}.checkline input{width:20px;height:20px;flex-shrink:0;accent-color:var(--teal)}.hidden{display:none!important}.welcome-badge{display:inline-block;background:#dfeeed;color:#087c77;font-size:12px;border-radius:5px;padding:5px 8px;margin-bottom:12px}.history-row{font-size:13px;padding:8px 0;border-bottom:1px solid var(--line);color:var(--muted)}@media(min-width:800px){body{padding:24px}#app{border-radius:24px;overflow:clip;box-shadow:0 12px 55px #102e5014;min-height:calc(100dvh - 48px)}.bottom-nav,.sticky-action{bottom:24px;border-radius:0 0 24px 24px}.content{padding:26px}header{padding:22px 26px}header h1{font-size:23px}}@media(max-width:360px){.content{padding:16px}.grid2{grid-template-columns:1fr}.btn{padding:12px;font-size:14px}.action-card{padding:18px 14px;gap:12px}.action-card strong{font-size:17px}}@media print{body{padding:0;background:white}header,.bottom-nav,.sticky-action,.export-grid,.notice,.preview-controls,#toast{display:none!important}#app{max-width:none;padding:0;box-shadow:none}.content{padding:0}.report-shell{padding:0;background:white;overflow:visible}.report-page{padding:0;font-size:11pt}.report-page p,.report-page dl{font-size:10pt}.report-item{break-inside:avoid}.report-footer{position:fixed;bottom:0;width:100%}@page{size:A4;margin:18mm}}
:root{--form-border:#617185}
.report-page{padding:12px;min-height:520px;min-width:0}
.report-frame{border:1.5px solid var(--form-border);padding:14px;min-height:490px}
.report-document-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.report-document-title h2{font-size:13px;margin:0;text-align:left;letter-spacing:0;line-height:1.4}
.report-document-title>div{font-size:10px;white-space:nowrap}
.report-header-table{width:100%;border-collapse:collapse;font-size:10px;line-height:1.4;table-layout:fixed}
.report-header-table th,.report-header-table td{border:1px solid #b5c0ce;padding:6px;vertical-align:middle;overflow-wrap:anywhere}
.report-header-table th{width:30%;text-align:left;background:#f3f5f8;font-weight:600}
.report-header-value{display:flex;gap:8px;align-items:center}
.report-header-value img{width:42px;max-height:36px;object-fit:contain;flex-shrink:0}
.report-header-value span{white-space:pre-wrap;min-width:0}
.report-page .findings-title{margin:16px 0 0;font-size:12px}
.report-item{border-top:1px solid #9aa9ba;margin-top:13px}
.report-frame .report-footer{margin-top:24px}
.company-list-row{border-bottom:1px solid var(--line);padding:5px 0;font-size:14px}
@media print{.report-page{padding:0}.report-frame{padding:6mm;border:1pt solid #617185}.report-header-table{font-size:9pt}.report-document-title h2{font-size:13pt}.report-document-title>div{font-size:9pt}.report-header-value img{width:18mm;max-height:12mm}}

/* Compact document metadata; keep the first page available for findings. */
@media screen{.report-header-table{font-size:8px;line-height:1.2}.report-header-table th,.report-header-table td{padding:3px 5px}.report-header-table th{width:32%}.report-header-value{gap:5px}.report-header-value img{width:28px;max-height:20px}.report-document-title{margin-bottom:7px;gap:5px}.report-document-title h2{font-size:11px}.report-document-title>div{font-size:8px}.report-frame{padding:10px}.report-header-table th{overflow-wrap:normal;hyphens:auto}}

.library-filters{display:grid;grid-template-columns:1fr;gap:0}.library-filters .field{margin-bottom:12px}.library-summary{font-size:13px;margin:0 0 16px}.deadline-badges{display:flex;flex-wrap:wrap;gap:7px}.deadline-note{font-size:11px;color:var(--muted);margin:8px 0 0}.report-type{font-size:12px;color:var(--muted);margin:15px 0 -8px}.due-today{background:#fff2d0;color:#77500c}@media screen{.due-today{background:#48371b;color:#ffe0a2;border-color:#8c6e38}}
