@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#102b4e;--navy2:#183c66;--blue:#2867a5;--pale:#eef4f9;--ink:#18283a;--muted:#738194;--line:#e2e8ef;--white:#fff;--bg:#f7f9fc;--green:#23835a;--amber:#bd7920;--red:#b84f49;--shadow:0 8px 30px #152a4210}*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{margin:0;color:var(--ink);font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);padding-bottom:calc(72px + env(safe-area-inset-bottom))}button,input,select,textarea{font:inherit}button{cursor:pointer}#app{max-width:760px;margin:auto;min-height:100vh;background:var(--bg)}.topbar{height:72px;background:var(--navy);color:white;padding:0 22px;display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:5;box-shadow:0 2px 10px #071c3230}.brand-mark{width:38px;height:38px;border:1.5px solid #ffffff9c;border-radius:9px;display:grid;place-items:center;font:800 14px Manrope,sans-serif;letter-spacing:-1px}.brand{display:flex;flex-direction:column;gap:2px}.brand strong{font:700 16px Manrope,sans-serif;letter-spacing:.1px}.brand small{font-size:9px;letter-spacing:1.25px;color:#c1d1e2}.icon-button{margin-left:auto;border:0;background:#ffffff1b;color:white;border-radius:9px;width:38px;height:38px;font-size:21px}.view{padding:28px 22px 110px}.hidden{display:none!important}.welcome{display:flex;justify-content:space-between;align-items:center}.eyebrow{margin:0 0 8px;color:var(--blue);font-size:10px;font-weight:700;letter-spacing:1.4px}.welcome h1,.project-heading h1,.form-heading h1{font:800 26px Manrope,sans-serif;letter-spacing:-.6px;margin:0 0 5px;color:var(--navy)}.muted{color:var(--muted);margin:0;font-size:13px;line-height:1.45}.date-pill{border:1px solid var(--line);border-radius:30px;background:white;padding:8px 11px;color:var(--muted);font-size:11px}.primary,.secondary{border:0;border-radius:12px;min-height:50px;padding:0 18px;font-size:14px;font-weight:700;display:flex;justify-content:center;align-items:center;gap:7px}.primary{background:var(--navy);color:white;box-shadow:0 4px 10px #102b4e24}.primary:active{background:#0b213b;transform:translateY(1px)}.secondary{background:var(--pale);color:var(--navy)}.new-project{width:100%;margin:25px 0 20px}.plus{font-size:21px;font-weight:400}.project-list,.snag-list{display:grid;gap:12px}.project-card{padding:17px;border:1px solid var(--line);border-radius:14px;background:white;box-shadow:var(--shadow);text-align:left;color:inherit;width:100%;display:flex;align-items:center;gap:14px}.property-icon{width:43px;height:43px;border-radius:12px;background:var(--pale);color:var(--blue);display:grid;place-items:center;font-size:20px;flex:none}.project-info{min-width:0;flex:1}.project-info strong{font:700 15px Manrope,sans-serif;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-info small{display:block;margin-top:4px;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-count{text-align:right;color:var(--muted);font-size:11px}.project-count strong{font-size:18px;color:var(--navy);display:block}.empty-state{margin-top:30px;padding:32px 20px;text-align:center;border:1px dashed #cbd6e2;border-radius:16px;background:#ffffff9c}.empty-state h2{font:700 16px Manrope;margin:12px 0 5px;color:var(--navy)}.empty-state p{color:var(--muted);font-size:13px;margin:0;line-height:1.5}.empty-icon{width:46px;height:46px;border-radius:50%;background:var(--pale);color:var(--blue);margin:auto;display:grid;place-items:center;font-size:22px}.compact{padding:26px 16px}.back-button{border:0;background:transparent;padding:0;color:var(--blue);display:flex;align-items:center;gap:5px;font-weight:600;margin:0 0 23px;font-size:14px}.back-button:first-letter{font-size:24px}.project-heading{display:flex;justify-content:space-between;align-items:flex-start}.project-heading h1{font-size:23px}.project-heading .eyebrow{margin-bottom:7px}.more-button{border:1px solid var(--line);background:white;color:var(--muted);border-radius:9px;height:35px;width:42px;letter-spacing:2px}.stats{display:grid;grid-template-columns:repeat(3,1fr);background:white;border:1px solid var(--line);border-radius:13px;margin:22px 0;padding:15px 3px}.stats div{text-align:center;border-right:1px solid var(--line)}.stats div:last-child{border:0}.stats strong{display:block;color:var(--navy);font:800 21px Manrope}.stats span{font-size:10px;color:var(--muted)}.section-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px}.section-title h2,.photo-head h2{margin:0;color:var(--navy);font:700 17px Manrope}.text-button{background:transparent;border:0;color:var(--blue);font-size:12px;font-weight:700}.filter-row{display:flex;gap:8px;margin-bottom:15px;overflow:auto}.filter{border:1px solid var(--line);background:white;color:var(--muted);border-radius:20px;padding:8px 13px;font-size:11px;white-space:nowrap}.filter.active{color:white;background:var(--navy);border-color:var(--navy)}.snag-card{background:white;border:1px solid var(--line);border-radius:13px;padding:14px;box-shadow:0 3px 14px #152a4208}.snag-top{display:flex;align-items:center;gap:8px}.snag-number{font:700 11px Manrope;color:var(--blue);background:var(--pale);padding:5px 7px;border-radius:6px}.badge{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;padding:5px 7px;border-radius:20px}.badge.high{background:#fff0ee;color:var(--red)}.badge.medium{background:#fff6e9;color:var(--amber)}.badge.low{background:#edf6ee;color:var(--green)}.status{margin-left:auto;font-size:10px;color:var(--amber);font-weight:600}.status.done{color:var(--green)}.snag-description{font-size:13px;line-height:1.5;margin:11px 0;color:var(--ink);white-space:pre-wrap}.snag-meta{display:flex;gap:6px;flex-wrap:wrap;color:var(--muted);font-size:10px}.snag-meta span{background:#f5f7fa;border-radius:5px;padding:5px 7px}.snag-foot{border-top:1px solid var(--line);margin-top:11px;padding-top:10px;display:flex;justify-content:space-between;align-items:center}.snag-photos{color:var(--muted);font-size:10px}.snag-actions{display:flex;gap:7px}.small-action{border:1px solid var(--line);background:white;color:var(--navy);border-radius:7px;padding:7px 9px;font-size:10px;font-weight:600}.floating-action{position:fixed;bottom:calc(74px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 44px),716px);z-index:3;box-shadow:0 6px 20px #102b4e48}.form-heading{margin:0 0 22px}.form-heading h1{font-size:23px;margin-bottom:5px}form#snagForm{display:block}.field-label,label{font-size:12px;color:var(--navy);font-weight:600;display:block}.required{color:#c34d47}textarea,input,select{display:block;margin-top:7px;width:100%;min-height:47px;border:1px solid #dbe3eb;background:white;border-radius:10px;padding:12px;color:var(--ink);outline:none;font-size:14px}textarea{min-height:104px;resize:vertical;line-height:1.45}textarea:focus,input:focus,select:focus{border-color:#6c9ac4;box-shadow:0 0 0 3px #2867a516}.voice-row{display:flex;align-items:center;gap:11px;margin:10px 0 20px}.voice-button{border:1px solid #c8d9e8;background:#f4f8fb;color:var(--navy);border-radius:9px;min-height:42px;padding:0 12px;font-size:12px;font-weight:700}.voice-button.recording{background:#fff0ee;color:#b84f49;border-color:#edbcb8}.small{font-size:11px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.photo-section{margin:23px 0}.photo-head{display:flex;justify-content:space-between;align-items:center}.photo-head h2{font-size:15px;margin-bottom:4px}.photo-add{color:var(--blue);font-size:11px;font-weight:700;display:block;white-space:nowrap}.photo-preview{display:flex;gap:9px;overflow:auto;padding:12px 0 2px}.photo-thumb{position:relative;width:76px;height:76px;flex:none;border-radius:9px;overflow:hidden;background:var(--pale)}.photo-thumb img{width:100%;height:100%;object-fit:cover}.photo-thumb button{position:absolute;top:3px;right:3px;background:#102b4edb;color:white;border:0;width:22px;height:22px;border-radius:50%;font-size:15px;line-height:1}.complete-toggle{display:flex;align-items:center;justify-content:space-between;padding:14px;background:white;border:1px solid var(--line);border-radius:11px;margin:23px 0}.complete-toggle strong,.complete-toggle span{display:block}.complete-toggle strong{font-size:13px;color:var(--navy);margin-bottom:3px}.complete-toggle input{width:24px;height:24px;accent-color:var(--green);margin:0}.form-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:10px;padding:9px 0}.bottom-nav{height:calc(58px + env(safe-area-inset-bottom));padding:8px 20px env(safe-area-inset-bottom);background:white;border-top:1px solid var(--line);position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;z-index:4}.nav-active{display:flex;gap:7px;align-items:center;color:var(--navy);font-size:11px;font-weight:700}.nav-icon{font-size:17px}.nav-brand{position:absolute;right:max(20px,calc((100% - 720px)/2));font-size:8px;letter-spacing:.6px;color:#9aa6b3}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:17px}.dialog-head h2{font:700 20px Manrope;color:var(--navy);margin:0}.dialog-head .eyebrow{margin-bottom:5px}.close-button{border:0;background:#f1f4f7;color:var(--muted);border-radius:50%;width:30px;height:30px;font-size:20px;line-height:1}dialog{border:0;border-radius:17px;width:min(92vw,440px);max-height:85vh;padding:22px;box-shadow:0 22px 70px #071c3260;color:var(--ink)}dialog::backdrop{background:#091d33a6}#projectForm label{margin:16px 0}#projectForm input{margin-top:7px}.full{width:100%;margin-top:8px}.report-option{width:100%;border:1px solid var(--line);border-radius:11px;background:white;padding:12px;display:flex;align-items:center;gap:11px;text-align:left;color:var(--ink);margin-top:9px}.report-option>span:nth-child(2){flex:1}.report-option strong,.report-option small{display:block}.report-option strong{font-size:12px;color:var(--navy)}.report-option small{font-size:10px;color:var(--muted);margin-top:3px}.report-icon{height:34px;width:34px;border-radius:9px;background:var(--pale);display:grid;place-items:center;color:var(--blue);font-size:16px}.trade-report-heading{margin:19px 0 2px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:700}.report-hint{font-size:10px;color:var(--muted);margin:16px 0 0}.toast{position:fixed;bottom:calc(82px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,20px);background:var(--navy);color:white;padding:11px 15px;border-radius:9px;font-size:12px;opacity:0;transition:.2s;pointer-events:none;z-index:10;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}
#printRoot{display:none}@media(min-width:600px){.view{padding:34px 34px 110px}.topbar{padding:0 34px}.new-project{max-width:230px}.bottom-nav{justify-content:flex-start;padding-left:max(34px,calc((100% - 692px)/2))}.nav-brand{right:max(34px,calc((100% - 692px)/2))}}
@media(max-width:380px){.view{padding-left:16px;padding-right:16px}.field-grid{gap:8px}.date-pill{font-size:10px}.nav-brand{font-size:7px;right:13px}.welcome h1{font-size:24px}}
@media print{body{padding:0;background:white}#app{max-width:none}.topbar,.bottom-nav,.view,.dialog-head,.report-hint,.toast{display:none!important}body.printing #printRoot{display:block!important}.print-report{font-family:Arial,sans-serif;color:#17283b;padding:25px}.print-header{border-bottom:3px solid #102b4e;padding-bottom:15px;margin-bottom:22px}.print-header h1{font-size:23px;color:#102b4e;margin:0 0 5px}.print-header p{margin:0;color:#596b7e;font-size:12px}.print-header .print-brand{font-weight:700;letter-spacing:1px;color:#102b4e;font-size:10px;margin-bottom:15px}.print-section-title{background:#eef3f8;color:#102b4e;padding:8px 10px;margin:20px 0 12px;font-size:15px}.print-snag{break-inside:avoid;border-bottom:1px solid #d9e0e8;padding:0 0 15px;margin-bottom:15px}.print-snag h3{font-size:14px;margin:0 0 6px}.print-snag p{font-size:11px;line-height:1.45;margin:5px 0}.print-meta{color:#53677a;font-size:10px}.print-photos{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.print-photos figure{margin:0;width:30%;break-inside:avoid}.print-photos img{width:100%;max-height:220px;object-fit:contain;border:1px solid #d9e0e8}.print-photos figcaption{font-size:9px;color:#53677a;margin-top:3px}.print-status{font-weight:bold;color:#1d7652}}
