:root {
  --bg: #f4f7ff;
  --card: #ffffff;
  --text: #1d2746;
  --muted: #7480a3;
  --line: #e7ebfb;
  --primary: #5f6fff;
  --primary-2: #7a5cf5;
  --shadow: 0 22px 60px rgba(84, 102, 180, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(118, 130, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
  color: var(--text);
}
a { text-decoration: none; color: inherit; }
.admin-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 248px;
  padding: 18px 16px;
  background: linear-gradient(180deg, #192347 0%, #1f2d56 100%);
  color: #eef2ff;
}
.brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(101, 114, 255, 0.32), rgba(151, 113, 255, 0.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #93a3ff, #ffffff);
  box-shadow: 0 0 18px rgba(163, 176, 255, 0.7);
}
.brand-card strong { display: block; font-size: 17px; line-height: 1.35; }
.brand-card span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: rgba(255,255,255,0.72); }
.menu-caption {
  margin: 18px 10px 8px;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(228, 234, 255, 0.54);
}
.menu { display: grid; gap: 8px; margin-top: 0; }
.menu a {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 14px;
  color: rgba(240, 244, 255, 0.84);
  transition: all .2s ease;
  font-size: 15px;
  min-height: 44px;
}
.menu-text {
  display: block;
  line-height: 1.3;
}
.menu a.active,
.menu a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  transform: translateX(2px);
}
.workspace { flex: 1; padding: 18px 20px 22px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.topbar h1 { margin: 0; font-size: 24px; line-height: 1.3; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.content-panel { display: grid; gap: 14px; }
.admin-chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 10px 30px rgba(88, 105, 171, 0.10);
  color: #4d5a87;
  font-size: 13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(95, 111, 255, 0.25);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-secondary {
  background: #fff;
  color: #415080;
  box-shadow: 0 12px 30px rgba(88, 105, 171, 0.12);
}
.panel-card,
.login-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.panel-card { padding: 18px 20px; }
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-header h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.status-blue { background: rgba(95, 111, 255, 0.12); color: #4d5df4; }
.status-green { background: rgba(26, 167, 96, 0.14); color: #17794c; }
.status-warning { background: rgba(245, 158, 11, 0.16); color: #b86c00; }
.status-gray { background: rgba(148, 163, 184, 0.18); color: #66748a; }
.status-danger { background: rgba(239, 68, 68, 0.12); color: #c03939; }
.info-list { display: grid; gap: 14px; }
.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcff;
}
.info-list span { color: var(--muted); }
.compact div { padding: 12px 14px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}
th { color: var(--muted); font-weight: 700; font-size: 12px; }
.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
}
.subtle-line {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}
.login-hero {
  padding: 44px;
  color: #fff;
  background: linear-gradient(135deg, #5466ff 0%, #6a62ff 45%, #8760f7 100%);
}
.hero-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  margin-bottom: 18px;
}
.login-hero h2 { font-size: 40px; margin: 0 0 12px; }
.hero-points { margin: 24px 0 0; padding-left: 18px; color: rgba(255,255,255,0.82); }
.login-form {
  padding: 42px;
  display: grid;
  gap: 18px;
  align-content: center;
}
.login-form h3 { margin: 0; font-size: 30px; }
.muted-text { margin: 0; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; color: #5c688f; font-weight: 700; }
.field input,
.field select {
  width: 100%;
  border: 1px solid #dfe5fb;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.form-grid { display: grid; gap: 16px; max-width: 560px; }
.alert {
  padding: 14px 16px;
  border-radius: 18px;
}
.alert a { text-decoration: underline; }
.alert-error { background: rgba(239, 68, 68, 0.12); color: #b93e3e; }
.alert-warning { background: rgba(245, 158, 11, 0.15); color: #a66300; }
.alert-success { background: rgba(34, 197, 94, 0.12); color: #137a45; }
.password-card { max-width: 720px; }
.error-card {
  max-width: 720px;
  margin: 80px auto;
  text-align: center;
}
.error-code {
  font-size: 64px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.dashboard-hero {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 20px;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(95,111,255,0.10), rgba(122,92,245,0.10), rgba(255,255,255,0.82));
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: var(--shadow);
}
.hero-copy h2 {
  margin: 10px 0 12px;
  font-size: 34px;
}
.hero-copy p {
  margin: 0;
  max-width: 720px;
  color: #556284;
  line-height: 1.7;
}
.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  color: #4d5df4;
  background: rgba(95,111,255,0.14);
  font-size: 12px;
  font-weight: 700;
}
.hero-side {
  display: grid;
  gap: 14px;
}
.hero-badge-card {
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 34px rgba(84, 102, 180, 0.10);
}
.hero-badge-card span,
.hero-badge-card small {
  display: block;
  color: var(--muted);
}
.hero-badge-card strong {
  display: block;
  margin: 6px 0 10px;
  font-size: 22px;
}
.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.dashboard-stat-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
}
.dashboard-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  opacity: .18;
}
.dashboard-stat-card.is-primary::after { background: linear-gradient(135deg, #5f6fff, #7a5cf5); }
.dashboard-stat-card.is-success::after { background: linear-gradient(135deg, #16a34a, #34d399); }
.dashboard-stat-card.is-warm::after { background: linear-gradient(135deg, #f59e0b, #fb7185); }
.stat-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-icon {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dashboard-stat-card.is-primary .stat-icon { background: linear-gradient(135deg, #5f6fff, #7a5cf5); }
.dashboard-stat-card.is-success .stat-icon { background: linear-gradient(135deg, #16a34a, #34d399); }
.dashboard-stat-card.is-warm .stat-icon { background: linear-gradient(135deg, #f59e0b, #fb7185); }
.stat-title {
  color: #526084;
  font-size: 14px;
  font-weight: 700;
}
.stat-number {
  display: block;
  margin: 18px 0 10px;
  font-size: 34px;
  line-height: 1;
}
.stat-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}
.dashboard-chart-grid,
.dashboard-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.dashboard-log-grid {
  display: grid;
}
.chart-card { min-height: 360px; }
.chart-stage {
  width: 100%;
  min-height: 270px;
}
.chart-stage svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pie-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  align-items: center;
}
.donut-stage {
  min-height: 260px;
}
.donut-legend {
  display: grid;
  gap: 10px;
}
.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8faff;
  border: 1px solid var(--line);
}
.legend-item span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4e5a80;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.users-table th,
.users-table td {
  white-space: nowrap;
}
.action-stack {
  display: grid;
  gap: 6px;
  min-width: 100px;
}
.btn-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #4d5df4;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.btn-link.success { color: #178251; }
.btn-link.danger { color: #dc2626; }
.inline-form { margin: 0; }
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5b678d;
}
.online-badge i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}
.online-badge.is-online i {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}
.online-badge.is-offline i {
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pagination-summary { color: var(--muted); font-size: 13px; }
.pagination-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination-btn.is-disabled {
  pointer-events: none;
  opacity: .45;
}
.page-pill {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  color: #536189;
  box-shadow: 0 8px 20px rgba(88, 105, 171, 0.08);
}
.page-pill.is-current {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 28, 58, 0.32);
  backdrop-filter: blur(4px);
  z-index: 50;
}
.modal-overlay.is-open { display: flex; }
.modal-card {
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 30px 70px rgba(39, 56, 122, 0.24);
}
.modal-close {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f3f6ff;
  color: #4b5b88;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.modal-text {
  margin: 0 0 16px;
  color: #4c587d;
  line-height: 1.7;
}
.modal-form {
  display: grid;
  gap: 16px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.danger-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.btn-large {
  min-width: 168px;
  min-height: 44px;
  font-size: 14px;
}
.mono-text {
  font-family: "Consolas", "Courier New", monospace;
  letter-spacing: .04em;
}
.license-filter-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.license-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.field-span-2 {
  grid-column: span 2;
}
.license-card-block {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(95, 111, 255, 0.08), rgba(122, 92, 245, 0.06));
  border: 1px solid rgba(95, 111, 255, 0.12);
}
.license-block-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #50608c;
}
.license-mode-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.choice-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.choice-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.choice-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid #dbe3ff;
  background: rgba(255,255,255,0.88);
  color: #50608c;
  font-weight: 700;
  transition: all .2s ease;
}
.choice-pill input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 30px rgba(95, 111, 255, 0.24);
}
.license-tip-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.license-tip-strip div {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8faff;
  border: 1px solid var(--line);
}
.license-tip-strip strong { display: block; margin-bottom: 6px; font-size: 13px; }
.license-tip-strip span {
  color: #5b688d;
  line-height: 1.7;
  font-size: 12px;
}
.license-action-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.license-result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.result-summary-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8faff;
}
.result-summary-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}
.result-summary-card strong {
  font-size: 18px;
  color: #253258;
}
.license-result-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.license-result-box {
  width: 100%;
  min-height: 200px;
  resize: vertical;
  border: 1px solid #dfe5fb;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font: 600 13px/1.7 "Consolas", "Courier New", monospace;
  color: #22315b;
  background: #fbfcff;
}
.license-filter-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.license-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.license-tab {
  min-width: 100px;
  padding: 11px 13px;
  border-radius: 16px;
  background: #f8faff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(88, 105, 171, 0.06);
}
.license-tab span,
.license-tab strong {
  display: block;
}
.license-tab span {
  color: var(--muted);
  font-size: 11px;
}
.license-tab strong {
  margin-top: 4px;
  font-size: 16px;
  color: #243155;
}
.license-tab.is-active {
  background: linear-gradient(135deg, rgba(95,111,255,0.14), rgba(122,92,245,0.12));
  border-color: rgba(95, 111, 255, 0.18);
}
.license-batch-bar {
  position: sticky;
  top: 18px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 255, 0.96);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.license-batch-meta strong,
.license-batch-meta span {
  display: block;
}
.license-batch-meta strong {
  font-size: 14px;
  color: #263256;
}
.license-batch-meta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.license-batch-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.license-batch-actions .btn { padding-inline: 13px; }
.license-table th,
.license-table td {
  white-space: nowrap;
}
.license-table td:last-child {
  white-space: normal;
  min-width: 132px;
}
.modal-card-wide {
  width: min(920px, 100%);
}
.version-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.version-summary-card {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.version-summary-link {
  font-size: 13px !important;
  line-height: 1.65;
  word-break: break-all;
}
.version-summary-copy {
  font-size: 13px !important;
  line-height: 1.65;
}
.version-table-note {
  margin: -2px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faff;
  color: #5b688d;
  font-size: 12px;
  line-height: 1.6;
}
.version-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}
.version-table {
  min-width: 1380px;
  table-layout: fixed;
}
.version-table th,
.version-table td {
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
  line-height: 1.6;
}
.version-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(95,111,255,0.14), rgba(122,92,245,0.14));
  color: #3141d8;
  font-size: 13px;
}
.version-link-cell {
  font-size: 12px;
  line-height: 1.6;
  color: #5b688d;
  word-break: break-all;
}
.version-main-cell {
  min-width: 0;
}
.version-main-stack {
  display: grid;
  gap: 8px;
}
.version-main-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.version-name-line {
  color: #243155;
  font-weight: 600;
}
.version-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.version-flag-group {
  display: grid;
  gap: 8px;
}
.version-flag-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faff;
  font-size: 12px;
  color: #526084;
}
.version-text-cell {
  font-size: 12px;
  color: #334155;
}
.version-time-cell {
  font-size: 12px;
  color: #5b688d;
}
.version-time-cell span {
  display: block;
}
.version-action-cell .action-stack {
  min-width: 112px;
}
.version-id-cell,
.version-global-cell {
  white-space: nowrap;
}
.version-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.version-switch-group {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8faff;
}
.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #4e5a80;
  font-size: 14px;
}
.switch-row:first-of-type {
  margin-top: 4px;
}
.settings-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.settings-nav {
  position: sticky;
  top: 18px;
}
.settings-nav-links {
  display: grid;
  gap: 10px;
}
.settings-nav-links a {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8faff;
  border: 1px solid var(--line);
  color: #44527d;
  font-weight: 700;
}
.settings-secret-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(95,111,255,0.08), rgba(122,92,245,0.06));
  border: 1px solid rgba(95, 111, 255, 0.12);
}
.settings-secret-box span,
.settings-secret-box strong,
.settings-secret-box small {
  display: block;
}
.settings-secret-box span,
.settings-secret-box small {
  color: var(--muted);
}
.settings-secret-box strong {
  margin: 8px 0 10px;
  font-size: 18px;
  color: #243155;
  word-break: break-all;
}
.settings-content {
  display: grid;
  gap: 20px;
}
.settings-group-card {
  scroll-margin-top: 24px;
}
.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-form-grid textarea,
.version-form-grid textarea {
  width: 100%;
  border: 1px solid #dfe5fb;
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
  resize: vertical;
}
.settings-switch-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8faff;
}
.settings-inline-check {
  margin-top: 0;
}
.settings-save-bar {
  position: sticky;
  bottom: 18px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 18px 42px rgba(84, 102, 180, 0.14);
  backdrop-filter: blur(10px);
}
@media (max-width: 1280px) {
  .dashboard-stat-grid,
  .dashboard-chart-grid,
  .dashboard-table-grid,
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-hero { grid-template-columns: 1fr; }
  .pie-layout { grid-template-columns: 1fr; }
  .login-card { grid-template-columns: 1fr; }
  .license-filter-grid,
  .license-result-summary,
  .version-form-grid,
  .settings-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .version-summary-grid { grid-template-columns: 1fr; }
  .license-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .admin-shell { flex-direction: column; }
  .sidebar { width: auto; }
  .workspace { padding: 18px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .dashboard-stat-grid,
  .dashboard-chart-grid,
  .dashboard-table-grid,
  .dashboard-hero,
  .filter-grid,
  .license-filter-grid,
  .license-filter-form,
  .license-create-grid,
  .license-tip-strip,
  .license-result-summary,
  .version-summary-grid,
  .version-form-grid,
  .settings-form-grid,
  .settings-shell { grid-template-columns: 1fr; }
  .pagination-bar { align-items: flex-start; }
  .field-span-2 { grid-column: span 1; }
  .license-batch-bar { position: static; flex-direction: column; align-items: flex-start; }
  .settings-nav,
  .settings-save-bar { position: static; }
  .settings-save-bar { flex-direction: column; align-items: flex-start; }
}
