@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #18283d;
  --muted: #63748a;
  --line: #e4eaf0;
  --canvas: #f3f6f9;
  --shadow: 0 10px 30px rgba(28, 48, 72, .055);
}

html {
  min-width: 320px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body,
button,
input,
textarea,
select {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-optical-sizing: auto;
}

body {
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0;
}

h1 {
  color: #172b43;
  font-size: clamp(25px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.7;
}

.sidebar {
  width: 264px;
  padding: 25px 18px 16px;
  background: linear-gradient(180deg, #102039 0%, #142943 100%);
}

.brand {
  gap: 13px;
  padding-bottom: 31px;
}

.brand strong { font-size: 16px; }
.brand small { font-size: 12px; }
.side-label { font-size: 12px; }

.nav-item {
  min-height: 46px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 600;
}

.nav-icon { font-size: 18px; }
.device-mini { padding: 15px; }
.device-mini strong { font-size: 13px; }
.device-mini span:not(.device-icon) { font-size: 12px; line-height: 1.8; }
.device-mini small { font-size: 11px; }
.logout { font-size: 13px; }
.version { font-size: 11px; }

.main-area { margin-right: 264px; }

.topbar {
  height: 72px;
  padding-inline: clamp(20px, 3vw, 42px);
}

.breadcrumbs { font-size: 13px; }
.connection-chip { padding: 7px 12px; font-size: 12px; }
.avatar { font-size: 12px; }
.page-wrap { max-width: 1540px; padding: 34px clamp(20px, 3vw, 46px) 28px; }
.page-heading { margin-bottom: 25px; }
.page-heading .muted, .muted { font-size: 14px; line-height: 1.9; }
.eyebrow { font-size: 12px; letter-spacing: 0; }

.button {
  min-height: 42px;
  padding: 9px 17px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.icon-button { width: 40px; height: 40px; }
.notice { padding: 14px 17px; border-radius: 12px; font-size: 14px; line-height: 1.9; }
.stats-grid { gap: 15px; margin-bottom: 18px; }
.stat-card { min-height: 132px; padding: 18px 20px; border-radius: 14px; }
.stat-top { font-size: 13px; }
.stat-card > strong { font-size: 30px; }
.stat-card > small { font-size: 12px; }
.stat-icon { width: 36px; height: 36px; }

.content-grid { gap: 18px; margin-bottom: 18px; }
.panel { padding: 22px; border-radius: 15px; }
.panel-heading { gap: 14px; margin-bottom: 18px; }
.panel-heading p { font-size: 13px; line-height: 1.8; }
.count-pill { padding: 5px 11px; font-size: 12px; }
.channel-grid { gap: 11px; }
.channel-card { padding: 13px 12px; border-radius: 12px; }
.channel-number { gap: 8px; font-size: 13px; }
.channel-number b { width: 28px; height: 28px; font-size: 13px; }
.channel-port { margin-bottom: 5px; font-size: 12px; }
.channel-sub { font-size: 11px; }
.channel-panel-status { gap: 9px; }
.device-online-badge { padding: 6px 11px; font-size: 12px; }
.modem-state-label { font-size: 13px; line-height: 1.8; }
.modem-detail, .modem-signal-row { gap: 10px; font-size: 12px; line-height: 1.8; }
.modem-detail b, .modem-signal-row b { font-size: 12px; }
.modem-route { padding-top: 9px; }
.panel-footnote { gap: 9px; font-size: 12px; line-height: 1.8; }

.quick-form { gap: 10px; }
.quick-form label, .key-form label { font-size: 13px; }
.quick-form input, .quick-form textarea, .key-form input {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 14px;
}
.quick-form textarea { min-height: 112px; line-height: 1.9; }
.input-wrap span { font-size: 13px; }
.compose-meta, .form-hint { font-size: 12px; }
.quick-form .button { margin-top: 8px; }
.table-scroll { border-radius: 10px; }
table { min-width: 760px; }
thead th { padding: 12px; font-size: 12px; }
tbody td { padding: 12px; font-size: 13px; line-height: 1.8; }
.message-id { font-size: 11px; }
.message-date { font-size: 11px; }
.status-badge { padding: 4px 9px; font-size: 11px; }
.error-text { font-size: 12px; }
.empty-state { padding: 34px 18px; }
.empty-state strong { font-size: 14px; }
.empty-state small { font-size: 12px; }
.page-footer { padding-top: 20px; font-size: 11px; }

.note-card ul { font-size: 13px; line-height: 1.9; }
.note-card li { padding-bottom: 12px; }
.secret-panel { padding: 17px; }
.secret-panel strong, .key-info strong { font-size: 13px; }
.secret-panel p { font-size: 12px; line-height: 1.8; }
.secret-value code { font-size: 12px; }
.key-row { gap: 14px; padding: 13px 14px; }
.key-info small { font-size: 11px; }
.key-prefix { font-size: 11px; }
.key-state { font-size: 11px; }
.revoke-button { font-size: 12px; }
.docs-panel { padding: 27px; }
.docs-row { gap: 15px; margin-bottom: 20px; }
.docs-row h2 { font-size: 16px; }
.docs-row p { font-size: 13px; line-height: 1.9; }
.docs-row code { font-size: 12px; }
.code-block { font: 12px/1.9 Consolas, "Vazirmatn", monospace; }
.docs-callout { padding: 14px; font-size: 12px; line-height: 1.85; }

.login-card { width: min(100%, 440px); border-radius: 18px; padding: 38px 38px 28px; }
.login-card h1 { font-size: 25px; }
.login-card > .muted { margin-bottom: 25px; }
.login-card label { font-size: 13px; }
.login-card input { min-height: 46px; border-radius: 9px; font-size: 14px; }
.login-card .remember-row label { font-size: 12px; }
.login-card .remember-row label small { font-size: 11px; }
.login-card form .button { min-height: 46px; }
.login-message { font-size: 12px; }
.login-foot { font-size: 11px; }
.toast { max-width: min(92vw, 560px); padding: 12px 17px; font-size: 13px; line-height: 1.8; }

.hardware-stat-card { min-height: 102px; padding: 17px; border-radius: 14px; }
.hardware-stat-card small, .hardware-stat-card span { font-size: 12px; line-height: 1.75; }
.hardware-stat-card strong { font-size: 16px; }
.hardware-table-panel { padding: 22px; }
.hardware-table { min-width: 980px; }
.hardware-table td:first-child strong { font-size: 13px; }
.hardware-table td:first-child small, .inbox-imported { font-size: 11px; }
.line-state-list { min-width: 270px; gap: 5px; }
.line-state { padding: 3px 6px; font: 11px "Vazirmatn", Tahoma, sans-serif; }
.socket-state, .inbox-status { padding: 4px 9px; font-size: 11px; }
.hardware-note-panel h2 { font-size: 16px; }
.hardware-note-panel p { font-size: 13px; line-height: 1.9; }
.inbox-tools input { height: 40px; padding: 8px 12px; font-size: 13px; }
.inbox-table { min-width: 900px; }
.inbox-table td:first-child strong { font-size: 12px; }
.inbox-message-text { max-width: 520px; line-height: 1.9; }
.channel-pill { min-width: 30px; height: 30px; }

@media (max-width: 1180px) {
  .sidebar { width: 236px; }
  .main-area { margin-right: 236px; }
  .page-wrap { padding-inline: 25px; }
  .hardware-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 930px) {
  .sidebar { width: 76px; padding: 20px 10px; }
  .main-area { margin-right: 76px; }
  .brand { justify-content: center; padding: 3px 0 28px; }
  .brand > div:last-child, .side-label { display: none; }
  .nav-item { justify-content: center; padding: 12px 6px; font-size: 0; }
  .nav-icon { width: 24px; font-size: 20px; }
  .device-mini { padding: 9px 4px; text-align: center; }
  .device-mini-top { justify-content: center; }
  .device-mini strong, .device-mini span:not(.device-icon), .device-mini small { display: none; }
  .logout { font-size: 0; }
  .version { font-size: 0; }
}

@media (max-width: 680px) {
  .topbar { height: 60px; padding-inline: 14px; }
  .page-wrap { padding: 23px 15px 24px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .page-heading .button { width: 100%; }
  .page-heading h1 { font-size: 24px; }
  .panel { padding: 17px 15px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .channel-panel-status { justify-content: flex-start; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-form { grid-template-columns: 1fr; }
  .quick-form label:nth-of-type(2), .quick-form textarea, .quick-form .compose-meta, .quick-form .button, .quick-form .form-hint { grid-column: auto; }
  .compose-layout { grid-template-columns: 1fr; }
  .compose-card .button { width: 100%; }
  .key-form { align-items: stretch; flex-direction: column; }
  .key-form .button { width: 100%; }
  .inbox-tools { width: 100%; justify-content: space-between; }
  .inbox-tools input { width: min(65%, 300px); }
  .key-row { flex-wrap: wrap; }
  .key-info { flex-basis: calc(100% - 60px); }
  .docs-panel { padding: 19px 15px; }
  .login-card { padding: 30px 24px 23px; }
  .page-footer { gap: 12px; }
}

@media (max-width: 480px) {
  .hardware-stats-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 118px; padding: 14px; }
  .breadcrumbs { font-size: 12px; }
  .connection-chip { font-size: 0; padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.policy-explainer { line-height: 1.9; border-right-color: #2f7d8a; background: linear-gradient(135deg, #edf8f8, #f6fbfc); }
.policy-operator-section { margin: 22px 0; }
.operator-usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.operator-usage-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.operator-usage-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.operator-symbol { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #246b7d; background: #e7f4f5; font-size: 20px; }
.operator-channel-count { padding: 4px 9px; border-radius: 999px; color: #537083; background: #f1f5f7; font-size: 11px; }
.operator-usage-card > strong { display: block; overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.operator-usage-numbers { display: flex; flex-wrap: wrap; gap: 12px; margin: 13px 0 10px; color: var(--muted); font-size: 12px; }
.operator-usage-numbers b { color: #223c53; font-size: 17px; }
.operator-usage-card > small { display: block; overflow-wrap: anywhere; color: #8190a0; font-size: 10px; direction: ltr; text-align: right; }
.empty-operator-state { grid-column: 1 / -1; text-align: center; }
.empty-operator-state small { display: block; margin-top: 7px; color: var(--muted); }
.policy-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.policy-channel-card { min-width: 0; margin: 0; padding: 20px; }
.policy-channel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.policy-channel-heading > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.policy-channel-number { display: grid; flex: 0 0 39px; width: 39px; height: 39px; place-items: center; border: 1px solid #cde5e8; border-radius: 12px; color: #216777; background: #eff8f8; font-size: 17px; font-weight: 800; }
.policy-channel-heading h2 { margin: 0 0 4px; color: var(--ink); font-size: 15px; }
.policy-channel-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.policy-state { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: #4e6478; background: #eff3f6; font-size: 10px; }
.policy-state.ready { color: #247450; background: #e8f6ef; }
.policy-state.paused, .policy-state.cooldown, .policy-state.minute_limit, .policy-state.daily_limit { color: #8a5d19; background: #fff3dc; }
.policy-state.not_configured, .policy-state.gateway_disabled { color: #777f89; background: #f0f1f2; }
.policy-operator-readout { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; margin: 14px 0 12px; padding: 11px 12px; border-radius: 11px; background: #f7f9fb; }
.policy-operator-readout > span { color: var(--muted); font-size: 11px; }
.policy-operator-readout > strong { overflow: hidden; color: #263e54; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.policy-operator-readout > small { grid-column: 1 / -1; color: #8795a4; font-size: 10px; }
.policy-smsc-readout { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; margin: 0 0 13px; padding: 11px 12px; border: 1px solid #e4ecef; border-radius: 11px; background: linear-gradient(135deg, #f8fbfc, #fff); }
.policy-smsc-readout > span { color: var(--muted); font-size: 11px; }
.policy-smsc-readout > strong { overflow: hidden; color: #2a5664; font: 700 12px/1.6 "Vazirmatn", Tahoma, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.policy-smsc-readout > small { grid-column: 1 / -1; color: #8795a4; font-size: 10px; }
.policy-usage-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 15px; }
.policy-usage-strip > span { padding: 9px 6px; border: 1px solid #edf0f3; border-radius: 9px; color: var(--muted); background: #fff; font-size: 10px; text-align: center; }
.policy-usage-strip b { color: #203951; font-size: 13px; }
.policy-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.policy-toggle { display: flex; grid-column: 1 / -1; align-items: center; gap: 9px; min-height: 36px; color: #344a5e; font-size: 11px; cursor: pointer; }
.policy-toggle input { width: 17px; height: 17px; margin: 0; accent-color: #20836d; }
.policy-field { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 10px; }
.policy-field input, .policy-field select { width: 100%; min-width: 0; height: 37px; padding: 6px 9px; border: 1px solid #dce4eb; border-radius: 8px; color: var(--ink); background: #fff; font: 12px "Vazirmatn", Tahoma, sans-serif; }
.policy-field select { cursor: pointer; }
.policy-smsc-manual-field { grid-column: 1 / -1; }
.policy-smsc-manual-field small { color: #8795a4; font-size: 10px; line-height: 1.7; }
.policy-operator-field { grid-column: 1 / -1; }
.policy-channel-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: #768697; font-size: 10px; line-height: 1.7; }
.policy-channel-foot span:first-child { flex: 1 1 auto; }
.policy-channel-foot span:last-child { flex: 0 0 auto; }
.policy-savebar { position: sticky; bottom: 12px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 14px 18px; border: 1px solid #dbe6eb; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 12px 32px rgba(30,50,70,.12); backdrop-filter: blur(10px); }
.policy-savebar strong, .policy-savebar small { display: block; }
.policy-savebar strong { color: var(--ink); font-size: 12px; }
.policy-savebar small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.gateway-current-routes { margin: 0 0 14px; padding: 14px; border: 1px solid #dfeae9; border-radius: 12px; background: linear-gradient(135deg, #f7fbfa, #fff); }
.gateway-current-routes-heading, .gateway-current-routes-heading > div { display: flex; align-items: center; }
.gateway-current-routes-heading { justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.gateway-current-routes-heading > div { gap: 10px; min-width: 0; }
.gateway-current-routes-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #247878; background: #e5f3f1; }
.gateway-current-routes-icon .ui-icon { width: 20px; height: 20px; }
.gateway-current-routes-heading strong, .gateway-current-routes-heading small { display: block; }
.gateway-current-routes-heading strong { color: #30475c; font-size: 14px; }
.gateway-current-routes-heading small { margin-top: 2px; color: #748497; font-size: 11px; line-height: 1.7; }
.gateway-current-route-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 9px; }
.gateway-current-route { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px 12px; min-width: 0; padding: 11px; border: 1px solid #e5ebef; border-radius: 10px; background: #fff; }
.gateway-current-route.is-enabled { border-color: #d4e9e2; }
.gateway-current-route-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.gateway-current-route-number { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #236c6a; background: #edf7f5; font-size: 15px; font-weight: 800; }
.gateway-current-route-main strong, .gateway-current-route-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gateway-current-route-main strong { color: #344a5d; font-size: 12px; }
.gateway-current-route-main small { margin-top: 2px; color: #7d8b99; font: 11px "Vazirmatn", Tahoma, sans-serif; direction: ltr; text-align: right; }
.gateway-current-route-state { display: inline-flex; align-items: center; gap: 7px; justify-self: end; padding: 5px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.gateway-current-route-state.is-enabled { color: #247450; background: #e8f6ef; }
.gateway-current-route-state.is-disabled { color: #806022; background: #fff4df; }
.gateway-current-route-state .route-state-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gateway-route-toggle { grid-column: 1 / -1; justify-self: start; min-height: 36px; gap: 7px; padding: 6px 10px; font-size: 12px; }
.gateway-route-toggle .ui-icon { width: 16px; height: 16px; }
.gateway-current-routes-empty { grid-column: 1 / -1; padding: 13px; border: 1px dashed #dbe5e9; border-radius: 9px; color: #758597; background: rgba(255,255,255,.75); font-size: 12px; text-align: center; }
@media (max-width: 560px) {
  .gateway-current-routes { padding: 11px; }
  .gateway-current-routes-heading { align-items: flex-start; }
  .gateway-current-routes-heading strong { font-size: 13px; }
  .gateway-current-routes-heading small { font-size: 10px; }
  .gateway-current-route { grid-template-columns: 1fr; }
  .gateway-current-route-state { justify-self: start; }
  .gateway-route-toggle { justify-self: stretch; justify-content: center; }
}

@media (max-width: 980px) {
  .policy-channel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .policy-channel-card { padding: 15px; }
  .policy-channel-heading { flex-direction: column; }
  .policy-fields { grid-template-columns: 1fr 1fr; }
  .policy-channel-foot { flex-direction: column; gap: 4px; }
  .policy-savebar { align-items: stretch; flex-direction: column; }
  .policy-savebar .button { width: 100%; }
}

.outbox-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.status-badge.cancelled { color: #657588; background: #eef1f4; }
.button.danger { color: #fff; background: #bd5660; box-shadow: 0 4px 10px rgba(189,86,96,.14); }
.button.danger:hover { background: #a9444e; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.outbox-notice { margin: 0 0 16px; border-color: #dbe7ee; background: #f2f8fb; color: #526a7d; line-height: 1.9; }
.outbox-notice strong { color: #344f67; }
.outbox-panel { padding-bottom: 12px; }
.outbox-table { min-width: 860px; }
.outbox-table td { vertical-align: middle; }
.outbox-table td:first-child strong, .outbox-id { display: block; }
.outbox-table td:first-child strong { color: #40516a; font-size: 11px; }
.outbox-id { color: #a1abb7; font: 9px Consolas, monospace; direction: ltr; text-align: right; }
.outbox-message-text { max-width: 460px; white-space: pre-wrap; line-height: 1.9; color: #33485e; }
.outbox-cancel-button { padding: 6px 10px; border: 1px solid #f0dadd; border-radius: 7px; color: #aa4e57; background: #fff7f7; font: 11px "Vazirmatn", Tahoma, sans-serif; white-space: nowrap; }
.outbox-cancel-button:hover { background: #ffeded; }
.outbox-cancel-button:disabled { opacity: .5; }
.outbox-state-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 9px; border: 1px solid #e3e9ef; border-radius: 999px; color: #63768a; background: #f5f7f9; font-size: 11px; white-space: nowrap; }
.outbox-state-pill .ui-icon { width: 14px; height: 14px; }
.outbox-state-pill.is-queued { color: #8a641d; border-color: #f0e2bd; background: #fff9eb; }
.outbox-state-pill.is-sending { color: #247763; border-color: #d3eae1; background: #edf8f3; }
.outbox-action-locked { color: #8b98a7; font-size: 10.5px; white-space: nowrap; }
.bulk-compose-panel { margin-top: 18px; }
.bulk-format-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 15px; padding: 11px 13px; border: 1px solid #e4edf0; border-radius: 10px; color: #718096; background: #f8fbfc; font-size: 11px; }
.bulk-format-note strong { color: #3c536a; }
.bulk-format-note code { direction: ltr; padding: 4px 7px; border-radius: 6px; color: #286d70; background: #eaf5f3; font: 10px Consolas, monospace; }
.bulk-label { display: block; margin: 11px 0 6px; color: #52657a; font-size: 12px; font-weight: 700; }

.gateway-control-panel { margin: 0 0 20px; padding: 20px; border-color: #dfe8ed; background: linear-gradient(145deg, #fff, #f9fcfd); }
.gateway-control-heading, .gateway-control-heading > div { display: flex; align-items: center; }
.gateway-control-heading { justify-content: space-between; gap: 14px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.gateway-control-heading > div { gap: 12px; min-width: 0; }
.gateway-control-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #247878; background: #e8f5f4; font-size: 21px; }
.gateway-control-heading h2 { margin: 0 0 3px; font-size: 14px; }
.gateway-control-heading p, .gateway-route-picker small { display: block; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.gateway-control-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 2px; }
.gateway-main-toggle { grid-column: auto; margin: 0; }
.gateway-main-toggle span, .gateway-main-toggle strong, .gateway-main-toggle small { display: block; }
.gateway-main-toggle strong { color: #2f455a; font-size: 12px; }
.gateway-main-toggle small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.gateway-control-host { padding: 7px 10px; border: 1px solid #e6ecef; border-radius: 8px; color: #627486; background: #fff; font: 10px/1.7 Consolas, "Vazirmatn", monospace; direction: ltr; text-align: left; }
.gateway-route-picker { padding: 13px 14px; border: 1px solid #e8eef1; border-radius: 11px; background: #f8fafb; }
.gateway-route-picker > div:first-child strong { display: block; margin-bottom: 2px; color: #3c5268; font-size: 11px; }
.gateway-route-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.gateway-route-option { display: flex; align-items: center; gap: 7px; min-width: 140px; padding: 8px 10px; border: 1px solid #e3e9ed; border-radius: 9px; color: #43596d; background: #fff; cursor: pointer; }
.gateway-route-option:has(input:checked) { border-color: #8ed2c6; background: #effaf7; }
.gateway-route-option.reactivate-route-option { border-style: dashed; border-color: #ead9b8; background: #fffdf8; }
.gateway-route-option.reactivate-route-option:has(input:checked) { border-color: #d0ac65; background: #fff8e9; }
.gateway-route-option input { width: 16px; height: 16px; margin: 0; accent-color: #20836d; }
.gateway-route-option span, .gateway-route-option small { display: block; }
.gateway-route-option span { font-size: 10px; font-weight: 700; }
.gateway-route-option small { margin-top: 1px; color: #8a97a5; font: 9px Consolas, monospace; direction: ltr; text-align: right; }
.gateway-routes-complete { color: #718294; font-size: 10px; }
.gateway-control-savebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; }
.gateway-control-savebar p { margin: 0; color: #748398; font-size: 10px; line-height: 1.8; }
@media (max-width: 680px) {
  .gateway-control-panel { padding: 15px 13px; }
  .gateway-control-main, .gateway-control-savebar { align-items: stretch; flex-direction: column; }
  .gateway-control-host { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; }
  .gateway-control-savebar .button { width: 100%; }
  .gateway-route-option { flex: 1 1 135px; }
}

/* Consistent, sharp line icons used throughout the panel. */
.ui-icon { display: block; width: 1.25em; height: 1.25em; flex: 0 0 auto; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.nav-icon { display: grid; place-items: center; }
.nav-icon .ui-icon { width: 21px; height: 21px; stroke-width: 1.75; }
.icon-button .ui-icon, .text-button .ui-icon, .button .ui-icon { width: 18px; height: 18px; }
.stat-icon .ui-icon { width: 23px; height: 23px; }
.device-icon .ui-icon { width: 22px; height: 22px; }
.quick-icon .ui-icon { width: 23px; height: 23px; }
.gateway-control-icon .ui-icon { width: 23px; height: 23px; }
.info-icon .ui-icon, .note-symbol .ui-icon { width: 20px; height: 20px; }
.operator-symbol .ui-icon, .key-symbol .ui-icon { width: 21px; height: 21px; }
.empty-icon .ui-icon { width: 32px; height: 32px; }
.policy-explainer { font-size: 13px; }
.gateway-control-heading h2 { font-size: 17px; }
.gateway-control-heading p, .gateway-route-picker small { font-size: 12px; }
.gateway-main-toggle strong { font-size: 14px; }
.gateway-main-toggle small { font-size: 12px; }
.gateway-control-host { font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 12px; }
.gateway-route-picker > div:first-child strong { font-size: 13px; }
.gateway-route-option span { font-size: 12px; }
.gateway-route-option small { font-size: 10px; }
.gateway-route-option { min-height: 54px; min-width: 155px; }
.gateway-current-route-main > div { min-width: 0; }
.gateway-current-route-main strong { display: block; overflow-wrap: anywhere; }
.gateway-current-route-main small { display: block; margin-top: 3px; color: #7d8c9d; font: 11px/1.65 "Vazirmatn", Tahoma, sans-serif; direction: ltr; text-align: right; overflow-wrap: anywhere; }
.gateway-control-savebar p { font-size: 12px; }
.gateway-control-savebar .button { min-height: 42px; font-size: 13px; }
.policy-channel-heading h2 { font-size: 17px; }
.policy-channel-heading p, .policy-channel-foot { font-size: 12px; }
.policy-state { font-size: 11px; }
.policy-operator-readout > span, .policy-operator-readout > small { font-size: 12px; }
.policy-operator-readout > strong { font-size: 14px; }
.policy-usage-strip > span { font-size: 12px; }
.policy-usage-strip b { font-size: 15px; }
.policy-toggle { min-height: 42px; font-size: 13px; }
.policy-toggle input { width: 19px; height: 19px; }
.policy-field { font-size: 12px; }
.policy-field input { height: 41px; font-size: 14px; }
.policy-savebar strong { font-size: 14px; }
.policy-savebar small { font-size: 12px; }
.policy-savebar .button { min-height: 43px; font-size: 13px; }
.operator-usage-card > small { font-size: 12px; }
.operator-usage-numbers { font-size: 13px; }
.operator-usage-numbers b { font-size: 18px; }
.docs-number { display: grid; place-items: center; }
.docs-callout > span .ui-icon { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .gateway-control-heading { align-items: flex-start; }
  .gateway-control-heading h2 { font-size: 15px; }
  .gateway-control-heading p { font-size: 11px; }
  .gateway-route-option { min-width: 130px; }
  .policy-field input { font-size: 13px; }
}
.bulk-input, .bulk-common-text { display: block; width: 100%; border: 1px solid #dce5eb; border-radius: 9px; color: #27384d; background: #fff; padding: 11px 13px; font: 12px/1.9 "Vazirmatn", Tahoma, sans-serif; resize: vertical; }
.bulk-input { min-height: 155px; direction: ltr; text-align: left; unicode-bidi: plaintext; }
.bulk-common-text { min-height: 78px; }
.bulk-input:focus, .bulk-common-text:focus { outline: 0; border-color: #76c9bf; box-shadow: 0 0 0 3px rgba(20,168,154,.1); }
.bulk-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 10px 0 14px; }
.bulk-file-button { cursor: pointer; }
.bulk-file-name { max-width: min(48vw, 360px); overflow: hidden; color: #8592a2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bulk-controls-spacer { flex: 1 1 auto; }
.bulk-preview { margin-top: 17px; padding: 14px; border: 1px solid #e6edf1; border-radius: 12px; background: #fbfcfd; }
.bulk-preview-summary { margin-bottom: 10px; color: #344d64; font-size: 12px; font-weight: 750; }
.bulk-preview-table { min-width: 620px; }
.bulk-preview-table td { vertical-align: top; }
.bulk-preview-text { max-width: 420px; white-space: pre-wrap; line-height: 1.8; }
.bulk-row-state { display: inline-flex; max-width: 230px; padding: 4px 8px; border-radius: 999px; font-size: 10px; white-space: normal; }
.bulk-row-state.valid { color: #247450; background: #e8f6ef; }
.bulk-row-state.invalid { color: #a84e56; background: #fceff0; }
.bulk-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e9eef2; }
.bulk-submit-row > span { color: #788899; font-size: 11px; line-height: 1.8; }

@media (max-width: 680px) {
  .outbox-actions { width: 100%; }
  .outbox-actions .button { flex: 1 1 auto; }
  .bulk-controls { align-items: stretch; }
  .bulk-controls-spacer { display: none; }
  .bulk-file-button, #bulk-preview-button { flex: 1 1 45%; }
  .bulk-file-name { flex-basis: 100%; max-width: 100%; }
  .bulk-submit-row { align-items: stretch; flex-direction: column; }
  .bulk-submit-row .button { width: 100%; }
}

/* Full-width modem overview and readable per-channel status cards */
.content-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
.channel-panel { order: 0; overflow: hidden; border-color: #dfe9ec; background: radial-gradient(ellipse at 95% 0%, rgba(29, 175, 159, .07), transparent 34%), #fff; }
.quick-panel { order: 1; }
.channel-panel > .panel-heading { align-items: flex-start; }
.channel-panel-status { flex-wrap: wrap; justify-content: flex-end; }
.channel-health-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: -2px 0 16px; }
.channel-health-metric { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 13px; border: 1px solid #e9eef1; border-radius: 12px; background: linear-gradient(145deg, #fbfcfd, #f6f9fa); }
.channel-health-metric .health-mark { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #d0d7dd; box-shadow: 0 0 0 4px rgba(148, 161, 174, .11); }
.channel-health-metric.is-good .health-mark { background: #27a984; box-shadow: 0 0 0 4px rgba(39, 169, 132, .12); }
.channel-health-metric.is-partial .health-mark { background: #6482c2; box-shadow: 0 0 0 4px rgba(100, 130, 194, .14); }
.channel-health-metric.is-warn .health-mark { background: #d79b3f; box-shadow: 0 0 0 4px rgba(215, 155, 63, .13); }
.channel-health-metric.is-roaming .health-mark { background: #6482c2; box-shadow: 0 0 0 4px rgba(100, 130, 194, .14); }
.channel-health-metric small, .channel-health-metric strong { display: block; }
.channel-health-metric small { color: #77879a; font-size: 11px; }
.channel-health-metric strong { margin-top: 1px; color: #31475b; font-size: 16px; line-height: 1.5; }
.channel-health-metric strong span { color: #99a5b2; font-size: 11px; font-weight: 500; }
.channel-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 13px; }
.modem-card { position: relative; display: grid; gap: 11px; min-width: 0; padding: 15px; overflow: hidden; border: 1px solid #e4eaee; border-radius: 14px; background: linear-gradient(150deg, #fff 0%, #fcfdfd 75%, #f8fbfb 100%); box-shadow: 0 5px 16px rgba(31, 52, 72, .045); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.modem-card:hover { transform: translateY(-2px); border-color: #beddd7; box-shadow: 0 11px 25px rgba(31, 72, 75, .09); }
.modem-card.is-online { border-right: 3px solid #2ea985; }
.modem-card.is-roaming { border-right: 3px solid #6482c2; background: linear-gradient(150deg, #fff 0%, #fbfcff 75%, #f5f7ff 100%); }
.modem-card.is-warning { border-right: 3px solid #d3a04f; }
.modem-card.is-offline { border-right: 3px solid #d36b73; }
.modem-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modem-card-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.modem-channel-number { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid #d8ece8; border-radius: 13px; color: #187e76; background: linear-gradient(145deg, #edfaf7, #dff2ef); font-size: 20px; font-weight: 850; }
.modem-card-identity strong, .modem-card-identity small { display: block; }
.modem-card-identity strong { color: #263d52; font-size: 15px; }
.modem-card-identity small { margin-top: 2px; color: #8492a2; direction: ltr; text-align: right; font: 11px/1.6 Consolas, "Vazirmatn", monospace; }
.modem-connection-badge { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.modem-connection-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(0, 0, 0, .045); }
.modem-connection-badge.is-online { color: #247b5c; background: #e8f6ef; }
.modem-connection-badge.is-roaming { color: #506fae; background: #edf1ff; }
.modem-connection-badge.is-warning { color: #916a29; background: #fff5e2; }
.modem-connection-badge.is-offline { color: #a24750; background: #fff0f1; }
.modem-state-label { margin: 0; padding: 8px 10px; border: 1px solid #edf0f2; border-radius: 9px; color: #66778a; background: #f8fafb; font-size: 12px; line-height: 1.8; }
.roaming-policy-note { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid #dce4fb; border-radius: 10px; color: #526994; background: linear-gradient(125deg, #f5f7ff, #fff); font-size: 10px; line-height: 1.8; }
.roaming-policy-note .ui-icon { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }
.modem-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.modem-info-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; min-height: 49px; padding: 9px 10px; border: 1px solid #edf0f2; border-radius: 10px; background: rgba(255, 255, 255, .88); }
.modem-info-item > span { color: #8a97a5; font-size: 11px; }
.modem-info-item > strong { min-width: 0; color: #40566a; font-size: 12px; font-weight: 750; text-align: left; overflow-wrap: anywhere; }
.modem-info-item > strong.connection-up { color: #27896d; }
.modem-info-item > strong.connection-down { color: #b84e58; }
.modem-info-item > strong.connection-warn { color: #a7711c; }
.modem-signal-item { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; border-color: #dceeea; background: linear-gradient(120deg, #f5fbf9, #fff); }
.modem-signal-item > span { grid-column: 1; }
.modem-signal-item > strong { grid-column: 2; grid-row: 1 / span 2; color: #197d74; direction: ltr; unicode-bidi: isolate; font: 800 17px/1.4 Consolas, "Vazirmatn", monospace; }
.modem-signal-item > small { grid-column: 1; color: #94a0ab; font-size: 9px; line-height: 1.6; }
.modem-route-item { grid-column: 1 / -1; border-color: #e5eaf2; background: #f7f9fc; }
.modem-route-item > strong { color: #4f6280; }
.modem-error-note { padding: 7px 9px; border: 1px solid #f0d7d9; border-radius: 8px; color: #a34952; background: #fff5f5; font-size: 10px; line-height: 1.7; }
@media(max-width:680px) {
  .channel-health-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .channel-health-metric { min-height: 48px; padding: 8px 11px; }
  .modem-card-top { align-items: flex-start; flex-direction: column; }
  .modem-connection-badge { align-self: flex-start; }
}
@media(max-width:390px) {
  .channel-health-strip { grid-template-columns: 1fr; }
  .modem-info-grid { grid-template-columns: 1fr; }
  .modem-route-item { grid-column: auto; }
}

.modem-imei-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 11px 12px; border: 1px solid #e2e9ef; border-radius: 11px; background: linear-gradient(125deg, #f8fafc, #fff); }
.modem-imei-copy { display: grid; gap: 2px; min-width: 0; }
.modem-imei-copy > span { color: #7e8d9d; font-size: 10px; font-weight: 700; }
.modem-imei-copy > strong { color: #8996a3; font: 700 14px/1.6 Consolas, "Vazirmatn", monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.modem-imei-copy > strong.has-imei { color: #285c56; }
.modem-imei-copy > small { color: #9aa5af; font-size: 9px; }
.channel-imei-read { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 35px; flex: 0 0 auto; padding: 0 10px; border: 1px solid #dce8e6; border-radius: 9px; color: #2c746d; background: #fff; font: 700 10px/1.5 "Vazirmatn", sans-serif; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.channel-imei-read:hover:not(:disabled) { border-color: #a8d5cc; color: #176c63; background: #eff9f6; }
.channel-imei-read:focus-visible { outline: 3px solid rgba(20, 168, 154, .18); outline-offset: 2px; }
.channel-imei-read:disabled { color: #6e9b95; background: #f2f8f6; cursor: wait; }
.channel-imei-read .ui-icon { width: 14px; height: 14px; }
.channel-imei-read.loading .ui-icon { animation: imei-reading .9s linear infinite; }
@keyframes imei-reading { to { transform: rotate(360deg); } }
@media(max-width:390px) { .modem-imei-item { align-items: flex-start; flex-direction: column; } .channel-imei-read { align-self: flex-start; } }

/* Compact live device report on the overview; full modem engineering stays on Device Status. */
.overview-device-panel { position: relative; margin: 0 0 16px; padding: 19px 20px 16px; overflow: hidden; border-color: #dfe9ec; background: radial-gradient(ellipse at 96% 0%, rgba(29, 175, 159, .08), transparent 34%), linear-gradient(145deg, #fff, #fbfdfd); }
.overview-device-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.overview-device-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.overview-device-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid #d8ece8; border-radius: 13px; color: #168276; background: linear-gradient(145deg, #edfaf7, #e1f4f0); }
.overview-device-icon .ui-icon { width: 21px; height: 21px; }
.overview-device-title .eyebrow { margin: 0 0 1px; color: #259288; font-size: 9px; font-weight: 800; }
.overview-device-title h2 { margin: 0; color: #263d52; font-size: 16px; }
.overview-device-title small { display: block; margin-top: 3px; color: #8996a4; font-size: 10px; }
.overview-device-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.overview-detail-button { min-height: 34px; gap: 5px; padding: 6px 9px; font-size: 10px; }
.overview-detail-button .ui-icon { width: 14px; height: 14px; transform: rotate(180deg); }
.overview-connectivity-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.overview-metric { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 60px; padding: 9px 11px; border: 1px solid #e7edf0; border-radius: 11px; background: rgba(255,255,255,.86); }
.overview-metric-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #658092; background: #f0f4f6; }
.overview-metric-icon .ui-icon { width: 16px; height: 16px; }
.overview-metric.is-good .overview-metric-icon { color: #27896d; background: #e9f6f0; }
.overview-metric.is-partial .overview-metric-icon { color: #a7792d; background: #fff5e3; }
.overview-metric.is-empty .overview-metric-icon { color: #aa5960; background: #fff0f1; }
.overview-metric.is-roaming { border-color: #dce4fb; background: linear-gradient(130deg, #f8f9ff, #fff); }
.overview-metric.is-roaming .overview-metric-icon { color: #5877b6; background: #edf1ff; }
.overview-metric small, .overview-metric strong { display: block; }
.overview-metric small { color: #81909e; font-size: 10px; }
.overview-metric strong { margin-top: 1px; color: #31485c; font-size: 15px; line-height: 1.55; }
.overview-metric strong em { color: #98a4ae; font-size: 10px; font-style: normal; font-weight: 500; }
.overview-diagnostic-summary { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; padding: 9px 11px; border: 1px solid #e7edf0; border-radius: 10px; color: #627588; background: #f8fafb; font-size: 10px; line-height: 1.9; }
.overview-report-icon { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; margin-top: 1px; border-radius: 6px; color: #368c79; background: #e8f5ef; }
.overview-report-icon .ui-icon { width: 13px; height: 13px; }
.overview-channel-snapshot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 7px; }
.overview-channel-chip { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 9px; border: 1px solid #e9eef1; border-right: 2px solid #c8d4dc; border-radius: 9px; background: rgba(255,255,255,.82); }
.overview-channel-chip.is-good { border-right-color: #36a982; }
.overview-channel-chip.is-warning { border-right-color: #d3a04f; }
.overview-channel-chip.is-error { border-right-color: #d36b73; }
.overview-channel-number { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #287c74; background: #edf7f5; font-size: 13px; font-weight: 850; }
.overview-channel-copy { min-width: 55px; }
.overview-channel-copy strong, .overview-channel-copy small, .overview-channel-state span, .overview-channel-state small { display: block; }
.overview-channel-copy strong { color: #40566a; font-size: 10px; white-space: nowrap; }
.overview-channel-copy small { color: #98a3ae; font: 9px/1.6 Consolas, "Vazirmatn", monospace; text-align: right; }
.overview-channel-state { min-width: 0; margin-right: auto; text-align: left; }
.overview-channel-state span { color: #617588; font-size: 9px; line-height: 1.7; }
.overview-channel-state small { color: #97a2ad; font-size: 8px; line-height: 1.6; }
.overview-channel-empty { grid-column: 1 / -1; padding: 14px; border: 1px dashed #dce5e9; border-radius: 9px; color: #8d9aa5; font-size: 10px; text-align: center; }
.stats-grid { gap: 10px; margin-bottom: 14px; }
.stat-card { min-height: 112px; padding: 14px 15px; border-radius: 13px; }
.stat-card > strong { font-size: 25px; }
@media(max-width:900px) { .overview-connectivity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:680px) {
  .overview-device-panel { padding: 14px 12px; }
  .overview-device-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .overview-device-actions { justify-content: flex-start; }
  .overview-channel-snapshot { grid-template-columns: 1fr; }
  .overview-connectivity-grid { gap: 7px; }
  .overview-metric { min-height: 55px; padding: 7px; gap: 6px; }
  .overview-metric-icon { width: 28px; height: 28px; }
  .overview-metric small { font-size: 9px; }
  .overview-metric strong { font-size: 13px; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 98px; padding: 11px; }
}

/* Searchable channel directory with live, accessible status filters */
.channel-health-metric { width: 100%; color: inherit; text-align: right; font: inherit; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.channel-health-metric:hover { transform: translateY(-1px); border-color: #c6e2dc; box-shadow: 0 5px 14px rgba(38, 105, 100, .07); }
.channel-health-metric:focus-visible { outline: 3px solid rgba(20, 168, 154, .2); outline-offset: 2px; }
.channel-health-metric.active { border-color: #9ed7cb; background: linear-gradient(140deg, #f1faf7, #e8f6f2); box-shadow: inset 0 0 0 1px rgba(39, 169, 132, .08); }
.channel-health-metric.is-roaming.active { border-color: #bac9ef; background: linear-gradient(140deg, #f5f7ff, #edf1ff); box-shadow: inset 0 0 0 1px rgba(100, 130, 194, .1); }
.channel-health-copy { display: block; flex: 1 1 auto; min-width: 0; }
.channel-filter-cue { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: #8b9ba8; background: #fff; opacity: .55; transition: color .16s ease, opacity .16s ease, transform .16s ease; }
.channel-filter-cue .ui-icon { width: 13px; height: 13px; }
.channel-health-metric:hover .channel-filter-cue, .channel-health-metric.active .channel-filter-cue { color: #218b7d; opacity: 1; }
.channel-health-metric.active .channel-filter-cue { transform: rotate(180deg); }
.channel-tools { display: flex; align-items: center; gap: 10px; min-width: 0; margin: -3px 0 13px; }
.channel-search { display: flex; align-items: center; gap: 8px; width: min(100%, 380px); min-height: 40px; padding: 0 11px; border: 1px solid #e3eaf0; border-radius: 10px; color: #93a0ae; background: rgba(255, 255, 255, .9); transition: border-color .16s ease, box-shadow .16s ease; }
.channel-search:focus-within { border-color: #9ed7cb; box-shadow: 0 0 0 3px rgba(20, 168, 154, .09); }
.channel-search > .ui-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.channel-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #3a5065; background: transparent; font-size: 12px; }
.channel-search input::placeholder { color: #9aa6b3; }
.channel-search input::-webkit-search-cancel-button { cursor: pointer; }
.channel-results-count { margin-right: auto; color: #8a98a8; font-size: 11px; white-space: nowrap; }
.channel-clear-filter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #e4eaf0; border-radius: 8px; color: #60758a; background: #fff; font-size: 10px; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.channel-clear-filter:hover { border-color: #c8ddd9; color: #237e73; background: #f7fbfa; }
.channel-clear-filter .ui-icon { width: 14px; height: 14px; }
.channel-filter-empty { display: grid; justify-items: center; gap: 6px; min-height: 150px; padding: 25px 16px; border: 1px dashed #dfe7ec; border-radius: 13px; color: #8b99a8; background: rgba(255, 255, 255, .65); text-align: center; }
.channel-filter-empty > .ui-icon { width: 22px; height: 22px; margin-bottom: 2px; color: #9eafaF; }
.channel-filter-empty strong { color: #52687e; font-size: 13px; }
.channel-filter-empty small { font-size: 11px; }
@media(max-width:680px) {
  .channel-tools { flex-wrap: wrap; }
  .channel-search { width: 100%; flex: 1 1 100%; }
  .channel-results-count { margin-right: 0; }
}

.modem-registration-diagnosis { display: grid; gap: 9px; min-width: 0; padding: 12px; border: 1px solid #e5eaf0; border-radius: 12px; background: linear-gradient(145deg, #fbfcfd, #f7f9fb); }
.modem-registration-diagnosis.is-good { border-color: #d7ece2; background: linear-gradient(145deg, #f7fcf9, #eff8f3); }
.modem-registration-diagnosis.is-error { border-color: #efd8da; background: linear-gradient(145deg, #fffafa, #fff5f5); }
.modem-registration-diagnosis.is-warning { border-color: #efe4cc; background: linear-gradient(145deg, #fffdf8, #fff9ed); }
.modem-registration-diagnosis.is-working { border-color: #d9e6f2; background: linear-gradient(145deg, #f8fbff, #f1f7fc); }
.registration-diagnosis-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.registration-diagnosis-heading > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.registration-diagnosis-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid #e3e9ee; border-radius: 9px; color: #687d91; background: #fff; }
.registration-diagnosis-icon .ui-icon { width: 16px; height: 16px; }
.is-good .registration-diagnosis-icon { border-color: #d4e9de; color: #278768; }
.is-error .registration-diagnosis-icon { border-color: #efd9db; color: #b84f59; }
.is-warning .registration-diagnosis-icon { border-color: #efe2c8; color: #a17935; }
.is-working .registration-diagnosis-icon { border-color: #dbe6ef; color: #527d9d; }
.registration-diagnosis-heading strong, .registration-diagnosis-heading small { display: block; }
.registration-diagnosis-heading strong { color: #43596d; font-size: 11px; }
.registration-diagnosis-heading small { margin-top: 2px; color: #6c7e8e; font-size: 10px; line-height: 1.6; }
.registration-mode { flex: 0 0 auto; padding: 4px 7px; border: 1px solid #e6ebef; border-radius: 7px; color: #788797; background: rgba(255,255,255,.8); font-size: 9px; }
.modem-registration-diagnosis > p { margin: 0; color: #68798a; font-size: 10px; line-height: 1.8; }
.modem-registration-diagnosis > .registration-diagnosis-next-step { padding-top: 8px; border-top: 1px solid rgba(112, 132, 150, .16); color: #40596f; }
.registration-diagnosis-next-step strong { color: #26766d; }
.modem-registration-diagnosis > .registration-retry-result { padding: 8px; border: 1px solid #d9e6f2; border-radius: 8px; color: #405d76; background: #f6faff; }
.registration-retry-result.is-warning { border-color: #eadbbf; color: #82652f; background: #fffaf0; }
.registration-retry-result.is-error { border-color: #edd2d4; color: #964950; background: #fff6f6; }
.registration-retry-result strong { margin-left: 4px; }
.registration-diagnosis-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; color: #8794a1; font-size: 9px; }
.registration-diagnosis-meta > span { direction: rtl; unicode-bidi: plaintext; }
.channel-registration-retry { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 37px; padding: 7px 10px; border: 1px solid #cde3df; border-radius: 9px; color: #24796f; background: #fff; font: 700 10px/1.5 "Vazirmatn", Tahoma, sans-serif; cursor: pointer; transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease; }
.channel-registration-retry:hover:not(:disabled) { border-color: #9fcfc5; color: #176a61; background: #f2faf7; box-shadow: 0 3px 10px rgba(35, 126, 115, .08); }
.channel-registration-retry:focus-visible { outline: 3px solid rgba(20, 168, 154, .18); outline-offset: 2px; }
.channel-registration-retry:disabled { border-color: #e5e9ed; color: #9aa5af; background: #f7f8f9; cursor: not-allowed; }
.channel-registration-retry .ui-icon { width: 14px; height: 14px; }
.channel-registration-retry[aria-busy="true"] .ui-icon { animation: imei-reading .9s linear infinite; }
@media(max-width:430px) {
  .registration-diagnosis-heading { align-items: flex-start; flex-direction: column; }
  .registration-mode { margin-right: 39px; }
}

/* Engineering-grade modem evidence, kept compact enough to scan per channel. */
.modem-card {
  gap: 13px;
  padding: 17px;
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(27, 49, 67, .065), 0 1px 2px rgba(27, 49, 67, .04);
}
.modem-card:hover { box-shadow: 0 14px 32px rgba(31, 72, 75, .11); }
.modem-channel-number { width: 46px; height: 46px; border-radius: 14px; font-size: 21px; }
.modem-card-identity strong { font-size: 16px; }
.modem-card-identity small { font-size: 11px; }
.modem-connection-badge { min-height: 31px; font-size: 11px; }
.modem-state-label { padding: 9px 11px; font-size: 12px; }
.modem-info-grid { gap: 9px; }
.modem-info-item { min-height: 54px; padding: 10px 11px; border-radius: 11px; }
.modem-info-item > span { font-size: 11px; }
.modem-info-item > strong { font-size: 12px; }
.modem-signal-item > strong { font-size: 18px; }
.modem-signal-item > small { font-size: 10px; }
.modem-route-item > strong { font-size: 12px; }
.modem-registration-diagnosis {
  gap: 12px;
  padding: 14px;
  border-radius: 15px;
  box-shadow: inset 0 1px rgba(255,255,255,.75);
}
.registration-diagnosis-heading { align-items: flex-start; }
.registration-diagnosis-heading > div { align-items: flex-start; }
.registration-diagnosis-icon { width: 34px; height: 34px; border-radius: 11px; }
.registration-diagnosis-heading strong { color: #304b5e; font-size: 13px; }
.registration-diagnosis-heading small { margin-top: 3px; color: #536b7e; font-size: 12px; font-weight: 700; line-height: 1.7; }
.registration-mode { padding: 5px 8px; font-size: 10px; }
.registration-diagnosis-summary {
  padding: 10px 11px;
  border: 1px solid rgba(112, 132, 150, .15);
  border-radius: 11px;
  background: rgba(255,255,255,.72);
}
.registration-diagnosis-summary > span { display: block; margin-bottom: 3px; color: #8291a0; font-size: 10px; font-weight: 750; }
.registration-diagnosis-summary > p { margin: 0; color: #40576c; font-size: 11.5px; line-height: 1.9; }
.registration-diagnostic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.registration-diagnostic-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #e8edf0;
  border-right: 3px solid #aab5bf;
  border-radius: 10px;
  background: rgba(255,255,255,.88);
}
.registration-diagnostic-check.is-good { border-right-color: #39a982; background: linear-gradient(135deg, #fff, #f7fcf9); }
.registration-diagnostic-check.is-warning { border-right-color: #d6a04b; background: linear-gradient(135deg, #fff, #fffcf5); }
.registration-diagnostic-check.is-error { border-right-color: #d16b73; background: linear-gradient(135deg, #fff, #fff8f8); }
.registration-diagnostic-check.is-working { border-right-color: #6a9cc0; background: linear-gradient(135deg, #fff, #f7fbff); }
.diagnostic-check-index {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e7edf0;
  border-radius: 8px;
  color: #748797;
  background: #f7f9fa;
  font-size: 10px;
  font-weight: 800;
}
.is-good .diagnostic-check-index { border-color: #d6ece2; color: #27896d; background: #f0f8f4; }
.is-warning .diagnostic-check-index { border-color: #f0e5d0; color: #a57b35; background: #fffaf0; }
.is-error .diagnostic-check-index { border-color: #efd9db; color: #ae535c; background: #fff5f5; }
.diagnostic-check-copy { display: grid; gap: 3px; min-width: 0; width: 100%; }
.diagnostic-check-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; min-width: 0; }
.diagnostic-check-top > strong { color: #63778a; font-size: 10px; font-weight: 700; line-height: 1.7; }
.diagnostic-check-top > b { max-width: 62%; color: #344d61; font: 750 10.5px/1.7 "Vazirmatn", Tahoma, sans-serif; text-align: left; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.registration-diagnostic-check.is-good .diagnostic-check-top > b { color: #257a60; }
.registration-diagnostic-check.is-warning .diagnostic-check-top > b { color: #966f2f; }
.registration-diagnostic-check.is-error .diagnostic-check-top > b { color: #a94d56; }
.diagnostic-check-copy > small { color: #8592a0; font-size: 10px; line-height: 1.75; }
.registration-diagnostic-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 2px 1px; color: #8593a0; font-size: 10px; line-height: 1.8; }
.registration-diagnostic-meta > span { unicode-bidi: plaintext; }
.modem-registration-diagnosis > .registration-diagnosis-next-step {
  padding: 10px 11px;
  border: 1px solid #dcebe5;
  border-radius: 10px;
  color: #405e58;
  background: linear-gradient(130deg, #f5fbf8, #fff);
  font-size: 11px;
  line-height: 1.9;
}
.registration-diagnosis-next-step strong { display: block; margin-bottom: 2px; font-size: 11px; }
.registration-diagnosis-next-step p { margin: 0; }
.modem-registration-diagnosis > .registration-retry-result { padding: 10px 11px; font-size: 11px; line-height: 1.85; }
.registration-retry-result p { margin: 3px 0 0; }
.channel-registration-retry { min-height: 42px; font-size: 11px; }
.modem-imei-item { padding: 12px 13px; }
.modem-imei-copy > span { font-size: 11px; }
.modem-imei-copy > strong { font-size: 15px; }
.modem-imei-copy > small { font-size: 10px; }
.channel-imei-read { min-height: 38px; font-size: 11px; }
@media(max-width:540px) {
  .registration-diagnostic-grid { grid-template-columns: 1fr; }
  .registration-diagnosis-heading { align-items: flex-start; flex-direction: column; }
  .registration-mode { margin-right: 43px; }
}

.channel-diagnostics-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 11px; border: 1px solid #cfe5df; border-radius: 9px; color: #287c70; background: #f7fcfa; font: 700 10px/1.5 "Vazirmatn", Tahoma, sans-serif; white-space: nowrap; transition: background .16s ease, border-color .16s ease; }
.channel-diagnostics-refresh:hover:not(:disabled) { border-color: #a5d1c7; background: #edf8f4; }
.channel-diagnostics-refresh .ui-icon { width: 15px; height: 15px; }
.channel-diagnostics-refresh[aria-busy="true"] .ui-icon { animation: imei-reading .9s linear infinite; }
.channel-diagnostics-refresh:disabled { cursor: wait; opacity: .7; }
.device-reboot-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 16px; padding: 18px 20px; border: 1px solid #efdcde; background: linear-gradient(115deg, #fffafa, #fff 72%); box-shadow: 0 7px 22px rgba(95, 43, 50, .045); }
.device-reboot-copy { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.device-reboot-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid #f0d9dc; border-radius: 13px; color: #b44e58; background: #fff1f2; }
.device-reboot-icon .ui-icon { width: 20px; height: 20px; }
.device-reboot-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 3px; }
.device-reboot-title h2 { margin: 0; font-size: 14px; }
.device-reboot-copy p { max-width: 800px; margin: 0; color: #758293; font-size: 11px; line-height: 1.9; }
.device-web-status { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.device-web-status.online { color: #287c64; background: #e8f6ef; }
.device-web-status.warning { color: #9b702e; background: #fff5e2; }
.device-web-status.offline { color: #aa4f57; background: #fceced; }
.device-web-status.unknown { color: #748296; background: #eff2f5; }
.device-reboot-action { display: grid; justify-items: end; gap: 6px; flex: 0 0 auto; }
.device-reboot-action > span { color: #8894a2; font-size: 9px; direction: ltr; }
.device-reboot-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 8px 13px; font: 700 11px/1.5 "Vazirmatn", Tahoma, sans-serif; text-decoration: none; }
.device-reboot-button .ui-icon { width: 15px; height: 15px; }
.device-reboot-button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
@media(max-width:780px) {
  .device-reboot-panel { align-items: stretch; flex-direction: column; gap: 13px; }
  .device-reboot-action { align-items: flex-start; justify-items: start; }
}
@media(max-width:680px) {
  .channel-diagnostics-refresh { flex: 1 1 100%; }
  .device-reboot-panel { padding: 14px; }
  .device-reboot-copy { gap: 10px; }
  .device-reboot-title { align-items: flex-start; flex-direction: column; }
}

.socket-state.unknown { background: #fff4df; color: #98702f; }
.socket-state.connected { background: #eaf0ff; color: #496db5; }
.socket-state.other { background: #f1f3f6; color: #68788c; }

/* Top-bar alert center and persistent unread inbox count. */
.notification-center { position: relative; z-index: 12; }
.notification-button { position: relative; display: grid; place-items: center; color: #53677c; }
.notification-button[aria-expanded="true"] { color: #b64652; border-color: #edc8cc; background: #fff7f7; }
.notification-button > [data-icon] { pointer-events: none; }
.notification-button .ui-icon { width: 20px; height: 20px; }
.notification-badge,
.nav-unread-badge {
  display: grid;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #d84d59;
  box-shadow: 0 2px 7px rgba(159, 42, 54, .25);
  font: 800 10px/1 "Vazirmatn", Tahoma, sans-serif;
  direction: ltr;
}
.notification-badge { position: absolute; inset-block-start: -5px; inset-inline-start: -5px; }
.nav-unread-badge { flex: 0 0 auto; margin-inline-start: auto; border-color: #17283d; }
.notification-panel {
  position: absolute;
  inset-block-start: calc(100% + 11px);
  inset-inline-end: 0;
  width: min(390px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #e3e9ee;
  border-radius: 16px;
  color: #2d4054;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 55px rgba(27, 48, 70, .2), 0 3px 10px rgba(27, 48, 70, .08);
  backdrop-filter: blur(18px);
}
.notification-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px 12px; border-bottom: 1px solid #edf0f4; }
.notification-panel-heading > div { display: grid; gap: 2px; }
.notification-panel-heading strong { color: #2a3e53; font: 800 14px/1.7 "Vazirmatn", Tahoma, sans-serif; }
.notification-panel-heading small { color: #8290a0; font: 11px/1.7 "Vazirmatn", Tahoma, sans-serif; }
.notification-close { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #e6ebef; border-radius: 9px; color: #758497; background: #fff; font: 20px/1 Tahoma, sans-serif; }
.notification-close:hover { color: #ad4e58; background: #fff6f6; border-color: #efd4d7; }
.notification-list { display: grid; max-height: min(58vh, 470px); padding: 7px; overflow-y: auto; overscroll-behavior: contain; }
.notification-item { display: grid; grid-template-columns: 36px minmax(0,1fr) 14px; align-items: center; gap: 10px; width: 100%; min-height: 65px; padding: 9px 10px; border: 0; border-radius: 11px; color: inherit; background: transparent; text-align: right; cursor: pointer; }
.notification-item:hover, .notification-item:focus-visible { background: #f5f8fa; }
.notification-item-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #e5ebef; border-radius: 11px; color: #62798e; background: #f6f9fb; }
.notification-item-icon .ui-icon { width: 19px; height: 19px; }
.notification-item.error .notification-item-icon { color: #b74f59; background: #fff3f4; border-color: #f1d5d8; }
.notification-item.warning .notification-item-icon { color: #a77a33; background: #fff8e9; border-color: #f0e2c3; }
.notification-item.info .notification-item-icon { color: #367e9a; background: #f0f8fb; border-color: #d9eaf0; }
.notification-item-copy { display: grid; gap: 2px; min-width: 0; }
.notification-item-copy strong { color: #344b61; font: 750 12px/1.7 "Vazirmatn", Tahoma, sans-serif; }
.notification-item-copy small { color: #8592a1; font: 10px/1.75 "Vazirmatn", Tahoma, sans-serif; }
.notification-item-arrow { color: #9aa7b4; font: 20px/1 Tahoma, sans-serif; }
.notification-empty { display: grid; justify-items: center; gap: 4px; padding: 27px 15px 24px; text-align: center; }
.notification-empty-icon { display: grid; width: 42px; height: 42px; margin-bottom: 4px; place-items: center; border: 1px solid #d9eee5; border-radius: 14px; color: #32866a; background: #f0faf5; }
.notification-empty-icon .ui-icon { width: 22px; height: 22px; }
.notification-empty strong { color: #476256; font: 750 12px/1.8 "Vazirmatn", Tahoma, sans-serif; }
.notification-empty small { color: #8a9a91; font: 10px/1.8 "Vazirmatn", Tahoma, sans-serif; }
.notification-footnote { padding: 10px 14px; border-top: 1px solid #edf0f4; color: #8c99a6; background: #fafcfd; font: 10px/1.8 "Vazirmatn", Tahoma, sans-serif; }
.inbox-row-unread { background: #fff9f8; }
.inbox-row-unread td:first-child strong::before { display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: #d84d59; content: ""; vertical-align: middle; }
html.theme-dark .notification-button[aria-expanded="true"] { color: #ffacb4; background: #38242d; border-color: #60404a; }
html.theme-dark .notification-panel { color: #dce7f0; background: rgba(19,34,53,.98); border-color: #34475e; }
html.theme-dark .notification-panel-heading { border-color: #2b3c51; }
html.theme-dark .notification-panel-heading strong, html.theme-dark .notification-item-copy strong { color: #e1eaf4; }
html.theme-dark .notification-panel-heading small, html.theme-dark .notification-item-copy small, html.theme-dark .notification-footnote { color: #9aabc0; }
html.theme-dark .notification-close { color: #c4d2e0; background: #1b2d43; border-color: #34475e; }
html.theme-dark .notification-item:hover, html.theme-dark .notification-item:focus-visible { background: #1b2d43; }
html.theme-dark .notification-item-icon { background: #1b2d43; border-color: #34475e; }
html.theme-dark .notification-item.error .notification-item-icon { color: #ffb0bb; background: #38242d; border-color: #60404a; }
html.theme-dark .notification-item.warning .notification-item-icon { color: #e0b96d; background: #382e1b; border-color: #5d4b2e; }
html.theme-dark .notification-item.info .notification-item-icon { color: #90cbe0; background: #18303b; border-color: #34515e; }
html.theme-dark .notification-empty-icon { color: #80d6b7; background: #17352f; border-color: #2d5c4e; }
html.theme-dark .notification-empty strong { color: #c6e6d8; }
html.theme-dark .notification-empty small { color: #9ab5a9; }
html.theme-dark .notification-footnote { background: #101e30; border-color: #2b3c51; }
html.theme-dark .inbox-row-unread { background: #2c222b; }
@media(max-width:680px) {
  .notification-panel { position: fixed; inset-block-start: 66px; inset-inline: 12px; width: auto; max-width: 460px; margin-inline: auto; }
}
.notification-section + .notification-section { margin-top: 5px; padding-top: 5px; border-top: 1px solid #edf0f4; }
.notification-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px 4px; color: #728194; }
.notification-section-heading strong { font: 800 11px/1.8 "Vazirmatn", Tahoma, sans-serif; }
.notification-section-heading > span { display: grid; min-width: 22px; height: 22px; padding-inline: 5px; place-items: center; border-radius: 999px; color: #738398; background: #f0f3f6; font: 750 10px/1 "Vazirmatn", Tahoma, sans-serif; }
.notification-section-empty { padding: 9px 11px 12px; color: #9aa5b2; font: 10px/1.8 "Vazirmatn", Tahoma, sans-serif; }
.notification-item.is-unread { background: #fffafa; }
.notification-item.is-unread:hover, .notification-item.is-unread:focus-visible { background: #fff3f3; }
.notification-item-state { justify-self: start; width: fit-content; margin-top: 2px; padding: 1px 7px; border-radius: 999px; color: #ac4d57; background: #fff0f1; font: 700 9px/1.7 "Vazirmatn", Tahoma, sans-serif; }
.notification-item.is-read .notification-item-state { color: #397c64; background: #edf7f1; }
.notification-item.is-read { background: transparent; }
.notification-item.is-read .notification-item-copy strong { color: #66778a; }
html.theme-dark .notification-section + .notification-section { border-color: #2b3c51; }
html.theme-dark .notification-section-heading { color: #a7b7c8; }
html.theme-dark .notification-section-heading > span { color: #b5c3d2; background: #26384c; }
html.theme-dark .notification-section-empty { color: #91a0b1; }
html.theme-dark .notification-item.is-unread, html.theme-dark .notification-item.is-unread:hover { background: #2d252e; }
html.theme-dark .notification-item.is-unread .notification-item-state { color: #ffb0bb; background: #45232a; }
html.theme-dark .notification-item.is-read .notification-item-state { color: #9ce0b8; background: #18392c; }
html.theme-dark .notification-item.is-read .notification-item-copy strong { color: #b7c5d3; }
