:root{font-synthesis:none;text-rendering:optimizelegibility;--background:#eef3f6;--surface:#fff;--text:#14242d;--muted:#667a85;--line:#d4dee4;--brand:#0c5b74;--brand-dark:#073e50;--green:#0c7a57;--red:#bd2d24;--yellow:#a97800;--shadow:0 10px 28px #153a491c;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans JP,Hiragino Kaku Gothic ProN,Yu Gothic,sans-serif}*{box-sizing:border-box}body{background:var(--background);color:var(--text);margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.app-header{z-index:30;color:#fff;background:linear-gradient(135deg, var(--brand-dark), var(--brand));justify-content:space-between;align-items:center;gap:12px;min-height:64px;padding:10px 18px;display:flex;position:sticky;top:0;box-shadow:0 4px 18px #0000002e}.app-title{letter-spacing:.04em;font-size:21px;font-weight:900}.app-subtitle{opacity:.82;margin-top:2px;font-size:12px}.header-brand{align-items:center;gap:7px;min-width:0;display:flex}.header-brand>img{object-fit:contain;filter:drop-shadow(0 2px 2px #00000038);flex:none;width:44px;height:44px}.header-badges{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.header-room-identity{text-align:center;justify-content:center;align-items:center;gap:12px;min-width:0;line-height:1.15;display:flex}.header-room-identity strong{text-overflow:ellipsis;white-space:nowrap;max-width:min(42vw,480px);font-size:14px;overflow:hidden}.header-room-identity button{color:#fff;white-space:nowrap;background:#ffffff24;border:1px solid #ffffff8c;border-radius:999px;padding:5px 9px;font-size:13px;font-weight:900}.header-room-identity button:hover{background:#ffffff42}.sync-badge,.mode-badge,.incident-label{white-space:nowrap;border-radius:999px;align-items:center;padding:6px 10px;font-size:12px;font-weight:800;display:inline-flex}.archive-badge{color:#fff4ce;white-space:nowrap;background:#7d4b009e;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900}.sync-badge,.mode-badge{color:#fff;background:#ffffff24}.state-共有済み:before{content:"●";color:#75e1ad;margin-right:6px}.state-未送信あり:before,.state-接続中:before{content:"●";color:#ffe18a;margin-right:6px}.state-オフライン:before,.state-エラー:before{content:"●";color:#ff9e96;margin-right:6px}.layout{grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 64px);display:grid}.side-nav{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;height:calc(100vh - 64px);padding:18px 12px;display:flex;position:sticky;top:64px}.side-nav button{width:100%;color:var(--text);text-align:left;background:0 0;border:0;border-radius:11px;margin:4px 0;padding:12px 14px;font-weight:800}.side-nav button:hover{background:#edf4f6}.side-nav button.active{color:var(--brand-dark);background:#e3f0f4}.side-nav .side-nav-leave{color:#9f2e27;text-align:center;background:#fff6f4;border:1px solid #efc4bf;margin-top:auto}.side-nav .side-nav-leave:hover{background:#fde9e5}.content{min-width:0;padding:24px}.page-heading{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px;display:flex}h1{margin:0;font-size:28px}h2{margin-top:0;font-size:19px}.page-heading p{color:var(--muted);margin:6px 0 0}.incident-label{color:var(--brand-dark);background:#e1eef3;font-size:20px}.input-section .incident-label{display:none}.two-columns{grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:16px;display:grid}.panel-card,.loading-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;padding:18px}.loading-card{color:var(--muted)}.form-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}label{gap:7px;margin-bottom:13px;font-size:14px;font-weight:800;display:grid}input,select,textarea{width:100%;color:var(--text);background:#fff;border:1px solid #b9c8d0;border-radius:10px;outline:none;padding:11px 12px}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #0c5b7421}textarea{resize:vertical;min-height:145px;line-height:1.6}.priority-fieldset{border:0;gap:9px;margin:2px 0 14px;padding:0;display:flex}.priority-fieldset legend{margin-bottom:7px;font-size:14px;font-weight:800}.priority-option{border:1px solid var(--line);border-radius:10px;grid-auto-flow:column;justify-content:center;align-items:center;min-width:95px;padding:10px;display:flex}.priority-option input{width:auto}.priority-重要{background:#fff8d8}.priority-緊急{background:#fff0ee}.action-row,.filter-row{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.primary-button,.secondary-button,.scenario-button,.danger-button{border:0;border-radius:11px;padding:11px 16px;font-weight:900}.primary-button{color:#fff;background:var(--brand)}.secondary-button{color:var(--brand-dark);background:#e6eef2}.scenario-button{color:#fff;background:var(--green);width:100%;margin-top:14px}.danger-button{color:#fff;background:var(--red)}button:disabled{opacity:.5;cursor:not-allowed}.info-box,.empty-message{color:#31596a;background:#edf6fa;border:1px solid #c7dee9;border-radius:11px;margin-top:15px;padding:12px;line-height:1.6}.info-box p{margin:6px 0 0}.error-banner{color:#7e1f18;background:#fff0ee;border:1px solid #e9aaa4;border-radius:11px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:12px 14px;display:flex}.error-banner button{color:#7e1f18;background:0 0;border:0;font-weight:800}.filter-row{margin-bottom:13px}.timeline-tabs{gap:6px;margin:0 0 8px;display:flex;overflow-x:auto}.timeline-heading-actions{align-items:center;gap:6px;display:flex}.timeline-heading-actions .secondary-button,.timeline-heading-actions .primary-button{white-space:nowrap}.timeline-tabs button{color:#36515e;background:#fff;border:1px solid #b9c8d0;border-radius:9px;flex:none;padding:8px 14px;font-size:13px;font-weight:900}.timeline-tabs button.active{border-color:var(--brand);color:#fff;background:var(--brand)}.filter-row input,.filter-row select{width:auto;min-width:155px}.table-container{border:1px solid var(--line);border-radius:12px;overflow:auto}table{border-collapse:collapse;width:100%;min-width:1120px}th,td{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:10px 11px}th{color:#506570;background:#edf3f5;font-size:12px;position:sticky;top:0}td{font-size:13px;line-height:1.5}.row-重要 td{background:#fff8d8}.row-緊急 td{background:#ffe9e6}.empty-cell{color:var(--muted);text-align:center;padding:30px}.tag{color:#40545f;white-space:nowrap;background:#e8eef1;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;display:inline-block}.tag-重要{color:#685300;background:#ffef9f}.tag-緊急{color:#8b1e16;background:#ffd4d0}.tag-完了{color:#0a613e;background:#d4f0e1}.stat-grid{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px;display:grid}.stat-card{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:14px;padding:16px}.stat-card strong{font-size:30px;display:block}.stat-card span{color:var(--muted);font-size:12px}.dashboard-columns{grid-template-columns:1fr 1fr}.alert-card{border-left:6px solid var(--red);background:#fff1ef;border-radius:10px;margin-top:10px;padding:12px 13px}.alert-重要{background:#fff8dc;border-left-color:#ce9d00}.alert-card p{margin:5px 0}.alert-card small,.task-row small{color:var(--muted);margin-top:4px;display:block}.task-row{border-bottom:1px solid var(--line);grid-auto-flow:column;align-items:flex-start;gap:10px;padding:11px 0;display:flex}.task-row input{width:auto;margin-top:3px}.settings-list{margin:0 0 18px}.settings-list div{border-bottom:1px solid var(--line);grid-template-columns:120px 1fr;padding:10px 0;display:grid}.settings-list dt{color:var(--muted);font-weight:800}.settings-list dd{overflow-wrap:anywhere;margin:0;font-weight:800}.settings-list .room-identity-value{font-size:1.65em;line-height:1.1}.settings-list .join-code-value{letter-spacing:.09em}.setup-steps{padding-left:22px;line-height:1.9}code{background:#eef1f3;border-radius:5px;padding:2px 6px}.bottom-nav{display:none}.settings-note{color:var(--muted);margin:0 0 12px;font-size:13px;line-height:1.6}.area-editor{gap:8px;display:grid}.area-editor-row{grid-template-columns:minmax(0,1fr) auto;gap:7px;display:grid}.area-editor-row input{padding:9px 10px}.area-editor-row button{color:#7e1f18;background:#fbe5e2;border:0;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:800}.area-editor-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.timeline-tab-editor{gap:6px;display:grid}.timeline-tab-editor>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;display:grid}.timeline-tab-editor input,.timeline-tab-editor select{min-width:0;padding:7px;font-size:11px}.configured-area-list{flex-wrap:wrap;gap:7px;display:flex}.configured-area-list span{color:var(--brand-dark);background:#e3f0f4;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:800}.table-edit-button{color:var(--brand-dark);background:#dcecf2;border:0;border-radius:6px;padding:4px 7px;font-size:10px;font-weight:900}.table-history-button{color:#624918;background:#fff1c9;border:0;border-radius:6px;padding:4px 7px;font-size:10px;font-weight:900}.table-actions{white-space:nowrap;justify-content:center;gap:3px;display:flex}.timeline-photo-thumbnail{color:#91400b;background:#fff1e5;border:1px solid #d88933;border-radius:7px;gap:3px;padding:3px;font-size:9px;font-weight:900;line-height:1.1;display:grid}.timeline-photo-thumbnail img{object-fit:cover;border-radius:4px;width:48px;height:34px;display:block}.audit-modal{background:#fff;border-radius:16px;width:min(620px,100%);max-height:calc(100vh - 36px);padding:20px;overflow:auto;box-shadow:0 24px 70px #0000004d}.audit-list{gap:8px;margin:0;padding-left:22px;display:grid}.audit-list li{border-bottom:1px solid var(--line);gap:3px;padding:8px;display:grid}.audit-list span{color:var(--muted);font-size:12px}.modal-backdrop{z-index:100;background:#071e2894;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.edit-modal{background:#fff;border-radius:16px;width:min(820px,100%);max-height:calc(100vh - 18px);padding:12px;overflow:auto;box-shadow:0 24px 70px #0000004d}.edit-modal-heading{justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:15px;display:flex}.edit-modal-heading h2{margin:0}.edit-modal-heading p{color:var(--muted);margin:4px 0 0;font-size:12px}.edit-modal-heading>button{color:var(--muted);background:0 0;border:0;font-size:26px;line-height:1}.edit-modal textarea{min-height:68px;max-height:78px;line-height:1.35}.edit-modal .form-row{gap:7px}.edit-modal label{gap:3px;margin-bottom:6px;font-size:12px}.edit-modal input,.edit-modal select{padding:7px;font-size:12px}.edit-modal .priority-fieldset{margin:0 0 6px}.edit-modal .priority-option{min-width:80px;padding:6px}.edit-modal .edit-photos{margin-top:6px}.edit-modal-actions{background:#fff;justify-content:flex-end;gap:8px;padding:8px 0 0;display:flex;position:sticky;bottom:-12px}@media (width>=901px){.app-header{min-height:40px;padding:5px 12px}.app-title{font-size:16px}.header-room-identity strong{font-size:13px}.header-room-identity button{padding:4px 8px;font-size:11px}.app-subtitle{margin-top:0;font-size:9px}.header-brand>img{width:40px;height:40px}.sync-badge,.mode-badge{padding:4px 8px;font-size:10px}.layout{grid-template-columns:132px minmax(0,1fr);min-height:calc(100vh - 40px)}.side-nav{height:calc(100vh - 40px);padding:8px 6px;top:40px}.side-nav button{border-radius:7px;margin:2px 0;padding:8px 7px;font-size:12px}.side-nav .side-nav-leave{margin-top:auto}.content{padding:10px 12px}.timeline-section .page-heading{align-items:center;margin-bottom:8px}.timeline-section .page-heading h1{font-size:20px}.timeline-section .page-heading p{margin-top:2px;font-size:11px}.timeline-section .page-heading .primary-button{padding:7px 11px;font-size:12px}.timeline-section .timeline-heading-actions .secondary-button{padding:7px 10px;font-size:11px}.timeline-section .timeline-tabs{margin-bottom:5px}.timeline-section .timeline-tabs button{border-radius:7px;padding:5px 9px;font-size:11px}.timeline-panel{border-radius:10px;padding:8px}.timeline-panel .filter-row{flex-wrap:nowrap;gap:6px;margin-bottom:7px}.timeline-panel .filter-row input,.timeline-panel .filter-row select{border-radius:7px;width:auto;min-width:0;padding:6px 8px;font-size:11px}.timeline-panel .filter-row input{width:min(250px,24vw)}.timeline-panel .filter-row select{width:130px}.timeline-panel .filter-row .secondary-button{white-space:nowrap;border-radius:7px;padding:7px 10px;font-size:11px}.timeline-panel .table-container{border-radius:7px;max-height:calc(100vh - 132px)}.timeline-panel table{table-layout:fixed;width:100%;min-width:1090px}.timeline-panel th,.timeline-panel td{overflow-wrap:anywhere;padding:4px 5px;font-size:11px;line-height:1.25}.timeline-panel th{font-size:11px}.timeline-panel tbody tr{height:38px}.timeline-panel .entry-content-text{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.timeline-panel th:first-child{width:42px}.timeline-panel th:nth-child(2){width:52px}.timeline-panel th:nth-child(3){width:78px}.timeline-panel th:nth-child(4){width:92px}.timeline-panel th:nth-child(5){width:100px}.timeline-panel th:nth-child(6){width:auto}.timeline-panel th:nth-child(7){width:56px}.timeline-panel th:nth-child(8){width:86px}.timeline-panel th:nth-child(9){width:56px}.timeline-panel th:nth-child(10){width:66px}.timeline-panel th:nth-child(11){width:68px}.timeline-panel th:nth-child(12){width:60px}.timeline-panel th:nth-child(13){width:46px}.timeline-panel .tag{padding:3px 5px;font-size:9px}.timeline-panel .timeline-photo-thumbnail img{width:48px;height:34px}.timeline-panel .entry-photo-link img{width:70px;height:48px}}@media (width<=900px){.layout{display:block}.side-nav{display:none}.content{padding:15px 13px 86px}.two-columns,.dashboard-columns,.form-row{grid-template-columns:1fr}.page-heading{flex-direction:column;align-items:flex-start}h1{font-size:24px}.stat-grid{grid-template-columns:1fr 1fr}.filter-row input,.filter-row select{width:100%}.priority-fieldset{grid-template-columns:repeat(3,1fr);display:grid}.priority-option{min-width:0}.bottom-nav{z-index:40;padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--line);background:#fff;grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -5px 18px #0000001f}.bottom-nav button{color:#536873;background:#fff;border:0;padding:11px 4px;font-size:12px;font-weight:900}.bottom-nav button.active{color:var(--brand);background:#e8f2f5}.edit-modal{padding:15px}.edit-modal .form-row{grid-template-columns:1fr}}.voice-button{color:#fff;background:#6e3bb4;border:0;border-radius:11px;padding:11px 16px;font-weight:900}.photo-input-block{flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px;display:flex}.camera-input{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.camera-button{color:#fff;background:#d05b16;border:0;border-radius:11px;padding:11px 16px;font-weight:900}.photo-library-button{color:#fff;background:#277a52;border:0;border-radius:11px;padding:11px 16px;font-weight:900}.entry-submit-button{background:#087fa0}.input-action-row .entry-submit-button,.input-action-row .voice-button,.input-action-row .camera-button,.input-action-row .photo-library-button,.edit-photo-actions .camera-button,.edit-photo-actions .photo-library-button{letter-spacing:.02em;justify-content:center;align-items:center;gap:5px;font-size:15px;font-weight:900;display:inline-flex;box-shadow:0 2px 5px #12303e33}.action-icon{font-size:1.45em;line-height:.8}.photo-help{color:var(--muted);font-size:12px}.photo-preview{border:1px solid var(--line);background:#f6f9fa;border-radius:12px;flex-basis:100%;width:min(100%,420px);padding:8px;position:relative}.photo-preview-list{flex-wrap:wrap;gap:8px;margin:7px 0 0;display:flex}.photo-preview-list .photo-preview{flex-basis:128px;width:128px;margin:0}.photo-indicator{color:#91400b;white-space:nowrap;background:#fff1e5;border:1px solid #d88933;border-radius:7px;padding:5px 7px;font-size:10px;font-weight:900}.photo-viewer-modal{background:#fff;border-radius:16px;width:min(820px,100%);max-height:calc(100vh - 36px);padding:20px;overflow:auto;box-shadow:0 24px 70px #0000004d}.photo-viewer-stage{position:relative}.photo-viewer-image{object-fit:contain;background:#101b20;border-radius:10px;width:100%;max-height:min(66vh,640px);display:block}.photo-nav-arrow{color:#fff;background:#00000080;border:0;border-radius:10px;width:42px;height:52px;font-size:38px;line-height:1;position:absolute;top:50%;transform:translateY(-50%)}.photo-nav-arrow.previous{left:8px}.photo-nav-arrow.next{right:8px}.photo-viewer-controls{justify-content:center;align-items:center;gap:12px;margin-top:10px;font-size:13px;font-weight:800;display:flex}.photo-viewer-controls button{color:var(--brand-dark);background:#e6eef2;border:0;border-radius:8px;padding:7px 10px;font-weight:900}.photo-viewer-thumbnails{gap:8px;margin-top:10px;display:flex;overflow-x:auto}.photo-viewer-thumbnails button{background:0 0;border:2px solid #0000;border-radius:7px;padding:2px}.photo-viewer-thumbnails button.active{border-color:var(--brand)}.photo-viewer-thumbnails img{object-fit:cover;border-radius:4px;width:70px;height:52px;display:block}.edit-photos{margin-top:14px}.edit-photo-actions{gap:8px;margin-top:7px;display:flex}.edit-photo-actions .camera-button,.edit-photo-actions .photo-library-button{padding:8px 12px;font-size:13px}.photo-preview img{object-fit:contain;border-radius:8px;width:100%;max-height:280px;display:block}.photo-preview button{color:#fff;background:#7e1f18e6;border:0;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:800;position:absolute;top:15px;right:15px}.photo-preview .photo-download-button{background:#0c5b74eb;left:15px;right:auto}.entry-photo-link{width:fit-content;margin-top:8px;display:block}.entry-photo-link img{border:1px solid var(--line);object-fit:cover;border-radius:7px;width:92px;height:68px;display:block}.voice-button.recording{background:var(--red);animation:1.2s ease-in-out infinite recording-pulse}.voice-help{color:#5b4a12;background:#fff9df;border:1px solid #d9cfab;border-radius:10px;margin-top:12px;padding:11px 12px;font-size:13px;line-height:1.6}@keyframes recording-pulse{0%,to{opacity:1}50%{opacity:.72}}.room-gate-shell{background:linear-gradient(#eaf2f6 0%,#f8fbfc 100%);place-items:center;min-height:100vh;padding:24px;display:grid}.room-gate-card{background:#fff;border-radius:24px;gap:18px;width:min(560px,100%);padding:28px;display:grid;box-shadow:0 18px 55px #16364824}.room-gate-brand{justify-content:center;align-items:center;gap:14px;display:flex}.room-gate-brand>img{object-fit:contain;filter:drop-shadow(0 7px 12px #073e5033);flex:none;width:150px;height:150px}.room-gate-brand .app-title{color:var(--brand-dark);font-size:28px}.room-gate-lead{color:#526673;margin:0}.room-mode-tabs{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.room-mode-tabs button{background:#eef4f7;border:1px solid #b7c8d1;border-radius:12px;padding:12px;font-weight:700}.room-mode-tabs button.active{color:#fff;background:#1f566f;border-color:#1f566f}.room-gate-card label{gap:7px;font-weight:700;display:grid}.room-gate-card input,.room-gate-card select{box-sizing:border-box;background:#fff;border:1px solid #b9c8d0;border-radius:12px;width:100%;padding:13px 14px;font-size:1rem}.owned-room-list{border:1px solid var(--line);background:#f5f9fa;border-radius:11px;gap:6px;padding:10px;display:grid}.owned-room-list>strong{font-size:13px}.owned-room-list>span{color:var(--muted);font-size:12px}.owned-room-list button{color:var(--brand-dark);text-align:left;background:#fff;border:1px solid #c6d8df;border-radius:8px;gap:2px;padding:8px;font-weight:800;display:grid}.owned-room-list small{color:var(--muted);font-size:11px;font-weight:700}.backup-button{color:#fff;background:#405bb7;border:0;border-radius:11px;padding:11px 16px;font-weight:900}.backup-restore-button{color:#34498d;background:#f0f3ff;border:1px solid #7c8ed1;border-radius:11px;padding:11px 16px;font-weight:900}.member-role-list{gap:7px;display:grid}.member-role-list>div{border:1px solid var(--line);border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:8px;display:flex}.member-role-list span{min-width:0;display:grid}.member-role-list small{color:var(--muted);font-size:11px}.member-role-list select{border:1px solid var(--line);border-radius:7px;width:100px;padding:6px;font-weight:800}@media (width>=901px){.input-section .page-heading{align-items:center;margin-bottom:7px}.input-section .page-heading h1{font-size:20px}.input-section .page-heading p{margin-top:1px;font-size:11px}.input-section .incident-label{padding:4px 8px;font-size:10px}.input-layout{grid-template-columns:minmax(0,1fr) 210px;gap:8px}.input-panel,.inputter-panel{border-radius:10px;padding:10px}.input-panel .form-row{gap:8px}.input-panel label,.inputter-panel label{gap:3px;margin-bottom:6px;font-size:11px}.input-panel input,.input-panel select,.input-panel textarea,.inputter-panel input,.inputter-panel select{border-radius:7px;padding:7px 8px;font-size:12px}.input-panel textarea{min-height:82px;max-height:120px;line-height:1.35}.input-panel .priority-fieldset{gap:6px;margin:0 0 7px}.input-panel .priority-fieldset legend{margin-bottom:3px;font-size:11px}.input-panel .priority-option{border-radius:7px;min-width:78px;padding:6px}.input-action-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:grid}.input-action-row button{white-space:nowrap;border-radius:7px;min-width:0;padding:8px 7px;font-size:13px}.input-photo-preview{width:128px;margin:0;padding:4px}.input-photo-preview img{height:70px}.input-photo-preview button{padding:4px 6px;font-size:9px;top:7px;right:7px}.compact-meta-row{margin-top:7px}.compact-meta-row label{margin-bottom:0}.input-help{border-radius:7px;margin-top:6px;padding:5px 7px;font-size:9px;line-height:1.35}.inputter-panel h2{margin-bottom:8px;font-size:14px}.inputter-panel .info-box{border-radius:7px;margin-top:5px;padding:7px;font-size:10px;line-height:1.35}.inputter-panel .info-box p{margin-top:3px}.inputter-panel .scenario-button{border-radius:7px;margin-top:8px;padding:7px 5px;font-size:10px}}@media (width<=900px){.app-header{min-height:44px;padding:5px 8px}.app-header .app-title{font-size:15px}.app-header .header-brand{gap:5px}.app-header .header-brand>img{width:42px;height:42px}.app-header .app-subtitle,.app-header .mode-badge{display:none}.app-header{justify-content:space-between;gap:4px}.header-room-identity{flex:auto}.header-room-identity strong{max-width:42vw;font-size:11px}.header-room-identity button{padding:4px 5px;font-size:9px}.app-header .sync-badge{padding:4px 7px;font-size:9px}.content-input{padding:6px 7px 52px}.input-section .page-heading{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;margin-bottom:5px;display:grid}.input-section .page-heading h1{font-size:16px}.input-section .page-heading p{margin-top:0;font-size:9px}.input-section .incident-label{display:none}.input-layout{gap:5px}.input-panel,.inputter-panel{border-radius:9px;padding:7px;box-shadow:0 3px 10px #153a4914}.input-section .form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.input-panel label,.inputter-panel label{gap:2px;margin-bottom:4px;font-size:10px}.input-panel input,.input-panel select,.input-panel textarea,.inputter-panel input,.inputter-panel select{border-radius:6px;padding:6px;font-size:11px}.input-panel textarea{min-height:62px;max-height:72px;line-height:1.3}.input-panel .priority-fieldset{gap:4px;margin:0 0 5px}.input-panel .priority-fieldset legend{margin-bottom:2px;font-size:10px}.input-panel .priority-option{border-radius:6px;padding:5px 2px;font-size:10px}.input-action-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;display:grid}.input-action-row button{letter-spacing:-.04em;white-space:nowrap;border-radius:6px;min-width:0;padding:7px 1px;font-size:8px}.input-action-row .action-icon{font-size:1.05em}.edit-photo-actions{gap:5px}.edit-photo-actions .camera-button,.edit-photo-actions .photo-library-button{padding:7px 8px;font-size:11px}.input-photo-preview{width:92px;margin:0;padding:3px}.input-photo-preview img{height:48px}.input-photo-preview button{padding:3px 4px;font-size:8px;top:5px;right:5px}.input-photo-preview .photo-download-button{left:5px;right:auto}.compact-meta-row{margin-top:5px}.compact-meta-row label{margin-bottom:0}.input-help{border-radius:6px;margin-top:4px;padding:4px 5px;font-size:8px;line-height:1.25}.inputter-panel h2{margin-bottom:4px;font-size:12px}.inputter-fields{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:5px;display:grid}.inputter-panel .info-box,.inputter-panel .scenario-button{display:none}.bottom-nav button{padding:8px 3px;font-size:10px}.content-dashboard{padding:6px 7px 52px}.content-dashboard .page-heading{margin-bottom:6px}.content-dashboard .page-heading h1{font-size:17px}.content-dashboard .page-heading p{display:none}.content-dashboard .page-heading .secondary-button{padding:6px 8px;font-size:9px}.content-dashboard .stat-grid{gap:5px;margin-bottom:6px}.content-dashboard .stat-card{border-radius:8px;padding:7px}.content-dashboard .stat-card strong{font-size:20px}.content-dashboard .stat-card span{font-size:9px}.content-dashboard .dashboard-columns{gap:6px}.content-dashboard .panel-card{border-radius:8px;padding:8px;box-shadow:0 3px 10px #153a4914}.content-dashboard .panel-card h2{margin-bottom:5px;font-size:13px}.content-dashboard .alert-card{border-left-width:4px;border-radius:6px;margin-top:4px;padding:6px 7px;font-size:10px}.content-dashboard .alert-card p{margin:2px 0}.content-dashboard .alert-card small,.content-dashboard .task-row small{margin-top:2px;font-size:9px}.content-dashboard .task-row{gap:6px;padding:6px 0;font-size:10px}}@media (width<=520px){.room-gate-shell{padding:8px;display:block}.room-gate-card{border-radius:12px;gap:7px;width:100%;padding:10px}.room-gate-brand{gap:9px}.room-gate-brand>img{width:62px;height:62px}.room-gate-brand .app-title{font-size:20px}.room-gate-lead{font-size:12px}.room-mode-tabs{gap:4px}.room-mode-tabs button{border-radius:7px;padding:7px 2px;font-size:10px}.room-gate-card label{gap:3px;margin:0;font-size:11px}.room-gate-card input,.room-gate-card select{border-radius:7px;padding:7px 8px;font-size:12px}.room-gate-card>.primary-button,.room-gate-card>.backup-restore-button{border-radius:7px;padding:8px 10px;font-size:12px}.room-gate-card .voice-help{padding:5px 7px;font-size:9px;line-height:1.25}.room-gate-card .error-banner{margin:0;padding:7px 8px;font-size:10px}}.form-row>label,.inputter-fields>label{min-width:0}.form-row input,.form-row select,.inputter-fields input,.inputter-fields select{min-width:0;max-width:100%}.entry-content-text{display:block}.settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:8px;display:grid}.settings-area-card{order:1}.settings-status-card{order:2}.settings-firebase-card{order:3}@media (width>=901px){.input-panel textarea{min-height:155px;max-height:210px}.settings-section .page-heading{margin-bottom:7px}.settings-section .page-heading h1{font-size:20px}.settings-section .page-heading p{margin-top:2px;font-size:10px}.settings-grid .panel-card{border-radius:10px;padding:10px}.settings-grid h2{margin-bottom:7px;font-size:14px}.settings-grid .settings-note{margin-bottom:7px;font-size:10px;line-height:1.35}.settings-grid .area-editor{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.settings-grid .area-editor-row{grid-template-columns:minmax(0,1fr) auto;gap:3px}.settings-grid .area-editor-row input{min-width:0;padding:6px;font-size:10px}.settings-grid .area-editor-row button{padding:4px;font-size:9px}.settings-grid .area-editor-actions{gap:5px;margin-top:7px}.settings-grid .area-editor-actions button,.settings-grid>.panel-card>button{border-radius:7px;padding:6px 8px;font-size:9px}.settings-grid .settings-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:7px;display:grid}.settings-grid .settings-list div{border:1px solid var(--line);border-radius:6px;min-width:0;padding:5px 6px;display:block}.settings-grid .settings-list dt{font-size:8px}.settings-grid .settings-list dd{margin-top:1px;font-size:10px}.settings-grid .setup-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 15px;margin:0;padding-left:18px;font-size:9px;line-height:1.35;display:grid}.settings-grid .info-box{border-radius:7px;margin-top:7px;padding:6px;font-size:9px;line-height:1.35}}@media (width<=900px){.input-panel textarea{min-height:122px;max-height:155px}.content-timeline{padding:5px 5px 48px}.timeline-section .page-heading{flex-direction:row;align-items:center;gap:5px;margin-bottom:4px}.timeline-section .page-heading h1{font-size:16px;line-height:1.1}.timeline-section .page-heading p{display:none}.timeline-section .page-heading .primary-button{white-space:nowrap;border-radius:6px;padding:6px 8px;font-size:9px}.timeline-section .timeline-heading-actions{gap:3px}.timeline-section .timeline-heading-actions .secondary-button{border-radius:6px;padding:6px 5px;font-size:8px}.timeline-tabs{gap:3px;margin-bottom:4px}.timeline-tabs button{border-radius:6px;padding:5px 8px;font-size:10px}.timeline-panel{border-radius:8px;padding:4px}.timeline-panel .filter-row{grid-template-columns:1.2fr 1fr 1fr auto;gap:3px;margin-bottom:4px;display:grid}.timeline-panel .filter-row input,.timeline-panel .filter-row select{border-radius:5px;width:100%;min-width:0;padding:5px 3px;font-size:9px}.timeline-panel .filter-row .secondary-button{white-space:nowrap;border-radius:5px;padding:5px;font-size:8px}.timeline-panel .table-container{border-radius:6px;max-height:calc(100dvh - 136px)}.timeline-panel table{table-layout:fixed;width:100%;min-width:0}.timeline-panel th,.timeline-panel td{padding:4px 2px;font-size:8.5px;line-height:1.25;overflow:hidden}.timeline-panel th{white-space:nowrap;font-size:8px}.timeline-panel th:nth-child(4),.timeline-panel td:nth-child(4),.timeline-panel th:nth-child(8),.timeline-panel td:nth-child(8),.timeline-panel th:nth-child(11),.timeline-panel td:nth-child(11),.timeline-panel th:nth-child(12),.timeline-panel td:nth-child(12){display:none}.timeline-panel th:first-child{width:25px}.timeline-panel th:nth-child(2){width:39px}.timeline-panel th:nth-child(3){width:43px}.timeline-panel th:nth-child(5){width:57px}.timeline-panel th:nth-child(6){width:auto}.timeline-panel th:nth-child(7){width:43px}.timeline-panel th:nth-child(9),.timeline-panel th:nth-child(10){width:38px}.timeline-panel th:nth-child(13){width:32px}.timeline-panel tbody tr{height:44px}.timeline-panel .entry-content-text{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.timeline-panel .photo-indicator{background:0 0;border:0;padding:3px 1px;font-size:8px}.timeline-panel .timeline-photo-thumbnail{padding:2px;font-size:7px}.timeline-panel .timeline-photo-thumbnail img{width:34px;height:25px}.timeline-panel .tag{text-overflow:ellipsis;max-width:100%;padding:2px;font-size:7px;overflow:hidden}.timeline-panel .table-edit-button{padding:3px 2px;font-size:7px}.timeline-panel .table-history-button{margin-top:2px;padding:2px 1px;font-size:7px}.settings-list .room-identity-value{font-size:1.35em}.photo-viewer-controls{gap:6px;font-size:11px}.photo-viewer-controls button{padding:6px 7px}.content-settings{padding:5px 6px 48px}.settings-section .page-heading{margin-bottom:4px}.settings-section .page-heading h1{font-size:16px}.settings-section .page-heading p{display:none}.settings-grid{grid-template-columns:1fr;gap:5px}.settings-grid .panel-card{border-radius:8px;padding:7px;box-shadow:0 3px 10px #153a4914}.settings-grid h2{margin-bottom:5px;font-size:12px}.settings-grid .settings-note{display:none}.settings-grid .area-editor{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.settings-grid .area-editor-row{gap:2px}.settings-grid .area-editor-row input{border-radius:5px;min-width:0;padding:5px;font-size:9px}.settings-grid .area-editor-row button{border-radius:5px;padding:3px;font-size:8px}.settings-grid .area-editor-actions{gap:4px;margin-top:5px}.settings-grid .area-editor-actions button,.settings-grid>.panel-card>button{border-radius:6px;padding:5px 7px;font-size:8px}.settings-grid .settings-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin-bottom:5px;display:grid}.settings-grid .settings-list div{border:1px solid var(--line);border-radius:5px;min-width:0;padding:4px 5px;display:block}.settings-grid .settings-list dt{font-size:7px}.settings-grid .settings-list dd{white-space:nowrap;text-overflow:ellipsis;margin-top:1px;font-size:9px;overflow:hidden}.settings-grid .setup-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;margin:0;padding-left:16px;font-size:8px;line-height:1.25;display:grid}.settings-grid .info-box{border-radius:5px;margin-top:4px;padding:4px;font-size:8px;line-height:1.25}}@media (orientation:landscape) and (width<=900px){.app-header{min-height:36px}.layout{grid-template-columns:100px minmax(0,1fr);min-height:calc(100vh - 36px);display:grid}.side-nav{height:calc(100vh - 36px);padding:5px;display:flex;top:36px}.side-nav button{border-radius:6px;margin:1px 0;padding:6px 5px;font-size:9px}.bottom-nav{display:none}.content,.content-input,.content-timeline,.content-settings{padding:5px 6px}.input-layout{grid-template-columns:minmax(0,1fr) 165px;gap:5px}.input-panel textarea{min-height:76px;max-height:90px}.inputter-fields{grid-template-columns:1fr}.timeline-panel .table-container{max-height:calc(100dvh - 84px)}.timeline-panel tbody tr{height:30px}.timeline-panel .entry-content-text{-webkit-line-clamp:1}.settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-grid .area-editor{grid-template-columns:1fr}}
