.notice {
  margin: 0 0 20px;
  padding: 13px 14px;
  border: 1px solid rgba(65, 220, 177, .25);
  border-radius: 11px;
  color: #9af0d7;
  background: rgba(44, 190, 147, .12);
  line-height: 1.45;
}

.notice.success {
  color: #bff8e7;
}

.devices-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(152, 173, 224, .12);
}

.section-head,
.device-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  margin: 4px 0 0;
  font-size: 23px;
}

.device-count,
.legacy-badge {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(158, 184, 255, .2);
  border-radius: 99px;
  color: #b9c5e5;
  background: rgba(113, 134, 255, .1);
  font-size: 12px;
  font-weight: 800;
}

.device-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.device-card {
  padding: 16px;
  border: 1px solid rgba(158, 184, 255, .15);
  border-radius: 15px;
  background: rgba(9, 14, 26, .62);
}

.device-title strong,
.device-title span {
  display: block;
}

.device-title span {
  margin-top: 4px;
  color: #8190b1;
  font-size: 13px;
}

.device-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.device-actions .button {
  min-height: 42px;
  padding: 0 12px;
  font-size: 13px;
}

.device-delete-form {
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 112, 132, .14);
}

.device-delete-form .confirmation {
  font-size: 12px;
  font-weight: 500;
}

.danger-link {
  justify-self: start;
  padding: 0;
  color: #ff9bad;
}

.add-device-form {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(65, 220, 177, .2);
  border-radius: 15px;
  background: rgba(44, 190, 147, .06);
}

.empty-state {
  margin: 18px 0 0;
  color: #9ca9c7;
  line-height: 1.55;
}

.cabinet-actions {
  padding-top: 8px;
}

.button.disabled-action,
.button.disabled-action:hover {
  color: #667087;
  background: #090e1a;
  border-color: #20283d;
  cursor: not-allowed;
  opacity: .78;
  transform: none;
  filter: none;
}

.button.preparing-connect,
.button.preparing-connect:hover {
  cursor: wait;
  opacity: .76;
  transform: none;
  filter: none;
}

.instruction-shell {
  width: min(100%, 1040px);
  display: grid;
  gap: 24px;
}

.instruction-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid rgba(158, 184, 255, .15);
  border-radius: 24px;
  background: rgba(15, 21, 38, .88);
}

.instruction-header h1 {
  margin: 8px 0;
  font-size: clamp(30px, 5vw, 44px);
}

.instruction-header .lead {
  max-width: 680px;
  margin-bottom: 0;
}

.instruction-note,
.success-box {
  padding: 16px 18px;
  border: 1px solid rgba(65, 220, 177, .25);
  border-radius: 14px;
  color: #bff8e7;
  background: rgba(44, 190, 147, .1);
  line-height: 1.55;
}

.image-zoom-hint {
  display: block;
  margin-top: 5px;
  color: #91a7c8;
  font-size: 14px;
}

.instruction-steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.instruction-step,
.instruction-help {
  padding: 28px;
  border: 1px solid rgba(158, 184, 255, .15);
  border-radius: 22px;
  background: rgba(15, 21, 38, .88);
}

.step-copy {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #07101c;
  background: linear-gradient(135deg, #8d9aff, #54dabd);
  font-size: 19px;
  font-weight: 850;
}

.instruction-step h2,
.instruction-help h2 {
  margin: 5px 0 10px;
  font-size: 22px;
}

.instruction-step p,
.instruction-help p {
  margin: 0 0 12px;
  color: #b0bbd5;
  line-height: 1.65;
}

.instruction-image-link {
  display: block;
  width: 64%;
  margin: 22px auto 0;
  overflow: hidden;
  border: 1px solid rgba(113, 134, 255, .25);
  border-radius: 16px;
  background: #090d18;
}

.instruction-image-link img {
  display: block;
  width: 100%;
  height: auto;
}

.instruction-image-link:hover {
  border-color: rgba(84, 218, 189, .55);
}

.instruction-step-text .success-box {
  margin-top: 16px;
}

.instruction-cta {
  display: flex;
  width: 64%;
  margin: 18px auto 0;
}

.instruction-help .button {
  margin-top: 8px;
}

.verification-code {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .3em;
}

.resend-form {
  display: block;
  text-align: center;
  margin-top: 14px;
}

.danger-zone {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 112, 132, .2);
}

.danger-zone h2 {
  font-size: 18px;
  color: #ffc1ca;
}

.danger {
  color: #ffd8de;
  background: rgba(148, 36, 55, .22);
  border-color: rgba(255, 112, 132, .36);
}

.confirmation {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.confirmation input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.admin-shell {
  width: min(100%, 1180px);
  display: grid;
  gap: 22px;
}

.admin-header,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-header h1,
.admin-panel h2 {
  margin: 6px 0 12px;
}

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

.admin-panel {
  padding: 24px;
  border: 1px solid rgba(158, 184, 255, .15);
  border-radius: 20px;
  background: rgba(15, 21, 38, .88);
}

.hidden {
  display: none !important;
}

.node-overview-panel {
  min-width: 0;
  overflow: hidden;
}

.node-cards {
  display: flex;
  gap: 14px;
  margin: 2px -4px 0;
  padding: 4px 4px 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #43557f #0b1020;
  scrollbar-width: thin;
}

.node-card {
  flex: 0 0 292px;
  padding: 17px;
  border: 1px solid rgba(158, 184, 255, .17);
  border-radius: 15px;
  background: rgba(9, 14, 26, .72);
}

.node-card-header,
.node-online {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.node-card-header h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #aebbd8;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.node-state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.node-state-dot.active {
  background: #f2c14e;
  box-shadow: 0 0 0 4px rgba(242, 193, 78, .12), 0 0 13px rgba(242, 193, 78, .38);
}

.node-state-dot.inactive {
  background: #ff667d;
  box-shadow: 0 0 0 4px rgba(255, 102, 125, .11), 0 0 13px rgba(255, 102, 125, .3);
}

.node-online {
  margin-top: 17px;
  padding: 12px 0;
  border-block: 1px solid rgba(152, 173, 224, .1);
  color: #8493b6;
  font-size: 13px;
}

.node-online strong {
  color: #eef3ff;
  font-size: 20px;
}

.node-traffic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.node-traffic-grid div {
  display: grid;
  gap: 4px;
}

.node-traffic-grid span {
  color: #7081aa;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.node-traffic-grid strong {
  color: #dce6ff;
  font-size: 13px;
  white-space: nowrap;
}

.node-traffic-grid small {
  color: #69789b;
  font-size: 10px;
  white-space: nowrap;
}

.node-memory {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(152, 173, 224, .1);
}

.node-memory > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8493b6;
  font-size: 12px;
}

.node-memory strong {
  color: #dce6ff;
}

.node-memory small {
  color: #69789b;
  font-size: 10px;
  text-align: right;
}

.node-memory meter {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: #171f35;
}

.node-memory meter::-webkit-meter-bar {
  border: 0;
  border-radius: 99px;
  background: #171f35;
}

.node-memory meter::-webkit-meter-optimum-value {
  border-radius: 99px;
  background: linear-gradient(90deg, #54dabd, #8d9aff);
}

.node-memory meter::-moz-meter-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, #54dabd, #8d9aff);
}

.node-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.node-load-error,
.node-empty {
  margin: 2px 0 12px;
  color: #ff9bad;
}

.node-empty {
  color: #8c9abc;
}

.node-refresh-note {
  margin: 2px 0 0;
  color: #657495;
  font-size: 11px;
}

.node-history-shell {
  min-width: 0;
}

.node-history-header {
  align-items: flex-start;
}

.node-history-header h1 {
  margin-bottom: 8px;
}

.history-range,
.history-summary {
  display: grid;
  gap: 12px;
}

.history-range {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px 20px;
  border: 1px solid rgba(158, 184, 255, .13);
  border-radius: 15px;
  color: #8291b4;
  background: rgba(9, 14, 26, .6);
  font-size: 12px;
}

.history-range span:last-child {
  text-align: right;
}

.history-range strong {
  color: #dce6ff;
}

.history-loading {
  margin: 0;
  color: #9ca9c7;
}

.node-history-content {
  display: grid;
  gap: 22px;
}

.history-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-summary article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(158, 184, 255, .15);
  border-radius: 15px;
  background: rgba(15, 21, 38, .88);
}

.history-summary span {
  color: #8291b4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.history-summary strong {
  overflow: hidden;
  color: #eef3ff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-chart-grid {
  display: grid;
  gap: 18px;
}

.history-chart-card {
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(158, 184, 255, .15);
  border-radius: 18px;
  background: rgba(15, 21, 38, .88);
}

.history-chart-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.history-chart-heading h2 {
  margin: 0 auto 0 0;
  font-size: 17px;
}

.history-chart-heading span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8998b8;
  font-size: 11px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2c14e;
}

.online-line,
.load5-line { background: #8d9aff; }
.memory-line { background: #c38cff; }
.rx-line,
.load15-line { background: #54dabd; }
.tx-line { background: #ff8b72; }

.node-chart-scroll,
.history-log-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #43557f #0b1020;
  scrollbar-width: thin;
}

.node-chart-scroll {
  border-radius: 12px;
  background: #0a1020;
}

.node-history-chart {
  display: block;
  width: 1400px;
  max-width: none;
  height: 280px;
}

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

.history-log-panel .section-heading h2,
.history-log-panel .section-heading p {
  margin-bottom: 4px;
}

.history-log-scroll {
  max-height: 620px;
  margin-top: 14px;
  border: 1px solid rgba(158, 184, 255, .12);
  border-radius: 12px;
}

.history-log-table {
  min-width: 1120px;
}

.history-log-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #121a2d;
}

.history-log-table th,
.history-log-table td {
  white-space: nowrap;
}

.history-active { color: #f2c14e; }
.history-inactive { color: #ff667d; }

.history-log-more {
  margin: 0;
  padding: 12px 16px;
  color: #7181a5;
  font-size: 11px;
  text-align: center;
}

.admin-header-actions,
.settings-controls,
.audit-page-size,
.audit-footer,
.pagination {
  display: flex;
  align-items: center;
}

.admin-header-actions {
  gap: 14px;
}

.admin-header-actions form {
  margin: 0;
}

.settings-card {
  padding-bottom: 0;
}

.settings-list {
  margin: 0 -24px;
  border-top: 1px solid rgba(152, 173, 224, .12);
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(152, 173, 224, .12);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-copy h3 {
  margin: 0 0 6px;
}

.settings-copy p {
  margin: 0 0 8px;
}

.settings-controls {
  gap: 12px;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.settings-toggle {
  white-space: nowrap;
}

.settings-days {
  display: grid;
  grid-template-columns: auto 82px;
  align-items: center;
  gap: 8px;
}

.settings-days input {
  margin: 0;
}

.audit-heading {
  margin-bottom: 12px;
}

.audit-page-size {
  gap: 8px;
  margin: 0;
}

.audit-page-size select {
  width: 76px;
  margin: 0;
}

.audit-page-size select,
.user-page-size select {
  height: 42px;
  padding: 0 10px;
  border: 1px solid #2a3657;
  border-radius: 10px;
  outline: none;
  color: #f5f7ff;
  background: #0c1221;
  font: inherit;
}

.audit-page-size select:focus,
.user-page-size select:focus {
  border-color: #7186ff;
  box-shadow: 0 0 0 3px rgba(113, 134, 255, .15);
}

.audit-page-size .button {
  min-height: 42px;
  padding: 9px 14px;
}

.audit-footer {
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.user-list-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 4px 0 18px;
}

.user-search {
  width: min(100%, 390px);
}

.user-list-toolbar input {
  height: 42px;
}

.user-page-size {
  display: grid;
  grid-template-columns: auto 76px;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.user-page-size select {
  width: 76px;
  margin: 0;
}

.user-list-toolbar .button {
  min-height: 42px;
  padding: 9px 18px;
}

.user-list-footer {
  margin-top: 14px;
}

.users-table td {
  padding-top: 9px;
  padding-bottom: 9px;
  vertical-align: middle;
}

.access-type-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.device-count-button {
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(158, 184, 255, .25);
  border-radius: 9px;
  color: #c9d5f2;
  background: rgba(93, 116, 174, .12);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.device-count-button:hover {
  color: #fff;
  border-color: rgba(158, 184, 255, .5);
  background: rgba(93, 116, 174, .22);
}

.admin-device-dialog {
  width: min(calc(100% - 28px), 620px);
  max-height: min(82vh, 760px);
  padding: 0;
  border: 1px solid rgba(158, 184, 255, .25);
  border-radius: 20px;
  color: #edf2ff;
  background: #0f1526;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .58);
}

.admin-device-dialog::backdrop {
  background: rgba(3, 7, 16, .78);
  backdrop-filter: blur(4px);
}

.device-dialog-head,
.admin-device-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.device-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(152, 173, 224, .12);
  background: #0f1526;
}

.device-dialog-head h3 {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.device-dialog-head form {
  margin: 0;
}

.admin-device-list {
  display: grid;
  gap: 12px;
  max-height: 55vh;
  padding: 18px 22px;
  overflow-y: auto;
}

.admin-device-item {
  padding: 16px;
  border: 1px solid rgba(152, 173, 224, .14);
  border-radius: 14px;
  background: rgba(9, 13, 24, .56);
}

.admin-device-title strong,
.admin-device-title span {
  display: block;
}

.admin-device-title span {
  margin-top: 3px;
  color: #7583a7;
  font-size: 12px;
}

.admin-device-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.admin-device-meta div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
}

.admin-device-meta dt {
  color: #7583a7;
  font-size: 12px;
}

.admin-device-meta dd {
  text-align: left;
  font-size: 12px;
}

.admin-device-meta code {
  word-break: break-all;
}

.device-dialog-empty {
  padding: 22px;
}

.device-copy-result {
  min-height: 22px;
  margin: 0;
  padding: 0 22px 18px;
  text-align: left;
}

.pagination {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pagination a,
.pagination span {
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(158, 184, 255, .2);
  border-radius: 9px;
}

.pagination a:hover,
.pagination .current {
  color: #fff;
  border-color: rgba(158, 184, 255, .48);
  background: rgba(93, 116, 174, .22);
}

.pagination .ellipsis {
  min-width: 22px;
  padding: 0;
  border-color: transparent;
}

.group-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.inline-form {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.compact-form {
  display: inline;
  margin: 0;
}

.section-actions,
.delete-inline {
  display: inline-flex;
  align-items: center;
}

.section-actions {
  gap: 10px;
}

.delete-inline {
  gap: 7px;
  margin: 0;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(158, 184, 255, .25);
  border-radius: 9px;
  color: #b9c5e5;
  background: rgba(93, 116, 174, .12);
  cursor: pointer;
}

.icon-button:hover {
  color: #fff;
  border-color: rgba(158, 184, 255, .5);
}

.small-icon-button {
  width: 30px;
  height: 30px;
}

.group-member-cell,
.user-extension-form,
.group-extension-form,
.group-actions,
.group-delete-form {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.user-extension-form,
.group-extension-form,
.group-delete-form {
  margin: 0;
}

.user-extension-form input,
.group-extension-form input {
  width: 56px;
  height: 34px;
  padding: 0 8px;
}

.group-actions {
  gap: 10px;
  white-space: nowrap;
}

.deactivate-icon-button {
  color: #ffd49b;
}

.danger-icon-button {
  color: #ff6f85;
  border-color: rgba(255, 111, 133, .4);
}

.danger-icon-button:hover {
  color: #fff;
  border-color: #ff6f85;
  background: rgba(255, 111, 133, .2);
}

.expiration-warning {
  color: #ff6f85;
  font-weight: 800;
}

.expiration-note {
  margin: 14px 0 0;
  font-size: 12px;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-type-form {
  display: inline-flex;
  margin: 0;
}

.access-type-form .link-button {
  padding: 4px 0;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(152, 173, 224, .12);
  text-align: left;
  vertical-align: top;
}

th {
  color: #8190b1;
  font-weight: 700;
}

code {
  color: #b9c5e5;
  overflow-wrap: anywhere;
}

.destructive-link {
  color: #ff9bad;
}

.admin-confirm {
  display: inline-grid;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.access-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}

.access-badge.trial {
  color: #ffd49b;
  background: rgba(190, 120, 52, .16);
  border: 1px solid rgba(255, 179, 86, .24);
}

.access-badge.regular {
  color: #c9d5f2;
  background: rgba(129, 148, 201, .14);
  border: 1px solid rgba(158, 184, 255, .18);
}

.access-badge.corporate {
  color: #7bf0cc;
  background: rgba(44, 190, 147, .13);
  border: 1px solid rgba(65, 220, 177, .2);
}

@media (max-width: 800px) {
  .admin-grid,
  .group-form,
  .inline-form,
  .settings-row {
    grid-template-columns: 1fr;
  }

  .settings-controls {
    justify-content: flex-start;
  }

  .audit-heading,
  .audit-footer {
    align-items: flex-start;
  }

  .user-list-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .user-search {
    width: 100%;
  }

  .admin-device-meta div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .admin-header {
    align-items: flex-start;
  }

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

  .history-range {
    grid-template-columns: 1fr;
  }

  .history-range span:last-child {
    text-align: left;
  }

  .history-chart-heading {
    flex-wrap: wrap;
  }

  .instruction-header {
    display: grid;
    padding: 24px 20px;
  }

  .instruction-header .button {
    width: 100%;
  }

  .instruction-step,
  .instruction-help {
    padding: 22px 18px;
  }

  .instruction-cta {
    width: 100%;
    margin: 18px 0 0;
  }

  .step-copy {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .step-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}

@media (max-width: 520px) {
  .node-card {
    flex-basis: min(280px, calc(100vw - 76px));
  }

  .history-summary {
    grid-template-columns: 1fr;
  }

  .node-history-header .admin-header-actions {
    width: 100%;
  }

  .node-history-header .button {
    flex: 1;
  }

  .section-head,
  .device-title {
    display: grid;
  }

  .device-count,
  .legacy-badge {
    justify-self: start;
  }

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

.footer-link-small { margin-top: 10px; }
[hidden] { display: none !important; }
