*{box-sizing:border-box;margin:0;padding:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f7fa;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.app{background:#fff;flex-direction:column;width:100%;max-width:480px;height:100dvh;min-height:100svh;margin:0 auto;display:flex;overflow-x:clip}.app main{flex:1;min-height:0}.app main::-webkit-scrollbar{width:6px}.app main::-webkit-scrollbar-track{background:0 0}.app main::-webkit-scrollbar-thumb{background:#ddd;border-radius:3px}.container{flex-direction:column;gap:12px;padding:16px;display:flex}.building-levels{flex-direction:column;height:100%;min-height:0;display:flex}.levels-container{flex-direction:column;flex:1;min-height:0;padding:16px;display:flex;overflow-y:auto}.levels-list{flex-direction:column;gap:12px;width:100%;min-width:0;max-width:100%;display:flex}@media (width<=768px){.levels-container{padding:12px}}@media (width<=480px){.levels-container{padding:8px}.levels-list{gap:9px}}.loading,.empty-state{color:#64748b;text-align:center;justify-content:center;align-items:center;height:100%;font-size:16px;display:flex}.empty-state{flex-direction:column;gap:12px}.empty-state p{margin:0}.levels-container::-webkit-scrollbar{width:6px}.levels-container::-webkit-scrollbar-track{background:0 0}.levels-container::-webkit-scrollbar-thumb{background:#ddd;border-radius:3px}.levels-container::-webkit-scrollbar-thumb:hover{background:#cbd5e1}.levels-container.room-view-container{scrollbar-width:none;-ms-overflow-style:none;overflow:hidden}.levels-container.room-view-container::-webkit-scrollbar{display:none}.header{z-index:10;background:#fff;border-bottom:1px solid #e2e8f0;padding:12px 16px;position:sticky;top:0}.header-content{justify-content:space-between;align-items:center;display:flex}.header-left{align-items:center;gap:12px;display:flex}.logo{font-size:28px;line-height:1}.header-title{color:#1e293b;margin:0;font-size:20px;font-weight:600}.header-actions{align-items:center;gap:8px;display:flex}.icon-button{cursor:pointer;color:#64748b;background:0 0;border:0;border-radius:10px;place-items:center;width:34px;height:34px;padding:0;transition:background-color .2s,color .2s;display:grid}.icon-button span{line-height:1;display:block}.icon-button-add{color:#2563eb;font-size:20px;font-weight:700}.icon-button-add span{transform:translateY(-1px)}.icon-button-add:hover{background:#dbeafe}.icon-button-danger{color:#dc2626;font-size:15px}.icon-button-danger:hover{background:#fee2e2}.icon-button:disabled{cursor:not-allowed;opacity:.35}.icon-button:disabled:hover{color:#64748b;background:0 0}.icon-button:active{background:#e2e8f0}@media (width<=768px){.header-content,.header-left{min-width:0}}@media (width<=480px){.header{padding:10px 12px}.header-left{gap:9px;min-width:0}.logo{font-size:24px}.header-title{text-overflow:ellipsis;white-space:nowrap;font-size:18px;overflow:hidden}.header-actions{flex-shrink:0;gap:4px}.icon-button{width:32px;height:32px}}.level-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;width:100%;min-width:0;max-width:100%;transition:all .2s;overflow:visible}.level-card.expanded{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.level-header{background:#fff;border-radius:12px;align-items:center;gap:12px;width:100%;padding:16px;transition:background-color .2s;display:flex}.level-header-main{cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:12px;min-width:0;padding:0;display:flex}.level-toggle-button{cursor:pointer;background:0 0;border:0;flex:none;place-items:center;width:34px;height:34px;padding:0;display:grid}.level-actions{flex:none;align-items:center;gap:8px;display:flex}.level-card:hover .level-header{background-color:#f8fafc}.level-icon{flex-shrink:0;font-size:24px}.level-info{text-align:left;flex:1;min-width:0}.level-name{color:#1e293b;margin:0;font-size:16px;font-weight:600}.level-description{color:#64748b;margin:4px 0 0;font-size:13px}.toggle-icon{fill:none;stroke:#cbd5e1;stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round;color:#cbd5e1;flex-shrink:0;width:22px;height:22px;transition:transform .2s}.toggle-icon.up{transform:rotate(180deg)}.level-rooms{background:#f8fafc;border-top:1px solid #e2e8f0;border-radius:0 0 12px 12px;flex-direction:column;gap:8px;padding:12px 16px 16px;display:flex}.level-rooms .room-item{margin:0}.add-room-button{color:#2563eb;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:10px;place-items:center;width:34px;height:34px;padding:0;font-size:20px;font-weight:700;display:grid}.add-room-button span{line-height:1;display:block;transform:translateY(-1px)}.level-room-actions{flex:none;align-items:center;gap:8px;display:flex}.delete-room-button{color:#dc2626;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:10px;place-items:center;width:34px;height:34px;padding:0;font-size:15px;font-weight:700;display:grid}.delete-room-button:hover:not(:disabled){background:#fee2e2}.delete-room-button:disabled{cursor:not-allowed;opacity:.45}.report-button{color:#475569;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:10px;place-items:center;width:34px;height:34px;padding:0;font-size:16px;font-weight:700;display:grid}.report-actions{flex:none;min-width:0;position:relative}.report-actions-menu{z-index:20;background:#fff;border:1px solid #e2e8f0;border-radius:10px;min-width:120px;padding:5px;display:grid;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 30px #0f172a24}.report-actions-menu button{color:#334155;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:8px 10px;font-size:12px;font-weight:600}.report-actions-menu button:hover{background:#f1f5f9}.report-button:hover{color:#0369a1;background:#e0f2fe}.add-room-button:hover{background:#dbeafe}@media (width<=768px){.level-header{flex-wrap:nowrap;gap:7px;padding:14px;display:flex}.level-header-main{flex:auto;gap:10px}.level-toggle-button,.report-actions{flex:none}.level-actions{gap:6px}.level-room-actions{flex:none;gap:6px}.level-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.report-button,.add-room-button,.delete-room-button{width:34px;height:34px;min-height:34px}}@media (width<=480px){.level-header{gap:4px;padding:10px 8px}.level-header-main{gap:6px}.level-icon{font-size:21px}.level-name{font-size:15px}.level-description{font-size:12px}.report-button,.add-room-button,.delete-room-button{width:32px;height:32px;min-height:32px}.add-room-button{font-size:19px}.report-button,.delete-room-button{font-size:14px}.level-room-actions,.level-actions{gap:4px}.level-toggle-button{width:30px;height:30px}.toggle-icon{width:20px;height:20px}.level-rooms{gap:8px;padding:9px}}@media (width<=360px){.level-icon{font-size:18px}.level-header-main{gap:4px}.report-button,.add-room-button,.delete-room-button{width:30px;height:30px;min-height:30px}}.room-item{cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:18px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);justify-content:flex-start;align-items:center;gap:14px;width:100%;min-width:0;max-width:760px;margin:0 auto;padding:12px 14px;transition:transform .2s,background-color .2s,box-shadow .2s;display:grid}.room-right{text-align:left;grid-column:2;justify-items:start;gap:3px;width:100%;min-width:0;max-width:none;display:grid}.room-group{color:#64748b;overflow-wrap:anywhere;white-space:normal;max-width:100%;font-size:11px;line-height:1.35}.room-group-value{color:#0f172a;font-weight:700}.status-badge{color:#475569;border:1px solid #e2e8f0;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:600}.status-badge.dispatch{color:#065f46;border-color:#10b98133}.status-badge.completed{color:#92400e;border-color:#f59e0b33}.room-item:hover{background-color:#f8fafc;transform:translateY(-1px);box-shadow:0 10px 30px #0f172a0d}.room-left{grid-column:1;align-items:center;gap:12px;min-width:0;display:flex}.room-icon{flex-shrink:0;font-size:22px}.room-info{text-align:left;gap:6px;min-width:0;display:grid}.room-number{color:#0f172a;font-size:15px;font-weight:700}.room-type{color:#64748b;text-transform:uppercase;letter-spacing:.08em;font-size:11px}.room-statuses{flex-wrap:wrap;align-items:center;gap:5px;display:flex}.status-badge{letter-spacing:.04em;text-transform:uppercase;color:#2563eb;background:#dbeafe;border:1px solid #bfdbfe;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:800;line-height:1}.status-badge.pending{color:#475569}.room-fields{grid-template-columns:repeat(6,minmax(56px,72px));place-items:center start;gap:8px;width:auto;min-width:0;display:grid}.field{text-align:left;gap:4px;width:100%;min-width:0;max-width:72px;display:grid}.field-label{color:#475569;letter-spacing:.08em;font-size:10px;font-weight:700}.field-value{color:#0f172a;text-align:left;background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;width:100%;min-width:0;padding:6px 8px;font-size:12px}.field-input:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 4px #3b82f61f}@media (width<=900px){.room-fields{grid-template-columns:repeat(6,minmax(40px,56px));width:100%}}@media (width<=768px){.room-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}.room-left{width:100%}.room-right{text-align:left;justify-items:start;width:100%;max-width:none;padding-left:0}.room-fields{grid-template-columns:repeat(3,minmax(40px,1fr))}}@media (width<=480px){.room-item{border-radius:16px;gap:8px;padding:12px}.room-fields{grid-template-columns:repeat(2,minmax(40px,1fr))}.room-group{overflow-wrap:break-word;max-width:100%;font-size:11px}}.room-item.urgent{background:#fef9c3;border-color:#facc15}.room-item.urgent:hover{background:#fef08a}.room-item.completed,.room-item.completed:hover{background:#dcfce7;border-color:#86efac}.room-screen{width:100%;min-width:0;max-width:760px;height:100%;margin:0 auto;padding:0;display:flex}.room-modal{background:#fff;border:1px solid #e2e8f0;border-radius:22px;flex-direction:column;width:100%;min-height:0;max-height:100%;padding:24px;display:flex;overflow:hidden;box-shadow:0 18px 45px #0f172a0f}.room-modal-header{flex:none;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex;position:relative}.room-modal-header>div:first-child{width:100%}.room-modal-title{color:#0f172a;font-size:18px;font-weight:700}.room-modal-options-row{justify-content:center;align-items:center;margin-top:16px;padding:0 16px;display:flex}.room-modal-title-row{grid-template-columns:34px minmax(0,auto) 34px;justify-content:center;align-items:center;gap:8px;padding:0 16px;display:grid}.room-modal-nav-button{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;justify-content:center;align-items:center;width:34px;height:34px;padding:0;display:flex}.room-modal-nav-button svg{fill:none;stroke:currentColor;stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.room-modal-nav-button:hover:not(:disabled){color:#2563eb;background:#eff6ff;border-color:#93c5fd}.room-modal-nav-button:disabled{cursor:not-allowed;opacity:.35}.room-modal-presets{justify-content:center;gap:5px;display:flex}.room-modal-preset{color:#475569;cursor:pointer;background:#f8fafc;border:1px solid #cbd5e1;border-radius:7px;min-width:30px;padding:5px 7px;font-size:11px;font-weight:700;line-height:1}.room-modal-preset:hover{color:#2563eb;background:#eff6ff;border-color:#3b82f6}.room-modal-close{color:#475569;cursor:pointer;background:0 0;border:none;place-items:center;width:34px;height:34px;display:grid;position:absolute;top:0;right:0}.room-modal-close svg{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;width:20px;height:20px}.room-modal-close:hover:not(:disabled){color:#dc2626;background:#fee2e2;border-radius:10px}.room-modal-body{flex-direction:column;flex:auto;gap:12px;min-height:0;display:flex}.room-modal-scroll-area{scrollbar-width:none;-ms-overflow-style:none;flex:auto;gap:12px;min-height:0;display:grid;overflow-y:auto}.room-modal-scroll-area::-webkit-scrollbar{display:none}.room-modal-field{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;grid-template-columns:1fr 1fr;align-items:center;gap:12px;padding:14px 16px;display:grid}.room-modal-label{color:#475569;text-align:left;font-size:14px;font-weight:700}.room-modal-input{color:#0f172a;text-align:right;background:#fff;border:1px solid #cbd5e1;border-radius:12px;width:100%;min-width:0;padding:10px 12px;font-size:14px}.room-modal-input:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 4px #3b82f61f}.room-modal-shared-fields{gap:8px;display:grid}.room-modal-shared-header{color:#475569;text-align:center;grid-template-columns:1fr 1fr 30px;gap:12px;padding:0 16px;font-size:12px;font-weight:700;display:grid}.room-modal-shared-row{grid-template-columns:1fr 1fr 30px}.room-modal-shared-remove{color:#dc2626;cursor:pointer;background:0 0;border:0;font-size:20px}.room-modal-shared-remove:disabled{color:#cbd5e1;cursor:not-allowed}.room-modal-shared-add{color:#2563eb;cursor:pointer;background:#eff6ff;border:1px dashed #93c5fd;border-radius:9px;justify-self:start;padding:7px 10px;font-size:12px;font-weight:700}.room-modal-shared-width{text-align:left}.room-modal-urgent{grid-column:1/-1;width:100%;height:24px;position:relative}.room-modal-urgent-icon{font-size:15px;line-height:1;position:absolute;top:50%;right:calc(50% + 27px);transform:translateY(-50%)}.room-modal-urgent>.room-modal-toggle{position:absolute;top:0;left:50%;transform:translate(-50%)}.room-modal-toggle{cursor:pointer;background:#cbd5e1;border:0;border-radius:999px;width:42px;height:24px;padding:3px;transition:background-color .2s}.room-modal-toggle span{background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .2s;display:block;box-shadow:0 1px 3px #0f172a40}.room-modal-toggle.active{background:#eab308}.room-modal-toggle:disabled{cursor:not-allowed;opacity:.65;background:#e2e8f0}.room-modal-toggle.active span{transform:translate(18px)}.room-modal-statuses{z-index:5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;border-top:1px solid #e2e8f0;border-radius:0 0 22px 22px;flex:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:2px -24px -24px;padding:12px 24px 16px;display:grid;box-shadow:0 -12px 30px #0f172a14}.room-modal-status-row{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;justify-content:space-between;align-items:center;gap:10px;min-width:0;padding:10px 12px;font-size:12px;font-weight:700;display:flex}.room-modal-status-row span{white-space:nowrap;overflow-wrap:normal}.room-modal-input:disabled{color:#94a3b8;cursor:not-allowed;background:#e2e8f0;border-color:#e2e8f0}.room-modal-notes-field{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;gap:8px;padding:14px 16px;display:grid}.room-modal-notes{resize:vertical;color:#0f172a;width:100%;min-width:0;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.4}.room-modal-notes:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 4px #3b82f61f}.room-modal-status,.room-modal-error{text-align:center;font-size:13px}.room-modal-status{color:#64748b}.room-modal-error{color:#dc2626}@media (width<=480px){.room-screen{max-width:none}.room-modal{border-radius:18px;width:100%;padding:18px 14px}.room-modal-header{margin-bottom:10px}.room-modal-title-row,.room-modal-options-row,.room-modal-shared-header{padding-inline:8px}.room-modal-field{gap:10px;padding:11px 12px}.room-modal-statuses{padding:12px 14px max(16px, env(safe-area-inset-bottom));border-radius:0 0 18px 18px;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:2px -14px -18px}.room-modal-status-row{text-align:center;flex-direction:column;justify-content:center;padding:10px 8px}.room-modal-notes-field{padding:12px}}@media (width<=360px){.room-modal-statuses{grid-template-columns:1fr}.room-modal-urgent{grid-column:1}}.create-room-modal{gap:12px;display:grid}.create-room-level,.create-room-help{color:#64748b;font-size:12px}.create-room-level{margin-top:4px}.create-room-label{color:#334155;font-size:13px;font-weight:700}.create-room-input{color:#0f172a;border:1px solid #cbd5e1;border-radius:12px;width:100%;padding:11px 12px;font-size:14px}.create-room-input:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 4px #3b82f61f}.create-room-types{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.create-shared-fields{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;gap:8px;padding:12px;display:grid}.create-shared-fields-header,.create-shared-field{grid-template-columns:1fr 1fr 30px;align-items:center;gap:8px;display:grid}.create-shared-fields-header{color:#64748b;font-size:11px;font-weight:700}.create-shared-field input{border:1px solid #cbd5e1;border-radius:10px;min-width:0;padding:8px 9px}.create-shared-field button{color:#dc2626;cursor:pointer;background:0 0;border:0;font-size:18px}.create-shared-field button:disabled{color:#cbd5e1;cursor:not-allowed}.create-shared-add{color:#2563eb;cursor:pointer;background:#eff6ff;border:1px dashed #93c5fd;border-radius:9px;justify-self:start;padding:7px 10px;font-size:12px;font-weight:700}.create-room-type,.create-room-submit{cursor:pointer;border-radius:12px;font-weight:700}.create-room-type{color:#475569;background:#f8fafc;border:1px solid #cbd5e1;padding:9px 12px}.create-room-type.selected{color:#2563eb;background:#eff6ff;border-color:#2563eb}.create-room-submit{color:#fff;background:#2563eb;border:0;margin-top:4px;padding:11px 16px}.create-room-submit:disabled{cursor:wait;opacity:.65}@media (width<=480px){.create-room-types{gap:6px}.create-room-type{padding-inline:7px;font-size:12px}.create-shared-fields{padding:10px}}.delete-room-modal{gap:12px;display:grid}.delete-room-level{color:#64748b;margin-top:4px;font-size:12px}.delete-room-select-all,.delete-room-option{cursor:pointer;align-items:center;gap:10px;display:flex}.delete-room-select-all{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:12px;padding:11px 12px;font-size:13px;font-weight:700}.delete-room-list{gap:7px;max-height:min(360px,45dvh);display:grid;overflow-y:auto}.delete-room-option{background:#f8fafc;border:1px solid #e2e8f0;border-radius:11px;padding:10px 12px}.delete-room-option:has(input:checked){background:#fff1f2;border-color:#fca5a5}.delete-room-number{color:#0f172a;flex:1;min-width:0;font-size:13px;font-weight:700}.delete-room-type{color:#64748b;letter-spacing:.06em;text-transform:uppercase;font-size:10px}.delete-room-submit{color:#fff;cursor:pointer;background:#dc2626;border:0;border-radius:12px;padding:11px 16px;font-weight:700}.delete-room-submit:disabled{cursor:not-allowed;opacity:.5}.level-modal{gap:12px;display:grid}.level-modal-label{color:#334155;font-size:13px;font-weight:700}.level-modal-textarea{resize:vertical;color:#0f172a;width:100%;min-width:0;font:inherit;border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px;font-size:14px}.level-modal-textarea:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 4px #3b82f61f}.level-modal-warning{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:12px;margin:0;padding:11px 12px;font-size:13px;line-height:1.45}.level-modal-list{gap:8px;max-height:min(360px,44vh);display:grid;overflow-y:auto}.level-modal-option{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;display:grid}.level-modal-option.selected{background:#fff7f7;border-color:#ef4444}.level-modal-option small{color:#64748b;font-size:11px}.level-modal-delete{color:#fff;cursor:pointer;background:#dc2626;border:0;border-radius:12px;padding:11px 16px;font-weight:700}.level-modal-delete:disabled{cursor:not-allowed;opacity:.45}@media (width<=480px){.level-modal-option{padding:10px}}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%;margin:0;overflow-x:hidden}body{color:#f8fafc;background:#020617;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,textarea,select{font:inherit}button{touch-action:manipulation}@media (width<=768px){input,textarea,select{font-size:16px!important}}
