:root {
  --page: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --line: #dfe6f1;
  --line-soft: #edf1f7;
  --text: #101828;
  --text-soft: #344054;
  --muted: #667085;
  --blue: #2f6fed;
  --blue-hover: #275fd0;
  --blue-soft: #edf4ff;
  --blue-line: #cfe0ff;
  --teal: #4d9ab0;
  --success: #0f766e;
  --success-soft: #ecfdf8;
  --warning: #b7791f;
  --warning-soft: #fff7ed;
  --danger: #c24141;
  --danger-soft: #fff1f1;
  --shadow: 0 18px 44px rgba(22, 34, 51, 0.08);
  --shadow-soft: 0 10px 28px rgba(22, 34, 51, 0.045);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body {
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  white-space: nowrap;
}

a,
.link-button {
  color: var(--blue);
  text-decoration: none;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  color: #344054;
  word-break: break-all;
}

.hidden {
  display: none !important;
}

.lite-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 251, 0.98)),
    radial-gradient(circle at 28% -16%, rgba(47, 111, 237, 0.12), transparent 36%);
}

.lite-sidebar {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

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

.lite-brand {
  padding: 24px 22px 22px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(146, 124, 96, 0.18);
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
}

.brand-name {
  margin-top: 2px;
  color: var(--text);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
}

.lite-nav {
  display: grid;
  gap: 6px;
  padding: 6px 14px;
}

.nav-button,
.ghost-button,
.primary-button,
.danger-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.nav-button {
  width: 100%;
  justify-content: flex-start;
  border-color: transparent;
  color: var(--text-soft);
  background: transparent;
  font-size: 14px;
}

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f1f5fa;
  font-size: 12px;
  font-weight: 850;
}

.nav-button:hover {
  background: #f6f9fd;
}

.nav-button.is-active {
  border-color: var(--blue-line);
  color: #174ea6;
  background: var(--blue-soft);
  font-weight: 750;
}

.nav-button.is-active .nav-icon {
  color: #ffffff;
  background: var(--blue);
}

.sidebar-card {
  margin: auto 16px 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.sidebar-card-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.sidebar-card-text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.lite-workspace {
  min-width: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.lite-topbar {
  min-width: 0;
  min-height: 78px;
  padding: 18px 24px 16px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.workspace-heading {
  min-width: 0;
}

.workspace-heading h1 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0;
}

.workspace-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.lite-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.account-pill {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  background: #ffffff;
  font-size: 13px;
}

.account-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.ghost-button {
  color: var(--text);
  background: #ffffff;
}

.primary-button {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(47, 111, 237, 0.16);
}

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

.ghost-button:hover,
.nav-button:hover {
  border-color: var(--blue-line);
  color: #174ea6;
}

.primary-button:hover {
  border-color: var(--blue-hover);
  background: var(--blue-hover);
}

.danger-button:hover {
  border-color: #a83232;
  background: #a83232;
}

.lite-statusbar {
  min-height: 42px;
  padding: 10px 26px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.status-text {
  color: var(--text-soft);
  font-weight: 650;
}

.status-text[data-type="error"] {
  color: var(--danger);
}

.status-text[data-type="success"] {
  color: var(--success);
}

.status-text[data-type="warning"] {
  color: var(--warning);
}

.muted-text {
  color: var(--muted);
}

.lite-main {
  min-width: 0;
  min-height: 0;
  padding: 24px 26px 30px;
  overflow: auto;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.view-head {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.view-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 850;
}

.view-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(380px, 0.86fr);
  gap: 18px;
  align-items: start;
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.card .card {
  border-color: var(--line-soft);
  box-shadow: none;
  background: #fbfcff;
}

.card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 850;
}

.card p {
  margin: 0;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  min-height: 50px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  color: var(--text);
  font-size: 14px;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.auto-publish-table {
  min-width: 1380px;
  table-layout: fixed;
}

.auto-publish-col-select {
  width: 4%;
}

.auto-publish-col-product {
  width: 44%;
}

.auto-publish-col-target {
  width: 7%;
}

.auto-publish-col-rules {
  width: 11%;
}

.auto-publish-col-node {
  width: 9%;
}

.auto-publish-col-status {
  width: 7%;
}

.auto-publish-col-time {
  width: 10%;
}

.auto-publish-col-actions {
  width: 8%;
}

.auto-publish-table th {
  white-space: nowrap;
}

.auto-publish-table th:first-child,
.auto-publish-table td:first-child {
  padding-left: 12px;
  padding-right: 8px;
  text-align: center;
  vertical-align: middle;
}

.auto-publish-table th:nth-child(n + 2),
.auto-publish-table td:nth-child(n + 2) {
  padding-left: 12px;
  padding-right: 12px;
}

.auto-publish-table td:nth-child(2),
.auto-publish-table td:nth-child(3),
.auto-publish-table td:nth-child(4),
.auto-publish-table td:nth-child(5),
.auto-publish-table td:nth-child(6),
.auto-publish-table td:nth-child(7),
.auto-publish-table td:nth-child(8) {
  word-break: normal;
}

.auto-publish-select-cell {
  width: 44px;
}

.auto-publish-row-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.auto-publish-node-cell span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-publish-table .compact-actions {
  display: grid;
  justify-content: flex-start;
  gap: 6px;
}

.auto-publish-table .link-button {
  width: fit-content;
  white-space: nowrap;
}

.data-row {
  cursor: pointer;
}

.data-row:hover {
  background: #f8fbff;
}

.data-row.is-selected {
  background: var(--blue-soft);
}

.media-table .data-row {
  cursor: default;
}

.table-primary {
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.cell-subtext {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  word-break: break-word;
}

.remark-line {
  max-width: 360px;
}

.media-toolbar,
.table-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.queue-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.queue-selection-text {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.queue-search-input {
  width: min(360px, 42vw);
}

.pagination-bar {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.pagination-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ghost-button:disabled,
.primary-button:disabled,
.danger-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

.detail-actions-header {
  align-items: flex-start;
}

.detail-actions-header h3 {
  margin: 0 0 6px;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.compact-actions {
  justify-content: flex-start;
}

.compact-input,
.compact-select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  background: #ffffff;
}

.compact-input {
  width: min(340px, 100%);
}

.inline-check {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 12px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.inline-check input {
  margin: 0;
}

.compact-button {
  min-height: 32px;
  padding: 6px 10px;
}

.media-thumb {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  color: #98a2b3;
  background: #f8fafc;
  font-size: 12px;
}

.badge {
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: #f3f6fa;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.badge.status-online,
.badge.status-running,
.badge.status-success,
.badge.status-active {
  border-color: #aee4d5;
  color: var(--success);
  background: var(--success-soft);
}

.badge.status-offline,
.badge.status-failed,
.badge.status-error,
.badge.status-deleted,
.badge.status-cancelled {
  border-color: #ffcaca;
  color: var(--danger);
  background: var(--danger-soft);
}

.badge.status-pending,
.badge.status-assigned,
.badge.status-cancel_requested,
.badge.status-interrupted,
.badge.status-warning,
.badge.status-expired {
  border-color: #f8d39a;
  color: var(--warning);
  background: var(--warning-soft);
}

.badge.status-default {
  border-color: #d7deea;
  color: var(--text-soft);
  background: #f6f8fb;
}

.empty-state {
  color: var(--muted);
  font-size: 14px;
  padding: 14px 0;
}

.detail-stack {
  display: grid;
  gap: 16px;
}

.detail-title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 850;
}

.detail-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.kv-item {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 12px;
  background: #fbfcff;
}

.kv-item dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.kv-item dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.simple-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
}

.simple-list.compact {
  gap: 6px;
  font-size: 13px;
}

.json-block {
  margin: 0;
  padding: 12px;
  border-radius: 9px;
  overflow-x: auto;
  color: #e6edf7;
  background: #111827;
  font-size: 12px;
  line-height: 1.55;
}

.note-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.note-item {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.release-summary {
  border: 1px solid var(--blue-line);
  border-radius: 10px;
  padding: 18px;
  background: linear-gradient(180deg, #f9fbff, #ffffff);
}

.release-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.release-kicker {
  color: #31557a;
  font-size: 12px;
  font-weight: 750;
}

.release-title {
  margin: 6px 0 0 !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

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

.release-meta-item {
  min-width: 0;
  border-radius: 8px;
  padding: 12px;
  background: #f4f7fb;
}

.release-meta-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.release-meta-item strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
}

.release-hash {
  margin-top: 12px;
  border: 1px dashed #d7deea;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text-soft);
  background: #fbfcff;
  font-size: 12px;
  word-break: break-all;
}

.release-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.release-actions .primary-button {
  text-decoration: none;
}

.release-notes-block {
  margin-top: 16px;
}

.release-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
}

.note-index {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #174ea6;
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 850;
}

.cleanup-scope,
.cleanup-preview {
  border: 1px solid #dbe7fb;
  border-radius: 10px;
  padding: 13px 14px;
  background: #f9fbff;
}

.cleanup-scope p,
.cleanup-preview-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.cleanup-preview-grid > div {
  min-width: 0;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.cleanup-preview-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.cleanup-preview-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 16px;
}

.client-user-detail-stack {
  gap: 18px;
}

.client-user-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.client-user-hero-main {
  min-width: 0;
}

.detail-section-block {
  display: grid;
  gap: 12px;
}

.detail-section-block + .detail-section-block {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.section-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.section-hint {
  margin-top: -6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.detail-info-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-info-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-info-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.detail-info-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.detail-info-row dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}

.secret-row,
.secret-actions,
.device-item-head,
.device-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.password-inline {
  display: inline-block;
  min-width: 72px;
  margin-right: 4px;
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
}

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

.device-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.device-item:first-child {
  padding-top: 0;
}

.device-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.device-item-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.device-item-actions {
  justify-content: flex-end;
}

.link-button {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.danger-text {
  color: var(--danger) !important;
}

.retry-chain-text {
  color: #0f766e;
  font-weight: 700;
}

.data-table tr.is-highlighted td {
  animation: row-highlight 1.8s ease;
}

@keyframes row-highlight {
  0% {
    background: #fff7ed;
  }

  100% {
    background: transparent;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 24, 40, 0.48);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
}

.form-grid {
  display: grid;
  gap: 13px;
}

.form-grid label,
.login-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.login-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.login-form input:focus,
.compact-input:focus,
.compact-select:focus {
  border-color: #8eb5ff;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.form-grid textarea {
  min-height: 136px;
  resize: vertical;
}

.checkbox-row {
  min-height: 64px;
  border: 1px solid #dbe7fb;
  border-radius: 10px;
  padding: 13px 14px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f9fbff;
  cursor: pointer;
}

.checkbox-row > span {
  order: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.checkbox-row strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.checkbox-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.checkbox-row input[type="checkbox"] {
  order: 2;
  position: relative;
  width: 46px !important;
  height: 26px;
  min-height: 26px;
  flex: 0 0 46px;
  margin: 0;
  padding: 0;
  border: 1px solid #cfd8e6;
  border-radius: 999px;
  appearance: none;
  background: #d7dee9;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.checkbox-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.22);
  transition: transform 0.16s ease;
}

.checkbox-row input[type="checkbox"]:checked {
  border-color: var(--blue);
  background: var(--blue);
}

.checkbox-row input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.inline-feedback {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
}

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

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 247, 251, 0.96)),
    radial-gradient(circle at 36% 0%, rgba(47, 111, 237, 0.14), transparent 34%);
}

.login-card {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 850;
}

.login-card p {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.65;
}

.login-form {
  margin-top: 18px;
  display: grid;
  gap: 13px;
}

.login-form .primary-button {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .lite-shell {
    grid-template-columns: 1fr;
  }

  .lite-sidebar {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .lite-brand {
    padding: 16px;
  }

  .lite-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 16px 16px;
  }

  .sidebar-card {
    display: none;
  }

  .lite-workspace {
    height: auto;
    min-height: 0;
  }

  .lite-topbar,
  .lite-statusbar,
  .view-head,
  .table-actions,
  .client-user-hero,
  .device-item,
  .detail-info-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lite-topbar {
    padding: 16px;
  }

  .lite-statusbar {
    padding: 10px 16px;
  }

  .lite-main {
    padding: 18px 16px 24px;
    overflow: visible;
  }

  .lite-actions,
  .action-group,
  .device-item-actions,
  .queue-toolbar-actions,
  .pagination-actions {
    justify-content: flex-start;
  }

  .queue-search-input {
    width: 100%;
  }

  .pagination-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .lite-nav {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 12px;
  }

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

  .modal-actions button {
    width: 100%;
  }

  .cleanup-preview-grid {
    grid-template-columns: 1fr;
  }
}
