/* Quiet, phone-centered workspace. Semantic colors are reserved for status. */
:root{--bg:#f6f7f9;--ink:#1d2632;--muted:#687381;--line:#e0e5eb;--purple:#2455a5;--purple-soft:#edf3fc;--green:#16734d;--danger:#b53942;--navy:#fff;--shadow:none}
body{color:var(--ink);background:var(--bg);font-size:14px}
body .sidebar{width:224px;background:#fff;color:var(--muted);padding:28px 16px 18px;border-inline-end:1px solid var(--line);box-shadow:none}
body .workspace{margin-inline-start:224px;margin-inline-end:0}
html[dir=rtl] body .workspace{margin-right:224px;margin-left:0}
html[dir=ltr] body .workspace{margin-left:224px;margin-right:0}
body .brand{color:#172537;gap:10px;font-size:23px;text-decoration:none}
body .brand-mark{width:34px;height:34px;border-radius:8px;background:#203246;color:#fff;box-shadow:none;font:700 25px/1 'Segoe UI',sans-serif;display:grid;place-items:center}
body .workspace-switch{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;margin:22px 0 16px;padding:15px 2px;color:var(--ink)}
body .workspace-avatar,body .admin-avatar,body .sidebar-foot .admin-avatar{background:#edf1f5;color:#415365;border:1px solid #e0e5eb}
body .workspace-switch small,body .sidebar-foot small{color:var(--muted)}
body .nav{color:#536172;border-radius:6px;padding:12px 11px;font-size:13px;margin:3px 0}
body .nav:hover{background:#f3f5f8;color:#27384e}
body .nav.active{color:#234f91;background:#edf3fc;box-shadow:none;font-weight:600}
html[dir] body .nav.active{box-shadow:none;border-inline-start:3px solid #2455a5}
body .nav-count{color:#476992;background:#e2ebf7}
body .nav-label{color:#88929e;font-size:11px;margin:26px 12px 10px}
body .sidebar-foot{border-top:1px solid var(--line);color:#344152;padding:18px 0 0;margin-top:20px}
.sidebar-download{margin-top:auto;padding:15px 10px;display:flex;align-items:center;gap:8px;color:#455c79;font-size:12px;text-decoration:none}
body .topbar{background:#fff;border-bottom:1px solid var(--line);height:64px;padding:0 32px}
body .page-content{max-width:1920px;padding:30px 32px 40px}
body .page-heading{margin-bottom:20px}
body .page-heading h1{font-size:25px;letter-spacing:0;font-weight:650;line-height:1.5}
body .page-heading p{font-size:13px;color:var(--muted);margin-top:5px}
body .eyebrow,body .heading-dot{display:none}
body .primary{background:#2455a5;border:1px solid #2455a5;color:#fff;box-shadow:none;border-radius:6px}
body .primary:hover{background:#1c4486;border-color:#1c4486}
body button{border-radius:6px;font-size:13px}
body button:focus-visible,body a:focus-visible,body input:focus-visible,body select:focus-visible,body summary:focus-visible{outline:3px solid #83aae5;outline-offset:2px}
body .panel,body .relay-card,body .access-card,body .api-key-card{border:1px solid var(--line);border-radius:8px;box-shadow:none;background:#fff}
body .metric{box-shadow:none;border-radius:8px}
body .metric-icon,body .square-icon{background:#f0f3f7;color:#60748b}
body .badge{border-radius:5px;padding:4px 8px;font-size:11px}
body .badge.online,body .badge.ready{background:#edf7f1;color:#176442}
body .badge.offline,body .badge.paused{background:#f0f2f5;color:#66707d}
body .badge.unavailable{background:#fff4e2;color:#866010}
.fleet-stats{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin:0 0 20px;font-size:12px;color:#718092}
.fleet-stats strong{color:#273a4d;font-size:15px;margin-inline-end:4px}
.fleet-health{border:1px solid var(--line);border-radius:8px;background:#fff;margin-top:20px}
.fleet-health>summary{font-size:12px;color:#6c7888;padding:14px 18px;cursor:pointer}
body .filter-bar{padding:14px;gap:10px;background:#fff}
body input,body select,body textarea{font-size:13px;border-color:#d6dee7;border-radius:6px;color:#24384e}
body .filter-bar select{font-size:12px;min-width:115px}
body .fleet-controls{border-bottom:1px solid var(--line);padding:11px 16px;background:#fafbfd}
body .fleet-table{min-width:940px;font-size:13px}
body .fleet-scroll{max-height:none;overflow-x:auto;overflow-y:visible}
body .fleet-table th{font-size:11px;font-weight:500;background:#fafbfd;color:#718092;padding:12px 13px}
body .fleet-table td{padding:17px 13px;border-bottom:1px solid #e9edf2}
body .fleet-row{cursor:pointer}
body .fleet-row:hover{background:#f8fafc}
body .fleet-row.fleet-offline{opacity:1}
body .fleet-name{color:#234f91;font-size:14px;font-weight:600}
body .fleet-table .fleet-name{color:#234f91;font-size:14px}
body .cell-stack small{color:#83909e;font-size:11px;margin-top:3px}
body .fleet-count{background:#edf3fc;color:#2455a5;border-radius:5px;padding:5px 9px;border:0;font-size:12px}
body .fleet-expand{border:0;color:#7187a4;background:transparent}
body .fleet-expand[aria-expanded=true]{color:#2455a5;background:#edf3fc}
body .fleet-actions{gap:6px}
body .fleet-create{font-size:12px;padding:6px}
body .fleet-actions .fleet-create{color:#2455a5;background:#f6f9fe;border-color:#dce6f4}
body .fleet-actions .fleet-create{color:#2455a5!important;background:#f6f9fe!important;border-color:#dce6f4!important}
body .fleet-details-row td{padding:0;background:#f3f6fa}
body .fleet-details{padding:18px 22px;border-inline-start:3px solid #9cb6dc}
body .fleet-detail-heading{margin-bottom:14px;gap:12px;align-items:center}
body .fleet-detail-heading strong{font-size:13px;flex:1}
body .fleet-detail-heading button{font-size:12px}
body .fleet-proxies{background:#fff;border:1px solid #dfe6ef;border-radius:6px}
body .fleet-proxies th{font-size:11px;font-weight:500;background:#fff;color:#76869b}
body .fleet-proxies td{padding:13px 15px;vertical-align:middle}
.fleet-credentials{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px}
.fleet-credentials input{width:130px;margin:0;padding:3px 6px;border-color:transparent;background:#f8fafc;font:12px monospace}
.fleet-credentials .icon-button{width:27px;height:27px}
body .fleet-pagination{padding:14px 16px;background:#fff;font-size:12px}
body .modal-overlay{background:#1f2c3a66;backdrop-filter:none;align-items:flex-start}
body .modal-card{border:1px solid #dce3eb;border-radius:10px;box-shadow:0 16px 55px #182a4426;padding:24px;margin:38px auto}
body .modal-heading{margin-bottom:16px}
body .modal-heading h2{font-size:19px}
body .proxy-editor{max-width:460px}
.proxy-phone-context{padding:10px 12px;background:#f2f5f8;border-radius:6px;color:#48617e;font-size:12px;margin-bottom:15px}
.proxy-phone-context:empty{display:none}
.form-disclosure{border-top:1px solid var(--line);padding:12px 0;margin-top:2px;font-size:12px}
.form-disclosure>summary{cursor:pointer;color:#546b87;padding:3px 0;font-size:12px}
.form-disclosure[open]>summary{font-weight:600;color:#2455a5;margin-bottom:8px}
body .proxy-editor label{font-size:12px;margin:13px 0}
body .proxy-editor small{font-size:10px}
body .proxy-editor textarea{min-height:64px}
body .proxy-editor .form-actions{border-top:1px solid var(--line);padding-top:18px;margin-top:14px}
body .device-tabs{background:#fff;border:1px solid var(--line);border-radius:8px}
body .device-tabs button.active{background:#edf3fc;color:#2455a5}
body .device-avatar{background:#edf1f6;color:#4c6585}
body .protocol-icon{border-radius:6px;background:#edf3fc;color:#2455a5}
body .access-meta{background:#f8fafc;color:#798899}
body .notice.info{background:#f2f6fb;color:#476483;border-color:#dee8f4}
body .notice.warning{background:#fffaee;border-color:#f4e7bd;color:#846329}
body .notice.error{background:#fcf2f2;border-color:#f2dada;color:#a43e46}
body .toast{border-radius:6px;background:#223a52}
body .login-body{background:#f4f6f8}
body .login-card{border-radius:10px;border:1px solid #dce3eb;box-shadow:0 8px 30px #253b5708}
body .login-card h1{font-size:24px}
body .login-card .brand{margin-bottom:28px}
body .login-card .primary{margin-bottom:15px}
.auth-links{text-align:center;font-size:13px}
.auth-links a,.auth-footer a{color:#2455a5;text-decoration:none}
.auth-footer{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;display:flex;justify-content:space-between;gap:15px;font-size:11px}
.users-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.users-toolbar input{max-width:320px;margin:0}
body[data-admin-role=user] [data-owner-only]{display:none!important}
body[data-admin-role=operator] [data-phone-create]{display:none!important}
body[data-admin-role=operator] [data-tab=api]{display:none!important}
#users-content td>small{display:block;margin-top:5px;font-size:11px}
.filter-more{position:relative;font-size:12px;color:#58718e}
.filter-more>summary{padding:9px;cursor:pointer}
.filter-more-body{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px;border:1px solid var(--line);border-radius:6px;position:absolute;inset-inline-end:0;top:100%;background:#fff;z-index:12;width:340px;box-shadow:0 8px 20px #253b5710}
.filter-more-body select{flex:1}
.api-address,.phone-api-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.api-address input{flex:1;min-width:180px;margin:0}.phone-api-form select{width:auto;margin:0}
.fleet-proxy-scroll{overflow-x:auto;max-width:100%}
@media(max-width:700px){
 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:26px 30px minmax(0,1fr);gap:0;padding:15px 12px;border-bottom:1px solid var(--line)}
 body .fleet-table>tbody>.fleet-row>td{min-width:0!important;width:auto!important;border:0;padding:4px!important;position:static}
 body .fleet-table .fleet-row>[data-column=name]{grid-column:3}
 body .fleet-table .fleet-row>.fleet-action-cell{grid-column:3;border:0;background:transparent}
 body .fleet-row .fleet-name{min-width:0;text-align:start;font-size:14px;max-width:100%}
 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 .cell-stack{gap:3px}
 body .fleet-table>tbody>.fleet-details-row,body .fleet-details-row>td{display:block;width:100%;min-width:0}
 body .fleet-details .fleet-detail-heading{flex-wrap:wrap}
 body .fleet-details .fleet-detail-heading strong{flex-basis:100%}
 body .fleet-table .fleet-proxies{display:table;min-width:650px}
}
@media(max-width:1100px){body .page-content{padding:24px 20px}body .topbar{padding:0 20px}body .sidebar{width:210px}html[dir=rtl] body .workspace{margin-right:210px}html[dir=ltr] body .workspace{margin-left:210px}}
@media(max-width:700px){body .sidebar{width:250px}html[dir=rtl] body .workspace,html[dir=ltr] body .workspace{margin:0}body .page-content{padding:22px 14px}body .topbar{padding:0 14px}body .page-heading h1{font-size:22px}.fleet-stats{gap:13px;font-size:11px}body .fleet-details{padding:12px}.proxy-editor{margin-top:10px!important}body .fleet-details-row{overflow:auto}body .fleet-proxies{min-width:650px}body .modal-overlay{padding:10px}body .fleet-table td{padding:14px 10px}.form-disclosure .form-grid{display:block}body .login-card{padding:28px}.auth-footer{flex-wrap:wrap}}
