:root{color:#1f2937;background:#f8fafc;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;min-height:44px}button{color:#1f2937;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:9px 16px}button:hover{background:#eef6f0}button:disabled{opacity:.55;cursor:not-allowed}.primary{color:#fff;background:#166534;border-color:#166534}.primary:hover{background:#14532d}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #2563eb}input,select{width:100%;color:inherit;background:#fff;border:1px solid #94a3b8;border-radius:7px;padding:10px}label{flex-direction:column;gap:6px;margin-bottom:16px;font-weight:600;display:flex}small{color:#475569;margin-top:5px;font-size:.85rem;display:block}h1{letter-spacing:-.04em;font-size:clamp(1.7rem,4vw,2.3rem);line-height:1.15}h2{font-size:1.2rem}.brand{color:#166534;letter-spacing:-.06em;font-size:2rem;font-weight:800;text-decoration:none;display:block}.brand b{color:#fff;background:#166534;border-radius:50%;place-items:center;width:44px;height:44px;display:inline-grid}.brand span{letter-spacing:.15em;margin-top:6px;font-size:.65rem;display:block}.login{max-width:520px;margin:8vh auto;padding:24px}.login>.brand{margin-bottom:28px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;margin:24px 0;padding:28px;box-shadow:0 3px 14px #1f293705}.login button{width:100%}.eyebrow{letter-spacing:.13em;color:#166534;font-size:.75rem;font-weight:700}.shell{grid-template-columns:240px 1fr;min-height:100vh;display:grid}.shell aside{background:#fff;border-right:1px solid #e2e8f0;flex-direction:column;gap:25px;padding:30px 24px;display:flex}.shell main{width:100%;min-width:0;max-width:1160px;padding:24px 40px}nav{gap:10px;display:grid}nav button{text-align:left}header{color:#475569;border-bottom:1px solid #e2e8f0;justify-content:space-between;gap:10px;padding:0 0 22px;display:flex}.tag{color:#166534;background:#eaf4ed;border-radius:6px;padding:5px 10px;font-size:.85rem;display:inline-block}.hero{color:#fff;background:#166534;border-radius:14px;padding:26px}.hero p{max-width:650px}.subtitle{color:#475569}.grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.notice{overflow-wrap:anywhere;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:14px}.error{color:#991b1b;background:#fef2f2;padding:12px}.row{border-top:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:15px;padding:16px 0;display:flex}.actions,.chips{flex-wrap:wrap;gap:10px;display:flex}.checks{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;display:grid}.check{flex-flow:wrap;align-items:center;min-height:44px;margin:4px 0;font-weight:400}.check input{flex:none;width:22px;height:22px;min-height:22px}.check small{width:100%;margin-left:30px}fieldset{border:1px solid #cbd5e1;border-radius:8px;min-width:0;margin:20px 0;padding:16px}legend{padding:0 8px;font-weight:700}@media (width<=700px){.shell{display:block}.shell aside{border-bottom:1px solid #e2e8f0;border-right:0;gap:14px;padding:18px}.shell aside .brand{font-size:1.6rem}.shell aside .brand span{display:none}nav{flex-wrap:wrap;gap:8px;display:flex}.shell aside>p{margin:0}.shell main,.card{padding:20px 16px}.grid{grid-template-columns:1fr;gap:0}.row{flex-wrap:wrap;align-items:flex-start}.login{margin:20px auto;padding:18px}.checks{grid-template-columns:1fr}}textarea{font:inherit;border:1px solid #94a3b8;border-radius:7px;width:100%;min-height:100px;padding:10px}.form-fields{border:0;margin:0;padding:0}.form-fields button{margin:4px}dd{overflow-wrap:anywhere;margin:0 0 14px}dt{font-weight:700}.row>div{overflow-wrap:anywhere;min-width:0}.actions>label{flex:1;min-width:0}.actions>span{align-self:center}button{white-space:normal;overflow-wrap:anywhere;max-width:100%}.lookup{border:1px solid #e2e8f0;border-radius:8px;margin:16px 0;padding:12px}.lookup .actions{margin-bottom:12px}.lookup small{overflow-wrap:anywhere}.table-photo-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;grid-template-columns:minmax(0,1.25fr) minmax(220px,.75fr);align-items:center;gap:20px;margin:18px 0 24px;padding:16px;display:grid}.table-photo{aspect-ratio:4/3;object-fit:contain;background:#e2e8f0;border-radius:9px;width:100%;max-height:420px;display:block}.table-photo-empty{aspect-ratio:4/3;text-align:center;color:#475569;background:linear-gradient(135deg,#e2e8f0,#f8fafc);border:1px dashed #94a3b8;border-radius:9px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:240px;padding:20px;display:flex}.table-photo-empty>span{color:#166534;font-size:2.5rem}.table-photo-empty small{max-width:260px}.table-photo-actions{justify-items:start;gap:10px;display:grid}.table-photo-picker{color:#fff;cursor:pointer;background:#166534;border:1px solid #166534;border-radius:8px;flex-direction:column;justify-content:center;gap:5px;min-height:44px;margin:0;padding:8px 14px;font-weight:700;display:inline-flex}.table-photo-picker input{color:#fff;background:0 0;border:0;width:min(100%,260px);min-height:38px;padding:5px}.table-photo-picker input::file-selector-button{color:#166534;min-height:32px;font:inherit;cursor:pointer;background:#fff;border:0;border-radius:6px;margin-right:8px;padding:4px 9px}.table-location-pin{vertical-align:baseline;margin-right:7px;font-size:1.05em;display:inline-block}.table-photo-actions>small{max-width:300px}.table-photo-panel+dl{margin-top:0}.client-payment-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;margin:20px 0;padding:16px}.client-payment-panel h3{margin:0 0 10px;font-size:1rem}.client-payment-badge{border-radius:999px;align-items:center;min-height:36px;padding:6px 12px;font-size:.88rem;font-weight:700;display:inline-flex}.client-payment-late{color:#991b1b;background:#fee2e2}.client-payment-pending{color:#92400e;background:#fef3c7}.client-payment-current{color:#166534;background:#dcfce7}.client-payment-none{color:#475569;background:#e2e8f0}.client-payment-panel p{color:#475569;margin:8px 0 0;font-size:.86rem}@media (width<=700px){.table-photo-panel{grid-template-columns:1fr;gap:14px;padding:12px}.table-photo,.table-photo-empty{min-height:190px;max-height:320px}.table-photo-actions{grid-template-columns:1fr 1fr;align-items:center}.table-photo-actions>small{grid-column:1/-1}}.home-compact-only{display:none}.compact-dashboard{color:#1f2937;max-width:820px;margin:0 auto}.compact-title-row{justify-content:space-between;align-items:end;gap:12px;margin:8px 0 20px;display:flex}.compact-title-row h1{margin:0;font-size:2rem}.compact-eyebrow{color:#166534;letter-spacing:.14em;margin:0 0 4px;font-size:.7rem;font-weight:800}.compact-date{color:#64748b;text-align:right;font-size:.88rem}.compact-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.compact-stat{background:#fff;border:1px solid #e2e8f0;border-radius:12px;min-width:0;padding:15px 16px;box-shadow:0 3px 14px #1f293705}.compact-stat>span{color:#64748b;font-size:.76rem;display:block}.compact-stat strong{overflow-wrap:anywhere;margin-top:5px;font-size:clamp(1.05rem,3vw,1.35rem);line-height:1.25;display:block}.compact-stat strong.green{color:#166534}.compact-stat strong.red{color:#b91c1c}.compact-stat small{font-size:.74rem}.compact-attention{margin-top:23px}.compact-section-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.compact-section-heading h2{margin:0;font-size:1rem}.compact-section-heading>span{color:#64748b;font-size:.75rem}.compact-attention-item{text-align:left;background:#fff;border-color:#e2e8f0;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;width:100%;margin:7px 0;padding:11px 12px;display:flex}.compact-attention-item>span:first-child{min-width:0}.compact-attention-item strong{overflow-wrap:anywhere;font-size:.88rem;display:block}.compact-attention-item small{color:#64748b;font-size:.74rem}.compact-pill{color:#166534;background:#dcfce7;border-radius:99px;flex:none;padding:4px 9px;font-size:.72rem;font-weight:700}.compact-pill.overdue{color:#92400e;background:#fef3c7}.compact-empty,.compact-loading,.compact-error{color:#64748b;font-size:.86rem}.compact-error{color:#9a3412;background:#fff7ed;border-radius:8px;padding:10px}.compact-more{color:#166534;background:0 0;border:0;margin-top:5px;padding:8px 0;font-weight:700}.mobile-home-nav,.mobile-home-sheet{display:none}@media (width<=900px){.home-compact-only{display:block}.home-desktop-only{display:none}.compact-dashboard{max-width:720px}.home-main{padding-top:20px}}@media (width<=700px){.home-main{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}.mobile-home-nav{z-index:40;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dbe3ec;justify-content:space-around;align-items:center;gap:4px;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -5px 18px #0f172a0d}.mobile-home-nav button{color:#475569;background:0 0;border:0;border-radius:9px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:1px;min-width:0;min-height:52px;padding:4px 2px;font-size:.68rem;font-weight:700;display:flex}.mobile-home-nav button span{font-size:1.1rem;line-height:1.1}.mobile-home-nav .mobile-home-new{color:#fff;background:#166534}.mobile-home-nav button:focus-visible{outline-offset:-2px}.mobile-home-sheet{z-index:39;left:10px;right:10px;bottom:calc(70px + env(safe-area-inset-bottom));background:#fff;border:1px solid #dbe3ec;border-radius:14px;max-height:min(55vh,420px);padding:16px;display:block;position:fixed;overflow:auto;box-shadow:0 12px 40px #0f172a30}.mobile-home-sheet .compact-section-heading{margin-bottom:10px}.mobile-home-sheet .compact-section-heading button{min-height:40px;padding:6px 10px}.mobile-home-sheet-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.mobile-home-sheet-links button{text-align:left;min-width:0;min-height:48px;font-size:.85rem}.compact-title-row{margin-top:4px}.compact-stats{gap:8px}.compact-stat{padding:12px}.compact-attention{margin-top:20px}}@media (width>=901px){.home-compact-only{display:none}.home-desktop-only{display:block}}@media (width<=700px){.compact-shell aside{flex-direction:row;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px}.compact-shell aside nav,.compact-shell aside>p{display:none}.compact-shell aside .brand{margin:0;font-size:1.35rem}.compact-shell aside .brand b{width:36px;height:36px}.compact-shell aside>button{width:auto;min-height:40px;padding:5px 14px}}
