:root {
  --bg: #eef3f9;
  --bg-soft: #f6f9fc;
  --sidebar: rgba(255, 255, 255, 0.94);
  --workspace: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: rgba(248, 250, 253, 0.98);
  --panel-muted: rgba(242, 246, 251, 0.96);
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(100, 116, 139, 0.3);
  --text: #162235;
  --text-soft: #334155;
  --text-dim: #6b7b92;
  --accent: #4b82ff;
  --accent-strong: #2f6aff;
  --accent-soft: rgba(75, 130, 255, 0.12);
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.12);
  --warning: #d97706;
  --warning-soft: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.06);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --body-background:
    radial-gradient(circle at top left, rgba(75, 130, 255, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 18%),
    linear-gradient(180deg, #fbfdff 0%, #f5f8fc 42%, #eef3f9 100%);
  --grid-overlay:
    linear-gradient(rgba(20, 45, 90, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 45, 90, 0.035) 1px, transparent 1px);
  --sidebar-background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.98)),
    radial-gradient(circle at top, rgba(75, 130, 255, 0.1), transparent 28%);
  --brand-mark-shadow: 0 18px 36px rgba(47, 106, 255, 0.22);
  --sidebar-link-hover-bg: rgba(75, 130, 255, 0.08);
  --sidebar-link-hover-border: rgba(75, 130, 255, 0.2);
  --chip-background: rgba(255, 255, 255, 0.82);
  --chip-border: rgba(148, 163, 184, 0.18);
  --search-background: rgba(255, 255, 255, 0.96);
  --search-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --status-warn-bg: rgba(255, 244, 214, 0.94);
  --status-warn-border: rgba(245, 158, 11, 0.24);
  --status-warn-color: #a16207;
  --status-success-bg: rgba(220, 252, 231, 0.96);
  --status-success-border: rgba(34, 197, 94, 0.22);
  --status-success-color: #15803d;
  --status-error-bg: rgba(254, 226, 226, 0.96);
  --status-error-border: rgba(239, 68, 68, 0.22);
  --status-error-color: #b42318;
  --panel-background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.96));
  --hero-copy-border: rgba(75, 130, 255, 0.14);
  --hero-copy-background:
    radial-gradient(circle at top right, rgba(75, 130, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
  --hero-card-background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
  --stat-card-background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.96));
  --stat-card-hover-border: rgba(75, 130, 255, 0.22);
  --stat-card-accent-background: linear-gradient(135deg, rgba(75, 130, 255, 0.96), rgba(47, 106, 255, 0.96));
  --stat-card-positive-background: linear-gradient(180deg, rgba(234, 250, 241, 0.96), rgba(245, 252, 247, 0.96));
  --input-background: rgba(255, 255, 255, 0.96);
  --input-focus-border: rgba(75, 130, 255, 0.36);
  --input-focus-ring: 0 0 0 4px rgba(75, 130, 255, 0.12);
  --input-focus-background: rgba(255, 255, 255, 1);
  --checkbox-background: rgba(248, 250, 252, 0.94);
  --ghost-background: rgba(255, 255, 255, 0.78);
  --mini-background: rgba(255, 255, 255, 0.84);
  --notice-background: rgba(239, 246, 255, 0.94);
  --notice-border: rgba(75, 130, 255, 0.18);
  --status-tile-background: rgba(248, 250, 252, 0.96);
  --table-background: rgba(255, 255, 255, 0.96);
  --table-code-background: rgba(248, 250, 252, 0.98);
  --table-code-border: rgba(148, 163, 184, 0.14);
  --table-header-background: rgba(246, 249, 253, 0.98);
  --table-row-hover-background: rgba(75, 130, 255, 0.05);
  --table-row-selected-background: rgba(75, 130, 255, 0.09);
  --detail-background: rgba(248, 250, 252, 0.96);
  --secret-card-background: rgba(248, 250, 252, 0.96);
  --secret-placeholder-background: rgba(255, 255, 255, 0.94);
  --secret-placeholder-border: rgba(148, 163, 184, 0.24);
  --secret-code-background: rgba(239, 246, 255, 0.94);
  --secret-code-border: rgba(75, 130, 255, 0.18);
  --secret-code-color: #1d4ed8;
  --muted-card-background: rgba(244, 247, 251, 0.96);
  --platform-card-background: rgba(255, 255, 255, 0.96);
  --version-item-border: rgba(148, 163, 184, 0.16);
  --version-item-background: rgba(248, 250, 252, 0.96);
  --badge-default-background: rgba(226, 232, 240, 0.9);
  --badge-default-color: #64748b;
  --badge-active-color: #15803d;
  --badge-disabled-color: #b42318;
  --warning-button-color: #b45309;
  --warning-button-background: rgba(245, 158, 11, 0.12);
  --danger-button-color: #b42318;
  --danger-button-background: rgba(239, 68, 68, 0.12);
  --primary-shadow: 0 16px 30px rgba(47, 106, 255, 0.18);
}

html[data-theme="dark"] {
  --bg: #0a0f18;
  --bg-soft: #0f1522;
  --sidebar: rgba(12, 17, 28, 0.94);
  --workspace: #0d131d;
  --panel: rgba(18, 24, 37, 0.92);
  --panel-strong: rgba(24, 32, 48, 0.96);
  --panel-muted: rgba(15, 21, 34, 0.8);
  --line: rgba(136, 153, 184, 0.18);
  --line-strong: rgba(136, 153, 184, 0.32);
  --text: #eef4ff;
  --text-soft: #b5c0d5;
  --text-dim: #7d8aa3;
  --accent-soft: rgba(75, 130, 255, 0.18);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.16);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.16);
  --danger-soft: rgba(239, 68, 68, 0.16);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.22);
  --body-background:
    radial-gradient(circle at top left, rgba(75, 130, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 18%),
    linear-gradient(180deg, #091019 0%, #0b111b 32%, #0a0f18 100%);
  --grid-overlay:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  --sidebar-background:
    linear-gradient(180deg, rgba(17, 24, 38, 0.98), rgba(10, 15, 24, 0.96)),
    radial-gradient(circle at top, rgba(75, 130, 255, 0.14), transparent 28%);
  --brand-mark-shadow: 0 18px 36px rgba(47, 106, 255, 0.28);
  --sidebar-link-hover-bg: rgba(255, 255, 255, 0.045);
  --sidebar-link-hover-border: rgba(75, 130, 255, 0.24);
  --chip-background: rgba(255, 255, 255, 0.05);
  --chip-border: rgba(255, 255, 255, 0.08);
  --search-background: rgba(14, 20, 31, 0.94);
  --search-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  --status-warn-bg: rgba(43, 31, 8, 0.64);
  --status-warn-border: rgba(245, 158, 11, 0.2);
  --status-warn-color: #ffd28a;
  --status-success-bg: rgba(10, 53, 28, 0.74);
  --status-success-border: rgba(34, 197, 94, 0.22);
  --status-success-color: #7cf5ab;
  --status-error-bg: rgba(63, 17, 17, 0.72);
  --status-error-border: rgba(239, 68, 68, 0.2);
  --status-error-color: #ff9f9f;
  --panel-background: linear-gradient(180deg, rgba(18, 24, 37, 0.94), rgba(13, 19, 29, 0.94));
  --hero-copy-border: rgba(75, 130, 255, 0.16);
  --hero-copy-background:
    radial-gradient(circle at top right, rgba(75, 130, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(16, 23, 35, 0.94), rgba(13, 19, 29, 0.94));
  --hero-card-background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(18, 24, 37, 0.98), rgba(12, 18, 28, 0.98));
  --stat-card-background: linear-gradient(180deg, rgba(20, 28, 43, 0.95), rgba(15, 21, 34, 0.94));
  --stat-card-hover-border: rgba(75, 130, 255, 0.28);
  --stat-card-accent-background: linear-gradient(135deg, rgba(30, 53, 122, 0.96), rgba(44, 107, 255, 0.96));
  --stat-card-positive-background: linear-gradient(180deg, rgba(14, 34, 25, 0.94), rgba(12, 21, 30, 0.94));
  --input-background: rgba(9, 13, 22, 0.9);
  --input-focus-border: rgba(75, 130, 255, 0.52);
  --input-focus-ring: 0 0 0 4px rgba(75, 130, 255, 0.14);
  --input-focus-background: rgba(13, 19, 29, 0.98);
  --checkbox-background: rgba(9, 13, 22, 0.72);
  --ghost-background: rgba(255, 255, 255, 0.03);
  --mini-background: rgba(255, 255, 255, 0.04);
  --notice-background: rgba(18, 28, 49, 0.78);
  --notice-border: rgba(75, 130, 255, 0.2);
  --status-tile-background: rgba(12, 18, 29, 0.76);
  --table-background: rgba(9, 13, 22, 0.68);
  --table-code-background: rgba(255, 255, 255, 0.05);
  --table-code-border: rgba(255, 255, 255, 0.06);
  --table-header-background: rgba(14, 20, 31, 0.98);
  --table-row-hover-background: rgba(75, 130, 255, 0.05);
  --table-row-selected-background: rgba(75, 130, 255, 0.08);
  --detail-background: rgba(9, 13, 22, 0.72);
  --secret-card-background: rgba(12, 18, 29, 0.82);
  --secret-placeholder-background: rgba(7, 10, 18, 0.94);
  --secret-placeholder-border: rgba(136, 153, 184, 0.22);
  --secret-code-background: rgba(18, 28, 49, 0.82);
  --secret-code-border: rgba(75, 130, 255, 0.24);
  --secret-code-color: #d9e6ff;
  --muted-card-background: rgba(11, 16, 25, 0.74);
  --platform-card-background: rgba(12, 18, 29, 0.8);
  --version-item-border: rgba(136, 153, 184, 0.16);
  --version-item-background: rgba(20, 28, 43, 0.78);
  --badge-default-background: rgba(136, 153, 184, 0.14);
  --badge-default-color: #c5d0e4;
  --badge-active-color: #7cf5ab;
  --badge-disabled-color: #ff9f9f;
  --warning-button-color: #ffd089;
  --warning-button-background: rgba(245, 158, 11, 0.12);
  --danger-button-color: #ff9f9f;
  --danger-button-background: rgba(239, 68, 68, 0.12);
  --primary-shadow: 0 16px 30px rgba(47, 106, 255, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  background: var(--body-background);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--grid-overlay);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 86%);
}

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

code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-panel {
  width: min(440px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-background);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

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

.login-brand p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.login-field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--input-background);
  outline: none;
}

.login-field input:focus {
  border-color: var(--input-focus-border);
  background: var(--input-focus-background);
  box-shadow: var(--input-focus-ring);
}

.login-submit {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: var(--primary-shadow);
  cursor: pointer;
}

.login-submit:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.login-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--status-error-border);
  border-radius: var(--radius-sm);
  color: var(--status-error-color);
  background: var(--status-error-bg);
}

.admin-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 20px;
  border-right: 1px solid var(--line);
  background: var(--sidebar-background);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #63a6ff 100%);
  box-shadow: var(--brand-mark-shadow);
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-group {
  display: grid;
  gap: 12px;
}

.sidebar-group-title {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text-soft);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--text);
  background: var(--sidebar-link-hover-bg);
  border-color: var(--sidebar-link-hover-border);
  transform: translateX(2px);
}

.sidebar-link-index {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--chip-background);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sidebar-link.active .sidebar-link-index,
.sidebar-link:hover .sidebar-link-index {
  background: var(--accent-soft);
  color: #8db4ff;
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-background);
  box-shadow: var(--shadow-soft);
}

.sidebar-card-label {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-card-value {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sidebar-card p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.sidebar-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sidebar-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--chip-background);
  border: 1px solid var(--chip-border);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.workspace {
  padding: 26px;
}

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

.topbar-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  max-width: 520px;
  height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--search-background);
  box-shadow: var(--search-shadow);
}

.topbar-search-icon {
  color: var(--text-dim);
  font-size: 16px;
}

.topbar-search input {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.topbar-search input:focus {
  box-shadow: none;
}

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

.topbar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-background);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.topbar-btn {
  min-height: 38px;
}

.theme-toggle-btn {
  min-width: 148px;
  white-space: nowrap;
}

.page-status {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--status-warn-border);
  background: var(--status-warn-bg);
  color: var(--status-warn-color);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.page-status.success {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-color);
}

.page-status.error {
  background: var(--status-error-bg);
  border-color: var(--status-error-border);
  color: var(--status-error-color);
}

.overview-panel,
.panel,
.hero-card,
.stat-card,
.status-tile,
.platform-card,
.version-item,
.notice,
.detail-shell,
.secret-card {
  position: relative;
  overflow: hidden;
}

.overview-panel,
.panel {
  border: 1px solid var(--line);
  background: var(--panel-background);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.overview-panel,
.panel {
  border-radius: var(--radius-xl);
}

.overview-panel {
  padding: 24px;
  margin-bottom: 20px;
}

.overview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.overview-copy {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--hero-copy-border);
  background: var(--hero-copy-background);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: #8db4ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 19px;
  line-height: 1.15;
}

.hero-copy,
.panel-head p,
.hero-card-copy,
.filter-summary,
.platform-meta,
.muted,
.hero-card-label,
.sidebar-card-label {
  color: var(--text-dim);
}

.hero-copy {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.75;
}

.hero-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--hero-card-background);
  box-shadow: var(--shadow-soft);
}

.hero-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card-value {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-card-copy {
  margin: 14px 0 0;
  line-height: 1.7;
}

.hero-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--chip-background);
  border: 1px solid var(--chip-border);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.overview-secondary-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.overview-block {
  padding: 22px;
}

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

.overview-shortcut {
  min-height: 52px;
  justify-content: center;
}

.overview-health-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--stat-card-background);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--stat-card-hover-border);
}

.stat-card:nth-child(2) {
  background: var(--stat-card-accent-background);
}

.stat-card:nth-child(2) .stat-label,
.stat-card:nth-child(2) .stat-note,
.stat-card:nth-child(2) .stat-value {
  color: #fff;
}

.stat-card:nth-child(5) {
  background: var(--stat-card-positive-background);
}

.stat-label {
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-note {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

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

.span-12 {
  grid-column: span 12;
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.panel {
  padding: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-head.compact {
  margin-bottom: 14px;
}

.panel-head p {
  margin: 10px 0 0;
  line-height: 1.7;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.span-12.field {
  grid-column: span 12;
}

.span-4.field {
  grid-column: span 4;
}

.span-3.field {
  grid-column: span 3;
}

.span-2.field {
  grid-column: span 2;
}

.span-1.field {
  grid-column: span 1;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--input-background);
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-ring);
  background: var(--input-focus-background);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.checkbox-card {
  padding: 12px 14px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--checkbox-background);
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.checkbox-field input {
  width: auto;
  margin: 0;
}

.checkbox-field input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.remote-config-note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--muted-card-background);
  align-content: start;
}

.remote-config-note p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.action-field {
  display: flex;
  align-items: end;
}

.wide-btn {
  width: 100%;
}

.primary-btn,
.ghost-btn,
.mini-btn {
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.mini-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  padding: 12px 16px;
  border: 1px solid rgba(88, 134, 255, 0.32);
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: var(--primary-shadow);
}

.ghost-btn {
  padding: 11px 16px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-weight: 700;
  background: var(--ghost-background);
}

.mini-btn {
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  background: var(--mini-background);
}

.mini-btn.warn {
  color: var(--warning-button-color);
  background: var(--warning-button-background);
}

.mini-btn.danger {
  color: var(--danger-button-color);
  background: var(--danger-button-background);
}

.mini-btn:disabled,
.primary-btn:disabled,
.ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.notice {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--notice-border);
  background: var(--notice-background);
}

.notice-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.notice-copy {
  margin: 8px 0 0;
  line-height: 1.6;
  color: var(--text-soft);
}

.notice code {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--input-background);
  border: 1px solid var(--line);
  word-break: break-all;
}

.token-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.token-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.token-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 0.95fr) minmax(220px, 1.15fr) 180px auto;
  gap: 12px;
  align-items: center;
}

.token-toolbar-clean {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}

.token-filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--text-dim);
  font-size: 13px;
}

.filter-summary {
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 13px;
}

.token-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-soft);
  font-weight: 700;
}

.token-summary-pill-strong {
  border-color: rgba(88, 134, 255, 0.18);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.token-summary-note {
  color: var(--text-dim);
  font-size: 12px;
}

.token-batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--panel);
}

.token-selection-summary {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.token-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.token-create-inline-shell {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}

.token-create-inline-form {
  margin-bottom: 0;
}

.create-token-form:not(.token-create-inline-form),
.plugin-form {
  margin-bottom: 12px;
}

.token-table-shell {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.token-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.token-table {
  min-width: 1280px;
}

.token-table-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.token-table-link:hover {
  color: var(--accent);
}

.token-row-note {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}

.token-select-column {
  width: 52px;
  min-width: 52px;
  text-align: center;
}

.token-select-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  accent-color: var(--accent-strong);
  box-shadow: none;
}

.token-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.token-action-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.token-action-link.warn {
  color: var(--warning-button-color);
}

.token-action-link.danger {
  color: var(--danger-button-color);
}

.token-action-link:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}

.token-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
}

.token-detail-modal[hidden] {
  display: none;
}

.token-detail-dialog {
  width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel-background);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.token-detail-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.token-detail-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ghost-background);
  color: var(--text-soft);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.token-detail-close:hover {
  transform: translateY(-1px);
  border-color: var(--input-focus-border);
  background: var(--panel);
}

.token-detail-shell {
  min-height: 0;
  max-height: none;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: var(--detail-background);
  padding: 24px 26px 26px;
}

.token-admin-table td:last-child {
  min-width: 260px;
}

.sidebar-link[href="#quick-start"],
[data-view="quick-start"] {
  display: none !important;
}

.quickstart-form {
  margin-top: 14px;
}

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

.binding-summary,
.rule-summary,
.plugin-summary {
  margin-bottom: 16px;
}

.status-tile {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--status-tile-background);
}

.status-tile .label {
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}

.status-tile .value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
}

.status-tile .note {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}

.status-tile.is-accent {
  border-color: rgba(88, 134, 255, 0.26);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.status-tile.is-accent .label,
.status-tile.is-accent .value,
.status-tile.is-accent .note {
  color: #fff;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--table-background);
}

.table-wrap code {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 10px;
  background: var(--table-code-background);
  border: 1px solid var(--table-code-border);
  color: var(--text-soft);
  word-break: break-all;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(136, 153, 184, 0.12);
  text-align: left;
  vertical-align: top;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--table-header-background);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover td {
  background: var(--table-row-hover-background);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.selected-row td {
  background: var(--table-row-selected-background);
}

.table-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.table-link:hover {
  color: var(--accent);
}

.empty-cell {
  padding: 28px 12px;
  text-align: center;
  color: var(--text-dim);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--badge-default-background);
  color: var(--badge-default-color);
}

.badge.active {
  background: var(--success-soft);
  color: var(--badge-active-color);
}

.badge.disabled,
.badge.error {
  background: var(--danger-soft);
  color: var(--badge-disabled-color);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-shell {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--detail-background);
  padding: 18px;
  min-height: 220px;
}

.detail-placeholder {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  line-height: 1.7;
}

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

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.detail-actions {
  margin-top: 12px;
}

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

.secret-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--secret-card-background);
}

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

.secret-placeholder {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--secret-placeholder-background);
  border: 1px dashed var(--secret-placeholder-border);
  color: var(--text-dim);
  line-height: 1.7;
}

.secret-code {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--secret-code-background);
  border: 1px solid var(--secret-code-border);
  color: var(--secret-code-color);
  word-break: break-all;
}

.muted-card {
  background: var(--muted-card-background);
}

.detail-section-title {
  font-size: 14px;
  font-weight: 800;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.rule-mapping-shell {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--muted-card-background);
}

.rule-mapping-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.rule-mapping-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.rule-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.rule-map-source {
  display: grid;
  gap: 4px;
}

.rule-map-source strong {
  font-size: 14px;
}

.rule-map-source span {
  font-size: 12px;
  color: var(--text-dim);
}

.rule-map-target {
  display: grid;
  gap: 6px;
}

.rule-map-target span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
}

.rule-map-required {
  align-self: center;
  padding-bottom: 2px;
  white-space: nowrap;
}

.rule-json-note {
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.7;
}

.rule-extract-shell {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--muted-card-background);
}

.rule-extract-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.rule-extract-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.extract-table-shell {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--table-background);
  overflow: hidden;
}

.extract-table-head,
.extract-table-main {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.1fr) 90px minmax(220px, 1.35fr) 148px;
  gap: 12px;
  align-items: center;
}

.extract-table-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--table-header-background);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.extract-table-body {
  display: grid;
}

.extract-table-row {
  border-bottom: 1px solid var(--line);
}

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

.extract-table-main {
  padding: 14px 16px;
  background: var(--panel);
}

.extract-table-main.is-expanded {
  background: var(--table-row-selected-background);
}

.extract-table-cell {
  min-width: 0;
}

.extract-table-cell input {
  width: 100%;
}

.extract-table-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--muted-card-background);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.extract-table-preview {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}

.extract-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.extract-table-detail {
  padding: 0 16px 16px;
  background: var(--panel);
}

.extract-table-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--muted-card-background);
}

.extract-table-mobile-label {
  display: none;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}

.extract-table-empty {
  padding: 24px 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text-dim);
  text-align: center;
  line-height: 1.8;
}

.rule-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 16px;
}

.rule-version-panel {
  order: 1;
}

.rule-editor-panel {
  order: 2;
}

.rule-editor-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-filter-grid {
  flex: 1 1 720px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr);
  gap: 12px;
}

.rule-list-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.panel-meta {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-row-note,
.feedback-page-cell {
  max-width: 260px;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-detail-shell {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--detail-background);
  overflow: hidden;
}

.feedback-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.feedback-detail-head h3 {
  margin: 0;
  font-size: 18px;
}

.feedback-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feedback-detail-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.feedback-info-shell,
.feedback-screenshot-shell,
.feedback-json-shell {
  padding: 16px;
}

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

.feedback-detail-list > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.feedback-detail-list span {
  color: var(--text-dim);
  font-size: 12px;
}

.feedback-detail-list strong,
.feedback-detail-list code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
}

.feedback-screenshot {
  display: block;
  max-width: 100%;
  max-height: 420px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.feedback-json-pre {
  max-height: 460px;
  margin: 12px 0 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--table-code-background);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.rule-version-table-wrap {
  margin-top: 4px;
}

.rule-version-table {
  min-width: 1180px;
}

.rule-table-platform,
.rule-table-version,
.rule-table-time {
  display: grid;
  gap: 4px;
}

.rule-table-platform strong,
.rule-table-version strong,
.rule-table-time strong {
  font-size: 14px;
}

.rule-table-platform span,
.rule-table-version span,
.rule-table-time span {
  color: var(--text-dim);
  font-size: 12px;
}

.rule-table-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rule-table-summary span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--muted-card-background);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rule-table-note {
  min-width: 180px;
  max-width: 320px;
  color: var(--text-soft);
  line-height: 1.7;
  word-break: break-word;
}

.rule-table-actions {
  min-width: 160px;
}

.rule-table-live {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--badge-active-color);
  font-size: 12px;
  font-weight: 800;
}

.rule-table-dim {
  color: var(--text-dim);
}

.rule-version-preview-cell {
  padding: 0 12px 16px;
}

.rule-version-preview-row:hover td {
  background: inherit;
}

.extract-editor-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.extract-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.extract-editor-index {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.platform-list {
  display: grid;
  gap: 14px;
}

.platform-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--platform-card-background);
}

.platform-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.platform-head-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.platform-head-meta {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}

.platform-meta {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.version-list {
  display: grid;
  gap: 10px;
}

.version-item {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--version-item-border);
  background: var(--version-item-background);
}

.version-item.is-active {
  border-color: rgba(88, 134, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(75, 130, 255, 0.1);
}

.version-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.version-meta {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}

.version-extra {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 12px;
}

.version-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.version-stat {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.version-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 12px;
}

.version-stat strong {
  font-size: 16px;
}

.version-preview {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.version-preview-section + .version-preview-section {
  margin-top: 14px;
}

.extract-rule-grid {
  display: grid;
  gap: 12px;
}

.extract-rule-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--status-tile-background);
  overflow: hidden;
}

.extract-rule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.extract-rule-head strong {
  font-size: 14px;
}

.extract-rule-head span {
  color: var(--text-dim);
  font-size: 12px;
}

.extract-rule-body {
  padding: 12px 14px 14px;
}

.extract-rule-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.extract-rule-list li + li {
  margin-top: 4px;
}

.extract-rule-note {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}

.version-preview-label {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.version-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--status-tile-background);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.version-chip.is-muted {
  color: var(--text-dim);
}

.version-mapping-list {
  display: grid;
  gap: 8px;
}

.version-mapping-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--status-tile-background);
  color: var(--text-soft);
  font-size: 13px;
}

.version-mapping-item span,
.version-mapping-item strong {
  word-break: break-all;
}

.version-mapping-item strong {
  color: var(--text);
  text-align: right;
}

.version-preview-note {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}

.version-json-preview {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--input-background);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow: auto;
  max-height: 320px;
}

.version-actions {
  margin-top: 12px;
}

.plugin-table-wrap code {
  max-width: 320px;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sticky-panel {
  position: sticky;
  top: 24px;
  align-self: start;
}

@media (max-width: 1440px) {
  .stats-grid,
  .quickstart-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1260px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-card {
    margin-top: 0;
  }

  .stats-grid,
  .quickstart-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-secondary-grid {
    grid-template-columns: 1fr;
  }

  .span-7,
  .span-5 {
    grid-column: span 12;
  }

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .token-detail-modal {
    padding: 18px;
  }

  .token-detail-dialog {
    max-height: calc(100vh - 36px);
  }

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

  .rule-filter-grid {
    grid-template-columns: 1fr;
  }

  .rule-list-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .extract-table-head {
    display: none;
  }

  .extract-table-main {
    grid-template-columns: 1fr;
  }

  .extract-table-detail {
    padding: 0 14px 14px;
  }

  .extract-table-detail-grid {
    grid-template-columns: 1fr;
  }

  .extract-table-mobile-label {
    display: block;
  }

  .rule-extract-head {
    flex-direction: column;
  }

  .overview-head {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-search {
    max-width: none;
  }

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

  .span-4.field,
  .span-3.field,
  .span-2.field,
  .span-1.field {
    grid-column: span 12;
  }

  .token-toolbar {
    grid-template-columns: 1fr;
  }

  .token-filter-summary {
    justify-content: flex-start;
  }

  .token-batch-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .rule-map-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .shortcut-grid,
  .overview-health-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .token-detail-modal {
    padding: 12px;
  }

  .token-detail-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }

  .token-detail-dialog-head,
  .token-detail-shell {
    padding: 18px;
  }

  .workspace,
  .sidebar {
    padding: 18px 14px;
  }

  .overview-panel,
  .panel,
  .overview-copy,
  .hero-card,
  .sidebar-card {
    padding: 18px;
    border-radius: 20px;
  }

  h1 {
    font-size: 34px;
  }

  .stats-grid,
  .quickstart-status,
  .detail-summary {
    grid-template-columns: 1fr;
  }

  .notice-header,
  .platform-head,
  .detail-head,
  .panel-head,
  .secret-card-head,
  .token-page-head,
  .token-detail-dialog-head {
    flex-direction: column;
  }

  .platform-head-side {
    justify-items: start;
  }

  .ghost-btn,
  .primary-btn,
  .topbar-btn {
    width: 100%;
  }

  .token-filter-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .token-batch-actions {
    flex-direction: column;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-pill {
    justify-content: center;
  }
}
