:root {
  --bg: #f3f6fa;
  --panel: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e4eaf2;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #14b8a6;
  --green: #17a56b;
  --purple: #6d5dfc;
  --orange: #f97316;
  --primary: #2563eb;
  --surface: #f8fafc;
  --sidebar: #111827;
  --sidebar-soft: #1f2937;
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.14);
  --shadow: 0 22px 58px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.06);
}

/* Global visual refresh: keep business markup stable, improve the whole admin surface. */
:root {
  --bg: #eef3f8;
  --panel: #ffffff;
  --ink: #182230;
  --muted: #667085;
  --line: #dbe5ef;
  --blue: #2563eb;
  --blue-dark: #174ea6;
  --cyan: #0f9f95;
  --green: #15935f;
  --purple: #6254d9;
  --orange: #ea6b1e;
  --primary: #2563eb;
  --surface: #f7f9fc;
  --sidebar: #0d1626;
  --sidebar-soft: #172235;
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.12);
  --shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.055);
  --shadow-hairline: 0 1px 0 rgba(15, 23, 42, 0.04);
}

body {
  color: var(--ink);
  background:
    linear-gradient(180deg, #f6f9fd 0%, #edf2f7 46%, #e9eef5 100%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.admin-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 120;
  height: 100vh;
  gap: 24px;
  padding: 26px 18px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.2) 0%, rgba(20, 184, 166, 0.08) 36%, rgba(13, 22, 38, 0) 68%),
    var(--sidebar);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.brand {
  padding: 4px 8px 8px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2f73ff 0%, #0f9f95 100%);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.brand-name {
  font-size: 20px;
  letter-spacing: 0;
}

.brand-sub {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.56);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  gap: 4px;
}

.nav-item {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  letter-spacing: 0;
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.34), rgba(20, 184, 166, 0.16));
  box-shadow: inset 3px 0 0 #44d7c4, 0 10px 24px rgba(0, 0, 0, 0.14);
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 3px 0 0 rgba(68, 215, 196, 0.7);
}

.side-card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.side-value {
  font-size: 30px;
}

.main {
  padding: 28px 34px 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  align-items: center;
  padding: 14px 0 20px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(246, 249, 253, 0.96) 0%, rgba(246, 249, 253, 0.82) 78%, rgba(246, 249, 253, 0) 100%);
  backdrop-filter: blur(12px);
}

.eyebrow {
  color: #1f5fcf;
  font-size: 12px;
  letter-spacing: 0.04em;
}

h1 {
  margin-top: 4px;
  font-size: 32px;
  line-height: 1.14;
}

h2 {
  font-size: 18px;
}

.top-actions,
.module-actions {
  gap: 9px;
}

.account-pill,
.primary-btn,
.ghost-btn,
.small-btn,
.table-action-select {
  border-radius: 9px;
}

.account-pill {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-hairline);
}

.primary-btn,
.ghost-btn {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.small-btn {
  height: 32px;
  padding: 0 11px;
  font-size: 12px;
}

.primary-btn {
  background: linear-gradient(135deg, #2f73ff 0%, #1557d6 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.ghost-btn,
.small-btn,
.table-action-select {
  background: #ffffff;
  box-shadow: var(--shadow-hairline);
}

button:hover {
  transform: translateY(-1px);
}

.module-head {
  overflow: hidden;
  align-items: center;
  padding: 18px 20px 18px 22px;
  margin-bottom: 14px;
  border: 1px solid rgba(219, 229, 239, 0.92);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    #ffffff;
  box-shadow: var(--shadow-soft);
}

.module-head::before {
  top: 18px;
  bottom: 18px;
  width: 3px;
}

.panel {
  padding: 20px;
}

.metric,
.panel,
.school-card,
.product-card,
.agent-card,
.source-rule,
.launch-summary-card,
.launch-check-card,
.phone-preview,
.table-wrap,
.module-head,
.pagination-bar,
.module-tabs {
  border-radius: 12px;
  border-color: rgba(219, 229, 239, 0.94);
  box-shadow: var(--shadow-soft);
}

.panel-head,
.module-head {
  gap: 16px;
}

.panel-head {
  align-items: center;
  margin-bottom: 16px;
}

.panel-head p,
.module-head p {
  margin-top: 5px;
  line-height: 1.5;
  font-size: 13px;
}

.metric-grid {
  gap: 14px;
}

.metric {
  min-height: 130px;
  padding: 20px;
}

.metric::after {
  right: -44px;
  top: -48px;
  opacity: 0.8;
}

.metric strong {
  margin: 9px 0 7px;
  font-size: 30px;
}

.content-grid,
.editor-grid {
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.lead-panel,
.knowledge-overview-panel,
.launch-panel {
  margin-top: 16px;
}

.module-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  padding: 5px;
  margin-bottom: 12px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.92);
}

.module-tab {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
}

.question-form {
  gap: 12px;
}

.question-form label,
.support-filter label,
.operator-grid label,
.login-card label {
  font-size: 12px;
  font-weight: 800;
}

.question-form input,
.question-form select,
.support-filter input,
.support-filter select,
.school-filter-bar input,
.school-filter-bar select,
.operator-grid input,
.operator-grid select,
.login-card input,
.login-card select {
  height: 38px;
  border-radius: 9px;
  background: #ffffff;
}

.question-form textarea,
.operator-grid textarea,
.import-box,
.support-note {
  border-radius: 9px;
  background: #ffffff;
}

.support-filter,
.school-filter-bar {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-hairline);
}

.table-wrap {
  background: #ffffff;
}

table {
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #667085;
  background: #f5f8fc;
  font-size: 12px;
  letter-spacing: 0;
}

th,
td {
  padding: 12px 14px;
}

tbody tr:hover {
  background: #f5f9ff;
}

.status,
.badge {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.school-grid,
.product-grid,
.agent-grid,
.source-rule-grid,
.banner-grid {
  gap: 14px;
}

.school-card,
.product-card,
.agent-card,
.source-rule {
  padding: 18px;
}

.school-card h2,
.product-card h2,
.agent-card h2 {
  font-size: 17px;
}

.card-top {
  margin-bottom: 14px;
}

.meta-list div {
  padding: 8px 0;
}

.price {
  font-size: 26px;
}

.rule-list {
  gap: 10px;
}

.rule-list div,
.detail-grid > div,
.agent-performance-card,
.knowledge-card,
.knowledge-stat-card,
.major-group-edit,
.operator-section,
.score-line-row,
.outline-row {
  border-radius: 10px;
}

.drawer-panel,
.school-editor-panel {
  border-radius: 14px;
}

.drawer-panel {
  width: min(940px, calc(100vw - 48px));
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.3);
}

.school-editor-panel {
  inset: 22px;
  max-height: calc(100vh - 44px);
}

.detail-grid {
  gap: 10px;
}

.detail-grid > div {
  min-height: 66px;
  padding: 12px;
}

.import-box {
  min-height: 300px;
}

.login-card {
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.16);
}

@media (max-width: 1080px) {
  .sidebar {
    height: auto;
  }

  .topbar {
    top: 82px;
  }

  .module-tabs {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 16px;
  }

  h1 {
    font-size: 26px;
  }

  .module-head,
  .panel {
    padding: 16px;
  }

  .module-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-tab {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

.is-readonly {
  opacity: 0.58;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
}

input,
select,
textarea {
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}

input[type="file"] {
  padding: 5px 8px !important;
  color: var(--muted);
  font-size: 12px;
}

input[type="file"]::file-selector-button {
  height: 28px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid #d4ddea;
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.36);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.55) !important;
  box-shadow: var(--focus);
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(237, 244, 251, 0.9);
  backdrop-filter: blur(10px);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(210, 222, 236, 0.9);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0;
}

.login-card p,
.login-message {
  color: var(--muted);
  line-height: 1.6;
}

.login-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-card input,
.login-card select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #f9fbfe;
  font: inherit;
}

.admin-shell.logged-out {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 32px 22px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, transparent 34%),
    var(--sidebar);
  color: #fff;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #14b8a6, #2563eb);
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.24);
  font-weight: 900;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.brand-sub,
.side-copy,
.side-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

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

.nav-item {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
}

.nav-item.active,
.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 #22d3ee;
}

.side-card {
  margin-top: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.side-value {
  margin: 10px 0 4px;
  font-size: 34px;
  font-weight: 800;
}

.main {
  min-width: 0;
  padding: 36px 38px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 30px;
}

.topbar h1 {
  color: #111827;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 6px;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  font-size: 21px;
  line-height: 1.22;
  font-weight: 900;
}

.top-actions,
.module-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.primary-btn,
.ghost-btn,
.small-btn {
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.primary-btn:hover {
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
}

.ghost-btn,
.small-btn {
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.ghost-btn:hover,
.small-btn:hover {
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--blue);
}

.danger-btn {
  border-color: rgba(220, 38, 38, 0.22);
  color: #b42318;
  background: #fff7f7;
}

.danger-btn:hover {
  border-color: rgba(220, 38, 38, 0.38);
  color: #991b1b;
  background: #fff1f1;
}

.danger-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.account-permission-panel {
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 12px;
  background: #f8fbff;
}

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

.permission-panel-head div {
  display: grid;
  gap: 3px;
}

.permission-panel-head span {
  color: var(--muted);
  font-size: 13px;
}

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

.permission-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e2eaf3;
  border-radius: 10px;
  background: #ffffff;
}

.permission-group > strong {
  color: #102033;
  font-size: 13px;
}

.menu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 760px;
}

.menu-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(48, 86, 128, 0.14);
  border-radius: 999px;
  color: #28405f;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.row-action-select {
  width: 138px;
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(31, 54, 83, 0.16);
  border-radius: 10px;
  color: #203148;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.95));
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(31, 54, 83, 0.08);
}

.row-action-select:focus {
  border-color: rgba(48, 127, 123, 0.48);
  outline: 3px solid rgba(48, 127, 123, 0.12);
}

.account-permission-editor-panel {
  max-width: 920px;
}

.account-permission-editor-form {
  gap: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

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

.small-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

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

.metric,
.panel,
.school-card,
.product-card,
.agent-card {
  border: 1px solid rgba(210, 222, 236, 0.72);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.metric {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.metric::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -36px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
}

.metric span,
.metric em,
.panel p,
.module-head p,
td small {
  color: var(--muted);
  font-style: normal;
}

.metric strong {
  position: relative;
  display: block;
  margin: 12px 0 9px;
  font-size: 34px;
  letter-spacing: 0;
}

.metric span {
  font-size: 13px;
  font-weight: 800;
}

.metric em {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-report {
  overflow: hidden;
  border: 1px solid rgba(176, 194, 216, 0.78);
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    0 24px 64px rgba(18, 39, 70, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.report-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 26px;
  border-bottom: 1px solid #d8e3ef;
  background:
    linear-gradient(135deg, #ffffff 0%, #f6f9ff 48%, #eef7f7 100%);
}

.report-kicker {
  display: block;
  margin-bottom: 7px;
  color: #1f66ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-titlebar h2 {
  color: #0f172a;
  font-size: 26px;
  letter-spacing: 0;
}

.report-titlebar p {
  margin-top: 8px;
  color: #667085;
  line-height: 1.6;
}

.report-date {
  flex: none;
  min-width: 148px;
  padding: 14px 16px;
  border: 1px solid rgba(166, 184, 205, 0.62);
  border-radius: 10px;
  text-align: right;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.report-date span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.report-date strong {
  display: block;
  margin-top: 6px;
  color: #102033;
  font-size: 19px;
  font-weight: 950;
}

.report-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #dbe6f2;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.report-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 136px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(210, 222, 236, 0.82);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 39, 70, 0.075);
}

.report-hero-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 126px;
  height: 126px;
  border-radius: 999px;
  opacity: 0.14;
  background: currentColor;
}

.report-hero-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.report-hero-card span,
.report-hero-card small {
  display: block;
  color: #667085;
  font-weight: 800;
}

.report-hero-card span {
  margin-top: 2px;
  font-size: 13px;
}

.report-hero-card strong {
  display: block;
  margin: 9px 0 7px;
  color: #101828;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
}

.report-hero-card small {
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1.45;
}

.report-hero-card.tone-blue {
  color: #2563eb;
}

.report-hero-card.tone-blue .report-hero-icon {
  background: linear-gradient(135deg, #2f7cff 0%, #175cd3 100%);
}

.report-hero-card.tone-teal {
  color: #0f9f8f;
}

.report-hero-card.tone-teal .report-hero-icon {
  background: linear-gradient(135deg, #19c7b4 0%, #0e7c74 100%);
}

.report-hero-card.tone-violet {
  color: #7c3aed;
}

.report-hero-card.tone-violet .report-hero-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 100%);
}

.report-hero-card.tone-amber {
  color: #f59e0b;
}

.report-hero-card.tone-amber .report-hero-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%);
}

.report-sheet {
  padding: 0;
  overflow: auto;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(31, 102, 255, 0.18), rgba(20, 184, 166, 0.12)) border-box;
}

.report-row {
  display: grid;
  grid-template-columns: 132px minmax(160px, 1fr) minmax(130px, 0.7fr) minmax(260px, 1.45fr) 112px;
  min-width: 920px;
  border-bottom: 1px solid #e5edf6;
}

.report-row > span,
.report-row > div {
  min-height: 54px;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid #e8eff7;
}

.report-row > span:last-child,
.report-row > div:last-child {
  border-right: 0;
}

.report-head {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #475467;
  background: linear-gradient(180deg, #f1f5fb 0%, #eaf1f8 100%);
  font-size: 12px;
  font-weight: 950;
}

.report-head > span {
  min-height: 42px;
  text-transform: uppercase;
}

.report-module {
  gap: 8px;
  justify-content: center;
  color: #175cd3;
  background: #eef5ff;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.report-module::before {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 8px;
  color: #ffffff;
  background: currentColor;
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.02);
  content: "数";
  font-size: 12px;
}

.report-module-blue {
  color: #175cd3;
  background: #eef5ff;
}

.report-module-blue::before {
  content: "收";
}

.report-module-teal {
  color: #0e7c74;
  background: #ecfdf9;
}

.report-module-teal::before {
  content: "转";
}

.report-module-amber {
  color: #b54708;
  background: #fff7ed;
}

.report-module-amber::before {
  content: "办";
}

.report-module-violet {
  color: #6941c6;
  background: #f4f0ff;
}

.report-module-violet::before {
  content: "客";
}

.report-name {
  color: #182230;
  font-weight: 900;
}

.report-name-with-icon {
  gap: 9px;
}

.report-name-with-icon i {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 999px;
  color: #b54708;
  background: #ffead5;
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
}

.report-value {
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.report-note {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.report-status {
  min-height: 26px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #475467;
  background: #f2f4f7;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.report-action {
  justify-content: center;
}

.report-row-action {
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.report-row-action:hover {
  background: #fffaf2;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.report-action-btn {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: #9a4b00;
  background: #fff7ed;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.report-row-action:hover .report-action-btn {
  border-color: rgba(245, 158, 11, 0.52);
  background: #ffedd5;
}

.report-status.good,
.report-status.online {
  color: #027a48;
  background: #dcfae6;
}

.report-status.warning,
.report-status.pending {
  color: #b54708;
  background: #ffead5;
}

.report-status.offline {
  color: #b42318;
  background: #fee4e2;
}

.report-progress {
  display: grid;
  align-content: center;
  gap: 8px;
}

.report-progress strong {
  color: #111827;
  font-size: 17px;
  font-weight: 950;
}

.report-progress span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.report-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #14b8a6 100%);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 20px;
  margin-top: 20px;
}

.lead-panel {
  margin-top: 20px;
}

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

.lead-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.lead-item strong {
  display: block;
  margin-bottom: 5px;
}

.lead-item small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.lead-item p {
  color: var(--ink);
  line-height: 1.55;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  margin-bottom: 20px;
}

.school-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.school-admin-layout > .panel:last-child {
  grid-column: auto;
}

.school-list-panel {
  min-height: 620px;
}

.school-editor-panel {
  position: fixed;
  inset: 28px 28px 28px 292px;
  z-index: 92;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(360px, 480px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  width: auto;
  max-height: calc(100vh - 56px);
  margin: 0;
  overflow: hidden;
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 34px 110px rgba(15, 23, 42, 0.34);
}

.school-editor-panel[hidden] {
  display: none;
}

.school-editor-panel::before {
  content: "";
  position: fixed;
  inset: 0 0 0 264px;
  z-index: -1;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
}

.school-editor-head {
  grid-column: 1 / -1;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.school-editor-panel .question-form {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  overflow: auto;
  gap: 18px;
  padding: 0 2px 4px 0;
}

.school-editor-tabs,
.school-editor-section {
  grid-column: 1;
}

.school-editor-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(210, 222, 236, 0.9);
  border-radius: 12px;
  background: #f7faff;
}

.school-editor-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  color: #5b6b80;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.school-editor-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.school-editor-section {
  display: none;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(210, 222, 236, 0.9);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(18, 39, 70, 0.05);
}

.school-editor-section.active {
  display: grid;
  gap: 16px;
}

.section-title {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.section-title strong {
  color: var(--ink);
  font-size: 17px;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.school-editor-field-grid .span-2,
.school-editor-section .span-2 {
  grid-column: 1 / -1;
}

.school-editor-panel .school-preview-card {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: calc(100vh - 192px);
  overflow: auto;
}

.school-editor-actions {
  grid-column: 1 / -1;
  grid-row: 3;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin: 0;
  border: 1px solid rgba(210, 222, 236, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(10px);
}

.school-editor-actions .import-tip {
  margin: 0;
  text-align: left;
}

.school-filter-bar {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr 0.9fr;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(220, 230, 240, 0.9);
  border-radius: 10px;
  background: linear-gradient(180deg, #f9fbff 0%, #f4f7fb 100%);
}

.school-filter-bar input,
.school-filter-bar select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.school-filter-bar select,
.question-form select,
.support-filter select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #98a2b3 50%),
    linear-gradient(135deg, #98a2b3 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.school-list-panel .school-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-height: min(720px, calc(100vh - 310px));
  min-height: 420px;
  overflow: auto;
  padding: 2px 6px 2px 2px;
  overscroll-behavior: contain;
}

.school-list-panel .school-grid::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.school-list-panel .school-grid::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c8d4e3;
}

.school-list-panel .school-card {
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: none;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.school-card-status {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.quality-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.quality-pill.ready {
  color: #027a48;
  background: #dcfae6;
}

.quality-pill.warning {
  color: #b54708;
  background: #ffead5;
}

.quality-pill.review {
  color: #344054;
  background: #eef2f7;
}

.quality-pill.blocked {
  color: #b42318;
  background: #fee4e2;
}

.quality-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.quality-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.school-quality-blocked .quality-meter span {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.school-quality-warning .quality-meter span {
  background: linear-gradient(90deg, #f97316, #f59e0b);
}

.school-issue-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.school-issue-strip span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #344054;
  background: #f2f4f7;
  font-size: 12px;
  font-weight: 800;
}

.school-issue-strip:not(.is-clean) span {
  color: #b54708;
  background: #ffead5;
}

.school-quality-blocked .school-issue-strip span {
  color: #b42318;
  background: #fee4e2;
}

.school-issue-strip.is-clean span {
  color: #027a48;
  background: #dcfae6;
}

.school-list-panel .school-card:hover {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.school-knowledge-panel {
  grid-column: 1 / -1;
}

.targeting-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px 150px auto;
  gap: 10px;
  margin: 16px 0 10px;
}

.targeting-filter-bar input,
.targeting-filter-bar select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 236, 0.96);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

.targeting-filter-bar input:focus,
.targeting-filter-bar select:focus {
  border-color: rgba(37, 99, 235, 0.44);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.targeting-filter-summary {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.knowledge-card {
  padding: 18px;
  border: 1px solid rgba(220, 230, 240, 0.95);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.targeting-card {
  display: grid;
  gap: 12px;
}

.targeting-route {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 10px;
}

.targeting-route div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 10px;
  background: rgba(248, 251, 253, 0.86);
}

.targeting-route span,
.candidate-point-title span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.targeting-route strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-point-block {
  padding: 12px;
  border: 1px solid rgba(219, 228, 238, 0.94);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.candidate-point-block.is-muted {
  opacity: 0.52;
}

.candidate-point-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.candidate-point-title strong {
  color: var(--ink);
  font-size: 13px;
}

.knowledge-card-title {
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.knowledge-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.knowledge-chip-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #2556a7;
  background: #eef5ff;
  font-size: 12px;
  font-weight: 800;
}

.knowledge-chip-list span::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2563eb;
  content: "";
}

.knowledge-chip-list span.is-empty {
  color: #8a94a6;
  background: #f2f4f7;
}

.knowledge-chip-list span.is-empty::before {
  background: #c6ceda;
}

.knowledge-chip-list em {
  color: #667085;
  font-style: normal;
  font-weight: 700;
}

.taxonomy-picker {
  display: grid;
  gap: 12px;
  max-height: 280px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(220, 230, 240, 0.95);
  border-radius: 10px;
  background: #fbfdff;
}

.taxonomy-picker.compact {
  max-height: 220px;
}

.taxonomy-group strong {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.taxonomy-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.taxonomy-chip {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d7e2f0;
  border-radius: 999px;
  color: #475467;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.taxonomy-chip:hover {
  color: #175cd3;
  border-color: #9ec5ff;
  background: #f0f6ff;
}

.taxonomy-chip.selected {
  color: #ffffff;
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.knowledge-overview-panel {
  margin-top: 22px;
}

.knowledge-overview {
  display: grid;
  gap: 18px;
}

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

.knowledge-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.knowledge-stat-head strong {
  color: #1f2937;
  font-size: 15px;
  font-weight: 900;
}

.knowledge-stat-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.knowledge-stat-card {
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(220, 230, 240, 0.95);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.knowledge-stat-card.shortage {
  border-color: rgba(248, 113, 113, 0.38);
  background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
}

.knowledge-stat-card.review {
  border-color: rgba(249, 115, 22, 0.28);
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
}

.knowledge-stat-card.ready {
  border-color: rgba(23, 165, 107, 0.22);
}

.knowledge-stat-title,
.knowledge-stat-metrics,
.knowledge-stat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.knowledge-stat-title {
  justify-content: space-between;
}

.knowledge-stat-title strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.knowledge-stat-title span,
.knowledge-stat-actions em {
  flex: none;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #475467;
  background: #f2f4f7;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.knowledge-stat-card.shortage .knowledge-stat-title span,
.knowledge-stat-card.shortage .knowledge-stat-actions em {
  color: #b42318;
  background: #fee4e2;
}

.knowledge-stat-card.review .knowledge-stat-title span {
  color: #b54708;
  background: #ffead5;
}

.knowledge-stat-card.ready .knowledge-stat-title span {
  color: #027a48;
  background: #dcfae6;
}

.knowledge-stat-metrics {
  flex-wrap: wrap;
}

.knowledge-stat-metrics span {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #344054;
  background: #eef2f7;
  font-size: 12px;
  font-weight: 800;
}

.knowledge-stat-card p {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.knowledge-stat-actions {
  justify-content: space-between;
  margin-top: auto;
}

.knowledge-stat-actions .small-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.empty-note {
  padding: 18px;
  border: 1px dashed #cad5e4;
  border-radius: 10px;
  color: var(--muted);
  background: #fbfdff;
  font-weight: 800;
}

.major-group-manager {
  padding: 18px;
  border: 1px solid rgba(220, 230, 240, 0.95);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.manager-head,
.major-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.manager-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.manager-head strong,
.major-group-title strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.manager-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.major-group-builder {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.json-buffer {
  display: none !important;
}

.operator-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(210, 222, 236, 0.9);
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
}

.score-line-builder,
.outline-builder {
  display: grid;
  gap: 12px;
}

.score-paste-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 102, 255, 0.16);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(18, 39, 70, 0.055);
}

.score-paste-panel[hidden] {
  display: none;
}

.score-paste-panel strong,
.score-paste-panel span {
  display: block;
}

.score-paste-panel strong {
  color: var(--ink);
}

.score-paste-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.score-paste-panel textarea {
  min-height: 150px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
}

.score-paste-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.score-line-row,
.outline-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(220, 230, 240, 0.96);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

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

.row-title strong {
  color: var(--ink);
  font-size: 14px;
}

.quota-point-picker {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(20, 184, 166, 0.06)),
    #ffffff;
}

.quota-point-head,
.candidate-point-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.candidate-point-head {
  padding: 2px 2px 0;
}

.quota-point-head strong,
.candidate-point-head strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.quota-point-head p,
.quota-point-help,
.candidate-point-help {
  margin: 5px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.65;
}

.quota-point-head span,
.candidate-point-head span,
.candidate-point-total {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: #175cd3;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 900;
}

.candidate-point-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.candidate-point-actions .primary-btn {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: none;
}

.candidate-save-status {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(219, 231, 245, 0.95);
  border-radius: 8px;
  color: #667085;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.candidate-save-status[data-state="dirty"] {
  color: #b54708;
  border-color: rgba(247, 144, 9, 0.28);
  background: #fffbeb;
}

.candidate-save-status[data-state="loading"] {
  color: #175cd3;
  border-color: rgba(37, 99, 235, 0.2);
  background: #eef4ff;
}

.candidate-save-status[data-state="success"] {
  color: #027a48;
  border-color: rgba(18, 183, 106, 0.24);
  background: #ecfdf3;
}

.candidate-save-status[data-state="error"] {
  color: #b42318;
  border-color: rgba(240, 68, 56, 0.25);
  background: #fef3f2;
}

.quota-point-list,
.candidate-point-list {
  display: grid;
  gap: 8px;
}

.quota-point-empty {
  margin: 0;
}

.quota-point-row {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(220, 230, 240, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.quota-point-row.has-derived-total .quota-point-main input[readonly] {
  color: #175cd3;
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.quota-point-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 132px) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.quota-point-main strong {
  color: #1d2939;
  font-size: 13px;
  font-weight: 900;
}

.quota-point-main label {
  display: grid;
  grid-template-columns: auto minmax(64px, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.quota-point-main input {
  min-height: 34px;
  text-align: center;
}

.quota-type-rules {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px 10px;
  border-radius: 8px;
  background: #f7faff;
}

.quota-type-header,
.quota-type-rule {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 82px 82px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.quota-type-header {
  padding: 0 9px;
  color: #7b8798;
  font-size: 11px;
  font-weight: 900;
}

.quota-type-rule {
  padding: 8px;
  border: 1px solid rgba(219, 231, 245, 0.95);
  border-radius: 8px;
  background: #ffffff;
}

.quota-type-field,
.quota-type-check {
  display: grid;
  align-items: center;
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
}

.quota-type-check {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  color: #1d2939;
  font-weight: 900;
}

.quota-type-check span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quota-type-rule input[type="number"] {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 6px;
  text-align: center;
}

.quota-taxonomy-picker {
  min-width: 0;
  max-height: 190px;
  padding: 10px;
}

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

.operator-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.operator-grid input,
.operator-grid select,
.operator-grid textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f9fbfe;
  font: inherit;
  font-size: 13px;
}

.operator-grid textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
  line-height: 1.55;
}

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

.operator-grid .quota-point-picker {
  grid-column: 1 / -1;
}

.empty-card.compact {
  min-height: 84px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.major-group-edit {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.major-group-fields {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  margin-top: 14px;
}

.major-group-fields label {
  display: grid;
  gap: 6px;
}

.major-group-fields input,
.candidate-point-card textarea,
.major-row input {
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f9fbfe;
  font: inherit;
}

.candidate-point-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.candidate-point-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe7f5;
  border-radius: 10px;
  background: #fbfdff;
}

.candidate-point-toggle {
  display: grid;
  grid-template-columns: auto 80px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
}

.candidate-point-toggle em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.candidate-point-card textarea[hidden] {
  display: none;
}

.candidate-point-card .quota-point-row {
  padding: 9px;
}

.candidate-point-card .quota-point-main label {
  grid-template-columns: auto minmax(0, 1fr);
}

.candidate-point-card .quota-type-rules {
  padding: 8px;
}

.candidate-point-card .quota-type-header,
.candidate-point-card .quota-type-rule {
  grid-template-columns: minmax(86px, 1fr) 74px 74px;
  gap: 6px;
}

.candidate-point-card .quota-point-main .small-btn {
  min-width: 44px;
  padding: 0 9px;
}

.candidate-taxonomy-picker {
  max-height: 168px;
  padding: 10px;
}

.candidate-point-help {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f7ff;
}

.major-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.major-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 92px 104px auto;
  gap: 10px;
  align-items: center;
}

.school-preview-card {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.08)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.school-editor-panel .school-preview-card {
  margin-top: 0;
}

.publish-audit {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(220, 230, 240, 0.95);
  border-radius: 10px;
  background: #ffffff;
}

.publish-audit.ready {
  border-color: rgba(23, 165, 107, 0.22);
  background: linear-gradient(180deg, #f0fbf6 0%, #ffffff 100%);
}

.publish-audit.warning {
  border-color: rgba(249, 115, 22, 0.28);
  background: linear-gradient(180deg, #fff8f0 0%, #ffffff 100%);
}

.publish-audit.review {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
}

.publish-audit.blocked {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
}

.publish-audit span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.publish-audit strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
}

.publish-audit p {
  margin-top: 6px;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.publish-audit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publish-audit-tags span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #344054;
  background: #eef2f7;
}

.publish-audit.ready .publish-audit-tags span {
  color: #027a48;
  background: #dcfae6;
}

.publish-audit.warning .publish-audit-tags span {
  color: #b54708;
  background: #ffead5;
}

.publish-audit.blocked .publish-audit-tags span {
  color: #b42318;
  background: #fee4e2;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.preview-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.preview-head strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
  line-height: 1.18;
}

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

.preview-head em {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0b4fc7;
  background: #eaf3ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 30px;
}

.preview-media {
  display: grid;
  place-items: center;
  height: 164px;
  margin-top: 18px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #101828 0%, #2563eb 64%, #14b8a6 100%);
  font-weight: 800;
}

.preview-media.has-media {
  background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
}

.preview-path {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin-top: 16px;
  border: 1px solid rgba(220, 230, 240, 0.95);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.preview-path span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.preview-path code {
  min-width: 0;
  overflow: hidden;
  color: #0b4fc7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.preview-coverage div {
  padding: 13px;
  border-radius: 8px;
  border: 1px solid rgba(220, 230, 240, 0.9);
  background: #ffffff;
}

.preview-coverage div.done {
  border-color: rgba(23, 165, 107, 0.22);
  background: #f0fbf6;
}

.preview-coverage div.missing {
  border-color: rgba(255, 138, 61, 0.26);
  background: #fff8f3;
}

.preview-coverage span,
.preview-coverage strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-coverage span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.preview-coverage .done span {
  color: var(--green);
}

.preview-coverage .missing span {
  color: var(--orange);
}

.preview-coverage strong {
  margin-top: 5px;
  font-size: 14px;
}

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

.preview-stats div,
.preview-map div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(220, 230, 240, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.preview-stats strong,
.preview-stats span,
.preview-map span,
.preview-map strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-stats strong {
  font-size: 20px;
}

.preview-stats span,
.preview-map span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.preview-intro {
  margin-top: 16px;
  color: #344054;
  line-height: 1.75;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.preview-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #0b4fc7;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 800;
}

.preview-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview-map strong {
  margin-top: 5px;
  color: var(--ink);
}

.panel {
  padding: 26px;
}

.panel-head,
.module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-head h2,
.module-head h2 {
  color: #182230;
  font-weight: 900;
}

.panel-head p,
.module-head p {
  margin-top: 7px;
  line-height: 1.65;
}

.funnel {
  display: grid;
  gap: 12px;
}

.funnel div {
  width: var(--w);
  min-width: 210px;
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  font-weight: 700;
}

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

.todo {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
}

.todo strong {
  display: block;
  margin-bottom: 4px;
}

.question-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.question-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.question-form input,
.question-form textarea,
.question-form select,
.import-box {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #f9fbfe;
  font: inherit;
}

.question-form input,
.question-form select {
  height: 42px;
  padding: 0 13px;
}

.question-form textarea {
  min-height: 92px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.58;
}

.question-form .span-2 {
  grid-column: span 2;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--muted);
}

.inline-check input {
  width: auto;
}

.row-edit-box {
  width: min(360px, 42vw);
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  resize: vertical;
  background: #f9fbfe;
  color: var(--ink);
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.row-edit-box:disabled {
  color: var(--muted);
  background: #f4f6fb;
}

.question-draft-board,
.question-review-list {
  display: grid;
  gap: 12px;
}

.question-draft-card,
.question-review-card {
  border: 1px solid rgba(210, 222, 236, 0.95);
  border-radius: 14px;
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 253, 0.96));
  box-shadow: 0 12px 30px rgba(22, 39, 64, 0.06);
}

.question-draft-head,
.question-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.question-draft-head div,
.question-review-head div {
  min-width: 0;
}

.question-draft-head span,
.question-review-head span,
.question-answer-strip span,
.question-review-meta,
.option-editor > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.question-draft-head strong,
.question-review-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.question-draft-head em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #6f5940;
  background: rgba(177, 139, 84, 0.12);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.question-stem {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.question-option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.question-option-list span {
  padding: 9px 10px;
  border: 1px solid rgba(226, 234, 242, 0.9);
  border-radius: 10px;
  color: #344054;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.45;
}

.question-answer-strip {
  display: grid;
  gap: 8px;
}

.question-answer-strip div {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(246, 249, 252, 0.9);
}

.question-answer-strip strong {
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
}

.question-import-focus {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(37, 95, 189, 0.14);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(237, 245, 255, 0.86), rgba(246, 251, 249, 0.9));
}

.question-import-focus span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.question-import-focus strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.question-review-card.needs-review {
  border-color: rgba(177, 139, 84, 0.36);
}

.question-review-card.ready {
  border-color: rgba(15, 143, 131, 0.26);
}

.question-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.question-review-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(246, 249, 252, 0.9);
}

.question-review-issue {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #7a4f18;
  background: rgba(255, 248, 235, 0.92);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.question-review-issue.is-ok {
  color: #126b60;
  background: rgba(235, 249, 246, 0.92);
}

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

.question-review-form label,
.option-editor {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.question-review-form .span-2,
.option-editor {
  grid-column: span 2;
}

.question-review-form input,
.question-review-form select,
.question-review-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.question-review-form input,
.question-review-form select {
  min-height: 38px;
  padding: 0 11px;
}

.question-review-form textarea {
  min-height: 78px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.55;
}

.option-editor {
  padding: 12px;
  border: 1px solid rgba(226, 234, 242, 0.9);
  border-radius: 12px;
  background: rgba(249, 251, 253, 0.82);
}

.option-editor label {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
}

.review-check {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 143, 131, 0.18);
  border-radius: 10px;
  background: rgba(235, 249, 246, 0.68);
}

.question-review-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.question-review-save-note {
  flex: 1;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(226, 234, 242, 0.92);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(249, 251, 253, 0.86);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.question-review-save-note.is-success {
  color: #126b60;
  border-color: rgba(15, 143, 131, 0.24);
  background: rgba(235, 249, 246, 0.92);
}

.question-review-save-note.is-error {
  color: #9f3f24;
  border-color: rgba(214, 91, 61, 0.24);
  background: rgba(255, 244, 240, 0.94);
}

.save-question-import-row:disabled {
  cursor: wait;
  opacity: 0.68;
}

.question-review-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(37, 95, 189, 0.15);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(237, 245, 255, 0.92), rgba(247, 251, 249, 0.94));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.question-review-footer-summary {
  display: grid;
  gap: 5px;
}

.question-review-footer-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.question-review-footer-summary strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.question-review-footer-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.question-review-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.question-review-footer-actions .primary-btn,
.question-review-footer-actions .small-btn {
  min-height: 38px;
}

.question-review-footer-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.entitlement-field {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.entitlement-field legend {
  padding: 0 6px;
  color: var(--muted);
}

.entitlement-field label,
.entitlement-editor label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: var(--ink) !important;
}

.checkbox-line input {
  width: auto;
  height: auto;
}

.import-box {
  min-height: 360px;
  padding: 14px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.charter-import-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.2fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(190, 207, 226, 0.9);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(31, 102, 255, 0.08), rgba(20, 184, 166, 0.05)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(18, 39, 70, 0.075);
}

.charter-workflow-grid {
  align-items: start;
  grid-template-columns: minmax(440px, 1.05fr) minmax(360px, 0.95fr);
}

.charter-workflow-grid textarea[name="batchLines"] {
  min-height: 116px;
}

.charter-workflow-grid textarea[name="note"] {
  min-height: 82px;
}

.charter-import-card.collection-card {
  border-color: rgba(119, 91, 60, 0.2);
  background:
    radial-gradient(circle at 8% 0%, rgba(205, 170, 116, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.94));
}

.charter-import-copy {
  display: grid;
  gap: 6px;
}

.charter-import-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.charter-import-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.research-question-grid {
  align-items: stretch;
  grid-template-columns: minmax(420px, 0.95fr) minmax(460px, 1.05fr);
}

.research-collector-panel {
  position: relative;
  overflow: hidden;
}

.research-collector-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(169, 122, 64, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 248, 0.92));
}

.research-collector-panel > * {
  position: relative;
}

.research-collector-panel textarea[name="collectionGoal"] {
  min-height: 88px;
}

.collection-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.collection-principles span {
  padding: 9px 8px;
  border: 1px solid rgba(177, 139, 84, 0.22);
  border-radius: 10px;
  color: #6f5940;
  background: rgba(255, 252, 246, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.ai-collect-btn {
  min-height: 44px;
  margin-top: 2px;
  background:
    linear-gradient(135deg, rgba(27, 86, 121, 0.98), rgba(127, 91, 48, 0.92)) !important;
  box-shadow: 0 16px 34px rgba(54, 68, 77, 0.18);
}

.ai-collect-btn.is-loading {
  cursor: wait;
  opacity: 0.86;
  background:
    linear-gradient(135deg, rgba(27, 86, 121, 0.82), rgba(127, 91, 48, 0.78)) !important;
}

.ai-collect-status {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid rgba(177, 139, 84, 0.18);
  border-radius: 10px;
  color: #6f5940;
  background: rgba(255, 252, 246, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.ai-collect-status[data-state="loading"] {
  color: #174ea6;
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(238, 245, 255, 0.9);
}

.ai-collect-status[data-state="success"] {
  color: #157348;
  border-color: rgba(21, 147, 95, 0.22);
  background: rgba(236, 253, 245, 0.86);
}

.ai-collect-status[data-state="error"] {
  color: #b42318;
  border-color: rgba(244, 63, 94, 0.22);
  background: rgba(255, 241, 242, 0.88);
}

.charter-file-picker {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px dashed rgba(37, 99, 235, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.charter-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.charter-file-picker span {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.charter-file-picker em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

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

.charter-import-actions .primary-btn,
.charter-import-actions .ghost-btn {
  white-space: nowrap;
}

.charter-import-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.charter-flow-note {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 14px;
}

.charter-flow-note span {
  position: relative;
  padding: 10px 12px 10px 26px;
  border: 1px solid rgba(210, 222, 236, 0.95);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.charter-flow-note span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  transform: translateY(-50%);
}

.charter-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

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

.charter-preview-summary div {
  padding: 14px;
  border: 1px solid rgba(210, 222, 236, 0.95);
  border-radius: 10px;
  background: #ffffff;
}

.charter-preview-summary span,
.charter-source,
.charter-warning-list span {
  color: var(--muted);
  font-size: 12px;
}

.charter-preview-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
}

.charter-preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(210, 222, 236, 0.95);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.charter-preview-card.needs-review {
  border-color: rgba(245, 158, 11, 0.38);
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.charter-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.charter-warning-list {
  display: grid;
  gap: 6px;
}

.charter-warning-list span {
  padding-left: 10px;
  border-left: 3px solid rgba(245, 158, 11, 0.65);
  line-height: 1.45;
}

.school-import-commit {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(31, 102, 255, 0.075), rgba(20, 184, 166, 0.055)),
    #ffffff;
}

.school-import-commit div {
  display: grid;
  gap: 5px;
}

.school-import-commit strong {
  color: var(--ink);
  font-size: 15px;
}

.school-import-commit span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.school-import-commit button {
  white-space: nowrap;
}

.school-import-commit button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.advanced-import-box {
  margin-top: 12px;
  border: 1px solid rgba(210, 222, 236, 0.95);
  border-radius: 12px;
  background: #ffffff;
}

.advanced-import-box summary {
  cursor: pointer;
  padding: 13px 15px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.advanced-import-box .import-box {
  border-width: 1px 0 0;
  border-radius: 0 0 12px 12px;
}

.import-tip {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #eef5ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  flex: 0 0 auto;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: currentColor;
}

.status.online {
  color: var(--green);
  background: #e9f8f1;
}

.status.pending {
  color: #a86600;
  background: #fff3df;
}

.status.warning {
  color: var(--orange);
  background: #fff4e8;
}

.module-head {
  position: relative;
  padding: 24px 26px;
  border: 1px solid rgba(210, 222, 236, 0.72);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.module-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.module-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.module-tab {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.module-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--primary));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.panel-tab {
  display: none;
}

.panel-tab.active {
  display: block;
}

.panel-tab > .module-head:first-child,
.panel-tab > .support-head:first-child {
  margin-top: 0;
}

.support-head {
  margin-top: 16px;
}

.support-filter {
  display: grid;
  grid-template-columns: 150px 150px minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.support-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.support-filter input,
.support-filter select {
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #f9fbfe;
  font: inherit;
}

.support-filter .support-keyword {
  min-width: 0;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-soft);
}

.pagination-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.pagination-actions .small-btn {
  min-width: 62px;
  padding: 0 10px;
}

.small-btn:disabled {
  cursor: not-allowed;
  color: #9aa5b1;
  border-color: #e5e7eb;
  background: #f3f4f6;
  box-shadow: none;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.table-wrap table {
  background: #fff;
}

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

.order-table-wrap table {
  min-width: 1680px;
}

.registered-user-table table {
  min-width: 980px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.registered-user-table th,
.registered-user-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: #f8fbff;
}

.support-note {
  width: 220px;
  min-height: 56px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #f8fbff;
  font: inherit;
}

.ticket-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0 6px;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #18b99f);
  font-weight: 900;
  flex: 0 0 auto;
}

.registered-user-table .avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 14px;
}

.user-cell strong,
.user-cell small {
  display: block;
}

.user-cell strong {
  max-width: 180px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-cell small,
.registered-meta small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.registered-meta {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.registered-meta strong {
  max-width: 260px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-action-select {
  width: 116px;
  height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.stacked-actions {
  align-items: stretch;
  flex-direction: column;
  min-width: 94px;
}

.drawer-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  margin: 0;
  overflow: auto;
  transform: translate(-50%, -50%);
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
}

.drawer-panel[hidden] {
  display: none;
}

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

.detail-grid > div {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(210, 222, 236, 0.78);
  border-radius: 10px;
  background: #f9fbfe;
}

.detail-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.detail-section {
  margin-top: 18px;
}

.detail-section h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
}

.mini-table {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.mini-table th,
.mini-table td {
  padding: 12px;
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}

.school-grid,
.product-grid,
.agent-grid,
.source-rule-grid,
.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agent-settlement {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  gap: 16px;
  margin-top: 0;
}

.agent-team-panel {
  margin-top: 0;
}

.agent-performance-panel {
  margin-top: 0;
}

.agent-performance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.agent-performance-card {
  padding: 14px;
  border: 1px solid rgba(210, 222, 236, 0.78);
  border-radius: 8px;
  background: #f8fbff;
}

.agent-performance-card span,
.agent-performance-card small,
.agent-performance-name small,
.agent-performance-value small {
  color: var(--muted);
}

.agent-performance-card strong {
  display: block;
  margin: 7px 0 3px;
  color: var(--ink);
  font-size: 22px;
}

.agent-performance-bars {
  display: grid;
  gap: 12px;
}

.agent-performance-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.26fr) minmax(180px, 1fr) minmax(130px, 0.2fr);
  gap: 14px;
  align-items: center;
}

.agent-performance-name strong,
.agent-performance-value strong {
  display: block;
  color: var(--ink);
}

.agent-performance-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3fb;
}

.agent-performance-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--blue));
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.compact-table table {
  min-width: 860px;
}

.batch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.batch-bar label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.withdrawal-note {
  min-width: 180px;
}

.withdrawal-extra {
  display: block;
  width: 220px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.proof-upload {
  display: flex;
  width: 220px;
  margin-top: 8px;
  padding: 9px 10px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9db8e8;
  border-radius: 8px;
  color: var(--primary);
  background: #f5f8ff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.proof-upload input {
  display: none;
}

.proof-link {
  display: inline-flex;
  margin-top: 5px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.proof-link:hover {
  text-decoration: underline;
}

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

.school-card,
.product-card,
.agent-card,
.source-rule {
  padding: 20px;
}

.school-card h2,
.product-card h2,
.agent-card h2 {
  margin: 0;
  color: #182230;
  font-size: 19px;
  font-weight: 900;
}

.school-card p,
.product-card p,
.agent-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.source-rule {
  border: 1px solid rgba(210, 222, 236, 0.78);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.source-rule strong {
  display: block;
  margin-bottom: 8px;
}

.source-rule small {
  color: var(--muted);
  line-height: 1.6;
}

.source-rule em {
  display: block;
  margin-top: 10px;
  color: #5b6b84;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.official-source-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.official-workflow-grid {
  align-items: start;
  grid-template-columns: minmax(360px, 0.82fr) minmax(420px, 1.18fr);
}

.official-workflow-grid .official-source-board {
  grid-template-columns: 1fr;
}

.official-workflow-grid .question-form {
  margin-top: 12px;
}

.official-source-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(196, 211, 226, 0.78);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.92));
  box-shadow: 0 12px 28px rgba(43, 73, 108, 0.06);
}

.official-source-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.official-source-card strong {
  color: var(--ink);
  font-size: 15px;
}

.official-source-card span {
  color: #2f6f9f;
  font-size: 12px;
  font-weight: 900;
}

.official-source-card p {
  min-height: 34px;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.source-preview {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.65;
}

.news-admin-card .source-preview {
  color: #40506a;
  background: #f7fafc;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.card-top > div {
  min-width: 0;
}

.card-top h2,
.card-top p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-list {
  display: grid;
  gap: 0;
  color: var(--muted);
  font-size: 13px;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(228, 234, 242, 0.82);
}

.meta-list strong {
  color: #344054;
  font-weight: 900;
}

.price {
  color: var(--blue);
  font-size: 30px;
  font-weight: 800;
}

.banner-admin-preview {
  display: flex;
  aspect-ratio: 750 / 320;
  margin: 12px 0 16px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(210, 222, 236, 0.78);
  border-radius: 8px;
  background: #f5f8ff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.banner-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commission {
  color: var(--orange);
  font-weight: 800;
}

.product-controls {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto auto auto;
  gap: 8px;
  margin-top: 16px;
}

.school-list-panel .product-controls {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.school-list-panel .product-controls .small-btn {
  min-width: 0;
  padding: 0 10px;
}

.entitlement-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  margin-top: 14px;
  border-radius: 10px;
  background: var(--surface);
}

.price-input {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #f9fbfe;
  font: inherit;
}

.status.offline {
  color: #6b7280;
  background: #eef1f5;
}

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

.rule-list div {
  padding: 14px;
  border-radius: 10px;
  background: var(--surface);
}

.rule-list strong,
.rule-list span {
  display: block;
}

.rule-list strong {
  margin-bottom: 5px;
}

.rule-list span {
  color: var(--muted);
  font-size: 13px;
}

.rule-list small {
  display: block;
  margin-top: 6px;
  color: #8a97a8;
  font-size: 12px;
  line-height: 1.55;
}

.launch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.launch-summary-card,
.launch-check-card {
  border: 1px solid rgba(210, 222, 236, 0.72);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.launch-summary-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.launch-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}

.launch-summary-card.ready::before,
.launch-check-card.ready .launch-check-top span {
  background: var(--green);
}

.launch-summary-card.warning::before,
.launch-check-card.warning .launch-check-top span {
  background: var(--orange);
}

.launch-summary-card.blocked::before,
.launch-check-card.blocked .launch-check-top span {
  background: #ef4444;
}

.launch-summary-card span,
.launch-summary-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.launch-summary-card span {
  font-size: 13px;
}

.launch-summary-card strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.launch-summary-card small {
  line-height: 1.55;
}

.launch-panel {
  margin-top: 20px;
}

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

.launch-check-card {
  padding: 18px;
}

.launch-check-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.launch-check-top strong {
  min-width: 0;
  color: #182230;
  font-size: 17px;
  font-weight: 900;
}

.launch-check-top span {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 24px;
}

.launch-check-value {
  margin-top: 14px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-check-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.phone-preview {
  display: grid;
  place-items: center;
  padding: 34px;
  border: 1px solid rgba(210, 222, 236, 0.72);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.phone-screen {
  width: min(360px, 100%);
  padding: 18px;
  border: 10px solid #121826;
  border-radius: 28px;
  background: #f6f9fd;
}

.phone-head {
  font-size: 20px;
  font-weight: 800;
}

.phone-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.phone-metrics div,
.phone-screen button {
  padding: 14px;
  border-radius: 10px;
  background: #fff;
}

.phone-metrics strong {
  display: block;
  font-size: 24px;
}

.phone-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.phone-screen button {
  width: 100%;
  margin-top: 10px;
  text-align: left;
  color: var(--ink);
}

.panel-tab > .panel,
.panel-tab > .table-wrap,
.panel-tab > .product-grid,
.panel-tab > .banner-grid,
.panel-tab > .editor-grid,
.panel-tab > .school-admin-layout {
  margin-top: 0;
}

.panel-tab + .panel-tab {
  margin-top: 0;
}

.panel-tab .panel + .panel,
.panel-tab .product-grid + .panel,
.panel-tab .product-grid + .product-grid,
.panel-tab .editor-grid + .product-grid,
.panel-tab .table-wrap + .panel {
  margin-top: 16px;
}

.compact-operation-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(219, 229, 239, 0.78);
}

.panel-tab[data-panel-view$=":list"] .product-grid,
.panel-tab[data-panel-view$=":review"] .product-grid,
.panel-tab[data-panel-view$=":list"] .banner-grid {
  min-height: 220px;
}

.panel-tab[data-panel-view="imports:review"] {
  display: none;
}

.panel-tab[data-panel-view="imports:review"].active {
  display: grid;
  gap: 16px;
}

.panel-tab[data-panel-view="schools:list"].active,
.panel-tab[data-panel-view="schools:targeting"].active {
  display: block;
}

.panel-tab[data-panel-view="schools:list"].active .school-list-panel {
  min-height: auto;
}

.panel-tab[data-panel-view="schools:targeting"].active .knowledge-map-grid {
  max-height: min(720px, calc(100vh - 310px));
  min-height: 420px;
  overflow: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.panel-tab[data-panel-view="schools:targeting"].active .knowledge-map-grid::-webkit-scrollbar {
  width: 8px;
}

.panel-tab[data-panel-view="schools:targeting"].active .knowledge-map-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c8d4e3;
}

.panel-tab[data-panel-view="materials:list"].active,
.panel-tab[data-panel-view="banners:list"].active,
.panel-tab[data-panel-view="accounts:list"].active {
  display: block;
}

.module-tabs + .panel-tab.active {
  animation: panelIn 0.16s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-card {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 8;
    z-index: 5;
    display: block;
    padding: 16px;
  }

  .nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    margin-top: 14px;
  }

  .side-card {
    display: none;
  }

  .metric-grid,
  .report-hero-grid,
  .content-grid,
  .editor-grid,
  .school-admin-layout,
  .school-grid,
  .product-grid,
  .agent-grid,
  .agent-performance-metrics,
  .agent-settlement,
  .source-rule-grid,
  .knowledge-stat-list {
    grid-template-columns: 1fr 1fr;
  }

  .agent-performance-row {
    grid-template-columns: minmax(170px, 0.34fr) minmax(180px, 1fr);
  }

  .agent-performance-value {
    grid-column: 2;
  }

  .school-editor-panel {
    inset: 18px;
    width: calc(100vw - 36px);
    max-height: calc(100vh - 36px);
  }

  .school-editor-panel::before {
    inset: 0;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 18px;
  }

  .topbar,
  .module-head,
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .metric-grid,
  .report-hero-grid,
  .content-grid,
  .editor-grid,
  .school-admin-layout,
  .school-grid,
  .product-grid,
  .agent-grid,
  .agent-performance-metrics,
  .agent-performance-row,
  .agent-settlement,
  .source-rule-grid,
  .knowledge-stat-list {
    grid-template-columns: 1fr;
  }

  .agent-performance-value {
    grid-column: auto;
  }

  .report-titlebar {
    flex-direction: column;
  }

  .report-date {
    width: 100%;
    text-align: left;
  }

  .school-editor-panel {
    inset: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .school-editor-actions {
    grid-template-columns: 1fr;
  }

  .top-actions,
  .module-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .account-pill,
  .entitlement-field,
  .entitlement-editor,
  .product-controls {
    grid-column: span 2;
  }

  .school-admin-layout > .panel:last-child {
    grid-column: auto;
  }

	  .school-filter-bar,
	  .major-group-fields,
	  .candidate-point-grid,
	  .major-row,
	  .operator-grid,
	  .preview-path,
  .preview-stats,
  .preview-coverage,
  .preview-map,
  .launch-summary,
  .launch-check-grid {
    grid-template-columns: 1fr;
  }

  .preview-head {
    flex-direction: column;
  }

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

  .entitlement-field,
  .entitlement-editor {
    grid-template-columns: 1fr;
  }

  .product-controls {
    grid-template-columns: 1fr 1fr;
  }
}

/* Premium console skin: brand-grade visual layer for the whole backoffice. */
:root {
  --bg: #eef4fb;
  --panel: rgba(255, 255, 255, 0.88);
  --ink: #102033;
  --muted: #66798f;
  --line: rgba(166, 184, 205, 0.34);
  --blue: #1f66ff;
  --blue-dark: #123d91;
  --cyan: #10c8b3;
  --green: #12a977;
  --purple: #7567ff;
  --orange: #ef7a27;
  --primary: #1f66ff;
  --surface: rgba(244, 248, 253, 0.74);
  --sidebar: #08111f;
  --sidebar-soft: rgba(23, 38, 63, 0.78);
  --focus: 0 0 0 3px rgba(31, 102, 255, 0.16);
  --shadow: 0 30px 90px rgba(18, 39, 70, 0.16);
  --shadow-soft: 0 16px 40px rgba(18, 39, 70, 0.08);
  --shadow-hairline: 0 1px 0 rgba(18, 39, 70, 0.05);
  --glass: rgba(255, 255, 255, 0.74);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --tech-line: rgba(31, 102, 255, 0.14);
}

body {
  background:
    radial-gradient(circle at 18% -8%, rgba(31, 102, 255, 0.18), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(16, 200, 179, 0.16), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #edf4fb 48%, #e7eef8 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 102, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 102, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 82%);
}

.login-screen {
  justify-content: center;
  align-items: center;
  grid-template-columns: minmax(420px, 680px) minmax(380px, 480px);
  gap: 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(43, 113, 255, 0.42), transparent 28%),
    radial-gradient(circle at 74% 70%, rgba(16, 200, 179, 0.28), transparent 30%),
    linear-gradient(135deg, #07101e 0%, #0c1930 42%, #102a47 100%);
}

.login-screen > * {
  max-width: 100%;
}

.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.login-screen::before {
  background-image:
    linear-gradient(rgba(105, 156, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 156, 255, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(900px) rotateX(58deg) translateY(6%);
  transform-origin: center bottom;
  animation: loginGridDrift 14s linear infinite;
}

.login-screen::after {
  background:
    conic-gradient(from 90deg at 72% 34%, transparent 0deg, rgba(63, 126, 255, 0.36) 36deg, transparent 86deg),
    linear-gradient(120deg, transparent 16%, rgba(45, 117, 255, 0.28) 42%, transparent 62%);
  filter: blur(22px);
  opacity: 0.72;
  animation: loginAurora 8s ease-in-out infinite alternate;
}

.login-visual {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  color: #ffffff;
}

.login-visual::before {
  content: "";
  position: absolute;
  right: 0;
  top: -44px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(128, 196, 255, 0.26);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(31, 102, 255, 0.18), transparent 58%),
    repeating-conic-gradient(from 0deg, rgba(119, 183, 255, 0.18) 0deg 3deg, transparent 3deg 11deg);
  box-shadow: 0 0 90px rgba(31, 102, 255, 0.34);
  animation: rotateHalo 18s linear infinite;
}

.login-visual-kicker {
  display: inline-flex;
  height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(143, 201, 255, 0.26);
  border-radius: 999px;
  color: rgba(219, 242, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.login-visual-title {
  position: relative;
  max-width: 620px;
  margin-top: 26px;
  font-size: clamp(42px, 5.4vw, 70px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.login-visual-copy {
  max-width: 520px;
  margin-top: 20px;
  color: rgba(226, 240, 255, 0.74);
  font-size: 18px;
  line-height: 1.8;
}

.login-visual-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.login-visual-stats span {
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(126, 188, 255, 0.24);
  border-radius: 10px;
  color: rgba(240, 248, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 900;
  line-height: 42px;
  backdrop-filter: blur(14px);
}

.login-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: min(456px, 100%);
  padding: 34px;
  border: 1px solid rgba(191, 219, 254, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 255, 0.82)),
    rgba(255, 255, 255, 0.84);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(24px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(31, 102, 255, 0.18), transparent 28%),
    linear-gradient(300deg, rgba(16, 200, 179, 0.12), transparent 30%);
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.login-card .brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  box-shadow:
    0 20px 42px rgba(31, 102, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.login-card h1 {
  margin-top: 10px;
  color: #102033;
  font-size: 30px;
  letter-spacing: 0;
}

.login-card p {
  color: #66798f;
}

.login-card label {
  color: #53687f;
}

.login-card input {
  height: 46px;
  border-color: rgba(153, 175, 200, 0.46);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.login-card .primary-btn {
  height: 46px;
  border-radius: 12px;
  font-size: 14px;
}

.login-message {
  border: 1px solid rgba(31, 102, 255, 0.14);
  border-radius: 12px;
  padding: 11px 12px;
  color: #4d6785;
  background: rgba(239, 246, 255, 0.72);
}

.admin-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(8, 17, 31, 0.02), transparent 18%),
    transparent;
}

.sidebar {
  background:
    radial-gradient(circle at 18% 12%, rgba(31, 102, 255, 0.34), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(16, 200, 179, 0.18), transparent 34%),
    linear-gradient(180deg, #08111f 0%, #0b1526 48%, #091221 100%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.08),
    18px 0 50px rgba(18, 39, 70, 0.08);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 180, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 180, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 92%);
}

.brand,
.nav,
.side-card {
  position: relative;
  z-index: 1;
}

.brand-mark {
  border-radius: 14px;
  background:
    linear-gradient(145deg, #2d74ff 0%, #15ccb8 100%);
  box-shadow:
    0 18px 36px rgba(31, 102, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.brand-name {
  font-weight: 950;
}

.brand-sub {
  color: rgba(207, 226, 255, 0.56);
}

.nav-item {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  color: rgba(223, 235, 255, 0.68);
  background: transparent;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(31, 102, 255, 0.24), rgba(16, 200, 179, 0.08));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nav-item.active,
.nav-item:hover {
  border-color: rgba(137, 191, 255, 0.16);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.065);
  box-shadow:
    inset 3px 0 0 #15ccb8,
    0 12px 30px rgba(0, 0, 0, 0.16);
}

.nav-item.active::after,
.nav-item:hover::after {
  opacity: 1;
}

.nav-item {
  isolation: isolate;
}

.nav-item::after {
  z-index: -1;
}

.side-card {
  border: 1px solid rgba(137, 191, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055));
  backdrop-filter: blur(14px);
}

.main {
  position: relative;
}

.main::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 46vw;
  height: 38vh;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(31, 102, 255, 0.16), transparent 62%);
  z-index: -1;
}

.topbar {
  padding: 18px 0 22px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.94) 0%, rgba(248, 251, 255, 0.76) 72%, rgba(248, 251, 255, 0) 100%);
  backdrop-filter: blur(18px);
}

.eyebrow {
  color: #1f66ff;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.topbar h1 {
  font-size: 34px;
  font-weight: 950;
}

.account-pill,
.ghost-btn,
.small-btn,
.table-action-select {
  border: 1px solid rgba(166, 184, 205, 0.38);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-hairline);
  backdrop-filter: blur(12px);
}

.primary-btn {
  border: 1px solid rgba(129, 178, 255, 0.28);
  background:
    linear-gradient(135deg, #2c78ff 0%, #1f66ff 48%, #11b9ab 100%);
  box-shadow:
    0 14px 30px rgba(31, 102, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.primary-btn:hover {
  box-shadow:
    0 18px 36px rgba(31, 102, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.module-head,
.panel,
.metric,
.school-card,
.product-card,
.agent-card,
.source-rule,
.launch-summary-card,
.launch-check-card,
.table-wrap,
.pagination-bar,
.module-tabs {
  border: 1px solid rgba(166, 184, 205, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.78));
  box-shadow:
    0 18px 48px rgba(18, 39, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
}

.module-head {
  border-radius: 16px;
}

.module-head::before {
  width: 4px;
  background: linear-gradient(180deg, #2c78ff, #15ccb8);
  box-shadow: 0 0 18px rgba(21, 204, 184, 0.58);
}

.panel,
.metric,
.school-card,
.product-card,
.agent-card,
.source-rule,
.table-wrap,
.module-tabs {
  border-radius: 14px;
}

.metric {
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 102, 255, 0.42), transparent);
}

.metric strong {
  color: #0d2440;
  font-weight: 950;
}

.module-tabs {
  width: fit-content;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.module-tab {
  border-radius: 999px;
}

.module-tab.active {
  background:
    linear-gradient(135deg, #1f66ff, #12b9aa);
  box-shadow:
    0 10px 24px rgba(31, 102, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.question-form input,
.question-form select,
.support-filter input,
.support-filter select,
.school-filter-bar input,
.school-filter-bar select,
.operator-grid input,
.operator-grid select,
.login-card input,
.login-card select,
.question-form textarea,
.operator-grid textarea,
.import-box,
.support-note {
  border-color: rgba(166, 184, 205, 0.42);
  background: rgba(255, 255, 255, 0.74);
}

tbody tr:hover {
  background: rgba(232, 242, 255, 0.72);
}

.status,
.badge {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.drawer-panel,
.school-editor-panel {
  border: 1px solid rgba(143, 180, 225, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.9));
  box-shadow: 0 42px 130px rgba(12, 28, 52, 0.38);
  backdrop-filter: blur(24px);
}

@keyframes loginGridDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 56px, 56px 0;
  }
}

@keyframes loginAurora {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-2deg);
    opacity: 0.58;
  }

  to {
    transform: translate3d(2%, 1%, 0) rotate(3deg);
    opacity: 0.86;
  }
}

@keyframes rotateHalo {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }
}

@media (max-width: 720px) {
  .login-card {
    padding: 26px;
  }

  .module-tabs {
    border-radius: 14px;
  }

  .module-tab {
    border-radius: 10px;
  }
}

/* Production readability pass: keep the login page cinematic, make business pages opaque. */
:root {
  --panel: #ffffff;
  --surface: #f6f9fd;
  --line: #d8e3ef;
  --shadow-soft: 0 14px 34px rgba(18, 39, 70, 0.075);
  --shadow: 0 24px 68px rgba(18, 39, 70, 0.12);
}

.admin-shell {
  background:
    radial-gradient(circle at 84% 0%, rgba(42, 121, 255, 0.11), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #edf3f9 58%, #e8eef6 100%);
}

.main::before {
  opacity: 0.46;
}

.topbar {
  background:
    linear-gradient(180deg, #f8fbff 0%, rgba(248, 251, 255, 0.96) 78%, rgba(248, 251, 255, 0) 100%);
}

.module-head,
.panel,
.metric,
.school-card,
.product-card,
.agent-card,
.source-rule,
.launch-summary-card,
.launch-check-card,
.table-wrap,
.pagination-bar,
.module-tabs,
.lead-panel,
.knowledge-overview-panel,
.launch-panel,
.school-knowledge-panel,
.support-head,
.support-filter,
.product-toolbar,
.school-editor-panel .question-form,
.school-editor-panel .school-preview-card {
  border-color: rgba(185, 201, 220, 0.82);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  box-shadow:
    0 14px 34px rgba(18, 39, 70, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: none;
}

.module-head {
  background:
    linear-gradient(90deg, rgba(31, 102, 255, 0.055), rgba(16, 200, 179, 0.028) 44%, #ffffff 100%);
}

.metric::after {
  background: rgba(31, 102, 255, 0.07);
}

.account-pill,
.ghost-btn,
.small-btn,
.table-action-select,
.module-tabs {
  background: #ffffff;
  backdrop-filter: none;
}

.question-form input,
.question-form select,
.support-filter input,
.support-filter select,
.school-filter-bar input,
.school-filter-bar select,
.operator-grid input,
.operator-grid select,
.question-form textarea,
.operator-grid textarea,
.import-box,
.support-note,
.price-input,
.search-input,
.filter-bar input,
.filter-bar select,
.drawer-panel input,
.drawer-panel select,
.drawer-panel textarea,
.school-editor-panel input,
.school-editor-panel select,
.school-editor-panel textarea {
  border-color: #cfdbea;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(16, 32, 51, 0.025);
}

.login-card input,
.login-card select {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
}

.table-wrap {
  overflow: auto;
}

table {
  background: #ffffff;
}

thead th {
  background: #f2f6fb;
}

tbody tr {
  background: #ffffff;
}

tbody tr:nth-child(even) {
  background: #fbfdff;
}

tbody tr:hover {
  background: #edf5ff;
}

.drawer-panel,
.school-editor-panel {
  border-color: rgba(150, 170, 195, 0.42);
  background: #ffffff;
  box-shadow: 0 36px 110px rgba(12, 28, 52, 0.34);
  backdrop-filter: none;
}

.password-panel {
  width: min(560px, calc(100vw - 40px));
}

.password-form {
  margin-top: 18px;
}

.password-panel .import-tip {
  margin-top: 14px;
  border-color: rgba(31, 102, 255, 0.18);
  background: #f3f7ff;
  color: #36506f;
}

.drawer-backdrop,
.school-editor-backdrop {
  background: rgba(12, 24, 44, 0.46);
}

/* Keep the primary navigation usable while desktop editor drawers are open. */
@media (min-width: 1081px) {
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 120;
  }

  .school-editor-panel {
    inset: 28px 28px 28px 292px;
    width: auto;
    margin: 0;
  }

  .school-editor-panel::before {
    inset: 0 0 0 282px;
  }
}

@media (max-width: 1080px) {
  .school-editor-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .school-editor-panel .question-form {
    grid-template-columns: 1fr;
  }

  .school-editor-panel .school-preview-card {
    grid-column: 1;
  }

  .school-editor-panel .school-preview-card {
    grid-row: 3;
    position: static;
    max-height: none;
  }

  .school-editor-actions {
    grid-row: 4;
  }

  .charter-import-card,
  .charter-preview-grid,
  .school-import-commit {
    grid-template-columns: 1fr;
  }

  .targeting-filter-bar,
  .targeting-route {
    grid-template-columns: 1fr;
  }

  .charter-import-actions {
    justify-content: flex-start;
  }

  .school-import-commit {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .charter-preview-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* Local prestige pass: Hunan-inspired login scene and denser executive console. */
:root {
  --bg: #eef3f7;
  --ink: #142033;
  --muted: #64748b;
  --line: #d9e2ee;
  --blue: #1d5fd7;
  --blue-dark: #123c86;
  --cyan: #0f9f95;
  --green: #16805f;
  --orange: #c66722;
  --primary: #1d5fd7;
  --sidebar: #07111f;
  --shadow: 0 24px 72px rgba(15, 33, 57, 0.14);
  --shadow-soft: 0 10px 28px rgba(15, 33, 57, 0.07);
  --shadow-hairline: 0 1px 0 rgba(15, 33, 57, 0.05);
}

html {
  font-size: 13px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% -8%, rgba(29, 95, 215, 0.13), transparent 32%),
    radial-gradient(circle at 12% 14%, rgba(15, 159, 149, 0.09), transparent 30%),
    linear-gradient(180deg, #f7fafc 0%, #edf3f7 48%, #e7eef5 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

body::before {
  background-image:
    linear-gradient(rgba(29, 95, 215, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 95, 215, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.8;
}

.login-screen {
  grid-template-columns: minmax(420px, 690px) minmax(360px, 430px);
  gap: 52px;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.18), rgba(7, 17, 31, 0.84)),
    radial-gradient(circle at 16% 12%, rgba(210, 151, 67, 0.2), transparent 28%),
    radial-gradient(circle at 78% 68%, rgba(31, 111, 149, 0.34), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #14243a 42%, #20344b 100%);
}

.login-screen[hidden] {
  display: none !important;
}

.login-screen::before {
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(226, 197, 139, 0.16) 48%, transparent 49% 100%),
    linear-gradient(rgba(229, 214, 181, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 214, 181, 0.055) 1px, transparent 1px);
  background-size: 260px 180px, 52px 52px, 52px 52px;
  opacity: 0.7;
  transform: none;
  animation: hunanPatternDrift 18s linear infinite;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24) 78%);
}

.login-screen::after {
  inset: auto -8% -16% -8%;
  height: 46%;
  opacity: 0.84;
  filter: blur(0);
  background:
    radial-gradient(ellipse at 24% 70%, rgba(229, 214, 181, 0.18), transparent 36%),
    linear-gradient(172deg, transparent 0 33%, rgba(49, 82, 71, 0.5) 34% 41%, transparent 42% 100%),
    linear-gradient(166deg, transparent 0 44%, rgba(26, 54, 83, 0.74) 45% 53%, transparent 54% 100%),
    linear-gradient(180deg, transparent 0%, rgba(5, 12, 22, 0.62) 100%);
  animation: xiangRiverFlow 10s ease-in-out infinite alternate;
}

.login-visual {
  min-height: 430px;
  padding: 18px 0 0 8px;
}

.login-visual::before {
  display: none;
}

.login-visual::after {
  content: "岳麓书院 · 湘江北去 · 橘子洲头";
  position: absolute;
  left: 4px;
  bottom: 18px;
  color: rgba(238, 229, 206, 0.48);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 18px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.login-visual-kicker {
  height: 28px;
  border-color: rgba(229, 214, 181, 0.26);
  color: rgba(246, 235, 212, 0.88);
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.login-visual-title {
  max-width: 590px;
  color: #fffaf0;
  font-family: "Songti SC", "STSong", "PingFang SC", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  text-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.login-visual-copy {
  max-width: 500px;
  color: rgba(235, 244, 255, 0.76);
  font-size: 16px;
  line-height: 1.85;
}

.login-visual-copy.poetic {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: rgba(255, 250, 240, 0.78);
  font-family: "Songti SC", "STSong", "PingFang SC", serif;
  font-size: 24px;
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.login-visual-copy.poetic span {
  display: block;
}

.login-visual-stats {
  gap: 10px;
  margin-top: 30px;
}

.login-visual-stats span {
  height: 36px;
  padding: 0 14px;
  border-color: rgba(229, 214, 181, 0.24);
  border-radius: 8px;
  color: rgba(255, 250, 240, 0.86);
  background: rgba(255, 255, 255, 0.075);
  font-size: 12px;
  line-height: 36px;
}

.login-card {
  width: min(420px, 100%);
  padding: 30px;
  border-radius: 18px;
  border-color: rgba(229, 214, 181, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.9)),
    rgba(255, 255, 255, 0.86);
}

.login-card::before {
  background:
    linear-gradient(120deg, rgba(198, 103, 34, 0.1), transparent 30%),
    linear-gradient(300deg, rgba(15, 159, 149, 0.1), transparent 30%);
}

.login-card .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, #1d5fd7 0%, #0f9f95 62%, #c66722 100%);
}

.login-card h1 {
  font-size: 26px;
  line-height: 1.18;
}

.login-card p,
.login-message {
  font-size: 13px;
}

.login-card label {
  font-size: 12px;
}

.login-card input {
  height: 42px;
  border-radius: 10px;
}

.login-card .primary-btn {
  height: 42px;
  border-radius: 10px;
}

.admin-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    radial-gradient(circle at 86% 0%, rgba(29, 95, 215, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbfd 0%, #eef4f8 60%, #e9eff5 100%);
}

.sidebar {
  gap: 22px;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 18% 10%, rgba(29, 95, 215, 0.26), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #0a1525 54%, #07101d 100%);
}

.brand {
  gap: 12px;
  padding: 0 4px 6px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.brand-name {
  font-size: 18px;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.nav {
  gap: 4px;
}

.nav-item {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.side-card {
  padding: 15px;
  border-radius: 10px;
}

.side-value {
  margin: 7px 0 3px;
  font-size: 28px;
}

.main {
  padding: 24px 28px 40px;
}

.topbar {
  align-items: center;
  gap: 18px;
  padding: 12px 0 16px;
  margin-bottom: 18px;
}

.eyebrow {
  font-size: 11px;
}

.topbar h1,
h1 {
  font-size: 28px;
  line-height: 1.12;
}

h2,
.report-titlebar h2 {
  font-size: 18px;
}

.top-actions,
.module-actions {
  gap: 8px;
}

.account-pill {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.primary-btn,
.ghost-btn {
  height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 12px;
}

.small-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 11px;
}

.module-head {
  padding: 15px 17px;
  margin-bottom: 12px;
  border-radius: 10px;
}

.module-head p,
.panel p,
.report-titlebar p {
  font-size: 12px;
  line-height: 1.55;
}

.panel {
  padding: 16px;
}

.panel-head {
  margin-bottom: 12px;
}

.metric,
.panel,
.school-card,
.product-card,
.agent-card,
.source-rule,
.launch-summary-card,
.launch-check-card,
.table-wrap,
.pagination-bar,
.module-tabs,
.lead-panel,
.knowledge-overview-panel,
.launch-panel,
.school-knowledge-panel,
.support-head,
.support-filter,
.product-toolbar {
  border-radius: 10px;
  box-shadow:
    0 10px 24px rgba(15, 33, 57, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metric {
  padding: 18px;
}

.metric strong {
  margin: 9px 0 7px;
  font-size: 27px;
}

.metric span,
.report-hero-card span,
.report-note,
td,
th {
  font-size: 12px;
}

.report-titlebar {
  padding: 19px 22px;
}

.report-date {
  min-width: 130px;
  padding: 11px 13px;
}

.report-date strong {
  font-size: 16px;
}

.report-hero-grid {
  gap: 12px;
  padding: 15px 17px;
}

.report-hero-card {
  min-height: 112px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
}

.report-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 15px;
}

.report-hero-card strong {
  margin: 7px 0 5px;
  font-size: 23px;
}

.report-row > span,
.report-row > div {
  min-height: 47px;
  padding: 10px 12px;
}

.report-head > span {
  min-height: 38px;
}

.report-value {
  font-size: 15px;
}

.question-form,
.operator-grid,
.filter-bar,
.school-filter-bar,
.support-filter {
  gap: 11px;
}

.question-form label,
.operator-grid label,
.filter-bar label,
.school-filter-bar label {
  font-size: 12px;
}

.question-form input,
.question-form select,
.support-filter input,
.support-filter select,
.school-filter-bar input,
.school-filter-bar select,
.operator-grid input,
.operator-grid select,
.question-form textarea,
.operator-grid textarea,
.filter-bar input,
.filter-bar select,
.drawer-panel input,
.drawer-panel select,
.drawer-panel textarea,
.school-editor-panel input,
.school-editor-panel select,
.school-editor-panel textarea {
  min-height: 36px;
  border-radius: 8px;
  font-size: 12px;
}

.question-form textarea,
.operator-grid textarea,
.drawer-panel textarea,
.school-editor-panel textarea {
  min-height: 92px;
  padding-top: 9px;
}

table {
  font-size: 12px;
}

th,
td {
  padding: 10px 12px;
}

.status,
.badge,
.report-status {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.drawer-panel,
.school-editor-panel {
  border-radius: 14px;
}

@keyframes hunanPatternDrift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 260px 0, 0 52px, 52px 0;
  }
}

@keyframes xiangRiverFlow {
  from {
    transform: translate3d(-1.2%, 0, 0) scale(1);
  }

  to {
    transform: translate3d(1.2%, -2%, 0) scale(1.03);
  }
}

@media (min-width: 1081px) {
  .school-editor-panel {
    inset: 24px 24px 24px 264px;
  }

  .school-editor-panel::before {
    inset: 0 0 0 248px;
  }
}

@media (max-width: 1080px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }
}

/* Realistic Hunan login revision. */
.login-screen {
  grid-template-columns: minmax(420px, 620px) minmax(340px, 420px);
  gap: 92px;
  padding: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(5, 12, 22, 0.82) 0%, rgba(5, 12, 22, 0.64) 30%, rgba(5, 12, 22, 0.28) 62%, rgba(5, 12, 22, 0.12) 100%),
    linear-gradient(180deg, rgba(5, 12, 22, 0.22), rgba(5, 12, 22, 0.64)),
    url("./assets/login-hunan-bg.png") center / cover no-repeat;
}

.login-screen::before,
.login-screen::after {
  display: none;
}

.login-visual {
  min-height: 390px;
  align-self: center;
  padding: 0;
  transform: translateY(-18px);
}

.login-visual::before,
.login-visual::after {
  display: none;
}

.login-visual-title {
  width: min(590px, 43vw);
  max-width: none;
  line-height: 0;
  filter:
    drop-shadow(0 3px 0 rgba(42, 23, 9, 0.28))
    drop-shadow(0 20px 34px rgba(0, 0, 0, 0.38));
}

.login-visual-title img {
  display: block;
  width: 100%;
  height: auto;
}

.login-visual-copy.poetic {
  width: fit-content;
  margin-top: 70px;
  margin-left: 10px;
  gap: 14px;
  color: rgba(255, 247, 225, 0.82);
  font-family: "STKaiti", "Kaiti SC", "KaiTi", "Songti SC", serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.68;
  letter-spacing: 0.14em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.login-visual-copy.poetic small {
  display: block;
  margin-top: 6px;
  padding-left: 5.6em;
  color: rgba(255, 247, 225, 0.64);
  font-size: 0.58em;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.login-card {
  align-self: center;
  margin-left: auto;
}

@media (max-width: 1080px) {
  .login-screen {
    grid-template-columns: 1fr;
    gap: 32px;
    background-position: center;
  }

  .login-visual {
    display: block;
    min-height: auto;
    width: min(560px, 100%);
    margin: 0 auto;
    text-align: center;
    transform: none;
  }

  .login-visual-title {
    max-width: none;
    width: min(560px, 92vw);
  }

  .login-visual-copy.poetic {
    margin: 42px auto 0;
    font-size: clamp(20px, 5vw, 28px);
  }

  .login-visual-copy.poetic small {
    padding-left: 0;
    text-align: right;
  }

  .login-card {
    margin: 0 auto;
  }
}

/* Login card refinement: quieter copy, Chinese seal icon, password/code modes. */
.login-card {
  width: min(390px, 100%);
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 247, 225, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(247, 250, 248, 0.86)),
    rgba(255, 255, 255, 0.8);
  box-shadow:
    0 34px 90px rgba(5, 12, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.login-card::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(198, 103, 34, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(15, 159, 149, 0.08), transparent 42%);
}

.login-seal {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 45, 28, 0.42);
  border-radius: 14px;
  color: #fff7e6;
  background:
    linear-gradient(145deg, rgba(136, 36, 25, 0.96), rgba(179, 76, 36, 0.92)),
    #9f2f24;
  box-shadow:
    0 18px 34px rgba(127, 45, 28, 0.22),
    inset 0 0 0 3px rgba(255, 247, 225, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-seal::before,
.login-seal::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 247, 225, 0.3);
  border-radius: 10px;
  pointer-events: none;
}

.login-seal::after {
  inset: 12px;
  border-color: rgba(255, 247, 225, 0.18);
  border-radius: 7px;
}

.login-seal span {
  position: relative;
  z-index: 1;
  font-family: "STXingkai", "HanziPen SC", "Hannotate SC", "Kaiti SC", "KaiTi", serif;
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(1px);
}

.login-card h1 {
  margin-top: 4px;
  color: #13243a;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0.04em;
}

.login-card p {
  display: none;
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(190, 203, 218, 0.74);
  border-radius: 12px;
  background: rgba(238, 243, 248, 0.82);
}

.login-mode-tabs button {
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #66798f;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.login-mode-tabs button.active {
  color: #13243a;
  background: #ffffff;
  box-shadow:
    0 8px 18px rgba(15, 33, 57, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-mode-panel {
  display: none;
}

.login-mode-panel.active {
  display: block;
}

.login-card label {
  gap: 8px;
  color: #53687f;
  font-size: 12px;
}

.login-card input {
  height: 40px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
}

.code-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
}

.send-code-btn {
  height: 40px;
  border: 1px solid rgba(198, 103, 34, 0.28);
  border-radius: 10px;
  color: #8a3f0d;
  background: #fff8ec;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.send-code-btn:hover:not(:disabled) {
  border-color: rgba(198, 103, 34, 0.46);
  background: #fff1d8;
}

.send-code-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.login-card .primary-btn {
  height: 42px;
  border-radius: 11px;
  font-size: 14px;
  background: linear-gradient(135deg, #1c5fd6 0%, #0f9f95 100%);
}

.login-message {
  min-height: 42px;
  padding: 10px 12px;
  border-color: rgba(190, 203, 218, 0.74);
  border-radius: 12px;
  color: #5c7088;
  background: rgba(247, 250, 252, 0.82);
  font-size: 12px;
}

@media (max-width: 720px) {
  .code-input-row {
    grid-template-columns: 1fr;
  }

  .send-code-btn {
    width: 100%;
  }
}

/* Compact translucent login card revision. */
.login-card {
  width: min(342px, 100%);
  gap: 13px;
  padding: 22px;
  border-color: rgba(255, 247, 225, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(244, 248, 248, 0.3)),
    rgba(255, 255, 255, 0.26);
  box-shadow:
    0 24px 70px rgba(5, 12, 22, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px) saturate(1.04);
}

.login-card::before {
  background:
    linear-gradient(130deg, rgba(255, 247, 225, 0.08), transparent 32%),
    radial-gradient(circle at 12% 14%, rgba(161, 93, 48, 0.07), transparent 30%);
}

.login-seal {
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 238, 202, 0.48);
  border-radius: 18px 13px 17px 12px;
  color: #fff4dc;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 239, 196, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(96, 34, 28, 0.94), rgba(154, 73, 43, 0.9) 58%, rgba(103, 75, 57, 0.88)),
    #8f3d2e;
  box-shadow:
    0 16px 32px rgba(75, 33, 24, 0.2),
    inset 0 0 0 3px rgba(255, 245, 220, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: rotate(-2deg);
}

.login-seal::before {
  inset: 7px 8px 9px 6px;
  border-color: rgba(255, 238, 202, 0.34);
  border-radius: 13px 9px 12px 8px;
}

.login-seal::after {
  inset: 12px 11px 10px 13px;
  border-color: rgba(255, 238, 202, 0.16);
  border-radius: 8px 7px 9px 6px;
  transform: rotate(1.5deg);
}

.login-seal span {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Hannotate SC", serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-align: center;
  transform: translate(1px, 0) rotate(1deg);
}

.login-mode-tabs {
  gap: 3px;
  padding: 3px;
  border-color: rgba(194, 203, 213, 0.46);
  border-radius: 10px;
  background: rgba(237, 242, 246, 0.42);
}

.login-mode-tabs button {
  height: 30px;
  border-radius: 8px;
  font-size: 11px;
}

.login-mode-tabs button.active {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 14px rgba(15, 33, 57, 0.07);
}

.login-card label {
  gap: 6px;
  color: rgba(36, 55, 78, 0.78);
  font-size: 11px;
}

.login-card input {
  height: 36px;
  border-color: rgba(176, 190, 205, 0.6);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.code-input-row {
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 7px;
}

.send-code-btn {
  height: 36px;
  border-color: rgba(159, 94, 49, 0.24);
  border-radius: 9px;
  color: #70411f;
  background: rgba(255, 246, 230, 0.68);
  font-size: 11px;
}

.login-card .primary-btn {
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #13243a 0%, #31506b 58%, #b98242 100%);
  box-shadow: 0 14px 28px rgba(19, 36, 58, 0.18);
}

.login-card .primary-btn:hover {
  box-shadow: 0 16px 34px rgba(19, 36, 58, 0.24);
}

.login-message {
  min-height: 0;
  padding: 9px 10px;
  border-color: rgba(190, 203, 218, 0.5);
  background: rgba(247, 250, 252, 0.58);
  font-size: 11px;
}

.login-message:empty {
  display: none;
}

@media (max-width: 720px) {
  .login-card {
    width: min(342px, calc(100vw - 40px));
    padding: 20px;
  }
}

/* Inner admin refinement: premium, compact, readable operations surface. */
:root {
  --admin-ink: #142235;
  --admin-muted: #66768a;
  --admin-line: rgba(170, 187, 208, 0.5);
  --admin-paper: rgba(255, 255, 255, 0.92);
  --admin-paper-strong: #ffffff;
  --admin-blue: #1d5fd7;
  --admin-jade: #0f9f95;
  --admin-gold: #b98242;
  --admin-red: #9b3428;
  --admin-shadow: 0 18px 44px rgba(18, 39, 70, 0.08);
  --admin-shadow-soft: 0 8px 22px rgba(18, 39, 70, 0.055);
}

body {
  color: var(--admin-ink);
  background:
    radial-gradient(circle at 88% -10%, rgba(185, 130, 66, 0.1), transparent 28%),
    radial-gradient(circle at 18% 10%, rgba(15, 159, 149, 0.07), transparent 24%),
    linear-gradient(180deg, #f8fbfd 0%, #eef4f8 54%, #e7edf4 100%);
}

body::before {
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(45, 74, 108, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 74, 108, 0.022) 1px, transparent 1px);
}

.admin-shell {
  grid-template-columns: 238px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.025), transparent 18%),
    transparent;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  gap: 18px;
  padding: 22px 14px 16px;
  background:
    radial-gradient(circle at 16% 8%, rgba(37, 96, 156, 0.38), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(185, 130, 66, 0.16), transparent 26%),
    linear-gradient(180deg, #07111f 0%, #0a1524 52%, #07101d 100%);
}

.brand {
  flex: none;
  min-height: 44px;
  gap: 11px;
  padding: 0 6px 8px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px 10px 12px 9px;
  color: #fff4dc;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 239, 196, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(96, 34, 28, 0.94), rgba(154, 73, 43, 0.9) 58%, rgba(103, 75, 57, 0.88));
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 20px;
  box-shadow:
    0 14px 26px rgba(75, 33, 24, 0.22),
    inset 0 0 0 3px rgba(255, 245, 220, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: rotate(-2deg);
}

.brand-name {
  color: #fff7e7;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-sub {
  margin-top: 2px;
  color: rgba(255, 247, 225, 0.46);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.nav {
  flex: 1;
  min-height: 0;
  gap: 4px;
  overflow-y: auto;
  padding: 2px 3px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 247, 225, 0.22) transparent;
}

.nav::-webkit-scrollbar {
  width: 4px;
}

.nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 247, 225, 0.2);
}

.nav-item {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 10px;
  color: rgba(235, 244, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.nav-item::before {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 247, 225, 0.12);
  border-radius: 8px;
  color: rgba(255, 247, 225, 0.72);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  content: "管";
  font-size: 11px;
  font-weight: 900;
}

.nav-item[data-view="dashboard"]::before { content: "台"; }
.nav-item[data-view="questions"]::before { content: "题"; }
.nav-item[data-view="imports"]::before { content: "审"; }
.nav-item[data-view="schools"]::before { content: "校"; }
.nav-item[data-view="materials"]::before { content: "文"; }
.nav-item[data-view="banners"]::before { content: "广"; }
.nav-item[data-view="products"]::before { content: "商"; }
.nav-item[data-view="registeredUsers"]::before { content: "生"; }
.nav-item[data-view="orders"]::before { content: "单"; }
.nav-item[data-view="agents"]::before { content: "代"; }
.nav-item[data-view="accounts"]::before { content: "权"; }
.nav-item[data-view="launch"]::before { content: "上"; }
.nav-item[data-view="mobile"]::before { content: "营"; }

.nav-item.active,
.nav-item:hover {
  border-color: rgba(255, 247, 225, 0.14);
  background:
    linear-gradient(90deg, rgba(29, 95, 215, 0.28), rgba(15, 159, 149, 0.11));
  box-shadow:
    inset 3px 0 0 var(--admin-gold),
    0 12px 24px rgba(0, 0, 0, 0.13);
}

.nav-item.active::before,
.nav-item:hover::before {
  color: #fff7e8;
  border-color: rgba(255, 247, 225, 0.2);
  background:
    linear-gradient(145deg, rgba(185, 130, 66, 0.9), rgba(15, 159, 149, 0.72));
}

.side-card {
  flex: none;
  margin-top: 0;
  padding: 14px 15px;
  border: 1px solid rgba(255, 247, 225, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.08);
}

.side-label {
  color: rgba(255, 247, 225, 0.62);
  font-size: 12px;
}

.side-value {
  margin: 6px 0 2px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.side-copy {
  display: block;
  overflow: hidden;
  color: rgba(235, 244, 255, 0.56);
  font-size: 11px;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.main {
  min-width: 0;
  padding: 22px 28px 42px;
}

.main::before {
  opacity: 0.32;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  align-items: center;
  padding: 10px 0 14px;
  margin-bottom: 14px;
  background:
    linear-gradient(180deg, rgba(248, 251, 253, 0.98) 0%, rgba(248, 251, 253, 0.94) 72%, rgba(248, 251, 253, 0) 100%);
  border-bottom: 1px solid rgba(170, 187, 208, 0.16);
  backdrop-filter: blur(18px);
}

.eyebrow {
  color: rgba(29, 95, 215, 0.78);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.topbar h1,
h1 {
  margin-top: 3px;
  color: #101d2f;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 900;
}

h2,
.report-titlebar h2 {
  color: #142235;
  font-size: 17px;
  font-weight: 900;
}

.top-actions,
.module-actions {
  gap: 7px;
}

.account-pill,
.primary-btn,
.ghost-btn,
.small-btn,
.table-action-select {
  border-radius: 9px;
}

.account-pill,
.ghost-btn,
.small-btn,
.table-action-select {
  border-color: rgba(170, 187, 208, 0.55);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--admin-shadow-soft);
}

.primary-btn,
.ghost-btn {
  height: 33px;
  padding: 0 12px;
  font-size: 12px;
}

.primary-btn {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #194fba 0%, #0f9f95 62%, #b98242 130%);
  box-shadow: 0 12px 24px rgba(29, 95, 215, 0.16);
}

.module-head,
.panel,
.metric,
.school-card,
.product-card,
.agent-card,
.source-rule,
.launch-summary-card,
.launch-check-card,
.table-wrap,
.pagination-bar,
.module-tabs,
.lead-panel,
.knowledge-overview-panel,
.launch-panel,
.school-knowledge-panel,
.support-head,
.support-filter,
.product-toolbar {
  border-color: var(--admin-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--admin-paper-strong) 0%, rgba(248, 251, 253, 0.95) 100%);
  box-shadow: var(--admin-shadow);
}

.module-head {
  padding: 15px 18px;
  background:
    linear-gradient(90deg, rgba(185, 130, 66, 0.07), rgba(15, 159, 149, 0.035) 42%, rgba(255, 255, 255, 0.98) 100%);
}

.module-head::before {
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--admin-gold), var(--admin-jade));
  box-shadow: none;
}

.module-head p,
.panel p,
.report-titlebar p {
  color: var(--admin-muted);
  font-size: 12px;
}

.dashboard-report {
  overflow: hidden;
  border: 1px solid rgba(170, 187, 208, 0.55);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.94));
  box-shadow:
    0 22px 54px rgba(18, 39, 70, 0.085),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.report-titlebar {
  align-items: center;
  padding: 18px 22px;
  border-bottom-color: rgba(170, 187, 208, 0.42);
  background:
    linear-gradient(115deg, rgba(20, 34, 53, 0.02), rgba(185, 130, 66, 0.075) 0 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f7fafc 54%, #eef7f5 100%);
}

.report-kicker {
  margin-bottom: 5px;
  color: rgba(185, 130, 66, 0.95);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.report-date {
  min-width: 126px;
  padding: 10px 12px;
  border-color: rgba(170, 187, 208, 0.46);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.report-date strong {
  color: #142235;
  font-size: 15px;
}

.report-hero-grid {
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 12px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.report-hero-card {
  min-height: 104px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  border-color: rgba(170, 187, 208, 0.5);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  box-shadow: var(--admin-shadow-soft);
}

.report-hero-card::after {
  right: -42px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  opacity: 0.1;
}

.report-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 14px;
  box-shadow:
    0 10px 20px rgba(15, 33, 57, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.report-hero-card span,
.report-hero-card small {
  color: var(--admin-muted);
}

.report-hero-card span {
  margin-top: 0;
  font-size: 12px;
}

.report-hero-card strong {
  margin: 6px 0 4px;
  color: #101d2f;
  font-size: 22px;
}

.report-hero-card small {
  font-size: 11px;
  line-height: 1.42;
}

.report-hero-card.tone-blue .report-hero-icon {
  background: linear-gradient(135deg, #1d5fd7 0%, #123c86 100%);
}

.report-hero-card.tone-teal .report-hero-icon {
  background: linear-gradient(135deg, #0f9f95 0%, #0b6f68 100%);
}

.report-hero-card.tone-violet .report-hero-icon {
  background: linear-gradient(135deg, #6d5dfc 0%, #4936a8 100%);
}

.report-hero-card.tone-amber .report-hero-icon {
  background: linear-gradient(135deg, #b98242 0%, #8a4c20 100%);
}

.report-sheet {
  background: #ffffff;
}

.report-row {
  grid-template-columns: 116px minmax(160px, 1fr) minmax(118px, 0.56fr) minmax(250px, 1.35fr) 104px;
  min-width: 860px;
  border-bottom-color: rgba(222, 231, 240, 0.9);
}

.report-row > span,
.report-row > div {
  min-height: 44px;
  padding: 9px 11px;
  border-right-color: rgba(226, 234, 243, 0.9);
}

.report-head {
  background: linear-gradient(180deg, #f5f8fb 0%, #edf3f8 100%);
}

.report-head > span {
  min-height: 36px;
}

.report-module {
  justify-content: flex-start;
  padding-left: 12px;
  color: #194fba;
  background: #edf5ff;
  font-size: 12px;
}

.report-module::before {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d5fd7 0%, #123c86 100%);
  box-shadow:
    0 8px 16px rgba(29, 95, 215, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.report-module-teal::before {
  background: linear-gradient(135deg, #0f9f95 0%, #0b6f68 100%);
}

.report-module-amber::before {
  background: linear-gradient(135deg, #b98242 0%, #8a4c20 100%);
}

.report-module-violet::before {
  background: linear-gradient(135deg, #6d5dfc 0%, #4936a8 100%);
}

.report-name {
  font-size: 12px;
}

.report-value {
  font-size: 15px;
}

.report-note {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 650;
}

.report-action-btn {
  min-height: 28px;
  border-color: rgba(185, 130, 66, 0.28);
  color: #7a451e;
  background: #fff8ed;
}

.report-row-action:hover {
  background: #fffaf3;
  box-shadow: inset 3px 0 0 var(--admin-gold);
}

.question-form input,
.question-form select,
.support-filter input,
.support-filter select,
.school-filter-bar input,
.school-filter-bar select,
.operator-grid input,
.operator-grid select,
.question-form textarea,
.operator-grid textarea,
.filter-bar input,
.filter-bar select,
.drawer-panel input,
.drawer-panel select,
.drawer-panel textarea,
.school-editor-panel input,
.school-editor-panel select,
.school-editor-panel textarea {
  border-color: rgba(170, 187, 208, 0.55);
  background: rgba(255, 255, 255, 0.9);
}

table {
  color: #243246;
}

th {
  color: #728095;
  background: #f4f7fa;
}

th,
td {
  padding: 9px 11px;
}

tbody tr:hover {
  background: rgba(240, 247, 255, 0.88);
}

@media (max-width: 1180px) {
  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .main {
    padding: 20px 22px 38px;
  }

  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 1080px) {
  .sidebar {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .nav {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .nav-item {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 16px;
  }

  .topbar {
    min-height: 0;
  }

  .topbar h1,
  h1 {
    font-size: 23px;
  }

  .report-titlebar {
    align-items: stretch;
  }

  .report-date {
    width: 100%;
    text-align: left;
  }
}

/* Sidebar menu simplification: remove per-item glyphs for a cleaner admin rhythm. */
.nav-item {
  gap: 0;
  padding-left: 16px;
}

.nav-item::before {
  display: none !important;
  content: none !important;
}

/* Product design pass: post-login console only. Keep the approved login page unchanged. */
:root {
  --console-bg: #f4f7f8;
  --console-paper: #ffffff;
  --console-paper-soft: #f9fbfb;
  --console-ink: #172130;
  --console-muted: #667587;
  --console-line: rgba(159, 177, 199, 0.38);
  --console-navy: #101a2a;
  --console-blue: #255fbd;
  --console-jade: #0f8f83;
  --console-brass: #a87642;
  --console-red: #a64235;
  --console-radius: 12px;
  --console-shadow: 0 16px 38px rgba(22, 39, 64, 0.07);
  --console-shadow-soft: 0 8px 20px rgba(22, 39, 64, 0.045);
}

body.admin-logged-in {
  color: var(--console-ink);
  background:
    radial-gradient(circle at 92% -8%, rgba(168, 118, 66, 0.12), transparent 24%),
    radial-gradient(circle at 10% 8%, rgba(15, 143, 131, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfcfc 0%, #f1f5f7 48%, #e9eff3 100%);
  font-size: 14px;
}

.admin-shell:not(.logged-out) {
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-shell:not(.logged-out) .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 12px 14px;
  gap: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 6%, rgba(37, 95, 189, 0.26), transparent 24%),
    linear-gradient(180deg, #111d2e 0%, #0d1726 58%, #0a1320 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.07);
}

.admin-shell:not(.logged-out) .brand {
  min-height: 44px;
  padding: 2px 7px 10px;
  gap: 11px;
}

.admin-shell:not(.logged-out) .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px 10px 13px 9px;
  color: #fff2db;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 241, 205, 0.22), transparent 28%),
    linear-gradient(145deg, #8c3f2e 0%, #a87642 56%, #5b5145 100%);
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 10px;
  line-height: 1.16;
  letter-spacing: 0.08em;
  box-shadow:
    0 12px 24px rgba(63, 31, 23, 0.24),
    inset 0 0 0 3px rgba(255, 246, 221, 0.11);
  transform: rotate(-2deg);
}

.admin-shell:not(.logged-out) .brand-mark span {
  display: block;
  transform: translateX(0.4px);
}

.admin-shell:not(.logged-out) .brand-name {
  color: #fff6e8;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 900;
}

.admin-shell:not(.logged-out) .brand-sub {
  margin-top: 2px;
  color: rgba(255, 246, 232, 0.48);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.admin-shell:not(.logged-out) .nav {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  overflow-y: auto;
  padding: 2px 3px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 246, 232, 0.22) transparent;
}

.admin-shell:not(.logged-out) .nav::-webkit-scrollbar {
  width: 4px;
}

.admin-shell:not(.logged-out) .nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 246, 232, 0.22);
}

.admin-shell:not(.logged-out) .nav-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(236, 243, 251, 0.7);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.admin-shell:not(.logged-out) .nav-item::before {
  width: 22px;
  height: 22px;
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 22px;
  border: 1px solid rgba(255, 246, 232, 0.13);
  border-radius: 8px;
  color: rgba(255, 246, 232, 0.72);
  background: rgba(255, 255, 255, 0.055);
  content: "管" !important;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.admin-shell:not(.logged-out) .nav-item[data-view="dashboard"]::before { content: "台" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="questions"]::before { content: "题" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="imports"]::before { content: "审" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="schools"]::before { content: "校" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="materials"]::before { content: "文" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="banners"]::before { content: "广" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="products"]::before { content: "商" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="registeredUsers"]::before { content: "生" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="orders"]::before { content: "单" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="agents"]::before { content: "代" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="accounts"]::before { content: "权" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="launch"]::before { content: "上" !important; }
.admin-shell:not(.logged-out) .nav-item[data-view="mobile"]::before { content: "营" !important; }

.admin-shell:not(.logged-out) .nav-item.active,
.admin-shell:not(.logged-out) .nav-item:hover {
  color: #ffffff;
  border-color: rgba(255, 246, 232, 0.1);
  background: linear-gradient(90deg, rgba(37, 95, 189, 0.28), rgba(15, 143, 131, 0.1));
  box-shadow: inset 3px 0 0 var(--console-brass);
}

.admin-shell:not(.logged-out) .nav-item.active::before,
.admin-shell:not(.logged-out) .nav-item:hover::before {
  color: #fff6e8;
  border-color: rgba(255, 246, 232, 0.22);
  background: linear-gradient(145deg, rgba(168, 118, 66, 0.92), rgba(15, 143, 131, 0.72));
}

.admin-shell:not(.logged-out) .side-card {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(255, 246, 232, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-shell:not(.logged-out) .side-label {
  color: rgba(255, 246, 232, 0.62);
  font-size: 12px;
}

.admin-shell:not(.logged-out) .side-value {
  margin: 7px 0 3px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.admin-shell:not(.logged-out) .side-copy {
  overflow: hidden;
  color: rgba(236, 243, 251, 0.56);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-shell:not(.logged-out) .main {
  min-width: 0;
  padding: 22px 28px 42px;
}

.admin-shell:not(.logged-out) .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  align-items: center;
  padding: 10px 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(159, 177, 199, 0.14);
  background: linear-gradient(180deg, rgba(251, 252, 252, 0.98) 0%, rgba(251, 252, 252, 0.93) 74%, rgba(251, 252, 252, 0) 100%);
  backdrop-filter: blur(18px);
}

.admin-shell:not(.logged-out) .eyebrow {
  color: rgba(37, 95, 189, 0.76);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.admin-shell:not(.logged-out) .topbar h1,
.admin-shell:not(.logged-out) h1 {
  margin-top: 3px;
  color: var(--console-ink);
  font-size: 26px;
  line-height: 1.12;
}

.admin-shell:not(.logged-out) h2,
.admin-shell:not(.logged-out) .report-titlebar h2 {
  color: var(--console-ink);
  font-size: 17px;
}

.admin-shell:not(.logged-out) .top-actions,
.admin-shell:not(.logged-out) .module-actions {
  gap: 7px;
}

.admin-shell:not(.logged-out) .account-pill,
.admin-shell:not(.logged-out) .primary-btn,
.admin-shell:not(.logged-out) .ghost-btn,
.admin-shell:not(.logged-out) .small-btn,
.admin-shell:not(.logged-out) .table-action-select {
  border-radius: 9px;
}

.admin-shell:not(.logged-out) .account-pill,
.admin-shell:not(.logged-out) .ghost-btn,
.admin-shell:not(.logged-out) .small-btn,
.admin-shell:not(.logged-out) .table-action-select {
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--console-shadow-soft);
}

.admin-shell:not(.logged-out) .account-pill {
  min-height: 33px;
  color: var(--console-muted);
}

.admin-shell:not(.logged-out) .primary-btn,
.admin-shell:not(.logged-out) .ghost-btn {
  height: 33px;
  padding: 0 12px;
  font-size: 12px;
}

.admin-shell:not(.logged-out) .small-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-shell:not(.logged-out) .primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #255fbd 0%, #0f8f83 68%, #a87642 138%);
  box-shadow: 0 12px 24px rgba(37, 95, 189, 0.16);
}

.admin-shell:not(.logged-out) .ghost-btn:hover,
.admin-shell:not(.logged-out) .small-btn:hover {
  color: var(--console-blue);
  border-color: rgba(37, 95, 189, 0.28);
  box-shadow: 0 10px 22px rgba(37, 95, 189, 0.09);
}

.admin-shell:not(.logged-out) .module-head,
.admin-shell:not(.logged-out) .panel,
.admin-shell:not(.logged-out) .metric,
.admin-shell:not(.logged-out) .school-card,
.admin-shell:not(.logged-out) .product-card,
.admin-shell:not(.logged-out) .agent-card,
.admin-shell:not(.logged-out) .source-rule,
.admin-shell:not(.logged-out) .launch-summary-card,
.admin-shell:not(.logged-out) .launch-check-card,
.admin-shell:not(.logged-out) .table-wrap,
.admin-shell:not(.logged-out) .pagination-bar,
.admin-shell:not(.logged-out) .module-tabs,
.admin-shell:not(.logged-out) .lead-panel,
.admin-shell:not(.logged-out) .knowledge-overview-panel,
.admin-shell:not(.logged-out) .launch-panel,
.admin-shell:not(.logged-out) .school-knowledge-panel,
.admin-shell:not(.logged-out) .support-head,
.admin-shell:not(.logged-out) .support-filter,
.admin-shell:not(.logged-out) .product-toolbar {
  border-color: var(--console-line);
  border-radius: var(--console-radius);
  background: linear-gradient(180deg, var(--console-paper) 0%, var(--console-paper-soft) 100%);
  box-shadow: var(--console-shadow);
}

.admin-shell:not(.logged-out) .module-head {
  align-items: center;
  padding: 15px 18px;
  margin-bottom: 14px;
  background:
    linear-gradient(90deg, rgba(168, 118, 66, 0.075), rgba(15, 143, 131, 0.035) 42%, rgba(255, 255, 255, 0.98) 100%);
}

.admin-shell:not(.logged-out) .module-head::before {
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--console-brass), var(--console-jade));
  box-shadow: none;
}

.admin-shell:not(.logged-out) .module-head p,
.admin-shell:not(.logged-out) .panel p,
.admin-shell:not(.logged-out) .report-titlebar p {
  color: var(--console-muted);
  font-size: 12px;
  line-height: 1.62;
}

.admin-shell:not(.logged-out) .panel {
  padding: 18px;
}

.admin-shell:not(.logged-out) .panel-head,
.admin-shell:not(.logged-out) .module-head {
  gap: 16px;
}

.admin-shell:not(.logged-out) .panel-head {
  align-items: center;
  margin-bottom: 16px;
}

.admin-shell:not(.logged-out) .dashboard-report {
  overflow: hidden;
  border: 1px solid rgba(159, 177, 199, 0.45);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.94));
  box-shadow:
    0 22px 54px rgba(22, 39, 64, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.admin-shell:not(.logged-out) .report-titlebar {
  align-items: center;
  padding: 18px 22px;
  border-bottom-color: rgba(159, 177, 199, 0.34);
  background: linear-gradient(135deg, #ffffff 0%, #f8faf9 56%, #edf7f5 100%);
}

.admin-shell:not(.logged-out) .report-kicker {
  margin-bottom: 5px;
  color: var(--console-brass);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.admin-shell:not(.logged-out) .report-date {
  min-width: 126px;
  padding: 10px 12px;
  border-color: var(--console-line);
  border-radius: var(--console-radius);
  background: rgba(255, 255, 255, 0.78);
}

.admin-shell:not(.logged-out) .report-date strong {
  color: var(--console-ink);
  font-size: 15px;
}

.admin-shell:not(.logged-out) .report-hero-grid {
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #f8fbfb 0%, #ffffff 100%);
}

.admin-shell:not(.logged-out) .report-hero-card {
  min-height: 104px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  border-color: var(--console-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfd 100%);
  box-shadow: var(--console-shadow-soft);
}

.admin-shell:not(.logged-out) .report-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 14px;
}

.admin-shell:not(.logged-out) .report-hero-card strong {
  margin: 6px 0 4px;
  color: var(--console-ink);
  font-size: 22px;
}

.admin-shell:not(.logged-out) .report-hero-card span,
.admin-shell:not(.logged-out) .report-hero-card small {
  color: var(--console-muted);
}

.admin-shell:not(.logged-out) .report-row {
  grid-template-columns: 116px minmax(160px, 1fr) minmax(118px, 0.56fr) minmax(250px, 1.35fr) 104px;
  min-width: 860px;
  border-bottom-color: rgba(220, 229, 238, 0.9);
}

.admin-shell:not(.logged-out) .report-row > span,
.admin-shell:not(.logged-out) .report-row > div {
  min-height: 44px;
  padding: 9px 11px;
  border-right-color: rgba(226, 234, 242, 0.86);
}

.admin-shell:not(.logged-out) .report-head {
  color: #708094;
  background: linear-gradient(180deg, #f5f8f9 0%, #edf3f5 100%);
}

.admin-shell:not(.logged-out) .report-module {
  justify-content: flex-start;
  padding-left: 12px;
  color: var(--console-blue);
  background: #edf5ff;
  font-size: 12px;
}

.admin-shell:not(.logged-out) .report-value {
  color: var(--console-ink);
  font-size: 15px;
}

.admin-shell:not(.logged-out) .report-note {
  color: var(--console-muted);
  font-size: 12px;
  font-weight: 650;
}

.admin-shell:not(.logged-out) .module-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: 12px;
  box-shadow: var(--console-shadow-soft);
}

.admin-shell:not(.logged-out) .module-tab {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--console-muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-shell:not(.logged-out) .module-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--console-blue), var(--console-jade));
  box-shadow: 0 8px 18px rgba(37, 95, 189, 0.14);
}

.admin-shell:not(.logged-out) .question-form,
.admin-shell:not(.logged-out) .filter-bar,
.admin-shell:not(.logged-out) .school-filter-bar,
.admin-shell:not(.logged-out) .support-filter {
  gap: 12px;
}

.admin-shell:not(.logged-out) .question-form label,
.admin-shell:not(.logged-out) .operator-grid label,
.admin-shell:not(.logged-out) .filter-bar label,
.admin-shell:not(.logged-out) .school-filter-bar label {
  color: var(--console-muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-shell:not(.logged-out) .question-form input,
.admin-shell:not(.logged-out) .question-form select,
.admin-shell:not(.logged-out) .support-filter input,
.admin-shell:not(.logged-out) .support-filter select,
.admin-shell:not(.logged-out) .school-filter-bar input,
.admin-shell:not(.logged-out) .school-filter-bar select,
.admin-shell:not(.logged-out) .operator-grid input,
.admin-shell:not(.logged-out) .operator-grid select,
.admin-shell:not(.logged-out) .filter-bar input,
.admin-shell:not(.logged-out) .filter-bar select,
.admin-shell:not(.logged-out) .drawer-panel input,
.admin-shell:not(.logged-out) .drawer-panel select,
.admin-shell:not(.logged-out) .school-editor-panel input,
.admin-shell:not(.logged-out) .school-editor-panel select {
  min-height: 38px;
  border-color: var(--console-line);
  border-radius: 9px;
  color: var(--console-ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.admin-shell:not(.logged-out) .question-form textarea,
.admin-shell:not(.logged-out) .operator-grid textarea,
.admin-shell:not(.logged-out) .drawer-panel textarea,
.admin-shell:not(.logged-out) .school-editor-panel textarea,
.admin-shell:not(.logged-out) .import-box {
  border-color: var(--console-line);
  border-radius: 10px;
  color: var(--console-ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.admin-shell:not(.logged-out) .table-wrap {
  overflow: auto;
  border-radius: 14px;
  background: #ffffff;
}

.admin-shell:not(.logged-out) table {
  color: #243246;
  font-size: 12px;
}

.admin-shell:not(.logged-out) th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #718196;
  background: #f4f7f8;
  font-size: 12px;
}

.admin-shell:not(.logged-out) th,
.admin-shell:not(.logged-out) td {
  padding: 9px 11px;
  border-bottom-color: rgba(226, 234, 242, 0.86);
}

.admin-shell:not(.logged-out) tbody tr:hover {
  background: rgba(240, 247, 255, 0.82);
}

.admin-shell:not(.logged-out) .status,
.admin-shell:not(.logged-out) .badge,
.admin-shell:not(.logged-out) .quality-pill {
  min-height: 24px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.admin-shell:not(.logged-out) .school-grid,
.admin-shell:not(.logged-out) .product-grid,
.admin-shell:not(.logged-out) .agent-grid {
  gap: 14px;
}

.admin-shell:not(.logged-out) .school-card,
.admin-shell:not(.logged-out) .product-card,
.admin-shell:not(.logged-out) .agent-card,
.admin-shell:not(.logged-out) .knowledge-card,
.admin-shell:not(.logged-out) .knowledge-stat-card,
.admin-shell:not(.logged-out) .agent-performance-card {
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
  box-shadow: var(--console-shadow-soft);
}

.admin-shell:not(.logged-out) .school-card:hover,
.admin-shell:not(.logged-out) .product-card:hover,
.admin-shell:not(.logged-out) .agent-card:hover {
  border-color: rgba(37, 95, 189, 0.26);
  box-shadow: 0 16px 34px rgba(22, 39, 64, 0.08);
}

.admin-shell:not(.logged-out) .drawer-panel,
.admin-shell:not(.logged-out) .school-editor-panel {
  border-radius: 18px;
  border-color: rgba(159, 177, 199, 0.48);
  box-shadow: 0 34px 90px rgba(15, 27, 43, 0.28);
}

.admin-shell:not(.logged-out) .school-editor-panel {
  inset: 24px 24px 24px 256px;
  max-height: calc(100vh - 48px);
}

.admin-shell:not(.logged-out) .school-editor-tabs {
  border-radius: 12px;
  background: #f5f8f9;
}

.admin-shell:not(.logged-out) .school-editor-tabs button {
  min-height: 34px;
  border-radius: 8px;
  color: var(--console-muted);
  font-size: 12px;
}

.admin-shell:not(.logged-out) .school-editor-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--console-blue), var(--console-jade));
}

.admin-shell:not(.logged-out) .school-editor-section,
.admin-shell:not(.logged-out) .operator-section,
.admin-shell:not(.logged-out) .score-line-row,
.admin-shell:not(.logged-out) .outline-row,
.admin-shell:not(.logged-out) .major-group-edit,
.admin-shell:not(.logged-out) .candidate-point-card,
.admin-shell:not(.logged-out) .quota-point-picker {
  border-color: var(--console-line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
}

.admin-shell:not(.logged-out) .empty-state,
.admin-shell:not(.logged-out) .empty-card,
.admin-shell:not(.logged-out) .empty-note {
  border-color: rgba(159, 177, 199, 0.45);
  border-radius: 12px;
  color: var(--console-muted);
  background: rgba(255, 255, 255, 0.64);
}

@media (max-width: 1180px) {
  .admin-shell:not(.logged-out) {
    grid-template-columns: 216px minmax(0, 1fr);
  }

  .admin-shell:not(.logged-out) .main {
    padding: 20px 22px 38px;
  }

  .admin-shell:not(.logged-out) .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 1080px) {
  .admin-shell:not(.logged-out) {
    display: block;
  }

  .admin-shell:not(.logged-out) .sidebar {
    position: static;
    height: auto;
    max-height: none;
  }

  .admin-shell:not(.logged-out) .nav {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .admin-shell:not(.logged-out) .nav-item {
    flex: 0 0 auto;
  }

  .admin-shell:not(.logged-out) .school-editor-panel {
    inset: 18px;
  }
}

@media (max-width: 720px) {
  .admin-shell:not(.logged-out) .main {
    padding: 16px;
  }

  .admin-shell:not(.logged-out) .topbar {
    display: grid;
    align-items: start;
  }

  .admin-shell:not(.logged-out) .topbar h1,
  .admin-shell:not(.logged-out) h1 {
    font-size: 23px;
  }

  .admin-shell:not(.logged-out) .module-head,
  .admin-shell:not(.logged-out) .panel {
    padding: 15px;
  }

  .admin-shell:not(.logged-out) .report-titlebar {
    display: grid;
  }

  .admin-shell:not(.logged-out) .report-date {
    width: 100%;
    text-align: left;
  }
}

/* Director console pass: stronger post-login redesign. Login screen remains untouched. */
:root {
  --director-ink: #17202e;
  --director-ink-2: #243244;
  --director-muted: #69788c;
  --director-border: rgba(123, 145, 169, 0.26);
  --director-paper: rgba(255, 255, 255, 0.92);
  --director-porcelain: #f5f8f7;
  --director-jade: #0d8a7a;
  --director-blue: #2459a7;
  --director-cinnabar: #9a4437;
  --director-gold: #b78146;
  --director-shadow: 0 22px 58px rgba(25, 42, 62, 0.11);
  --director-shadow-soft: 0 12px 30px rgba(25, 42, 62, 0.075);
}

body.admin-logged-in {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.82) 0 28%, transparent 28% 100%),
    radial-gradient(circle at 86% 5%, rgba(183, 129, 70, 0.18), transparent 24%),
    radial-gradient(circle at 12% 20%, rgba(13, 138, 122, 0.15), transparent 28%),
    linear-gradient(180deg, #f8faf8 0%, #eef4f2 48%, #e7eef1 100%);
  color: var(--director-ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Heiti SC", system-ui, sans-serif;
}

.admin-shell:not(.logged-out) {
  grid-template-columns: 264px minmax(0, 1fr);
}

.admin-shell:not(.logged-out) .sidebar {
  padding: 22px 16px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 18%),
    radial-gradient(circle at 86% 8%, rgba(183, 129, 70, 0.2), transparent 20%),
    linear-gradient(180deg, #132033 0%, #0d1828 52%, #08111d 100%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.08),
    18px 0 46px rgba(14, 29, 48, 0.12);
}

.admin-shell:not(.logged-out) .sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 246, 224, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 246, 224, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.54), transparent 76%);
}

.admin-shell:not(.logged-out) .brand,
.admin-shell:not(.logged-out) .nav,
.admin-shell:not(.logged-out) .side-card {
  position: relative;
  z-index: 1;
}

.admin-shell:not(.logged-out) .brand {
  padding: 4px 6px 18px;
  border-bottom: 1px solid rgba(255, 246, 224, 0.1);
}

.admin-shell:not(.logged-out) .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 17px 11px 15px 12px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 233, 184, 0.32), transparent 30%),
    linear-gradient(145deg, #b45a43 0%, #8f382e 48%, #b78146 100%);
  box-shadow:
    0 18px 34px rgba(82, 36, 29, 0.28),
    inset 0 0 0 2px rgba(255, 238, 199, 0.16);
}

.admin-shell:not(.logged-out) .brand-name {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.admin-shell:not(.logged-out) .brand-sub {
  margin-top: 5px;
  color: rgba(245, 236, 219, 0.56);
}

.admin-shell:not(.logged-out) .nav {
  gap: 7px;
  padding: 2px 2px 2px 0;
}

.admin-shell:not(.logged-out) .nav-item {
  min-height: 42px;
  border-radius: 13px;
  color: rgba(235, 242, 247, 0.76);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.admin-shell:not(.logged-out) .nav-item::before {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-radius: 10px;
  color: rgba(255, 244, 220, 0.78);
  background: rgba(255, 255, 255, 0.07);
}

.admin-shell:not(.logged-out) .nav-item.active,
.admin-shell:not(.logged-out) .nav-item:hover {
  border-color: rgba(255, 246, 224, 0.16);
  background:
    linear-gradient(90deg, rgba(183, 129, 70, 0.22), transparent 100%),
    linear-gradient(90deg, rgba(36, 89, 167, 0.55), rgba(13, 138, 122, 0.22));
  box-shadow:
    inset 3px 0 0 #d6aa72,
    0 10px 22px rgba(7, 18, 31, 0.2);
}

.admin-shell:not(.logged-out) .side-card {
  padding: 18px;
  border-color: rgba(255, 246, 224, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    radial-gradient(circle at 80% 10%, rgba(183, 129, 70, 0.22), transparent 36%);
}

.admin-shell:not(.logged-out) .side-value {
  font-size: 34px;
}

.admin-shell:not(.logged-out) .main {
  position: relative;
  padding: 28px 34px 56px;
}

.admin-shell:not(.logged-out) .main::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 264px;
  height: 210px;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% -10%, rgba(36, 89, 167, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
}

.admin-shell:not(.logged-out) .topbar {
  min-height: 82px;
  padding: 16px 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 250, 0.76)),
    radial-gradient(circle at 96% 0%, rgba(183, 129, 70, 0.14), transparent 28%);
  box-shadow: var(--director-shadow-soft);
}

.admin-shell:not(.logged-out) .eyebrow {
  color: var(--director-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.admin-shell:not(.logged-out) .topbar h1,
.admin-shell:not(.logged-out) h1 {
  margin-top: 5px;
  color: var(--director-ink);
  font-size: 31px;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-shell:not(.logged-out) .top-actions {
  gap: 10px;
}

.admin-shell:not(.logged-out) .account-pill,
.admin-shell:not(.logged-out) .ghost-btn,
.admin-shell:not(.logged-out) .small-btn,
.admin-shell:not(.logged-out) .table-action-select {
  border-color: rgba(123, 145, 169, 0.3);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.admin-shell:not(.logged-out) .ghost-btn,
.admin-shell:not(.logged-out) .primary-btn {
  height: 36px;
  padding: 0 15px;
  border-radius: 12px;
  font-weight: 850;
}

.admin-shell:not(.logged-out) .primary-btn {
  border: 0;
  background: linear-gradient(135deg, #1f4f97 0%, #0d8a7a 82%);
  box-shadow: 0 16px 28px rgba(36, 89, 167, 0.18);
}

.admin-shell:not(.logged-out) .module-head,
.admin-shell:not(.logged-out) .panel,
.admin-shell:not(.logged-out) .table-wrap,
.admin-shell:not(.logged-out) .pagination-bar,
.admin-shell:not(.logged-out) .module-tabs,
.admin-shell:not(.logged-out) .school-card,
.admin-shell:not(.logged-out) .product-card,
.admin-shell:not(.logged-out) .agent-card,
.admin-shell:not(.logged-out) .knowledge-card,
.admin-shell:not(.logged-out) .knowledge-stat-card,
.admin-shell:not(.logged-out) .agent-performance-card,
.admin-shell:not(.logged-out) .launch-summary-card,
.admin-shell:not(.logged-out) .launch-check-card,
.admin-shell:not(.logged-out) .source-rule,
.admin-shell:not(.logged-out) .lead-panel,
.admin-shell:not(.logged-out) .knowledge-overview-panel,
.admin-shell:not(.logged-out) .launch-panel,
.admin-shell:not(.logged-out) .school-knowledge-panel,
.admin-shell:not(.logged-out) .support-head,
.admin-shell:not(.logged-out) .support-filter,
.admin-shell:not(.logged-out) .product-toolbar {
  border-color: var(--director-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 252, 251, 0.84));
  box-shadow: var(--director-shadow-soft);
}

.admin-shell:not(.logged-out) .module-head {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 22px 24px;
  margin-bottom: 18px;
  background:
    linear-gradient(115deg, rgba(20, 35, 55, 0.94) 0%, rgba(31, 79, 151, 0.86) 48%, rgba(13, 138, 122, 0.68) 100%);
}

.admin-shell:not(.logged-out) .module-head::before {
  display: none;
}

.admin-shell:not(.logged-out) .module-head::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -60px;
  width: 220px;
  height: 160px;
  border-radius: 999px;
  background: rgba(255, 244, 221, 0.13);
}

.admin-shell:not(.logged-out) .module-head h2,
.admin-shell:not(.logged-out) .module-head p,
.admin-shell:not(.logged-out) .module-head .module-actions {
  position: relative;
  z-index: 1;
}

.admin-shell:not(.logged-out) .module-head h2 {
  color: #fff8ec;
  font-size: 22px;
}

.admin-shell:not(.logged-out) .module-head p {
  max-width: 680px;
  color: rgba(246, 248, 249, 0.72);
}

.admin-shell:not(.logged-out) .module-head .ghost-btn,
.admin-shell:not(.logged-out) .module-head .primary-btn {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff8ec;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.admin-shell:not(.logged-out) .panel {
  padding: 22px;
}

.admin-shell:not(.logged-out) .panel-head h2 {
  font-size: 18px;
}

.admin-shell:not(.logged-out) .panel p,
.admin-shell:not(.logged-out) .panel-head p,
.admin-shell:not(.logged-out) .module-head p {
  line-height: 1.7;
}

.admin-shell:not(.logged-out) .module-tabs {
  display: flex;
  width: fit-content;
  gap: 6px;
  padding: 7px;
  margin: 0 0 18px;
  border-radius: 16px;
}

.admin-shell:not(.logged-out) .module-tab {
  min-height: 36px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13px;
}

.admin-shell:not(.logged-out) .module-tab.active {
  background: linear-gradient(135deg, #1f4f97, #0d8a7a);
  box-shadow: 0 14px 28px rgba(36, 89, 167, 0.17);
}

.admin-shell:not(.logged-out) .dashboard-report {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: transparent;
  box-shadow: none;
}

.admin-shell:not(.logged-out) .report-titlebar {
  min-height: 188px;
  align-items: flex-start;
  padding: 30px 32px 70px;
  border: 0;
  border-radius: 26px;
  color: #fff8ec;
  background:
    radial-gradient(circle at 86% 12%, rgba(214, 170, 114, 0.34), transparent 27%),
    linear-gradient(120deg, #142337 0%, #1f4f97 52%, #0d8a7a 128%);
  box-shadow: var(--director-shadow);
}

.admin-shell:not(.logged-out) .report-titlebar::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: 22px;
  width: 260px;
  height: 92px;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 999px 999px 0 0;
  opacity: 0.58;
}

.admin-shell:not(.logged-out) .report-kicker {
  color: #d8b17c;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.admin-shell:not(.logged-out) .report-titlebar h2 {
  margin-top: 8px;
  color: #fff8ec;
  font-size: 30px;
  line-height: 1.1;
}

.admin-shell:not(.logged-out) .report-titlebar p {
  max-width: 620px;
  margin-top: 10px;
  color: rgba(255, 248, 236, 0.72);
}

.admin-shell:not(.logged-out) .report-date {
  min-width: 152px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 248, 236, 0.28);
  border-radius: 18px;
  color: rgba(255, 248, 236, 0.7);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.admin-shell:not(.logged-out) .report-date strong {
  margin-top: 6px;
  color: #ffffff;
  font-size: 20px;
}

.admin-shell:not(.logged-out) .report-hero-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 22px;
  margin-top: -48px;
  background: transparent;
}

.admin-shell:not(.logged-out) .report-hero-card {
  min-height: 132px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 251, 0.9));
  box-shadow: var(--director-shadow);
}

.admin-shell:not(.logged-out) .report-hero-card::after {
  width: 116px;
  height: 116px;
  opacity: 0.78;
}

.admin-shell:not(.logged-out) .report-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(29, 55, 82, 0.16);
}

.admin-shell:not(.logged-out) .report-hero-card strong {
  margin-top: 8px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.admin-shell:not(.logged-out) .report-hero-card span {
  color: var(--director-ink-2);
  font-weight: 900;
}

.admin-shell:not(.logged-out) .report-hero-card small {
  color: var(--director-muted);
}

.admin-shell:not(.logged-out) .report-sheet {
  display: grid;
  gap: 10px;
  padding: 22px;
  margin-top: 18px;
  border: 1px solid var(--director-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--director-shadow-soft);
}

.admin-shell:not(.logged-out) .report-row {
  grid-template-columns: 124px minmax(150px, 1fr) minmax(120px, 0.52fr) minmax(240px, 1.35fr) 104px;
  min-width: 900px;
  overflow: hidden;
  border: 1px solid rgba(123, 145, 169, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-shell:not(.logged-out) .report-head {
  border: 0;
  color: #f8efe2;
  background: linear-gradient(90deg, #1a2c44, #204f83);
}

.admin-shell:not(.logged-out) .report-row > span,
.admin-shell:not(.logged-out) .report-row > div {
  min-height: 48px;
  border-right-color: rgba(123, 145, 169, 0.15);
}

.admin-shell:not(.logged-out) .report-module {
  background: rgba(36, 89, 167, 0.08);
}

.admin-shell:not(.logged-out) .report-row-action {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-shell:not(.logged-out) .report-row-action:hover {
  border-color: rgba(36, 89, 167, 0.28);
  box-shadow: 0 14px 28px rgba(25, 42, 62, 0.08);
  transform: translateY(-1px);
}

.admin-shell:not(.logged-out) .report-action-btn {
  color: #7a4b22;
  border-color: rgba(183, 129, 70, 0.34);
  background: rgba(255, 247, 233, 0.9);
}

.admin-shell:not(.logged-out) .question-form,
.admin-shell:not(.logged-out) .filter-bar,
.admin-shell:not(.logged-out) .school-filter-bar,
.admin-shell:not(.logged-out) .support-filter {
  gap: 14px;
}

.admin-shell:not(.logged-out) .question-form input,
.admin-shell:not(.logged-out) .question-form select,
.admin-shell:not(.logged-out) .support-filter input,
.admin-shell:not(.logged-out) .support-filter select,
.admin-shell:not(.logged-out) .school-filter-bar input,
.admin-shell:not(.logged-out) .school-filter-bar select,
.admin-shell:not(.logged-out) .operator-grid input,
.admin-shell:not(.logged-out) .operator-grid select,
.admin-shell:not(.logged-out) .filter-bar input,
.admin-shell:not(.logged-out) .filter-bar select,
.admin-shell:not(.logged-out) .drawer-panel input,
.admin-shell:not(.logged-out) .drawer-panel select,
.admin-shell:not(.logged-out) .school-editor-panel input,
.admin-shell:not(.logged-out) .school-editor-panel select,
.admin-shell:not(.logged-out) .question-form textarea,
.admin-shell:not(.logged-out) .operator-grid textarea,
.admin-shell:not(.logged-out) .drawer-panel textarea,
.admin-shell:not(.logged-out) .school-editor-panel textarea,
.admin-shell:not(.logged-out) .import-box {
  border-color: rgba(123, 145, 169, 0.32);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
}

.admin-shell:not(.logged-out) .table-wrap {
  overflow: auto;
  border-radius: 20px;
}

.admin-shell:not(.logged-out) table {
  font-size: 12.5px;
}

.admin-shell:not(.logged-out) th {
  color: #f7efe3;
  background: linear-gradient(90deg, #182a42, #214e7f);
}

.admin-shell:not(.logged-out) th,
.admin-shell:not(.logged-out) td {
  padding: 12px 14px;
}

.admin-shell:not(.logged-out) tbody tr:nth-child(even) {
  background: rgba(247, 250, 250, 0.64);
}

.admin-shell:not(.logged-out) tbody tr:hover {
  background: rgba(232, 243, 242, 0.86);
}

.admin-shell:not(.logged-out) .drawer-panel,
.admin-shell:not(.logged-out) .school-editor-panel {
  border-radius: 24px;
  box-shadow: 0 42px 100px rgba(15, 27, 43, 0.32);
}

.admin-shell:not(.logged-out) .school-editor-panel {
  inset: 28px 30px 28px 292px;
}

@media (max-width: 1280px) {
  .admin-shell:not(.logged-out) {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .admin-shell:not(.logged-out) .main::before {
    left: 236px;
  }

  .admin-shell:not(.logged-out) .report-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell:not(.logged-out) .school-editor-panel {
    inset: 24px;
  }
}

@media (max-width: 1080px) {
  .admin-shell:not(.logged-out) .main::before {
    left: 0;
  }

  .admin-shell:not(.logged-out) .report-titlebar {
    padding-bottom: 78px;
  }
}

@media (max-width: 720px) {
  .admin-shell:not(.logged-out) .topbar,
  .admin-shell:not(.logged-out) .report-titlebar {
    border-radius: 18px;
  }

  .admin-shell:not(.logged-out) .topbar h1,
  .admin-shell:not(.logged-out) h1,
  .admin-shell:not(.logged-out) .report-titlebar h2 {
    font-size: 24px;
  }

  .admin-shell:not(.logged-out) .report-hero-grid {
    grid-template-columns: 1fr;
    margin-top: -42px;
  }
}

/* Data overview charts for dashboard and question operations. */
.admin-shell:not(.logged-out) .insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.72fr);
  gap: 22px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid {
  position: relative;
  z-index: 3;
  padding: 0 22px;
  margin: -38px 0 18px;
}

.admin-shell:not(.logged-out) .question-insight-grid {
  margin: 0 0 18px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid + .report-hero-grid {
  margin-top: 0;
}

.admin-shell:not(.logged-out) .insight-card {
  min-height: 286px;
  padding: 20px 22px 18px;
  border: 1px solid rgba(123, 145, 169, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 253, 253, 0.9));
  box-shadow:
    0 24px 64px rgba(24, 42, 63, 0.105),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.admin-shell:not(.logged-out) .insight-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-shell:not(.logged-out) .insight-card-head h3 {
  margin: 0;
  color: #121a27;
  font-size: 22px;
  line-height: 1.16;
  font-weight: 950;
}

.admin-shell:not(.logged-out) .insight-card-head p {
  margin: 8px 0 0;
  color: #718096;
  font-size: 13px;
  line-height: 1.5;
}

.admin-shell:not(.logged-out) .insight-card-head > span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(36, 89, 167, 0.14);
  border-radius: 999px;
  color: #2459a7;
  background: rgba(36, 89, 167, 0.06);
  font-size: 12px;
  font-weight: 900;
}

.admin-shell:not(.logged-out) .trend-plot {
  width: 100%;
  min-height: 196px;
}

.admin-shell:not(.logged-out) .trend-plot svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.admin-shell:not(.logged-out) .trend-grid-line {
  stroke: rgba(123, 145, 169, 0.18);
  stroke-dasharray: 6 8;
}

.admin-shell:not(.logged-out) .trend-axis-label,
.admin-shell:not(.logged-out) .trend-axis-title {
  fill: #6f7781;
  font-size: 15px;
  font-weight: 650;
}

.admin-shell:not(.logged-out) .trend-axis-title {
  fill: #8792a2;
  font-size: 13px;
}

.admin-shell:not(.logged-out) .trend-area.revenue {
  fill: url(#dashboardRevenueArea);
}

.admin-shell:not(.logged-out) .trend-bar {
  stroke-width: 8;
  stroke-linecap: round;
}

.admin-shell:not(.logged-out) .trend-bar.revenue {
  stroke: #2563eb;
}

.admin-shell:not(.logged-out) .trend-bar.paid {
  stroke: #b78146;
}

.admin-shell:not(.logged-out) .trend-bar.users {
  stroke: #34b892;
}

.admin-shell:not(.logged-out) .trend-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-shell:not(.logged-out) .trend-line.revenue,
.admin-shell:not(.logged-out) .trend-dot.revenue {
  stroke: #2563eb;
  fill: #2563eb;
}

.admin-shell:not(.logged-out) .trend-line.paid,
.admin-shell:not(.logged-out) .trend-dot.paid {
  stroke: #b78146;
  fill: #b78146;
}

.admin-shell:not(.logged-out) .trend-line.users,
.admin-shell:not(.logged-out) .trend-dot.users {
  stroke: #34b892;
  fill: #34b892;
}

.admin-shell:not(.logged-out) .trend-dot {
  stroke-width: 2;
  stroke: #ffffff;
}

.admin-shell:not(.logged-out) .trend-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: #1d2938;
  font-size: 14px;
  font-weight: 850;
}

.admin-shell:not(.logged-out) .trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-shell:not(.logged-out) .trend-legend i,
.admin-shell:not(.logged-out) .donut-legend-item i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.admin-shell:not(.logged-out) .trend-legend i.revenue {
  background: #2563eb;
}

.admin-shell:not(.logged-out) .trend-legend i.paid {
  background: #b78146;
}

.admin-shell:not(.logged-out) .trend-legend i.users {
  background: #34b892;
}

.admin-shell:not(.logged-out) .donut-card {
  display: grid;
  align-content: start;
}

.admin-shell:not(.logged-out) .donut-wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .donut-wrap {
  justify-items: stretch;
}

.admin-shell:not(.logged-out) .conversion-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-shell:not(.logged-out) .conversion-stat {
  min-height: 90px;
  padding: 15px;
  border: 1px solid rgba(123, 145, 169, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.72);
}

.admin-shell:not(.logged-out) .conversion-stat.primary {
  background:
    radial-gradient(circle at 88% 12%, rgba(52, 184, 146, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 250, 0.78));
}

.admin-shell:not(.logged-out) .conversion-stat span,
.admin-shell:not(.logged-out) .conversion-stat small {
  display: block;
  color: #718096;
  font-size: 12px;
  font-weight: 800;
}

.admin-shell:not(.logged-out) .conversion-stat strong {
  display: block;
  margin: 7px 0 5px;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid {
  gap: 14px;
  margin: -20px 0 12px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .insight-card {
  min-height: 112px;
  padding: 9px 14px 8px;
  border-radius: 16px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .insight-card-head {
  align-items: center;
  margin-bottom: 2px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .insight-card-head h3 {
  font-size: 16px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .insight-card-head p {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.25;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .insight-card-head > span {
  padding: 4px 8px;
  font-size: 10px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .trend-plot {
  min-height: 68px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .trend-axis-label,
.admin-shell:not(.logged-out) .dashboard-insight-grid .trend-axis-title {
  font-size: 10px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .trend-bar {
  stroke-width: 5;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .trend-legend {
  gap: 12px;
  margin-top: 0;
  font-size: 10px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .trend-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .conversion-stat-grid {
  gap: 6px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .conversion-stat {
  min-height: 42px;
  padding: 7px 8px;
  border-radius: 10px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .conversion-stat span,
.admin-shell:not(.logged-out) .dashboard-insight-grid .conversion-stat small {
  font-size: 9px;
}

.admin-shell:not(.logged-out) .dashboard-insight-grid .conversion-stat strong {
  margin: 2px 0 1px;
  font-size: 17px;
}

.admin-shell:not(.logged-out) .donut-visual {
  position: relative;
  width: min(260px, 82%);
  aspect-ratio: 1;
}

.admin-shell:not(.logged-out) .donut-visual svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.admin-shell:not(.logged-out) .donut-base,
.admin-shell:not(.logged-out) .donut-segment {
  fill: none;
  stroke-width: 18;
}

.admin-shell:not(.logged-out) .donut-base {
  stroke: rgba(226, 232, 240, 0.86);
}

.admin-shell:not(.logged-out) .donut-segment {
  stroke-linecap: butt;
}

.admin-shell:not(.logged-out) .donut-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 4px;
}

.admin-shell:not(.logged-out) .donut-center strong {
  color: #121a27;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.admin-shell:not(.logged-out) .donut-center span {
  color: #6f7781;
  font-size: 15px;
}

.admin-shell:not(.logged-out) .donut-legend {
  width: 100%;
  display: grid;
  gap: 10px;
}

.admin-shell:not(.logged-out) .donut-legend-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #536174;
  font-size: 13px;
}

.admin-shell:not(.logged-out) .donut-legend-item strong {
  color: #17202e;
  font-size: 14px;
}

.admin-shell:not(.logged-out) .donut-empty {
  width: min(240px, 82%);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 18px solid rgba(226, 232, 240, 0.86);
  border-radius: 50%;
  color: #718096;
}

.admin-shell:not(.logged-out) .donut-empty strong {
  color: #17202e;
  font-size: 24px;
}

.admin-shell:not(.logged-out) .knowledge-bars {
  display: grid;
  gap: 9px;
}

.admin-shell:not(.logged-out) .knowledge-bar-row {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 38px minmax(110px, 0.78fr) minmax(180px, 1.4fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 0 0;
  border: 0;
  color: #1f2937;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-shell:not(.logged-out) .knowledge-rank {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: #2459a7;
  background: rgba(37, 99, 235, 0.08);
  font-size: 12px;
  font-weight: 950;
}

.admin-shell:not(.logged-out) .knowledge-bar-name {
  overflow: hidden;
  color: #1f2937;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-shell:not(.logged-out) .knowledge-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
}

.admin-shell:not(.logged-out) .knowledge-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #34b892);
}

.admin-shell:not(.logged-out) .knowledge-bar-row strong {
  color: #111827;
  font-size: 13px;
  text-align: right;
}

.admin-shell:not(.logged-out) .knowledge-bar-row:hover .knowledge-bar-name {
  color: #2459a7;
}

@media (max-width: 1180px) {
  .admin-shell:not(.logged-out) .insight-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell:not(.logged-out) .donut-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .admin-shell:not(.logged-out) .dashboard-insight-grid {
    padding: 0 14px;
  }

  .admin-shell:not(.logged-out) .insight-card {
    padding: 18px;
    border-radius: 18px;
  }

  .admin-shell:not(.logged-out) .knowledge-bar-row {
    grid-template-columns: 32px minmax(0, 1fr) 54px;
  }

  .admin-shell:not(.logged-out) .knowledge-bar-track {
    grid-column: 2 / -1;
  }
}

.panel-tab[data-panel-view="imports:review"].active {
  display: block;
}

.panel-tab[data-panel-view="imports:review"] .product-grid {
  min-height: 0;
}

/* Premium command-center treatment for the dashboard. */
.admin-shell:not(.logged-out) #dashboard .dashboard-report {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(202, 170, 116, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px),
    linear-gradient(145deg, #19110f 0%, #241816 42%, #151d1d 100%);
  box-shadow:
    0 28px 80px rgba(20, 24, 30, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-shell:not(.logged-out) #dashboard .dashboard-report::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(220, 177, 106, 0.08), transparent 34%, rgba(42, 153, 138, 0.08)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 32px);
}

.admin-shell:not(.logged-out) #dashboard .dashboard-report > * {
  position: relative;
  z-index: 1;
}

.admin-shell:not(.logged-out) #dashboard .report-titlebar {
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(226, 203, 164, 0.16);
  background: transparent;
}

.admin-shell:not(.logged-out) #dashboard .report-kicker {
  color: rgba(225, 184, 115, 0.92);
  letter-spacing: 0.18em;
}

.admin-shell:not(.logged-out) #dashboard .report-titlebar h2 {
  color: #fff8ec;
  font-size: 28px;
  letter-spacing: 0;
}

.admin-shell:not(.logged-out) #dashboard .report-titlebar p {
  max-width: 720px;
  color: rgba(246, 239, 226, 0.62);
}

.admin-shell:not(.logged-out) #dashboard .report-date {
  min-width: 150px;
  border-color: rgba(226, 203, 164, 0.18);
  color: #fff8ec;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-shell:not(.logged-out) #dashboard .report-date span {
  color: rgba(246, 239, 226, 0.56);
}

.admin-shell:not(.logged-out) #dashboard .report-date strong {
  color: #fff8ec;
}

.admin-shell:not(.logged-out) #dashboard .report-hero-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px 10px;
  border-bottom: 0;
  background: transparent;
}

.admin-shell:not(.logged-out) #dashboard .report-hero-card {
  min-height: 118px;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  border-color: rgba(226, 203, 164, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-shell:not(.logged-out) #dashboard .report-hero-card::after {
  display: none;
}

.admin-shell:not(.logged-out) #dashboard .report-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.admin-shell:not(.logged-out) #dashboard .report-hero-card span,
.admin-shell:not(.logged-out) #dashboard .report-hero-card small {
  color: rgba(246, 239, 226, 0.58);
}

.admin-shell:not(.logged-out) #dashboard .report-hero-card strong {
  color: #fff8ec;
  font-size: 25px;
}

.admin-shell:not(.logged-out) #dashboard .report-hero-card.tone-blue .report-hero-icon {
  background: linear-gradient(135deg, #f4bd67, #ad6b2d);
}

.admin-shell:not(.logged-out) #dashboard .report-hero-card.tone-teal .report-hero-icon {
  background: linear-gradient(135deg, #45d2be, #176e67);
}

.admin-shell:not(.logged-out) #dashboard .report-hero-card.tone-violet .report-hero-icon {
  background: linear-gradient(135deg, #a891ff, #6c4dd3);
}

.admin-shell:not(.logged-out) #dashboard .report-hero-card.tone-amber .report-hero-icon {
  background: linear-gradient(135deg, #ff8065, #b3382f);
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.78fr);
  gap: 16px;
  margin: 0;
  padding: 12px 22px 18px;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .insight-card {
  min-height: 272px;
  padding: 18px;
  border: 1px solid rgba(226, 203, 164, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.042)),
    rgba(5, 10, 12, 0.18);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .insight-card-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .insight-card-head h3 {
  color: #fff8ec;
  font-size: 20px;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .insight-card-head p {
  color: rgba(246, 239, 226, 0.54);
  font-size: 12px;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .insight-card-head > span {
  border-color: rgba(244, 189, 103, 0.2);
  color: #f4c477;
  background: rgba(244, 189, 103, 0.09);
  font-size: 12px;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .trend-plot {
  min-height: 168px;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .trend-grid-line {
  stroke: rgba(255, 255, 255, 0.09);
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .trend-axis-label,
.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .trend-axis-title {
  fill: rgba(246, 239, 226, 0.56);
  font-size: 11px;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .trend-bar {
  stroke-width: 8;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .trend-bar.revenue,
.admin-shell:not(.logged-out) #dashboard .trend-legend i.revenue {
  stroke: #f4bd67;
  background: #f4bd67;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .trend-bar.paid,
.admin-shell:not(.logged-out) #dashboard .trend-legend i.paid {
  stroke: #ff7a8a;
  background: #ff7a8a;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .trend-bar.users,
.admin-shell:not(.logged-out) #dashboard .trend-legend i.users {
  stroke: #45d2be;
  background: #45d2be;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .trend-legend {
  justify-content: flex-start;
  color: rgba(246, 239, 226, 0.72);
  font-size: 12px;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .conversion-stat-grid {
  gap: 10px;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .conversion-stat {
  min-height: 94px;
  border-color: rgba(226, 203, 164, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.036)),
    rgba(255, 255, 255, 0.035);
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .conversion-stat.primary {
  background:
    linear-gradient(145deg, rgba(69, 210, 190, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .conversion-stat span,
.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .conversion-stat small {
  color: rgba(246, 239, 226, 0.56);
  font-size: 11px;
}

.admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid .conversion-stat strong {
  margin: 6px 0 4px;
  color: #fff8ec;
  font-size: 25px;
}

.admin-shell:not(.logged-out) #dashboard .report-sheet {
  margin: 0 22px 22px;
  overflow: hidden;
  border: 1px solid rgba(226, 203, 164, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.046);
}

.admin-shell:not(.logged-out) #dashboard .report-head {
  color: rgba(246, 239, 226, 0.58);
  background: rgba(255, 255, 255, 0.06);
}

.admin-shell:not(.logged-out) #dashboard .report-row {
  border-bottom-color: rgba(255, 255, 255, 0.075);
}

.admin-shell:not(.logged-out) #dashboard .report-row:not(.report-head) {
  background: rgba(255, 255, 255, 0.034);
}

.admin-shell:not(.logged-out) #dashboard .report-row:not(.report-head):nth-child(even) {
  background: rgba(255, 255, 255, 0.052);
}

.admin-shell:not(.logged-out) #dashboard .report-row > span,
.admin-shell:not(.logged-out) #dashboard .report-row > div {
  border-right-color: rgba(255, 255, 255, 0.075);
  background: transparent;
}

.admin-shell:not(.logged-out) #dashboard .report-module {
  color: #f6d18f;
  background: rgba(244, 189, 103, 0.08);
}

.admin-shell:not(.logged-out) #dashboard .report-module::before {
  color: #251a14;
  background: #f4bd67;
}

.admin-shell:not(.logged-out) #dashboard .report-module-teal {
  color: #7be3d5;
  background: rgba(69, 210, 190, 0.09);
}

.admin-shell:not(.logged-out) #dashboard .report-module-teal::before {
  background: #45d2be;
}

.admin-shell:not(.logged-out) #dashboard .report-module-amber {
  color: #f6d18f;
  background: rgba(244, 189, 103, 0.09);
}

.admin-shell:not(.logged-out) #dashboard .report-module-violet {
  color: #c8b8ff;
  background: rgba(168, 145, 255, 0.09);
}

.admin-shell:not(.logged-out) #dashboard .report-module-violet::before {
  background: #a891ff;
}

.admin-shell:not(.logged-out) #dashboard .report-name,
.admin-shell:not(.logged-out) #dashboard .report-value {
  color: #fff8ec;
}

.admin-shell:not(.logged-out) #dashboard .report-note {
  color: rgba(246, 239, 226, 0.58);
}

.admin-shell:not(.logged-out) #dashboard .report-row-action {
  cursor: pointer;
}

.admin-shell:not(.logged-out) #dashboard .report-row-action:hover {
  background: rgba(255, 255, 255, 0.055);
}

.admin-shell:not(.logged-out) #dashboard .report-action-btn {
  border-color: rgba(244, 189, 103, 0.24);
  color: #f4c477;
  background: rgba(244, 189, 103, 0.08);
}

@media (max-width: 1180px) {
  .admin-shell:not(.logged-out) #dashboard .report-hero-grid,
  .admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell:not(.logged-out) #dashboard .trend-card,
  .admin-shell:not(.logged-out) #dashboard .donut-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .admin-shell:not(.logged-out) #dashboard .report-titlebar {
    display: grid;
  }

  .admin-shell:not(.logged-out) #dashboard .report-hero-grid,
  .admin-shell:not(.logged-out) #dashboard .dashboard-insight-grid {
    grid-template-columns: 1fr;
    padding-left: 14px;
    padding-right: 14px;
  }

  .admin-shell:not(.logged-out) #dashboard .report-sheet {
    margin-left: 14px;
    margin-right: 14px;
  }
}

.admin-shell:not(.logged-out) .import-review-hero {
  padding: 18px;
  border-color: rgba(198, 211, 226, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.94)),
    #fff;
}

.admin-shell:not(.logged-out) .import-review-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 12px;
}

.admin-shell:not(.logged-out) .import-review-stats article {
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgba(213, 223, 235, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.admin-shell:not(.logged-out) .import-review-stats span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.admin-shell:not(.logged-out) .import-review-stats strong {
  display: block;
  margin-top: 4px;
  color: #162033;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.admin-shell:not(.logged-out) .import-review-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(150px, 0.62fr) minmax(170px, 0.7fr) auto;
  align-items: end;
  gap: 10px;
}

.admin-shell:not(.logged-out) .import-review-toolbar label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.admin-shell:not(.logged-out) .import-review-toolbar input[type="search"],
.admin-shell:not(.logged-out) .import-review-toolbar select {
  height: 38px;
  min-width: 0;
  border: 1px solid rgba(202, 215, 231, 0.92);
  border-radius: 10px;
  color: #142033;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.admin-shell:not(.logged-out) .import-review-toolbar input[type="search"] {
  padding: 0 12px;
}

.admin-shell:not(.logged-out) .import-review-toolbar select {
  padding: 0 10px;
}

.admin-shell:not(.logged-out) .import-review-toolbar input:focus,
.admin-shell:not(.logged-out) .import-review-toolbar select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.admin-shell:not(.logged-out) .import-review-check {
  min-height: 38px;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(202, 215, 231, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.admin-shell:not(.logged-out) .import-review-check input {
  width: 15px;
  height: 15px;
  accent-color: #2563eb;
}

.admin-shell:not(.logged-out) .import-review-count {
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.admin-shell:not(.logged-out) .field-hint {
  display: block;
  margin-top: 6px;
  color: #6b7a90;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.admin-shell:not(.logged-out),
.admin-shell:not(.logged-out) .main,
.admin-shell:not(.logged-out) .view,
.admin-shell:not(.logged-out) .panel-tab,
.admin-shell:not(.logged-out) .panel,
.admin-shell:not(.logged-out) .module-head,
.admin-shell:not(.logged-out) .panel-head,
.admin-shell:not(.logged-out) .product-grid,
.admin-shell:not(.logged-out) .product-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-shell:not(.logged-out) .main {
  overflow-x: hidden;
}

.admin-shell:not(.logged-out) .review-section {
  margin-top: 14px;
}

.admin-shell:not(.logged-out) .review-batch-grid,
.admin-shell:not(.logged-out) .review-job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-shell:not(.logged-out) .review-job-card {
  min-width: 0;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.admin-shell:not(.logged-out) .review-job-card.priority-review {
  border: 1px solid rgba(166, 58, 46, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 247, 245, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 34px rgba(166, 58, 46, 0.12);
}

.admin-shell:not(.logged-out) .review-job-card.priority-review .meta-list div:last-child,
.admin-shell:not(.logged-out) .review-job-card.priority-review .source-preview {
  border-color: rgba(166, 58, 46, 0.24);
  background: rgba(255, 247, 245, 0.9);
}

.admin-shell:not(.logged-out) .review-job-card.priority-review .meta-list div:last-child strong {
  color: #9b3428;
}

.admin-shell:not(.logged-out) .review-job-card .card-top > div,
.admin-shell:not(.logged-out) .review-job-card .meta-list,
.admin-shell:not(.logged-out) .review-question-card .question-import-focus {
  min-width: 0;
}

.admin-shell:not(.logged-out) .review-job-card .card-top {
  align-items: flex-start;
  margin-bottom: 10px;
}

.admin-shell:not(.logged-out) .review-job-card h2 {
  font-size: 15px;
  line-height: 1.35;
}

.admin-shell:not(.logged-out) .review-question-card .question-import-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
}

.admin-shell:not(.logged-out) .review-question-card .question-import-focus span,
.admin-shell:not(.logged-out) .review-question-card .question-import-focus strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-shell:not(.logged-out) .review-question-card .question-import-focus span {
  flex: 0 0 auto;
}

.admin-shell:not(.logged-out) .review-question-card .question-import-focus strong {
  flex: 1 1 auto;
  font-size: 13px;
}

.admin-shell:not(.logged-out) .review-job-card p {
  margin-top: 4px;
  font-size: 12px;
}

.admin-shell:not(.logged-out) .review-job-card .meta-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 10px;
}

.admin-shell:not(.logged-out) .review-job-card .meta-list div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.86);
}

.admin-shell:not(.logged-out) .review-job-card .meta-list span,
.admin-shell:not(.logged-out) .review-job-card .meta-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-shell:not(.logged-out) .review-job-card .meta-list span {
  color: #718096;
  font-size: 11px;
}

.admin-shell:not(.logged-out) .review-job-card .meta-list strong {
  color: #233044;
  font-size: 12px;
}

.admin-shell:not(.logged-out) .review-job-card .source-preview {
  max-height: 96px;
  margin-top: 10px;
  padding: 10px 12px;
  overflow: auto;
  border-radius: 10px;
  color: #526173;
  background: rgba(248, 250, 252, 0.92);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
}

.admin-shell:not(.logged-out) .review-job-card .product-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.admin-shell:not(.logged-out) .review-job-grid .empty-card,
.admin-shell:not(.logged-out) .review-batch-grid .empty-card {
  min-height: 74px;
}

@media (max-width: 1180px) {
  .admin-shell:not(.logged-out) .import-review-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .admin-shell:not(.logged-out) .review-batch-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell:not(.logged-out) .review-job-card .meta-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-shell:not(.logged-out) .import-review-stats,
  .admin-shell:not(.logged-out) .import-review-toolbar,
  .admin-shell:not(.logged-out) .review-job-card .meta-list {
    grid-template-columns: 1fr;
  }
}

.live-refresh-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(198, 151, 75, 0.3);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(198, 151, 75, 0.16), rgba(35, 48, 54, 0.88)),
    rgba(21, 28, 33, 0.78);
  box-shadow: 0 16px 40px rgba(8, 14, 18, 0.18);
}

.live-refresh-notice[hidden] {
  display: none;
}

.live-refresh-notice strong {
  display: block;
  color: #f6ead5;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
}

.live-refresh-notice span {
  display: block;
  margin-top: 3px;
  color: rgba(246, 234, 213, 0.7);
  font-size: 12px;
  line-height: 1.55;
}

.live-refresh-notice .small-btn {
  flex: 0 0 auto;
  border-color: rgba(198, 151, 75, 0.34);
  color: #f8ead2;
  background: rgba(198, 151, 75, 0.14);
}

@media (max-width: 720px) {
  .live-refresh-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .live-refresh-notice .small-btn {
    width: 100%;
  }
}
