:root{color:#17202a;background:#eef2f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}.login-shell{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#f6f8fb,#e5edf2)}.login-panel{width:min(420px,calc(100vw - 32px));display:grid;gap:16px;background:#fff;border:1px solid #d9e1e8;border-radius:8px;padding:28px;box-shadow:0 24px 60px #17202a1f}.brand-row,.topbar,.mfa-strip,.thread header,.thread footer{display:flex;align-items:center;gap:12px}h1,h2,h3,p{margin:0}h1{font-size:26px}h2{font-size:22px}h3{font-size:17px}label{display:grid;gap:6px;font-weight:650}input,textarea,select{border:1px solid #c8d3dc;border-radius:6px;padding:11px 12px;background:#fff}.primary,.mfa-strip button:not(.icon-button){border:0;border-radius:6px;background:#166b5d;color:#fff;padding:11px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-weight:750}.compact-action{min-height:38px;padding:8px 11px}.primary:disabled{opacity:.55;cursor:not-allowed}button:disabled{opacity:.48;cursor:not-allowed}.error{color:#9d1c28}.success{color:#176454}.portal-shell{height:100vh;display:grid;grid-template-rows:62px 1fr}.main-nav{display:flex;align-items:center;gap:10px;padding:10px 16px;background:#fff;border-bottom:1px solid #d8e0e7}.nav-brand{min-width:270px;margin-right:8px}.nav-brand div{display:grid;gap:2px}.nav-brand span{color:#637181;font-size:13px}.nav-link{min-height:40px;border:1px solid transparent;border-radius:6px;background:transparent;color:#263340;display:inline-flex;align-items:center;gap:8px;padding:0 12px;cursor:pointer;font-weight:750}.nav-link.active{background:#e9f5f2;border-color:#bdd9d2;color:#145d51}.nav-menu{position:relative;margin-left:auto}.menu-button{min-width:108px;justify-content:center}.nav-dropdown{position:absolute;top:calc(100% + 8px);right:0;z-index:30;width:230px;display:grid;gap:4px;padding:8px;background:#fff;border:1px solid #d8e0e7;border-radius:8px;box-shadow:0 18px 45px #17202a29}.dropdown-link{min-height:40px;border:1px solid transparent;border-radius:6px;background:transparent;color:#263340;display:inline-flex;align-items:center;gap:9px;padding:0 10px;cursor:pointer;font-weight:750;text-align:left}.dropdown-link.active{background:#e9f5f2;border-color:#bdd9d2;color:#145d51}.danger-menu-link{color:#9d1c28}.app-shell{height:100%;min-height:0;display:grid;grid-template-columns:380px 1fr;overflow:hidden}.sidebar{background:#fff;border-right:1px solid #d8e0e7;display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;overflow:hidden}.topbar{padding:18px;justify-content:space-between;border-bottom:1px solid #e5ebf0}.topbar span,.conversation small,.thread header p,.bubble span{color:#637181}.topbar div{display:grid;gap:3px}.conversation-panel{min-height:0;margin:10px;border:1px solid #d8e0e7;border-radius:8px;overflow:hidden;display:grid;grid-template-rows:auto auto minmax(0,1fr);background:#fff}.inbox-tabs{display:flex;gap:6px;padding:4px 10px;border-bottom:1px solid #e5ebf0}.inbox-tabs button{flex:1 1 0;width:auto;min-height:24px;height:24px;padding:2px 8px;border:1px solid #ccd6df;background:#fff;color:#2b3a45;font-size:12px;line-height:1}.inbox-tabs button.active{background:#176454;border-color:#176454;color:#fff}.icon-button{width:38px;height:38px;border:1px solid #ccd6df;background:#fff;border-radius:6px;cursor:pointer}.mfa-strip{align-items:flex-start;padding:0;background:#f7fafb;flex-wrap:wrap}.mfa-strip span{flex:1;min-width:190px}.mfa-setup{display:grid;grid-template-columns:86px 1fr auto;gap:8px;width:100%}.mfa-setup img{width:86px;border:1px solid #dde5eb}.mfa-title{width:100%}.mfa-modal .mfa-strip{background:#fff}.new-sms{display:grid;gap:10px}.section-title,.panel-toggle{display:inline-flex;align-items:center;gap:8px;font-weight:800}.new-sms textarea{width:100%;min-height:74px;max-height:120px}.template-create-form{display:grid;grid-template-columns:minmax(180px,.6fr) minmax(220px,.8fr) minmax(320px,1.5fr) auto;gap:10px;align-items:end;margin-bottom:16px}.template-create-form h3{grid-column:1 / -1}.template-create-form textarea{min-height:72px}.template-list{display:grid;gap:8px}.template-row{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(180px,.8fr) minmax(320px,1.5fr) auto 64px 70px 92px;gap:8px;align-items:center;padding:8px;border:1px solid #e1e7ec;border-radius:7px}.template-row textarea{min-height:58px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:18px;background:#17202a61}.modal-panel{width:min(520px,100%);background:#fff;border:1px solid #d8e0e7;border-radius:8px;padding:18px;box-shadow:0 24px 70px #17202a47}.modal-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-toggle{border:0;background:transparent;padding:0;color:#17202a;cursor:pointer}.page{min-height:0;overflow:auto;padding:24px}.page-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.page-header p{color:#637181;margin-top:4px}.admin-grid{display:grid;grid-template-columns:minmax(280px,420px) minmax(280px,420px);gap:16px;margin-bottom:16px}.panel{background:#fff;border:1px solid #d8e0e7;border-radius:8px;padding:16px}.reset-panel,.user-form{display:grid;gap:10px}.user-list{overflow:auto;display:grid;gap:8px}.page-user-list{max-height:none}.user-row{display:grid;grid-template-columns:minmax(220px,1fr) auto auto auto auto;gap:8px;align-items:center;padding:9px;border:1px solid #e1e8ee;border-radius:6px}.user-row div{display:grid;gap:2px;min-width:0}.user-row span{color:#637181;overflow-wrap:anywhere}.user-row input{width:100%}.page-user-row{grid-template-columns:minmax(220px,1.3fr) minmax(130px,.75fr) minmax(145px,.9fr) auto auto auto 64px 72px 78px;gap:6px;padding:6px 8px}.page-user-row>div{display:grid;grid-template-columns:minmax(120px,.9fr) minmax(130px,1fr);gap:8px;align-items:center}.page-user-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.page-user-row input,.page-user-row select{min-height:34px;padding:7px 9px;font-size:13px}.page-user-row .check-row{white-space:nowrap;font-size:13px}.page-user-row .status-badge{min-width:64px;padding:4px 7px;font-size:11px}.page-user-row button{padding:7px 9px;min-height:34px}.check-row{display:inline-flex;align-items:center;gap:6px;font-weight:650}.check-row input{width:16px;height:16px;padding:0}.reset-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.users-table{display:grid;gap:12px}.table-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-width:0}.table-head h3{flex:0 0 auto}.table-head button,.reset-panel button,.group-row button,.number-row button,.user-row button,.client-row button,.routing-row button,.endpoint-row button{border:1px solid #c8d3dc;border-radius:6px;background:#fff;padding:10px 12px;cursor:pointer;font-weight:750}.danger-button{color:#9d1c28;border-color:#e3b8be!important}.page-error{margin:0 0 16px}.group-list{display:grid;gap:12px}.group-picker{margin-bottom:12px;max-width:420px}.group-row{display:grid;grid-template-columns:minmax(180px,280px) minmax(260px,1fr) auto;gap:12px;align-items:end;padding:12px;border:1px solid #e1e8ee;border-radius:8px}.group-row select[multiple]{min-height:128px;padding:8px}.group-name-input{font-weight:800}.number-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(160px,1fr) minmax(150px,.8fr) minmax(220px,1.4fr) auto auto auto;gap:10px;align-items:center;padding:10px;border:1px solid #e1e8ee;border-radius:8px}.number-row div{display:grid;gap:2px;min-width:0}.number-row span{color:#637181;overflow-wrap:anywhere}.empty-inline{color:#637181;padding:10px 0}.client-row{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(110px,.7fr) minmax(180px,1fr) auto auto auto;gap:10px;align-items:center;padding:10px;border:1px solid #e1e8ee;border-radius:8px}.table-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;flex:1 1 460px;justify-content:flex-end;min-width:0;max-width:100%}.table-tools select{min-width:150px;max-width:220px}.table-search{flex:1 1 220px;min-width:160px;max-width:320px}.table-tools button{flex:0 0 auto}.grid-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px;color:#637181;font-size:13px}.grid-toolbar div{display:flex;align-items:center;gap:8px}.grid-toolbar button,.grid-toolbar select{min-height:32px;padding:6px 9px;font-size:12px}.routing-list{display:grid;gap:8px;overflow-x:auto;padding-bottom:2px}.endpoint-list{display:grid;gap:8px}.endpoint-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(130px,.8fr) minmax(95px,.55fr) minmax(200px,1.2fr) minmax(135px,.8fr) 92px auto 74px 72px 78px;gap:8px;align-items:center;padding:9px;border:1px solid #e1e8ee;border-radius:8px}.endpoint-row span,.endpoint-row code{overflow-wrap:anywhere}.usage-pill{min-height:32px;border:1px solid #d8e0e7;border-radius:999px;background:#f4f7f9;color:#45515e;display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;font-size:12px;font-weight:800;white-space:nowrap}.routing-row{display:grid;grid-template-columns:minmax(0,.48fr) minmax(0,.4fr) minmax(0,.62fr) minmax(0,.42fr) minmax(0,1.18fr) minmax(0,.34fr) 72px 76px 64px 74px;gap:5px;align-items:center;min-width:1160px;padding:5px;border:1px solid #e1e8ee;border-radius:8px}.routing-row>span,.routing-row>input,.routing-row>select,.routing-row>button,.routing-row>label{min-width:0}.routing-row>:nth-child(1){grid-column:1;grid-row:1}.routing-row>:nth-child(2){grid-column:2;grid-row:1}.routing-row>:nth-child(3){grid-column:3;grid-row:1}.routing-row>:nth-child(4){grid-column:4;grid-row:1}.routing-row>:nth-child(5){grid-column:5;grid-row:1}.routing-row>:nth-child(6){grid-column:6;grid-row:1}.routing-row>:nth-child(7){grid-column:7;grid-row:1}.routing-row>:nth-child(8){grid-column:8;grid-row:1}.routing-row>:nth-child(9){grid-column:9;grid-row:1}.routing-row>:nth-child(10){grid-column:10;grid-row:1}.routing-header{padding:5px 6px;border-color:#d8e0e7;background:#edf2f4;color:#49616f;font-size:11px;font-weight:850;text-transform:uppercase}.routing-header span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grid-sort{min-height:24px!important;justify-content:flex-start;gap:6px;padding:4px 0!important;border:0;background:transparent;color:inherit;font-size:11px;font-weight:850;text-align:left;text-transform:uppercase}.grid-sort:hover{color:#176454;background:transparent}.grid-sort.active{color:#176454}.grid-sort span{color:inherit;font-size:11px}.number-cell{display:block;min-width:0}.number-cell strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.number-cell span{color:#637181;font-size:13px}.routing-row>span:not(.status-badge){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.routing-row input,.routing-row select,.endpoint-row input,.endpoint-row select,.routing-row button,.endpoint-row button{width:100%;min-height:30px;padding:5px 6px;font-size:12px}.dirty-row{border-color:#d6a019;background:#fffaf0}.inactive-row{border-color:#c7cfd8;background:#f4f6f8}.inactive-row input,.inactive-row select{color:#637181}.status-badge{min-width:74px;border-radius:999px;padding:5px 9px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:850}.status-badge.saved{color:#176454;background:#e4f4ef;border:1px solid #bddbd2}.status-badge.dirty{color:#7b4c00;background:#fff1cc;border:1px solid #e0b74f}.status-actions{display:grid;gap:8px}.inbox-search{padding:8px;border-bottom:1px solid #edf1f4}.inbox-search input{width:100%;min-height:34px;padding:8px 10px;font-size:13px}.conversation-list{overflow:auto;min-height:0}.conversation{width:100%;min-height:44px;text-align:left;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 12px;border:0;border-bottom:1px solid #edf1f4;background:#fff;cursor:pointer}.conversation.active{background:#e9f5f2}.conversation span{font-weight:800}.conversation-summary{min-width:0;display:grid;gap:4px}.conversation-contact{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400!important}.conversation-type{display:inline-block;margin-right:8px;padding:2px 4px;border-radius:4px;font-size:9px;font-style:normal;font-weight:850;line-height:1;text-transform:uppercase}.conversation-type.direct{color:#176454;background:#dff2ed}.conversation-type.group{color:#724f12;background:#fff0c7}.conversation small{min-width:0;overflow-wrap:anywhere;white-space:normal;line-height:1.3;font-style:italic;font-weight:400}.conversation small.typing-inline,.typing-status{color:#176454;font-weight:600}.conversation small .no-reply{color:#b42332;font-weight:700}.search-snippet{display:block;margin-top:3px;color:#176454;font-style:normal;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-empty{padding:14px 12px;color:#637181;font-size:13px}.typing-status{margin-top:3px;font-size:12px}.conversation b{min-width:22px;height:22px;border-radius:999px;display:grid;place-items:center;background:#c23b4a;color:#fff;font-size:12px;padding:0 6px}.thread{display:grid;grid-template-rows:auto 1fr auto;min-width:0;min-height:0;overflow:hidden}.thread header{justify-content:space-between;padding:18px 22px;background:#fff;border-bottom:1px solid #d8e0e7}.messages{overflow:auto;min-height:0;padding:24px;display:flex;flex-direction:column;gap:12px}.new-messages-divider{align-self:stretch;color:#9d1c28;font-size:12px;font-weight:850;text-align:center;text-transform:lowercase}.bubble{max-width:min(680px,76%);border-radius:8px;padding:12px 14px;background:#fff;border:1px solid #d8e0e7;align-self:flex-start}.message-read-history{display:grid;gap:2px;margin-top:7px;padding-top:6px;border-top:1px solid rgba(100,116,139,.22);color:#64748b;font-size:10px;line-height:1.35}.bubble.mine .message-read-history{border-top-color:#ffffff3d;color:#fffc}.bubble.mine{background:#166b5d;color:#fff;border-color:#166b5d;align-self:flex-end}.bubble.rejected{background:#fff1f2;color:#7f1d2d;border-color:#efb8c1}.bubble.mine span{color:#d5ebe6}.bubble.mine.rejected span{color:#9d1c28}.message-agent{display:block;margin-bottom:5px;font-size:12px;font-weight:850;color:#49616f}.bubble.mine .message-agent{color:#e6f5f1}.bubble.mine.rejected .message-agent{color:#7f1d2d}.bubble p{white-space:pre-wrap;margin-bottom:7px}.bubble span{font-size:12px}.message-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px}.read-ticks{flex:0 0 auto;color:#9aa6b2;stroke-width:2.5}.read-ticks.read{color:#34b7f1}.bubble.mine .read-ticks{color:#c8d3dc}.bubble.mine .read-ticks.read{color:#5bc7ff}.thread footer{padding:16px;background:#fff;border-top:1px solid #d8e0e7}.reply-template-picker{width:min(220px,24vw);align-self:stretch}textarea{min-height:58px;max-height:140px;resize:vertical;flex:1}.send{min-width:112px}.empty{display:grid;place-items:center;color:#637181}.summary-page{overflow:auto}.server-health-page{background:#f8fafc}.health-header{align-items:flex-end}.health-eyebrow{color:#64748b;font-size:.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.health-refresh{display:flex;align-items:center;gap:12px}.health-refresh small{color:#7b8795;white-space:nowrap}.health-refresh button{display:inline-flex;align-items:center;gap:7px}.spin{animation:health-spin .9s linear infinite}@keyframes health-spin{to{transform:rotate(360deg)}}.health-loading{color:#637181}.health-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.health-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.health-card{min-width:0;padding:16px;border:1px solid #d8e0e7;border-top:3px solid #94a3b8;border-radius:9px;background:#fff}.health-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.health-card strong,.health-card h3{color:#334155}.health-card h3{margin:0 0 12px;font-size:1rem}.health-card b{color:#172033;font-size:1.3rem}.health-card small{color:#8190a4}.health-card.healthy{border-top-color:#16a34a}.health-card.warning{border-top-color:#f59e0b}.health-card.critical{border-top-color:#dc2626}.health-progress{height:7px;margin:13px 0 10px;overflow:hidden;border-radius:99px;background:#e2e8f0}.health-progress span{display:block;height:100%;border-radius:inherit;background:#16a34a;transition:width .25s ease}.health-metric.warning .health-progress span{background:#f59e0b}.health-metric.critical .health-progress span{background:#dc2626}.health-uptime>div{margin-bottom:18px}.health-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #e8edf2}.health-list>div:last-child{border-bottom:0}.health-list span{min-width:0;color:#718096}.health-list span small{display:block;margin-top:2px}.health-list b{max-width:60%;overflow-wrap:anywhere;text-align:right;font-size:.84rem}.service-state{padding:4px 8px;border-radius:99px;text-transform:capitalize}.service-state.running{color:#166534;background:#dcfce7}.service-state.unavailable{color:#991b1b;background:#fee2e2}.summary-filters{display:flex;align-items:end;gap:10px;margin-bottom:14px;padding:14px}.summary-filters label{min-width:170px}.summary-filters button{min-height:42px}.summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.summary-metric{padding:16px;border:1px solid #d8e0e7;border-radius:8px;background:#fff}.summary-metric span{display:block;color:#637181;font-size:13px}.summary-metric strong{display:block;margin-top:5px;color:#173b47;font-size:25px}.summary-table{padding:0;overflow-x:auto}.summary-row{display:grid;grid-template-columns:minmax(220px,1fr) 120px 150px 140px;align-items:center;min-width:680px;border-bottom:1px solid #e4e9ed}.summary-row:last-child{border-bottom:0}.summary-row>span{padding:12px 14px;text-align:right}.summary-row>span:first-child{text-align:left}.summary-row small{display:block;margin-top:2px;color:#637181;font-size:11px;font-weight:400}.summary-heading{background:#edf2f4;color:#49616f;font-size:12px;font-weight:800;text-transform:uppercase}.summary-empty{padding:24px;color:#637181;text-align:center}.history-page{overflow:auto}.history-panel{padding:0;overflow:hidden}.history-filters{display:flex;align-items:end;gap:10px;padding:12px 14px;border-bottom:1px solid #e4e9ed;background:#fff}.history-filters label{min-width:150px;flex:1 1 160px;font-size:13px}.history-filters input,.history-filters select{min-height:36px;padding:7px 9px}.history-filters button{min-height:36px;padding:7px 14px}.history-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #e4e9ed;color:#637181;font-size:13px}.history-toolbar div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.history-toolbar button,.history-toolbar select,.history-row button{min-height:32px;border:1px solid #c8d3dc;border-radius:6px;background:#fff;padding:6px 9px;cursor:pointer;font-weight:750}.history-table{overflow-x:auto}.history-row{display:grid;grid-template-columns:minmax(140px,.85fr) minmax(140px,.85fr) 90px minmax(150px,.9fr) minmax(130px,.8fr) minmax(130px,.7fr) minmax(190px,.85fr) minmax(280px,1.35fr) 72px;gap:10px;align-items:center;min-width:1430px;padding:8px 14px;border-bottom:1px solid #e9eef2}.history-row:last-child{border-bottom:0}.history-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-row small{display:block;margin-top:2px;color:#637181;font-size:11px;font-weight:500;text-transform:uppercase}.history-row code{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#45515e;font-size:12px}.history-heading{background:#edf2f4;color:#49616f;font-size:12px;font-weight:850;text-transform:uppercase}.history-sort{min-height:24px;justify-content:flex-start;gap:6px;padding:0;border:0;background:transparent;color:inherit;font-size:12px;font-weight:850;text-align:left;text-transform:uppercase}.history-sort:hover,.history-sort.active{color:#176454;background:transparent}.history-sort span{color:inherit;font-size:11px}.history-viewer{display:grid;gap:14px}.history-viewer .modal-title p{margin-top:3px;color:#637181;font-size:13px}.history-viewer dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.history-viewer dl div{min-width:0}.history-viewer dt{color:#637181;font-size:12px;font-weight:800;text-transform:uppercase}.history-viewer dd{margin:3px 0 0;overflow-wrap:anywhere}.history-message-body{max-height:45vh;overflow:auto;white-space:pre-wrap;border:1px solid #d8e0e7;border-radius:8px;padding:12px;background:#f7fafb}.error-log-table{min-width:1120px;overflow:hidden}.error-log-row{display:grid;grid-template-columns:155px 90px 140px 140px 170px 130px minmax(180px,1fr) minmax(240px,1.25fr);gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--border)}.error-log-row>span,.error-log-row>code{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.error-log-heading{color:var(--muted);background:#f8fafc;font-size:.78rem;font-weight:800;text-transform:uppercase}.error-direction{width:fit-content;border-radius:999px;padding:4px 8px;font-size:.75rem;font-weight:800;text-transform:capitalize}.error-direction.inbound{color:#9a3412;background:#ffedd5}.error-direction.outbound{color:#991b1b;background:#fee2e2}@media(max-width:640px){.portal-shell{grid-template-rows:auto 1fr}.main-nav{flex-wrap:nowrap}.nav-brand{min-width:0;flex:1}.nav-dropdown{width:min(230px,calc(100vw - 32px))}.app-shell{grid-template-columns:1fr;grid-template-rows:minmax(172px,34dvh) minmax(0,1fr);height:100%;min-height:0}.sidebar{border-right:0;border-bottom:1px solid #d8e0e7;min-height:0}.topbar{padding:8px 10px}.topbar strong{font-size:14px}.topbar span{font-size:12px}.compact-action{min-height:30px;padding:5px 8px;font-size:12px}.conversation-panel{margin:6px;border-radius:6px}.conversation{min-height:38px;padding:6px 8px;grid-template-columns:minmax(0,1fr) auto}.conversation small{font-size:11px}.thread{min-height:0}.thread header{padding:9px 10px;align-items:flex-start}.thread header h2{font-size:16px}.thread header p{font-size:11px}.typing-status{font-size:11px}.messages{padding:10px;gap:8px}.bubble{max-width:90%}.thread footer{padding:8px;gap:8px;align-items:stretch}.reply-template-picker{width:132px;min-width:132px}.thread footer textarea{min-height:42px;max-height:84px;padding:8px 9px;resize:none}.send{min-width:78px;padding:8px 10px}.admin-grid,.template-create-form,.template-row,.page-user-row,.group-row,.number-row,.client-row,.endpoint-row{grid-template-columns:1fr}.endpoint-row{min-width:0}.grid-toolbar{align-items:stretch;flex-direction:column}.grid-toolbar div{flex-wrap:wrap}.table-tools{width:100%;flex-wrap:wrap}.table-search{flex:1 1 220px}.summary-metrics,.health-overview,.health-details{grid-template-columns:1fr}.health-header{align-items:stretch}.health-refresh{justify-content:space-between}.summary-filters{align-items:stretch}.summary-filters label{min-width:145px;flex:1}.history-filters{align-items:stretch;flex-wrap:wrap}.history-filters label{min-width:145px}.history-filters button{flex:1 1 100%}.history-toolbar{align-items:stretch;flex-direction:column}.history-viewer dl{grid-template-columns:1fr}}@media(max-width:520px){.app-shell{grid-template-rows:minmax(148px,30dvh) minmax(0,1fr)}.thread header{gap:8px}.thread header .compact-action{min-width:34px;padding:6px;font-size:0}.thread header .compact-action svg{margin:0}.bubble{max-width:94%;padding:9px 10px}.summary-filters{display:grid;grid-template-columns:1fr 1fr}.summary-filters button{grid-column:1 / -1}}
