/* Shared product components. Color conveys state; layout carries the hierarchy. */
@font-face{font-family:Inter;src:url('/static/fonts/inter-variable.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--bg:#f5f6f8;--white:#fff;--ink:#18212f;--muted:#5f6e82;--line:#e0e5ed;--purple:#245bea;--purple-soft:#eef3ff;--green:#17845b;--danger:#be444a;--navy:#151e2b;--shadow:0 2px 4px #18212f03;--mp-line:var(--line);--mp-teal:#245bea;--sidebar-width:246px}
html[dir] body{font-size:14px;line-height:1.65;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
html[dir=ltr] body{font-family:Inter,'Segoe UI',sans-serif}
html[dir=rtl] body{font-family:Plex,'Segoe UI',sans-serif}
button,input,select,textarea{font-family:inherit}
body button{min-height:36px;border-radius:8px;font-size:13px;font-weight:600;border-color:#dce2ea;color:#4a576b;padding:8px 13px;box-shadow:none}
body button:hover{background:#f6f8fb;border-color:#bac5d6;color:#25344e}
body button:disabled{opacity:.45}
body .primary{color:#fff;background:var(--purple);border-color:var(--purple);box-shadow:0 2px 3px #245bea12}
body .primary:hover{color:#fff;background:#1f50d0;border-color:#1f50d0}
body .text-button{border-color:transparent;background:transparent;color:#42658d}
body .danger{color:var(--danger);border-color:#eed9dc}
body .icon-button{width:34px;height:34px;min-height:34px;padding:7px;border:1px solid transparent;color:#64748b;border-radius:7px}
body .icon-button:hover{color:#304761;background:#eef2f7;border-color:#dce4ed}
body .icon{width:18px;height:18px;stroke-width:1.65}
body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #8fb2ff;outline-offset:3px}
body input,body select,body textarea{background:#fff;border:1px solid #dce2ea;border-radius:8px;min-height:40px;padding:9px 12px;font-size:13px;color:#25344d;box-shadow:none}
body input:focus,body select:focus,body textarea:focus{border-color:#8aaaff}
body input[readonly]{background:#f8f9fb}
body label{font-size:13px;color:#536075}
body label small{font-size:12px;color:#64748b}
body .mono,body code{font-size:13px;letter-spacing:-.15px}
body .muted{color:var(--muted)}
body .panel{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow);overflow:visible;margin-bottom:20px}
body .panel-heading{padding:21px 24px;border-bottom:1px solid var(--line)}
body .panel-heading h2{font-size:15px;letter-spacing:-.2px}
body .panel-heading p{font-size:13px;line-height:1.8;color:var(--muted);margin-top:5px;max-width:700px}
body .panel-body{padding:22px 24px}
body .content-heading{margin-bottom:22px}
body .content-heading h2{font-size:19px}
body .content-heading p{font-size:13px;line-height:1.8;color:var(--muted);margin-top:5px}
body .notice{font-size:13px;border-radius:9px;line-height:1.9;padding:12px 16px}
body .notice.info{background:#f2f6fe;border-color:#dee8fd;color:#557091}
body .notice.warning{background:#fffbf2;border-color:#f2e7cc;color:#64748b}
body .notice.error{background:#fdf3f4;border-color:#f2dbdf;color:#64748b}
body .badge{display:inline-flex;gap:6px;align-items:center;padding:4px 8px;border-radius:5px;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap}
body .badge::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
body .badge.online,body .badge.ready{background:#edf8f1;color:#18835b}
body .badge.offline{background:#f0f2f6;color:#64748b}
body .badge.paused,body .badge.expired,body .badge.exhausted,body .badge.unavailable{background:#fff7e9;color:#64748b}
body .tag{background:#f0f3f8;color:#6d7c91;font-size:11px;padding:4px 8px;border-radius:5px}
html[dir] body .sidebar{width:var(--sidebar-width);background:var(--navy);color:#8594a9;padding:30px 18px 16px;border:0;box-shadow:none;z-index:30;display:flex;flex-direction:column}
html[dir=rtl] body .sidebar{right:0;left:auto}
html[dir=ltr] body .sidebar{left:0;right:auto}
html[dir] body .workspace{margin-inline-start:var(--sidebar-width);margin-inline-end:0;min-width:0}
body .brand{display:flex;align-items:center;gap:10px;font-family:Inter,'Segoe UI',sans-serif;font-size:24px;letter-spacing:-1px;font-weight:650;color:#fff;direction:ltr;justify-content:flex-start}
body .brand-mark{width:35px;height:35px;display:grid;place-items:center;background:#eef3fb;border-radius:9px;color:#172538;border:0;box-shadow:none}
.brand-mark svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
body .workspace-switch{border:1px solid #ffffff10;background:#ffffff05;border-radius:9px;padding:11px;display:flex;align-items:center;gap:10px;margin:26px 0 28px;color:#dce3ee;font-size:13px}
body .workspace-avatar{width:30px;height:30px;border-radius:7px;border:1px solid #ffffff0d;background:#ffffff08;color:#64748b;font-size:13px}
body .workspace-switch small{color:#9baabd;font-size:12px;display:block;margin-top:1px}
body .nav{display:flex;align-items:center;gap:11px;margin:4px 0;padding:12px;border-radius:8px;color:#94a2b7;font-size:13px;min-height:44px;font-weight:450}
body .nav:hover{background:#ffffff06;color:#e2e9f3}
html[dir] body .nav.active{background:#ffffff0e;color:#fff;box-shadow:none;border:0;font-weight:550}
body .nav.active .icon{color:#8cb1ff}
body .nav-count{font-family:Inter,sans-serif;margin-inline-start:auto;background:#ffffff08;color:#9eb0c9;border-radius:4px;padding:1px 6px;font-size:11px;line-height:1.8}
body .nav.active .nav-count{color:#cad8f0;background:#ffffff10}
body .nav-label{font-size:11px;letter-spacing:1.3px;color:#9baabd;margin:27px 12px 9px;text-transform:uppercase}
body .sidebar-download{border:1px solid #ffffff0c;border-radius:9px;padding:14px 12px;color:#a4b2c7;background:#ffffff03;margin-top:auto;margin-bottom:15px;font-size:12px;gap:11px;text-decoration:none}
body .sidebar-download:hover{background:#ffffff08;color:#e1e8f2}
body .sidebar-foot{border-top:1px solid #ffffff0b;padding:17px 0 0;margin:0;color:#c1cddd;gap:9px;font-size:12px}
body .sidebar-foot small{color:#9baabd;font-size:12px;display:block}
body .admin-avatar,body .sidebar-foot .admin-avatar{width:30px;height:30px;border-radius:50%;background:#253345;border:1px solid #34465d;color:#afbfda;font-size:12px}
body .sidebar-foot .icon-button{color:#687f9c}
body .sidebar-foot .icon-button:hover{background:#ffffff0b;border-color:transparent;color:#cad7eb}
body .topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);padding:0 32px;gap:14px}
body .breadcrumb{font-size:12px;gap:13px;color:#64748b;min-width:0}
body .breadcrumb strong{font-size:12px;color:#59697f;font-weight:500}
body .topbar-end{gap:12px}
body .language-switch{font-size:12px;border-color:#e6eaf0;border-radius:7px;min-height:31px;height:31px;padding:5px 10px;color:#6c7b90}
body .update-label{color:#64748b;font-size:11px}
.workspace-live{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border:1px solid #e6ece8;border-radius:5px;font-size:11px;color:#65806d;white-space:nowrap}
.workspace-live::before{content:'';width:5px;height:5px;border-radius:50%;background:#55a17a}
body .page-content{max-width:1660px;margin:0 auto;padding:32px 32px 30px}
body .page-heading{align-items:center;gap:20px;margin-bottom:27px}
body .page-heading h1{font-size:29px;font-weight:600;letter-spacing:-.9px;line-height:1.5}
html[dir=rtl] body .page-heading h1{letter-spacing:-.3px;font-size:29px}
body .page-heading p{color:#64748b;font-size:13px;margin-top:5px;line-height:1.9;max-width:700px}
body .page-heading>.primary{min-height:41px;padding:10px 16px;flex-shrink:0}
body .eyebrow{display:none}
.fleet-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:white;border:1px solid var(--line);border-radius:12px;margin:0 0 27px;box-shadow:var(--shadow);padding:22px 0}
.fleet-stat{padding:0 23px;min-width:0;border-inline-end:1px solid #edf0f4}
.fleet-stat:last-child{border:0}
.fleet-stat-label{font-size:12px;color:#64748b;display:flex;align-items:center;gap:8px}
.fleet-stat-label .icon{width:15px;height:15px;color:#64748b}
.fleet-stat-value{display:flex;align-items:baseline;gap:8px;margin-top:9px;line-height:1.1}
.fleet-stat-value strong{font-family:Inter,'Segoe UI',sans-serif;font-size:30px;font-weight:550;letter-spacing:-1.1px;color:#263449}
.fleet-stat-value small{font-family:Inter,'Segoe UI',sans-serif;font-size:13px;color:#64748b;letter-spacing:0}
.fleet-stat-note{font-size:11px;margin-top:11px;color:#64748b;line-height:1.5}
.fleet-stat-note.online-note{color:#5c9375;display:flex;align-items:center;gap:5px}
.fleet-stat-note.online-note::before{content:'';width:4px;height:4px;border-radius:50%;background:#6bac87}
body .fleet-panel{overflow:visible}
.fleet-panel-heading{padding:20px 22px 0;display:flex;align-items:center;justify-content:space-between;gap:15px}
.fleet-panel-heading h2{font-size:14px;font-weight:600}
.fleet-panel-heading p{font-size:12px;color:#64748b;margin-top:3px}
body .view-switch{display:flex;border:1px solid #e4e9f0;border-radius:7px;padding:3px;gap:2px;background:#fff}
body .view-switch .icon-button{min-height:27px;height:27px;width:30px;border-radius:5px}
body .view-switch .active{background:#f0f4fa;color:#496b9e}
body .filter-bar{background:transparent;border:0;padding:18px 22px 15px;gap:9px;align-items:center;display:flex;flex-wrap:wrap}
body .filter-bar .search-input{flex:1;min-width:190px;border:1px solid #e3e8f0;border-radius:7px;background:#fff;padding-inline:11px;gap:8px;height:37px}
body .filter-bar .search-input .icon{width:16px;height:16px;color:#64748b}
body .filter-bar .search-input input{border:0;min-height:0;box-shadow:none;padding:7px 0;margin:0;font-size:12px;background:none;height:35px;min-width:0;outline:none}
body .filter-bar .search-input:focus-within{outline:2px solid #a3bdff;outline-offset:2px}
body .filter-bar select{font-size:12px;min-height:37px;min-width:115px;width:auto;margin:0;padding:7px 10px;border-color:#e3e8f0;background:#fff}
body .filter-more{font-size:12px;color:#64748b}
body .filter-more>summary{list-style:none;display:flex;gap:6px;align-items:center;padding:8px 10px;border:1px solid #e3e8f0;border-radius:7px;min-height:37px;cursor:pointer}
body .filter-more>summary::-webkit-details-marker{display:none}
body .filter-more-body{width:330px;border-color:var(--line);border-radius:9px;padding:16px;box-shadow:0 12px 30px #1d2d4314;z-index:12;top:calc(100% + 6px)}
body .fleet-controls{padding:9px 22px 14px;background:#fff;border:0;gap:9px}
body .fleet-totals{gap:10px;font-size:11px;color:#64748b}
body .fleet-totals strong{color:#73849d;font-weight:500}
body .fleet-controls select{font-size:11px;min-height:28px;padding:4px 8px;border-color:#e7ecf3;color:#64748b;margin:0}
body .fleet-columns{font-size:11px;color:#64748b}
body .fleet-columns>summary{border-color:#e7ecf3;border-radius:6px;padding:4px 8px}
body .fleet-direction{padding:3px 8px;min-height:28px;font-size:12px}
body .fleet-column-options{box-shadow:0 8px 25px #1e30421a;border-color:var(--line);border-radius:9px;padding:13px;top:35px}
body .fleet-column-options label{font-size:12px}
body .fleet-scroll{max-height:none;min-height:0;overflow-x:auto;overflow-y:visible;border-top:0;border-radius:0 0 12px 12px}
body .fleet-table{width:100%;min-width:820px;table-layout:auto;font-size:13px;border-collapse:collapse}
body .fleet-table th{font-size:11px;font-weight:500;background:#f8fafc;color:#64748b;padding:12px 10px;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;position:static;white-space:nowrap}
body .fleet-table td{padding:19px 10px;border-bottom:1px solid #edf0f4;color:#53647c;vertical-align:middle}
body .fleet-table .fleet-sort{font-size:11px;min-height:0;font-weight:500;border:0;border-radius:0;padding:0;background:transparent;color:inherit}
body .fleet-table>thead>tr>th:first-child,body .fleet-table>tbody>tr>td:first-child{width:28px;padding-inline:18px 3px}
body .fleet-table>thead>tr>th:nth-child(2),body .fleet-table>tbody>tr>td:nth-child(2){width:23px;padding-inline:2px}
body .fleet-table>thead>tr>th:nth-child(3),body .fleet-table>tbody>tr.fleet-row>td:nth-child(3){min-width:175px}
body .fleet-table>thead>tr>th:last-child,body .fleet-table>tbody>tr.fleet-row>.fleet-action-cell{position:static;border-inline-start:0;background:inherit}
body .fleet-row{background:white;cursor:pointer;transition:background .12s}
body .fleet-row:hover,body .fleet-row:hover .fleet-action-cell{background:#f9fbff}
body .fleet-row.fleet-expanded,body .fleet-row.fleet-expanded .fleet-action-cell{background:#f8faff}
body .fleet-row.fleet-offline{opacity:1;background:#fff}
body .fleet-table .cell-stack{gap:3px;min-width:0}
body .fleet-table .cell-stack small{font-size:11px;color:#64748b;line-height:1.65}
body .fleet-table .fleet-name{min-width:0;max-width:220px;font-size:13px;color:#334863;font-weight:600;line-height:1.6;text-align:start;padding:0;min-height:0}
.fleet-phone-identity{display:flex;align-items:center;gap:10px;min-width:0}
.fleet-phone-symbol{width:33px;height:41px;border-radius:8px;display:grid;place-items:center;background:#f2f5fa;border:1px solid #e7edf6;color:#7796bc;flex-shrink:0}
.fleet-phone-symbol .icon{width:17px;height:22px}
.fleet-phone-info{display:flex;flex-direction:column;min-width:0;gap:4px}
body .fleet-table .fleet-phone-info small{font-size:11px;color:#64748b}
body .fleet-count{border:0;background:#f0f4fa;color:#617b9d;border-radius:5px;font-size:12px;padding:4px 8px;min-height:27px;min-width:50px}
body .fleet-expand{border:0;background:transparent;color:#c4cedd;padding:3px;width:23px;height:27px;min-height:27px}
body .fleet-expand[aria-expanded=true]{background:transparent;color:#6485b6}
body .fleet-expand[aria-expanded=true] svg{transform:rotate(90deg)}
body .fleet-actions{display:flex;align-items:center;gap:3px;flex-wrap:nowrap}
body .fleet-actions .icon-button{width:29px;height:29px;min-height:29px;padding:6px;color:#64748b}
body .fleet-actions .fleet-create{color:#57789f!important;background:#fff!important;border:1px solid #dce5f2!important;font-size:11px;min-height:30px;padding:5px 8px!important}
body .fleet-actions .fleet-create:hover{background:#edf3fe!important;border-color:#bbceeb!important}
body .fleet-create .icon{width:13px;height:13px}
body .fleet-warning{color:#64748b!important}
body .fleet-details-row>td{background:#f8faff!important;border-bottom:1px solid #e5eaf3!important;padding:0!important}
body .fleet-details{padding:20px 22px 24px;border-inline-start:0}
body .fleet-detail-heading{gap:10px;margin-bottom:17px;display:flex;align-items:center;flex-wrap:wrap}
body .fleet-detail-heading strong{font-size:13px;font-weight:600;color:#5b759a;flex:1}
body .fleet-detail-heading button{font-size:11px;min-height:30px;padding:5px 10px}
.connection-list{border:1px solid #e2e9f4;border-radius:10px;overflow:hidden;background:#fff}
.connection-row{display:grid;grid-template-columns:minmax(125px,1fr) minmax(200px,1.6fr) minmax(105px,.7fr) auto;gap:16px;align-items:center;padding:17px 19px;border-bottom:1px solid #edf1f7}
.connection-row:last-child{border:0}
.connection-identity{display:flex;align-items:center;gap:10px;min-width:0}
.connection-symbol{width:33px;height:33px;border:1px solid #e5ecf6;background:#f8faff;display:grid;place-items:center;border-radius:8px;color:#64748b;flex-shrink:0}
.connection-symbol .icon{width:15px;height:15px}
.connection-name{font-size:12px;font-weight:600;color:#425b7d;overflow-wrap:anywhere}
.connection-type{display:flex;gap:5px;margin-top:4px;flex-wrap:wrap;color:#64748b;font:11px Inter,sans-serif}
.connection-type span{padding:2px 5px;border:1px solid #e8edf5;border-radius:3px}
.connection-endpoint{font:12px/1.6 Consolas,monospace;color:#587494;direction:ltr;overflow-wrap:anywhere}
.connection-copy-row{display:flex;align-items:center;gap:5px;margin-top:6px;flex-wrap:wrap}
.connection-copy-row button{font:11px Inter,sans-serif;min-height:23px;padding:3px 6px;color:#64748b;border-color:#e8eef7;background:#fff;border-radius:4px}
.connection-copy-row button .icon{width:11px;height:11px}
body .fleet-credentials{gap:5px;font:11px/1.8 Consolas,monospace;color:#64748b;flex-wrap:wrap;margin-top:4px}
body .fleet-credentials input{font:11px Consolas,monospace;border:0;background:none;padding:0;margin:0;min-height:0;height:17px;width:75px;color:#64748b;letter-spacing:1px}
body .fleet-credentials .icon-button{width:20px;height:20px;min-height:20px;padding:2px;color:#64748b}
.connection-usage{font-size:11px;color:#64748b;margin-top:6px;line-height:1.7}
.connection-tools{display:flex;align-items:center;gap:5px}
.connection-tools>.connection-button{min-height:29px;padding:5px 8px;border-color:#e1e8f3;color:#6e87a9;font-size:11px;font-weight:500}
.connection-tools>.icon-button{width:27px;height:27px;min-height:27px;padding:5px;color:#64748b}
.connection-empty{border:1px dashed #dce5f1;border-radius:10px;background:#fff;padding:26px;display:flex;align-items:center;justify-content:center;gap:15px;color:#64748b}
.connection-empty .icon{width:24px;height:24px}
.connection-empty strong{font-size:13px;font-weight:500;color:#7188aa;display:block}
.connection-empty p{font-size:12px;margin-top:4px;color:#64748b}
body .fleet-details>.muted.small,body .fleet-details .small{font-size:11px;color:#64748b;margin-top:13px;white-space:normal;line-height:1.8}
body .fleet-pagination{padding:13px 21px;background:#fff;border-top:0;gap:8px;font-size:11px;border-radius:0 0 12px 12px;color:#64748b}
body .fleet-pagination select{min-height:28px;padding:4px 8px;font-size:11px;color:#64748b;margin:0;border-color:#e8edf5}
body .fleet-pagination button{min-height:28px;padding:4px 8px;font-size:11px;border-color:#e8edf5;color:#64748b}
body .fleet-health{border-color:var(--line);background:#fff;border-radius:11px;margin-top:0;box-shadow:var(--shadow)}
body .fleet-health>summary{font-size:12px;padding:16px 21px;color:#64748b;cursor:pointer}
body #fleet-alert-count{font-size:11px;color:#64748b;margin-inline-start:8px}
body .fleet-alert{font-size:13px;border-color:#edf0f4;grid-template-columns:minmax(120px,1fr) minmax(140px,3fr) auto}
body .fleet-alert p{color:#64748b;font-size:12px}
body .bulk-bar{background:#f0f5ff;padding:12px 22px;font-size:12px;color:#6485b7;gap:10px;border-block:1px solid #dce7fb}
body .bulk-bar button{font-size:11px;min-height:28px;padding:4px 8px}
body .phone-grid{padding:22px;gap:16px;background:white;border-top:1px solid var(--line)}
body .phone-card{border:1px solid #e4eaf3;border-radius:11px;padding:20px;background:#fff;box-shadow:none}
body .phone-cell .square-icon{color:#64748b;background:#f3f6fb;border-radius:9px}
body .phone-cell strong{font-size:13px;color:#506986}
body .phone-cell small{font-size:11px;color:#64748b}
body .phone-card .cell-stack{font-size:13px;gap:5px;color:#7d93ae;margin:18px 0}
body .phone-card .open-phone{border-color:#e5edf8;color:#748fae;background:#f9fbfe;font-size:12px}
body .device-tabs{display:flex;flex-wrap:nowrap;border:0;border-bottom:1px solid #dfe5ee;border-radius:0;background:transparent;padding:0;gap:4px;margin-bottom:25px;overflow-x:auto;scrollbar-width:thin}
body .device-tabs button{background:transparent;border:0;border-radius:0;font-size:13px;font-weight:500;padding:13px 16px;color:#64748b;white-space:nowrap;position:relative}
body .device-tabs button.active{background:transparent;color:#3c69b9}
body .device-tabs button.active::after{content:'';position:absolute;bottom:0;inset-inline:12px;height:2px;border-radius:2px;background:#5682d2}
body .device-avatar{width:52px;height:60px;background:#fff;border:1px solid #dfe7f2;color:#7796bf;border-radius:12px}
body .device-title{gap:15px}
body .back-link{font-size:12px;color:#64748b;margin-bottom:23px;display:inline-flex;gap:6px}
body .setting-row{padding:21px 24px;border-color:#edf0f5;align-items:center;gap:28px}
body .setting-row h3{font-size:13px;color:#526782;font-weight:500}
body .setting-row p{font-size:12px;line-height:1.9;color:#64748b;max-width:630px;margin-top:4px}
body .setting-row>input,body .setting-row>select,body .setting-row>textarea{max-width:310px;font-size:13px}
body .actions-grid{gap:18px}
body .action-card{border-radius:12px;border-color:#e2e8f1;background:#fff;padding:24px;box-shadow:none}
body .action-card .square-icon{color:#64748b;background:#f1f5fd}
body .action-card h3{font-size:14px;color:#526985}
body .action-card p{font-size:13px;color:#64748b;line-height:1.9}
body .relay-card{padding:24px;border-color:var(--line);border-radius:12px;box-shadow:var(--shadow);background:#fff}
body .relay-top h3{font-size:16px;color:#4b6487}
body .relay-top p{font-size:12px;color:#64748b}
body .relay-icon{width:42px;height:42px;background:#f1f5fb;border-radius:10px;color:#64748b}
body .relay-details{font-size:13px;color:#64748b;border-color:#ecf0f5;line-height:1.8}
body .relay-details small{font-size:11px;color:#64748b}
body .relay-default-label{color:#6e8ab2;font-size:11px}
body .access-card{border:1px solid #e3eaf3;border-radius:12px;box-shadow:var(--shadow);background:#fff;margin-bottom:18px;overflow:hidden}
body .access-card-top{padding:22px 24px;gap:13px}
body .access-card-top strong{font-size:14px;color:#4d6483}
body .access-host{font-size:13px!important;color:#64748b}
body .protocol-icon{background:#f2f6fd;border:1px solid #e5edf8;border-radius:10px;color:#7794bd;font-size:12px}
body .credential-line{font-size:13px;padding:13px 24px;border-color:#edf1f6;color:#64748b;gap:13px}
body .access-meta{background:#fafbfd;padding:13px 24px;font-size:12px;color:#64748b;gap:18px;border-color:#edf1f6}
body .api-key-card{border-color:#e5ebf4;border-radius:9px;padding:19px;margin-bottom:12px;background:#fafbfd;box-shadow:none}
body .api-key-scopes .tag{font-size:11px;color:#7c96ba;background:#f0f4fa}
body .integration-bridge{border-radius:12px;background:#fff;border-color:var(--line);box-shadow:none}
body .integration-flow{background:#fafbfd;border-color:#edf1f6}
body .integration-node-icon{background:#f1f5fc;color:#64748b}
body .integration-node.active{background:#fff;border-color:#cbd9ed;color:#6b8bb7;box-shadow:none}
body .code-dark{border-radius:9px;background:#1e2b3e;font-size:13px;color:#b8cbe6;padding:18px;line-height:1.9;overflow-x:auto}
body .modal-overlay{background:#17263c55;backdrop-filter:none;padding:24px;align-items:flex-start;overflow-y:auto}
body .modal-card{border:1px solid #e1e8f3;border-radius:14px;background:#fff;padding:27px;margin:6vh auto;box-shadow:0 24px 70px #162d4829;max-height:none}
body .modal-heading{padding-bottom:16px;margin-bottom:20px;border-bottom:1px solid #edf1f6;align-items:center}
body .modal-heading h2{font-size:20px;font-weight:550;letter-spacing:-.5px;color:#344d70}
body .modal-heading .icon-button{background:#f6f8fc;border-color:#edf1f7;color:#64748b}
body .proxy-editor{max-width:480px}
body .proxy-editor label{font-size:13px;margin:16px 0;color:#6f83a0}
body .proxy-editor label small{font-size:11px;line-height:1.8;color:#64748b}
body .proxy-phone-context{background:#f3f7fd;color:#64748b;border:1px solid #e7eef8;border-radius:8px;padding:11px 13px;font-size:12px}
body .form-disclosure{border-top:1px solid #edf1f6;padding:14px 0;margin-top:6px}
body .form-disclosure>summary{font-size:13px;color:#64748b}
body .form-disclosure[open]>summary{font-weight:500;color:#527cbb}
body .form-actions{border-top:1px solid #edf1f6;padding-top:18px;gap:8px;margin-top:20px}
body .toast{border-radius:9px;background:#253851;color:#e5edf8;border:1px solid #ffffff0d;box-shadow:0 10px 35px #18325420;font-size:13px;padding:13px 19px}
body .workspace-footer{color:#64748b;font-size:11px;padding-top:26px;border:0}
body.login-body{min-height:100vh;display:grid;place-items:center;background:#f4f6fa;padding:30px}
body .login-card{width:100%;max-width:460px;background:#fff;border:1px solid #e2e8f1;border-radius:16px;padding:40px 42px;box-shadow:0 15px 60px #20345008}
body .login-card .brand{color:#344c6d;margin-bottom:30px}
body .login-card .brand-mark{color:#fff;background:#253a56}
body .login-card .brand small{color:#a6b4c8;font-size:8px;letter-spacing:1px;font-weight:450;display:block;margin-top:4px}
body .login-card h1{font-size:27px;color:#334c70;letter-spacing:-.6px}
body .login-card>.muted{font-size:13px;color:#64748b;margin-top:8px}
body .login-card label{font-size:13px;color:#7b8daa;margin:18px 0}
body .login-card input{min-height:43px;font-size:13px}
body .login-card .primary{min-height:43px;border-radius:8px;width:100%;margin-top:7px;font-size:13px}
body .auth-links{font-size:12px;margin-bottom:20px;color:#64748b}
body .auth-links a{color:#7895c1}
body .auth-footer{border-top:1px solid #edf1f6;font-size:11px;color:#64748b;padding-top:20px;margin-top:22px}
body .portal-shell{max-width:1180px;padding:32px}
body .portal-header{padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:30px}
body .portal-header .brand{color:#30496d}
body .users-toolbar input{max-width:350px}
body #users-content table{font-size:13px}
body #users-content th{background:#f8fafc;font-size:12px;color:#64748b}
body #users-content td{padding:17px 18px;color:#637d9f}
body #users-content td small{font-size:11px;color:#64748b}
@media(min-width:1600px){:root{--sidebar-width:256px}body .page-content{padding:42px 44px}body .topbar{padding:0 44px}body .fleet-table td{padding-block:23px;font-size:13px}body .fleet-table .fleet-name{font-size:13px}.connection-row{padding:20px 24px}}
@media(max-width:1200px){:root{--sidebar-width:224px}body .page-content{padding:27px 23px}body .topbar{padding:0 23px}.fleet-stat{padding:0 18px}.fleet-stat-label{font-size:11px}.connection-row{gap:11px;padding:15px 16px;grid-template-columns:minmax(120px,1fr) minmax(175px,1.5fr) minmax(95px,.8fr) auto}body .update-label{display:none}}
@media(max-width:1000px){.fleet-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}.fleet-stat{padding:20px 22px}.fleet-stat:nth-child(2){border-inline-end:0}.fleet-stat:nth-child(-n+2){border-bottom:1px solid #edf0f4}.connection-row{grid-template-columns:minmax(125px,1fr) minmax(195px,1.5fr)}.connection-tools{justify-content:flex-end}.connection-usage{font-size:11px}body .setting-row{gap:15px}body .workspace-live{display:none}}
@media(max-width:700px){
 :root{--sidebar-width:260px}html[dir] body .workspace{margin:0}html[dir] body .sidebar{width:260px}
 html[dir=rtl] body .sidebar{transform:translateX(100%)}html[dir=ltr] body .sidebar{transform:translateX(-100%)}html[dir] body .sidebar.open{transform:translateX(0)}
 body .topbar{height:59px;padding:0 15px}body .topbar-end{gap:5px}body .breadcrumb{gap:7px}body .breadcrumb>span:first-of-type{display:none}
 body .page-content{padding:24px 15px}body .page-heading{gap:10px;align-items:flex-start;margin-bottom:20px}html[dir] body .page-heading h1{font-size:24px}body .page-heading p{font-size:12px;max-width:240px}
 body .page-heading>.primary{min-height:35px;font-size:11px;padding:7px 11px;margin-top:4px}body .page-heading>.primary .icon{width:14px;height:14px}
 .fleet-stats{margin-bottom:20px}.fleet-stat{padding:18px}.fleet-stat-value strong{font-size:26px}.fleet-stat-label{font-size:11px;gap:6px}.fleet-stat-label .icon{width:13px;height:13px}.fleet-stat-note{font-size:11px;margin-top:8px}
 .fleet-panel-heading{padding:16px 14px 0}.fleet-panel-heading p{font-size:11px}.fleet-panel-heading h2{font-size:13px}
 body .filter-bar{padding:14px;gap:8px}body .filter-bar .search-input{flex-basis:100%;min-width:0}body .filter-bar select{flex:1;min-width:105px;font-size:11px}body .filter-more>summary{font-size:11px;padding:8px;min-height:37px}body .filter-more-body{inset-inline-end:0;width:300px}
 body .fleet-controls{padding:0 14px 13px}body .fleet-totals{width:auto;gap:6px;flex:1}body .fleet-controls select{max-width:85px}body .fleet-controls .fleet-direction{display:none}
 body .fleet-table,body .fleet-table>tbody{display:block;min-width:0;width:100%}body .fleet-table>thead{display:none}
 body .fleet-table>tbody>.fleet-row{display:grid;grid-template-columns:24px 20px minmax(0,1fr) auto;gap:7px 3px;padding:17px 14px;border-top:1px solid #edf1f7;border-bottom:0}
 body .fleet-table>tbody>.fleet-row>td{min-width:0!important;width:auto!important;border:0;padding:0!important;position:static}
 body .fleet-table>tbody>.fleet-row>td:first-child{grid-column:1;grid-row:1;padding-top:12px!important}body .fleet-table>tbody>.fleet-row>td:nth-child(2){grid-column:2;grid-row:1;padding-top:8px!important}
 body .fleet-table .fleet-row>[data-column=name]{grid-column:3;grid-row:1}body .fleet-table .fleet-row>[data-column=status]{grid-column:4;grid-row:1;padding-top:8px!important;max-width:85px}body .fleet-table .fleet-row>[data-column=status] small{display:none}
 body .fleet-table .fleet-row>[data-column=ip]{grid-row:2;grid-column:3/5}body .fleet-table .fleet-row>[data-column=relay]{grid-row:3;grid-column:3/5}.fleet-phone-symbol{width:28px;height:36px}.fleet-phone-identity{gap:8px}
 body .fleet-table .fleet-row>[data-column=network],body .fleet-table .fleet-row>[data-column=traffic],body .fleet-table .fleet-row>[data-column=rotation],body .fleet-table .fleet-row>[data-column=health]{display:none}
 body .fleet-table .fleet-row>[data-column=proxies]{grid-column:3;grid-row:4}body .fleet-table .fleet-row>[data-column=proxies] small,body .fleet-table .fleet-row>[data-column=relay] small{display:none}
 body .fleet-table .fleet-row>.fleet-action-cell{grid-column:3/5;grid-row:5;margin-top:3px;padding-top:8px!important;border-top:1px solid #edf1f7}body .fleet-actions{gap:7px}body .fleet-actions .fleet-create{flex:1;justify-content:center;min-height:33px}
 body .fleet-table .fleet-row>[data-column=ip] .cell-stack{display:flex;gap:5px;flex-direction:row;flex-wrap:wrap;align-items:center}body .fleet-table .cell-stack small{font-size:11px}body .fleet-table .fleet-name{font-size:13px;max-width:100%}
 body .fleet-table>tbody>.fleet-details-row,body .fleet-table>tbody>.fleet-details-row>td{display:block;width:100%!important;min-width:0}body .fleet-details{padding:16px 14px;border:0}.connection-row{grid-template-columns:1fr;gap:12px;padding:17px}.connection-tools{justify-content:flex-start}.connection-status{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.connection-usage{margin:0}
 body .fleet-detail-heading{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}body .fleet-detail-heading strong{flex-basis:100%;font-size:12px}body .fleet-detail-heading button{font-size:11px}.connection-empty{padding:22px 14px;align-items:flex-start}
 body .fleet-pagination{padding:13px 14px;flex-wrap:wrap;gap:7px}body .fleet-pagination>span:first-child{width:auto;flex:1}body .fleet-pagination>span:nth-last-child(2){display:none}body .fleet-pagination select{font-size:11px}body .fleet-pagination button{font-size:11px;padding:4px 7px}
 body .fleet-health>summary{font-size:11px;padding:15px}body #fleet-alert-count{font-size:11px;margin-inline-start:3px}body .fleet-alert{grid-template-columns:1fr auto}body .fleet-alert p{grid-column:1/-1;grid-row:2}
 body .phone-grid{padding:14px}.fleet-column-options{inset-inline-end:0}body .panel-heading,body .panel-body{padding:18px}body .setting-row{padding:18px;display:block}body .setting-row>input,body .setting-row>select,body .setting-row>textarea{max-width:100%;width:100%;margin-top:13px}
 body .device-title{gap:9px}body .device-avatar{width:39px;height:47px;flex-shrink:0}body .device-tabs button{font-size:12px;padding:11px 12px}#page-device .page-heading{flex-direction:column;gap:15px}#page-device .toolbar{flex-wrap:wrap}#page-device .page-heading p{max-width:none;overflow-wrap:anywhere}
 body .modal-overlay{padding:12px}body .modal-card{padding:22px;margin:15px auto;border-radius:12px}body .modal-heading h2{font-size:19px}body .form-disclosure .form-grid{display:block}body .proxy-editor label{font-size:12px}
 body.login-body{padding:20px}body .login-card{padding:30px 25px;border-radius:13px}body .portal-shell{padding:20px 15px}body .portal-header{gap:14px;flex-wrap:wrap}body .portal-header .brand{font-size:21px}body .auth-footer{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.workspace-live[data-state=pending]{color:#64748b;border-color:#e5e9ef}.workspace-live[data-state=pending]::before{background:#a3adbb}.workspace-live[data-state=failed]{color:#a07c35;border-color:#f0e5cc}.workspace-live[data-state=failed]::before{background:#c6a05b}

/* Keep operational values and actions readable on both script systems. */
body .fleet-table .mono,body .connection-endpoint{font-family:Inter,'Segoe UI',sans-serif;font-size:13px;font-weight:500;color:#334155}
body .fleet-name,body .connection-name{color:#25354c}
body .fleet-actions .fleet-create{color:#315da5;border-color:#d4dfef;background:#fff}
body .connection-tools .connection-button{color:#315da5;border-color:#d4dfef}
body .proxy-editor label,body .login-card label{color:#526176}
body .auth-links a{color:#315da5}
body .relay-card-top h3{font-size:16px;color:#25354c}
body .relay-card-top small{font-size:12px;color:#64748b}
body .relay-detail{font-size:13px;color:#64748b;gap:12px}
body .relay-detail strong{font-size:12px;color:#334155;overflow-wrap:anywhere;text-align:end;min-width:0}
body .relay-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
body .relay-card-actions button{flex:1;white-space:nowrap}
body .relay-card-actions button:first-child{flex-basis:100%}

/* 0.22.3: one console palette across inventory, connections and settings. */
:root {
  color-scheme: dark;
  --bg: #101319; --canvas: #101319; --paper: #181d26; --white: #181d26;
  --ink: #edf1f7; --muted: #a4afc0; --line: #303847; --navy: #11161f;
  --accent: #478dff; --accent-strong: #6ca4ff; --accent-soft: #1b3152;
  --purple: #478dff; --purple-soft: #1b3152; --green: #52d0a1;
  --danger: #ff8e99; --mp-line: var(--line); --mp-teal: var(--accent);
  --shadow: none; --shadow-soft: 0 10px 25px #00000012;
}
html[dir] body {background:var(--canvas)!important; color:var(--ink); font-weight:400}
body button {background:#202734; border-color:#3a4557; color:#d3ddeb}
body button:hover {background:#2a3547; border-color:#6382ae; color:#fff}
body button:disabled {opacity:.45}
body button.primary {background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:none}
body button.primary:hover {background:#629eff; border-color:#629eff}
body .text-button {background:transparent; border-color:transparent; color:#a4c7ff}
body .danger {background:#301e29; border-color:#69404c; color:#ff9ba6}
body .icon-button {background:transparent; color:#b0bfd1; border-color:transparent}
body .icon-button:hover {background:#263247; border-color:#435978; color:#e7f0ff}
body input, body select, body textarea {background:#111721; border-color:#3a4557; color:#ecf1f9}
body input[readonly] {background:#141d2a}
body input::placeholder, body textarea::placeholder {color:#8f9caf; opacity:1}
body input:focus, body select:focus, body textarea:focus {border-color:var(--accent)}
body label, body .proxy-editor label, body .login-card label {color:#d0d9e8}
body label small, body .proxy-editor label small {color:#a4afc0; font-size:12px}
body input[type=checkbox] {accent-color:var(--accent)}
body :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid #7db0ff; outline-offset:3px}
body .muted, body .small {color:#a4afc0}
body .mono, body code {color:#d5e1f4}

html[dir] body .sidebar {background:#11161f; border-inline-end:1px solid #2a3240; box-shadow:none}
body .brand {color:#f5f7fa}
body .brand-mark {background:#478dff; color:#111b2e; box-shadow:none}
body .workspace-switch {background:#191f2a; border:1px solid #303847; color:#edf1f7}
body .workspace-avatar {background:#243249; border-color:#3b4c66; color:#b6d2ff}
body .workspace-switch small, body .sidebar-foot small {color:#a4afc0}
body .nav {color:#bdc8d9; font-size:14px}
body .nav:hover {background:#202938; color:#fff}
html[dir] body .nav.active {background:#1c304d; color:#f4f8ff; border-inline-start:3px solid #478dff}
body .nav.active .icon {color:#8abaff}
body .nav-count {background:#29364b; color:#c4d4ee}
body .nav-label {color:#9ca9bc; font-size:12px}
body .sidebar-download {background:#191f2a; border-color:#303847; color:#c4d0e2}
body .sidebar-foot {border-color:#303847; color:#dce6f5}
body .sidebar-foot .admin-avatar {background:#26364f; border-color:#405677; color:#c2d9ff}
body .topbar {height:72px; background:#101319; border-color:#303847; color:#b1bfd3}
body .breadcrumb, body .breadcrumb strong {color:#b4c1d4; font-size:13px}
body .separator {color:#687b97}
body .language-switch {background:#202734; border-color:#3a4557; color:#d3ddeb}
body .update-label {color:#a4afc0; font-size:12px}
body .workspace-live {background:#17342f; border-color:#2c6254; color:#8ce4be; border-radius:6px; font-size:12px}
body .workspace-live::before {background:#52d0a1}
body .workspace-live[data-state=pending] {background:#202734; border-color:#3a4557; color:#a4afc0}
body .workspace-live[data-state=pending]::before {background:#8f9caf}
body .workspace-live[data-state=failed] {background:#352b1d; border-color:#645034; color:#f1c17b}
body .workspace-live[data-state=failed]::before {background:#f1c17b}
body .page-content {padding:32px; max-width:1680px}
body .page-heading {padding:0 0 24px; margin-bottom:24px; border-bottom:1px solid #303847; min-height:96px; background:none; border-radius:0; box-shadow:none; overflow:visible}
body .page-heading::after {display:none}
body .page-heading h1, html[dir=rtl] body .page-heading h1 {font-size:32px; font-weight:650; letter-spacing:-.6px; color:#f4f7fc}
body .page-heading p {color:#b4c1d4; font-size:14px}
body .page-heading>.primary {border-radius:8px; min-height:44px; font-size:14px}

.fleet-stats {grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; gap:14px; background:transparent; border:0; border-radius:0; box-shadow:none; padding:0; margin-bottom:28px}
body .fleet-stats .fleet-stat {background:#181d26; border:1px solid #303847; border-radius:12px; padding:19px 21px; position:relative; overflow:hidden}
body .fleet-stat:last-child {border:1px solid #303847}
body .fleet-stat::before {display:none}
body .fleet-stat-label {font-size:13px; color:#bac7d8; font-weight:500}
body .fleet-stat-label .icon {color:#87a9dc; width:17px; height:17px}
body .fleet-stat-value {margin-top:14px}
body .fleet-stat-value strong {font-size:34px; font-weight:600; color:#f4f7fc}
body .fleet-stat-value small {color:#b7c5d9; font-size:14px}
body .fleet-stat-note {color:#a4afc0; font-size:12px}
body .fleet-stat-note.online-note {color:#7ddcaf}

body .fleet-panel {background:transparent; border:0; box-shadow:none; margin-bottom:24px}
body .fleet-panel-heading {padding:0 0 16px}
body .fleet-panel-heading h2 {font-size:19px; color:#eef3fb}
body .fleet-panel-heading p {font-size:13px; color:#b0bdce}
body .view-switch {background:#181d26; border-color:#3a4557; border-radius:8px}
body .view-switch .active {background:#2b4163; color:#a7caff}
body .filter-bar {background:#181d26; border:1px solid #303847; border-radius:12px 12px 0 0; padding:16px 18px}
body .filter-bar .search-input, body .filter-bar select, body .filter-more>summary {background:#111721; border-color:#3a4557; color:#ccd8e8; font-size:13px; min-height:41px}
body .filter-bar .search-input input {font-size:13px; color:#edf1f7; height:39px}
body .filter-bar .search-input .icon {color:#9aacc5}
body .filter-more-body, body .fleet-column-options {background:#1d2634; border-color:#46556d; color:#d0dced; box-shadow:0 14px 36px #00000055}
body .fleet-controls {background:#181d26; border-inline:1px solid #303847; padding:11px 18px; gap:10px}
body .fleet-totals, body .fleet-totals strong {color:#b5c4d9; font-size:12px}
body .fleet-controls select, body .fleet-columns>summary {background:#202734; color:#c5d3e7; border-color:#3a4557; font-size:12px}
body .fleet-scroll {background:#101722; border:1px solid #303847; border-top:0; border-radius:0; padding:0 10px; overflow:auto}
body .fleet-table {min-width:930px; border-collapse:separate; border-spacing:0 8px; background:transparent}
body .fleet-table th {background:transparent; color:#a6b6cd; border:0; font-size:12px; padding:12px 10px}
body .fleet-table .fleet-sort {font-size:12px; color:inherit; background:transparent}
body .fleet-table td {background:#1b2432; color:#d0dced; border-block:1px solid #354357; padding:20px 10px; white-space:normal}
body .fleet-row {background:transparent; filter:none}
body .fleet-row:hover, body .fleet-row.fleet-expanded {background:transparent}
body .fleet-row:hover td, body .fleet-row.fleet-expanded td {background:#233148}
body .fleet-table>tbody>tr.fleet-row>td:first-child {border-inline-start:1px solid #354357; border-start-start-radius:10px; border-end-start-radius:10px}
body .fleet-table>tbody>tr.fleet-row>td:last-child {border-inline-end:1px solid #354357; border-start-end-radius:10px; border-end-end-radius:10px}
body .fleet-table>thead>tr>th:last-child, body .fleet-table>tbody>tr.fleet-row>.fleet-action-cell {position:static!important; inset-inline-end:auto!important; z-index:auto!important; border-inline-start:0!important}
body .fleet-table>tbody>tr.fleet-row>.fleet-action-cell {background:#1b2432!important}
body .fleet-table>tbody>tr.fleet-row:hover>.fleet-action-cell, body .fleet-table>tbody>tr.fleet-expanded>.fleet-action-cell {background:#233148!important}
body .fleet-table .fleet-name {background:transparent!important; border:0!important; color:#f0f5fc!important; font-size:15px; font-weight:600}
body .fleet-phone-symbol {background:#233c5c; border-color:#3d608b; color:#9fc9ff}
body .fleet-table .cell-stack small, body .fleet-table .fleet-phone-info small {color:#b0bfd3; font-size:12px}
body .fleet-table .mono {color:#dbe8fc; font-size:14px}
body .fleet-table .text-button {color:#bdd4f8; font-size:13px}
body .fleet-table .fleet-count {background:#243c5c!important; border-color:#405e88!important; color:#afd1ff!important; font-size:13px; padding:5px 10px}
body .fleet-actions .fleet-create {background:#263f64!important; border-color:#4d6b98!important; color:#d6e7ff!important; font-size:12px; min-height:34px}
body .fleet-actions .fleet-create:hover {background:#35578a!important; border-color:#7ba6e9!important}
body .fleet-expand {color:#b1c7e6}
body .fleet-expand[aria-expanded=true] {color:#8dbaff}
body .fleet-pagination {background:#181d26; border:1px solid #303847; border-top:0; border-radius:0 0 12px 12px; padding:14px 18px; color:#b9c9df; font-size:12px}
body .fleet-pagination select, body .fleet-pagination button {background:#202734; border-color:#3a4557; color:#c5d3e7; font-size:12px}
body .fleet-details-row>td {background:transparent!important; border:0!important; padding:0!important}
body .fleet-details {background:#131e2e; border:1px solid #3a5376; border-radius:0 0 12px 12px; padding:20px; margin:-8px 0 8px; box-shadow:inset 0 1px #568de04d}
body .fleet-detail-heading strong {font-size:14px; color:#d4e6ff}
body .fleet-detail-heading button {font-size:12px}
body .fleet-details .small {color:#aebdd2; font-size:12px}
.connection-list {display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:14px; background:transparent; border:0; border-radius:0; overflow:visible}
.connection-row {display:grid; position:relative; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto auto; gap:14px 12px; align-items:start; padding:19px; background:#1c283b; border:1px solid #405471; border-radius:10px; overflow:hidden; box-shadow:none}
.connection-row:last-child {border:1px solid #405471}
.connection-row::before {content:''; position:absolute; inset-inline-start:0; inset-block:0; width:3px; background:#478dff}
.connection-identity {grid-column:1; grid-row:1; gap:9px}
.connection-tools {grid-column:2; grid-row:1; gap:4px}
.connection-row>div:nth-child(2) {grid-column:1/-1; grid-row:2}
.connection-status {grid-column:1/-1; grid-row:3; display:flex; gap:12px; align-items:center; flex-wrap:wrap; border-top:1px solid #405471; padding-top:12px}
body .connection-name {color:#f0f5fc; font-size:14px; font-weight:600}
.connection-symbol {background:#253e61; border-color:#4a6a97; color:#a4cbff}
.connection-type {font-size:12px}
.connection-type span {border-color:#4b5d78; color:#c1d6f3; border-radius:4px}
body .connection-endpoint {background:#111c2d; color:#dceaff; border:1px solid #3d5373; border-radius:7px; padding:10px 12px; font:13px/1.7 Consolas,monospace; letter-spacing:0}
body .connection-copy-row button {background:#26374f; border-color:#4c6489; color:#c5dcff; font-size:12px; padding:4px 8px; border-radius:5px}
body .fleet-credentials, body .fleet-credentials input {color:#b8cce7; font-size:12px}
body .connection-usage {color:#c1cee1; font-size:12px}
body .connection-tools>.connection-button {background:#2b4163; border-color:#4d6b98; color:#d0e3ff; font-size:12px; min-height:32px; border-radius:6px}
body .connection-tools>.icon-button {color:#c0d5f3}
body .connection-empty {background:#192638; border-color:#4b6080; color:#c6d4e9}
body .connection-empty strong {color:#e3edfc; font-size:14px}
body .connection-empty p {color:#b5c5dc; font-size:13px}
body .phone-grid {background:transparent; border-color:#303847; padding:18px 0; gap:16px}
body .phone-card {background:#1b2432; border-color:#354357; border-radius:12px}
body .phone-cell strong {color:#edf3fc; font-size:15px}
body .phone-cell small, body .phone-card .cell-stack, body .phone-card .phone-route, body .phone-card .phone-stats {color:#b5c6df; font-size:12px}
body .phone-card .open-phone {background:#263f64; color:#d3e5ff; border-color:#4d6b98}
body .fleet-health {background:#181d26; border-color:#303847; border-radius:12px}
body .fleet-health>summary, body #fleet-alert-count {color:#b8c7dc; font-size:13px}
body .fleet-alert {border-color:#303847}
body .fleet-alert p {color:#b4c1d4; font-size:13px}
body .bulk-bar {background:#223652; color:#c7dcff; border-color:#486181}

body .panel, body .relay-card, body .access-card, body .api-key-card, body .integration-bridge, body .action-card {background:#181d26; border-color:#303847; border-radius:12px; box-shadow:none}
body .panel-heading {border-color:#303847}
body .panel-heading h2, body .content-heading h2, body .relay-card-top h3, body .relay-top h3, body .action-card h3, body .access-card-top strong {color:#edf3fc; font-weight:600}
body .panel-heading p, body .content-heading p, body .relay-card-top small, body .relay-top p, body .relay-detail, body .relay-details, body .action-card p, body .access-host {color:#b4c1d4}
body .relay-detail strong, body .info-pair strong {color:#d5e3f7}
body .device-layout {grid-template-columns:208px minmax(0,1fr)}
body .device-tabs {display:flex; flex-direction:column; flex-wrap:nowrap; overflow:visible; gap:3px; background:#181d26; border:1px solid #303847; border-radius:10px; padding:8px; position:sticky; top:18px; margin:0}
body .device-tabs button {border:0; background:transparent; border-radius:6px; color:#b9c8de; font-size:14px; font-weight:500; padding:12px; margin:0; justify-content:flex-start; white-space:normal; text-align:start}
body .device-tabs button.active {background:#263e62; color:#c7e0ff}
body .device-tabs button.active::after {display:none}
body .device-avatar, body .square-icon, body .relay-icon, body .protocol-icon, body .metric-icon, body .phone-cell .square-icon {background:#253b5a; border-color:#476187; color:#a8cdff}
body .back-link {color:#b4cff8; font-size:13px}
body .setting-row {border-color:#303847}
body .setting-row h3 {color:#e2ebf8; font-size:14px; font-weight:550}
body .setting-row p {color:#b4c1d4; font-size:13px; line-height:1.9}
body .action-card:hover {background:#232e40; border-color:#586c8a}
body .notice.info {background:#1c2d47; border-color:#405b82; color:#c9dcfa}
body .notice.warning {background:#30281c; border-color:#6b5631; color:#f1cea0}
body .notice.error {background:#321f2b; border-color:#754451; color:#ffb4bf}
body .badge.online, body .badge.ready {background:#1a3c31; color:#89e5b7}
body .badge.offline {background:#293243; color:#c1cbdb}
body .badge.paused, body .badge.expired, body .badge.exhausted, body .badge.unavailable {background:#3c3021; color:#f0c995}
body .tag {background:#26354c; color:#bcd1f0}
body .credential-line {border-color:#303847; color:#b5c6de}
body .credential-line code, body .credential-line input {background:transparent; color:#d1e1f7}
body .access-meta, body .integration-flow {background:#131b29; color:#b6c7df; border-color:#303847}
body .api-key-card {background:#151e2c}
body .api-key-scopes .tag {background:#26354c; color:#bcd1f0}
body .integration-node, body .integration-node.active {background:#202e44; border-color:#465e81; color:#d0e2fd; box-shadow:none}
body .integration-node-icon {background:#2d4468; color:#b9d8ff}
body .http-method {background:#1a3c31; color:#89e5b7}
body .http-method.write {background:#263e62; color:#acd0ff}
body .endpoint-row code {color:#c2d6f5}
body .info-pair span, body .event-row small, body .event-row .event-time {color:#abbdd6}
body .event-row {border-color:#303847}
body .event-row>i {background:#253b5a; color:#a8cdff}
body .quota-meter, body .latency-bar {background:#334259}
body .quota-meter span, body .latency-bar span, body .chart-column {background:#5795f6}
body .chart-caption, body .result-area>p {color:#b5c6df}
body .code-dark {background:#0e1623; color:#c2d8f7; border:1px solid #344861}
body table:not(.fleet-table) th, body #users-content th {background:#141e2e; color:#b7c9e2; border-color:#303847}
body table:not(.fleet-table) td, body #users-content td {background:transparent; color:#d0dced; border-color:#303847}
body #users-content td small {color:#b0bfd3; font-size:12px}

body .modal-overlay {background:#060a13cc; backdrop-filter:blur(4px)}
body .modal-card {background:#181f2c; border-color:#485970; color:#edf1f7; box-shadow:0 28px 80px #00000055}
body .modal-heading {border-color:#344259}
body .modal-heading h2 {color:#f0f5fc; font-weight:600}
body .modal-heading .icon-button {background:#253349; border-color:#435878; color:#d0e0f7}
body .proxy-phone-context {background:#233550; border-color:#465f84; color:#c2d8f7; font-size:13px}
body .form-disclosure, body .form-actions {border-color:#344259}
body .form-disclosure>summary {color:#c0d3ef}
body .form-disclosure[open]>summary {color:#a9ceff}
body .toast {background:#263d5e; border-color:#6288bd; color:#edf5ff}
body .workspace-footer {color:#a4afc0; font-size:12px}
body.login-body {background:#101319}
body .login-card {background:#181f2c; border-color:#3b4a62; box-shadow:0 25px 65px #00000022}
body .login-card .brand, body .portal-header .brand {color:#f0f5fc}
body .login-card .brand-mark {background:#478dff; color:#111b2e}
body .login-card h1 {color:#edf3fc; font-weight:600}
body .login-card>.muted {color:#b4c1d4}
body .auth-links, body .auth-footer {color:#b6c5db; border-color:#344259}
body .auth-links a, body .auth-footer a {color:#a9ceff}

@media(min-width:1600px) {body .page-content {padding:38px 40px}}
@media(max-width:1200px) {
  body .page-content {padding:28px 23px}
  body .fleet-stat {padding:18px}
  body .fleet-stat-value strong {font-size:30px}
  .connection-list {grid-template-columns:repeat(auto-fill,minmax(290px,1fr))}
}
@media(max-width:1000px) {
  .fleet-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
  body .device-layout {grid-template-columns:1fr}
  body .device-tabs {flex-direction:row; overflow-x:auto; position:static; padding:5px; margin-bottom:18px; scrollbar-width:thin}
  body .device-tabs button {width:auto; flex-shrink:0; white-space:nowrap; font-size:13px}
}
@media(max-width:700px) {
  body .page-content {padding:24px 14px}
  body .topbar {height:60px}
  body .page-heading {min-height:0; gap:14px; padding-bottom:20px}
  body .page-heading h1, html[dir=rtl] body .page-heading h1 {font-size:26px}
  body .page-heading p {font-size:13px}
  body .page-heading>.primary {font-size:12px; min-height:39px}
  .fleet-stats {gap:10px}
  body .fleet-stat {padding:17px 15px}
  body .fleet-stat-label, body .fleet-stat-note {font-size:12px}
  body .fleet-stat-value strong {font-size:27px}
  body .fleet-panel-heading h2 {font-size:17px}
  body .fleet-panel-heading p {font-size:12px}
  body .filter-bar {padding:14px; gap:8px}
  body .fleet-scroll {padding:0 6px}
  body .fleet-table {min-width:0}
  body .fleet-table>tbody>.fleet-row {background:#1b2432; border:1px solid #354357; border-radius:10px; margin-block:8px; padding:18px 10px}
  body .fleet-table>tbody>.fleet-row>td, body .fleet-table>tbody>tr.fleet-row>.fleet-action-cell {background:transparent!important; border-radius:0; border:0}
  body .fleet-table>tbody>tr.fleet-row>td:first-child, body .fleet-table>tbody>tr.fleet-row>td:last-child {border:0}
  body .fleet-table .fleet-row>.fleet-action-cell {border-top:1px solid #354357}
  body .fleet-actions .fleet-create {min-height:36px}
  body .fleet-details {padding:16px 10px; margin-inline:0}
  .connection-list {grid-template-columns:minmax(0,1fr); gap:12px}
  .connection-row {padding:17px; grid-template-columns:minmax(0,1fr); gap:13px}
  .connection-identity {grid-column:1; grid-row:1}
  .connection-row>div:nth-child(2) {grid-column:1; grid-row:2}
  .connection-status {grid-column:1; grid-row:3}
  .connection-tools {grid-column:1; grid-row:4; justify-content:flex-start; padding-top:3px}
  body .connection-tools>.connection-button {min-height:35px; font-size:13px}
  body .fleet-pagination {padding:14px; flex-wrap:wrap}
  body .fleet-controls {padding:11px 14px}
  body .fleet-health>summary, body #fleet-alert-count {font-size:12px}
}

/* 0.22.4: nested connections in both views and an explicit mobile section menu. */
body .device-section-picker {display:none}
body .fleet-totals {flex-wrap:wrap; row-gap:6px}
body .fleet-totals>* {white-space:nowrap}
body .phone-card {min-width:0}
body .phone-card .phone-head {display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:center}
body .phone-card .phone-cell, body .phone-card .phone-cell>div {min-width:0}
body .phone-card .phone-cell strong {overflow-wrap:anywhere; line-height:1.5}
body .phone-card-actions {display:flex; align-items:center; gap:8px; flex-wrap:wrap}
body .phone-card-actions .open-phone {flex:1; justify-content:center}
body .phone-card-expanded {grid-column:1/-1; border-color:#5775a0}
body .phone-card-expanded>.cell-stack {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:center; padding-block:14px; border-block:1px solid #354357; margin-block:16px; font-size:13px}
body .phone-card-expanded .phone-card-actions .open-phone {flex:0 1 250px}
body .phone-card .fleet-details {margin:18px -4px -4px; padding:18px; border-radius:10px}
body .connection-identity>div {min-width:0}
body .connection-name {overflow-wrap:anywhere}
body .connection-endpoint {overflow-wrap:anywhere; unicode-bidi:plaintext}
body .device-tabs {min-width:0}
body .panel pre:not(.code-dark) {background:#111c2d; color:#dceaff; border:1px solid #3d5373; border-radius:7px; padding:14px; font:13px/1.7 Consolas,monospace; direction:ltr; text-align:left; overflow:auto}

@media(max-width:1000px) {
  body .device-section-picker {display:flex; flex-direction:column; gap:8px; margin:0 0 22px; font-size:12px; color:#b9c8de}
  body .device-section-picker select {width:100%; min-height:46px; background:#1b2432; border-color:#415570; color:#edf3fc; font-size:14px}
  body .device-tabs {display:none}
}
@media(max-width:700px) {
  body .fleet-controls {gap:10px; flex-wrap:wrap; align-items:center}
  body .fleet-totals {flex:0 0 100%; gap:0; padding-bottom:10px; border-bottom:1px solid #303847}
  body .fleet-totals>* {padding-inline:12px; border-inline-start:1px solid #303847}
  body .fleet-totals>:first-child {padding-inline-start:0; border-inline-start:0}
  body .fleet-controls select {flex:1; max-width:none; min-width:100px; min-height:40px; font-size:13px}
  body .fleet-controls .fleet-direction {display:inline-flex; min-width:40px; min-height:40px}
  body .fleet-columns>summary {min-height:40px; padding:10px 12px; font-size:12px}
  body .fleet-column-options {width:min(280px,calc(100vw - 60px)); inset-inline-end:auto; inset-inline-start:0}
  body .fleet-table>tbody>.fleet-row {grid-template-columns:22px 28px minmax(0,1fr) auto; gap:12px 6px; padding:16px 12px}
  body .fleet-table>tbody>.fleet-row>td:first-child {padding-top:10px!important}
  body .fleet-table>tbody>.fleet-row>td:nth-child(2) {padding-top:5px!important}
  body .fleet-table .fleet-row>[data-column=name] {grid-column:3/5; grid-row:1}
  body .fleet-table .fleet-row>[data-column=status] {grid-column:3/5; grid-row:2; max-width:none; padding-top:0!important}
  body .fleet-table .fleet-row>[data-column=ip] {grid-column:3/5; grid-row:3}
  body .fleet-table .fleet-row>[data-column=relay] {grid-column:3; grid-row:4}
  body .fleet-table .fleet-row>[data-column=proxies] {grid-column:4; grid-row:4}
  body .fleet-table .fleet-row>.fleet-action-cell {grid-column:1/-1; grid-row:5; margin:0; padding-top:12px!important}
  body .fleet-table .fleet-name {font-size:14px; line-height:1.5; overflow-wrap:anywhere; white-space:normal}
  body .fleet-phone-info {min-width:0}
  body .fleet-phone-symbol {display:none}
  body .fleet-actions .fleet-create, body .fleet-actions .icon-button {min-height:40px}
  body .fleet-actions .icon-button {min-width:40px; background:#243249!important; border-color:#3b506e!important}
  body .fleet-expand {width:28px; min-width:28px; min-height:32px}
  body .fleet-detail-heading {display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center}
  body .fleet-detail-heading strong {grid-column:1/-1; font-size:14px; overflow-wrap:anywhere}
  body .fleet-detail-heading button {font-size:12px; min-height:40px}
  body .fleet-detail-heading button:last-child {grid-column:1/-1; justify-content:flex-start; padding-inline:0}
  body .connection-tools {display:flex; gap:8px}
  body .connection-tools>.connection-button {flex:1; min-height:42px; justify-content:center}
  body .connection-tools>.icon-button {min-width:42px; min-height:42px; background:#243950; border:1px solid #405471}
  body .connection-copy-row button {min-height:36px; padding:7px 10px}
  body .phone-card .phone-head {grid-template-columns:auto minmax(0,1fr)}
  body .phone-card .phone-head>.badge {grid-column:2}
  body .phone-card-expanded>.cell-stack {display:flex; gap:7px; padding-block:12px}
  body .phone-card-expanded .phone-card-actions .open-phone {flex:1}
  body .phone-card .fleet-details {padding:14px 10px}
}

/* Adapt to the space available beside the sidebar, including tablet panels. */
body .fleet-scroll {container-type:inline-size}
/* Keep long phone names and controls inside tablet and sidebar layouts. */
body #page-device .page-heading {flex-wrap:wrap;align-items:flex-start}
body #page-device .device-title {flex:1 1 340px;min-width:0}
body #page-device .device-title>div {min-width:0}
body #page-device .title-line {flex-wrap:wrap}
body #page-device .device-title h1 {overflow-wrap:anywhere}
body #page-device .page-heading>.toolbar {flex:0 1 auto;flex-wrap:wrap;max-width:100%}
body #page-device .page-heading>.toolbar button {white-space:normal}
@media(max-width:700px) {
  body #page-device .device-title {flex:0 1 auto;width:100%}
}
@container (max-width:860px) {
  body .fleet-table, body .fleet-table>tbody {display:block;min-width:0;width:100%}
  body .fleet-table>thead {display:none}
  body .fleet-table>tbody>.fleet-row {display:grid;grid-template-columns:24px 28px minmax(0,1fr) auto;gap:12px 8px;margin:8px;border:1px solid #354357;border-radius:10px;padding:18px 12px;background:#1b2432}
  body .fleet-table>tbody>.fleet-row>td {min-width:0!important;width:auto!important;border:0!important;padding:0!important;background:transparent!important;position:static}
  body .fleet-table>tbody>.fleet-row>td:first-child {grid-column:1;grid-row:1;padding-top:8px!important}
  body .fleet-table>tbody>.fleet-row>td:nth-child(2) {grid-column:2;grid-row:1;padding-top:4px!important}
  body .fleet-table .fleet-row>[data-column] {grid-column:3/-1}
  body .fleet-table .fleet-row>[data-column=name] {grid-column:3/-1;grid-row:1}
  body .fleet-table .fleet-row>[data-column=status] {grid-column:3/-1;grid-row:2;max-width:none}
  body .fleet-table .fleet-row>[data-column=ip] {grid-column:3/-1;grid-row:3}
  body .fleet-table .fleet-row>[data-column=relay] {grid-column:3;grid-row:4}
  body .fleet-table .fleet-row>[data-column=proxies] {grid-column:4;grid-row:4}
  body .fleet-table .fleet-row>.fleet-action-cell {grid-column:1/-1;border-top:1px solid #354357!important;padding-top:12px!important}
  body .fleet-table .fleet-row .fleet-name {max-width:100%;white-space:normal;overflow-wrap:anywhere}
  body .fleet-table>tbody>.fleet-details-row, body .fleet-table>tbody>.fleet-details-row>td {display:block;width:100%!important;min-width:0;padding:0!important}
  body .fleet-details {padding:18px 12px}
  body .fleet-detail-heading strong {flex-basis:100%;font-size:14px}
  body .connection-list {grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))}
}
