:root {
  --c-bg: #f4f7fb;
  --c-surface: #fff;
  --c-surface-alt: #f7f9fc;
  --c-surface-soft: #f2f5f9;
  --c-border: #d7e0ea;
  --c-border-light: #e6ecf3;
  --c-border-strong: #c6d1dd;
  --c-text-1: #111827;
  --c-text-2: #344054;
  --c-text-3: #667085;
  --c-text-4: #98a2b3;
  --c-primary: #162033;
  --c-primary-hover: #0f1728;
  --c-primary-light: #16203314;
  --c-primary-subtle: #f1f5f9;
  --c-danger: #b9383c;
  --c-danger-light: #fcf1f2;
  --c-warning: #b7791f;
  --c-warning-light: #fdf8ed;
  --c-success: #1f7a52;
  --c-success-light: #eef7f1;
  --c-info: #315ccf;
  --c-info-light: #eef3ff;
  --c-accent: #2f4f88;
  --c-accent-light: #2f4f881f;
  --c-bg-4: #e5edf6;
  --sidebar-bg: #0f172a;
  --sidebar-text: #9aa8bf;
  --sidebar-text-active: #f8fbff;
  --sidebar-hover: #94a3b814;
  --sidebar-active: #455ea742;
  --sidebar-w: 228px;
  --sidebar-w-collapsed: 64px;
  --header-h: 60px;
  --radius-sm: 4px;
  --radius: 7px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px #0f172a08;
  --shadow: 0 4px 10px #0f172a0a;
  --shadow-md: 0 14px 32px #0f172a0f;
  --shadow-lg: 0 28px 60px #0f172a14;
  --font: "Avenir Next", "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", monospace;
}

*, :before, :after {
  box-sizing: border-box;
  margin: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

body {
  font-family: var(--font);
  color: var(--c-text-1);
  background: radial-gradient(circle at 100% 0, #2f4f880d, #0000 22%), radial-gradient(circle at 0 100%, #11182709, #0000 20%), linear-gradient(#f7f9fc 0%, #eef3f9 100%);
  line-height: 1.6;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}

a:hover {
  color: #203961;
}

code {
  font-family: var(--mono);
  background: var(--c-surface-alt);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: .9em;
}

.admin-shell {
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  position: relative;
}

.admin-watermark {
  z-index: 24;
  pointer-events: none;
  padding: 96px 42px 42px calc(var(--sidebar-w) + 40px);
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  align-content: center;
  justify-items: center;
  gap: 84px 48px;
  display: grid;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.admin-watermark-item {
  letter-spacing: .08em;
  color: #3440541a;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(-24deg);
}

.admin-sidebar {
  width: var(--sidebar-w);
  color: var(--sidebar-text);
  z-index: 50;
  background: radial-gradient(circle at 0 0, #6389ff1a, #0000 26%), linear-gradient(#12192a 0%, #0f1728 100%);
  flex-direction: column;
  transition: width .2s;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  box-shadow: inset -1px 0 #94a3b81f;
}

.sidebar-brand {
  color: #fff;
  letter-spacing: -.03em;
  border-bottom: 1px solid #94a3b824;
  align-items: center;
  height: 60px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 650;
  display: flex;
}

.sidebar-brand span {
  color: #7fb3ff;
  margin-right: 8px;
  font-size: 10px;
}

.sidebar-nav {
  flex: 1;
  padding: 18px 10px;
  overflow-y: auto;
}

.nav-item {
  color: var(--sidebar-text);
  border: 1px solid #0000;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 550;
  transition: all .15s;
  display: flex;
  position: relative;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
  border-color: #94a3b814;
}

.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-active);
  border-color: #60a5fa2e;
  box-shadow: inset 2px 0 #7fb3ff;
}

.nav-item.disabled {
  opacity: .42;
  cursor: not-allowed;
}

.nav-item.disabled:hover {
  color: var(--sidebar-text);
  background: none;
}

.nav-icon {
  color: #e2e8f09e;
  opacity: 1;
  flex: 0 0 20px;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  transition: color .15s, transform .15s;
  display: inline-flex;
}

.nav-icon svg {
  stroke: currentColor;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
}

.nav-icon .icon-accent {
  fill: currentColor;
  opacity: .16;
  stroke: none;
}

.nav-item:hover .nav-icon {
  color: #e9f0ffe6;
  transform: translateY(-.5px);
}

.nav-item.active .nav-icon {
  color: #c7ddff;
}

.nav-item.active .nav-icon .icon-accent {
  opacity: .24;
}

.sidebar-section {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #94a3b870;
  padding: 18px 14px 8px;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-footer {
  border-top: 1px solid #94a3b824;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.admin-main {
  margin-left: var(--sidebar-w);
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  display: flex;
}

.admin-header {
  height: var(--header-h);
  border-bottom: 1px solid var(--c-border);
  z-index: 40;
  backdrop-filter: blur(12px);
  background: #f8fafcd6;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  display: flex;
  position: sticky;
  top: 0;
}

.admin-header-left {
  align-items: center;
  gap: 8px;
  display: flex;
}

.admin-header-right {
  align-items: center;
  gap: 16px;
  display: flex;
}

.admin-content {
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 34px 36px 60px;
  position: relative;
}

.admin-content.is-routing {
  min-height: calc(100vh - var(--header-h));
}

.admin-pane-progress {
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(90deg, #2c5cb700, #2c5cb7f2, #2c5cb700);
  border-radius: 999px;
  width: 100%;
  height: 3px;
  animation: 1.1s ease-in-out infinite admin-pane-progress;
  position: sticky;
  top: 12px;
  left: 0;
  box-shadow: 0 10px 26px #2c5cb72e;
}

.breadcrumb {
  color: var(--c-text-4);
  letter-spacing: .02em;
  font-size: 11.5px;
}

.breadcrumb a {
  color: var(--c-text-3);
}

.breadcrumb a:hover {
  color: var(--c-text-2);
}

.breadcrumb .sep {
  margin: 0 6px;
}

@keyframes admin-pane-progress {
  0% {
    opacity: .28;
    transform-origin: 0%;
    transform: scaleX(.35);
  }

  50% {
    opacity: 1;
    transform-origin: 50%;
    transform: scaleX(1);
  }

  100% {
    opacity: .28;
    transform-origin: 100%;
    transform: scaleX(.35);
  }
}

.user-pill {
  color: #ffffffd1;
  background: #94a3b80f;
  border: 1px solid #94a3b81f;
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  display: flex;
}

.user-pill.is-loading {
  background: #94a3b80b;
  border-color: #94a3b817;
}

.user-pill:hover {
  background: #94a3b814;
  border-color: #94a3b82e;
}

.user-avatar {
  color: #fff;
  background: #ffffff1f;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}

.user-avatar-placeholder {
  color: #e2e8f0b8;
  letter-spacing: .12em;
  background: #94a3b824;
}

.user-meta {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.user-meta strong {
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
}

.user-meta-placeholder {
  color: #e2e8f0bd;
  font-weight: 520;
}

.user-meta span {
  color: #94a3b8d6;
  font-size: 11px;
}

.sidebar-footer .btn-block {
  color: #e2e8f0c7;
  background: #94a3b808;
  border-color: #94a3b814;
  border-radius: 10px;
  justify-content: flex-start;
  width: 100%;
  padding: 8px 10px;
}

.sidebar-footer .btn-block:hover {
  color: #fff;
  background: #94a3b814;
  border-color: #94a3b81f;
}

.login-page {
  background: var(--c-bg);
  min-height: 100vh;
  display: flex;
}

.login-left {
  color: #fff;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  padding: 60px;
  display: flex;
}

.login-left h1 {
  letter-spacing: -.5px;
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 700;
}

.login-left p {
  color: #ffffffb8;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
}

.login-right {
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 40px;
  display: flex;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-card h2 {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 600;
}

.login-card .subtitle {
  color: var(--c-text-3);
  margin-bottom: 20px;
  font-size: 14px;
}

.auth-page {
  background: linear-gradient(#f5f8fc 0%, #eef3f8 100%);
  position: relative;
  overflow: hidden;
}

.auth-page:before {
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 74% 14%, #2563eb12, #0000 22%), radial-gradient(circle at 82% 84%, #0f172a0d, #0000 24%);
  position: absolute;
  inset: 0;
}

.auth-hero {
  background: radial-gradient(circle at 24% 78%, #60a5fa1a, #0000 28%), linear-gradient(#111827 0%, #0f172a 100%);
  min-width: 46%;
  position: relative;
  overflow: hidden;
}

.auth-hero:before, .auth-hero:after {
  content: "";
  filter: blur(8px);
  opacity: .45;
  border-radius: 999px;
  position: absolute;
}

.auth-hero:before {
  background: radial-gradient(circle, #60a5fa29 0%, #60a5fa00 72%);
  width: 280px;
  height: 280px;
  top: 60px;
  right: -80px;
}

.auth-hero:after {
  background: radial-gradient(circle, #ffffff14 0%, #fff0 70%);
  width: 240px;
  height: 240px;
  bottom: 50px;
  left: -40px;
}

.auth-hero-inner {
  z-index: 1;
  width: min(560px, 100%);
  margin: 0 auto;
  position: relative;
}

.auth-hero-inner-minimal {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
  display: flex;
}

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

.auth-brand-mark {
  color: #f8fafc;
  letter-spacing: .08em;
  background: linear-gradient(145deg, #ffffff1f, #60a5fa14);
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  box-shadow: inset 0 1px #ffffff14;
}

.auth-kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #e2e8f07a;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
}

.auth-brand h1 {
  letter-spacing: -.05em;
  margin: 0;
  font-size: 44px;
  font-weight: 650;
}

.auth-hero-note {
  color: #e2e8f0ad;
  letter-spacing: .03em;
  font-size: 15px;
}

.auth-copy {
  max-width: 420px;
}

.auth-copy-chip {
  color: #ffffff8f;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  align-items: center;
  min-height: 32px;
  margin-bottom: 16px;
  padding: 0 10px;
  font-size: 11px;
  display: inline-flex;
}

.auth-copy h2 {
  letter-spacing: -.05em;
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.12;
}

.auth-copy p {
  color: #e2e8f0ad;
  font-size: 15px;
}

.auth-workspace {
  z-index: 1;
  padding: 42px 48px;
  position: relative;
}

.auth-panel {
  grid-template-columns: minmax(480px, 560px) minmax(220px, 260px);
  align-items: start;
  gap: 16px;
  width: min(900px, 100%);
  display: grid;
}

.auth-panel .login-card {
  border: 1px solid var(--c-border);
  backdrop-filter: none;
  background: #fffffffa;
  border-radius: 20px;
  max-width: none;
  box-shadow: 0 18px 40px #0f172a0d;
}

.auth-main-card {
  padding: 34px 34px 28px;
}

.auth-side-card {
  flex-direction: column;
  padding: 22px 20px 18px;
  display: flex;
}

.auth-side-card.auth-side-card-compact {
  justify-content: flex-start;
}

.auth-card-header {
  border-bottom: 1px solid var(--c-border-light);
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  display: flex;
}

.auth-card-header .auth-kicker {
  color: var(--c-text-4);
  margin-bottom: 10px;
}

.auth-card-header h2 {
  letter-spacing: -.05em;
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.05;
}

.auth-mode-switch {
  border-bottom: 1px solid var(--c-border-light);
  background: none;
  border-radius: 0;
  gap: 28px;
  margin-bottom: 24px;
  padding: 0;
  display: flex;
}

.auth-mode-button {
  appearance: none;
  color: var(--c-text-3);
  font-family: var(--font);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
  position: relative;
}

.auth-mode-button.active {
  color: var(--c-text-1);
  box-shadow: none;
}

.auth-mode-button.active:after {
  content: "";
  border-bottom: 2px solid var(--c-primary);
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

.auth-mode-button:hover {
  color: var(--c-text-1);
}

.auth-input {
  background: #fff;
  border-color: #d7e0ea;
  border-radius: 10px;
  min-height: 52px;
  font-size: 15px;
}

.auth-main-card .form-label {
  color: #575d67;
  letter-spacing: .02em;
  margin-bottom: 7px;
  font-size: 12.5px;
}

.auth-main-card .btn-primary {
  color: #fff;
  letter-spacing: .02em;
  background: #0f172a;
  border-color: #0f172a;
  border-radius: 10px;
  min-height: 52px;
}

.auth-main-card .btn-primary:hover {
  background: #020617;
  border-color: #020617;
}

.auth-main-card .btn-dingtalk {
  color: #1f6feb;
  background: #fff;
  border-color: #dbe4ee;
  border-radius: 10px;
  min-height: 50px;
}

.auth-main-card .btn-dingtalk:hover {
  color: #1258c2;
  background: #f7fbff;
  border-color: #bfd2f5;
}

.auth-phone-block {
  gap: 6px;
  display: grid;
}

.auth-inline-actions {
  gap: 10px;
  display: flex;
}

.auth-inline-actions .btn {
  border-radius: 10px;
  flex: 1;
  min-height: 48px;
}

.auth-divider {
  text-align: center;
  margin: 28px 0 18px;
  position: relative;
}

.auth-divider:before {
  content: "";
  border-top: 1px solid var(--c-border);
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
}

.auth-divider span {
  color: var(--c-text-4);
  letter-spacing: .14em;
  text-transform: uppercase;
  background: #fffffffa;
  padding: 0 10px;
  font-size: 11px;
  display: inline-block;
  position: relative;
}

.auth-link-row {
  color: var(--c-text-3);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 12.5px;
  display: flex;
}

.auth-link-row a {
  color: var(--c-primary);
  font-weight: 600;
}

.auth-side-head h3 {
  letter-spacing: -.04em;
  margin-bottom: 6px;
  font-size: 20px;
}

.auth-side-head .auth-kicker {
  color: var(--c-text-4);
  margin-bottom: 6px;
}

.auth-side-head .subtitle {
  color: var(--c-text-3);
  font-size: 13px;
}

.auth-qr-shell {
  border: 1px solid var(--c-border);
  background: #f7fafe;
  border-radius: 14px;
  flex: 1;
  min-height: 280px;
  overflow: hidden;
  box-shadow: inset 0 1px #ffffffb3;
}

.auth-side-card-compact .auth-qr-shell {
  min-height: 208px;
}

.auth-qr-frame {
  background: #fff;
  border: none;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.auth-qr-empty {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 280px;
  padding: 24px;
  display: flex;
}

.auth-qr-empty-icon {
  width: 64px;
  height: 64px;
  color: var(--c-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  display: flex;
}

.auth-qr-empty p {
  color: var(--c-text-1);
  font-weight: 600;
}

.auth-qr-empty span {
  color: var(--c-text-3);
  max-width: 22ch;
  font-size: 13px;
}

.auth-qr-footer {
  border-top: 1px solid var(--c-border-light);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
}

.auth-qr-meta {
  gap: 4px;
  display: grid;
}

.auth-qr-meta span {
  color: var(--c-text-4);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.auth-qr-meta code {
  border: 1px solid var(--c-border);
  background: #f8fafc;
  border-radius: 10px;
  width: fit-content;
  padding: 4px 8px;
}

.page-shell {
  gap: 18px;
  display: grid;
}

.page-eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-text-4);
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
}

.page-title {
  letter-spacing: -.05em;
  color: var(--c-text-1);
  font-size: 28px;
  font-weight: 650;
}

.page-desc {
  color: var(--c-text-3);
  max-width: 60ch;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.65;
}

.section-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.page-header {
  border-bottom: 1px solid var(--c-border-light);
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 8px;
  padding-bottom: 18px;
  display: flex;
}

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

.card {
  border: 1px solid var(--c-border);
  background: #fffffff5;
  border-radius: 14px;
  box-shadow: 0 12px 28px #0f172a08;
}

.card-header {
  border-bottom: 1px solid var(--c-border-light);
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  display: flex;
}

.card-header h3 {
  letter-spacing: -.02em;
  font-size: 14px;
  font-weight: 650;
}

.card-body {
  padding: 18px;
}

.card-footer {
  border-top: 1px solid var(--c-border-light);
  padding: 12px 18px;
}

.stat-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  display: grid;
}

.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 18px;
  transition: border-color .15s, background .15s;
}

.stat-card:hover {
  background: #fff;
  border-color: #cbd5e1;
}

.stat-label {
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 700;
}

.stat-value {
  color: var(--c-text-1);
  letter-spacing: -.04em;
  margin-top: 8px;
  font-size: 30px;
  font-weight: 650;
}

.stat-sub {
  color: var(--c-text-3);
  margin-top: 6px;
  font-size: 12px;
}

.btn {
  min-height: 38px;
  color: var(--c-text-2);
  cursor: pointer;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  font-family: var(--font);
  background: #fff;
  border: 1px solid #94a3b847;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  transition: all .15s;
  display: inline-flex;
  box-shadow: 0 1px 2px #0f172a0a;
}

.btn:hover {
  color: var(--c-text-1);
  background: #f8fafc;
  border-color: #64748b61;
  box-shadow: 0 2px 6px #0f172a0d;
}

.btn-primary {
  color: #fff;
  background: #16213a;
  border-color: #16213a;
  box-shadow: 0 6px 14px #1118271a;
}

.btn-primary:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
  color: #fff;
  box-shadow: 0 8px 18px #1118271f;
}

.btn-danger {
  color: var(--c-danger);
  background: #fff;
  border-color: #b9383c4d;
}

.btn-danger:hover {
  background: var(--c-danger);
  color: #fff;
}

.btn-ghost {
  color: var(--c-text-2);
  box-shadow: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0eb;
}

.btn-ghost:hover {
  color: var(--c-text-1);
  background: #fff;
  border-color: #94a3b857;
  box-shadow: 0 1px 3px #0f172a0a;
}

.btn-ghost.is-active, .btn-ghost[aria-current="page"] {
  color: var(--c-text-1);
  background: #fff;
  border-color: #2f4f8857;
  box-shadow: inset 0 0 0 1px #2f4f8814;
}

.btn-sm {
  border-radius: 9px;
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
}

.btn-lg {
  min-height: 46px;
  padding: 0 18px;
  font-size: 13.5px;
}

.btn-dingtalk {
  color: #fff;
  background: #0089ff;
  border-color: #0089ff;
}

.btn-dingtalk:hover {
  color: #fff;
  background: #006dd9;
  border-color: #006dd9;
}

.btn-block {
  width: 100%;
}

.btn:disabled, .btn[aria-busy="true"] {
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.btn:disabled:hover, .btn[aria-busy="true"]:hover {
  box-shadow: none;
}

.btn-primary:disabled, .btn-primary[aria-busy="true"] {
  color: #ffffffeb;
  background: #94a3b8;
  border-color: #94a3b8;
}

.btn:not(.btn-primary):disabled, .btn:not(.btn-primary)[aria-busy="true"] {
  color: #64748b;
  background: #e2e8f0;
  border-color: #d7dee8;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  color: #475569;
  letter-spacing: .02em;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 650;
  display: block;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  min-height: 42px;
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--c-text-1);
  box-shadow: none;
  background: #fff;
  border: 1px solid #cbd5e1eb;
  border-radius: 10px;
  outline: none;
  padding: 10px 13px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
  background: #fff;
  border-color: #94a3b894;
}

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

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6.5L8 10L12 6.5' stroke='%2364748B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: 42px;
  line-height: 1.45;
}

.form-select::-ms-expand {
  display: none;
}

.form-input[type="date"], .form-input[type="datetime-local"] {
  -webkit-appearance: none;
  appearance: none;
  font-variant-numeric: tabular-nums;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17' fill='none'%3E%3Crect x='2.25' y='3.25' width='12.5' height='11.5' rx='2.25' stroke='%2364748B' stroke-width='1.5'/%3E%3Cpath d='M5.25 1.9V4.45' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M11.75 1.9V4.45' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M2.25 6.35H14.75' stroke='%2364748B' stroke-width='1.5'/%3E%3Cpath d='M5.8 9.1H8.5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M5.8 11.65H10.75' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 17px 17px;
  padding-right: 46px;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator, .form-input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
  margin-right: -2px;
}

.form-input[type="date"]::-webkit-date-and-time-value, .form-input[type="datetime-local"]::-webkit-date-and-time-value {
  text-align: left;
}

.form-input[type="date"]::-webkit-datetime-edit, .form-input[type="datetime-local"]::-webkit-datetime-edit {
  color: inherit;
  padding: 0;
}

.form-input[type="date"]::-webkit-datetime-edit-fields-wrapper, .form-input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.native-date-input {
  display: block;
  position: relative;
}

.native-date-input:after {
  content: attr(data-placeholder);
  color: #94a3b8;
  letter-spacing: .01em;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13.5px;
  line-height: 1.4;
  position: absolute;
  top: 50%;
  left: 13px;
  right: 46px;
  overflow: hidden;
  transform: translateY(-50%);
}

.native-date-input.is-empty:after {
  opacity: 1;
}

.native-date-input.is-empty .form-input-native-date::-webkit-datetime-edit, .native-date-input.is-empty .form-input-native-date::-webkit-date-and-time-value {
  color: #0000;
}

.native-date-input:not(.is-empty) .form-input-native-date::-webkit-datetime-edit, .native-date-input:not(.is-empty) .form-input-native-date::-webkit-date-and-time-value {
  color: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: #fff;
  border-color: #7f97bd;
  box-shadow: 0 0 0 3px #7f97bd1f;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #94a3b8;
}

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

.form-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  display: flex;
}

.form-error {
  color: var(--c-danger);
  margin-top: 4px;
  font-size: 12.5px;
}

.form-hint {
  color: var(--c-text-3);
  margin-top: 3px;
  font-size: 12px;
}

.toolbar {
  box-shadow: none;
  background: none;
  border: none;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin-bottom: 18px;
  padding: 0;
  display: flex;
}

.toolbar .form-group {
  flex: 172px;
  min-width: 172px;
  margin-bottom: 0;
}

.toolbar .form-input, .toolbar .form-select {
  width: 100%;
  min-width: 0;
  font-size: 13px;
}

.toolbar > .btn, .toolbar > a.btn {
  flex: none;
}

.toolbar-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

.data-table-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px #0f172a08;
}

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

.data-table th {
  text-align: left;
  color: var(--c-text-3);
  text-transform: none;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--c-border);
  background: #f8fafd;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 650;
}

.data-table td {
  border-bottom: 1px solid var(--c-border-light);
  color: var(--c-text-2);
  vertical-align: middle;
  padding: 14px 16px;
  font-size: 13px;
}

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

.data-table tr:hover td {
  background: #f9fbfe;
}

.data-table .col-actions {
  text-align: right;
  white-space: nowrap;
}

.data-table td.col-actions {
  white-space: normal;
  vertical-align: middle;
}

.data-table td.col-actions > div {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.data-table td.col-actions .btn {
  margin-left: 0;
}

.table-action-row {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  line-height: 1;
  display: flex;
}

.action-menu {
  position: relative;
}

.action-menu > summary {
  list-style: none;
}

.action-menu > summary::-webkit-details-marker {
  display: none;
}

.action-menu-panel {
  border: 1px solid var(--c-border);
  z-index: 4;
  background: #fffffffa;
  border-radius: 12px;
  gap: 6px;
  min-width: 132px;
  padding: 8px;
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  box-shadow: 0 18px 40px #0f172a1f;
}

.action-menu-panel .btn {
  justify-content: flex-start;
  width: 100%;
}

.page-split {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  align-items: start;
  gap: 16px;
  display: grid;
}

.data-table td a:not(.btn) {
  color: var(--c-accent);
  font-weight: 600;
}

.data-table td a:not(.btn):hover {
  color: #213963;
}

.table-empty {
  text-align: center;
  color: var(--c-text-3);
  padding: 40px 16px;
  font-size: 13px;
}

.table-pager {
  color: var(--c-text-3);
  border-top: 1px solid var(--c-border-light);
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 12.5px;
  display: flex;
}

.admin-pagination {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  display: flex;
}

.admin-pagination-meta {
  color: var(--c-text-3);
  font-size: 12.5px;
}

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

.admin-pagination-pages {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.pagination-page {
  min-width: 36px;
  padding-inline: 10px;
}

.pagination-page[aria-current="page"] {
  box-shadow: 0 8px 18px #0f172a1f;
}

.pagination-ellipsis {
  color: var(--c-text-3);
  padding: 0 4px;
}

.admin-pagination-jump {
  color: var(--c-text-3);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.admin-pagination-input {
  text-align: center;
  width: 68px;
  min-width: 68px;
}

.badge {
  border: 1px solid #0000;
  border-radius: 999px;
  align-items: center;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.55;
  display: inline-flex;
}

.badge-success {
  background: var(--c-success-light);
  color: var(--c-success);
  border-color: #1f7a5229;
}

.badge-danger, .badge-error {
  background: var(--c-danger-light);
  color: var(--c-danger);
  border-color: #b9383c1f;
}

.badge-warning {
  background: var(--c-warning-light);
  color: var(--c-warning);
  border-color: #b7791f24;
}

.badge-info {
  background: var(--c-info-light);
  color: var(--c-info);
  border-color: #315ccf24;
}

.badge-neutral {
  background: var(--c-surface-alt);
  color: var(--c-text-3);
  border: 1px solid var(--c-border);
}

.badge-primary {
  background: var(--c-primary-light);
  color: var(--c-primary);
}

.badge-dot:before {
  content: "";
  border-radius: 50%;
  width: 6px;
  height: 6px;
  margin-right: 5px;
}

.badge-success.badge-dot:before {
  background: var(--c-success);
}

.badge-danger.badge-dot:before {
  background: var(--c-danger);
}

.badge-warning.badge-dot:before {
  background: var(--c-warning);
}

.badge-info.badge-dot:before {
  background: var(--c-info);
}

.modal-backdrop {
  backdrop-filter: blur(2px);
  z-index: 100;
  background: #00000059;
  justify-content: center;
  align-items: center;
  animation: .15s fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal {
  background: var(--c-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  animation: .2s slideUp;
  overflow-y: auto;
}

.modal-header {
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
  display: flex;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 600;
}

.modal-body {
  padding: 16px 24px 24px;
}

.modal-footer {
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 24px 20px;
  display: flex;
}

.modal-close {
  width: 28px;
  height: 28px;
  color: var(--c-text-3);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  display: flex;
}

.modal-close:hover {
  background: var(--c-surface-alt);
  color: var(--c-text-1);
}

.detail-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  display: grid;
}

.detail-item label {
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 500;
  display: block;
}

.detail-item .value {
  color: var(--c-text-1);
  font-size: 14px;
}

.image-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  display: grid;
}

.image-card {
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: 16px;
  flex-direction: column;
  display: flex;
  overflow: hidden;
  box-shadow: 0 8px 22px #0f172a08;
}

.image-card img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  display: block;
}

.image-card .image-meta {
  color: var(--c-text-3);
  padding: 8px 10px;
  font-size: 12px;
}

.image-card-body {
  gap: 10px;
  display: grid;
}

.image-card-status-row {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.image-card-seq {
  color: var(--c-text-4);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
}

.image-card-prompt {
  color: var(--c-text-2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
}

.result-action-rail {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.result-action-btn {
  border: 1px solid var(--c-border);
  width: 32px;
  height: 32px;
  color: var(--c-text-2);
  background: #94a3b80f;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
  display: inline-flex;
}

.result-action-btn:hover {
  color: var(--c-text-1);
  background: #4755691a;
  border-color: #64748b6b;
  transform: translateY(-1px);
}

.result-action-btn svg {
  stroke: currentColor;
  stroke-width: 1.6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 16px;
  height: 16px;
}

.result-action-btn-high {
  background: #0f172a0d;
  border-color: #64748b47;
}

.result-action-btn.is-active {
  color: var(--c-primary);
  background: #2563eb1a;
  border-color: #2563eb59;
}

.result-action-btn.is-danger.is-active {
  color: var(--c-danger);
  background: #dc26261a;
  border-color: #dc262647;
}

.image-card-note {
  color: var(--c-text-3);
  font-size: 11px;
  line-height: 1.4;
}

.image-placeholder {
  aspect-ratio: 1;
  background: var(--c-surface-alt);
  width: 100%;
  color: var(--c-text-4);
  justify-content: center;
  align-items: center;
  display: flex;
}

.image-preview-modal {
  max-width: min(960px, 94vw);
}

.dist-row {
  border-bottom: 1px solid var(--c-border-light);
  align-items: center;
  padding: 8px 0;
  display: flex;
}

.dist-row:last-child {
  border-bottom: none;
}

.dist-label {
  color: var(--c-text-2);
  flex: 1;
  font-size: 13.5px;
}

.dist-value {
  color: var(--c-text-1);
  text-align: right;
  min-width: 60px;
  font-size: 13.5px;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--c-text-4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-text-3);
}

.alert {
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 10px 14px;
  font-size: 13px;
}

.alert-error {
  background: var(--c-danger-light);
  color: var(--c-danger);
  border: 1px solid #dc262633;
}

.alert-success {
  background: var(--c-success-light);
  color: var(--c-success);
  border: 1px solid #05966933;
}

.alert-info {
  background: var(--c-info-light);
  color: var(--c-info);
  border: 1px solid #2563eb33;
}

.alert-warning {
  background: var(--c-warning-light);
  color: var(--c-warning);
  border: 1px solid #d9770633;
}

.skeleton-block, .skeleton-line {
  background: #e8eef6;
  position: relative;
  overflow: hidden;
}

.skeleton-block:after, .skeleton-line:after {
  content: "";
  background: linear-gradient(90deg, #0000, #ffffffb8, #0000);
  animation: 1.4s infinite shimmer;
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
}

.skeleton-line {
  border-radius: 999px;
  height: 12px;
}

.skeleton-block {
  border-radius: 14px;
}

.dashboard-loading-stack {
  gap: 12px;
  display: grid;
}

.dashboard-loading-row {
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 12px;
  display: grid;
}

.loading-panel {
  gap: 14px;
  display: grid;
}

.table-skeleton-row {
  align-items: center;
  gap: 12px;
  display: grid;
}

.detail-skeleton-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  display: grid;
}

.detail-skeleton-item {
  gap: 8px;
  display: grid;
}

.feature-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  display: grid;
}

.feature-card {
  background: linear-gradient(#fffffffa 0%, #fbfcfefa 100%);
  flex-direction: column;
  justify-content: space-between;
  min-height: 208px;
  transition: border-color .15s, transform .15s, background .15s, box-shadow .15s;
  display: flex;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  background: #fbfdff;
  border-color: #2563eb38;
  transform: translateY(-2px);
}

.feature-card .card-body {
  flex-direction: column;
  gap: 16px;
  height: 100%;
  display: flex;
}

.feature-card-meta {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.feature-card-mark {
  text-transform: uppercase;
  letter-spacing: .1em;
  width: fit-content;
  min-width: 0;
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
  background: #f7fafe;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
}

.feature-card-index {
  color: var(--c-text-4);
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 700;
}

.feature-card-copy {
  gap: 8px;
  display: grid;
}

.feature-card h3 {
  letter-spacing: -.03em;
  font-size: 16px;
  font-weight: 650;
}

.feature-card p {
  color: var(--c-text-3);
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.6;
}

.feature-card-link {
  color: inherit;
  display: block;
}

.feature-card-link:hover {
  color: inherit;
}

.feature-card-link-row {
  border-top: 1px solid var(--c-border-light);
  color: var(--c-text-2);
  letter-spacing: .06em;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}

.feature-card-link-row span:last-child {
  color: var(--c-primary);
  font-size: 14px;
}

.code-block {
  white-space: pre-wrap;
  background: var(--c-surface-soft);
  color: var(--c-text-2);
  border: 1px solid var(--c-border-light);
  font-family: var(--mono);
  border-radius: 12px;
  margin: 0;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
}

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

.dashboard-trend-row {
  grid-template-columns: 120px 1fr 90px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  display: grid;
}

.page-frame-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  align-items: start;
  gap: 20px;
  display: grid;
}

.page-frame-main, .page-frame-aside {
  align-content: start;
  gap: 20px;
  display: grid;
}

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

.kv-editor-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

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

.stats-strip .stat-card {
  min-height: 96px;
}

.goods-table-cell {
  align-items: center;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.goods-table-thumb {
  border: 1px solid var(--c-border);
  width: 56px;
  height: 56px;
  color: var(--c-text-4);
  background: linear-gradient(#f8fafc 0%, #eef3f8 100%);
  border-radius: 16px;
  flex: 0 0 56px;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  overflow: hidden;
}

.goods-table-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.goods-table-copy {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.goods-table-title {
  color: var(--c-text-1);
  font-weight: 650;
}

.goods-table-meta {
  color: var(--c-text-3);
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 320px;
  font-size: 12px;
  overflow: hidden;
}

.goods-form-shell {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 24px;
  display: grid;
}

.goods-media-panel {
  border: 1px solid var(--c-border);
  background: linear-gradient(#fafcffeb, #f4f7fbfa);
  border-radius: 24px;
  align-content: start;
  gap: 12px;
  padding: 18px;
  display: grid;
}

.goods-media-preview {
  aspect-ratio: 1;
  background: #f8fafc;
  border: 1px solid #94a3b83d;
  border-radius: 20px;
  width: 100%;
  overflow: hidden;
  box-shadow: inset 0 1px #ffffff80;
}

.goods-media-preview img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.goods-media-placeholder {
  height: 100%;
  color: var(--c-text-3);
  text-align: center;
  place-items: center;
  gap: 8px;
  display: grid;
}

.goods-media-placeholder strong {
  letter-spacing: -.04em;
  width: 64px;
  height: 64px;
  color: var(--c-text-2);
  border: 1px solid #94a3b847;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  display: inline-flex;
}

.goods-upload-dropzone, .goods-upload-trigger {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.goods-upload-dropzone {
  color: var(--c-text-2);
  background: #f8fafcc7;
  border: 1px dashed #64748b61;
  border-radius: 18px;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  transition: border-color .16s, background .16s, color .16s;
  display: grid;
}

.goods-upload-dropzone:hover {
  color: var(--c-text-1);
  background: #f1f5f9eb;
  border-color: #0f172a6b;
}

.goods-upload-icon {
  width: 42px;
  height: 42px;
  color: var(--c-text-2);
  background: #fff;
  border: 1px solid #94a3b83d;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.goods-upload-icon svg {
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 20px;
  height: 20px;
}

.goods-upload-dropzone strong, .goods-upload-dropzone small {
  display: block;
}

.goods-upload-dropzone strong {
  color: var(--c-text-1);
  margin-bottom: 3px;
  font-size: 13px;
}

.goods-upload-dropzone small {
  color: var(--c-text-3);
  font-size: 12px;
  line-height: 1.45;
}

.goods-upload-trigger.is-disabled {
  cursor: progress;
  opacity: .72;
}

.goods-upload-native {
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.goods-manual-url {
  gap: 8px;
  display: grid;
}

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

.forbidden-list-header {
  border-bottom: 1px solid var(--c-border-light);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 12px;
  display: flex;
}

.forbidden-list-header h3 {
  color: var(--c-text-1);
  letter-spacing: -.02em;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.forbidden-list-header p {
  color: var(--c-text-3);
  margin: 4px 0 0;
  font-size: 12.5px;
}

.forbidden-list-count {
  color: var(--c-text-3);
  background: #0f172a0a;
  border-radius: 999px;
  flex: none;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
}

.forbidden-filter-bar {
  border-bottom: 1px solid var(--c-border-light);
  background: linear-gradient(#f8fafcdb, #fffffff5);
  grid-template-columns: minmax(260px, 1.5fr) minmax(150px, .8fr) minmax(150px, .8fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 14px;
  display: grid;
}

.forbidden-filter-bar .form-input, .forbidden-filter-bar .form-select {
  min-height: 38px;
}

.forbidden-word-chip {
  color: #991b1b;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #fef2f2cc;
  border: 1px solid #dc26262e;
  border-radius: 999px;
  align-items: center;
  max-width: 180px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  overflow: hidden;
}

.table-text-ellipsis {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 320px;
  color: var(--c-text-2);
  overflow: hidden;
}

.text-success {
  color: var(--c-success);
}

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

.modal-wide {
  width: min(980px, 100vw - 48px);
  max-width: 980px;
}

.extract-word-list {
  gap: 10px;
  max-height: 420px;
  display: grid;
  overflow: auto;
}

.extract-word-row {
  grid-template-columns: minmax(150px, 1fr) 150px 150px minmax(130px, .8fr) auto;
  align-items: center;
  gap: 8px;
  display: grid;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (width <= 768px) {
  .admin-watermark {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 90px 24px 24px;
  }

  .admin-sidebar {
    width: var(--sidebar-w-collapsed);
  }

  .admin-main {
    margin-left: var(--sidebar-w-collapsed);
  }

  .sidebar-nav .nav-label, .sidebar-section {
    display: none;
  }

  .sidebar-brand {
    padding: 0 12px;
    font-size: 0;
  }

  .sidebar-brand span {
    font-size: 16px;
  }

  .admin-content {
    padding: 16px;
  }

  .form-row, .form-row-3, .form-row-4, .two-col-grid, .dashboard-dual-grid, .page-frame-grid, .page-split, .stats-strip, .kv-editor-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-trend-row {
    grid-template-columns: 84px 1fr 72px;
    gap: 10px;
  }

  .goods-form-shell {
    grid-template-columns: 1fr;
  }

  .forbidden-list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .forbidden-filter-bar, .extract-word-row {
    grid-template-columns: 1fr;
  }

  .login-left {
    display: none;
  }

  .login-right.auth-workspace {
    padding: 18px;
  }

  .auth-panel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .auth-main-card, .auth-side-card {
    padding: 20px;
  }

  .auth-card-header {
    flex-direction: column;
  }

  .auth-link-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-inline-actions {
    flex-direction: column;
  }

  .auth-qr-shell, .auth-qr-frame, .auth-qr-empty {
    min-height: 300px;
  }

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

  .admin-pagination, .admin-pagination-controls {
    justify-content: flex-start;
  }
}

@media (width <= 1180px) {
  .admin-watermark {
    padding-left: calc(var(--sidebar-w) + 24px);
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .auth-hero {
    min-width: 38%;
    padding: 36px;
  }

  .auth-panel {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
  }

  .page-frame-grid, .page-split, .dashboard-dual-grid {
    grid-template-columns: 1fr;
  }
}
