:root{color-scheme:dark;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#0f172a;color:#e2e8f0}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{overflow:hidden}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.65}.app-shell{height:100%;max-width:720px;margin:0 auto;background:#0f172a;display:flex;flex-direction:column;border-left:1px solid #1e293b;border-right:1px solid #1e293b}.header{padding:14px 16px;border-bottom:1px solid #1e293b;background:#0f172af5;position:sticky;top:0;z-index:5}.content{flex:1;overflow-y:auto;padding:14px}.row{display:flex;align-items:center;gap:10px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:flex;flex-direction:column;gap:12px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{background:#111827;border:1px solid #1f2937;border-radius:18px;padding:14px;box-shadow:0 16px 35px #0000002e}.card.soft{background:#172033}.card.warn{border-color:#92400e;background:#92400e29}.card.error{border-color:#991b1b;background:#991b1b2e}.card.ok{border-color:#166534;background:#16653424}h1,h2,h3,p{margin:0}h1{font-size:20px;line-height:1.2}h2{font-size:16px}h3{font-size:13px;color:#cbd5e1}.small{font-size:12px;color:#94a3b8}.tiny{font-size:10px;color:#64748b}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.button{border:1px solid #334155;color:#e2e8f0;background:#1e293b;padding:10px 12px;border-radius:14px;font-weight:700;font-size:13px}.button.primary{background:#2563eb;border-color:#3b82f6;color:#fff}.button.danger{background:#7f1d1d;border-color:#991b1b}.button.ghost{background:transparent}.input{width:100%;border:1px solid #334155;background:#020617;color:#e2e8f0;border-radius:14px;padding:12px;outline:none}.input:focus{border-color:#3b82f6}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;white-space:nowrap;border:1px solid #334155;background:#1e293b;color:#cbd5e1}.badge.ok{background:#1665342e;border-color:#166534;color:#86efac}.badge.warn{background:#92400e2e;border-color:#92400e;color:#fcd34d}.badge.error{background:#991b1b2e;border-color:#991b1b;color:#fecaca}.badge.info{background:#2563eb2e;border-color:#2563eb;color:#bfdbfe}.kpi-value{font-size:26px;font-weight:900;letter-spacing:-.04em}.list-item{width:100%;text-align:left;border:1px solid #1f2937;background:#111827;color:inherit;border-radius:16px;padding:12px}.list-item:hover{border-color:#334155;background:#172033}.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tab{padding:10px;border-radius:14px;border:1px solid #334155;background:#111827;color:#94a3b8;font-weight:800}.tab.active{background:#2563eb;color:#fff;border-color:#60a5fa}.message-list{display:flex;flex-direction:column;gap:10px}.message{border-radius:16px;padding:10px 12px;border:1px solid #1f2937;background:#111827}.message.resident{background:#172554;border-color:#1d4ed8}.message.operator{background:#064e3b;border-color:#047857}.message.bot{background:#312e81;border-color:#4f46e5}.message.system{background:#27272a;border-color:#3f3f46}.tickets,.ticket-card{min-width:0;overflow-wrap:anywhere}.ticket-card h3{font-size:15px;color:#e2e8f0}.ticket-card .row-between{flex-wrap:wrap}.ticket-card .row-between>*{min-width:0;max-width:100%}.ticket-description{white-space:pre-wrap}.ticket-queues,.ticket-actions{display:flex;flex-wrap:wrap;gap:8px}.ticket-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ticket-filters label{min-width:0;display:flex;flex-direction:column;gap:6px}.ticket-filters .input{min-width:0;max-width:100%}.tickets .button{min-height:44px;white-space:normal}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}@media(max-width:375px){.ticket-filters{grid-template-columns:1fr}}@media(max-width:420px){.grid,.tabs{grid-template-columns:1fr}.content{padding:10px}}.tenant-monitor .content{min-height:0;min-width:0}.tenant-monitor .tenant-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.tenant-monitor .tenant-header>div{min-width:0;max-width:100%;overflow-wrap:anywhere}.tenant-header-actions{display:flex;flex-wrap:wrap;gap:8px}.tenant-monitor .button,.tenant-monitor .tab{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.tenant-monitor :is(button,a,summary,input,select):focus-visible{outline:2px solid #93c5fd;outline-offset:3px}.tenant-monitor :is(.stack,.card,.entity-list,.entity-detail,.message-list,.message){min-width:0}.entity-list,.entity-detail,.monitor-settings{overflow-wrap:anywhere}.entity-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px}.entity-heading>h2,.entity-heading>h3{min-width:0;flex:1 1 160px}.entity-list-item{padding:12px;gap:10px;box-shadow:none}.entity-list-item h3{font-size:15px;line-height:1.4;color:#e2e8f0}.entity-address{font-size:13px;line-height:1.5;color:#cbd5e1}.entity-preview{white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.entity-metadata{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.entity-meta-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;min-width:0;font-size:12px}.entity-meta-row>*{min-width:0;max-width:100%}.entity-meta-row>:last-child{color:#e2e8f0}.entity-list-item .entity-meta-row{flex-direction:column}.entity-list-item .entity-open{align-self:flex-start}.tenant-monitor .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}.entity-toolbar{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.entity-detail-heading{display:flex;flex-direction:column;gap:6px}.entity-detail-card{box-shadow:none}.entity-detail-card .row-between,.tenant-monitor .message .row-between{flex-wrap:wrap}.entity-detail-card .row-between>*,.tenant-monitor .message .row-between>*{min-width:0;max-width:100%}.entity-detail-card strong{text-align:right}.entity-filters :is(input,select),.tenant-monitor input[type=date]{min-width:0;max-width:100%}.entity-list>label{font-size:13px}.ticket-kpi>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:700}.ticket-kpi[open]>summary{margin-bottom:12px}.monitor-settings{border-color:#3b82f6}.monitor-settings .row-between{flex-wrap:wrap;justify-content:flex-start}@media(max-width:375px){.entity-metadata,.entity-filters{grid-template-columns:1fr}.tenant-monitor .tenant-header-actions{width:100%}.tenant-monitor .tenant-header-actions .button{flex:1 1 auto}.entity-detail-card .row-between{align-items:flex-start}}
