:root {
  --surface: #fff;
  --surface-soft: #f7f9fb;
  --surface-hover: #edf3f5;
  --group: #eaf0f4;
  --ink: #17283b;
  --muted: #758291;
  --line: #e0e6ec;
  --paper: #f4f6f8;
  --nav: #000;
  --teal: #293b8f;
  --chart-1: #293b8f;
  --chart-2: #586bb8;
  --chart-3: #95a3d4;
  --chart-4: #bdc7e6;
  --chart-5: #e1e5f3;
  --chart-6: #3d4d86;
  --code: #f6f8fa;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --surface: #171a1e;
  --surface-soft: #1d2127;
  --surface-hover: #252c33;
  --group: #252b32;
  --ink: #e3e8ed;
  --muted: #9ba7b3;
  --line: #30363e;
  --paper: #0e1115;
  --teal: #9aa9f0;
  --green: #70c5a1;
  --amber: #e5b15f;
  --red: #e98290;
  --chart-1: #293b8f;
  --chart-2: #6378c5;
  --chart-3: #98a6d6;
  --chart-4: #586b9f;
  --chart-5: #384673;
  --chart-6: #c8d0ee;
  --code: #101419;
  color-scheme: dark;
}
body {
  background: var(--paper);
  color: var(--ink);
}
button,
input,
select,
textarea {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
button:hover {
  background: var(--surface-hover);
}
button.primary {
  background: #293b8f;
  color: #fff;
  border-color: #293b8f;
}
button.primary:hover {
  background: #203073;
}
button.danger {
  background: #ba4551;
  color: white;
  border-color: #ba4551;
}
button.ghost {
  background: transparent;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.sidebar,
.login-story {
  background: #000;
}
.nav-btn {
  background: transparent;
  color: #a9bbc9;
}
.nav-btn:hover {
  background: #191919;
}
.nav-btn.active {
  background: #293b8f;
  color: #ffffff;
}
.side-bottom {
  border-color: #222;
}
.brand .eyebrow,
.login-story .eyebrow {
  color: #9ca9b5;
}
.nav-label {
  color: #77818b;
}
.topbar,
.stat,
.panel,
.modal,
.login {
  background: var(--surface);
}
.content {
  max-width: 1800px;
}
.panel,
.stat {
  border-color: var(--line);
}
.topbar,
.panel-head,
.filters,
.modal-head,
.modal-foot,
.table-footer,
.setting {
  border-color: var(--line);
}
.stat-foot,
.stat-label,
.muted,
.caption,
.secondary,
.subheading,
.page-heading p,
.panel-head p {
  color: var(--muted);
}
.page-heading {
  flex-wrap: wrap;
}
.page-heading .actions {
  flex-wrap: wrap;
}
.heading-eyebrow {
  margin-bottom: 9px;
}
.topbar {
  height: auto;
  min-height: 73px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.crumb {
  min-width: 0;
}
.top-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.theme-toggle {
  font-size: 11px;
  white-space: nowrap;
  padding: 7px 11px;
  min-width: 75px;
}
.avatar {
  background: var(--group);
  color: var(--ink);
}
.search input {
  background: var(--surface-soft);
}
.columns,
.settings-grid,
.firmware-summary {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.columns > *,
.settings-grid > *,
.firmware-summary > * {
  min-width: 0;
}
.filters {
  flex-wrap: wrap;
}
.table-wrap {
  max-width: 100%;
  min-width: 0;
}
th {
  background: var(--surface-soft);
  color: var(--muted);
}
td {
  border-color: var(--line);
}
tr.device-row:hover {
  background: var(--surface-soft);
}
table {
  table-layout: auto;
}
.device-name {
  color: var(--ink);
}
.client-container + .client-container {
  border-top: 1px solid var(--line);
}
.client-banner,
.project-banner {
  width: 100%;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  min-height: 48px;
}
.client-banner {
  padding: 14px 22px;
  background: var(--group);
  font-size: 13px;
  font-weight: 650;
}
.project-banner {
  padding: 10px 24px 10px 35px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.project-container + .project-container {
  border-top: 1px solid var(--line);
}
.client-banner:hover,
.project-banner:hover {
  background: var(--surface-hover);
}
.chevron {
  width: 16px;
  flex-shrink: 0;
  font-size: 21px;
  line-height: 16px;
  color: var(--muted);
}
.group-meta {
  margin-left: auto;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}
.column-filter {
  border: 0;
  padding: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  background: none !important;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.advanced-filters {
  padding: 16px 22px;
  background: var(--surface-soft);
  display: flex;
  gap: 16px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.advanced-filters label {
  margin: 0 0 6px;
}
.advanced-filters select {
  min-width: 160px;
  font-size: 12px;
}
.filter-selected {
  border-color: var(--teal);
  color: var(--teal);
}
#filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.device-table {
  width: 100%;
}
.device-table th,
.device-table td {
  padding-left: 20px;
  padding-right: 20px;
}
.device-table th:first-child,
.device-table td:first-child {
  padding-left: 34px;
}
.badge {
  background: var(--group);
  color: var(--muted);
}
.badge.active,
.badge.online {
  background: #e8f5f0;
  color: #237a63;
}
.badge.warning {
  background: #fff5df;
  color: #9a6b1b;
}
.badge.suspended {
  background: #fceef0;
  color: #a83e4d;
}
:root[data-theme="dark"] .badge.active,
:root[data-theme="dark"] .badge.online {
  background: #173b32;
  color: #92d9bc;
}
:root[data-theme="dark"] .badge.warning {
  background: #3a2d17;
  color: #e5bb72;
}
:root[data-theme="dark"] .badge.suspended {
  background: #42222b;
  color: #ee9daa;
}
.activity {
  border-color: var(--line);
}
.activity-symbol {
  background: var(--surface-soft);
  color: var(--muted);
}
.family-tabs {
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
}
.family-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--surface);
  font-size: 12px;
}
.family-tab > span {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 4px 7px;
  background: var(--group);
  border-radius: 4px;
}
.family-tab small {
  font-size: 10px;
  color: var(--muted);
}
.family-tab.active {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--surface-soft);
}
.workflow-panel {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(160px, 1fr));
  gap: 22px;
  align-items: center;
}
.workflow-heading h2 {
  margin-top: 8px;
  font-size: 18px;
}
.workflow-step {
  display: flex;
  gap: 12px;
  align-items: center;
}
.workflow-step > span {
  border: 1px solid var(--line);
  color: var(--teal);
  font:
    11px Consolas,
    monospace;
  border-radius: 50%;
  height: 31px;
  width: 31px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.workflow-step strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.workflow-step small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.firmware-summary {
  display: grid;
  gap: 24px;
}
.active-release {
  display: flex;
  gap: 20px;
  padding: 26px;
  align-items: center;
  min-width: 0;
}
.release-family-icon {
  height: 66px;
  width: 66px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 2px;
  flex-shrink: 0;
}
.active-release-info {
  flex: 1;
  min-width: 0;
}
.active-version .version-number {
  font-size: 25px;
  letter-spacing: -0.6px;
  font-weight: 600;
}
.active-version .secondary {
  display: inline;
  margin-left: 8px;
}
.firmware-filename {
  display: block;
  font:
    11px/1.7 Consolas,
    monospace;
  color: var(--muted);
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.release-badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.version-number {
  font-weight: 600;
}
.manifest-body {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr);
  gap: 28px;
}
.manifest-code,
.changelog {
  background: var(--code);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  font:
    12px/1.8 Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  min-width: 0;
}
.verification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.verification-row:last-child {
  border: 0;
}
.archive-section summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  padding: 18px 22px;
  background: var(--surface-soft);
}
.archive-section summary span {
  float: right;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}
.archive-note {
  font-size: 11px;
  color: var(--muted);
  padding: 15px 22px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.release-table {
  width: 100%;
  table-layout: fixed;
}
.release-table th:first-child {
  width: 38%;
}
.release-table th:nth-child(2) {
  width: 20%;
}
.release-table th:nth-child(3) {
  width: 17%;
}
.release-table th:nth-child(4) {
  width: 12%;
}
.release-table th:last-child {
  width: 13%;
}
.release-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.release-table th,
.release-table td {
  padding-left: 18px;
  padding-right: 18px;
}
.release-table .firmware-title {
  max-width: none;
  white-space: normal;
  overflow: visible;
}
.release-table .secondary {
  font-size: 9px;
  line-height: 1.7;
}
.library-section-title {
  padding: 13px 22px;
  font-size: 12px;
  background: var(--surface-soft);
  font-weight: 600;
}
.notes-heading {
  margin-top: 20px;
}
.hash {
  word-break: break-all;
}
.modal-subtitle {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.modal-head,
.modal-body,
.modal-foot {
  min-width: 0;
}
.modal-foot {
  flex-wrap: wrap;
}
.modal-foot button {
  max-width: 100%;
}
.modal-body input,
.modal-body select,
.modal-body textarea {
  background: var(--surface);
  color: var(--ink);
}
.modal .detail-grid strong {
  overflow-wrap: anywhere;
}
.caption,
.table-footer {
  overflow-wrap: anywhere;
}
.lock {
  background: var(--group);
  color: var(--teal);
}
.error {
  background: #fceef0;
  color: #a83e4d;
}
:root[data-theme="dark"] .error {
  background: #42222b;
  color: #ee9daa;
}
.demo-btn {
  background: var(--surface-soft);
}
.separator:before,
.separator:after {
  background: var(--line);
}
.login-form-wrap {
  position: relative;
}
.login-theme {
  position: absolute;
  top: 30px;
  right: 35px;
}
.story-content h1 {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 550;
  letter-spacing: -1.5px;
}
.login-story {
  padding-bottom: 45px;
}
.orbit,
.orbit:before {
  border-color: #252525;
}
.orbit:after {
  background: #95a3d4;
}
.login-story p {
  color: #a4adb5;
}
.login-form > p {
  color: var(--muted);
}
.login-form .forgot {
  color: var(--teal);
}
.users-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.users-table .mono {
  font-size: 11px;
}
.users-table {
  table-layout: fixed;
}
.users-table th:nth-child(1) {
  width: 18%;
}
.users-table th:nth-child(2) {
  width: 16%;
}
.users-table th:nth-child(3) {
  width: 25%;
}
.users-table th:nth-child(4) {
  width: 11%;
}
.users-table th:nth-child(5) {
  width: 12%;
}
.users-table th:last-child {
  width: 18%;
}
.event-detail {
  white-space: normal;
  max-width: 500px;
  overflow-wrap: anywhere;
}
.activity-table td:nth-child(3) {
  white-space: normal;
}
.setting > div {
  min-width: 0;
}
.setting p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1450px) {
  .workflow-panel {
    grid-template-columns: 1fr 1fr;
  }
  .workflow-heading {
    grid-column: 1/-1;
  }
  .workflow-step:last-child {
    grid-column: auto;
  }
  .device-table th,
  .device-table td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .device-table th:first-child,
  .device-table td:first-child {
    padding-left: 24px;
  }
  .firmware-summary {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .active-release {
    gap: 12px;
    padding: 22px;
  }
  .release-family-icon {
    height: 48px;
    width: 48px;
  }
  .active-release .small {
    align-self: flex-end;
  }
  .users-table th,
  .users-table td {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 1100px) {
  .firmware-summary,
  .columns,
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .manifest-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .manifest-verification {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .distribution {
    max-width: 500px;
  }
  .workflow-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .workflow-heading {
    grid-column: 1/-1;
  }
  .device-table td,
  .device-table th {
    padding-left: 11px;
    padding-right: 11px;
  }
  .device-table th:first-child,
  .device-table td:first-child {
    padding-left: 18px;
  }
  .device-table .mono {
    font-size: 10px;
  }
  .release-table th:first-child {
    width: 32%;
  }
  .release-table th:nth-child(2) {
    width: 22%;
  }
  .release-table th:nth-child(3) {
    width: 19%;
  }
  .release-table th:nth-child(4) {
    width: 12%;
  }
  .release-table th:last-child {
    width: 15%;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .crumb {
    font-size: 11px;
  }
  .top-right {
    gap: 8px;
  }
  .page-heading {
    gap: 15px;
  }
  .page-heading .actions {
    flex-direction: row;
    align-items: center;
  }
  .page-heading .actions button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .family-tabs {
    gap: 8px;
  }
  .family-tab {
    flex: 1;
    padding: 12px;
    font-size: 11px;
    gap: 6px;
  }
  .family-tab small {
    display: block;
    width: 100%;
  }
  .workflow-panel {
    padding: 18px;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
  }
  .workflow-step {
    min-width: 0;
  }
  .workflow-heading {
    grid-column: auto;
  }
  .advanced-filters {
    padding: 15px;
    gap: 12px;
  }
  .advanced-filters > div {
    flex: 1;
    min-width: 145px;
  }
  .advanced-filters select {
    width: 100%;
    min-width: 0;
  }
  .client-banner {
    padding: 13px 16px;
  }
  .project-banner {
    padding: 11px 18px 11px 25px;
  }
  .group-meta {
    font-size: 9px;
  }
  .active-release {
    flex-wrap: wrap;
  }
  .active-release-info {
    min-width: 190px;
  }
  .active-release > .small {
    margin-left: auto;
  }
  .manifest-body {
    padding: 16px;
    gap: 15px;
  }
  .manifest-verification {
    grid-template-columns: 1fr;
  }
  .manifest-code {
    font-size: 11px;
    padding: 15px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
  .panel-head > button {
    font-size: 11px;
  }
  .login-story {
    min-height: 310px;
    padding: 30px;
  }
  .story-content {
    margin-top: 35px;
  }
  .story-content h1 {
    font-size: 34px;
  }
  .story-content .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .login-form-wrap {
    padding-top: 70px;
  }
  .login-theme {
    top: 18px;
    right: 22px;
  }
  .login-story .orbit {
    display: none;
  }
  .modal-foot {
    padding: 15px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head {
    padding: 18px 20px;
  }
  .sidebar {
    background: #000;
  }
  .sidebar nav {
    gap: 3px;
  }
  .nav-btn {
    padding: 9px 7px;
  }
  .settings-grid {
    gap: 0;
  }
}
@media (max-width: 640px) {
  .device-table,
  .release-table,
  .users-table {
    display: block;
    table-layout: auto;
  }
  .device-table thead,
  .release-table thead,
  .users-table thead {
    display: none;
  }
  .device-table tbody,
  .release-table tbody,
  .users-table tbody {
    display: block;
  }
  .device-table tr,
  .release-table tr,
  .users-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 12px 18px;
    gap: 9px 16px;
    border-bottom: 1px solid var(--line);
  }
  .device-table td,
  .release-table td,
  .users-table td {
    display: block;
    border: 0 !important;
    padding: 0 !important;
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 0;
    font-size: 11px;
  }
  .device-table td:first-child,
  .release-table td:first-child,
  .users-table td:first-child {
    grid-column: 1/-1;
  }
  .device-table td:last-child,
  .release-table td:last-child,
  .users-table td:last-child {
    grid-column: 1/-1;
    text-align: right;
  }
  .device-table td:nth-child(2):before {
    content: "MAC ADDRESS";
  }
  .device-table td:nth-child(3):before {
    content: "CONNECTION";
  }
  .device-table td:nth-child(4):before {
    content: "FIRMWARE";
  }
  .device-table td:nth-child(5):before {
    content: "LICENSE";
  }
  .release-table td:nth-child(2):before {
    content: "CHANNEL";
  }
  .release-table td:nth-child(3):before {
    content: "VERSION / BUILD";
  }
  .release-table td:nth-child(4):before {
    content: "SIZE";
  }
  .users-table td:nth-child(2):before {
    content: "USERNAME";
  }
  .users-table td:nth-child(3):before {
    content: "RECOVERY EMAIL";
  }
  .users-table td:nth-child(4):before {
    content: "ROLE";
  }
  .users-table td:nth-child(5):before {
    content: "ACCESS";
  }
  .device-table td:before,
  .release-table td:before,
  .users-table td:before {
    display: block;
    color: var(--muted);
    font:
      8px/1.6 "Segoe UI",
      sans-serif;
    letter-spacing: 0.7px;
    margin-bottom: 3px;
  }
  .release-table td:first-child .secondary {
    font-size: 9px;
  }
  .device-table .device-name {
    font-size: 13px;
  }
  .device-table .mono {
    font-size: 10px;
  }
  .release-table .firmware-title {
    font-size: 12px;
  }
  .activity-table {
    min-width: 600px;
  }
  .family-tab {
    align-content: flex-start;
  }
  .active-version .version-number {
    font-size: 23px;
  }
  .active-version .secondary {
    display: block;
    margin: 2px 0;
  }
  .active-release-info {
    min-width: 0;
  }
  .release-family-icon {
    display: none;
  }
  .group-meta {
    white-space: normal;
    max-width: 95px;
    text-align: right;
  }
  .client-banner {
    gap: 8px;
  }
  .project-banner {
    gap: 8px;
  }
  .distribution {
    gap: 20px;
  }
  .donut {
    width: 110px;
    height: 110px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 28px;
  }
  .stat-foot {
    font-size: 10px;
  }
  .top-right .account {
    display: none;
  }
  .setting {
    gap: 12px;
    flex-wrap: wrap;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-grid strong {
    font-size: 11px;
  }
  .advanced-filters > div {
    min-width: 130px;
  }
  .release-table .empty {
    grid-column: 1/-1;
  }
  .page-heading h1 {
    font-size: 25px;
  }
}

@media (min-width: 1101px) and (max-width: 1450px) {
  .workflow-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .workflow-heading {
    grid-column: 1/-1;
  }
}
@media (max-width: 640px) {
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }
  .nav-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 9px 5px;
  }
}
.chevron {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  line-height: normal;
}
.chevron svg {
  display: block;
}
.shop-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 10px;
  border-color: #333;
  background: #101010;
  color: #a9bbc9;
  font-size: 11px;
}
.shop-link:disabled {
  opacity: 1;
  cursor: default;
}
.hosting-panel {
  margin-top: 24px;
}
.hosting-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hosting-fields label {
  margin-top: 0;
}
.hosting-fields input,
.hosting-fields select {
  width: 100%;
}
.hosting-wide {
  grid-column: 1/-1;
}
.hosting-panel .caption {
  margin: 20px 0;
  line-height: 1.7;
}
.hosting-panel .actions {
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .hosting-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .hosting-wide {
    grid-column: auto;
  }
  .side-bottom {
    display: block;
  }
  .shop-link {
    margin: 12px 0 0;
  }
}
.device-table {
  table-layout: fixed;
}
.device-table th:nth-child(1) {
  width: 23%;
}
.device-table th:nth-child(2) {
  width: 21%;
}
.device-table th:nth-child(3) {
  width: 14%;
}
.device-table th:nth-child(4) {
  width: 10%;
}
.device-table th:nth-child(5) {
  width: 12%;
}
.device-table th:nth-child(6) {
  width: 11%;
}
.device-table th:nth-child(7) {
  width: 9%;
}
.device-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.device-table td:last-child {
  padding-left: 8px;
  padding-right: 12px;
}
.device-table td:last-child button {
  white-space: nowrap;
}
.renewal-date {
  white-space: nowrap;
  font:
    10px Consolas,
    monospace;
}
.renewal-edit {
  display: flex;
  gap: 12px;
}
.renewal-edit input {
  flex: 1;
  min-width: 0;
}
.notification-panel {
  margin-top: 24px;
}
.notification-panel input:not([type="checkbox"]) {
  width: 100%;
}
.reminder-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.notification-panel .caption {
  line-height: 1.7;
  margin: 18px 0;
}
.import-preview-list {
  max-height: 340px;
  overflow: auto;
}
.import-preview-list > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.import-preview-list span {
  color: var(--muted);
}
@media (min-width: 641px) and (max-width: 1100px) {
  .device-table {
    min-width: 920px;
  }
  .table-wrap {
    overflow-x: auto;
  }
}
@media (max-width: 640px) {
  .device-table {
    table-layout: auto;
  }
  .device-table td:nth-child(6):before {
    content: "RENEWAL";
  }
  .renewal-edit {
    flex-wrap: wrap;
  }
  .import-preview-list > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

input[type="checkbox"] {
  accent-color: #293b8f;
}
.dot {
  background: #293b8f;
}
.discard-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 20px;
}
.discard-dialog {
  width: 480px;
  max-width: 100%;
}
.discard-dialog p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.client-banner {
  background: #293b8f;
  color: #fff;
}
.client-banner:hover {
  background: #203073;
}
.client-banner .group-meta,
.client-banner .chevron {
  color: #e1e6ff;
}
.project-banner {
  background: #e4e8f7;
  color: #293b8f;
  border-bottom-color: #cbd3ef;
}
.project-banner:hover {
  background: #d6ddf3;
}
.project-banner .group-meta,
.project-banner .chevron {
  color: #485a99;
}
:root[data-theme="dark"] .project-banner {
  background: #4659a1;
  color: #fff;
  border-bottom-color: #586bb8;
}
:root[data-theme="dark"] .project-banner:hover {
  background: #5165b0;
}
:root[data-theme="dark"] .project-banner .group-meta,
:root[data-theme="dark"] .project-banner .chevron {
  color: #e1e6ff;
}
.account-policy {
  margin-top: 24px;
}
.account-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.users-table th:nth-child(1) {
  width: 23%;
}
.users-table th:nth-child(2) {
  width: 35%;
}
.users-table th:nth-child(3) {
  width: 12%;
}
.users-table th:nth-child(4) {
  width: 14%;
}
.users-table th:last-child {
  width: 16%;
}
@media (max-width: 640px) {
  .users-table td:nth-child(2):before {
    content: "EMAIL";
  }
  .users-table td:nth-child(3):before {
    content: "ROLE";
  }
  .users-table td:nth-child(4):before {
    content: "ACCESS";
  }
  .users-table td:last-child:before {
    content: "";
  }
}
.password-field {
  position: relative;
}
.password-field input {
  width: 100%;
  padding-right: 48px !important;
}
.password-eye {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px;
  border: 0;
  background: transparent !important;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.password-eye:hover {
  color: var(--teal);
}
.password-eye svg {
  display: block;
}
.password-eye [hidden] {
  display: none;
}
.device-selection {
  display: flex;
  align-items: center;
  gap: 10px;
}
.device-selection > input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  cursor: pointer;
}
.device-selection > div {
  min-width: 0;
}
.selection-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.selection-toolbar .caption {
  margin: 0;
  font-size: 10px;
}
#bulk-actions {
  white-space: nowrap;
}
.column-sort {
  width: 100%;
  justify-content: space-between;
  white-space: normal;
  text-align: left;
}
.column-sort span {
  font-size: 14px;
  flex-shrink: 0;
}
.column-sort:hover {
  color: var(--teal);
}
th[aria-sort="ascending"] .column-sort,
th[aria-sort="descending"] .column-sort {
  color: var(--teal);
}
.group-bar {
  display: flex;
  align-items: center;
}
.client-group-bar {
  background: #293b8f;
}
.project-group-bar {
  background: #e4e8f7;
}
.group-bar > .client-banner,
.group-bar > .project-banner {
  flex: 1;
  min-width: 0;
  width: auto;
}
.group-select {
  flex-shrink: 0;
  margin: 0 14px 0 0;
  padding: 6px 9px;
  font-size: 10px;
  background: transparent;
  border-color: #bfc9ed;
  color: #293b8f;
}
.client-group-bar .group-select {
  color: #fff;
  border-color: #8392ce;
}
.client-group-bar .group-select:hover {
  background: #203073;
}
.project-group-bar .group-select:hover {
  background: #d6ddf3;
}
:root[data-theme="dark"] .project-group-bar {
  background: #4659a1;
}
:root[data-theme="dark"] .project-group-bar .group-select {
  color: #fff;
  border-color: #a6b2de;
}
:root[data-theme="dark"] .project-group-bar .group-select:hover {
  background: #5165b0;
}

.licensing-content {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}
.licensing-content .page-heading {
  flex-shrink: 0;
  margin-bottom: 16px;
  gap: 12px;
}
.licensing-content .page-heading h1 {
  font-size: 25px;
}
.licensing-content .heading-eyebrow {
  display: none;
}
.licensing-content .page-heading p {
  margin-top: 5px;
}
.licensing-content .stats {
  flex-shrink: 0;
  gap: 12px;
  margin-bottom: 16px;
}
.licensing-content .stat {
  padding: 12px 16px;
}
.licensing-content .stat-label {
  font-size: 11px;
}
.licensing-content .stat-value {
  font-size: 25px;
  margin: 5px 0;
}
.licensing-content .stat-foot {
  font-size: 10px;
}

.licensing-content .fleet-panel > .panel-head {
  padding: 13px 20px;
  flex-shrink: 0;
}
.licensing-content .fleet-panel > .filters {
  padding: 11px 20px;
  flex-shrink: 0;
}
.licensing-content .advanced-filters {
  flex-shrink: 0;
  padding: 10px 20px;
}
.licensing-content .selection-toolbar {
  padding: 7px 20px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .licensing-content {
    padding: 12px;
  }
  .licensing-content .page-heading h1 {
    font-size: 22px;
  }
  .licensing-content .page-heading {
    margin-bottom: 10px;
  }
  .licensing-content .stats {
    gap: 8px;
    margin-bottom: 10px;
  }
  .licensing-content .stat {
    padding: 9px 11px;
  }
  .licensing-content .stat-value {
    font-size: 22px;
  }
  .licensing-content .stat-foot {
    display: none;
  }
  .licensing-content .fleet-panel > .panel-head,
  .licensing-content .fleet-panel > .filters {
    padding: 9px 12px;
  }
  .licensing-content .selection-toolbar {
    padding: 6px 12px;
  }
  .selection-toolbar .caption {
    display: none;
  }
}
@media (max-width: 640px) {
  .licensing-content .page-heading p {
    display: none;
  }
  .licensing-content .page-heading .actions {
    gap: 5px;
  }
  .licensing-content .page-heading .actions button {
    padding: 6px;
    font-size: 10px;
  }
}

.license-server-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  font-size: 12px;
}
.license-server-banner small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.license-server-banner > span {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.license-server-banner .actions {
  gap: 8px;
}
.license-server-banner button {
  font-size: 11px;
  padding: 7px 10px;
}
@media (max-width: 760px) {
  .license-server-banner {
    padding: 8px 12px;
    gap: 8px;
  }
  .license-server-banner > span {
    margin-left: 0;
  }
}

.license-server-banner.needs-save,
.license-server-banner.needs-restart {
  background: #eef1ff;
  border-bottom-color: #9ba9df;
  box-shadow: inset 4px 0 0 #293b8f;
}
.license-server-banner.needs-save > span,
.license-server-banner.needs-restart > span {
  color: #293b8f;
  font-weight: 700;
}
.license-server-banner.needs-save #license-save,
.license-server-banner.needs-restart #license-restart {
  background: #293b8f;
  border-color: #293b8f;
  color: #fff;
}
:root[data-theme="dark"] .license-server-banner.needs-save,
:root[data-theme="dark"] .license-server-banner.needs-restart {
  background: #222d50;
  border-bottom-color: #6378c5;
  box-shadow: inset 4px 0 0 #9aa9f0;
}
:root[data-theme="dark"] .license-server-banner.needs-save > span,
:root[data-theme="dark"] .license-server-banner.needs-restart > span {
  color: #c3cdff;
}

.license-server-banner.needs-save,
.license-server-banner.needs-restart {
  background: #fff4cc;
  border-bottom-color: #d6a126;
  box-shadow: inset 4px 0 0 #d89a00;
}
.license-server-banner.needs-save > span,
.license-server-banner.needs-restart > span {
  color: #765000;
}
.license-server-banner.needs-save #license-save,
.license-server-banner.needs-restart #license-restart {
  background: #ffd66b;
  border-color: #bb8100;
  color: #382800;
}
:root[data-theme="dark"] .license-server-banner.needs-save,
:root[data-theme="dark"] .license-server-banner.needs-restart {
  background: #3b3018;
  border-bottom-color: #b88724;
  box-shadow: inset 4px 0 0 #ffc857;
}
:root[data-theme="dark"] .license-server-banner.needs-save > span,
:root[data-theme="dark"] .license-server-banner.needs-restart > span {
  color: #ffd778;
}

/* Keep license controls available while scrolling every workspace page. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
}
.license-server-banner {
  position: sticky;
  top: var(--workspace-header-height, 73px);
  z-index: 11;
}
.firmware-explorer {
  overflow: visible;
}
.firmware-explorer .table-wrap {
  border-radius: 0 0 8px 8px;
}
.firmware-explorer table {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
}
.firmware-explorer td {
  height: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-bottom: 0;
}
.firmware-explorer th {
  padding-top: 9px;
  padding-bottom: 9px;
}
.firmware-explorer .directory-toggle {
  border: 0;
  border-radius: 2px;
  background: transparent;
  padding: 2px 4px;
  font-weight: 400;
  font-size: 12px;
  min-height: 24px;
  text-align: left;
}
.firmware-explorer .explorer-row:hover {
  background: #edf6ff;
}
.firmware-explorer .explorer-row:has(input:checked) {
  background: #dceeff;
}
.firmware-explorer .firmware-file-selection {
  font-size: 12px;
  min-height: 24px;
  gap: 8px;
}
.firmware-explorer .actions {
  flex-wrap: wrap;
  font-size: 11px;
}
.firmware-actions-wrap {
  position: relative;
}
.firmware-actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  min-width: 200px;
  z-index: 8;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px;
  box-shadow: 0 8px 24px #0002;
}
.firmware-actions-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.firmware-explorer .directory-toggle:hover {
  background: #dceeff;
}
:root[data-theme="dark"] .firmware-explorer .explorer-row:hover {
  background: #23354b;
}
:root[data-theme="dark"] .firmware-explorer .explorer-row:has(input:checked),
:root[data-theme="dark"] .firmware-explorer .directory-toggle:hover {
  background: #2e4664;
}
.firmware-file-selection {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  cursor: pointer;
}
.firmware-file-selection input {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--teal);
}

.firmware-server-panel {
  overflow: visible;
}
.firmware-server-panel > #firmware-server-data > .panel {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}
.firmware-server-panel > #firmware-server-data > .panel > .panel-head {
  border-radius: 0;
}
.firmware-server-panel > #firmware-server-data > .panel > .panel-body {
  border-radius: 0 0 8px 8px;
}

.badge.license-check-ontime {
  background: #e8f5f0;
  color: #237a63;
}
.badge.license-check-late {
  background: #fff5df;
  color: #9a6b1b;
}
.badge.license-check-missing {
  background: #edf0f3;
  color: #657180;
}
:root[data-theme="dark"] .badge.license-check-ontime {
  background: #173b32;
  color: #92d9bc;
}
:root[data-theme="dark"] .badge.license-check-late {
  background: #3a2d17;
  color: #e5bb72;
}
:root[data-theme="dark"] .badge.license-check-missing {
  background: #303944;
  color: #bec7d1;
}

.monitor-health {
  display: flex;
  align-items: center;
  gap: 9px;
}
.monitor-health-light {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #64748b;
  background: #94a3b8;
  box-shadow: 0 0 0 3px #94a3b81a;
}
.monitor-health-light.connected {
  border-color: #15803d;
  background: #22c55e;
  box-shadow:
    0 0 0 3px #22c55e20,
    0 0 8px #22c55e40;
}
.monitor-health-light.disconnected {
  border-color: #64748b;
  background: #94a3b8;
}
.microsoft-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin-top: 28px;
  padding: 12px 20px;
  border: 1px solid #cbd3dc;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.microsoft-signin:hover {
  background: var(--surface-soft);
  border-color: var(--teal);
}
.microsoft-signin:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
