:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", Inter, system-ui, sans-serif;
  color: #e9f0fb;
  background: #080d17;
  font-synthesis: none;
  --bg: #080d17;
  --surface: #0d1524;
  --surface-2: #111c2e;
  --surface-3: #16243a;
  --line: #22324a;
  --line-soft: #19263a;
  --text: #e9f0fb;
  --muted: #8595ad;
  --blue: #3b82f6;
  --blue-bright: #61a5ff;
  --cyan: #24c8e5;
  --green: #38d39f;
  --amber: #f4a62a;
  --red: #f05261;
}

.product-area-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--border, #dfe5ec);
  border-radius: 14px;
  background: rgba(246, 248, 251, .9);
}

.product-area-tabs button {
  min-width: 88px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted, #667085);
}

.product-area-tabs button.active {
  background: #172554;
  border-color: #172554;
  color: #fff;
  box-shadow: 0 6px 18px rgba(23, 37, 84, .18);
}

.product-area-badge {
  display: inline-flex;
  align-items: center;
  margin: 4px 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #1d4ed8;
  background: #dbeafe;
}

.product-area-badge.area-paigudi { color: #065f46; background: #d1fae5; }

* { box-sizing: border-box; }
html { min-width: 320px; max-width: 100%; overflow-x: hidden; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% -10%, rgba(42, 116, 255, .16), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(36, 200, 229, .08), transparent 24%),
    var(--bg);
}

button, input, select, textarea { font: inherit; }
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 9px;
  background: linear-gradient(135deg, #2874ee, #3c8cff);
  color: #fff;
  padding: 9px 15px;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(35, 111, 235, .16);
  transition: transform .16s ease, filter .16s ease, border-color .16s ease, background .16s ease;
}
button:hover { filter: brightness(1.1); transform: translateY(-1px); }
button:active { transform: translateY(0); }
button.ghost {
  background: #152238;
  border-color: #293b57;
  color: #abc4e7;
  box-shadow: none;
}
button.danger, .danger { background: #d83e50; }
button.success, .success { background: #15966e; }
button.warn, .warn { background: #cb7a12; }

input, select, textarea {
  color: var(--text);
  background: #0a1220;
  border: 1px solid #293a55;
  border-radius: 9px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input::placeholder, textarea::placeholder { color: #5f708a; }
input:focus, select:focus, textarea:focus {
  border-color: #468ff8;
  background: #0c1626;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

.login-card {
  width: min(430px, calc(100% - 32px));
  margin: 9vh auto;
  background: linear-gradient(160deg, rgba(18, 30, 49, .97), rgba(11, 18, 31, .98));
  border: 1px solid #263853;
  border-radius: 22px;
  padding: 38px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .46);
}
.brand-mark, .logo {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #2879f6, #28c4e4);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(38, 132, 245, .28);
}

.mini-logo {
  display: inline-flex;
  width: auto;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 12px;
}
.brand-mark { width: 56px; height: 56px; border-radius: 16px; }
.brand-avatar { width: 72px; height: 72px; object-fit: cover; border-radius: 18px; border: 2px solid #f97316; box-shadow: 0 12px 30px rgba(249, 115, 22, .22); }
.login-card h1 { margin: 20px 0 6px; }
.login-card p, .title p, .login-card small { color: var(--muted); }
.login-card form { display: grid; gap: 16px; margin: 28px 0; }
.login-card label, .grid-form label {
  display: grid;
  gap: 7px;
  color: #aab7ca;
  font-size: 13px;
}

header {
  height: 72px;
  background: rgba(10, 17, 29, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.logo { width: 39px; height: 39px; border-radius: 12px; margin-right: 12px; }
header strong { font-size: 18px; letter-spacing: .2px; }
.product-identity { display: flex; align-items: center; min-width: 205px; }
header small { color: #718199; margin-left: 10px; }
.product-switcher { position: relative; }
.product-switcher summary {
  display: flex;
  align-items: center;
  min-width: 205px;
  padding: 7px 10px 7px 7px;
  margin-left: -7px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  user-select: none;
  transition: background .16s ease, border-color .16s ease;
}
.product-switcher summary::-webkit-details-marker { display: none; }
.product-switcher summary::marker { content: ""; }
.product-switcher summary:hover,
.product-switcher[open] summary { background: #111d30; border-color: #2a3c58; }
.product-switch-chevron { margin-left: auto; color: #7890b0; font-size: 18px; transition: transform .16s ease; }
.product-switcher[open] .product-switch-chevron { transform: rotate(180deg); }
.product-switch-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 30;
  width: 286px;
  padding: 8px;
  border: 1px solid #2a3c58;
  border-radius: 14px;
  background: #0c1626;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .38);
}
.product-switch-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #dce8f8;
  text-decoration: none;
}
.product-switch-item:hover { background: #14233a; border-color: #294365; }
.product-switch-item.current { background: rgba(59, 130, 246, .12); border-color: rgba(96, 165, 250, .22); }
.product-switch-item > span:last-child { display: grid; gap: 2px; }
.product-switch-item b { font-size: 14px; }
.product-switch-item small { margin: 0; font-size: 12px; color: #7185a1; }
.product-switch-logo {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2f7eef, #4ba1ff);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.product-switch-logo.paigudi { background: linear-gradient(145deg, #059669, #14b8a6); }
.user { display: flex; gap: 14px; align-items: center; color: #b8c5d8; }

.layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 72px); }
nav {
  background: rgba(10, 16, 28, .72);
  border-right: 1px solid var(--line-soft);
  padding: 25px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
nav button {
  position: relative;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: #8292aa;
  padding: 12px 15px;
  box-shadow: none;
}
nav button.active, nav button:hover {
  background: linear-gradient(90deg, rgba(49, 125, 241, .2), rgba(49, 125, 241, .06));
  border-color: rgba(79, 145, 244, .2);
  color: #eaf3ff;
}
nav button.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 4px;
  background: #4c98ff;
  box-shadow: 0 0 12px #3487ff;
}

.content { min-width: 0; padding: 30px; max-width: 1600px; width: 100%; margin: 0 auto; }
.page { min-width: 0; }
.title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.title h2 { margin: 0 0 5px; font-size: 25px; }
.title p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 14px; }
.stat, .panel {
  background: linear-gradient(145deg, rgba(17, 28, 46, .96), rgba(12, 21, 36, .96));
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}
.stat { padding: 20px; position: relative; overflow: hidden; }
.stat::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -28px;
  top: -32px;
  border-radius: 50%;
  background: rgba(51, 132, 255, .1);
}
.stat b { display: block; font-size: 29px; margin-top: 10px; color: var(--blue-bright); }
.stat span { color: #8999b0; }
.panel { padding: 22px; margin-top: 18px; }
.panel h3 { margin: 0 0 17px; font-size: 17px; }
.quota-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 10px;
  margin: -4px 0 16px;
}
.quota-summary-strip > div {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 10px;
  background: rgba(2, 6, 23, .28);
  padding: 12px 14px;
}
.quota-summary-strip span {
  display: block;
  color: #8999b0;
  font-size: 12px;
}
.quota-summary-strip b {
  display: block;
  margin-top: 6px;
  color: #eaf2ff;
  font-size: 22px;
  line-height: 1.1;
}
.dashboard-todos { margin-top: 16px; }
.dashboard-todo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 12px;
}
.dashboard-todo-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 168px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(59, 130, 246, .12), transparent 42%),
    rgba(5, 10, 18, .32);
}
.dashboard-todo-card.has-work {
  border-color: rgba(244, 166, 42, .28);
  background:
    radial-gradient(circle at 100% 0, rgba(244, 166, 42, .13), transparent 42%),
    rgba(5, 10, 18, .36);
}
.dashboard-todo-card span {
  color: #7f8fa8;
  font-size: 12px;
}
.dashboard-todo-card b {
  color: #eaf2ff;
  font-size: 28px;
  line-height: 1;
}
.dashboard-todo-card.has-work b { color: #ffd18b; }
.dashboard-todo-card small {
  min-height: 38px;
  color: #8fa0b8;
  line-height: 1.45;
}
.dashboard-todo-card button {
  align-self: end;
  width: 100%;
  padding: 8px 10px;
  box-shadow: none;
}
.executive-board {
  border-color: rgba(56, 189, 248, .18);
  background:
    radial-gradient(circle at 12% 0, rgba(59, 130, 246, .16), transparent 34%),
    radial-gradient(circle at 100% 12%, rgba(20, 184, 166, .10), transparent 32%),
    rgba(6, 13, 24, .72);
}
.executive-head { align-items: flex-start; }
.executive-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.executive-metrics > div {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 14px;
  background: rgba(2, 6, 23, .28);
}
.executive-metrics span,
.executive-metrics small {
  display: block;
  color: #8190a8;
  font-size: 12px;
}
.executive-metrics b {
  display: block;
  color: #eaf2ff;
  font-size: 27px;
  line-height: 1.1;
  margin: 8px 0 4px;
}
.executive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 12px;
}
.executive-list {
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 14px;
  padding: 13px;
  background: rgba(2, 6, 23, .24);
}
.executive-list h4 {
  margin: 0 0 10px;
  color: #dbeafe;
  font-size: 14px;
}
.executive-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.executive-list li button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  color: inherit;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, .10);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.executive-list li:last-child button { border-bottom: 0; }
.executive-list li button:hover { color: #fff; transform: none; }
.executive-list span { min-width: 0; }
.executive-list b {
  display: block;
  color: #f8fbff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.executive-list small {
  display: block;
  color: #7f8fa8;
  font-size: 12px;
  margin-top: 3px;
}
.executive-list strong {
  color: #82f1c8;
  font-size: 12px;
  white-space: nowrap;
}
.executive-risk strong { color: #ffd18b; }
.executive-list p {
  color: #7f8fa8;
  margin: 0;
  font-size: 13px;
}

.grid-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.grid-form.compact { grid-template-columns: 2fr repeat(3, 1fr) auto; }
.grid-form .wide { grid-column: span 2; }
.grid-form .check { display: flex; align-items: center; gap: 8px; padding-bottom: 11px; }
.grid-form button { height: 42px; }
.grid-form.compact .class-scope-field { grid-column: 1 / -2; }
.generated-quota-notice {
  margin: 14px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(34, 197, 94, .26);
  border-radius: 10px;
  background: rgba(22, 163, 74, .10);
  color: #9ff2bd;
  font-weight: 700;
}
.field-title {
  display: block;
  color: #aab7ca;
  font-size: 13px;
  margin-bottom: 7px;
}
.class-scope-field {
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, .12), transparent 34%),
    rgba(7, 14, 25, .34);
}
.class-all-toggle {
  display: flex !important;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px !important;
  width: fit-content;
  min-width: 230px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(58, 139, 255, .32);
  border-radius: 12px;
  background: rgba(37, 99, 235, .12);
  color: #e8f2ff !important;
  cursor: pointer;
  user-select: none;
}
.class-all-toggle input,
.class-chip-grid input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--blue);
}
.class-all-toggle span { font-weight: 900; color: #f5f9ff; }
.class-all-toggle small { color: #7f91ab; font-size: 12px; }
.class-chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  gap: 8px;
}
.class-chip-grid label {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  min-height: 38px;
  border: 1px solid rgba(74, 101, 139, .58);
  border-radius: 11px;
  background: rgba(9, 18, 32, .56);
  color: #c4d2e6 !important;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.class-chip-grid label:hover {
  border-color: rgba(75, 148, 255, .62);
  background: rgba(37, 99, 235, .11);
  color: #eef6ff !important;
}
.class-chip-grid label:has(input:checked) {
  border-color: rgba(51, 132, 255, .86);
  background: linear-gradient(135deg, rgba(37, 99, 235, .34), rgba(14, 165, 233, .18));
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(79, 145, 244, .18) inset;
}
.class-scope-summary {
  display: block;
  margin-top: 10px;
  color: #72d6ad;
  font-weight: 800;
}
.batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18, 30, 49, .72), rgba(8, 14, 24, .52));
}
.batch-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cdd9ea;
  font-size: 13px;
  user-select: none;
}
.batch-toolbar span {
  color: var(--blue-bright);
  font-size: 13px;
  font-weight: 800;
  margin-right: 6px;
}
.batch-toolbar button { padding: 8px 12px; box-shadow: none; }
.license-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(5, 10, 18, .28);
}
.license-filter-bar select {
  min-width: 132px;
  padding: 8px 10px;
}
.license-filter-bar button {
  padding: 8px 12px;
  box-shadow: none;
}
.license-filter-bar span {
  margin-left: auto;
  color: #9ec8ff;
  font-size: 13px;
  font-weight: 800;
}
.select-col { width: 42px; text-align: center; }
.select-col input { width: 16px; height: 16px; padding: 0; accent-color: var(--blue); }
.restore-note {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(244, 166, 42, .28);
  border-radius: 12px;
  background: rgba(244, 166, 42, .08);
  color: #d8c095;
  font-size: 13px;
  line-height: 1.65;
}
.backup-table { margin-top: 10px; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.button-link:hover { filter: brightness(1.1); }
.download-panel {
  display: grid;
  gap: 16px;
  max-width: 920px;
}
.download-channel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 0;
}
.download-channel-heading div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.download-channel-heading span {
  color: #dbeafe;
  font-size: 15px;
  font-weight: 800;
}
.download-channel-heading small { color: #8fa0b8; }
.download-channel-heading b {
  padding: 3px 8px;
  border: 1px solid rgba(59, 130, 246, .32);
  border-radius: 6px;
  color: #93c5fd;
  font-size: 11px;
}
.download-channel-heading.beta-heading {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.download-channel-heading.beta-heading span { color: #fcd34d; }
.download-channel-heading.beta-heading b {
  border-color: rgba(245, 158, 11, .38);
  color: #fbbf24;
}
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(8, 14, 24, .52), rgba(22, 36, 58, .62));
}
.download-card.primary {
  border-color: rgba(59, 130, 246, .34);
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, .2), transparent 34%),
    linear-gradient(145deg, rgba(12, 25, 44, .92), rgba(15, 28, 47, .76));
}
.download-card.beta-card {
  border-color: rgba(245, 158, 11, .36);
  background: rgba(39, 30, 12, .46);
}
.download-card.beta-card h3 { color: #fde68a; }
.beta-download-button {
  background: #d97706;
  color: #fff;
}
.beta-download-note {
  margin: -4px 2px 2px;
  color: #d6b76e;
}
.download-card h3 { margin: 0 0 8px; }
.download-card p {
  margin: 0;
  color: #93a4bb;
  line-height: 1.65;
}
.download-button {
  min-width: 148px;
  height: 42px;
  font-size: 13px;
}
.ghost-link {
  background: #152238;
  border: 1px solid #293b57;
  color: #b9cff0;
  box-shadow: none;
}
.download-note {
  margin: 2px 0 0;
  color: #8fa0b8;
}
.download-tips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(8, 14, 24, .34);
}
.download-tips small { color: #8fa0b8; }
.customize-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.brand-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 14px;
  border: 1px solid rgba(68, 146, 255, .24);
  border-radius: 16px;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, .18), transparent 42%), rgba(8, 14, 24, .44);
}
.brand-preview-card .mini-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 14px;
}
.brand-preview-card b {
  display: block;
  color: #eef5ff;
  font-size: 16px;
}
.brand-preview-card small {
  display: block;
  margin-top: 4px;
  color: #8fa0b8;
}
.custom-brand-form {
  grid-column: 1 / -1;
  max-width: 760px;
}
.customize-clean {
  display: grid;
  gap: 18px;
}
.customize-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.customize-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  align-items: end;
}
.customize-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.customize-form .wide { grid-column: 1 / -1; }
.customize-form small { color: #8fa0b8; }
.customize-form button { width: max-content; }
.logo-img,
.logo.logo-image-preview {
  object-fit: cover;
  background-size: cover;
  background-position: center;
  color: transparent;
}
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
th {
  color: #8090a8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .25px;
  background: rgba(8, 14, 24, .34);
}
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: rgba(57, 128, 232, .055); }
td { color: #d7e1ef; }
td small { color: #7f8fa8; }
.reseller-remark { color: #9fb2ce; }
td button { padding: 6px 9px; margin-right: 5px; font-size: 12px; box-shadow: none; }
.license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.license-actions button { margin-right: 0; }
.mobile-license-list { display: none; }
.mobile-license-card {
  padding: 13px;
  border: 1px solid rgba(68, 146, 255, .18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(59, 130, 246, .11), transparent 38%),
    rgba(5, 10, 18, .34);
}
.mobile-license-card + .mobile-license-card { margin-top: 10px; }
.mobile-license-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
}
.mobile-license-head input { margin-top: 6px; }
.mobile-license-key {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.mobile-license-key code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  color: #dbeafe;
  font-size: 13px;
}
.mobile-license-key button {
  width: max-content;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: none;
}
.mobile-license-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}
.mobile-license-meta > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .11);
  border-radius: 11px;
  background: rgba(2, 6, 23, .28);
}
.mobile-license-meta span,
.mobile-license-meta small {
  display: block;
  color: #7f8fa8;
  font-size: 12px;
  line-height: 1.45;
}
.mobile-license-meta b {
  display: block;
  margin: 4px 0 2px;
  color: #e8f1ff;
  overflow-wrap: anywhere;
  white-space: normal;
}
.mobile-license-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mobile-license-actions button {
  width: 100%;
  margin: 0;
  padding: 8px 6px;
}
.mobile-empty {
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, .18);
  border-radius: 12px;
  color: #8fa0b8;
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  background: rgba(47, 130, 246, .13);
  border: 1px solid rgba(68, 146, 255, .2);
  color: #74aeff;
}
.preflight-summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(68, 146, 255, .24);
  background: rgba(47, 130, 246, .12);
  color: #9ec8ff;
  font-size: 13px;
  font-weight: 800;
}
.preflight-summary.pass { border-color: rgba(56, 211, 159, .32); background: rgba(56, 211, 159, .12); color: #82f1c8; }
.preflight-summary.warn { border-color: rgba(244, 166, 42, .36); background: rgba(244, 166, 42, .12); color: #ffd18b; }
.preflight-summary.fail { border-color: rgba(240, 82, 97, .38); background: rgba(240, 82, 97, .13); color: #ff9aa5; }
.preflight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.preflight-card {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 15px;
  background: rgba(8, 14, 24, .46);
}
.preflight-card.pass { border-color: rgba(56, 211, 159, .22); }
.preflight-card.warn { border-color: rgba(244, 166, 42, .3); }
.preflight-card.fail { border-color: rgba(240, 82, 97, .34); }
.preflight-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.preflight-head span {
  color: #74859d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.preflight-head b {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  background: rgba(47, 130, 246, .12);
  color: #9ec8ff;
}
.preflight-card.pass .preflight-head b { background: rgba(56, 211, 159, .12); color: #82f1c8; }
.preflight-card.warn .preflight-head b { background: rgba(244, 166, 42, .13); color: #ffd18b; }
.preflight-card.fail .preflight-head b { background: rgba(240, 82, 97, .14); color: #ff9aa5; }
.preflight-card h4 { margin: 12px 0 7px; font-size: 15px; }
.preflight-card p { margin: 0; color: #9ba9bd; line-height: 1.55; font-size: 13px; }
.preflight-card code {
  display: block;
  margin-top: 10px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(5, 10, 18, .72);
  color: #8cbcff;
  white-space: normal;
  word-break: break-all;
  font-size: 12px;
}
.launch-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.launch-group {
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(13, 23, 39, .78), rgba(8, 14, 24, .56));
  padding: 15px;
}
.launch-group h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #eaf2ff;
}
.launch-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.launch-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  background: rgba(5, 10, 18, .32);
  border: 1px solid rgba(255,255,255,.04);
}
.launch-item span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(47, 130, 246, .12);
  color: #9ec8ff;
}
.launch-item.pass span { background: rgba(56, 211, 159, .13); color: #82f1c8; }
.launch-item.warn span, .launch-item.manual span { background: rgba(244, 166, 42, .13); color: #ffd18b; }
.launch-item.fail span { background: rgba(240, 82, 97, .15); color: #ff9aa5; }
.launch-item b { display: block; font-size: 13px; color: #dfe9f8; }
.launch-item p { margin: 5px 0 0; color: #8fa0b8; line-height: 1.45; font-size: 12px; }
.inline-form { display: flex; gap: 10px; max-width: 540px; }
.inline-form input { flex: 1; }
.password-required-panel {
  width: min(560px, 100%);
  margin: 8vh auto 0;
  text-align: center;
  padding: 34px;
}
.password-required-panel .brand-mark { margin: 0 auto 16px; }
.password-required-panel h2 { margin: 0 0 10px; font-size: 24px; }
.password-required-panel p { margin: 0 auto 24px; max-width: 430px; color: var(--muted); line-height: 1.7; }
.password-required-panel .password-form {
  max-width: 380px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: left;
}
.password-required-panel button { width: 100%; }
.root-console-panel { padding: 22px; }
.root-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(5, 10, 18, .28);
}
.root-quick-filters button {
  padding: 7px 12px;
  border-color: rgba(68, 146, 255, .16);
  background: rgba(47, 130, 246, .08);
  color: #9fb2ce;
  box-shadow: none;
  font-size: 13px;
}
.root-quick-filters button.active,
.root-quick-filters button:hover {
  border-color: rgba(68, 146, 255, .36);
  background: linear-gradient(135deg, rgba(47, 130, 246, .28), rgba(36, 200, 229, .12));
  color: #eaf3ff;
}
.root-table-wrap { margin-top: 16px; }
.root-console-table th:nth-child(1) { min-width: 190px; }
.root-console-table th:nth-child(4) { min-width: 360px; }
.root-console-table th:nth-child(5) { min-width: 260px; }
.root-console-table tr.row-focus {
  background: linear-gradient(90deg, rgba(59, 130, 246, .18), rgba(36, 200, 229, .06));
  outline: 1px solid rgba(80, 151, 255, .24);
}
.root-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
.root-edit-grid label {
  display: grid;
  gap: 5px;
  color: #8fa0b8;
  font-size: 12px;
}
.root-edit-grid input[type="number"] {
  width: 100%;
  padding: 7px 8px;
  border-radius: 8px;
}
.root-edit-grid .mini-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  white-space: nowrap;
}
.root-edit-grid .mini-check input {
  width: 15px;
  height: 15px;
  padding: 0;
  accent-color: var(--blue);
}
.root-console-table textarea {
  width: 100%;
  min-width: 230px;
  resize: vertical;
  padding: 8px 10px;
  line-height: 1.45;
}
.root-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  min-width: 108px;
}
.root-actions button { margin: 0; }
.root-warning-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0 2px;
}
.root-warning-badges .badge {
  font-size: 11px;
  padding: 3px 7px;
}
.star-button {
  width: 28px;
  height: 28px;
  padding: 0;
  margin-right: 8px;
  border-radius: 10px;
  border-color: rgba(244, 166, 42, .28);
  background: rgba(244, 166, 42, .08);
  color: #ffd18b;
  box-shadow: none;
}
.star-button.active {
  background: linear-gradient(135deg, rgba(244, 166, 42, .34), rgba(47, 130, 246, .12));
  color: #ffe3a9;
}
.root-detail-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(68, 146, 255, .22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(8, 16, 30, .72), rgba(5, 10, 18, .44));
}
.root-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.root-detail-head h3 { margin: 0 0 5px; }
.root-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.detail-card {
  padding: 13px;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
  background: rgba(5, 10, 18, .34);
}
.detail-card span { display: block; color: #8392aa; font-size: 12px; margin-bottom: 5px; }
.detail-card b { display: block; color: #eaf3ff; font-size: 20px; }
.detail-card small { color: #8fa0b8; }
.root-detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.root-detail-columns section,
.root-detail-tree {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 14px;
  background: rgba(5, 10, 18, .26);
}
.root-detail-columns h4,
.root-detail-tree h4 { margin: 0 0 10px; }
.risk-line {
  margin: 0 0 8px;
  color: #ffd18b;
  line-height: 1.5;
}
.risk-line.pass { color: #82f1c8; }
.reseller-tree {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 8px;
}
.reseller-tree ul { margin-top: 8px; padding-left: 16px; }
.reseller-tree li {
  border-left: 2px solid rgba(68, 146, 255, .2);
  padding-left: 10px;
}
.reseller-tree span { font-weight: 900; color: #eaf3ff; margin-right: 8px; }
.reseller-tree small { color: #8fa0b8; }
.root-policy-card {
  margin-top: 14px;
  border: 1px solid rgba(68, 146, 255, .18);
  border-radius: 13px;
  padding: 14px;
  background: rgba(5, 10, 18, .24);
}
.root-policy-card h4 { margin: 0 0 10px; }
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 9px;
  margin-bottom: 8px;
}
.policy-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 7px 9px;
  background: rgba(8, 14, 24, .36);
}
.policy-grid input[type="number"] { width: 90px; padding: 6px 8px; }
.inline-actions { display: flex; margin-top: 10px; }
.root-overview-section,
.root-overview-grid section {
  margin-top: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 14px;
  background: rgba(5, 10, 18, .24);
}
.root-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.root-overview-head h4,
.root-overview-grid h4 { margin: 0; }
.root-overview-head small { color: #8190a8; }
.root-trend-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(58px, 1fr));
  gap: 9px;
  align-items: end;
}
.root-trend-day {
  min-height: 150px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  text-align: center;
  color: #8fa0b8;
  font-size: 11px;
}
.root-trend-day > span { color: #cbd7eb; font-weight: 800; }
.root-trend-day i {
  align-self: end;
  display: inline-block;
  width: 24%;
  min-height: 4px;
  margin: 0 1px;
  border-radius: 999px 999px 3px 3px;
  vertical-align: bottom;
}
.trend-paid { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.trend-active { background: linear-gradient(180deg, #5eead4, #059669); }
.trend-trial { background: linear-gradient(180deg, #fbbf24, #d97706); }
.root-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.root-overview-grid .wide { grid-column: 1 / -1; }
.root-mini-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}
.root-mini-list > div {
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 12px;
  background: rgba(2, 6, 23, .25);
}
.root-mini-list b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eef6ff;
  font-size: 13px;
}
.root-mini-list b small {
  margin-left: auto;
  color: #708098;
  font-weight: 600;
}
.root-mini-list small {
  display: block;
  margin-top: 5px;
  color: #899ab2;
  line-height: 1.45;
}
.root-mini-list p {
  margin: 6px 0 0;
  color: #9babc0;
  line-height: 1.45;
  font-size: 12px;
}
.report-insight-panel { margin-top: 16px; }
.report-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}
.report-insight-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(59, 130, 246, .14), transparent 42%),
    rgba(5, 10, 18, .34);
}
.report-insight-card span {
  display: block;
  color: #7f8fa8;
  font-size: 12px;
  margin-bottom: 8px;
}
.report-insight-card b {
  display: block;
  color: #eaf2ff;
  font-size: 17px;
  margin-bottom: 6px;
}
.report-insight-card small { color: #8fa0b8; line-height: 1.45; }
.report-rank-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.report-rank-list {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(6, 13, 24, .44);
  padding: 13px;
}
.report-rank-list h4 {
  margin: 0 0 10px;
  color: #dbeafe;
  font-size: 14px;
}
.report-rank-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.report-rank-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(148, 163, 184, .10);
}
.report-rank-list li:last-child { border-bottom: none; padding-bottom: 0; }
.report-rank-list span { min-width: 0; }
.report-rank-list b {
  display: block;
  color: #f8fbff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.report-rank-list small {
  display: block;
  color: #7f8fa8;
  font-size: 12px;
  margin-top: 3px;
}
.report-rank-list strong {
  color: #82f1c8;
  font-size: 13px;
  white-space: nowrap;
}
.report-rank-list p {
  color: #7f8fa8;
  margin: 0;
  font-size: 13px;
}
.report-risk-list {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(244, 166, 42, .28);
  background: rgba(244, 166, 42, .08);
  color: #ffd18b;
  font-size: 13px;
  line-height: 1.55;
}
.badge.status-online {
  border-color: rgba(56, 211, 159, .32);
  background: rgba(56, 211, 159, .12);
  color: #82f1c8;
}
.badge.status-danger {
  border-color: rgba(240, 82, 97, .38);
  background: rgba(240, 82, 97, .13);
  color: #ff9aa5;
}
.badge.status-warn {
  border-color: rgba(244, 166, 42, .36);
  background: rgba(244, 166, 42, .12);
  color: #ffd18b;
}
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(68, 146, 255, .26);
  background: rgba(47, 130, 246, .14);
  color: #9ec8ff;
  font-weight: 800;
  cursor: pointer;
}
.file-button input { display: none; }
.diagnostic-input-panel { display: grid; gap: 14px; }
.diagnostic-textarea {
  min-height: 260px;
  resize: vertical;
  line-height: 1.65;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}
.diagnostic-result { margin-top: 18px; }
.diagnostic-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 0;
}
.diagnostic-summary h3 { margin-bottom: 7px; font-size: 20px; }
.diagnostic-summary p { margin: 0; color: #9ba9bd; line-height: 1.55; }
.diagnostic-summary > span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(68, 146, 255, .24);
  background: rgba(47, 130, 246, .12);
  color: #9ec8ff;
}
.diagnostic-summary.pass { border-color: rgba(56, 211, 159, .28); }
.diagnostic-summary.warn { border-color: rgba(244, 166, 42, .34); }
.diagnostic-summary.fail { border-color: rgba(240, 82, 97, .38); }
.diagnostic-summary.pass > span { background: rgba(56, 211, 159, .12); color: #82f1c8; border-color: rgba(56, 211, 159, .28); }
.diagnostic-summary.warn > span { background: rgba(244, 166, 42, .12); color: #ffd18b; border-color: rgba(244, 166, 42, .34); }
.diagnostic-summary.fail > span { background: rgba(240, 82, 97, .13); color: #ff9aa5; border-color: rgba(240, 82, 97, .38); }
.diagnostic-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.diagnostic-card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 14px;
  background: rgba(8, 14, 24, .42);
}
.diagnostic-card span {
  display: block;
  color: #74859d;
  font-size: 12px;
  margin-bottom: 7px;
}
.diagnostic-card b {
  display: block;
  color: #dfe9f8;
  font-size: 14px;
  word-break: break-all;
}
.diagnostic-issues {
  display: grid;
  gap: 10px;
}
.diagnostic-issue {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 13px;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
  background: rgba(5, 10, 18, .34);
}
.diagnostic-issue > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: start;
  min-height: 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(47, 130, 246, .12);
  color: #9ec8ff;
}
.diagnostic-issue.fail { border-color: rgba(240, 82, 97, .34); }
.diagnostic-issue.warn { border-color: rgba(244, 166, 42, .30); }
.diagnostic-issue.pass { border-color: rgba(56, 211, 159, .24); }
.diagnostic-issue.fail > span { background: rgba(240, 82, 97, .14); color: #ff9aa5; }
.diagnostic-issue.warn > span { background: rgba(244, 166, 42, .13); color: #ffd18b; }
.diagnostic-issue.pass > span { background: rgba(56, 211, 159, .12); color: #82f1c8; }
.diagnostic-issue b { display: block; margin-bottom: 5px; color: #eaf2ff; }
.diagnostic-issue p { margin: 0; color: #9ba9bd; line-height: 1.5; }
.diagnostic-issue small { display: block; margin-top: 7px; color: #9ec8ff; line-height: 1.45; }
.diagnostic-log { max-height: 260px; overflow: auto; }
.diagnostic-history-panel { margin-top: 18px; }
.diagnostic-history-list {
  display: grid;
  gap: 10px;
}
.diagnostic-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
  background: rgba(5, 10, 18, .32);
}
.diagnostic-history-item.fail { border-color: rgba(240, 82, 97, .28); }
.diagnostic-history-item.warn { border-color: rgba(244, 166, 42, .24); }
.diagnostic-history-item.pass { border-color: rgba(56, 211, 159, .2); }
.diagnostic-history-item b { display: block; color: #eaf3ff; margin-bottom: 4px; }
.diagnostic-history-item small { display: block; color: #8fa0b8; }
.diagnostic-history-item > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
pre {
  background: #070e19;
  border: 1px solid #1e3450;
  color: #85c7ff;
  padding: 16px;
  border-radius: 10px;
  white-space: pre-wrap;
}
#toast {
  position: fixed;
  right: 24px;
  top: 85px;
  background: #14243b;
  border: 1px solid #2a4568;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  z-index: 10;
  opacity: 0;
  transform: translateY(-8px);
  transition: .2s;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: none; }
.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 16, .68);
  backdrop-filter: blur(10px);
  animation: fadeIn .14s ease;
}
.confirm-card {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(69, 102, 151, .46);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, .16), transparent 36%),
    linear-gradient(145deg, rgba(17, 28, 46, .98), rgba(8, 14, 24, .98));
  box-shadow: 0 28px 90px rgba(0,0,0,.46);
}
.confirm-card.info-card {
  width: min(760px, 100%);
  grid-template-columns: 1fr;
  max-height: min(82vh, 760px);
  overflow: auto;
}
.root-confirm-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: #b8c8df;
  font-size: 13px;
  font-weight: 800;
}
.root-confirm-field input { width: 100%; }
.info-dialog-content { display: grid; gap: 12px; }
.timeline-head {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(5, 10, 18, .34);
}
.timeline-head code { color: #7fc4ff; font-weight: 900; }
.timeline-head small { color: #8fa0b8; }
.timeline-list {
  display: grid;
  gap: 10px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(8, 14, 24, .36);
}
.timeline-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  border-radius: 999px;
  background: rgba(47, 130, 246, .14);
  color: #9ec8ff;
  font-size: 12px;
  font-weight: 900;
}
.timeline-item b { color: #eaf3ff; }
.timeline-item p { margin: 5px 0; color: #9ba9bd; line-height: 1.5; }
.timeline-item small { color: #7f91aa; }
.confirm-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(59, 130, 246, .16);
  border: 1px solid rgba(79, 145, 244, .26);
  color: #9ec8ff;
  font-size: 22px;
  font-weight: 900;
}
.confirm-icon.danger {
  background: rgba(240, 82, 97, .14);
  border-color: rgba(240, 82, 97, .34);
  color: #ff9aa5;
}
.confirm-body h3 {
  margin: 2px 0 8px;
  color: #f3f7ff;
  font-size: 18px;
}
.confirm-body p {
  margin: 0;
  color: #a9b7cb;
  line-height: 1.65;
  font-size: 13px;
}
.confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.confirm-actions button { min-width: 96px; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .dashboard-todo-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .executive-metrics { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .executive-grid { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
  .report-rank-grid { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  nav {
    position: sticky;
    top: 72px;
    z-index: 4;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  nav button { flex: 0 0 auto; }
  nav button.active::before { left: 12px; right: 12px; top: auto; bottom: 1px; width: auto; height: 2px; }
}
@media (max-width: 950px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-todo-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .report-insight-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .report-rank-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .grid-form, .grid-form.compact { grid-template-columns: 1fr 1fr; }
  .grid-form .wide,
  .grid-form.compact .class-scope-field { grid-column: 1 / -1; }
  .content { padding: 20px; }
}
@media (max-width: 580px) {
  header {
    height: auto;
    min-height: 66px;
    padding: 10px 14px;
    gap: 10px;
  }
  header strong { font-size: 17px; }
  header small { display: none; }
  .product-switcher summary { min-width: 0; padding-right: 7px; }
  .product-switcher summary strong { max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .product-switch-menu { width: min(286px, calc(100vw - 28px)); }
  .user > span { display: none; }
  .stats, .grid-form, .grid-form.compact, .report-insight-grid, .report-rank-grid, .dashboard-todo-grid { grid-template-columns: 1fr; }
  .quota-summary-strip { grid-template-columns: 1fr; }
  .executive-metrics,
  .executive-grid { grid-template-columns: 1fr; }
  .layout { min-height: calc(100vh - 66px); }
  nav {
    top: 66px;
    width: 100vw;
    max-width: 100vw;
    padding: 8px 12px;
    gap: 6px;
  }
  nav button {
    padding: 10px 13px;
    font-size: 14px;
  }
  .content {
    width: 100%;
    max-width: 100vw;
    padding: 12px;
    overflow-x: hidden;
  }
  .title {
    display: block;
    margin-bottom: 14px;
  }
  .title h2 { font-size: 22px; }
  .panel {
    padding: 14px;
    border-radius: 14px;
    overflow: hidden;
  }
  .panel.table-wrap,
  .table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }
  .panel.table-wrap table,
  .table-wrap table {
    min-width: 860px;
  }
  .desktop-data-table {
    display: none;
  }
  .mobile-license-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
  }
  .panel.table-wrap:has(.mobile-license-list) {
    overflow: visible;
  }
  .batch-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .batch-toolbar label,
  .batch-toolbar span {
    grid-column: 1 / -1;
  }
  .batch-toolbar button {
    width: 100%;
  }
  .grid-form .wide,
  .grid-form.compact .class-scope-field {
    grid-column: 1 / -1;
  }
  .grid-form button {
    width: 100%;
  }
  input, select, textarea, button {
    max-width: 100%;
  }
  .grid-form > label,
  .grid-form > div {
    min-width: 0;
  }
  .class-scope-field {
    padding: 12px;
  }
  .class-all-toggle {
    width: 100%;
    min-width: 0;
    display: grid !important;
    grid-template-columns: auto auto 1fr;
  }
  .class-all-toggle small {
    font-size: 11px;
    white-space: normal;
  }
  .class-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .class-chip-grid label {
    min-width: 0;
    justify-content: flex-start;
    padding: 9px 10px;
    font-size: 14px;
  }
  .license-filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .license-filter-bar select,
  .license-filter-bar button,
  .license-filter-bar span {
    width: 100%;
  }
  .download-card,
  .root-detail-head,
  .diagnostic-history-item {
    display: grid;
    align-items: stretch;
  }
  .root-detail-columns { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
  .root-overview-grid { grid-template-columns: 1fr; }
  .root-trend-bars {
    grid-template-columns: repeat(7, minmax(40px, 1fr));
    gap: 6px;
  }
  .root-trend-day { min-height: 126px; }
  .root-mini-list b {
    display: grid;
    gap: 5px;
  }
  .confirm-card.info-card { width: calc(100vw - 24px); }
}

@media (max-width: 420px) {
  .mobile-license-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .mobile-license-head .badge {
    grid-column: 2;
    width: max-content;
  }
  .mobile-license-meta,
  .mobile-license-actions {
    grid-template-columns: 1fr;
  }
}


