:root {
  color-scheme: light;
  --blue-700: #1857d6;
  --blue-600: #2468ea;
  --blue-500: #3a7af3;
  --blue-100: #eaf1ff;
  --blue-50: #f3f7ff;
  --ink-950: #14213d;
  --ink-900: #1c2942;
  --ink-700: #46536b;
  --ink-600: #68738a;
  --ink-500: #8490a6;
  --line: #e8edf5;
  --page: #f5f7fb;
  --surface: #ffffff;
  --success: #1f9d69;
  --success-soft: #e7f7f0;
  --warning: #d58a1f;
  --warning-soft: #fff5df;
  --danger: #d84b5b;
  --danger-soft: #fff0f2;
  --violet: #7457dc;
  --violet-soft: #f0edff;
  --shadow-sm: 0 1px 2px rgba(24, 48, 90, 0.03), 0 5px 18px rgba(24, 48, 90, 0.04);
  --shadow-md: 0 18px 55px rgba(25, 54, 102, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --sidebar-width: 248px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-synthesis: none;
}

/* Administrator usage summary and lifetime ranking controls. */
body[data-role="ADMIN"] .admin-metric-card.is-partial {
  border-color: #ecd69d;
  background: linear-gradient(145deg, #fff, #fffbef);
}

body[data-role="ADMIN"] .admin-metric-card.is-unavailable {
  border-color: #e2e7ee;
  background: #fafbfd;
}

body[data-role="ADMIN"] .admin-metric-card.is-unavailable .admin-metric-copy > strong {
  color: #758298;
  font-size: 17px;
  letter-spacing: -0.01em;
}

body[data-role="ADMIN"] .admin-traffic-ranking-actions {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

body[data-role="ADMIN"] .admin-traffic-ranking-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: #f5f7fa;
}

body[data-role="ADMIN"] .admin-traffic-ranking-tabs button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: #66758a;
  background: transparent;
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
  cursor: pointer;
}

body[data-role="ADMIN"] .admin-traffic-ranking-tabs button:hover {
  color: #275fae;
}

body[data-role="ADMIN"] .admin-traffic-ranking-tabs button.is-active {
  color: #1f65cc;
  background: #fff;
  box-shadow: 0 1px 4px rgba(38, 74, 122, 0.12);
}

body[data-role="ADMIN"] .admin-traffic-ranking-tabs button:focus-visible {
  outline: 3px solid rgba(36, 118, 239, 0.2);
  outline-offset: 1px;
}

body[data-role="ADMIN"] .admin-traffic-ranking-actions > strong {
  color: #68778b;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0;
  text-align: right;
  white-space: normal;
}

@media (max-width: 800px) {
  body[data-role="ADMIN"] .admin-traffic-ranking-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }

  body[data-role="ADMIN"] .admin-traffic-ranking-actions {
    width: 100%;
    align-items: stretch;
  }

  body[data-role="ADMIN"] .admin-traffic-ranking-tabs {
    width: 100%;
  }

  body[data-role="ADMIN"] .admin-traffic-ranking-tabs button {
    min-width: 0;
    flex: 1;
  }

  body[data-role="ADMIN"] .admin-traffic-ranking-actions > strong {
    text-align: left;
  }
}

@media (max-width: 420px) {
  body[data-role="ADMIN"] .admin-traffic-ranking-tabs button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 11px;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink-900);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.is-hidden {
  display: none !important;
}

.admin-only,
.employee-only {
  display: none;
}

body[data-role="ADMIN"] .admin-only {
  display: initial;
}

body[data-role="ADMIN"] button.admin-only,
body[data-role="ADMIN"] .nav-item.admin-only {
  display: flex;
}

body[data-role="ADMIN"] .admin-home {
  display: block;
}

body[data-role="ADMIN"] section.admin-only {
  display: block;
}

body[data-role="ADMIN"] .panel-link.admin-only {
  display: flex;
}

body[data-role="EMPLOYEE"] .employee-only {
  display: initial;
}

body[data-role="EMPLOYEE"] button.employee-only,
body[data-role="EMPLOYEE"] .nav-item.employee-only {
  display: flex;
}

body[data-role="EMPLOYEE"] .employee-home {
  display: block;
}

body[data-role="EMPLOYEE"] section.employee-only {
  display: block;
}

body[data-role="ADMIN"] .employee-only,
body[data-role="EMPLOYEE"] .admin-only {
  display: none !important;
}

.page-loader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--ink-600);
  font-size: 14px;
  letter-spacing: 0.02em;
  background:
    radial-gradient(circle at 49% 44%, rgba(58, 122, 243, 0.1), transparent 22%),
    var(--page);
}

.loader-mark,
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 10px 25px rgba(36, 104, 234, 0.25);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.05em;
}

.loader-mark {
  animation: breathe 1.5s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 25px rgba(36, 104, 234, 0.2);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(36, 104, 234, 0.34);
  }
}

.login-view {
  min-height: 100vh;
  padding: 20px;
  background:
    linear-gradient(rgba(237, 242, 251, 0.65) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 242, 251, 0.65) 1px, transparent 1px),
    #f8faff;
  background-size: 40px 40px;
}

.login-stage {
  width: min(1180px, 100%);
  min-height: calc(100vh - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  overflow: hidden;
  border: 1px solid rgba(225, 232, 244, 0.9);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(28, 58, 107, 0.13);
}

.login-brand {
  min-height: 660px;
  display: flex;
  flex-direction: column;
  padding: 48px 54px 44px;
  color: #fff;
  background:
    radial-gradient(circle at 74% 12%, rgba(123, 175, 255, 0.55), transparent 26%),
    radial-gradient(circle at 30% 90%, rgba(80, 162, 255, 0.3), transparent 40%),
    linear-gradient(145deg, #143e9f 0%, #1f64df 54%, #3188f1 100%);
  position: relative;
  isolation: isolate;
}

.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  z-index: -1;
}

.login-brand::before {
  width: 500px;
  height: 500px;
  right: -320px;
  top: 70px;
}

.login-brand::after {
  width: 360px;
  height: 360px;
  left: -250px;
  bottom: -120px;
}

.brand-lockup,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand .brand-mark {
  color: var(--blue-700);
  background: #fff;
  box-shadow: 0 10px 30px rgba(6, 41, 111, 0.25);
}

.brand-name {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: 0.06em;
}

.login-intro {
  margin: auto 0;
  max-width: 480px;
}

.eyebrow {
  display: block;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.66);
}

.login-intro h1 {
  margin-top: 23px;
  font-size: clamp(35px, 4vw, 50px);
  font-weight: 730;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.login-intro p {
  max-width: 430px;
  margin-top: 23px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.8;
}

.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.login-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-points i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8dd5ff;
  box-shadow: 0 0 0 4px rgba(141, 213, 255, 0.14);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  background:
    radial-gradient(circle at 80% 14%, rgba(236, 243, 255, 0.7), transparent 26%),
    #fff;
}

.login-card {
  width: min(390px, 100%);
}

.mobile-brand {
  display: none;
  margin-bottom: 44px;
}

.login-card h2 {
  margin-top: 12px;
  color: var(--ink-950);
  font-size: 30px;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.muted {
  color: var(--ink-600);
}

.login-helper {
  margin-top: 12px;
  font-size: 14px;
}

.login-primary-helper {
  line-height: 1.65;
}

.login-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  margin-top: 22px;
  padding: 13px 14px;
  border: 1px solid #f2d5d8;
  border-radius: 12px;
  color: #8d303a;
  background: #fff7f7;
  line-height: 1.55;
}

.login-notice[hidden],
.feishu-login-option[hidden] {
  display: none;
}

.login-notice-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #df5b66;
  font-size: 12px;
  font-weight: 800;
}

.login-notice strong,
.login-notice small {
  display: block;
}

.login-notice strong {
  color: #7d2731;
  font-size: 13px;
}

.login-notice small {
  margin-top: 3px;
  color: #9b5159;
  font-size: 11px;
}

.feishu-login-option {
  margin-top: 30px;
}

.feishu-login-button {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  padding: 0 16px 0 12px;
  border-radius: 13px;
  text-align: left;
}

.feishu-button-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue-700);
  background: #fff;
  box-shadow: 0 5px 14px rgba(20, 62, 159, 0.18);
  font-size: 14px;
  font-weight: 780;
}

.feishu-button-label {
  padding-left: 11px;
  font-size: 15px;
  text-align: center;
}

.feishu-button-arrow {
  font-size: 17px;
  text-align: right;
}

.feishu-login-option > p {
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.admin-login-details {
  margin-top: 18px;
  border-top: 1px solid #edf1f7;
}

.admin-login-details > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--ink-600);
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  list-style: none;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.admin-login-details > summary::-webkit-details-marker {
  display: none;
}

.admin-login-details > summary:hover,
.admin-login-details[open] > summary {
  color: var(--blue-700);
  background: var(--blue-50);
}

.admin-login-details.is-primary {
  margin-top: 28px;
  border-top: 0;
}

.admin-login-details.is-primary > summary {
  border: 1px solid #dce5f3;
  color: var(--blue-700);
  background: var(--blue-50);
}

.admin-login-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.admin-login-details[open] .admin-login-chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.admin-login-body {
  padding: 5px 2px 0;
}

.admin-login-body .login-helper {
  margin-top: 12px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

#login-form {
  margin-top: 20px;
}

.field {
  display: block;
  margin-bottom: 20px;
}

.field > span,
.field > label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 650;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dce3ef;
  border-radius: 11px;
  outline: 0;
  color: var(--ink-900);
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.field select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #7e899d 50%),
    linear-gradient(135deg, #7e899d 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field input::placeholder {
  color: #a8b1c2;
}

.field input:hover,
.field select:hover {
  border-color: #c9d4e6;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(58, 122, 243, 0.11);
}

.field small {
  display: block;
  margin-top: 7px;
  color: var(--ink-500);
  font-size: 11px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 62px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 7px;
  border: 0;
  border-radius: 7px;
  color: var(--blue-600);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.form-error {
  min-height: 20px;
  margin: -6px 0 10px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.danger-button,
.outline-button,
.ghost-button,
.copy-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 9px 22px rgba(36, 104, 234, 0.22);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(36, 104, 234, 0.28);
}

.primary-button:active,
.secondary-button:active,
.danger-button:active,
.outline-button:active {
  transform: translateY(0);
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled,
.outline-button:disabled,
.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.primary-button.compact {
  min-height: 40px;
  padding-inline: 15px;
}

.secondary-button {
  border: 1px solid #dfe6f2;
  color: var(--ink-700);
  background: #fff;
}

.secondary-button:hover {
  border-color: #c9d6eb;
  color: var(--blue-600);
  background: var(--blue-50);
}

.danger-button {
  color: #fff;
  background: var(--danger);
}

.danger-button.is-enable {
  background: var(--blue-600);
}

.outline-button {
  width: 100%;
  border: 1px solid #dce5f3;
  color: var(--blue-600);
  background: var(--blue-50);
}

.outline-button:hover {
  border-color: #bcd0f4;
  background: #e9f1ff;
}

.login-button {
  width: 100%;
  min-height: 50px;
  justify-content: space-between;
  margin-top: 4px;
  padding-inline: 18px;
  border-radius: 11px;
}

.login-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--ink-500);
  font-size: 11px;
  text-align: center;
}

.secure-dot {
  width: 8px;
  height: 8px;
  border: 2px solid #63a07f;
  border-radius: 50%;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
}

.sidebar-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 18px;
}

.sidebar-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.sidebar-brand b {
  color: var(--ink-950);
  font-size: 17px;
  letter-spacing: 0.06em;
}

.sidebar-brand small,
.service-state small,
.panel-link small {
  color: var(--ink-500);
  font-size: 10px;
}

.main-nav {
  display: grid;
  gap: 5px;
  margin-top: 50px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  color: var(--ink-600);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 640;
  text-align: left;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.nav-item:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav-item.is-active {
  color: var(--blue-700);
  background: var(--blue-100);
}

.nav-item.is-active .nav-icon {
  color: #fff;
  background: var(--blue-600);
}

.nav-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink-600);
  background: #f0f3f8;
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
}

.sidebar-bottom {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.panel-link,
.service-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 12px;
}

.panel-link {
  border: 1px solid #e3eaf5;
  background: #fafcff;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.panel-link:hover {
  border-color: #c8d8f1;
  background: var(--blue-50);
}

.panel-link > span:nth-child(2),
.service-state > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.panel-link b,
.service-state b {
  color: var(--ink-700);
  font-size: 11px;
}

.panel-link > i {
  margin-left: auto;
  color: var(--ink-500);
  font-size: 12px;
  font-style: normal;
}

.service-state {
  padding-inline: 12px;
  background: #f7f9fc;
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2db57c;
  box-shadow: 0 0 0 4px rgba(45, 181, 124, 0.12);
}

.app-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  min-height: 88px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px clamp(24px, 4vw, 54px);
  border-bottom: 1px solid rgba(229, 235, 244, 0.86);
  background: rgba(245, 247, 251, 0.88);
  backdrop-filter: blur(18px);
}

.topbar-kicker {
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.1em;
}

.topbar h1 {
  margin-top: 4px;
  color: var(--ink-950);
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.account-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-copy {
  display: grid;
  justify-items: end;
  gap: 3px;
  margin-right: 2px;
}

.account-copy b {
  max-width: 180px;
  overflow: hidden;
  color: var(--ink-700);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy small {
  max-width: 220px;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge {
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 9px;
  font-weight: 700;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #7ca8ff, #315ec7);
  box-shadow: 0 3px 12px rgba(25, 67, 150, 0.17);
  font-size: 13px;
  font-weight: 750;
}

.ghost-button {
  min-height: 34px;
  padding-inline: 11px;
  color: var(--ink-600);
  background: transparent;
}

.ghost-button:hover {
  color: var(--blue-600);
  background: var(--blue-100);
}

.mobile-menu {
  display: none;
}

.content-wrap {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 32px clamp(24px, 4vw, 54px) 60px;
}

.content-section {
  animation: section-enter 0.28s ease both;
}

@keyframes section-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-card {
  min-height: 188px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 34px 42px;
  border: 1px solid rgba(195, 214, 248, 0.6);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 15%, rgba(81, 145, 255, 0.22), transparent 28%),
    linear-gradient(120deg, #eef4ff 0%, #f8fbff 54%, #eef7ff 100%);
  box-shadow: var(--shadow-sm);
}

.welcome-card::after {
  content: "";
  width: 340px;
  height: 340px;
  position: absolute;
  right: -220px;
  bottom: -250px;
  border: 1px solid rgba(39, 105, 224, 0.18);
  border-radius: 50%;
}

.welcome-card h2 {
  margin-top: 11px;
  color: var(--ink-950);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 730;
  letter-spacing: -0.035em;
}

.welcome-card p {
  margin-top: 10px;
  color: var(--ink-600);
  font-size: 14px;
}

.welcome-orbit {
  width: 104px;
  height: 104px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin-right: 42px;
  border: 1px solid rgba(42, 107, 230, 0.18);
  border-radius: 50%;
}

.welcome-orbit::before,
.welcome-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(42, 107, 230, 0.1);
  border-radius: 50%;
}

.welcome-orbit::before {
  width: 140px;
  height: 140px;
}

.welcome-orbit::after {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.55);
}

.welcome-orbit span {
  z-index: 1;
  color: var(--blue-600);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.admin-home,
.employee-home {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 19px;
}

.section-heading h2 {
  margin-top: 7px;
  color: var(--ink-950);
  font-size: 23px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 660px;
  margin-top: 8px;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.6;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.metric-card {
  min-width: 0;
  position: relative;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 780;
}

.metric-icon.blue {
  color: var(--blue-700);
  background: var(--blue-100);
}

.metric-icon.green {
  color: var(--success);
  background: var(--success-soft);
}

.metric-icon.violet {
  color: var(--violet);
  background: var(--violet-soft);
}

.metric-icon.amber {
  color: var(--warning);
  background: var(--warning-soft);
}

.metric-card p {
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 640;
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  overflow: hidden;
  color: var(--ink-950);
  font-size: 27px;
  font-weight: 730;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card small {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 10px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  margin-top: 16px;
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.home-grid > .surface-card {
  padding: 24px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card-heading h2,
.card-heading h3 {
  color: var(--ink-950);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-heading h2 {
  margin-top: 7px;
  font-size: 21px;
}

.card-heading h3 {
  font-size: 15px;
}

.card-heading p {
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.5;
}

.text-button {
  padding: 4px 0;
  border: 0;
  color: var(--blue-600);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 660;
}

.mini-account-list {
  display: grid;
  margin-top: 16px;
}

.mini-account {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(90px, 0.7fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #eff2f7;
}

.mini-account:first-child {
  border-top: 0;
}

.person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 12px;
  font-weight: 750;
}

.person-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.person-copy b {
  overflow: hidden;
  color: var(--ink-700);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-copy small {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-usage {
  min-width: 0;
}

.mini-usage > div {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f7;
}

.mini-usage i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--blue-500);
}

.mini-usage small {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 9px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.active {
  color: var(--success);
  background: var(--success-soft);
}

.status-pill.disabled,
.status-pill.expired {
  color: var(--danger);
  background: var(--danger-soft);
}

.status-pill.expiring {
  color: var(--warning);
  background: var(--warning-soft);
}

.skeleton-line {
  height: 52px;
  margin-top: 1px;
  border-top: 1px solid #eff2f7;
  background: linear-gradient(90deg, transparent, rgba(237, 242, 249, 0.7), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.quick-card {
  display: flex;
  flex-direction: column;
}

.quick-action {
  width: 100%;
  min-height: 59px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #edf1f7;
  border-radius: 12px;
  color: inherit;
  background: #fbfcfe;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.quick-action:hover {
  transform: translateX(2px);
  border-color: #d8e4f7;
  background: var(--blue-50);
}

.quick-action > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.quick-action b {
  color: var(--ink-700);
  font-size: 11px;
}

.quick-action small {
  color: var(--ink-500);
  font-size: 9px;
}

.quick-action > i {
  color: var(--ink-500);
  font-size: 12px;
  font-style: normal;
}

.quick-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 15px;
  font-weight: 650;
}

.quick-icon.soft {
  color: var(--success);
  background: var(--success-soft);
}

.quick-icon.muted-icon {
  color: var(--violet);
  background: var(--violet-soft);
}

.subscription-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
}

.subscription-card,
.start-card {
  padding: 28px;
}

.subscription-content {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  margin-top: 26px;
  padding-top: 25px;
  border-top: 1px solid #edf1f7;
}

.qr-panel {
  text-align: center;
}

.qr-frame {
  width: 176px;
  height: 176px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 11px;
  border: 1px solid #dae5f6;
  border-radius: 16px;
  background: #fff;
}

.qr-frame::before,
.qr-frame::after {
  content: "";
  width: 27px;
  height: 27px;
  position: absolute;
  border-color: var(--blue-500);
  border-style: solid;
}

.qr-frame::before {
  top: -3px;
  left: -3px;
  border-width: 2px 0 0 2px;
  border-radius: 10px 0 0;
}

.qr-frame::after {
  right: -3px;
  bottom: -3px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 10px;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  display: none;
  border-radius: 7px;
  object-fit: contain;
}

.qr-frame.has-image img {
  display: block;
}

.qr-frame.has-image .qr-placeholder {
  display: none;
}

.qr-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 8px;
  color: var(--ink-500);
  background:
    linear-gradient(90deg, rgba(228, 235, 247, 0.6) 1px, transparent 1px),
    linear-gradient(rgba(228, 235, 247, 0.6) 1px, transparent 1px),
    #f8faff;
  background-size: 13px 13px;
}

.qr-placeholder span {
  font-size: 25px;
}

.qr-placeholder small {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 9px;
}

.qr-panel > p {
  margin-top: 12px;
  color: var(--ink-500);
  font-size: 10px;
}

.subscription-detail > label {
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 650;
}

.subscription-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 7px 6px 13px;
  border: 1px solid #e1e7f0;
  border-radius: 11px;
  background: #f8faff;
}

.subscription-url code {
  overflow: hidden;
  color: var(--ink-600);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 34px;
  padding-inline: 12px;
  color: #fff;
  background: var(--blue-600);
}

.usage-block {
  margin-top: 24px;
}

.usage-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.usage-copy > span {
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 650;
}

.usage-copy b {
  color: var(--ink-700);
  font-size: 12px;
}

.usage-copy small {
  margin-inline: 3px;
  color: var(--ink-500);
  font-weight: 500;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  margin-top: 9px;
  border-radius: 999px;
  background: #edf1f7;
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), #6e9dff);
  transition: width 0.45s ease;
}

.subscription-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 17px 0 0;
  border-top: 1px solid #edf1f7;
}

.subscription-meta div {
  min-width: 0;
}

.subscription-meta dt {
  color: var(--ink-500);
  font-size: 9px;
}

.subscription-meta dd {
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-card {
  display: flex;
  flex-direction: column;
}

.step-number {
  color: #d7e3f8;
  font-size: 34px;
  font-weight: 780;
  letter-spacing: -0.06em;
}

.start-card h3 {
  margin-top: 14px;
  color: var(--ink-950);
  font-size: 18px;
}

.start-card > p {
  margin-top: 9px;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.7;
}

.full-button {
  width: 100%;
  margin-top: 22px;
}

.privacy-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.privacy-note > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--warning);
  background: var(--warning-soft);
  font-size: 11px;
  font-weight: 780;
}

.privacy-note p {
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.6;
}

.privacy-note b {
  color: var(--ink-700);
}

.accounts-heading,
.client-heading {
  align-items: flex-start;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.secondary-button.compact {
  min-height: 40px;
  padding-inline: 15px;
}

.account-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 23px 0 14px;
}

.search-box {
  width: min(330px, 100%);
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #e0e6f0;
  border-radius: 10px;
  background: #fff;
}

.search-box > span {
  color: var(--ink-500);
  font-size: 18px;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink-700);
  background: transparent;
  font-size: 12px;
}

.search-box:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(58, 122, 243, 0.09);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  background: #fff;
}

.filter-tabs button {
  min-height: 31px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  color: var(--ink-500);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.filter-tabs button.is-active {
  color: var(--blue-700);
  background: var(--blue-100);
}

.accounts-card {
  overflow: hidden;
}

.accounts-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.accounts-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.accounts-table th {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-500);
  background: #fafbfd;
  font-size: 10px;
  font-weight: 670;
  white-space: nowrap;
}

.accounts-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #eff2f7;
  color: var(--ink-600);
  font-size: 11px;
  vertical-align: middle;
}

.accounts-table tr:last-child td {
  border-bottom: 0;
}

.accounts-table .person-avatar {
  width: 35px;
  height: 35px;
}

.table-usage {
  min-width: 120px;
}

.table-usage > span {
  display: block;
  color: var(--ink-600);
  font-size: 10px;
}

.table-usage > div {
  width: 110px;
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f7;
}

.table-usage i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--blue-500);
}

.account-action {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid #dde4ee;
  border-radius: 8px;
  color: var(--ink-600);
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.account-action:hover {
  border-color: #c7d6ed;
  color: var(--blue-600);
  background: var(--blue-50);
}

.account-action.disable:hover {
  border-color: #f2cbd0;
  color: var(--danger);
  background: var(--danger-soft);
}

.loading-row td {
  height: 130px;
  color: var(--ink-500);
  text-align: center;
}

.mobile-account-list {
  display: none;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 55px 24px;
  text-align: center;
}

.empty-state > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue-600);
  background: var(--blue-100);
  font-weight: 760;
}

.empty-state h3 {
  margin-top: 14px;
  color: var(--ink-700);
  font-size: 14px;
}

.empty-state p {
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 11px;
}

.support-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid #e0e9f6;
  border-radius: 999px;
  color: var(--ink-600);
  background: #fff;
  font-size: 10px;
  font-weight: 650;
}

.support-tag .status-dot {
  width: 6px;
  height: 6px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 25px;
}

.client-card {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px 16px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.client-card:hover {
  transform: translateY(-2px);
  border-color: #d5e1f4;
  box-shadow: 0 15px 34px rgba(24, 60, 120, 0.08);
}

.platform-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.platform-mark.android {
  color: var(--success);
  background: var(--success-soft);
}

.platform-mark.apple {
  color: #5d687d;
  background: #f0f2f6;
}

.platform-mark.phone {
  color: var(--violet);
  background: var(--violet-soft);
}

.platform-copy > span {
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-copy h3 {
  margin-top: 3px;
  color: var(--ink-950);
  font-size: 18px;
}

.platform-copy p {
  margin-top: 7px;
  color: var(--ink-600);
  font-size: 11px;
  line-height: 1.6;
}

.steps {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin: 13px 0 6px;
  padding: 15px 0;
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.steps li > span {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 9px;
  font-weight: 700;
}

.steps p {
  padding-top: 2px;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.5;
}

.client-card .outline-button {
  grid-column: 1 / -1;
}

.help-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
  padding: 19px 22px;
  border: 1px solid #dce7f8;
  border-radius: var(--radius-md);
  background: linear-gradient(110deg, #f0f5ff, #f8fbff);
}

.help-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-700);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  font-weight: 750;
}

.help-banner h3 {
  color: var(--ink-700);
  font-size: 13px;
}

.help-banner p {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.5;
}

.modal {
  width: min(600px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
}

.modal::backdrop {
  background: rgba(18, 32, 58, 0.42);
  backdrop-filter: blur(4px);
}

.modal[open] {
  animation: dialog-enter 0.2s ease both;
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-card {
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.modal-heading h2 {
  margin-top: 7px;
  color: var(--ink-950);
  font-size: 22px;
  font-weight: 730;
  letter-spacing: -0.03em;
}

.modal-heading p {
  margin-top: 7px;
  color: var(--ink-600);
  font-size: 11px;
}

.modal-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-500);
  background: #f2f5f9;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--ink-700);
  background: #e9eef5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.form-grid.single-column {
  grid-template-columns: 1fr;
}

.full-field {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 7px;
}

.compact-modal {
  width: min(420px, 100%);
  margin: 0 auto;
  text-align: center;
}

.confirm-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 14px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 18px;
  font-weight: 800;
}

.confirm-icon.enable {
  color: var(--blue-700);
  background: var(--blue-100);
}

.compact-modal h2 {
  margin-top: 16px;
  color: var(--ink-950);
  font-size: 19px;
}

.compact-modal > p {
  margin-top: 9px;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.65;
}

.compact-modal .modal-actions {
  justify-content: center;
  margin-top: 24px;
}

.compact-modal .modal-actions > button {
  min-width: 105px;
}

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.toast {
  min-width: 230px;
  max-width: min(380px, calc(100vw - 30px));
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dfe7f3;
  border-radius: 12px;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(22, 43, 78, 0.15);
  backdrop-filter: blur(14px);
  font-size: 11px;
  line-height: 1.5;
  animation: toast-enter 0.25s ease both;
}

.toast::before {
  content: "✓";
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--success);
  background: var(--success-soft);
  font-weight: 750;
}

.toast.error::before {
  content: "!";
  color: var(--danger);
  background: var(--danger-soft);
}

.toast.is-leaving {
  animation: toast-leave 0.2s ease both;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes toast-leave {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

.visually-hidden {
  width: 1px !important;
  height: 1px !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.sidebar-scrim {
  display: none;
}

@media (max-width: 1100px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-card .card-heading {
    grid-column: 1 / -1;
  }

  .quick-card .quick-action {
    margin-top: 0;
  }

  .subscription-layout {
    grid-template-columns: 1fr;
  }

  .start-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px 18px;
  }

  .start-card .step-number {
    grid-row: 1 / span 2;
  }

  .start-card h3,
  .start-card > p {
    grid-column: 2;
  }

  .start-card .full-button {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin-top: 0;
  }

  .privacy-note {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
}

@media (max-width: 860px) {
  :root {
    --sidebar-width: 252px;
  }

  .login-stage {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .login-brand {
    padding-inline: 36px;
  }

  .login-panel {
    padding-inline: 35px;
  }

  .sidebar {
    transform: translateX(-105%);
    box-shadow: 20px 0 50px rgba(24, 45, 79, 0.15);
    transition: transform 0.25s ease;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-scrim {
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    opacity: 0;
    display: none;
    background: rgba(19, 32, 55, 0.38);
    transition: opacity 0.2s ease;
  }

  body.sidebar-open .sidebar-scrim {
    display: block;
    opacity: 1;
  }

  .app-main {
    margin-left: 0;
  }

  .mobile-menu {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid #e0e6ef;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }

  .mobile-menu span {
    width: 14px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--ink-600);
  }

  .topbar > div:nth-child(2) {
    margin-right: auto;
  }

  .client-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .login-view {
    padding: 0;
    background: #fff;
  }

  .login-stage {
    min-height: 100vh;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-brand {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    align-items: flex-start;
    padding: 44px 25px 30px;
  }

  .login-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .mobile-brand {
    display: flex;
  }

  .topbar {
    min-height: 74px;
    padding: 13px 18px;
  }

  .topbar-kicker,
  .account-copy,
  .ghost-button {
    display: none;
  }

  .topbar h1 {
    margin-top: 0;
    font-size: 17px;
  }

  .content-wrap {
    padding: 20px 16px 42px;
  }

  .welcome-card {
    min-height: 156px;
    padding: 28px 24px;
  }

  .welcome-orbit {
    width: 70px;
    height: 70px;
    margin-right: 5px;
  }

  .welcome-orbit::before {
    width: 96px;
    height: 96px;
  }

  .welcome-orbit::after {
    width: 50px;
    height: 50px;
  }

  .welcome-orbit span {
    font-size: 22px;
  }

  .welcome-card h2 {
    font-size: 23px;
  }

  .welcome-card p {
    max-width: 220px;
    font-size: 12px;
    line-height: 1.55;
  }

  .admin-home,
  .employee-home {
    margin-top: 26px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading .secondary-button {
    display: none;
  }

  .metrics-grid {
    gap: 10px;
  }

  .metric-card {
    padding: 17px;
  }

  .metric-icon {
    width: 29px;
    height: 29px;
    top: 14px;
    right: 14px;
  }

  .metric-card strong {
    margin-top: 15px;
    font-size: 22px;
  }

  .quick-card {
    display: flex;
  }

  .quick-card .quick-action {
    margin-top: 9px;
  }

  .home-grid > .surface-card {
    padding: 20px;
  }

  .mini-account {
    grid-template-columns: minmax(120px, 1fr) auto;
  }

  .mini-usage {
    display: none;
  }

  .subscription-card,
  .start-card {
    padding: 21px;
  }

  .subscription-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .qr-frame {
    width: 190px;
    height: 190px;
  }

  .start-card {
    display: flex;
    align-items: stretch;
  }

  .start-card .step-number,
  .start-card h3,
  .start-card > p,
  .start-card .full-button,
  .privacy-note {
    grid-column: auto;
    grid-row: auto;
  }

  .start-card .full-button {
    margin-top: 19px;
  }

  .privacy-note {
    margin-top: 0;
  }

  .accounts-heading,
  .client-heading {
    display: grid;
  }

  .accounts-heading .primary-button {
    width: 100%;
    margin-top: 4px;
  }

  .heading-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .accounts-heading .heading-actions .primary-button,
  .accounts-heading .heading-actions .secondary-button {
    width: 100%;
    margin-top: 4px;
  }

  .account-tools {
    display: grid;
  }

  .search-box {
    width: 100%;
  }

  .filter-tabs {
    width: fit-content;
  }

  .accounts-table-wrap {
    display: none;
  }

  .mobile-account-list {
    display: grid;
  }

  .mobile-account-card {
    padding: 18px;
    border-bottom: 1px solid #edf1f7;
  }

  .mobile-account-card:last-child {
    border-bottom: 0;
  }

  .mobile-account-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-account-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding: 13px;
    border-radius: 11px;
    background: #f8faff;
  }

  .mobile-account-meta span {
    display: grid;
    gap: 4px;
    color: var(--ink-500);
    font-size: 9px;
  }

  .mobile-account-meta b {
    overflow: hidden;
    color: var(--ink-700);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .client-card {
    padding: 21px;
  }

  .support-tag {
    justify-self: start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-field {
    grid-column: auto;
  }

  .modal-card {
    padding: 23px 19px;
  }
}

@media (max-width: 430px) {
  .welcome-orbit {
    display: none;
  }

  .welcome-card {
    min-height: 145px;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-icon {
    position: static;
    margin-bottom: 13px;
  }

  .metric-card strong {
    margin-top: 8px;
  }

  .subscription-url {
    grid-template-columns: 1fr;
    padding: 11px;
  }

  .copy-button {
    width: 100%;
  }

  .subscription-meta {
    grid-template-columns: 1fr 1fr;
  }

  .subscription-meta > div:last-child {
    grid-column: 1 / -1;
  }

  .toast-region {
    right: 15px;
    bottom: 15px;
    left: 15px;
  }

  .toast {
    width: 100%;
    min-width: 0;
  }
}

/* Role-specific portal layout */
.nav-external {
  margin-left: auto;
  color: var(--ink-500);
  font-size: 11px;
  font-style: normal;
}

body[data-role="ADMIN"] {
  --page: #f4f7fc;
}

body[data-role="ADMIN"] .topbar {
  background: rgba(248, 250, 254, 0.92);
}

body[data-role="EMPLOYEE"] {
  --page: #f8faff;
  --sidebar-width: 236px;
}

body[data-role="EMPLOYEE"] .topbar {
  background: rgba(255, 255, 255, 0.92);
}

body[data-role="EMPLOYEE"] .content-wrap {
  width: min(1280px, 100%);
}

.dashboard-heading {
  align-items: center;
  margin-bottom: 22px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
}

.employee-spotlight,
.node-overview {
  padding: 25px;
}

.node-overview {
  display: flex;
  flex-direction: column;
}

.node-overview-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.node-overview-heading p {
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.08em;
}

.node-overview-heading h3 {
  margin-top: 4px;
  color: var(--ink-950);
  font-size: 17px;
}

.node-overview-heading small {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.5;
}

.node-health-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 18px;
  font-weight: 760;
}

.node-health-icon.is-warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.node-facts {
  display: grid;
  gap: 0;
  margin: 24px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.node-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.node-facts dt {
  color: var(--ink-500);
  font-size: 10px;
}

.node-facts dd {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 650;
  text-align: right;
}

.node-facts .status-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.panel-entry-button {
  width: 100%;
  justify-content: space-between;
  margin-top: auto;
}

.employee-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.employee-page-heading h2 {
  margin-top: 8px;
  color: var(--ink-950);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 730;
  letter-spacing: -0.045em;
}

.employee-page-heading p {
  margin-top: 8px;
  color: var(--ink-600);
  font-size: 13px;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #d9eee5;
  border-radius: 11px;
  color: #16794f;
  background: #f4fcf8;
  font-size: 11px;
  font-weight: 680;
}

.connection-hero {
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 27px 30px;
  border-color: #dfe8f6;
  background:
    radial-gradient(circle at 90% 25%, rgba(56, 119, 242, 0.08), transparent 26%),
    #fff;
}

.connection-copy,
.connection-action {
  display: flex;
  align-items: center;
}

.connection-copy {
  gap: 17px;
}

.connection-signal {
  width: 48px;
  height: 48px;
  position: relative;
  border-radius: 50%;
  background: var(--success-soft);
}

.connection-signal::before {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 7px rgba(31, 157, 105, 0.12);
}

.connection-copy p {
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.08em;
}

.connection-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.connection-status-line h3 {
  color: var(--ink-950);
  font-size: 19px;
}

.connection-copy small {
  display: block;
  margin-top: 7px;
  color: var(--ink-500);
  font-size: 10px;
}

.connection-action {
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.connection-action > small {
  color: var(--ink-500);
  font-size: 9px;
}

.one-click-button {
  min-width: 190px;
  min-height: 48px;
  justify-content: center;
  font-weight: 700;
}

.employee-summary-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 16px;
}

.employee-summary-card {
  min-height: 150px;
  padding: 24px 26px;
}

.employee-summary-card > p {
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 680;
}

.employee-summary-card > strong {
  display: block;
  margin-top: 14px;
  color: var(--blue-600);
  font-size: 29px;
  letter-spacing: -0.04em;
}

.employee-summary-card > strong small {
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 550;
}

.validity-card > strong {
  font-size: 24px;
}

.summary-helper {
  display: block;
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 9px;
}

.secure-subscription-card {
  margin-top: 16px;
  padding: 26px;
}

.secure-subscription-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 126px;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e2e9f4;
  border-radius: 14px;
  background: #f9fbff;
}

.masked-subscription {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mask-lock {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--blue-600);
  background: var(--blue-100);
  font-size: 16px;
}

.masked-subscription > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.masked-subscription small {
  color: var(--ink-500);
  font-size: 9px;
}

.masked-subscription code {
  overflow: hidden;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-subscription-button {
  white-space: nowrap;
}

.compact-qr .qr-frame {
  width: 98px;
  height: 98px;
  padding: 7px;
  border-radius: 12px;
}

.compact-qr .qr-frame::before,
.compact-qr .qr-frame::after {
  width: 20px;
  height: 20px;
}

.compact-qr > p {
  margin-top: 7px;
}

.quick-device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.quick-device-grid > button {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  padding: 13px;
  border: 1px solid #e0e7f2;
  border-radius: 13px;
  color: var(--ink-700);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.quick-device-grid > button:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: #bfd2f4;
  box-shadow: 0 10px 24px rgba(30, 75, 150, 0.08);
}

.quick-device-grid > button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.quick-device-grid > button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.quick-device-grid b {
  overflow: hidden;
  color: var(--ink-900);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-device-grid small {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-device-grid i {
  grid-column: 1 / -1;
  color: var(--blue-600);
  font-size: 9px;
  font-style: normal;
  font-weight: 680;
  text-align: right;
}

.device-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 9px;
  font-weight: 760;
}

.device-icon.android {
  color: var(--success);
  background: var(--success-soft);
}

.device-icon.apple {
  color: #556176;
  background: #eef1f6;
}

.employee-security-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #cddcf8;
  border-radius: 13px;
  color: var(--ink-700);
  background: #f5f8ff;
}

.employee-security-note > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue-600);
  background: var(--blue-100);
  font-size: 12px;
  font-weight: 760;
}

.employee-security-note b {
  font-size: 11px;
}

.employee-security-note p {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
}

.client-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 9px;
}

.client-actions .outline-button,
.client-actions .primary-button {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.client-import-button.is-launching,
[data-import-client].is-launching {
  opacity: 0.72;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.help-card {
  min-height: 190px;
  padding: 27px;
}

.help-card > span {
  color: #b9ccef;
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -0.05em;
}

.help-card h3 {
  margin-top: 18px;
  color: var(--ink-950);
  font-size: 17px;
}

.help-card p {
  margin-top: 10px;
  color: var(--ink-600);
  font-size: 11px;
  line-height: 1.8;
}

.accounts-table {
  min-width: 960px;
}

@media (max-width: 1120px) {
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .quick-device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .employee-page-heading,
  .connection-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-pill {
    align-self: flex-start;
  }

  .connection-action {
    width: 100%;
    align-items: stretch;
  }

  .connection-action > small {
    text-align: left;
  }

  .one-click-button {
    width: 100%;
  }

  .employee-summary-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .secure-subscription-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .compact-qr {
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .employee-security-note {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .employee-security-note .text-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .dashboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-heading .primary-button {
    width: 100%;
  }

  .employee-page-heading h2 {
    font-size: 28px;
  }

  .connection-hero,
  .secure-subscription-card,
  .employee-summary-card,
  .employee-spotlight,
  .node-overview {
    padding: 20px;
  }

  .secure-subscription-row {
    grid-template-columns: 1fr;
  }

  .copy-subscription-button {
    width: 100%;
  }

  .compact-qr {
    grid-column: auto;
  }

  .quick-device-grid,
  .client-actions {
    grid-template-columns: 1fr;
  }
}

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

/* Employee portal v2 — scoped so the admin dashboard remains unchanged. */
body[data-role="EMPLOYEE"] {
  --page: #f8fafe;
  --sidebar-width: 248px;
  color: #0f1b31;
  background:
    radial-gradient(circle at 82% 8%, rgba(71, 128, 246, 0.055), transparent 28%),
    #f8fafe;
}

body[data-role="EMPLOYEE"] .sidebar {
  width: var(--sidebar-width);
  padding: 34px 20px 24px;
  border-right-color: #e2e8f1;
  background: rgba(255, 255, 255, 0.98);
}

body[data-role="EMPLOYEE"] .sidebar-brand {
  gap: 15px;
  padding: 0 14px;
}

body[data-role="EMPLOYEE"] .sidebar-brand b {
  color: #101b2e;
  font-size: 26px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

body[data-role="EMPLOYEE"] .sidebar-brand small {
  display: none;
}

body[data-role="EMPLOYEE"] .brand-link-mark {
  width: 42px;
  height: 42px;
  position: relative;
  display: block;
  flex: 0 0 auto;
  transform: rotate(-42deg);
}

body[data-role="EMPLOYEE"] .brand-link-mark::before,
body[data-role="EMPLOYEE"] .brand-link-mark::after,
.subscription-brand-mark::before,
.subscription-brand-mark::after {
  content: "";
  width: 25px;
  height: 12px;
  position: absolute;
  border: 5px solid #1769f5;
  border-radius: 999px;
}

body[data-role="EMPLOYEE"] .brand-link-mark::before {
  top: 5px;
  left: 1px;
}

body[data-role="EMPLOYEE"] .brand-link-mark::after {
  right: 1px;
  bottom: 5px;
}

body[data-role="EMPLOYEE"] .main-nav {
  gap: 13px;
  margin-top: 50px;
}

body[data-role="EMPLOYEE"] .nav-item {
  min-height: 58px;
  gap: 14px;
  padding: 0 17px;
  border-radius: 10px;
  color: #506079;
  font-size: 16px;
  font-weight: 600;
}

body[data-role="EMPLOYEE"] .nav-item:hover {
  background: #f3f7fd;
}

body[data-role="EMPLOYEE"] .nav-item.is-active {
  color: #1265ef;
  background: #eaf3ff;
}

body[data-role="EMPLOYEE"] .nav-icon,
body[data-role="EMPLOYEE"] .nav-item.is-active .nav-icon {
  width: 25px;
  height: 25px;
  color: currentColor;
  background: transparent;
  font-size: 18px;
}

body[data-role="EMPLOYEE"] .sidebar-bottom {
  gap: 5px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f1;
}

body[data-role="EMPLOYEE"] .employee-sidebar-account {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 6px 15px;
}

.employee-mini-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1a2a45;
  font-size: 11px;
  font-weight: 760;
}

.employee-sidebar-account b {
  overflow: hidden;
  color: #1e2b40;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-role="EMPLOYEE"] .employee-sidebar-logout {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: #526179;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

body[data-role="EMPLOYEE"] .employee-sidebar-logout:hover {
  color: #175fda;
  background: #f2f6fd;
}

body[data-role="EMPLOYEE"] .topbar {
  display: none;
}

body[data-role="EMPLOYEE"] .app-main {
  margin-left: var(--sidebar-width);
}

body[data-role="EMPLOYEE"] .content-wrap {
  width: min(1320px, 100%);
  padding: 60px 46px 50px 58px;
}

body[data-role="EMPLOYEE"] .employee-home {
  margin: 0;
}

body[data-role="EMPLOYEE"] .employee-page-heading {
  align-items: flex-start;
  margin-bottom: 28px;
}

body[data-role="EMPLOYEE"] .employee-page-heading h2 {
  margin: 0;
  color: #0f1b31;
  font-size: clamp(34px, 3.2vw, 42px);
  font-weight: 760;
  letter-spacing: -0.055em;
}

body[data-role="EMPLOYEE"] .employee-page-heading p {
  margin-top: 8px;
  color: #627087;
  font-size: 16px;
}

.employee-heading-meta {
  display: grid;
  justify-items: end;
  gap: 18px;
  color: #738198;
  font-size: 13px;
}

body[data-role="EMPLOYEE"] .service-pill {
  min-height: 40px;
  padding: 8px 13px;
  border-color: #d5ecdf;
  border-radius: 9px;
  color: #188557;
  background: #f2fbf6;
  font-size: 13px;
}

.employee-dashboard-connection,
.employee-summary-card,
.employee-home-help {
  border: 1px solid #dbe3ee;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(15, 35, 75, 0.045);
}

.employee-dashboard-connection {
  min-height: 164px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 24px;
}

.employee-dashboard-connection .connection-copy h3 {
  color: #121f34;
  font-size: 18px;
  font-weight: 690;
}

.dashboard-connection-state {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
}

.connection-state-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #10a766;
  box-shadow: 0 0 0 5px rgba(16, 167, 102, 0.08);
}

.dashboard-connection-state strong {
  color: #0a9c5f;
  font-size: 20px;
}

.dashboard-connection-state.is-inactive .connection-state-dot {
  background: #d58a1f;
  box-shadow: 0 0 0 5px rgba(213, 138, 31, 0.09);
}

.dashboard-connection-state.is-inactive strong {
  color: #9b6a24;
}

.dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #158052;
  background: #e9f8f0;
  font-size: 10px;
  font-weight: 650;
}

.dashboard-status-pill.disabled {
  color: #b24d57;
  background: #fff0f2;
}

.employee-dashboard-connection .connection-copy small {
  display: block;
  margin-top: 2px;
  color: #77849a;
  font-size: 14px;
}

.dashboard-connection-actions {
  display: flex;
  align-items: center;
  gap: clamp(24px, 8vw, 110px);
}

.smart-route-pill {
  padding: 7px 10px;
  border-radius: 7px;
  color: #118554;
  background: #eefaf4;
  font-size: 12px;
}

.get-config-button {
  min-width: 200px;
  min-height: 62px;
  justify-content: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #1769f5, #1859e7);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(23, 105, 245, 0.16);
}

body[data-role="EMPLOYEE"] .employee-summary-grid {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

body[data-role="EMPLOYEE"] .employee-summary-card {
  min-height: 180px;
  padding: 25px 24px;
}

body[data-role="EMPLOYEE"] .employee-summary-card > p {
  color: #19263a;
  font-size: 16px;
  font-weight: 650;
}

body[data-role="EMPLOYEE"] .employee-summary-card > strong {
  margin-top: 18px;
  color: #1769f5;
  font-size: 32px;
  font-weight: 690;
}

body[data-role="EMPLOYEE"] .employee-summary-card > strong small {
  color: #607089;
  font-size: 17px;
  font-weight: 500;
}

body[data-role="EMPLOYEE"] .validity-card > strong {
  font-size: 31px;
}

body[data-role="EMPLOYEE"] .progress-track {
  height: 9px;
  margin-top: 11px;
  border-radius: 999px;
  background: #e9eef5;
}

body[data-role="EMPLOYEE"] .progress-track > span {
  border-radius: inherit;
  background: #1769f5;
}

body[data-role="EMPLOYEE"] .summary-helper {
  margin-top: 9px;
  color: #728097;
  font-size: 13px;
}

.employee-home-help > h3 {
  color: #101d31;
  font-size: 17px;
}

.os-icon {
  width: 37px;
  height: 37px;
  position: relative;
  display: grid;
  place-items: center;
  color: #1769f5;
}

.os-icon.large {
  width: 58px;
  height: 58px;
}

.windows-icon::before,
.windows-icon::after,
.windows-icon > i::before,
.windows-icon > i::after {
  content: "";
  width: 13px;
  height: 13px;
  position: absolute;
  background: #1682f7;
}

.windows-icon::before {
  top: 4px;
  left: 4px;
}

.windows-icon::after {
  top: 4px;
  right: 4px;
}

.windows-icon > i::before {
  bottom: 4px;
  left: 4px;
}

.windows-icon > i::after {
  right: 4px;
  bottom: 4px;
}

.os-icon.large.windows-icon::before,
.os-icon.large.windows-icon::after,
.os-icon.large.windows-icon > i::before,
.os-icon.large.windows-icon > i::after {
  width: 20px;
  height: 20px;
}

.mac-icon::before {
  content: "";
  width: 31px;
  height: 21px;
  position: absolute;
  top: 5px;
  left: 3px;
  border: 2px solid #14233a;
  border-radius: 3px;
}

.mac-icon::after {
  content: "";
  width: 36px;
  height: 3px;
  position: absolute;
  left: 0;
  bottom: 6px;
  border-radius: 4px;
  background: #14233a;
}

.os-icon.large.mac-icon::before {
  width: 48px;
  height: 32px;
  top: 5px;
  left: 5px;
}

.os-icon.large.mac-icon::after {
  width: 56px;
  bottom: 10px;
}

.phone-icon::before {
  content: "";
  width: 19px;
  height: 34px;
  position: absolute;
  inset: 1px auto auto 9px;
  border: 2px solid #14233a;
  border-radius: 5px;
}

.phone-icon::after {
  content: "";
  width: 5px;
  height: 2px;
  position: absolute;
  left: 16px;
  bottom: 4px;
  border-radius: 2px;
  background: #14233a;
}

.os-icon.large.phone-icon::before {
  width: 29px;
  height: 49px;
  left: 14px;
}

.os-icon.large.phone-icon::after {
  left: 27px;
  bottom: 6px;
}

.android-icon {
  border: 2px solid #14233a;
  border-radius: 10px 10px 7px 7px;
  color: #14233a;
  font-size: 14px;
  font-weight: 760;
}

.android-icon.large {
  border-radius: 14px 14px 10px 10px;
  font-size: 20px;
}

.employee-home-help {
  margin-top: 28px;
  padding: 21px 24px 8px;
}

.employee-home-help > button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-top: 1px solid #e6ebf2;
  color: #233148;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.employee-home-help > h3 + button {
  margin-top: 16px;
}

.employee-home-help > button:hover {
  color: #1769f5;
}

.home-help-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1769f5;
  background: #eaf3ff;
  font-size: 13px;
  font-weight: 700;
}

.employee-home-help i {
  font-size: 25px;
  font-style: normal;
}

.employee-home-subscription {
  margin-top: 28px;
  scroll-margin-top: 24px;
}

.subscription-secret-card,
.subscription-device-card {
  border: 1px solid #d7e0eb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 18px rgba(15, 35, 75, 0.04);
}

.subscription-secret-copy > h3 {
  color: #121f34;
  font-size: 16px;
}

.subscription-device-card button,
.copy-subscription-button {
  border: 1px solid #3f61ff;
  border-radius: 6px;
  color: #2455ef;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 620;
}

.subscription-secret-card {
  min-height: 168px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px 160px;
  align-items: center;
  gap: 25px;
  margin-top: 0;
  padding: 18px 24px;
}

.subscription-secret-copy {
  min-width: 0;
}

.subscription-secret-copy > p {
  margin-top: 4px;
  color: #607088;
  font-size: 12px;
}

.subscription-secret-card .masked-subscription {
  min-height: 58px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid #ccd8ea;
  border-radius: 7px;
  background: #f7faff;
}

.subscription-secret-card .masked-subscription code {
  overflow: hidden;
  color: #728097;
  font-family: inherit;
  font-size: 12px;
  font-weight: 530;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-secret-card .mask-lock {
  width: auto;
  height: auto;
  color: #77869c;
  background: transparent;
}

.copy-subscription-button {
  min-height: 58px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #3a64f4, #4f46ee);
  box-shadow: 0 9px 22px rgba(64, 85, 240, 0.16);
  font-size: 14px;
}

.copy-subscription-button:disabled,
.subscription-device-card button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.subscription-qr-column {
  display: grid;
  justify-items: center;
  padding-left: 25px;
  border-left: 1px solid #dfe5ee;
}

.subscription-qr-column .qr-frame {
  width: 100px;
  height: 100px;
  padding: 7px;
  border-radius: 9px;
}

.subscription-qr-column > p {
  margin-top: 6px;
  color: #55647b;
  font-size: 11px;
}

.subscription-device-heading {
  margin: 17px 0 11px 4px;
  color: #111e31;
  font-size: 16px;
}

.subscription-device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.subscription-device-card {
  min-height: 191px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  text-align: center;
}

.subscription-device-card h3 {
  margin-top: 4px;
  color: #142137;
  font-size: 15px;
}

.subscription-device-card p {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.subscription-device-card button {
  width: 100%;
  min-height: 37px;
  margin-top: 12px;
  font-size: 12px;
}

.subscription-device-card button:not(:disabled):hover {
  color: #fff;
  background: #315cf2;
}

.subscription-security-note {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  margin-top: 18px;
  padding: 14px 20px;
  border: 1px solid #a9c2fb;
  border-radius: 9px;
  background: #f5f8ff;
}

.security-shield {
  width: 44px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #315ee9;
  border: 3px solid #4673f5;
  border-radius: 18px 18px 22px 22px;
  font-weight: 800;
}

.subscription-security-note b {
  color: #1b2940;
  font-size: 14px;
}

.subscription-security-note p {
  margin-top: 4px;
  color: #67758b;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .dashboard-connection-actions {
    gap: 28px;
  }

  .subscription-device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-role="EMPLOYEE"] .topbar {
    display: flex;
  }

  body[data-role="EMPLOYEE"] .app-main {
    margin-left: 0;
  }

  body[data-role="EMPLOYEE"] .content-wrap {
    padding: 30px 22px 48px;
  }

  body[data-role="EMPLOYEE"] .employee-home {
    margin-top: 0;
  }

  .employee-dashboard-connection {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-connection-actions {
    width: 100%;
    justify-content: space-between;
  }

  .subscription-secret-card {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .subscription-qr-column {
    grid-column: 1 / -1;
    padding: 18px 0 0;
    border-top: 1px solid #dfe5ee;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .employee-heading-meta > span:first-child {
    display: none;
  }

  body[data-role="EMPLOYEE"] .employee-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-role="EMPLOYEE"] .employee-summary-grid,
  .subscription-device-grid {
    grid-template-columns: 1fr;
  }

  .subscription-secret-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .subscription-qr-column {
    grid-column: auto;
  }

}

@media (max-width: 480px) {
  body[data-role="EMPLOYEE"] .content-wrap {
    padding-inline: 15px;
  }

  body[data-role="EMPLOYEE"] .employee-page-heading h2 {
    font-size: 31px;
  }

  .dashboard-connection-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .get-config-button {
    width: 100%;
    min-width: 0;
  }

}

/* Admin portal v3 — one calm, production dashboard backed by real portal data. */
body[data-role="ADMIN"] {
  --sidebar-width: 224px;
  background: #f7f9fd;
}

body[data-role="ADMIN"] .sidebar {
  padding: 24px 17px 20px;
  border-right-color: #e5ebf4;
  background:
    radial-gradient(circle at 0 82%, rgba(56, 111, 235, 0.09), transparent 25%),
    rgba(255, 255, 255, 0.98);
}

body[data-role="ADMIN"] .sidebar-brand {
  padding-inline: 8px;
}

body[data-role="ADMIN"] .sidebar-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #4f8af9, #1d5ae2);
  box-shadow: 0 9px 24px rgba(36, 104, 234, 0.23);
}

body[data-role="ADMIN"] .sidebar-brand b {
  font-size: 16px;
}

body[data-role="ADMIN"] .main-nav {
  gap: 7px;
  margin-top: 42px;
}

body[data-role="ADMIN"] .nav-item {
  min-height: 48px;
  border-radius: 10px;
  color: #4f5f78;
  font-size: 13px;
}

body[data-role="ADMIN"] .nav-item.is-active {
  color: #1559dc;
  background: #eaf2ff;
}

body[data-role="ADMIN"] .nav-item.is-active .nav-icon {
  color: #2366e5;
  background: transparent;
}

body[data-role="ADMIN"] .nav-icon {
  width: 28px;
  color: #607089;
  background: transparent;
  font-size: 15px;
}

body[data-role="ADMIN"] .service-state {
  border: 1px solid #e6edf6;
  background: #fbfcff;
}

body[data-role="ADMIN"] button.admin-sidebar-logout {
  width: 100%;
  min-height: 42px;
  display: none;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid #e6edf6;
  border-radius: 10px;
  color: #526179;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: left;
}

body[data-role="ADMIN"] button.admin-sidebar-logout:hover {
  color: #1559dc;
  border-color: #d7e4fa;
  background: #f6f9ff;
}

body[data-role="ADMIN"] .topbar {
  min-height: 70px;
  padding: 12px clamp(24px, 3vw, 42px);
  border-bottom-color: #e8edf5;
  background: rgba(255, 255, 255, 0.93);
}

body[data-role="ADMIN"] .topbar-kicker {
  color: #2468ea;
  font-size: 10px;
}

body[data-role="ADMIN"] .topbar h1 {
  font-size: 18px;
}

body[data-role="ADMIN"] .content-wrap {
  width: min(1500px, 100%);
  padding: 26px clamp(22px, 3vw, 42px) 64px;
}

body[data-role="ADMIN"] .admin-home {
  display: grid;
  gap: 18px;
  margin-top: 0;
}

.admin-overview,
.admin-traffic-panel,
.admin-node-panel,
.admin-members-panel,
.admin-activity-panel,
.admin-settings-panel {
  scroll-margin-top: 92px;
}

.admin-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.admin-page-heading .eyebrow {
  color: #4778dc;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.admin-page-heading h2 {
  margin-top: 5px;
  color: #14213d;
  font-size: clamp(25px, 2.4vw, 32px);
  font-weight: 760;
  letter-spacing: -0.04em;
}

.admin-page-heading p {
  margin-top: 7px;
  color: #728097;
  font-size: 12px;
}

.admin-heading-actions,
.member-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-role="ADMIN"] .primary-button,
body[data-role="ADMIN"] .secondary-button {
  border-radius: 9px;
}

body[data-role="ADMIN"] .admin-metrics-grid {
  gap: 13px;
}

body[data-role="ADMIN"] .metric-card {
  min-height: 134px;
  padding: 20px;
  border-color: #e2e9f3;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(44, 72, 118, 0.045);
}

body[data-role="ADMIN"] .metric-card p {
  color: #5d6a80;
  font-size: 12px;
}

body[data-role="ADMIN"] .metric-card strong {
  margin-top: 17px;
  color: #1559dc;
  font-size: 29px;
}

body[data-role="ADMIN"] .metric-card small {
  display: block;
  margin-top: 8px;
  color: #8a95a8;
  font-size: 10px;
}

body[data-role="ADMIN"] .metric-icon {
  width: 39px;
  height: 39px;
  top: 17px;
  right: 17px;
  border-radius: 50%;
  font-size: 13px;
}

.admin-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 14px;
}

body[data-role="ADMIN"] .admin-traffic-panel,
body[data-role="ADMIN"] .admin-node-panel,
body[data-role="ADMIN"] .admin-members-panel,
body[data-role="ADMIN"] .admin-activity-panel,
body[data-role="ADMIN"] .admin-settings-panel {
  border-color: #e2e9f3;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(44, 72, 118, 0.045);
}

.admin-traffic-panel,
.admin-node-panel {
  min-height: 310px;
  padding: 20px 22px;
}

.admin-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-card-heading h3 {
  color: #1c2942;
  font-size: 15px;
  font-weight: 730;
}

.admin-card-heading p {
  margin-top: 5px;
  color: #8792a5;
  font-size: 10px;
  line-height: 1.5;
}

.admin-card-heading > strong {
  color: #1559dc;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.admin-usage-chart {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 0 4px;
  background:
    linear-gradient(#edf1f7 1px, transparent 1px) 0 0 / 100% 44px;
}

.chart-skeleton {
  width: 72%;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e6edf8, #f3f6fb, #e6edf8);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s linear infinite;
}

.chart-skeleton.short {
  width: 43%;
}

.chart-skeleton.medium {
  width: 61%;
}

.usage-chart-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(64px, 90px) minmax(100px, 1fr) 66px;
  align-items: center;
  gap: 11px;
}

.usage-chart-label {
  overflow: hidden;
  color: #56647a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-chart-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2fa;
}

.usage-chart-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #296cf0, #5b91f7);
  box-shadow: 0 4px 12px rgba(41, 108, 240, 0.2);
}

.usage-chart-row b {
  color: #27364e;
  font-size: 10px;
  text-align: right;
}

.chart-empty,
.activity-empty {
  align-self: center;
  justify-self: center;
  color: #8c97a9;
  font-size: 11px;
  text-align: center;
}

.admin-node-panel .node-health-icon {
  position: static;
  flex: 0 0 auto;
}

.node-service-summary {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f3f7ff;
}

.node-service-summary strong {
  color: #1c5ed8;
  font-size: 14px;
}

.node-service-summary small {
  color: #718099;
  font-size: 10px;
}

.node-service-list {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.node-service-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid #edf1f6;
}

.node-service-list > div:last-child {
  border-bottom: 0;
}

.node-service-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
}

.node-service-mark.blue {
  color: #2869e8;
  background: #e9f1ff;
}

.node-service-mark.green {
  color: #18885c;
  background: #e7f7f0;
}

.node-service-mark.violet {
  color: #6b53ce;
  background: #f0edff;
}

.node-service-list > div > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.node-service-list b {
  color: #334057;
  font-size: 11px;
}

.node-service-list small {
  overflow: hidden;
  color: #8d98aa;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-badge {
  padding: 4px 8px;
  border-radius: 999px;
  color: #718099;
  background: #eef2f7;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.service-badge.success {
  color: #168a5b;
  background: #e8f8f1;
}

.service-badge.warning {
  color: #bd7518;
  background: #fff4df;
}

.admin-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.76fr);
  align-items: start;
  gap: 14px;
}

.admin-members-panel,
.admin-activity-panel,
.admin-settings-panel {
  padding: 20px 22px;
}

.admin-account-tools {
  margin: 16px 0 8px;
}

.member-heading {
  align-items: center;
}

body[data-role="ADMIN"] .accounts-table-wrap {
  max-height: 475px;
  overflow: auto;
  border: 1px solid #e7edf5;
  border-radius: 10px;
}

body[data-role="ADMIN"] .accounts-table {
  min-width: 820px;
}

body[data-role="ADMIN"] .accounts-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-block: 12px;
  color: #728097;
  background: #f8faff;
  font-size: 9px;
}

body[data-role="ADMIN"] .accounts-table td {
  padding-block: 12px;
  font-size: 10px;
}

.admin-activity-panel {
  min-height: 330px;
}

.admin-activity-list {
  display: grid;
  margin-top: 13px;
}

.admin-activity-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
}

.admin-activity-item:last-child {
  border-bottom: 0;
}

.admin-activity-item > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #1761e7;
  background: #eaf2ff;
  font-weight: 800;
}

.admin-activity-item > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-activity-item b {
  overflow: hidden;
  color: #354258;
  font-size: 10px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-activity-item small,
.admin-activity-item time {
  color: #929dae;
  font-size: 9px;
}

.admin-activity-item time {
  white-space: nowrap;
}

.activity-skeleton {
  height: 47px;
  border-bottom: 1px solid #edf1f6;
  background: linear-gradient(90deg, transparent, #f4f7fb, transparent);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s linear infinite;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-settings-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e7edf5;
  border-radius: 10px;
  background: #fbfcff;
}

.settings-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #2468ea;
  background: #eaf2ff;
  font-size: 10px;
  font-weight: 800;
}

.admin-settings-grid article > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-settings-grid small {
  color: #8a95a8;
  font-size: 9px;
}

.admin-settings-grid b {
  overflow: hidden;
  color: #334057;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.subscription-device-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8px;
  margin-top: 12px;
}

.subscription-device-actions a,
.subscription-device-actions button {
  min-height: 37px;
  display: grid;
  place-items: center;
  margin-top: 0;
  border: 1px solid #b9c9ef;
  border-radius: 7px;
  color: #315ee9;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}

.subscription-device-actions button {
  color: #fff;
  border-color: #315ee9;
  background: #315ee9;
}

.employee-home-help details {
  border-top: 1px solid #edf1f5;
}

.employee-home-help summary {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #354258;
  cursor: pointer;
  font-size: 13px;
  list-style: none;
}

.employee-home-help summary::-webkit-details-marker {
  display: none;
}

.employee-home-help details[open] summary i {
  transform: rotate(45deg);
}

.employee-home-help summary i {
  color: #758198;
  font-style: normal;
  transition: transform 0.18s ease;
}

.employee-home-help details > p {
  padding: 0 38px 16px;
  color: #758198;
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 1200px) {
  .admin-work-grid {
    grid-template-columns: 1fr;
  }

  .admin-activity-panel {
    min-height: auto;
  }

  .admin-settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  body[data-role="ADMIN"] .admin-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body[data-role="ADMIN"] .app-main {
    margin-left: 0;
  }

  body[data-role="ADMIN"] .content-wrap {
    padding: 22px 18px 48px;
  }

  .admin-page-heading,
  .member-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-heading-actions,
  .member-heading-actions {
    width: 100%;
  }

  .admin-heading-actions > *,
  .member-heading-actions > * {
    flex: 1;
  }
}

@media (max-width: 700px) {
  body[data-role="ADMIN"] button.admin-sidebar-logout {
    display: flex;
  }
}

@media (max-width: 620px) {
  body[data-role="ADMIN"] .admin-metrics-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-heading-actions,
  .member-heading-actions,
  .admin-account-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-traffic-panel,
  .admin-node-panel,
  .admin-members-panel,
  .admin-activity-panel,
  .admin-settings-panel {
    padding: 17px;
  }

  .usage-chart-row {
    grid-template-columns: 64px minmax(72px, 1fr) 58px;
  }

  .admin-settings-grid article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-settings-grid article > button {
    grid-column: 1 / -1;
  }

  .subscription-device-actions {
    grid-template-columns: 1fr;
  }
}

/* Portal visual refresh — the existing authentication and data contracts stay intact. */
.login-view {
  padding: 30px;
  background:
    linear-gradient(rgba(222, 231, 246, 0.56) 1px, transparent 1px),
    linear-gradient(90deg, rgba(222, 231, 246, 0.56) 1px, transparent 1px),
    #f5f8ff;
  background-size: 42px 42px;
}

.login-stage-v2 {
  width: min(1420px, 100%);
  min-height: calc(100vh - 60px);
  grid-template-columns: minmax(520px, 1.08fr) minmax(480px, 0.92fr);
  border-radius: 30px;
  box-shadow: 0 28px 85px rgba(27, 62, 123, 0.14);
}

.login-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 720px;
  flex-direction: column;
  overflow: hidden;
  padding: 58px 66px 52px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 11%, rgba(121, 178, 255, 0.46), transparent 28%),
    radial-gradient(circle at 36% 96%, rgba(54, 151, 255, 0.32), transparent 42%),
    linear-gradient(145deg, #1745ab 0%, #2166dc 52%, #3387ef 100%);
}

.login-cover-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.login-cover-orbit-one {
  top: 65px;
  right: -310px;
  width: 560px;
  height: 560px;
}

.login-cover-orbit-two {
  bottom: -170px;
  left: -230px;
  width: 420px;
  height: 420px;
}

.login-cover-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-cover-logo {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  color: #1c60d7;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 49, 125, 0.24);
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

.login-cover-brand > span:last-child {
  display: grid;
  gap: 3px;
}

.login-cover-brand strong {
  font-size: 23px;
  letter-spacing: 0.04em;
}

.login-cover-brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.login-cover-copy {
  width: min(650px, 100%);
  margin: auto 0;
}

.login-cover-kicker {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.22em;
}

.login-cover-copy h1 {
  margin-top: 24px;
  font-size: clamp(39px, 4vw, 58px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.28;
}

.login-cover-copy p {
  max-width: 520px;
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.75;
}

.login-cover-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 13px;
}

.login-cover-features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-cover-features i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #a5d9ff;
  font-size: 11px;
  font-style: normal;
}

.login-pane {
  display: grid;
  place-items: center;
  padding: 54px clamp(44px, 5vw, 88px);
  background:
    radial-gradient(circle at 76% 10%, rgba(231, 240, 255, 0.8), transparent 30%),
    #fff;
}

.login-card-v2 {
  width: min(376px, 100%);
}

.login-card-v2 .login-heading h2 {
  margin-top: 0;
  color: #17243b;
  font-size: 36px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.login-card-v2 .login-primary-helper {
  margin-top: 11px;
  color: #7a879b;
  font-size: 13px;
  line-height: 1.7;
}

.login-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 26px;
  padding: 3px;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #f8faff;
}

.login-method-tabs[hidden],
.feishu-login-option[hidden],
.account-login-section[hidden] {
  display: none;
}

.login-method-tab {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #7a879b;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.login-method-tab > span {
  display: inline-flex;
  min-height: 19px;
  align-items: center;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  color: #276be3;
  background: #eaf2ff;
  font-size: 9px;
  font-weight: 760;
}

.login-method-tab:hover {
  color: #2868d9;
}

.login-method-tab.is-active {
  border-color: #2f71e9;
  color: #2162d8;
  background: #fff;
  box-shadow: 0 5px 14px rgba(36, 100, 216, 0.1);
}

.login-card-v2 .feishu-login-option {
  margin-top: 58px;
}

.login-card-v2 .feishu-login-button {
  min-height: 50px;
  grid-template-columns: 1fr auto;
  padding: 0 16px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #347cf1, #1f60df);
  box-shadow: 0 10px 24px rgba(34, 100, 225, 0.2);
  cursor: pointer;
  font: inherit;
}

.login-card-v2 .feishu-login-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.login-card-v2 .feishu-button-label {
  padding-left: 24px;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 25px 0 19px;
  color: #9aa5b5;
  font-size: 11px;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  background: #e5ebf4;
  content: "";
}

.account-login-section {
  margin-top: 27px;
  border: 0;
}

.account-login-section .admin-login-body {
  padding: 0;
}

.account-login-section #login-form {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

.login-field {
  display: grid;
  gap: 8px;
  color: #4c5c72;
  font-size: 12px;
  font-weight: 680;
}

.login-input-wrap {
  position: relative;
  display: flex;
  height: 50px;
  align-items: center;
  border: 1px solid #dce5f1;
  border-radius: 11px;
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.login-input-wrap:focus-within {
  border-color: #3a7af3;
  box-shadow: 0 0 0 4px rgba(58, 122, 243, 0.1);
}

.login-input-wrap > i {
  display: grid;
  width: 43px;
  place-items: center;
  color: #91a0b5;
  font-size: 12px;
  font-style: normal;
}

.login-input-wrap input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
  color: #203047;
  background: transparent;
  font-size: 14px;
}

.login-input-wrap input::placeholder {
  color: #aeb8c8;
}

.login-input-wrap .password-toggle {
  right: 8px;
}

.login-input-wrap.password-field input {
  padding-right: 58px;
}

.account-login-section .login-helper {
  min-height: 16px;
  margin: -5px 0 0;
  color: #9aa5b5;
  font-size: 10px;
  text-align: left;
}

.account-login-section .form-error {
  min-height: 18px;
  margin: -9px 0 -6px;
  font-size: 11px;
}

.login-submit-button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #347cf1, #1f60df);
  box-shadow: 0 10px 24px rgba(34, 100, 225, 0.2);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.login-submit-arrow {
  font-size: 18px;
}

.login-submit-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.login-card-v2 .login-footnote {
  margin-top: 26px;
  font-size: 10px;
}

.login-support-copy {
  margin-top: 25px;
  color: #2168dd;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.6;
  text-align: center;
}

.feishu-login-option + .account-login-section[hidden] ~ .login-support-copy {
  margin-top: 48px;
}

body[data-role="EMPLOYEE"] {
  --sidebar-width: 224px;
  background: #f6f9fd;
}

body[data-role="EMPLOYEE"] .sidebar {
  width: var(--sidebar-width);
  padding: 27px 17px 22px;
}

body[data-role="EMPLOYEE"] .sidebar-brand {
  gap: 11px;
  padding: 0 8px;
}

body[data-role="EMPLOYEE"] .sidebar-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 17px;
}

body[data-role="EMPLOYEE"] .sidebar-brand b {
  font-size: 17px;
  letter-spacing: 0;
}

body[data-role="EMPLOYEE"] .main-nav {
  gap: 6px;
  margin-top: 42px;
}

body[data-role="EMPLOYEE"] .nav-item {
  min-height: 48px;
  gap: 11px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 13px;
}

body[data-role="EMPLOYEE"] .nav-icon,
body[data-role="EMPLOYEE"] .nav-item.is-active .nav-icon {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

body[data-role="EMPLOYEE"] .content-wrap {
  width: min(1440px, 100%);
  padding: 28px clamp(22px, 3vw, 42px) 26px;
}

.employee-hero-v3 {
  position: relative;
  display: grid;
  min-height: 340px;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.7fr);
  gap: 34px;
  overflow: hidden;
  border: 1px solid #c8def8;
  border-radius: 20px;
  background:
    radial-gradient(circle at 84% 18%, rgba(76, 145, 239, 0.17), transparent 18rem),
    linear-gradient(115deg, #f8fbff 0%, #edf5ff 56%, #e8f2ff 100%);
  box-shadow: 0 14px 36px rgba(33, 83, 145, 0.07);
  padding: 32px 36px;
}

.employee-hero-v3::before,
.employee-hero-v3::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.employee-hero-v3::before {
  top: -100px;
  right: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(77, 146, 236, 0.13);
}

.employee-hero-v3::after {
  right: 170px;
  bottom: -150px;
  width: 250px;
  height: 250px;
  border: 44px solid rgba(255, 255, 255, 0.25);
}

.employee-hero-copy,
.employee-config-card {
  position: relative;
  z-index: 1;
}

.employee-hero-copy {
  align-self: center;
}

.employee-permission-badge {
  width: max-content;
  min-height: 28px;
  gap: 7px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid #cee1f8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.employee-permission-badge .connection-state-dot {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 3px rgba(16, 167, 102, 0.08);
}

.employee-permission-badge strong {
  color: #3171ce;
  font-size: 10px;
}

.employee-permission-badge .dashboard-status-pill {
  min-height: 19px;
  padding: 2px 6px;
  font-size: 8px;
}

.employee-hero-copy h2 {
  margin-top: 18px;
  color: #17243b;
  font-size: 20px;
  font-weight: 620;
}

.employee-hero-copy h1 {
  margin-top: 5px;
  color: #112b53;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 770;
  letter-spacing: -0.04em;
  line-height: 1.17;
}

.employee-hero-copy > p {
  max-width: 650px;
  margin-top: 15px;
  color: #60728b;
  font-size: 13px;
  line-height: 1.8;
}

.employee-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.employee-primary-action,
.employee-secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
}

.employee-primary-action {
  border: 1px solid #2476ea;
  color: #fff;
  background: linear-gradient(135deg, #2d7ff1, #1766de);
  box-shadow: 0 8px 18px rgba(36, 118, 239, 0.23);
}

.employee-primary-action:disabled,
.employee-config-actions button:disabled,
.employee-steps button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.employee-primary-action i {
  font-style: normal;
}

.employee-secondary-action {
  border: 1px solid #d4e0ee;
  color: #38516f;
  background: rgba(255, 255, 255, 0.84);
}

.employee-hero-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: #8996a8;
  font-size: 9px;
}

.employee-config-card {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 35px rgba(54, 91, 133, 0.1);
  padding: 16px 18px;
  backdrop-filter: blur(15px);
}

.employee-config-heading {
  display: grid;
  gap: 3px;
}

.employee-config-heading span,
.employee-panel-heading > div > span,
.employee-section-heading > div > span {
  color: #2476ef;
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.1em;
}

.employee-config-heading strong {
  color: #243751;
  font-size: 14px;
}

.employee-config-card .employee-qr-frame {
  width: 132px;
  height: 132px;
  margin: 8px auto;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
}

.employee-config-card .employee-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.employee-connection-link {
  padding: 8px 10px;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: #f8fafc;
}

.employee-connection-link > span {
  display: block;
  color: #8a97a7;
  font-size: 8px;
}

.employee-connection-link code {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #4f6077;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-config-actions {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 7px;
  margin-top: 7px;
}

.employee-config-actions button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  color: #2476ef;
  background: #edf5ff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 680;
}

.employee-config-actions button:first-child {
  border-color: #2476ef;
  color: #fff;
  background: #2476ef;
}

.employee-config-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: #758499;
  font-size: 10px;
  font-weight: 590;
  line-height: 1.5;
}

.employee-config-note > span {
  color: #1c9a66;
}

.employee-summary-grid-v3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 15px;
}

.employee-summary-v3 {
  min-height: 124px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border: 1px solid #e1e8f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(36, 63, 99, 0.045);
}

.employee-summary-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 760;
}

.employee-summary-icon.blue {
  color: #2476ef;
  background: #eaf3ff;
}

.employee-summary-icon.green {
  color: #159666;
  background: #e8f7f1;
}

.employee-summary-icon.violet {
  color: #6f55d7;
  background: #f0edff;
}

.employee-summary-v3 > div {
  min-width: 0;
  flex: 1;
}

.employee-summary-v3 p {
  color: #7a8799;
  font-size: 10px;
  font-weight: 650;
}

.employee-summary-v3 strong {
  display: flex;
  align-items: baseline;
  margin-top: 5px;
  color: #16243b;
  font-size: 23px;
  font-weight: 730;
  letter-spacing: -0.035em;
}

.employee-summary-v3 strong small {
  color: #7c8999;
  font-size: 10px;
  font-weight: 550;
}

.employee-summary-v3 .employee-date-value {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.employee-summary-v3 .progress-track {
  height: 5px;
  margin-top: 8px;
}

.employee-summary-v3 > div > small {
  display: block;
  margin-top: 7px;
  color: #929dac;
  font-size: 9px;
}

.employee-content-grid-v3 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.72fr);
  gap: 15px;
  margin-top: 15px;
}

.employee-panel-v3,
.employee-clients-v3 {
  border: 1px solid #e1e8f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(36, 63, 99, 0.045);
  padding: 21px;
}

.employee-panel-v3,
.employee-clients-v3,
.employee-support-bar {
  scroll-margin-top: 20px;
}

.employee-panel-heading,
.employee-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.employee-panel-heading h2,
.employee-section-heading h2 {
  margin-top: 5px;
  color: #1b2940;
  font-size: 17px;
  font-weight: 710;
  letter-spacing: -0.02em;
}

.employee-panel-heading p,
.employee-section-heading p {
  margin-top: 5px;
  color: #8793a4;
  font-size: 10px;
  line-height: 1.55;
}

.employee-panel-heading > em {
  padding: 6px 9px;
  border: 1px solid #e1e8f1;
  border-radius: 999px;
  color: #748196;
  background: #f9fbfd;
  font-size: 9px;
  font-style: normal;
}

.employee-platform-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 18px;
  padding: 5px;
  border-radius: 11px;
  background: #f5f7fa;
}

.employee-platform-tabs span {
  display: grid;
  height: 33px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #778598;
  font-size: 9px;
  font-weight: 630;
}

.employee-platform-tabs span:first-child {
  border-color: #dce5f0;
  color: #2476ef;
  background: #fff;
  box-shadow: 0 3px 10px rgba(49, 71, 99, 0.07);
}

.employee-steps {
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.employee-steps li {
  position: relative;
  display: grid;
  min-height: 68px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf1f5;
}

.employee-steps li:first-child {
  border-top: 0;
}

.employee-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #cfe1f7;
  border-radius: 9px;
  color: #2476ef;
  background: #f0f6ff;
  font-size: 11px;
  font-weight: 720;
}

.employee-steps li > span.done {
  border-color: #d0ebdf;
  color: #159666;
  background: #e8f7f1;
}

.employee-steps strong {
  color: #304058;
  font-size: 11px;
}

.employee-steps p {
  margin-top: 4px;
  color: #8a96a6;
  font-size: 9px;
  line-height: 1.5;
}

.employee-steps button {
  border: 0;
  color: #2476ef;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 680;
}

.employee-steps li > em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #8b97a7;
  background: #f3f6f9;
  font-size: 8px;
  font-style: normal;
}

.employee-home-help {
  margin-top: 0;
  padding: 21px;
}

.employee-home-help details:first-of-type {
  margin-top: 15px;
}

.employee-home-help details > p {
  padding-right: 4px;
}

.employee-clients-v3 {
  margin-top: 15px;
}

.employee-safety-tag {
  padding: 6px 9px;
  border: 1px solid #d6ebe0;
  border-radius: 999px;
  color: #43816a;
  background: #f2faf6;
  font-size: 9px;
  font-weight: 650;
}

body[data-role="EMPLOYEE"] .employee-clients-v3 .subscription-device-grid {
  gap: 12px;
  margin-top: 18px;
}

body[data-role="EMPLOYEE"] .employee-clients-v3 .subscription-device-card {
  min-height: 196px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 15px;
  border-radius: 13px;
  text-align: left;
}

body[data-role="EMPLOYEE"] .employee-clients-v3 .subscription-device-card h3 {
  margin-top: 8px;
}

body[data-role="EMPLOYEE"] .employee-clients-v3 .subscription-device-actions {
  margin-top: auto;
}

.employee-support-bar {
  min-height: 88px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  padding: 13px 18px;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 95% 20%, rgba(105, 167, 249, 0.27), transparent 13rem),
    linear-gradient(120deg, #1c64d2, #2478e9 72%, #3989ef);
  box-shadow: 0 12px 26px rgba(31, 104, 213, 0.16);
}

.employee-support-bar > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 760;
}

.employee-support-bar > div {
  display: grid;
  gap: 2px;
}

.employee-support-bar small {
  color: #bedbff;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.employee-support-bar strong {
  font-size: 14px;
}

.employee-support-bar p {
  color: #d9eaff;
  font-size: 9px;
}

.employee-support-bar button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 9px;
  color: #1d67d5;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 690;
}

@media (max-width: 1050px) {
  .login-stage-v2 {
    grid-template-columns: 1fr 0.95fr;
  }

  .login-cover {
    padding-inline: 42px;
  }

  .employee-hero-v3 {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    padding: 28px;
  }

  .employee-content-grid-v3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .login-view {
    padding: 18px;
  }

  .login-stage-v2 {
    min-height: calc(100vh - 36px);
    grid-template-columns: 1fr;
  }

  .login-cover {
    min-height: 270px;
    padding: 34px 38px;
  }

  .login-cover-copy {
    margin-top: 46px;
  }

  .login-cover-copy h1 {
    margin-top: 14px;
    font-size: 34px;
  }

  .login-cover-copy p,
  .login-cover-features {
    display: none;
  }

  .login-pane {
    padding: 44px 28px 48px;
  }

  body[data-role="EMPLOYEE"] .content-wrap {
    padding: 18px 18px 28px;
  }

  .employee-hero-v3 {
    grid-template-columns: 1fr;
  }

  .employee-config-card {
    width: min(100%, 430px);
    justify-self: center;
  }

  .employee-summary-grid-v3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .login-view {
    padding: 0;
  }

  .login-stage-v2 {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .login-cover {
    min-height: 185px;
    padding: 26px 24px;
  }

  .login-cover-brand small,
  .login-cover-kicker {
    display: none;
  }

  .login-cover-copy {
    margin-top: 27px;
  }

  .login-cover-copy h1 {
    margin-top: 0;
    font-size: 27px;
  }

  .login-pane {
    padding: 34px 21px 42px;
  }

  .login-card-v2 .mobile-brand {
    display: none;
  }

  .login-card-v2 .login-heading h2 {
    font-size: 30px;
  }

  .employee-hero-v3 {
    padding: 23px 19px;
    border-radius: 17px;
  }

  .employee-hero-copy h1 {
    font-size: 29px;
  }

  .employee-hero-actions,
  .employee-panel-heading,
  .employee-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-hero-actions button {
    width: 100%;
  }

  .employee-config-card {
    padding: 15px;
  }

  .employee-platform-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .employee-steps li {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 10px 0;
  }

  .employee-steps button,
  .employee-steps li > em {
    width: max-content;
    grid-column: 2;
    padding-left: 0;
  }

  .employee-panel-v3,
  .employee-clients-v3 {
    padding: 17px;
    border-radius: 14px;
  }

  .employee-support-bar {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .employee-support-bar button {
    width: 100%;
    grid-column: 1 / -1;
  }
}

body[data-role="ADMIN"] .admin-insight-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
}

body[data-role="ADMIN"] .admin-node-panel {
  min-height: 390px;
}

.admin-node-list {
  display: grid;
  max-height: 360px;
  gap: 9px;
  margin-top: 11px;
  overflow: auto;
  padding-right: 2px;
}

.admin-node-loading {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px dashed #dce5f1;
  border-radius: 11px;
  color: #8a96a8;
  background: #fbfcff;
  font-size: 10px;
  text-align: center;
}

.admin-node-card {
  padding: 12px;
  border: 1px solid #e4eaf3;
  border-left: 3px solid #24a06b;
  border-radius: 11px;
  background: #fff;
}

.admin-node-card.offline,
.admin-node-card.disabled {
  border-left-color: #df6c57;
  background: #fffafa;
}

.admin-node-card.checking {
  border-left-color: #dc9a33;
  background: #fffdf8;
}

.admin-node-card-heading,
.admin-node-card-heading > div,
.admin-node-card-heading > div > span:last-child {
  display: flex;
  align-items: center;
}

.admin-node-card-heading {
  justify-content: space-between;
  gap: 12px;
}

.admin-node-card-heading > div {
  min-width: 0;
  gap: 9px;
}

.admin-node-card-heading > div > span:last-child {
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.admin-node-country {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #f0f4fa;
  font-size: 15px;
}

.admin-node-card-heading b {
  overflow: hidden;
  color: #26354c;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-node-card-heading small {
  color: #909bac;
  font-size: 8px;
}

.admin-node-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #17885b;
  background: #e8f8f1;
  font-size: 8px;
  font-style: normal;
  font-weight: 740;
  white-space: nowrap;
}

.admin-node-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.admin-node-status.offline,
.admin-node-status.disabled {
  color: #c55b48;
  background: #fff0ed;
}

.admin-node-status.checking {
  color: #b77920;
  background: #fff5df;
}

.admin-node-stats {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 10px;
  margin-top: 10px;
}

.admin-node-stats > span {
  display: grid;
  gap: 3px;
}

.admin-node-stats small {
  color: #929dae;
  font-size: 8px;
}

.admin-node-stats strong {
  overflow: hidden;
  color: #354258;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-node-detail-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 7px;
  color: #8a96a8;
  font-size: 7.5px;
}

.admin-node-traffic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.admin-node-traffic > span {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f8;
}

.admin-node-traffic i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b74eb, #6aa4f5);
}

.admin-node-traffic small {
  color: #8390a4;
  font-size: 8px;
}

.admin-node-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #edf1f6;
}

.admin-node-card-footer > span {
  color: #69778d;
  font-size: 8px;
}

.admin-node-card-footer > span.warning {
  color: #be6f19;
  font-weight: 700;
}

.admin-node-card-footer button {
  padding: 0;
  border: 0;
  color: #2468ea;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  font-weight: 680;
}

.admin-node-sync-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
  margin-top: 10px;
  color: #8793a5;
  font-size: 8px;
}

.admin-node-sync-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.node-contract-modal-card {
  width: min(460px, 100%);
}

@media (max-width: 980px) {
  body[data-role="ADMIN"] .admin-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-node-stats {
    grid-template-columns: 1fr;
  }

  .admin-node-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
