@layer human-motion, human-controls;

:root, [data-theme] {
  --fs-display: 30px;
  --fs-title: 20px;
  --fs-body: 14px;
  --fs-sub: 13px;
  --fs-min: 12px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --r-lg: 16px;
  --r-md: 10px;
  --r-sm: 6px;
  color-scheme: light;
  --page: #f5f5f7;
  --surface: #ffffff;
  --raised: #fafafa;
  --field: var(--surface);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --quiet: #86868b;
  --quiet-text: #6d6d72;
  --line: rgba(0,0,0,.08);
  --hairline: 1px solid var(--line);
  --control-line: rgba(0,0,0,.16);
  --action: #0071e3;
  --action-hover: #0077ed;
  --action-active: #0064c8;
  --highlight: var(--action);
  --success: #0f9d58;
  --warning: #b26b00;
  --error: #d70015;
  --focus-ring: 2px solid var(--action);
  --surface-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --floating: rgba(255,255,255,.86);
  --ease: cubic-bezier(.22,.61,.36,1);
  --feedback: 180ms var(--ease);
  --ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

:root, [data-theme] {
  --color-primary: var(--action);
  --color-primary-light: var(--action-hover);
  --color-primary-dark: var(--action-active);
  --color-info: var(--action);
  --color-success: var(--success);
  --color-warning: var(--warning);
  --color-error: var(--error);
  --accent-success: var(--success);
  --accent-warning: var(--warning);
  --accent-danger: var(--error);
  --color-text-disabled: var(--quiet-text);
  --text-inverse: var(--surface);
  --color-bg-page: var(--page);
  --color-bg-container: var(--surface);
  --color-bg-elevated: var(--raised);
  --color-bg-hover: #f2f2f4;
  --bg-primary: var(--page);
  --bg-secondary: var(--surface);
  --bg-tertiary: var(--raised);
  --bg-card: var(--surface);
  --bg-sidebar: var(--page);
  --bg-hover: var(--color-bg-hover);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-tertiary: var(--quiet-text);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
  --color-border: var(--line);
  --color-divider: var(--line);
  --border-primary: var(--line);
  --border-secondary: var(--control-line);
  --border-light: var(--line);
  --shadow-sm: none;
  --shadow-md: var(--surface-shadow);
  --shadow-lg: var(--surface-shadow);
  --accent-primary: var(--highlight);
}

html body, html body .ant-app, html body :where([class^="ant-"], [class*=" ant-"]) {
  font-family: var(--ui-font);
}
html body, html body .ant-app {
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.55;
}
html body :is(.ant-table, .ant-statistic, .ant-picker, .ant-input-number, .ant-pagination, time, .bottom-version-bar) {
  font-variant-numeric: tabular-nums;
}
html body :is(.ant-layout, .ant-layout-content, .ant-tabs-content-holder, .ant-table-wrapper) {
  min-width: 0;
}
html body .ant-table-content { overflow-x: auto; }
html body ::-webkit-scrollbar, html::-webkit-scrollbar { width: 8px; height: 8px; }
html body :is(.ant-layout-sider, .ant-menu) ::-webkit-scrollbar-thumb, html body ::-webkit-scrollbar-thumb, html::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(0,0,0,.18);
}
html body :is(.ant-layout-sider, .ant-menu) ::-webkit-scrollbar-track, html body ::-webkit-scrollbar-track, html::-webkit-scrollbar-track { background: transparent; }
html body :is(.ant-btn, .ant-menu-item, .ant-select-selector, .ant-picker, .ant-input, .ant-input-affix-wrapper) {
  border-radius: var(--r-md);
}
html body .ant-btn { min-height: 44px; }
html body .ant-btn-lg { min-height: 44px; }
html body :is(.ant-input, .ant-input-affix-wrapper, .ant-picker, .ant-select-selector, .ant-select-single) {
  min-height: 44px;
}
html body .ant-input-affix-wrapper:has(> input.ant-input) { padding-block: 0; }
html body .ant-input-affix-wrapper > input.ant-input { min-height: 44px; padding-block: 0; }
html body :is(.ant-checkbox-wrapper, .ant-radio-wrapper) {
  min-height: 44px;
  align-items: center;
  color: var(--muted);
}
html body .ant-checkbox-wrapper .ant-checkbox .ant-checkbox-inner,
html body .ant-radio-wrapper .ant-radio .ant-radio-inner,
html body :is(.ant-checkbox, .ant-radio) > :is(.ant-checkbox-inner, .ant-radio-inner) {
  width: 18px;
  height: 18px;
}
html body .ant-checkbox-wrapper .ant-checkbox-checked .ant-checkbox-inner::after {
  content: "";
  position: absolute;
  top: 47%;
  left: 27%;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-50%, -50%);
  transform-origin: 0 0;
  opacity: 1;
}
html body .ant-radio-checked .ant-radio-inner::after { background: white; }
html body .ant-card { border-radius: var(--r-lg); color: var(--ink); }
html body .ant-card-head-title, html body .ant-modal-title {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.25;
}
html body .ant-table-tbody > tr > td { box-sizing: border-box; height: 46px; padding-block: 0; font-size: var(--fs-body); }
html body .ant-menu :is(.ant-menu-item, .ant-menu-submenu-title) {
  height: 44px;
  line-height: 44px;
  border-radius: var(--r-md);
}
html body .ant-menu-item-selected { position: relative; }
html body .ant-menu .ant-menu-item-selected::after,
html body .ant-menu.ant-menu-inline .ant-menu-item-selected::after {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 2px;
  background: var(--highlight);
  border: 0;
  opacity: 1;
  transform: none;
  pointer-events: none;
}
html body :is(.ant-modal-content, .ant-drawer-content) { border-radius: var(--r-lg); }
html body :is(.ant-modal-body, .ant-drawer-body) {
  max-height: calc(100vh - 200px);
  overflow: auto;
  min-height: 0;
}
html body :is(.ant-modal-footer, .ant-drawer-footer, .ant-drawer-header) { flex: none; }
html body :is(.ant-modal-mask, .ant-drawer-mask) { background: rgba(0,0,0,.18); }
html body .ant-pagination { flex-wrap: wrap; }
html body :is(.ant-badge-count, .ant-tag) { border-radius: var(--r-sm); border: var(--hairline); }
html body :is(.ant-menu-submenu-popup, .ant-tooltip) { max-width: min(100%, 360px); }

@layer human-controls {
  html:root, html body, html body #root,
  html body :is(.ant-layout, .ant-layout-content, .ant-layout-footer) {
    background: var(--page) !important;
    color: var(--ink) !important;
  }
  html body :is(.ant-layout-sider, .ant-layout-sider-children, .ant-layout-sider-trigger, .ant-layout-header) {
    background: var(--surface) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    border-color: var(--line) !important;
  }
  html body .ant-layout-content::before { background: transparent !important; }
  html body :is(.ant-menu, .ant-menu-inline-collapsed, .ant-menu-item, .ant-menu-submenu-title,
    .ant-card-body, .ant-table-placeholder, .ant-modal-footer, .ant-drawer-footer,
    .ant-picker-panel, .ant-picker-panel-layout, .ant-tabs, .ant-descriptions,
    .ant-descriptions-item-content, .home-tab-section, .inject-card) {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
  }
  html body :is(.ant-menu-item, .ant-menu-submenu-title, .ant-dropdown-menu-item,
    .ant-tabs-dropdown-menu-item):hover,
  html body :is(.ant-select-item-option-active, .ant-tabs-dropdown-menu-item-active),
  html body .ant-table-tbody > tr:hover {
    background: var(--bg-hover) !important;
    color: var(--ink) !important;
  }
  html body :is(.ant-select-item-option-selected, .ant-tabs-dropdown-menu-item-selected,
    .ant-menu-submenu-selected > .ant-menu-submenu-title) {
    background: #eaf3ff !important;
    color: var(--action-active) !important;
  }
  html body :is(.ant-tabs-dropdown-menu-item, .ant-picker-header button, .ant-picker-content th,
    .ant-picker-cell, .ant-statistic-title, .ant-empty-description, .ant-descriptions-item-label) {
    color: var(--muted) !important;
  }
  html body :is(.ant-picker-header, .ant-picker-presets, .ant-picker-footer, .ant-descriptions-item-label,
    .ant-input-group-addon, .home-tab-section-header, .ant-alert, .ant-tag) {
    background: var(--raised) !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
  }
  html body .ant-picker-presets li, html body .ant-picker-cell:hover .ant-picker-cell-inner {
    background: var(--bg-hover) !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
  }
  html body .ant-picker-cell-in-range > .ant-picker-cell-inner {
    background: #eaf3ff !important;
    color: var(--action-active) !important;
  }
  html body :is(.ant-picker-cell-selected, .ant-picker-cell-range-start, .ant-picker-cell-range-end) > .ant-picker-cell-inner {
    background: var(--action) !important;
    color: white !important;
  }
  html body .ant-picker-cell-today .ant-picker-cell-inner::before { border-color: var(--action) !important; }
  html body :is(.ant-picker-cell-in-view, .ant-picker-header-view button, .ant-badge, .ant-badge-status-text,
    .ant-alert-message, .ant-alert-description, .ant-statistic, .ant-statistic-content,
    .ant-progress, .ant-progress-text, .ant-empty, .ant-input-number-input, .ant-tabs-tab-active) {
    color: var(--ink) !important;
  }
  html body :is(.ant-tooltip, .ant-popover) { --antd-arrow-background-color: var(--surface); }
  html body .ant-btn-text, html body .ant-btn-link {
    background: transparent !important;
    color: var(--action-active) !important;
  }
  html body .ant-btn-text { color: var(--ink) !important; }
  html body :is(.ant-btn-text, .ant-btn-default):not(:disabled):hover { background: var(--bg-hover) !important; }
  html body .ant-btn.ant-btn-dangerous { color: var(--error) !important; background: var(--surface) !important; }
  html body .ant-btn-primary.ant-btn-dangerous, html body .ant-badge-count {
    color: white !important;
    background: var(--error) !important;
  }
  html body .ant-switch { background: var(--quiet) !important; }
  html body .ant-switch-inner { color: white !important; }
  html body .ant-switch-checked, html body .ant-tabs-ink-bar { background: var(--action) !important; }
  html body .ant-spin { color: var(--action) !important; }
  html body .ant-skeleton { --ant-skeleton-gradient-from-color: var(--bg-hover); --ant-skeleton-gradient-to-color: var(--raised); }
  html body .ant-skeleton :is(.ant-skeleton-title, .ant-skeleton-paragraph li, .ant-skeleton-avatar,
    .ant-skeleton-input, .ant-skeleton-button, .ant-skeleton-image) { background: var(--bg-hover) !important; }
  html body .ant-progress-inner { background-color: var(--bg-hover) !important; }
  html body .ant-progress-bg { background-color: var(--action) !important; }
  html body .ant-alert-success .ant-alert-icon { color: var(--success) !important; }
  html body .ant-alert-warning .ant-alert-icon { color: var(--warning) !important; }
  html body :is(.ant-alert-error .ant-alert-icon, .ant-form-item-explain-error) { color: var(--error) !important; }
  html body :is(.ant-progress-status-success .ant-progress-bg, .ant-badge-status-success) { background-color: var(--success) !important; }
  html body .ant-progress-status-exception .ant-progress-bg { background-color: var(--error) !important; }
  html body .inject-card-active { border-color: var(--error) !important; }
  html body .theme-switch-btn { display: none !important; }
  html body .ant-btn {
    border-radius: var(--r-md) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: background-color var(--feedback), transform var(--feedback) !important;
  }
  html body .ant-btn-default {
    background: var(--surface) !important;
    border: 1px solid var(--control-line) !important;
    color: var(--ink) !important;
  }
  html body .ant-btn-primary:not(.ant-btn-dangerous, :disabled, .ant-btn-disabled) {
    background: var(--action) !important;
    border: 0 !important;
    color: white !important;
  }
  html body .ant-btn-primary:not(.ant-btn-dangerous, :disabled, .ant-btn-disabled):hover { background: var(--action-hover) !important; }
  html body .ant-btn-primary:not(.ant-btn-dangerous, :disabled, .ant-btn-disabled):active { background: var(--action-active) !important; }
  html body .ant-btn:not(:disabled):active { transform: translateY(1px) scale(.985) !important; }
  html body .ant-btn:is(:disabled, .ant-btn-disabled, [aria-disabled="true"]) {
    color: var(--muted) !important;
    background: var(--bg-hover) !important;
    opacity: 1;
  }
  html body :is(button, a, textarea, select, [tabindex]):focus-visible,
  html body :is(.ant-input-affix-wrapper, .ant-picker):focus-within,
  html body .ant-select-focused .ant-select-selector,
  html body .ant-input-number:focus-within,
  html body .ant-input:not(.ant-input-affix-wrapper > input):focus,
  html body :is(.ant-checkbox-wrapper, .ant-radio-wrapper):has(input:focus-visible) {
    outline: var(--focus-ring) !important;
    outline-offset: 2px;
  }
  html body :is(.ant-input, .ant-input-affix-wrapper, .ant-input-number, .ant-select-selector, .ant-picker) {
    background: var(--field) !important;
    border-color: var(--control-line) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    border-radius: var(--r-md) !important;
  }
  html body .ant-input-affix-wrapper > input.ant-input { background: transparent !important; }
  html body .ant-input-number-input { background: transparent !important; }
  html body :is(.ant-input:disabled, .ant-input-affix-wrapper-disabled, .ant-input-number-disabled,
    .ant-select-disabled .ant-select-selector, .ant-picker-disabled) {
    color: var(--muted) !important;
    background: var(--bg-hover) !important;
  }
  html body :is(input, textarea)::placeholder, html body .ant-select-selection-placeholder {
    color: var(--quiet-text) !important;
    opacity: 1;
  }
  html body :is(.ant-input-status-error, .ant-input-affix-wrapper-status-error, .ant-picker-status-error),
  html body .ant-select-status-error .ant-select-selector { border-color: var(--error) !important; }
  html body :is(.ant-checkbox-inner, .ant-radio-inner) {
    background: var(--field) !important;
    border-color: var(--control-line) !important;
    box-shadow: none !important;
  }
  html body :is(.ant-checkbox-checked .ant-checkbox-inner, .ant-radio-checked .ant-radio-inner) {
    background: var(--action) !important;
    border-color: var(--highlight) !important;
  }
  html body :is(.ant-card, .ant-table, .ant-modal-content, .ant-drawer-content) {
    background: var(--surface) !important;
    color: var(--ink) !important;
  }
  html body .ant-card {
    border: var(--hairline) !important;
    box-shadow: none !important;
  }
  html body .ant-card .ant-card { border: 0 !important; box-shadow: none !important; }
  html body :is(.ant-card-head, .ant-modal-header, .ant-drawer-header) {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border-bottom: var(--hairline) !important;
  }
  html body :is(.ant-modal-title, .ant-drawer-title, .ant-card-head-title) { color: var(--ink) !important; }
  html body :is(.ant-modal-footer, .ant-drawer-footer) { border-top: var(--hairline) !important; }
  html body .ant-table-thead > tr > th, html body .ant-table-sticky-holder {
    background: var(--raised) !important;
    color: var(--muted) !important;
    font-size: var(--fs-min) !important;
    border-bottom: var(--hairline) !important;
  }
  html body .ant-table-tbody > tr > td {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border-bottom: var(--hairline) !important;
  }
  html body .ant-table-tbody > tr:hover > td { background: var(--bg-hover) !important; }
  html body .ant-table-tbody > tr.ant-table-row-selected > td { background: #eaf3ff !important; }
  html body .ant-tabs-tab {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--muted) !important;
    border: 0 !important;
  }
  html body .ant-tabs-tab-active .ant-tabs-tab-btn { color: var(--ink) !important; text-shadow: none; }
  html body .ant-tabs-top .ant-tabs-ink-bar, html body .ant-tabs-bottom .ant-tabs-ink-bar {
    display: block !important;
    height: 2px;
    background: var(--highlight) !important;
  }
  html body .ant-menu-item {
    border-radius: var(--r-md) !important;
    color: var(--muted) !important;
  }
  html body .ant-menu-item.ant-menu-item-selected {
    background: #eaf3ff !important;
    color: var(--ink) !important;
  }
  html body .ant-menu-item-selected :is(.anticon, .ant-menu-title-content) { color: inherit !important; }
  html body :is(.ant-pagination, .ant-picker-dropdown, .ant-picker-panel-container, .ant-dropdown-menu, .ant-select-dropdown, .ant-popover-inner,
    .ant-tooltip-inner, .ant-message-notice-content, .ant-notification-notice, .ant-tabs-dropdown-menu) {
    background: #ffffff !important;
    color: var(--ink) !important;
    border: var(--hairline) !important;
    border-radius: var(--r-md) !important;
    box-shadow: var(--surface-shadow) !important;
  }
  html body .ant-pagination .ant-pagination-item,
  html body .ant-pagination :is(.ant-pagination-prev, .ant-pagination-next) button {
    border-color: var(--line) !important;
    background: var(--raised) !important;
    color: var(--muted) !important;
  }
  html body .ant-pagination .ant-pagination-item a,
  html body .ant-pagination .ant-pagination-total-text { color: var(--muted) !important; }
  html body .ant-pagination .ant-pagination-item-active {
    background: var(--action) !important;
    border-color: var(--action) !important;
  }
  html body .ant-pagination .ant-pagination-item-active a { color: white !important; }
  html body :is(.ant-drawer-body, .ant-modal-body, .ant-form-item-label > label,
    .ant-select-selection-item, .ant-picker-input > input) { color: var(--ink) !important; }
  html body :is(.ant-dropdown-menu-item, .ant-select-item, .ant-popover-title, .ant-popover-inner-content,
    .ant-notification-notice-message, .ant-notification-notice-description) { color: var(--ink) !important; }
  @supports (backdrop-filter: blur(1px)) {
    html body :is(.ant-pagination, .ant-picker-dropdown, .ant-picker-panel-container, .ant-dropdown-menu, .ant-select-dropdown, .ant-popover-inner,
      .ant-tooltip-inner, .ant-message-notice-content, .ant-notification-notice, .ant-tabs-dropdown-menu) {
      background: var(--floating) !important;
      backdrop-filter: blur(14px) !important;
    }
  }
}

html body .login-wrapper {
  width: 100%;
  min-height: 100svh;
  flex-direction: column;
  overflow: visible;
  background: var(--page);
  color: var(--ink);
}
html body .login-inner-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-content: center;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1000px;
  padding: 48px 40px;
}
html body .left-hero-container {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--sp-4);
  min-width: 0;
  padding: 0;
  animation: none;
}
html body .left-hero-container::before {
  content: "";
  width: clamp(160px, 18vw, 232px);
  aspect-ratio: 1;
  background: url("/assets/png/logo-light-512.png") center / contain no-repeat;
  opacity: 1;
  pointer-events: none;
}
html body :is(.hero-slogan-3d, .hero-features-3d, .hero-badge-3d, .security-icon,
  .security-text, .card-bottom-status, .card-top-badge, .top-rim-highlight) {
  display: none !important;
}
html body .hero-main-title-3d, html body .card-3d-title {
  margin: 0;
  background: none;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  filter: none;
  letter-spacing: normal;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
}
html body .login-card-container { min-width: 0; animation: none; }
html body .login-card-3d {
  width: 100%;
  max-width: none;
  padding: var(--sp-7);
  overflow: visible;
  border: var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--surface-shadow);
  backdrop-filter: none;
}
html body .card-3d-title, html body .card-3d-subtitle { text-align: left; }
html body .card-3d-subtitle { margin: var(--sp-2) 0 0; color: var(--muted); font-size: var(--fs-body); letter-spacing: normal; }
html body .card-3d-divider { margin-top: var(--sp-6); background: var(--line); }
html body .login-card-3d .ant-form-item { margin-bottom: var(--sp-4); }
html body .login-card-3d .ant-input-affix-wrapper { height: 48px; gap: var(--sp-1); }
html body .login-card-3d .ant-input-affix-wrapper input.ant-input { height: 46px; font-size: 16px; }
html body .login-card-3d .ant-input-password-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-inline-end: -8px; }
html body .login-card-3d .ant-checkbox-wrapper { min-height: 44px; font-size: 14px; }
html body .login-card-3d .ant-btn-primary { min-height: 48px; text-shadow: none; }
html body .login-card-3d .ant-btn-primary:hover { transform: none; }
html body .bottom-version-bar {
  position: static;
  padding: var(--sp-5) var(--sp-4);
  border-top: var(--hairline);
  background: var(--page);
  color: var(--quiet-text);
  font-size: var(--fs-min);
  letter-spacing: .04em;
  text-shadow: none;
}
@layer human-controls {
  html body .login-card-3d .anticon { color: var(--muted) !important; }
  html body .login-card-3d .ant-checkbox-wrapper { color: var(--muted) !important; }
  html body .login-card-3d .ant-btn-primary { letter-spacing: .02em !important; }
  html body :is(#contact-kf-btn, #v7cfg-entry-btn) {
    background: var(--raised) !important;
    box-shadow: none !important;
    border: var(--hairline);
    border-radius: var(--r-md) !important;
    color: var(--muted) !important;
    min-height: 44px;
  }
  html body :is(#contact-kf-btn, #v7cfg-entry-btn):hover { color: var(--action-active) !important; opacity: 1; }
}
@media (max-width: 800px) {
  html body .login-inner-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    gap: var(--sp-6);
    padding: var(--sp-6) var(--sp-4);
  }
  html body .left-hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-3);
  }
  html body .left-hero-container::before {
    width: 56px;
    flex: none;
    background-image: url("/assets/png/logo-light-mark-64.png");
  }
  html body .login-card-3d { padding: var(--sp-6); }
  html body .card-3d-divider { margin-top: var(--sp-4); }
  html body .login-card-3d > div:has(> .card-3d-title) { margin-bottom: var(--sp-4) !important; }
  html body .login-card-3d .ant-form-item:has(.ant-checkbox-wrapper) { margin-bottom: var(--sp-2) !important; }
  html body .login-wrapper { min-height: calc(100svh - 60px); }
  html body #root:has(.login-wrapper) { min-height: 0; }
  html body:has(.login-wrapper) #v7cfg-entry-btn {
    position: static !important;
    width: fit-content;
    margin: 0 auto var(--sp-4);
  }
  html body .bottom-version-bar { line-height: 1.55; }
  html body :is(.ant-btn, .ant-input, .ant-input-affix-wrapper, .ant-select-selector, .ant-select-single, .ant-picker) { min-height: 44px; }
  html body .ant-input-affix-wrapper > input.ant-input { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  @layer human-motion {
    html body *, html body *::before, html body *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0s !important;
      transition-delay: 0s !important;
      animation-delay: 0s !important;
      scroll-behavior: auto !important;
    }
  }
}

@layer human-controls {
  html body .ant-layout-sider {
    --sider-width: 232px;
    width: var(--sider-width) !important;
    min-width: var(--sider-width) !important;
    max-width: var(--sider-width) !important;
    flex: 0 0 var(--sider-width) !important;
  }
  html body .ant-layout-sider-collapsed { --sider-width: 72px; }
  html body .ant-layout-sider .ant-layout-sider-trigger { width: var(--sider-width) !important; }

  html body .ant-layout-content :is(.toolbar, [role="toolbar"], .filter-bar, .pagination-bar,
    .device-card, .form-card, .empty-panel, .ant-empty, :has(> .ant-pagination), :has(> form :is(.ant-input-password, input[type="password"]))) {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border-color: var(--line);
  }
  html body .ant-layout-content :is(.stats-page, :has(> .stats-header)) {
    background: var(--page) !important;
  }
  html body .ant-layout-content :is(h1, h2, .page-title, .ant-page-header-heading-title,
    h3, h4, .section-title, .card-title, .ant-card-head-title, .ant-statistic-title) {
    color: var(--ink) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor;
  }
  html body .ant-layout-content :is(.ant-empty-description, .ant-typography-secondary) {
    color: var(--muted) !important;
    text-shadow: none !important;
  }
  html body .ant-layout-content :where(p, .cell-text, span.ant-typography:not(.ant-typography-secondary)) {
    color: var(--ink) !important;
    text-shadow: none !important;
  }
  html body :is(.toolbar, [role="toolbar"], .ant-space, .ant-table-cell, .card-actions)
    > .ant-btn-primary ~ .ant-btn-primary:not(:disabled, .ant-btn-disabled),
  html body .ant-space > .ant-space-item:has(.ant-btn-primary) ~ .ant-space-item
    > .ant-btn-primary:not(:disabled, .ant-btn-disabled) {
    color: var(--ink) !important;
    background: var(--surface) !important;
    border: 1px solid var(--control-line) !important;
  }
  html body :is(#contact-kf-btn, #v7cfg-entry-btn) { z-index: 990 !important; }
}

html body .ant-layout-content :is(h1, h2, .page-title, .ant-page-header-heading-title) {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.35;
}
html body .ant-layout-content :is(h3, h4, .section-title, .card-title, .ant-card-head-title, .ant-statistic-title) {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
html body :is(.ant-card-head-wrapper, .card-header, .toolbar, [role="toolbar"], .filter-bar, .stats-header, .ant-form-inline) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
html body :is(.ant-card-head-title, .card-header > .card-title) {
  flex: 1 1 12rem;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
}
html body :is(.ant-card-extra, .card-actions),
html body :is(.ant-card-extra, .toolbar, [role="toolbar"], .ant-table-cell) .ant-space {
  position: static;
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  max-width: 100%;
}
html body .ant-layout-content :is(.ant-table-content, .ant-table-body) {
  max-width: 100%;
  overflow-x: auto;
}
html body .ant-layout-content .ant-pagination { display: flex; flex-wrap: wrap; }

html body:has(.ant-layout-content):has(#v7cfg-entry-btn, #contact-kf-btn) {
  --entry-strip: calc(64px + env(safe-area-inset-bottom, 0px));
}
html body:has(#v7cfg-entry-btn, #contact-kf-btn) #root:has(.ant-layout-content) {
  height: calc(100dvh - var(--entry-strip));
  min-height: 0;
  overflow: auto;
}
html body .ant-layout-content { padding-bottom: var(--entry-strip, var(--sp-6)); }
html body:has(.ant-layout-content) :is(#v7cfg-entry-btn, #contact-kf-btn) {
  position: fixed !important;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  right: var(--sp-4);
}
html body:has(#v7cfg-entry-btn):has(.ant-layout-content) #contact-kf-btn {
  left: var(--sp-4);
  right: auto !important;
}

@media (max-width: 600px) {
  html body :is(.filter-bar, .ant-form-inline) {
    --filter-width: max(140px, calc((100% - var(--sp-2)) / 2));
  }
  html body :is(.filter-bar, .ant-form-inline) > :is(.ant-input, .ant-input-affix-wrapper,
    .ant-select, .ant-picker, .ant-form-item, .ant-space-item, .ant-btn) {
    box-sizing: border-box;
    flex: 0 0 var(--filter-width);
    min-width: 140px;
    margin-inline: 0;
  }
  html body :is(.filter-bar, .ant-form-inline) select.ant-select { min-height: 44px; }
  html body :is(.filter-bar .ant-space-item, .ant-form-inline .ant-form-item-control-input-content)
    > :is(.ant-input, .ant-input-affix-wrapper, .ant-select, .ant-picker) { width: 100% !important; }
  html body .ant-layout-content .ant-table :is(th, td) { white-space: nowrap; }
  html body .ant-layout-content .ant-table table { min-width: max-content; }
  html body :is(.stats-header, .ant-page-header-heading) { flex-wrap: wrap; }
  html body :is(.stats-header, .toolbar, .ant-page-header-heading) > :is(h1, h2, .page-title, .ant-page-header-heading-left) {
    flex: 1 0 100%;
    min-width: 0;
  }
  html body .ant-layout-content :is(.form-layout, :has(> * > form :is(.ant-input-password, input[type="password"]))) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: var(--sp-4);
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  html body .ant-layout-content :is(.form-layout, :has(> * > form :is(.ant-input-password, input[type="password"]))) > * {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
  }
}

@layer human-controls {
  html body .ant-layout-sider :is(span, div, a)[style*="color"] {
    color: var(--ink) !important;
  }
  html body .ant-layout-sider-children {
    color: var(--ink) !important;
  }
  html body .device-filter-toolbar-dark {
    background-color: transparent !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
    text-shadow: none !important;
  }
  html body .device-filter-toolbar-dark .ant-input,
  html body .device-filter-toolbar-dark .ant-input-affix-wrapper,
  html body .device-filter-toolbar-dark .ant-select-selector,
  html body .device-filter-toolbar-dark .ant-picker {
    background: var(--surface) !important;
    border: 1px solid var(--control-line) !important;
    color: var(--ink) !important;
  }
  html body .bk-device-name {
    color: var(--ink) !important;
    text-shadow: none !important;
  }
  html body .bk-device-id {
    color: var(--quiet) !important;
  }
  html body .bk-info-label {
    color: var(--muted) !important;
  }
  html body .bk-info-value {
    color: var(--ink) !important;
  }
  html body .bk-badge-pill {
    background: #f2f2f4 !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
    text-shadow: none !important;
  }
  html body .bk-pill-screen-off,
  html body .bk-pill-screen-on {
    color: var(--ink) !important;
  }
}

@layer human-controls {
  html body .ant-layout-content [style*="color: rgb(230, 237, 243)"] { color: #1d1d1f !important; }
  html body .ant-layout-content [style*="color: rgb(203, 213, 225)"] { color: #1d1d1f !important; }
  html body .ant-layout-content [style*="color: rgb(226, 232, 240)"] { color: #1d1d1f !important; }
  html body .ant-layout-content [style*="color: rgb(148, 163, 184)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgb(139, 148, 158)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgb(153, 153, 153)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgb(110, 118, 129)"] { color: #86868b !important; }
  html body .ant-layout-content [style*="color: rgb(72, 79, 88)"] { color: #86868b !important; }
  html body .ant-layout-content [style*="color: rgb(82, 196, 26)"] { color: #0b7a45 !important; }
  html body .ant-layout-content [style*="color: rgb(45, 179, 104)"] { color: #0b7a45 !important; }
  html body .ant-layout-content [style*="color: rgb(78, 201, 138)"] { color: #0b7a45 !important; }
  html body .ant-layout-content [style*="color: rgb(56, 189, 248)"] { color: #0071e3 !important; }
  html body .ant-layout-content [style*="color: rgb(102, 126, 234)"] { color: var(--action) !important; }
  html body .ant-layout-content [style*="color: rgb(52, 211, 153)"] { color: #0b7a45 !important; }
  html body .ant-layout-content [style*="background: rgba(255, 255, 255, 0.05)"],
  html body .ant-layout-content [style*="background-color: rgba(255, 255, 255, 0.05)"] { background: #f7f7f9 !important; }
  html body .ant-layout-content [style*="background: rgba(255, 255, 255, 0.08)"],
  html body .ant-layout-content [style*="background-color: rgba(255, 255, 255, 0.08)"] { background: #f2f2f4 !important; }
  html body .ant-layout-content [style*="background: rgba(255, 255, 255, 0.12)"],
  html body .ant-layout-content [style*="background-color: rgba(255, 255, 255, 0.12)"] { background: #f2f2f4 !important; }
  html body .ant-layout-content [style*="background: rgba(255, 255, 255, 0.15)"],
  html body .ant-layout-content [style*="background-color: rgba(255, 255, 255, 0.15)"] { background: #ececef !important; }
  html body .ant-layout-content [style*="background: rgb(26, 36, 54)"],
  html body .ant-layout-content [style*="background-color: rgb(26, 36, 54)"] { background: #ffffff !important; }
  html body .ant-layout-content [style*="background: rgb(21, 29, 44)"],
  html body .ant-layout-content [style*="background-color: rgb(21, 29, 44)"] { background: #ffffff !important; }
  html body .ant-layout-content [style*="background: rgb(15, 23, 42)"],
  html body .ant-layout-content [style*="background-color: rgb(15, 23, 42)"] { background: #ffffff !important; }
  html body .ant-layout-content [style*="background: rgb(22, 27, 34)"],
  html body .ant-layout-content [style*="background-color: rgb(22, 27, 34)"] { background: #ffffff !important; }
  html body .ant-layout-content [style*="background: rgb(28, 33, 40)"],
  html body .ant-layout-content [style*="background-color: rgb(28, 33, 40)"] { background: #ffffff !important; }
  html body .ant-layout-content [style*="background: rgb(13, 17, 23)"],
  html body .ant-layout-content [style*="background-color: rgb(13, 17, 23)"] { background: #ffffff !important; }
  html body .ant-layout-content [style*="background: rgba(0, 0, 0, 0.3)"],
  html body .ant-layout-content [style*="background-color: rgba(0, 0, 0, 0.3)"] { background: #ffffff !important; }
  html body .ant-layout-content [style*="background: rgba(45, 179, 104, 0.15)"],
  html body .ant-layout-content [style*="background-color: rgba(45, 179, 104, 0.15)"] { background: rgba(15, 157, 88, 0.10) !important; }
  html body .ant-layout-content [style*="background: linear-gradient(135deg, rgb(16, 185, 129), rgb(2, 132, 199))"],
  html body .ant-layout-content [style*="background-color: linear-gradient(135deg, rgb(16, 185, 129), rgb(2, 132, 199))"] { background: #0071e3 !important; }
  html body .ant-layout-content [style*="background: linear-gradient(rgb(24, 34, 52) 0%, rgb(21, 29, 44) 100%)"],
  html body .ant-layout-content [style*="background-color: linear-gradient(rgb(24, 34, 52) 0%, rgb(21, 29, 44) 100%)"] { background: #ffffff !important; }
  html body .ant-layout-content > div[style*="background"] { background: transparent !important; }
  html body .ant-layout-content [style*="background"] { border-color: rgba(0,0,0,.08) !important; }
}

@layer human-controls {
  html body .bk-device-card,
  html body .bk-device-card.bk-card-offline,
  html body .bk-device-card.bk-card-online,
  html body .bk-device-card.bk-card-selected {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--surface-shadow) !important;
  }
  html body .bk-device-card .bk-header-row,
  html body .bk-device-card .bk-device-meta,
  html body .bk-device-card .bk-info-row {
    color: var(--ink) !important;
  }
  html body .bk-tip-bubble {
    background: #1d1d1f !important;
    color: #ffffff !important;
    border: 0 !important;
  }
  html body .bk-tip-bubble * {
    color: #ffffff !important;
  }
}

@layer human-controls {
  html body .ant-layout-header :is(span, div, a)[style*="color: rgb(255, 255, 255)"],
  html body .ant-layout-header :is(span, div, a)[style*="color: #fff"] {
    color: var(--ink) !important;
  }
  html body .ant-layout-header :is(span, div, a)[style*="color: rgb(230, 237, 243)"] {
    color: var(--ink) !important;
  }
  html body .ant-layout-header :is(span, div, a)[style*="color: rgb(139, 148, 158)"],
  html body .ant-layout-header :is(span, div, a)[style*="color: rgb(110, 118, 129)"] {
    color: var(--muted) !important;
  }
}

@layer human-controls {
  html body .ant-layout-content [style*="color: rgb(72, 79, 88)"] {
    color: #6e6e73 !important;
  }
  html body .bk-device-id,
  html body .bk-battery-text,
  html body .bk-meta-text {
    color: #6e6e73 !important;
  }
  html body .bk-battery-text.bk-charging,
  html body .bk-val-green {
    color: #0b7a45 !important;
  }
  html body .bk-val-blue {
    color: #0071e3 !important;
  }
  html body .bk-val-orange {
    color: #a35a00 !important;
  }
}

@layer human-controls {
  html body .ant-btn:is(.ant-btn-primary, .ant-btn-dangerous) :is(span, div, a) {
    color: inherit !important;
  }
  html body .bk-bank-link {
    color: var(--action) !important;
  }
  html body .ant-layout-content [style*="color: rgb(134, 134, 139)"],
  html body .ant-layout-content [style*="color: #86868b"] {
    color: #6e6e73 !important;
  }
}

@layer human-controls {
  html body .ant-btn-primary:disabled :is(span, div),
  html body .ant-btn-primary[disabled] :is(span, div),
  html body .ant-btn-primary.ant-btn-disabled :is(span, div) {
    color: var(--muted) !important;
  }
  html body .ant-statistic-title,
  html body .ant-descriptions-item-label,
  html body .ant-table-cell .ant-typography-secondary {
    color: var(--muted) !important;
  }
}

@layer human-controls {
  html body .ant-layout-content [style*="color: rgb(110, 118, 129)"],
  html body .ant-layout-content [style*="color: rgb(139, 148, 158)"],
  html body .ant-layout-content [style*="color: rgb(148, 163, 184)"],
  html body .ant-layout-content [style*="color: rgb(134, 134, 139)"] {
    color: #6e6e73 !important;
  }
}

@layer human-controls {
  html body .ant-layout {
    --content-gutter: clamp(16px, 2vw, 32px);
    --toolbar-height: 40px;
    --page-button: 36px;
  }
  html body .ant-layout .ant-layout-content {
    padding-inline: var(--content-gutter) !important;
    padding-top: 24px !important;
    box-sizing: border-box;
  }
  html body .ant-layout-sider { border-inline-end: var(--hairline); }
  html body .ant-layout-sider .ant-menu { border-inline-end: 0 !important; }
  html body .ant-menu :is(.ant-menu-item-group + .ant-menu-item-group, .ant-menu-submenu + .ant-menu-submenu),
  html body .ant-layout-sider .ant-menu + .ant-menu { margin-block-start: 12px; }
  html body .ant-menu .ant-menu-item-divider { margin-block: 12px; border-color: var(--line); }
  html body .ant-menu .ant-menu-item-group-title {
    padding: 4px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted) !important;
  }
  html body .ant-menu :is(.ant-menu-item, .ant-menu-submenu-title) {
    display: flex !important;
    align-items: center;
    height: 44px !important;
    margin-block: 2px;
  }
  html body .ant-menu :is(.anticon, .ant-menu-item-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    line-height: 1;
    font-size: 16px;
  }
  html body .ant-menu :is(.anticon, .ant-menu-item-icon) + .ant-menu-title-content { margin-inline-start: 10px; }
  html body .ant-menu .ant-menu-item:not(.ant-menu-item-selected):hover { background: #f5f5f7 !important; }
  html body .ant-menu-item-selected { font-weight: 600; }
  html body .ant-menu:not(:has(> :is(.ant-menu-item-group, .ant-menu-submenu, .ant-menu-item-divider))) > .ant-menu-item:nth-child(4n + 5) { margin-block-start: 12px; }
  html body .ant-menu-inline-collapsed :is(.ant-menu-item, .ant-menu-submenu-title) {
    justify-content: center;
    padding-inline: 0 !important;
  }
  html body .ant-menu-inline-collapsed :is(.anticon, .ant-menu-item-icon) + .ant-menu-title-content {
    flex: 0 1 0;
    margin-inline: 0;
    overflow: hidden;
  }
  html body .ant-layout .ant-layout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
    height: 52px !important;
    padding: 0 var(--content-gutter) !important;
    border-bottom: var(--hairline);
    line-height: 1.3 !important;
    font-size: 15px;
    font-weight: 600;
  }
  html body .ant-layout-header :is(h1, h2, .page-title, .header-title) {
    margin: 0;
    font-size: 15px !important;
    font-weight: 600;
  }
  html body .ant-layout-header .ant-btn { min-width: 44px; height: 44px; }
  html body .ant-layout-content :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    min-width: 0;
    gap: 8px !important;
    padding: 12px !important;
    background: var(--surface) !important;
    border: var(--hairline) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }
  html body :is(.toolbar, [role="toolbar"], .device-filter-toolbar-dark) .filter-bar {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }
  html body :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark)
    :is(.ant-input:not(textarea), .ant-input-affix-wrapper, .ant-select-single, .ant-select-selector, .ant-picker, .ant-btn) {
    height: var(--toolbar-height) !important;
    min-height: var(--toolbar-height) !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  html body :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark) .ant-input-affix-wrapper > input.ant-input {
    height: 100% !important;
    min-height: 0 !important;
  }
  html body :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark) > .ant-select {
    width: auto !important;
    min-width: 8em;
    flex: 0 1 auto;
  }
  html body :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark) > :is(.ant-input, .ant-input-affix-wrapper) {
    width: min(16em, 100%) !important;
  }
  html body :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark)
    > :is(:nth-child(1 of .ant-btn-primary), .ant-space:has(.ant-btn-primary), .ant-space-item:has(> .ant-btn-primary), .toolbar-actions) {
    order: 1;
    margin-inline-start: auto;
  }
  html body .ant-layout-content > :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark),
  html body .ant-layout-content :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark):has(+ *) { margin-block-end: 16px; }
  html body .ant-layout-content .ant-table { border-radius: 12px; }
  html body .ant-table-content:has(> table > .ant-table-thead) {
    max-block-size: max(240px, calc(100dvh - 192px));
    overflow: auto;
    overscroll-behavior-inline: contain;
  }
  html body .ant-table > .ant-table-container table,
  html body .ant-table-content > table { border-spacing: 0; width: 100%; }
  html body .ant-table-thead > tr > th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    padding: 10px 16px !important;
    font-weight: 500 !important;
    text-align: start;
  }
  html body .ant-table-thead > tr > :is(.ant-table-cell-fix-left, .ant-table-cell-fix-right) { z-index: 3; }
  html body .ant-table-thead > tr > th::before { background: transparent !important; }
  html body .ant-table-tbody > tr > td {
    height: 46px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-variant-numeric: tabular-nums;
  }
  html body .ant-table-tbody > tr:not(.ant-table-row-selected):hover > td { background: #f7f8fa !important; }
  html body .ant-table-cell:has(.ant-btn), html body .ant-table-cell .ant-space:has(.ant-btn) {
    white-space: nowrap;
    flex-wrap: nowrap !important;
  }
  html body .ant-table-cell > .ant-btn + .ant-btn { margin-inline-start: 4px; }
  html body .ant-table-cell .ant-badge-status .ant-badge-status-text { font-size: 13px; }
  html body .ant-table-cell .ant-space:has(.ant-btn),
  html body .ant-table-cell .table-actions { display: inline-flex; align-items: center; gap: 4px !important; }
  html body :is(.ant-layout-header, .ant-table-cell, .card-actions, .ant-card-actions) .ant-btn:not(:disabled, .ant-btn-disabled) {
    min-width: 44px;
    padding-inline: 8px;
    border: 0 !important;
    background: transparent !important;
    color: var(--action) !important;
    font-weight: 500 !important;
  }
  html body .ant-layout-header .ant-btn.ant-btn:not(:disabled) { color: var(--muted) !important; }
  html body :is(.ant-layout-header, .ant-table-cell, .card-actions, .ant-card-actions) .ant-btn:not(:disabled):hover {
    background: #f5f5f7 !important;
  }
  html body .ant-layout .ant-btn.ant-btn-dangerous:not(:disabled, .ant-btn-disabled) {
    color: var(--error) !important;
    background: transparent !important;
    border-color: transparent !important;
  }
  html body .ant-layout-content :is(.device-card, .bk-device-card) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    border: var(--hairline) !important;
    border-radius: 16px !important;
    background: var(--surface) !important;
    box-shadow: none !important;
    transition: border-color var(--feedback);
  }
  html body .ant-layout-content :is(.device-card, .bk-device-card):hover { border-color: var(--control-line) !important; }
  html body .ant-layout-content .bk-device-card.bk-card-selected { border-color: var(--action) !important; }
  html body :is(.device-card, .bk-device-card) :is(.ant-card-body, .device-card-body) { padding: 18px; border-radius: inherit; }
  html body :is(.device-card, .bk-device-card) :is(.bk-header-row, .card-header) {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  html body :is(.device-card, .bk-device-card) :is(.card-title, .bk-device-name, .ant-card-head-title) {
    margin: 0;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  html body .bk-device-card .bk-device-id {
    font-size: 12px !important;
    color: var(--quiet) !important;
    font-variant-numeric: tabular-nums;
  }
  html body :is(.device-card, .bk-device-card) :is(.device-info, :has(> .bk-info-row)):not(.bk-info-row) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }
  html body :is(.device-card, .bk-device-card) :has(> .bk-info-row) > :not(.bk-info-row) { grid-column: 1 / -1; }
  html body .bk-device-card .bk-info-row { min-width: 0; display: grid; align-content: start; gap: 2px; border: 0 !important; }
  html body :is(.device-card, .bk-device-card) :is(.bk-info-label, dt) { font-size: 12px; color: var(--muted) !important; }
  html body :is(.device-card, .bk-device-card) :is(.bk-info-value, dd) { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
  html body :is(.device-card, .bk-device-card) :is(.card-actions, .ant-card-actions) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 44px;
    margin: auto 0 0;
    padding-inline: 10px;
    position: relative !important;
    border-top: 0;
  }
  html body :is(.device-card, .bk-device-card) :is(.card-actions, .ant-card-actions)::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    border-top: var(--hairline);
    pointer-events: none;
  }
  html body .ant-layout-content :is(.device-status, .ant-badge-status:has(> .ant-badge-status-dot)) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f5f5f7;
    font-size: 12px;
    white-space: nowrap;
  }
  html body .ant-badge-status .ant-badge-status-text { margin: 0; font-size: 12px; }
  html body :is(.ant-badge-status .ant-badge-status-dot, .device-status::before) {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
  }
  html body .ant-pagination button .anticon,
  html body .ant-menu .anticon svg { display: block; }
  html body .ant-pagination button .anticon { line-height: 1; }
  html body .bk-device-card .bk-badge-pill {
    border-radius: 999px !important;
    border: 0 !important;
    font-size: 12px;
  }
  html body .device-status::before { content: ""; background: var(--status-dot, var(--quiet)); }
  html body .bk-card-online { --status-dot: var(--success); }
  html body .bk-card-offline { --status-dot: var(--error); }
  html body .ant-layout-content .ant-statistic { position: relative; min-width: 0; }
  html body .ant-layout-content .ant-statistic .ant-statistic-title {
    margin: 0 0 8px;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--muted) !important;
  }
  html body .ant-statistic .ant-statistic-content {
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.025em;
  }
  html body .ant-statistic:has(.anticon) .ant-statistic-title { padding-inline-end: 24px; }
  html body .ant-statistic :is(.ant-statistic-title, .ant-statistic-content-prefix) > .anticon {
    position: absolute;
    inset: 0 0 auto auto;
    font-size: 16px;
    color: var(--quiet) !important;
    filter: grayscale(1);
  }
  html body .ant-progress-line :is(.ant-progress-inner, .ant-progress-bg, .ant-progress-success-bg) {
    height: 6px !important;
    border-radius: 6px;
  }
  html body .ant-layout-content .ant-empty { margin: 0; padding: 48px 16px; text-align: center; }
  html body .empty-panel:has(.ant-empty) { padding: 0 !important; border-radius: 16px; }
  html body .ant-layout-content .empty-panel .ant-empty { background: transparent !important; border-radius: inherit; }
  html body .ant-empty .ant-empty-image { height: 40px; margin: 0 auto 12px; color: #c7c7cc; }
  html body .ant-empty-image :is(svg, img, .anticon) { width: 40px; height: 40px; font-size: 40px; }
  html body .ant-empty :is(.ant-empty-title, h3, h4) { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
  html body .ant-layout-content .ant-empty .ant-empty-description { margin: 0; font-size: 13px; color: var(--muted) !important; }
  html body .ant-empty .ant-empty-footer { margin-block-start: 16px; }
  html body .ant-empty .ant-btn.ant-btn:not(:disabled, .ant-btn-disabled) {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border: 1px solid var(--control-line) !important;
  }
  html body .ant-layout-content .ant-pagination {
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 16px 0 0 !important;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  html body .ant-pagination :is(.ant-pagination-prev, .ant-pagination-next, .ant-pagination-item),
  html body .ant-pagination :is(.ant-pagination-prev, .ant-pagination-next) button {
    box-sizing: border-box;
    min-width: var(--page-button);
    height: var(--page-button);
    margin: 0;
    border: 0;
    border-radius: var(--r-md);
    line-height: var(--page-button);
    text-align: center;
    background: transparent !important;
  }
  html body .ant-pagination .ant-pagination-item a { display: block; }
  html body .ant-pagination :is(.ant-pagination-prev, .ant-pagination-next) button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 0 !important;
  }
  html body .ant-pagination .ant-pagination-item.ant-pagination-item-active { background: #eaf3ff !important; }
  html body .ant-pagination .ant-pagination-item-active a { color: var(--action-active) !important; font-weight: 600; }
  html body .ant-layout-content :is(.device-grid, .stats-grid, .form-layout) {
    display: grid;
    align-items: start;
    gap: 16px;
    min-width: 0;
  }
  html body .ant-layout-content .device-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
  html body .ant-layout-content .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html body .ant-layout-content .form-layout { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr); }
  html body .form-layout > :is(.profile, .profile-card, .form-card) {
    background: var(--surface) !important;
    border: var(--hairline);
    border-radius: 16px;
    padding: 24px;
  }
  html body .ant-layout-content .stats-header > :is(h1, h2, .page-title) { flex: 0 1 auto !important; min-inline-size: fit-content; }
  @media (max-width: 760px) {
    html body .ant-layout-content .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 600px), (any-pointer: coarse) {
    html body .ant-layout { --toolbar-height: 44px; --page-button: 44px; }
    html body :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark) .ant-input-affix-wrapper > input.ant-input {
      min-height: 44px !important;
    }
  }
  @media (max-width: 600px) {
    html body .ant-layout { --content-gutter: 12px; }
    html body :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark) .ant-input-affix-wrapper {
      gap: 6px !important;
      padding-inline: 8px !important;
    }
    html body :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark) .ant-input-affix-wrapper > input.ant-input {
      padding-inline: 0 !important;
    }
    html body .ant-layout .ant-layout-content { padding-top: 16px !important; }
    html body .ant-layout-content :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark) {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html body :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark)
      > :is(.ant-btn, .ant-select, .ant-input, .ant-input-affix-wrapper, .ant-space-item, .ant-picker, .ant-form-item) {
      width: 100% !important;
      min-width: 0 !important;
      margin-inline: 0;
    }
    html body :is(.toolbar, [role="toolbar"], .device-filter-toolbar-dark)
      > :is(.filter-bar, .ant-form-inline, .toolbar-actions, .ant-space, h1, h2, .page-title) { grid-column: 1 / -1; }
    html body :is(.toolbar, [role="toolbar"], .device-filter-toolbar-dark) > :is(.ant-space, .toolbar-actions) {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
    }
    html body :is(.toolbar, .filter-bar, [role="toolbar"], .device-filter-toolbar-dark) .ant-space-item > * { width: 100% !important; min-width: 0; }
    html body .ant-layout-content .form-layout { grid-template-columns: minmax(0, 1fr); }
    html body .form-layout > :is(.profile, .profile-card, .form-card) { padding: 16px; }
  }
}

@layer human-controls {
  html body .ant-layout-content .stats-header {
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
  }
  html body .ant-layout-content .section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 24px 0 12px;
  }
  html body .ant-layout-content :is(.section-heading, .stats-header) > span { color: var(--muted); font-size: 12px; }
  html body .ant-layout-content .section-heading .section-title { font-size: 15px; }
  html body .bk-header-row > .ant-badge-status { margin-inline-start: auto; }
  html body .bk-device-card .bk-header-row + .device-info { margin-block: 18px 0 !important; }
  html body .ant-layout-content .ant-pagination-total-text { margin-inline-end: 8px; }
}

@layer human-controls {
  html body .bk-device-id,
  html body .bk-device-meta,
  html body .bk-info-label {
    color: #6e6e73 !important;
  }
  html body .bk-info-value,
  html body .bk-device-name {
    color: #1d1d1f !important;
  }
  html body .bk-battery-text {
    color: #6e6e73 !important;
  }
  html body .bk-battery-text.bk-charging,
  html body .bk-val-green {
    color: #0b7a45 !important;
  }
}

@layer human-controls {
  html body .bk-device-card .bk-device-id,
  html body .bk-device-card .bk-device-meta,
  html body .bk-device-card .bk-info-label,
  html body .bk-device-card .bk-battery-text {
    color: #6e6e73 !important;
  }
  html body .bk-device-card .bk-info-value,
  html body .bk-device-card .bk-device-name {
    color: #1d1d1f !important;
  }
  html body .bk-device-card .bk-battery-text.bk-charging,
  html body .bk-device-card .bk-val-green {
    color: #0b7a45 !important;
  }
}

@media (max-width: 600px) {
  html body .ant-layout-content .ant-table table {
    min-width: 760px;
  }
  html body .ant-layout-content .ant-table-cell {
    white-space: nowrap;
  }
  html body .ant-layout-content .ant-table-cell .ant-typography,
  html body .ant-layout-content .ant-table-cell div {
    white-space: normal;
  }
}

@layer human-controls {
  html body .ant-layout-content :is(span, div, p, a, b, strong)[style*="color: rgb(255, 255, 255)"]:not(.ant-btn-primary *):not(.ant-btn-dangerous *):not(.ant-tag *),
  html body .ant-layout-content :is(span, div, p, a)[style*="color: #fff"]:not(.ant-btn-primary *):not(.ant-btn-dangerous *) {
    color: #1d1d1f !important;
  }
  html body .ant-layout-content [style*="color: rgba(148, 163, 184, 0.6)"],
  html body .ant-layout-content [style*="color: rgba(148, 163, 184, 0.7)"],
  html body .ant-layout-content [style*="color: rgba(148, 163, 184, 0.8)"] {
    color: #6e6e73 !important;
  }
}

@layer human-controls {
  html body .device-filter-toolbar-dark {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    padding: 12px;
    background: var(--surface) !important;
    border: var(--hairline) !important;
    border-radius: var(--r-md) !important;
    box-shadow: none !important;
    margin-bottom: 12px;
  }
  html body .device-filter-toolbar-dark .ant-form-item {
    margin: 0 !important;
  }
  html body .device-filter-toolbar-dark .ant-form-item-label > label,
  html body .device-filter-toolbar-dark label {
    font-size: 12px !important;
    color: var(--muted) !important;
    height: 20px;
  }
  html body .device-filter-toolbar-dark :is(.ant-input, .ant-input-affix-wrapper, .ant-select-selector, .ant-picker) {
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    border: 1px solid var(--control-line) !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
    font-size: 13px !important;
    box-shadow: none !important;
  }
  html body .device-filter-toolbar-dark .ant-select {
    min-width: 132px;
  }
  html body .device-filter-toolbar-dark :is(.ant-input-affix-wrapper, .ant-select-selector, .ant-picker):focus-within,
  html body .device-filter-toolbar-dark :is(.ant-input, .ant-select-selector, .ant-picker):focus {
    border-color: var(--action) !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, .18) !important;
  }
  html body .device-filter-toolbar-dark :is(.ant-input, .ant-select-selection-item, .ant-select-selection-placeholder, .ant-picker-input > input) {
    font-size: 13px !important;
  }
  html body .device-filter-toolbar-dark :is(.ant-select-selection-placeholder, .ant-input::placeholder, .ant-picker-input > input::placeholder) {
    color: var(--quiet) !important;
  }
  html body .device-filter-toolbar-dark .anticon {
    color: var(--quiet) !important;
    font-size: 13px;
  }
  html body .device-filter-toolbar-dark .ant-btn {
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    padding-inline: 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }
}

@layer human-controls {
  html body .bk-header-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 10px;
    align-items: start;
  }
  html body .bk-device-left {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
  }
  html body .bk-phone-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--raised) !important;
    color: var(--muted) !important;
  }
  html body .bk-phone-btn:hover {
    border-color: rgba(0, 0, 0, .2);
    background: #f2f2f4 !important;
  }
  html body .bk-device-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word;
  }
  html body .bk-device-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 11px !important;
    letter-spacing: .04em;
    color: var(--quiet) !important;
    margin-top: 2px !important;
    user-select: all;
    word-break: break-all;
    white-space: normal !important;
  }
  html body .bk-actions-container {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  html body .bk-ghost-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--muted) !important;
    display: inline-grid;
    place-items: center;
  }
  html body .bk-ghost-btn svg {
    width: 16px;
    height: 16px;
  }
  html body .bk-ghost-btn:hover {
    background: #f2f2f4 !important;
    color: var(--ink) !important;
  }
  html body .bk-ghost-btn.btn-delete {
    color: var(--error) !important;
  }
  html body .bk-ghost-btn.btn-delete:hover {
    background: rgba(215, 0, 21, .08) !important;
  }
  html body .bk-tip-container {
    display: inline-flex;
  }
}

@layer human-controls {
  html body .ant-table-cell-fix-right,
  html body .ant-table-cell-fix-right-first {
    background: var(--surface) !important;
    box-shadow: -8px 0 12px -10px rgba(0, 0, 0, .25) !important;
    white-space: nowrap;
  }
  html body .ant-table-tbody > tr:hover > .ant-table-cell-fix-right {
    background: #f7f8fa !important;
  }
  html body .ant-table-cell .ant-btn {
    height: 30px !important;
    min-height: 30px !important;
    padding-inline: 8px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
  }
  html body .ant-table-cell .ant-btn-sm {
    height: 28px !important;
    min-height: 28px !important;
  }
}

@layer human-controls {
  html body .ant-spin-blur {
    opacity: 1 !important;
  }
  html body .ant-spin-blur::after {
    background: rgba(245, 245, 247, .72) !important;
    backdrop-filter: blur(2px);
  }
  html body .ant-spin .ant-spin-dot-item,
  html body .ant-spin-dot-item {
    background: var(--action) !important;
  }
  html body .ant-spin-text {
    color: var(--muted) !important;
    font-size: 13px !important;
  }
  html body .ant-spin-container .ant-skeleton-content .ant-skeleton-title,
  html body .ant-skeleton-active .ant-skeleton-title,
  html body .ant-skeleton-active .ant-skeleton-paragraph > li {
    background: linear-gradient(90deg, #eeeef0 25%, #f6f6f7 37%, #eeeef0 63%) !important;
  }
}

@layer human-controls {
  html body .ant-layout-content .ant-btn-primary {
    background: var(--action) !important;
    border-color: var(--action) !important;
    color: #ffffff !important;
  }
  html body .ant-layout-content .ant-btn-primary :is(span, div, a) {
    color: #ffffff !important;
  }
  html body .ant-layout-content .ant-btn-primary:hover {
    background: var(--action-hover) !important;
    border-color: var(--action-hover) !important;
  }
  html body .ant-layout-content .ant-btn-primary:disabled,
  html body .ant-layout-content .ant-btn-primary[disabled] {
    background: #f2f2f4 !important;
    border-color: var(--line) !important;
  }
  html body .ant-layout-content .ant-btn-primary:disabled :is(span, div),
  html body .ant-layout-content .ant-btn-primary[disabled] :is(span, div) {
    color: var(--muted) !important;
  }
  html body .ant-layout-content [style*="background: rgba(18, 16, 40, 0.55)"],
  html body .ant-layout-content [style*="background-color: rgba(18, 16, 40, 0.55)"] {
    background: var(--surface) !important;
    border-color: var(--line) !important;
    box-shadow: var(--surface-shadow) !important;
  }
}

@layer human-controls {
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.25)"] { color: #86868b !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.3)"] { color: #7c7c80 !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.35)"] { color: #7c7c80 !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.4)"] { color: #75757a !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.45)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.5)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.55)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.6)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.65)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.7)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.75)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.8)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.85)"] { color: #6e6e73 !important; }
  html body .ant-layout-content [style*="color: rgba(255, 255, 255, 0.9)"] { color: #5c5c61 !important; }
}

@layer human-controls {
  html body .ant-layout-content [style*="background: rgb(26, 36, 54)"],
  html body .ant-layout-content [style*="background-color: rgb(26, 36, 54)"] { background: #ffffff !important; border-color: var(--line) !important; }
  html body .ant-layout-content [style*="background: rgba(3, 10, 35, 0.86)"],
  html body .ant-layout-content [style*="background-color: rgba(3, 10, 35, 0.86)"] { background: #ffffff !important; border-color: var(--line) !important; }
  html body .ant-layout-content [style*="background: rgba(3, 10, 35, 0.6)"],
  html body .ant-layout-content [style*="background-color: rgba(3, 10, 35, 0.6)"] { background: #ffffff !important; border-color: var(--line) !important; }
  html body .ant-layout-content [style*="background: rgba(15, 23, 42, 0.55)"],
  html body .ant-layout-content [style*="background-color: rgba(15, 23, 42, 0.55)"] { background: #ffffff !important; border-color: var(--line) !important; }
  html body .ant-layout-content [style*="background: rgba(13, 17, 23, 0.7)"],
  html body .ant-layout-content [style*="background-color: rgba(13, 17, 23, 0.7)"] { background: #ffffff !important; border-color: var(--line) !important; }
  html body .ant-layout-content [style*="background: rgb(31, 31, 31)"],
  html body .ant-layout-content [style*="background-color: rgb(31, 31, 31)"] { background: #ffffff !important; border-color: var(--line) !important; }
  html body .ant-layout-content [style*="background: rgb(33, 38, 45)"],
  html body .ant-layout-content [style*="background-color: rgb(33, 38, 45)"] { background: #ffffff !important; border-color: var(--line) !important; }
  html body .ant-layout-content [style*="background: rgba(10, 18, 35, 0.4)"],
  html body .ant-layout-content [style*="background-color: rgba(10, 18, 35, 0.4)"] { background: #f7f7f9 !important; border-color: var(--line) !important; }
}

@layer human-controls {
  html body .ant-layout-content .ant-table-thead :is(th, span, div)[style*="color: rgb(230, 237, 243)"],
  html body .ant-layout-content .ant-table-thead [style*="color: rgb(230, 237, 243)"] {
    color: #6e6e73 !important;
  }
  html body .ant-layout-content [style*="color: rgba(139, 92, 246, 0.8)"],
  html body .ant-layout-content [style*="color: rgb(139, 92, 246)"] {
    color: #6b46c1 !important;
  }
}

@layer human-controls {
  html body .ant-layout-content .ant-table-thead th,
  html body .ant-layout-content .ant-table-thead th * {
    color: var(--muted) !important;
  }
  html body .ant-layout-content .ant-form-item-label > label,
  html body .ant-layout-content .ant-form-item-label > label * {
    color: var(--ink) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }
  html body .ant-layout-content .ant-form-item-extra,
  html body .ant-layout-content .ant-form-item-explain,
  html body .ant-layout-content .ant-form-item-explain * {
    color: var(--muted) !important;
    font-size: 12px !important;
  }
  html body .ant-layout-content .ant-tag {
    border-radius: 6px !important;
    font-size: 12px !important;
    line-height: 20px !important;
    padding-inline: 8px !important;
    border: 1px solid var(--line) !important;
    background: var(--raised) !important;
    color: var(--ink) !important;
    margin-inline-end: 0 !important;
  }
  html body .ant-layout-content .ant-tag-success,
  html body .ant-layout-content .ant-tag-green {
    background: rgba(15, 157, 88, .10) !important;
    border-color: rgba(15, 157, 88, .28) !important;
    color: #0b7a45 !important;
  }
  html body .ant-layout-content .ant-tag-error,
  html body .ant-layout-content .ant-tag-red {
    background: rgba(215, 0, 21, .08) !important;
    border-color: rgba(215, 0, 21, .25) !important;
    color: #b3001b !important;
  }
  html body .ant-layout-content .ant-tag-warning,
  html body .ant-layout-content .ant-tag-orange {
    background: rgba(178, 107, 0, .10) !important;
    border-color: rgba(178, 107, 0, .25) !important;
    color: #8a5300 !important;
  }
}

@layer human-controls {
  html body .ant-layout-content .ant-btn-primary.ant-btn-dangerous {
    background: var(--error) !important;
    border-color: var(--error) !important;
  }
  html body .ant-layout-content .ant-btn-primary.ant-btn-dangerous :is(span, div) {
    color: #ffffff !important;
  }
  html body .ant-layout-content .ant-btn-primary.ant-btn-dangerous:hover {
    background: #b3001b !important;
    border-color: #b3001b !important;
  }
  html body .ant-avatar {
    background: var(--action) !important;
    color: #ffffff !important;
  }
}

:root {
  --quiet: #6e6e73;
}

@layer human-controls {
  html body .ant-layout-content :is(.ant-select-selection-placeholder, .ant-select-arrow, .ant-input-clear-icon, .ant-picker-suffix) {
    color: #6e6e73 !important;
  }
  html body .ant-layout-content .ant-input::placeholder,
  html body .ant-layout-content .ant-picker-input > input::placeholder,
  html body .ant-layout-content textarea.ant-input::placeholder {
    color: #6e6e73 !important;
  }
  html body .ant-layout-content .ant-table-thead th,
  html body .ant-layout-content .ant-table-thead th * {
    color: #6e6e73 !important;
  }
}

@layer human-controls {
  html body .ant-layout-content [style*="color: rgb(16, 185, 129)"],
  html body .ant-layout-content [style*="color: rgba(78, 201, 138, 0.8)"],
  html body .ant-layout-content [style*="color: rgb(78, 201, 138)"],
  html body .ant-layout-content [style*="color: rgb(74, 222, 128)"] {
    color: #0b7a45 !important;
  }
  html body .ant-layout-content .ant-btn-primary.ant-btn-disabled,
  html body .ant-layout-content .ant-btn-primary:disabled {
    background: #f2f2f4 !important;
    border-color: var(--line) !important;
    color: var(--muted) !important;
  }
  html body .ant-layout-content .ant-btn-primary.ant-btn-disabled :is(span, div, a),
  html body .ant-layout-content .ant-btn-primary:disabled :is(span, div, a) {
    color: var(--muted) !important;
  }
}

@layer human-controls {
  html body #root .ant-layout-content .ant-btn-primary {
    background: var(--action) !important;
    border-color: var(--action) !important;
    color: #ffffff !important;
  }
  html body #root .ant-layout-content .ant-btn-primary :is(span, div, a) {
    color: #ffffff !important;
  }
  html body #root .ant-layout-content .ant-btn-primary.ant-btn-dangerous {
    background: var(--error) !important;
    border-color: var(--error) !important;
  }
  html body #root .ant-layout-content .ant-btn-primary.ant-btn-disabled,
  html body #root .ant-layout-content .ant-btn-primary:disabled {
    background: #f2f2f4 !important;
    border-color: var(--line) !important;
  }
  html body #root .ant-layout-content .ant-btn-primary.ant-btn-disabled :is(span, div, a),
  html body #root .ant-layout-content .ant-btn-primary:disabled :is(span, div, a) {
    color: var(--muted) !important;
  }
}

@media (min-width: 601px) {
  html body .device-filter-toolbar-dark { align-items: flex-end !important; }
  html body .device-filter-toolbar-dark .ant-form-item { flex: 0 1 172px !important; min-width: 150px !important; }
  html body .device-filter-toolbar-dark .ant-form-item-label { padding-bottom: 2px !important; }
  html body .device-filter-toolbar-dark .ant-form-item-label > label { height: 16px !important; font-size: 11px !important; }
}
@media (max-width: 600px) {
  html body .device-filter-toolbar-dark {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  html body .device-filter-toolbar-dark .ant-form-item { min-width: 0 !important; width: 100% !important; }
  html body .device-filter-toolbar-dark :is(.ant-input, .ant-input-affix-wrapper, .ant-select-selector, .ant-picker) { height: 40px !important; min-height: 40px !important; }
  html body .device-filter-toolbar-dark .ant-btn { height: 40px !important; width: 100% !important; }
}

@layer human-controls {
  html body .device-filter-toolbar-dark form.ant-form-inline {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    gap: 8px !important;
    width: auto !important;
  }
  html body .device-filter-toolbar-dark form.ant-form-inline .ant-form-item {
    flex: 0 1 176px !important;
    min-width: 150px !important;
    margin: 0 !important;
  }
  html body .device-filter-toolbar-dark form.ant-form-inline .ant-form-item-label {
    padding: 0 0 2px !important;
  }
  html body .device-filter-toolbar-dark form.ant-form-inline .ant-form-item-label > label {
    height: 16px !important;
    font-size: 11px !important;
    color: var(--muted) !important;
  }
}

@media (max-width: 600px) {
  html body .device-filter-toolbar-dark {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  html body .device-filter-toolbar-dark > div:nth-child(2) {
    flex-wrap: wrap !important;
    row-gap: 8px !important;
    height: auto !important;
  }
  html body .device-filter-toolbar-dark > div:last-child {
    flex-direction: column !important;
    gap: 8px !important;
  }
  html body .device-filter-toolbar-dark form.ant-form-inline {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  html body .device-filter-toolbar-dark form.ant-form-inline .ant-form-item {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }
}

@media (min-width: 992px) {
  html body .ant-layout-sider {
    width: 232px !important;
    min-width: 232px !important;
    max-width: 232px !important;
    flex: 0 0 232px !important;
  }
}

@media (max-width: 991px) {
  html body .ant-layout-sider {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    flex: 0 0 72px !important;
  }
  html body .ant-layout-has-sider > .ant-layout {
    padding-left: 72px !important;
    min-width: 0 !important;
  }
  html body .ant-layout-has-sider {
    min-height: 100vh;
  }
}

@layer human-controls {
  @media (min-width: 992px) {
    html body .ant-layout-sider {
      width: 232px !important;
      min-width: 232px !important;
      max-width: 232px !important;
      flex: 0 0 232px !important;
    }
  }
  @media (max-width: 991px) {
    html body .ant-layout-sider {
      width: 72px !important;
      min-width: 72px !important;
      max-width: 72px !important;
      flex: 0 0 72px !important;
    }
    html body .ant-layout-has-sider > .ant-layout {
      padding-left: 72px !important;
      min-width: 0 !important;
    }
  }
  @media (max-width: 600px) {
    html body .device-filter-toolbar-dark {
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 10px !important;
    }
    html body .device-filter-toolbar-dark > div:nth-child(2) {
      flex-wrap: wrap !important;
      row-gap: 8px !important;
      height: auto !important;
    }
    html body .device-filter-toolbar-dark > div:last-child {
      flex-direction: column !important;
      gap: 8px !important;
    }
    html body .device-filter-toolbar-dark form.ant-form-inline {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 8px !important;
      width: 100% !important;
    }
    html body .device-filter-toolbar-dark form.ant-form-inline .ant-form-item {
      min-width: 0 !important;
      width: 100% !important;
      flex: 1 1 auto !important;
    }
  }
  @media (min-width: 601px) {
    html body .device-filter-toolbar-dark form.ant-form-inline {
      display: flex !important;
      flex-wrap: wrap !important;
      align-items: flex-end !important;
      gap: 8px !important;
    }
    html body .device-filter-toolbar-dark form.ant-form-inline .ant-form-item {
      flex: 0 1 176px !important;
      min-width: 150px !important;
      margin: 0 !important;
    }
  }
}

@layer human-controls {
  @media (min-width: 992px) {
    html body .device-filter-toolbar-dark form.ant-form-inline .ant-form-item {
      flex: 0 1 142px !important;
      min-width: 124px !important;
    }
  }
  @media (max-width: 600px) {
    html body .device-filter-toolbar-dark .ant-form-item-label > label {
      font-size: 10px !important;
      height: 14px !important;
    }
    html body .device-filter-toolbar-dark > div:nth-child(2) .ant-btn {
      width: auto !important;
      padding-inline: 10px !important;
    }
  }
}

@layer human-controls {
  @media (max-width: 600px) {
    html body .device-filter-toolbar-dark form.ant-form-inline {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    html body .device-filter-toolbar-dark form.ant-form-inline .ant-form-item {
      grid-column: auto !important;
    }
  }
}

@layer human-controls {
  html body .ant-layout-content [style*="background: rgb(21, 29, 44)"] {
    background: #ffffff !important;
    border-color: var(--line) !important;
    box-shadow: none !important;
  }
  html body .ant-layout-content [style*="background: rgb(21, 29, 44)"]:hover {
    background: #f7f8fa !important;
    border-color: rgba(0, 0, 0, .16) !important;
  }
  html body .ant-layout-content [style*="width: 220px"][style*="flex-wrap: wrap"] {
    width: 252px !important;
    gap: 4px !important;
  }
  html body .ant-layout-content [style*="width: 220px"] button {
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    border: 1px solid var(--line) !important;
    background: #ffffff !important;
    color: var(--muted) !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }
  html body .ant-layout-content [style*="width: 220px"] button:hover {
    color: var(--ink) !important;
    border-color: rgba(0, 0, 0, .2) !important;
    background: #f7f8fa !important;
  }
  html body .ant-layout-content [style*="width: 220px"] button[style*="not-allowed"] {
    opacity: .5;
  }
  html body .ant-layout-content [style*="color: rgb(248, 113, 113)"] {
    color: #c81e1e !important;
  }
  html body .ant-layout-content [style*="color: rgb(74, 222, 128)"] {
    color: #0b7a45 !important;
  }
}

@layer human-controls {
  body.dv-list, body.dv-live {
    --dv-bg: #ffffff;
    --dv-soft: #f7f7f9;
    --dv-hover: #fafafc;
    --dv-line: #e6e6ea;
    --dv-ink: #1d1d1f;
    --dv-sub: #6e6e73;
    --dv-accent: #0071e3;
    --dv-accent-soft: rgba(0, 113, 227, .08);
    --dv-green: #0b7a45;
    --dv-green-soft: rgba(15, 157, 88, .1);
    --dv-red: #c8321f;
    --dv-red-soft: rgba(215, 0, 21, .07);
    --dv-amber: #a35a00;
    --dv-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  }

  html body.dv-list .ant-layout-content .dv-toolbar { margin-block-end: 14px !important; }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark,
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark,
  html body.dv-live .ant-layout-content .device-filter-toolbar-dark {
    background: var(--dv-bg) !important;
    border: 1px solid var(--dv-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--dv-shadow) !important;
    padding: 12px !important;
    gap: 10px !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px !important;
    width: 100%;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(1) {
    display: inline-flex;
    padding: 3px !important;
    gap: 2px !important;
    background: var(--dv-soft) !important;
    border-radius: 9px !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(1) > button {
    height: 28px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: var(--dv-sub) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: background var(--feedback), color var(--feedback);
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(1) > button[style*="linear-gradient"] {
    background: var(--dv-bg) !important;
    color: var(--dv-ink) !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12) !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark .ant-btn {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    border: 1px solid var(--dv-line) !important;
    background: var(--dv-bg) !important;
    box-shadow: none !important;
    color: var(--dv-ink) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    text-shadow: none !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark .ant-btn:is(.ant-btn-dangerous, .ant-btn-danger) {
    color: var(--dv-red) !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark .ant-btn:disabled {
    color: var(--dv-sub) !important;
    opacity: .7;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark .ant-btn:not(:disabled):hover {
    background: var(--dv-soft) !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > button.ant-btn-primary:not(.ant-btn-dangerous) {
    color: var(--dv-accent) !important;
    border-color: var(--dv-accent) !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(4) {
    height: 32px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    background: var(--dv-soft) !important;
    border: 1px solid var(--dv-line) !important;
    color: var(--dv-sub) !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(4) :is(span, div) {
    color: var(--dv-sub) !important;
    text-shadow: none !important;
    font-family: var(--ui-font) !important;
    font-weight: 500 !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(4) :is(span, div)[style*="font-weight: 800"] {
    color: var(--dv-ink) !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(7) {
    display: inline-flex;
    gap: 6px;
    margin-inline-start: auto;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(7) > button {
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    border: 1px solid var(--dv-line) !important;
    background: var(--dv-bg) !important;
    color: var(--dv-sub) !important;
    font-size: 12.5px !important;
    cursor: pointer;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(7) > button[style*="rgb(16, 185, 129)"],
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(7) > button[style*="0, 140, 255"] {
    background: var(--dv-green-soft) !important;
    border-color: transparent !important;
    color: var(--dv-green) !important;
    font-weight: 600 !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px !important;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--dv-line);
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark :is(.ant-select-selector, .ant-picker, .ant-input, .ant-input-affix-wrapper) {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 8px !important;
    border-color: var(--dv-line) !important;
    background: var(--dv-bg) !important;
    color: var(--dv-ink) !important;
    font-size: 12.5px !important;
    box-shadow: none !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark :is(input, .ant-select-selection-item, .ant-select-selection-placeholder, .ant-picker-input > input) {
    color: var(--dv-ink) !important;
    font-size: 12.5px !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type .ant-btn-primary {
    background: var(--dv-bg) !important;
    border-color: var(--dv-line) !important;
    color: var(--dv-ink) !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type .ant-btn-dangerous {
    color: var(--dv-red) !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type .ant-btn-primary :is(span, div) {
    color: var(--dv-ink) !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type .ant-btn-dangerous :is(span, div) {
    color: var(--dv-red) !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type .ant-btn:disabled :is(span, div) {
    color: var(--dv-sub) !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type .ant-btn-primary {
    background: var(--dv-accent) !important;
    border-color: transparent !important;
    color: #fff !important;
  }
  html body.dv-list .ant-layout-content .device-filter-toolbar-dark input::placeholder { color: var(--dv-sub) !important; }

  html body.dv-list .ant-layout-content .dv-listwrap {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    background: var(--dv-bg) !important;
    border: 1px solid var(--dv-line) !important;
    border-radius: 14px !important;
    overflow-x: auto;
    box-shadow: var(--dv-shadow) !important;
    scrollbar-width: thin;
  }
  html body.dv-list .ant-layout-content .dv-head,
  html body.dv-list .ant-layout-content .dv-row {
    display: grid !important;
    align-items: center;
    box-sizing: border-box;
    column-gap: 8px !important;
    width: 100%;
    min-width: 1010px;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--dv-bg) !important;
    grid-template-columns: 28px 56px minmax(146px, 1.3fr) 56px 40px 56px 64px 34px 34px 34px 54px 86px 76px 1fr 220px;
    grid-template-areas:
      "c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14";
  }
  html body.dv-list .ant-layout-content .dv-c0 { grid-area: c0; }
  html body.dv-list .ant-layout-content .dv-c1 { grid-area: c1; }
  html body.dv-list .ant-layout-content .dv-row .dv-c2[style] { grid-area: c2; }
  html body.dv-list .ant-layout-content .dv-c3 { grid-area: c3; }
  html body.dv-list .ant-layout-content .dv-c4 { grid-area: c4; }
  html body.dv-list .ant-layout-content .dv-c5 { grid-area: c5; }
  html body.dv-list .ant-layout-content .dv-row .dv-c6[style] { grid-area: c6; }
  html body.dv-list .ant-layout-content .dv-c7 { grid-area: c7; }
  html body.dv-list .ant-layout-content .dv-c8 { grid-area: c8; }
  html body.dv-list .ant-layout-content .dv-row .dv-c9 { grid-area: c9; }
  html body.dv-list .ant-layout-content .dv-row .dv-c10[style] { grid-area: c10; }
  html body.dv-list .ant-layout-content .dv-row .dv-c11[style] { grid-area: c11; }
  html body.dv-list .ant-layout-content .dv-c12 { grid-area: c12; }
  html body.dv-list .ant-layout-content .dv-c13 { grid-area: c13; }
  html body .ant-layout-content .dv-c14 { grid-area: c14; }
  html body.dv-list .ant-layout-content .dv-c9 { text-align: center; }
  html body.dv-list .ant-layout-content .dv-head {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    height: 40px;
    background: var(--dv-soft) !important;
    border-bottom: 1px solid var(--dv-line) !important;
    color: var(--dv-sub) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: .02em;
  }
  html body.dv-list .ant-layout-content .dv-row {
    height: 60px;
    border-bottom: 1px solid var(--dv-line) !important;
    cursor: pointer;
    transition: background var(--feedback);
  }
  html body.dv-list .ant-layout-content .dv-row:last-child { border-bottom: 0 !important; }
  html body.dv-list .ant-layout-content .dv-row:hover { background: var(--dv-hover) !important; }
  html body.dv-list .ant-layout-content .dv-row:has(input:focus) { background: var(--dv-hover) !important; }
  html body.dv-list .ant-layout-content .dv-row .dv-cell[style] {
    width: auto !important;
    min-width: 0;
    flex: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--dv-ink) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-shadow: none !important;
  }
  html body.dv-list .ant-layout-content .dv-head .dv-cell { color: var(--dv-sub) !important; font-size: 11.5px !important; font-weight: 600 !important; }
  html body.dv-list .ant-layout-content .dv-c0 { display: flex; align-items: center; }
  html body.dv-list .ant-layout-content .dv-row .dv-c1 > div[style] {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--dv-ink) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
  }
  html body.dv-list .ant-layout-content .dv-c1 > div > div { box-shadow: none !important; width: 7px !important; height: 7px !important; }
  html body.dv-list .ant-layout-content .dv-row .dv-c2[style] { font-size: 13.5px !important; font-weight: 600 !important; letter-spacing: -.01em; }
  html body.dv-list .ant-layout-content .dv-c5 { font-variant-numeric: tabular-nums; }
  html body.dv-list .ant-layout-content .dv-row .dv-c6[style] { color: var(--dv-sub) !important; font-size: 12px !important; }
  html body.dv-list .ant-layout-content .dv-row .dv-c9 { color: var(--dv-red) !important; font-weight: 700 !important; text-align: center; }
  html body.dv-list .ant-layout-content .dv-row .dv-c10[style] { font-variant-numeric: tabular-nums; font-weight: 500 !important; }
  html body.dv-list .ant-layout-content .dv-row .dv-c11[style] { color: var(--dv-sub) !important; font-size: 12.5px !important; font-variant-numeric: tabular-nums; }
  html body.dv-list .ant-layout-content .dv-c12 { padding-inline-end: 4px; }
  html body.dv-list .ant-layout-content .dv-c12 input {
    width: 100% !important;
    height: 30px !important;
    padding: 0 10px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--dv-ink) !important;
    font-size: 12.5px !important;
    box-shadow: none !important;
  }
  html body.dv-list .ant-layout-content .dv-c12 input::placeholder { color: var(--dv-sub) !important; }
  html body.dv-list .ant-layout-content .dv-c12 input:hover { border-color: var(--dv-line) !important; }
  html body.dv-list .ant-layout-content .dv-c12 input:focus { border-color: var(--dv-accent) !important; background: var(--dv-bg) !important; }
  html body #root .ant-layout-content .dv-c14[style*="width: 220px"] {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: center;
    justify-content: end;
    gap: 4px !important;
  }
  html body .ant-layout-content .dv-c14 > button {
    height: 26px !important;
    font-size: 11.5px !important;
    min-width: 0;
    padding: 0 4px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: var(--dv-sub) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--feedback), color var(--feedback);
  }
  html body .ant-layout-content .dv-c14 > button:not(:disabled):hover { background: var(--dv-soft) !important; color: var(--dv-ink) !important; }
  html body .ant-layout-content .dv-c14 > button:disabled { opacity: .4; cursor: not-allowed; }
  html body .ant-layout-content .dv-c14 > button:first-child {
    color: var(--dv-accent) !important;
    background: var(--dv-accent-soft) !important;
    border-color: transparent !important;
    font-weight: 600 !important;
  }
  html body .ant-layout-content .dv-c14 > button:first-child:not(:disabled):hover { background: var(--dv-accent) !important; color: #fff !important; }
  html body .ant-layout-content .dv-c14 > button:first-child:disabled { color: var(--dv-sub) !important; background: var(--dv-soft) !important; }
  html body .ant-layout-content .dv-c14 > button:last-child:not(:disabled) { color: var(--dv-red) !important; }
  html body .ant-layout-content .dv-c14 > button:last-child:not(:disabled):hover { background: var(--dv-red-soft) !important; }
  html body.dv-list .ant-layout-content .ant-empty { color: var(--dv-sub) !important; }

  @media (min-width: 1600px) {
    html body.dv-list .ant-layout-content .dv-head,
    html body.dv-list .ant-layout-content .dv-row {
      grid-template-columns: 28px 60px minmax(142px, 1.6fr) 68px 48px 68px 80px 38px 38px 38px 58px 100px 104px 1fr 220px;
    }
  }
  @media (max-width: 1279px) {
    html body.dv-list .ant-layout-content .dv-head,
    html body.dv-list .ant-layout-content .dv-row {
      grid-template-columns: 28px 52px minmax(136px, 1fr) 56px 40px 56px 64px 34px 34px 34px 52px 86px 74px 1fr 220px;
      column-gap: 6px !important;
    }
    html body.dv-list .ant-layout-content .dv-c4 { display: none; }
  }
  @media (max-width: 900px) {
    html body.dv-list .ant-layout-content .dv-listwrap { border-inline: 0; border-radius: 12px; }
    html body.dv-list .ant-layout-content .dv-head, html body.dv-list .ant-layout-content .dv-row { min-width: 980px; }
  }
}

@layer human-controls {
  html body #root .ant-layout-content .dv-head { background: var(--dv-soft) !important; color: var(--dv-sub) !important; }
  html body #root .ant-layout-content .dv-row { background: var(--dv-bg) !important; }
  html body #root .ant-layout-content .dv-row .dv-cell { color: var(--dv-ink) !important; }
  html body #root .ant-layout-content .dv-row .dv-cell.dv-c2 { color: var(--dv-ink) !important; }
  html body #root .ant-layout-content .dv-row .dv-cell.dv-c6,
  html body #root .ant-layout-content .dv-row .dv-cell.dv-c11 { color: var(--dv-sub) !important; }
  html body #root .ant-layout-content .dv-row .dv-c1 > div { color: var(--dv-ink) !important; }
  html body #root .ant-layout-content .dv-row .dv-c12 input { color: var(--dv-ink) !important; }
  html body #root .ant-layout-content .device-filter-toolbar-dark :is(.ant-select-selector, .ant-picker, .ant-input, .ant-input-affix-wrapper) {
    background: var(--dv-bg) !important;
    color: var(--dv-ink) !important;
    border-color: var(--dv-line) !important;
  }
  html body #root .ant-layout-content .device-filter-toolbar-dark :is(input, .ant-select-selection-item, .ant-select-selection-placeholder, .ant-picker-input > input) { color: var(--dv-ink) !important; }
  html body #root .ant-layout-content .dv-c14 > button { color: var(--dv-sub) !important; }
  html body #root .ant-layout-content .dv-c14 > button:first-child { color: var(--dv-accent) !important; }
  html body #root .ant-layout-content .dv-c14 > button:last-child:not(:disabled) { color: var(--dv-red) !important; }
}

@layer human-controls {
  html body.dv-live .ant-layout-content .dv-root { background: transparent !important; }
  html body.dv-live .ant-layout-content .dv-topbar {
    height: 54px !important;
    gap: 10px !important;
    padding: 0 20px !important;
    background: var(--dv-bg) !important;
    border-bottom: 1px solid var(--dv-line) !important;
    backdrop-filter: none !important;
  }
  html body.dv-live .ant-layout-content .dv-topbar > button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--dv-ink) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-shadow: none !important;
  }
  html body.dv-live .ant-layout-content .dv-topbar > button:hover { background: var(--dv-soft) !important; }
  html body.dv-live .ant-layout-content .dv-topbar > div:nth-child(2) {
    background: var(--dv-soft) !important;
    border-radius: 9px !important;
    padding: 3px !important;
    gap: 2px !important;
  }
  html body.dv-live .ant-layout-content .dv-topbar > div:nth-child(2) > button {
    height: 28px !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: var(--dv-sub) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
  }
  html body.dv-live .ant-layout-content .dv-topbar > div:nth-child(2) > button[style*="linear-gradient"] {
    background: var(--dv-bg) !important;
    color: var(--dv-ink) !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12) !important;
  }
  html body.dv-live .ant-layout-content .dv-topbar > div:nth-child(3) { background: var(--dv-line) !important; }
  html body.dv-live .ant-layout-content .dv-topbar > div:nth-child(4) > div {
    height: 32px !important;
    border-radius: 8px !important;
    background: var(--dv-accent-soft) !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    color: var(--dv-ink) !important;
    font-size: 12.5px !important;
  }
  html body.dv-live .ant-layout-content .dv-topbar > div:nth-child(4) > div :is(span, div) { color: var(--dv-ink) !important; }
  html body.dv-live .ant-layout-content .dv-topbar > div:nth-child(4) > div > span:last-child { color: var(--dv-sub) !important; }

  html body.dv-live .ant-layout-content .dv-workspace {
    padding: 16px 20px 12px !important;
    gap: 16px !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    min-width: 0;
    overflow-x: auto;
  }
  html body.dv-live .ant-layout-content .dv-screens {
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 0;
    max-height: none !important;
    overflow: visible !important;
  }
  html body.dv-live .ant-layout-content .dv-screens > div { width: 664px !important; }
  html body.dv-live .ant-layout-content .dv-status {
    width: 664px !important;
    padding: 7px 12px !important;
    margin-bottom: 12px !important;
    border: 1px solid var(--dv-line) !important;
    border-radius: 12px !important;
    background: var(--dv-bg) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  html body.dv-live .ant-layout-content .dv-status :is(span, div) { text-shadow: none !important; }
  html body.dv-live .ant-layout-content .dv-status > div > div {
    border-radius: 6px !important;
    background: var(--dv-soft) !important;
    border: 1px solid var(--dv-line) !important;
    padding: 2px 8px !important;
    color: var(--dv-sub) !important;
  }
  html body.dv-live .ant-layout-content .dv-status > div > div:first-child {
    background: var(--dv-green-soft) !important;
    border-color: transparent !important;
  }
  html body.dv-live .ant-layout-content .dv-status > div > div:first-child span:last-child { color: var(--dv-green) !important; font-weight: 600 !important; }
  html body.dv-live .ant-layout-content .dv-status > div > div > span { color: var(--dv-sub) !important; }
  html body.dv-live .ant-layout-content .dv-status > div > div span[style*="font-family: monospace"] { color: var(--dv-ink) !important; font-weight: 600 !important; }
  html body.dv-live .ant-layout-content .dv-status > div > div:has(span[style*="font-family: monospace"]) { background: transparent !important; border-color: transparent !important; padding-inline: 2px !important; }
  html body.dv-live .ant-layout-content .dv-status > div > div[style*="width: 1px"] {
    flex: 0 0 1px;
    width: 1px !important;
    height: 14px;
    align-self: center;
    padding: 0 !important;
    border: 0 !important;
    background: var(--dv-line) !important;
  }
  html body.dv-live .ant-layout-content .dv-status > div > div > div { background: var(--dv-line) !important; }

  html body.dv-live .ant-layout-content .dv-phones { gap: 14px !important; }
  html body.dv-live .ant-layout-content .dv-phonebar {
    width: 326px !important;
    padding: 4px !important;
    margin-bottom: 8px !important;
    gap: 4px !important;
    background: var(--dv-bg) !important;
    border: 1px solid var(--dv-line) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  html body.dv-live .ant-layout-content .dv-phonebar .ant-btn {
    height: 26px !important;
    padding: 0 6px !important;
    font-size: 11.5px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--dv-sub) !important;
    box-shadow: none !important;
  }
  html body.dv-live .ant-layout-content .dv-phonebar .ant-btn:not(:disabled):hover { background: var(--dv-soft) !important; color: var(--dv-ink) !important; }
  html body.dv-live .ant-layout-content .dv-phone {
    width: 326px !important;
    height: clamp(420px, calc(100dvh - 300px), 760px) !important;
    background: #1d1d1f !important;
    border: 6px solid #1d1d1f !important;
    border-radius: 30px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .08) !important;
  }
  html body.dv-live .ant-layout-content .dv-phone > div:nth-child(2) { border-radius: 22px !important; }
  html body.dv-live .ant-layout-content .dv-phone > div:nth-child(3) {
    background: var(--dv-bg) !important;
    border: 0 !important;
    margin-top: 6px !important;
  }
  html body.dv-live .ant-layout-content .dv-phone > div:nth-child(3) input { background: var(--dv-soft) !important; border: 1px solid var(--dv-line) !important; color: var(--dv-ink) !important; height: 26px !important; }
  html body.dv-live .ant-layout-content .dv-phone > div:nth-child(3) button { color: var(--dv-sub) !important; }
  html body.dv-live .ant-layout-content .dv-phone > div:last-child button {
    background: var(--dv-soft) !important;
    border: 1px solid var(--dv-line) !important;
    border-radius: 8px !important;
    width: 34px !important;
    height: 30px !important;
    color: var(--dv-sub) !important;
  }
  html body.dv-live .ant-layout-content .dv-phone > div:last-child button:hover { color: var(--dv-ink) !important; }

  html body.dv-live .ant-layout-content .dv-info { flex: 1 1 auto !important; min-width: 0 !important; gap: 14px !important; overflow: hidden; }
  html body.dv-live .ant-layout-content .dv-infocol { min-width: 0 !important; }
  html body.dv-live .ant-layout-content .dv-rail {
    width: 170px !important;
    flex: 0 0 170px !important;
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
  }
  html body.dv-live .ant-layout-content .dv-infocol {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  html body.dv-live .ant-layout-content .dv-gap { width: 1px !important; background: var(--dv-line) !important; align-self: stretch !important; }
  html body.dv-live .ant-layout-content .dv-gap > div { display: none !important; }
  html body.dv-live .ant-layout-content .ant-card {
    background: var(--dv-bg) !important;
    border: 1px solid var(--dv-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    overflow: hidden;
  }
  html body.dv-live .ant-layout-content .ant-card-head {
    min-height: 38px !important;
    padding: 0 12px !important;
    background: var(--dv-bg) !important;
    border-bottom: 1px solid var(--dv-line) !important;
  }
  html body.dv-live .ant-layout-content .ant-card-head-title { color: var(--dv-ink) !important; font-size: 12.5px !important; font-weight: 600 !important; }
  html body.dv-live .ant-layout-content .ant-card-body { padding: 8px !important; background: transparent !important; }
  html body.dv-live .ant-layout-content .dv-rail .ant-btn {
    width: 100%;
    justify-content: flex-start;
    height: 32px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--dv-ink) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
  }
  html body.dv-live .ant-layout-content .dv-rail .ant-btn:not(:disabled):hover { background: var(--dv-soft) !important; }
  html body.dv-live .ant-layout-content .dv-rail .ant-btn:disabled { opacity: .38; }
  html body.dv-live .ant-layout-content .dv-rail .ant-btn .anticon { color: var(--dv-sub) !important; font-size: 14px; }
  html body.dv-live .ant-layout-content .dv-rail .ant-space-item > div[style*="linear-gradient(90deg"] {
    background: var(--dv-line) !important;
    height: 1px !important;
    margin: 6px 4px !important;
  }

  html body.dv-live .ant-layout-content .dv-infocol { gap: 12px !important; }
  html body.dv-live .ant-layout-content .dv-metagrid {
    background: var(--dv-bg) !important;
    border: 1px solid var(--dv-line) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 8px 16px !important;
  }
  html body #root .ant-layout-content .dv-metagrid > div {
    display: flex !important;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  html body #root .ant-layout-content .dv-metagrid > div > span:first-child { color: var(--dv-sub) !important; font-size: 11px !important; }
  html body #root .ant-layout-content .dv-metagrid > div > span:last-child {
    color: var(--dv-ink) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html body.dv-live .ant-layout-content .dv-metagrid > div:last-child > span:last-child { color: var(--dv-amber) !important; cursor: pointer; }
  html body #root .ant-layout-content .dv-metagrid > div:first-child,
  html body.dv-live .ant-layout-content .dv-metagrid > div:last-child { grid-column: auto; }
  html body #root .ant-layout-content .dv-metagrid > div > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
  }

  html body.dv-live .ant-layout-content .dv-tabs {
    flex: 1 1 0 !important;
    min-height: 0;
    background: var(--dv-bg) !important;
    border: 1px solid var(--dv-line) !important;
    border-radius: 12px !important;
    overflow: hidden;
  }
  html body.dv-live .ant-layout-content .dv-tabs .ant-tabs-nav {
    margin: 0 !important;
    padding: 0 6px !important;
    background: var(--dv-bg) !important;
    border-bottom: 1px solid var(--dv-line) !important;
  }
  html body.dv-live .ant-layout-content .dv-tabs .ant-tabs-tab { padding: 11px 9px !important; }
  html body.dv-live .ant-layout-content .dv-tabs .ant-tabs-tab .ant-tabs-tab-btn { color: var(--dv-sub) !important; font-size: 12.5px !important; }
  html body.dv-live .ant-layout-content .dv-tabs .ant-tabs-tab-active .ant-tabs-tab-btn { color: var(--dv-ink) !important; font-weight: 600 !important; }
  html body.dv-live .ant-layout-content .dv-tabs .ant-tabs-ink-bar { background: var(--dv-accent) !important; height: 2px !important; }
  html body.dv-live .ant-layout-content .dv-tabs .ant-tabs-nav-operations .ant-tabs-nav-more { color: var(--dv-sub) !important; }
  html body.dv-live .ant-layout-content .ant-tabs-content, html body.dv-live .ant-layout-content .ant-tabs-tabpane { height: 100%; }
  html body.dv-live .ant-layout-content .dv-tabs .ant-tabs-tabpane > div { padding: 10px !important; gap: 10px !important; flex-direction: column !important; }
  html body.dv-live .ant-layout-content .dv-tabs .ant-tabs-tabpane > div > div { flex: none !important; width: 100% !important; }

  html body.dv-live .ant-layout-content .ant-btn { backdrop-filter: none !important; text-shadow: none !important; }
  html body.dv-live .ant-layout-content .ant-btn-default,
  html body.dv-live .ant-layout-content .ant-btn:not(.ant-btn-primary):not(.ant-btn-dangerous) {
    background: var(--dv-bg) !important;
    border: 1px solid var(--dv-line) !important;
    color: var(--dv-ink) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-weight: 500 !important;
  }
  html body.dv-live .ant-layout-content .ant-btn-primary {
    background: var(--dv-accent) !important;
    border-color: transparent !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
  }
  html body.dv-live .ant-layout-content .ant-btn-primary :is(span, .anticon) { color: #fff !important; }
  html body.dv-live .ant-layout-content .ant-btn-dangerous { color: var(--dv-red) !important; }
  html body.dv-live .ant-layout-content .ant-btn :is(span, .anticon) { text-shadow: none !important; }
  html body.dv-live .ant-layout-content .top-bar-btn.top-bar-default.ant-btn,
  html body.dv-live .ant-layout-content .top-bar-btn.top-bar-active.ant-btn,
  html body.dv-live .ant-layout-content .top-bar-btn.top-bar-purple.ant-btn,
  html body.dv-live .ant-layout-content .top-bar-btn.top-bar-red.ant-btn {
    border: 1px solid var(--dv-line) !important;
    background: var(--dv-bg) !important;
    color: var(--dv-ink) !important;
    box-shadow: none !important;
    transform: none !important;
  }
  html body.dv-live .ant-layout-content .top-bar-btn.ant-btn:disabled {
    opacity: .4 !important;
    background: var(--dv-soft) !important;
    color: var(--dv-sub) !important;
    filter: none !important;
    border-color: transparent !important;
  }

  html body.dv-live .ant-layout-content [style*="color: rgb(226, 232, 240)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(200, 230, 255)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(224, 242, 254)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(255, 255, 255)"] { color: var(--dv-ink) !important; }
  html body.dv-live .ant-layout-content [style*="color: rgb(139, 148, 158)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(148, 163, 184)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(100, 116, 139)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(110, 118, 129)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(120, 170, 255)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(110, 110, 115)"] { color: var(--dv-sub) !important; }
  html body.dv-live .ant-layout-content [style*="color: rgb(74, 222, 128)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(52, 211, 153)"] { color: var(--dv-green) !important; }
  html body.dv-live .ant-layout-content [style*="color: rgb(56, 189, 248)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(96, 196, 255)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(64, 150, 255)"] { color: var(--dv-accent) !important; }
  html body.dv-live .ant-layout-content [style*="color: rgb(251, 191, 36)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(251, 146, 60)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(245, 158, 11)"] { color: var(--dv-amber) !important; }
  html body.dv-live .ant-layout-content [style*="color: rgb(248, 113, 113)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(239, 68, 68)"],
  html body.dv-live .ant-layout-content [style*="color: rgb(255, 77, 79)"] { color: var(--dv-red) !important; }
  html body.dv-live .ant-layout-content .ant-btn-primary [style*="color"] { color: #fff !important; }

  html body.dv-live .ant-layout-content [style*="linear-gradient(135deg, rgba(4, 18, 36"],
  html body.dv-live .ant-layout-content [style*="linear-gradient(135deg, rgba(10, 18, 36"],
  html body.dv-live .ant-layout-content [style*="linear-gradient(135deg, rgba(24, 32, 48"],
  html body.dv-live .ant-layout-content [style*="linear-gradient(135deg, rgba(3, 14, 38"],
  html body.dv-live .ant-layout-content [style*="linear-gradient(rgba(15, 23, 42"],
  html body.dv-live .ant-layout-content [style*="background: rgba(2, 8, 28"],
  html body.dv-live .ant-layout-content [style*="background: rgba(4, 12, 36"],
  html body.dv-live .ant-layout-content [style*="background: rgba(2, 6, 22"],
  html body.dv-live .ant-layout-content [style*="background: rgba(15, 23, 42"],
  html body.dv-live .ant-layout-content [style*="background: rgba(4, 18, 36"],
  html body.dv-live .ant-layout-content [style*="background: rgba(6, 26, 18"],
  html body.dv-live .ant-layout-content [style*="background: rgba(3, 10, 30"],
  html body.dv-live .ant-layout-content [style*="background: rgba(3, 14, 38"],
  html body.dv-live .ant-layout-content [style*="background: rgba(10, 15, 25"],
  html body.dv-live .ant-layout-content [style*="background: rgba(255, 255, 255, 0.0"],
  html body.dv-live .ant-layout-content [style*="background: rgba(255, 255, 255, 0.1"] { background: var(--dv-bg) !important; }
  html body.dv-live .ant-layout-content [style*="border: 1px solid rgba("],
  html body.dv-live .ant-layout-content [style*="border-color: rgba("] { border-color: var(--dv-line) !important; }
  html body.dv-live .ant-layout-content [style*="box-shadow"] { box-shadow: none !important; }
  html body.dv-live .ant-layout-content .dv-phone, html body.dv-live .ant-layout-content .dv-phone * { box-shadow: none !important; }
  html body.dv-live .ant-layout-content .dv-phone [style*="color: rgb(224, 242, 254)"] { color: #eef2f7 !important; }
  html body.dv-live .ant-layout-content .dv-phone [style*="color: rgb(100, 116, 139)"] { color: #94a3b8 !important; }
  html body.dv-live .ant-layout-content .ant-spin-dot-item { background: var(--dv-accent) !important; }
  html body.dv-live .ant-layout-content .dv-rail .ant-divider,
  html body.dv-live .ant-layout-content .dv-status > div > div { text-shadow: none !important; }
}

@layer human-controls {
  html body.dv-live .ant-layout-content .dv-inner {
    display: flex !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    box-sizing: border-box;
  }
}

@layer human-controls {
  @media (max-width: 720px) {
    html body.dv-list .ant-layout-content .dv-toolbar { margin-block-end: 10px !important; }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark {
      display: flex !important;
      flex-direction: column;
      align-items: stretch !important;
      gap: 8px !important;
      border-radius: 12px !important;
      padding: 10px !important;
    }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div { flex: 0 0 auto; }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type,
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 8px !important;
      width: 100% !important;
      box-sizing: border-box;
    }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(1) {
      justify-self: start;
    }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div[style*="width: 1px"],
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type > div[style*="width: 1px"] { display: none; }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(5) {
      grid-column: 1 / -1;
      width: 100% !important;
      height: auto !important;
      min-height: 32px;
      flex-wrap: wrap;
      justify-content: flex-start !important;
    }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(5) :is(span, div) { white-space: nowrap; }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(8) {
      grid-column: 1 / -1;
      margin-inline-start: 0 !important;
    }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(8) > button {
      flex: 1 1 0;
      white-space: nowrap;
    }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark .ant-btn { width: 100%; }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type {
      grid-template-columns: minmax(0, 1fr) !important;
    }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type > * { min-width: 0 !important; width: 100% !important; }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type > div:first-child { display: none; }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type :is(.ant-select, .ant-picker, .ant-input-affix-wrapper, .ant-input, .ant-space, .ant-space-item) {
      width: 100% !important;
      min-width: 0 !important;
    }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type > form {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 8px !important;
      width: 100% !important;
      min-width: 0 !important;
    }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type > form > * {
      width: 100% !important;
      min-width: 0 !important;
      margin: 0 !important;
    }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type > form :is(.ant-form-item, .ant-form-item-control, .ant-form-item-control-input, .ant-form-item-control-input-content, .ant-space, .ant-space-item) {
      width: 100% !important;
      min-width: 0 !important;
    }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type .ant-space { display: flex; gap: 8px; }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type .ant-space-item .ant-btn { width: 100%; }
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:last-of-type > .ant-btn { width: auto !important; }
    html body.dv-list .ant-layout-content .dv-listwrap { max-width: 100%; }
    html body.dv-list .ant-layout-content .dv-head,
    html body.dv-list .ant-layout-content .dv-row { min-width: 860px; }
    html body.dv-list .ant-layout-content :has(> .bk-device-card) {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 12px !important;
    }
  }
}

@layer human-controls {
  @media (max-width: 991px) {
    html body .ant-layout-sider { overflow: hidden !important; }
    html body .ant-layout-sider :is(.ant-menu-title-content, .ant-menu-submenu-arrow) { display: none !important; }
    html body .ant-layout-sider .ant-menu :is(.ant-menu-item, .ant-menu-submenu-title) { justify-content: center !important; padding-inline: 0 !important; }
    html body .ant-layout-sider .ant-menu .anticon { margin: 0 !important; }
    html body .ant-layout-sider .ant-layout-sider-children > div:first-child { justify-content: center !important; padding: 0 !important; }
    html body .ant-layout-sider .ant-layout-sider-children > div:first-child span { display: none !important; }
  }
}

@layer human-controls {
  @media (max-width: 720px) {
    html body.dv-live .ant-layout-content .dv-topbar { height: 48px !important; padding: 0 12px !important; overflow-x: auto; }
    html body.dv-live .ant-layout-content .dv-topbar > button span:last-child { font-size: 12.5px; }
    html body.dv-live .ant-layout-content .dv-workspace {
      flex-direction: column !important;
      align-items: center !important;
      gap: 12px !important;
      padding: 12px !important;
      overflow: visible !important;
    }
    html body.dv-live .ant-layout-content .dv-gap { display: none !important; }
    html body.dv-live .ant-layout-content .dv-screens { width: 100% !important; }
    html body.dv-live .ant-layout-content .dv-screens > div { width: 100% !important; }
    html body.dv-live .ant-layout-content .dv-status { width: 100% !important; flex-wrap: wrap; }
    html body.dv-live .ant-layout-content .dv-phones { flex-direction: column !important; width: 100%; gap: 16px !important; }
    html body.dv-live .ant-layout-content .dv-phones > div { width: 100%; }
    html body.dv-live .ant-layout-content .dv-phonebar { width: 100% !important; }
    html body.dv-live .ant-layout-content .dv-phonebar .ant-btn { font-size: 12px !important; }
    html body.dv-live .ant-layout-content .dv-phone {
      width: 100% !important;
      max-width: 340px;
      height: auto !important;
      aspect-ratio: 326 / 620;
      margin-inline: auto;
    }
    html body.dv-live .ant-layout-content .dv-phone > div:nth-child(2) { width: 100% !important; height: 100% !important; }
    html body.dv-live .ant-layout-content .dv-info { width: 100% !important; flex-direction: column; }
    html body.dv-live .ant-layout-content .dv-inner { flex-direction: column !important; gap: 12px !important; height: auto !important; }
    html body.dv-live .ant-layout-content .dv-rail { width: 100% !important; flex: none !important; overflow: visible !important; }
    html body.dv-live .ant-layout-content .dv-rail .ant-space-horizontal { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
    html body.dv-live .ant-layout-content .dv-rail .ant-space-vertical > .ant-space-item { width: 100%; }
    html body.dv-live .ant-layout-content .dv-metagrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    html body.dv-live .ant-layout-content .dv-tabs { min-height: 420px; }
    html body.dv-live .ant-layout-content .dv-tabs .ant-tabs-tabpane > div { flex-direction: column !important; }
  }
}

@layer human-controls {
  @media (max-width: 720px) {
    html body.dv-list .ant-layout-content .device-filter-toolbar-dark > div:first-of-type > div:nth-child(1) > button { white-space: nowrap; }
    html body.dv-live .ant-layout-content .dv-phones > div { max-width: 100% !important; }
  }
}
