:root{--blue:#08a9c4;--cyan:#18c3d5;--line:#dce5ef;--muted:#66758d}
.page-heading p,.panel-subtitle,.field-hint,.form-note,.muted,.breadcrumbs,.stat-foot,.stat-label,.preview-label,.segmentation{color:#66758d}
.panel,.stat-card,[role="dialog"],.auth-card,.provider-card{border-radius:12px}
button,.button-primary,.button-secondary,.primary,.quick-action,.balance-pill,.theme-toggle,.filter-row input,.filter-row select,.field input,.field textarea,.field select{border-radius:10px}
.nav-item{border-radius:9px}
.panel-head{padding-bottom:10px;border-bottom:1px solid #e5ebf2}
.data-table th{border-bottom:1px solid #dce5ef;color:#66758d}
.data-table td{border-color:#e2e9f1}
.field input,.field textarea,.field select,.filter-row input,.filter-row select{border-color:#cfdae8}
.imei-history-toolbar input,#history-search{width:min(100%,440px);min-height:42px;padding:10px 13px;border:1px solid #cfdae8;border-radius:10px;background:#fff;color:#24334b;font:inherit;font-size:12px;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
.imei-history-toolbar input::placeholder,#history-search::placeholder{color:#7f8da3;opacity:1}
.imei-history-toolbar input:focus,#history-search:focus{border-color:#438fe9;box-shadow:0 0 0 3px #2879e81a}
.message-history-pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin:14px 0 2px;color:#66758d;font-size:12px}
.message-history-pagination button{min-width:104px}
.message-history-pagination button:disabled{opacity:.45;cursor:not-allowed}
.field input:focus,.field textarea:focus,.field select:focus,.filter-row input:focus,.filter-row select:focus{border-color:#69a5f4;box-shadow:0 0 0 3px #2879e81a}
.primary,.button-primary{background:linear-gradient(105deg,#2879e8,#2699e8);box-shadow:0 5px 14px #2879e824}
.primary:hover,.button-primary:hover{filter:brightness(1.04)}
.button-secondary{border-color:#d6e0ec}
button:focus-visible,a:focus-visible{outline:3px solid #48b6d1;outline-offset:2px}
hr{border:0;border-top:1px solid #dce5ef}
body[data-theme="dark"]{--line:#2a3d53;--muted:#aab9cd}
body[data-theme="dark"] .page-heading p,body[data-theme="dark"] .panel-subtitle,body[data-theme="dark"] .field-hint,body[data-theme="dark"] .muted,body[data-theme="dark"] .breadcrumbs,body[data-theme="dark"] .stat-foot,body[data-theme="dark"] .stat-label,body[data-theme="dark"] .preview-label,body[data-theme="dark"] .segmentation{color:#aab9cd}
body[data-theme="dark"] .panel-head{border-color:#2a3d53}
body[data-theme="dark"] .data-table th{border-color:#2a3d53;color:#aab9cd}
body[data-theme="dark"] .data-table td{border-color:#2a3d53}
body[data-theme="dark"] .imei-history-toolbar input,body[data-theme="dark"] #history-search{background:#0b1524;color:#e5ecf8;border-color:#314158}
body[data-theme="dark"] .imei-history-toolbar input::placeholder,body[data-theme="dark"] #history-search::placeholder{color:#9eabc2}
body[data-theme="dark"] .message-history-pagination{color:#aab9cd}
body[data-theme="dark"] hr{border-color:#2a3d53}
/* Keep the panel surfaces readable while shifting its interactive accents to translucent cyan. */
.primary,.button-primary{background:rgba(8,169,196,.88);background-image:linear-gradient(105deg,rgba(8,169,196,.88),rgba(24,195,213,.88));box-shadow:0 5px 14px rgba(8,169,196,.16)}
.primary:hover,.button-primary:hover{background-image:linear-gradient(105deg,rgba(0,151,180,.94),rgba(10,177,199,.94))}
.field input:focus,.field textarea:focus,.field select:focus,.filter-row input:focus,.filter-row select:focus,.imei-history-toolbar input:focus,#history-search:focus{border-color:rgba(8,169,196,.72);box-shadow:0 0 0 3px rgba(24,195,213,.16)}
.nav-item.active,.nav-item[aria-current="page"]{border-color:rgba(24,195,213,.22);background:rgba(24,195,213,.12)}
a,.text-link,.imei-history-open,.route-edit{color:#078da8}
button:focus-visible,a:focus-visible{outline-color:rgba(24,195,213,.72)}
body[data-theme="dark"] .nav-item.active,body[data-theme="dark"] .nav-item[aria-current="page"]{background:rgba(24,195,213,.16);border-color:rgba(24,195,213,.28)}
.nav-item:hover,.nav-item:focus-visible,.nav-item.active,.nav-item[aria-current="page"],.admin-subnav .nav-item.active{background:rgba(24,195,213,.14);border-color:rgba(24,195,213,.32);color:#087f94;transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .12s ease}
.nav-item:active,.admin-subnav .nav-item:active{transform:scale(.985)}
.theme-toggle{background:#fff;color:#52657f;border-color:rgba(8,169,196,.24)}
body:not([data-theme="dark"]) .theme-toggle:hover{background:#fff;border-color:rgba(8,169,196,.5);box-shadow:0 0 0 3px rgba(24,195,213,.12)}
body:not([data-theme="dark"]) .sidebar .nav-item.active,body:not([data-theme="dark"]) .sidebar .nav-item[aria-current="page"]{background:rgba(24,195,213,.16);color:#0a8398}
body[data-theme="dark"] .sidebar .nav-item:hover,body[data-theme="dark"] .sidebar .nav-item:focus-visible,body[data-theme="dark"] .sidebar .nav-item.active{background:rgba(24,195,213,.17);border-color:rgba(24,195,213,.32);color:#7de5ed}
body:not([data-theme="dark"]) .sidebar{background:#fff;color:#53657b;border-right:1px solid #e5edf1;box-shadow:4px 0 18px rgba(23,60,80,.035)}
body:not([data-theme="dark"]) .side-brand{color:#233348}
body:not([data-theme="dark"]) .workspace{border-bottom:1px solid #e5edf1}
body:not([data-theme="dark"]) .workspace strong{color:#34485d}
body:not([data-theme="dark"]) .sidebar .nav-item{color:#64758a;border:1px solid transparent}
body:not([data-theme="dark"]) .sidebar .nav-item:hover,body:not([data-theme="dark"]) .sidebar .nav-item:focus-visible,body:not([data-theme="dark"]) .sidebar .nav-item.active,body:not([data-theme="dark"]) .sidebar .admin-subnav .nav-item.active{background:rgba(24,195,213,.16);border-color:rgba(8,169,196,.24);color:#07889e}
body:not([data-theme="dark"]) .sidebar .nav-item:active{background:rgba(24,195,213,.25);transform:scale(.985)}
body:not([data-theme="dark"]) .admin-subnav{border-color:rgba(8,169,196,.3)}
body:not([data-theme="dark"]) .sidebar .side-label{color:#71869b}
.side-brand{text-decoration:none}
.side-brand>span{font-size:0;color:inherit}
.side-brand>span::after{content:"DRAGON SMS KIT";font-size:16px;color:inherit}
.auth-card{color:#101820}
.auth-card h2,.auth-card label,.auth-card .check,.auth-card .muted,.auth-card .form-note{color:#111820}
.auth-card .eyebrow{color:#087f94}
.auth-tabs .auth-tab{color:#354454}
.auth-tabs .auth-tab.active{color:#087f94}
.auth-tabs .auth-tab.active:after{background:#18b8ca}
.auth-card #register-form,.auth-card #reset-form{color:#111820}
.auth-card #register-form h2,.auth-card #reset-form h2,.auth-card #register-form label,.auth-card #reset-form label{color:#111820}
.auth-card input:not([type=checkbox]){color:#111820}
.auth-card input::placeholder{color:#657180;opacity:1}
.form-row #reset-link{min-height:34px;padding:7px 14px;border:1px solid rgba(8,169,196,.28);border-radius:999px;background:rgba(24,195,213,.13);color:#087f94;font-weight:700;text-decoration:none}
.form-row #reset-link:hover{background:rgba(24,195,213,.23)}
.password-wrap .text-button{display:grid;place-items:center;width:38px;height:38px;top:12px;right:7px;padding:8px;border-radius:50%;color:#087f94}
.password-wrap .text-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.password-wrap input{padding-right:52px!important}
.login-success-backdrop{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:20px;background:rgba(10,24,35,.48);backdrop-filter:blur(4px)}
.login-success-dialog{width:min(100%,360px);padding:28px 24px;border:1px solid rgba(24,195,213,.25);border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 24px 80px rgba(8,35,47,.24);text-align:center;color:#111820;animation:login-pop-in .2s ease-out}
.login-success-dialog>img{width:46px;height:46px;object-fit:cover;border-radius:50%;background:#061426}
.login-success-mark{display:grid;place-items:center;width:42px;height:42px;margin:14px auto 10px;border-radius:50%;background:rgba(24,195,213,.16);color:#07889e;font-size:25px;font-weight:800}
.login-success-dialog h2{margin:0;color:#111820;font-size:20px}
.login-success-dialog p{margin:8px 0 20px;color:#374653;font-size:13px}
.login-success-dialog button{min-width:140px}
@keyframes login-pop-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.login-success-dialog{animation:none}}
button,.button-primary,.button-secondary,.primary,.quick-action,.theme-toggle,.message-history-pagination button,.imei-history-pagination button,.imei-service-toolbar button{border-radius:999px;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .12s ease}
button:not(:disabled):hover,.button-primary:not(:disabled):hover,.button-secondary:not(:disabled):hover,.primary:not(:disabled):hover{transform:translateY(-1px)}
button:not(:disabled):active,.button-primary:not(:disabled):active,.button-secondary:not(:disabled):active,.primary:not(:disabled):active{transform:translateY(1px) scale(.98)}
button:focus-visible,.button-primary:focus-visible,.button-secondary:focus-visible,.primary:focus-visible{box-shadow:0 0 0 3px rgba(24,195,213,.22)}
input[type="search"],.search-bar,.search-input,.imei-service-search,.imei-history-toolbar input,#history-search,input[placeholder*="Search"],input[placeholder*="search"]{border-radius:999px!important;transition:border-color .16s ease,box-shadow .16s ease}
input[type="search"]:focus,.search-bar:focus,.search-input:focus,.imei-service-search:focus,.imei-history-toolbar input:focus,#history-search:focus,input[placeholder*="Search"]:focus,input[placeholder*="search"]:focus{border-color:rgba(8,169,196,.76)!important;box-shadow:0 0 0 3px rgba(24,195,213,.18)!important;outline:none}
@media(max-width:600px){.panel-head{padding-bottom:8px}.panel,.stat-card{border-radius:11px}}
@media(max-width:480px){.message-history-pagination{gap:6px}.message-history-pagination button{min-width:0;padding:9px 11px}}
body:not([data-theme="dark"]) .sidebar .nav-item.active,body:not([data-theme="dark"]) .sidebar .nav-item[aria-current="page"],body:not([data-theme="dark"]) .sidebar .admin-subnav .nav-item.active{background:rgba(24,195,213,.32);border-color:rgba(8,169,196,.48);color:#123943;font-weight:700}
