*{box-sizing:border-box}body{margin:0;background:#f8fafc;color:#0f172a;font:16px system-ui,sans-serif}header{display:flex;align-items:center;gap:14px;background:#0a1628;color:#fff;padding:calc(18px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 18px max(20px,env(safe-area-inset-left));border-radius:0 0 22px 22px}header img{width:48px;border-radius:12px}header strong{font-size:25px;color:#60a5fa}header span{color:#f6b51b}main{max-width:640px;margin:auto;padding:20px max(16px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}article,form{background:#fff;border:1px solid #dbe3ee;border-radius:16px;padding:16px;margin:12px 0}button,input,select{min-height:48px;font:inherit;border-radius:12px;padding:9px 12px}button{border:1px solid #cbd5e1;background:#fff;color:#174096;font-weight:650;cursor:pointer}button[aria-pressed="true"],form button{background:#1d4ed8;color:#fff}input,select{width:100%;border:1px solid #94a3b8;margin:4px 0 12px}nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}p{line-height:1.5}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #60a5fa}summary{padding:12px 0;cursor:pointer}h1{font-size:24px}
@font-face{font-family:PaCondoIcons;src:url(./MaterialCommunityIcons.ttf) format("truetype");font-display:block}
.mdi{font-family:PaCondoIcons;font-weight:normal;line-height:1;font-size:24px;display:inline-block}
.resident-mode{background:#f5f7f9}
.resident-mode>header{display:none}
.resident-mode main{padding:0 0 calc(76px + env(safe-area-inset-bottom));min-height:100dvh}
.resident-header{padding:calc(16px + env(safe-area-inset-top)) 20px 15px;background:white;border-bottom:1px solid #dfe6ef}
.resident-header h1,.resident-hero h1{margin:0;line-height:1.2}
.resident-header p,.resident-hero p{margin:5px 0 0;color:#64748b}
.resident-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:0 0 20px 20px;padding:calc(18px + env(safe-area-inset-top)) 24px 24px;background:#11182b;color:#fff}
.resident-hero::before,.resident-hero::after{content:"";position:absolute;z-index:-1;border-radius:50%;background:#14294d}
.resident-hero::before{width:220px;height:220px;right:-70px;top:-80px}
.resident-hero::after{width:80px;height:80px;right:28px;bottom:0;background:#142e57}
.resident-hero strong{font-size:22px;color:#2563eb}.resident-hero strong span{color:#d59b23}
.resident-hero p{color:#cbd5e1;margin:12px 0 8px}
.unit-chip,.condo-chip,.resident-chip{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:9px 14px;font-weight:650;color:#334155}
.unit-chip{margin:12px 20px 0;background:white;border:1px solid #dfe6ef}
.unit-chip .mdi,.condo-chip .mdi,.resident-chip .mdi{font-size:18px}
.dashboard-grid{margin:12px 20px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dashboard-card{min-height:100px;border:1px solid #dfe6ef;border-radius:16px;background:white;padding:12px;box-shadow:0 1px 2px #0f172a18}
.dashboard-card-top{display:flex;align-items:center;justify-content:space-between;color:#2563eb;font-size:22px}
.dashboard-card h2{font-size:15px;line-height:1.2;margin:10px 0 0;overflow-wrap:anywhere}
.dashboard-card p{font-size:13px;line-height:1.3;margin:5px 0 0;color:#64748b}
.empty-state{text-align:center;padding:72px 24px 24px;color:#64748b}
.empty-state .mdi{font-size:58px}
.empty-state h2{font-size:22px;color:#0f172a;margin:12px 0}
.empty-state p{max-width:290px;margin:0 auto}
.history-filters{display:flex;gap:8px;padding:12px 20px;flex-wrap:wrap}
.history-filters button{flex:1 0 auto;border-radius:999px;color:#64748b;font-size:14px}
.history-filters button[aria-pressed="true"]{color:#fff}
.clock-open{color:#10b981}
.clock-closed{color:#ef4444}
.administration-status{color:#64748b;font-size:13px}
.resident-mode article,.resident-mode form{margin:12px 20px}
.add-person{display:flex;align-items:center;justify-content:center;gap:9px;width:calc(100% - 40px);margin:10px 20px 0;background:#10b981;color:#fff;border-color:transparent}
.profile-identity,.profile-section{padding:24px 20px;background:white;border-bottom:1px solid #dfe6ef}
.profile-identity{text-align:center;overflow-wrap:anywhere}
.profile-avatar{display:grid;place-items:center;width:100px;height:100px;margin:4px auto 18px;border-radius:50%;background:#3b82f6;color:#fff;font-weight:700;font-size:42px}
.profile-identity h2{margin:0;font-size:24px}.profile-identity p{color:#64748b}
.condo-chip,.resident-chip{display:flex;width:fit-content;margin:9px auto 0;background:#eff4f8}
.resident-chip{background:#e0f5ee;color:#087f5b}
.profile-section h2{margin:0 0 12px;color:#64748b;font-size:16px;text-transform:uppercase;letter-spacing:.05em}
.profile-row{display:flex;align-items:center;gap:12px;padding:14px;background:#f5f7f9;border:1px solid #dfe6ef;border-radius:14px}
.resident-mode nav{position:fixed;z-index:2;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,640px);grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#fff;border-top:1px solid #dfe6ef}
.resident-mode nav button,.resident-mode nav button[aria-pressed="true"]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:58px;border:0;background:#fff;color:#64748b;padding:6px 2px;font-size:clamp(10px,3vw,13px)}
.resident-mode nav button[aria-pressed="true"]{color:#2563eb}
.resident-mode nav button>*{pointer-events:none}
.dashboard-card{text-align:left;color:#0f172a;display:flex;flex-direction:column;justify-content:center}
.dashboard-card-top{width:100%}
.dashboard-card-title{font-size:15px;line-height:1.25;margin-top:10px;overflow-wrap:anywhere}
.dashboard-card:disabled{cursor:default}
.parcel-list{scroll-margin-top:12px}
.profile-avatar{position:relative;border:0;padding:0}
.profile-avatar-image{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover}
.profile-camera{position:absolute;right:-2px;bottom:-2px;background:#10b981;color:white;border:3px solid white;border-radius:50%;width:36px;height:36px;display:grid;place-items:center}
.profile-camera .mdi{font-size:19px}
.profile-edit{border:0;color:#64748b;font-size:14px;background:transparent}
button.profile-row{width:100%;text-align:left;color:#0f172a}
.profile-row .mdi{color:#2563eb}
.resident-sheet{color:#0f172a;position:fixed;inset:auto 0 0;width:min(100%,640px);max-width:none;max-height:85dvh;margin:0 auto;border:0;border-radius:20px 20px 0 0;padding:16px max(20px,env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));overflow:auto}
.resident-sheet::backdrop{background:#0f172a80}
.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sheet-heading h2{margin:0;font-size:20px}
.resident-sheet form{margin:12px 0;padding:0;border:0}
.sheet-row{padding:12px 0;border-bottom:1px solid #dfe6ef}
.sheet-row p{margin:4px 0 0;color:#64748b}
.administration-content a{display:inline-block;margin-top:16px;color:#1d4ed8}
.prealert-dialog,.status-legend{inset:0;width:min(calc(100% - 40px),460px);max-height:calc(100dvh - max(40px,env(safe-area-inset-top) + env(safe-area-inset-bottom)));margin:auto;border-radius:22px;padding:20px;background:#fff}
.prealert-dialog::backdrop,.status-legend::backdrop{background:#0f172a9e}
.prealert-dialog .sheet-heading{justify-content:flex-start;gap:12px}
.prealert-dialog .sheet-heading small,.administration-screen .sheet-heading small{display:block;margin-top:4px;color:#64748b;font-size:14px;font-weight:400;line-height:1.35}
.prealert-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:12px;background:#eff6ff;color:#2563eb}
.prealert-dialog form{margin:20px 0 0}
.prealert-dialog label,.prealert-units>strong{display:block;margin-top:14px;color:#334155;font-size:14px;font-weight:700}
.prealert-dialog label input,.prealert-dialog textarea{width:100%;margin:6px 0 0;border:1px solid #cbd5e1;border-radius:12px;padding:11px 13px;color:#0f172a;font:400 16px system-ui,sans-serif}
.prealert-dialog textarea{display:block;min-height:72px;resize:vertical}
.prealert-unit{padding:12px 10px;border-radius:10px;background:#f5f7f9;color:#475569;font-size:14px}
.prealert-unit-options,.prealert-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.prealert-unit-options button[aria-pressed="true"]{background:#eff6ff;color:#1d4ed8;border-color:#2563eb}
.prealert-note{display:block;margin-top:7px;color:#64748b;line-height:1.35}
.prealert-actions{margin-top:18px}
.prealert-actions button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;color:#475569}
.prealert-actions button[type="submit"]{flex:1.4;background:#2563eb;color:#fff}
.prealert-actions .mdi{font-size:18px}
.prealert-dialog [role="status"]:empty{display:none}
.status-legend{width:min(calc(100% - 48px),440px);border:1px solid #dfe6ef;box-shadow:0 14px 32px #0f172a38}
.status-legend .sheet-heading{padding-bottom:14px;border-bottom:1px solid #dfe6ef}
.status-legend .sheet-heading button{display:grid;place-items:center;width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:#eff4f8;color:#64748b}
.legend-item{display:flex;gap:12px;align-items:flex-start;margin-top:17px}
.legend-icon{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:8px}
.legend-icon .mdi{font-size:16px}
.legend-awaiting_labeling{background:#a855f720;color:#a855f7}
.legend-pending{background:#f59e0b20;color:#f59e0b}
.legend-collected{background:#10b98120;color:#10b981}
.legend-returned{background:#ef444420;color:#ef4444}
.legend-copy p{margin:2px 0 0;color:#64748b;font-size:14px;line-height:1.35}
.administration-screen{inset:0;width:min(100%,640px);height:100dvh;max-height:none;margin:0 auto;padding:0;border-radius:0;background:#f5f7f9}
.administration-screen .sheet-heading{position:sticky;top:0;z-index:1;justify-content:flex-start;padding:calc(12px + env(safe-area-inset-top)) 16px 14px;background:#fff;border-bottom:1px solid #dfe6ef}
.administration-screen .sheet-heading h2{font-size:clamp(18px,5vw,22px)}
.administration-screen .sheet-heading h2 .mdi{color:#3b82f6;font-size:20px;margin-right:8px;vertical-align:middle}
.administration-screen .sheet-heading small{margin-left:28px}
.administration-screen .sheet-heading button{order:-1;min-width:44px;padding:0;border:0;color:#0f172a}
.administration-content{padding:20px max(20px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
.hours-banner,.hours-info{display:flex;align-items:center;gap:12px;border-radius:14px;padding:16px;margin-bottom:24px}
.hours-open{background:#10b98120;color:#047857}.hours-open>.mdi{color:#10b981}
.hours-closed{background:#ef444420;color:#b91c1c}.hours-closed>.mdi{color:#ef4444}
.hours-copy p,.hours-info p{margin:3px 0 0;color:#64748b;font-size:14px}
.hours-heading{display:flex;align-items:center;gap:8px;margin:0 0 12px}
.hours-heading .mdi{color:#3b82f6;font-size:20px}.closure-heading .mdi{color:#f59e0b}
.hours-heading h3{margin:0}
.weekly-schedule{overflow:hidden;border:1px solid #dfe6ef;border-radius:16px;background:#fff;margin-bottom:24px}
.weekly-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:14px 16px;color:#475569;font-size:15px}
.weekly-row+.weekly-row{border-top:1px solid #dfe6ef}
.weekly-today{background:#eff6ff;color:#0f172a}.weekly-time{white-space:nowrap;color:#64748b;font-weight:700}
.hours-info,.administration-content .hours-whatsapp{display:flex;background:#fff;color:#64748b;margin:0 0 12px}
.hours-whatsapp .hours-copy{flex:1}.hours-whatsapp>.mdi:first-child{color:#25d366}
