.mc-body { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; margin: 0; background: #f4f6f9; color: #222; }
.mc-nav { background: #1e293b; color: #fff; padding: 12px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mc-nav a { color: #93c5fd; text-decoration: none; }
.mc-nav a:hover { text-decoration: underline; }
.mc-badge { background: #334155; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.mc-card { max-width: 960px; margin: 24px auto; padding: 24px; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.mc-form label { display: block; margin-top: 12px; font-weight: 600; }
.mc-form input[type=text], .mc-form input[type=password], .mc-form input[type=file] { width: 100%; max-width: 420px; margin-top: 4px; padding: 8px; box-sizing: border-box; }
.mc-form button { margin-top: 16px; padding: 10px 20px; background: #2563eb; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.mc-form button:hover { background: #1d4ed8; }
.mc-error { color: #b91c1c; }
.mc-muted { color: #64748b; font-size: 14px; }
.mc-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.mc-table th, .mc-table td { border: 1px solid #e2e8f0; padding: 8px; text-align: left; }
.mc-table th { background: #f8fafc; }
.mc-link-btn { background: transparent; border: none; color: #93c5fd; cursor: pointer; padding: 0; font-size: inherit; }
.mc-viewer-layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
#mc-viewport { flex: 1; min-width: 280px; height: 480px; background: #111827; border-radius: 8px; position: relative; }
.mc-viewer-panel { width: 260px; background: #f8fafc; padding: 12px; border-radius: 8px; border: 1px solid #e2e8f0; }
.mc-viewer-panel label { display: block; margin-top: 8px; font-size: 13px; }
.mc-viewer-panel input[type=range] { width: 100%; }
.mc-viewer-panel input[type=text] { width: 100%; padding: 6px; box-sizing: border-box; }
.mc-highlight-msg { margin-top: 8px; font-size: 13px; color: #0369a1; }

/* ---------- Auth cards（登录 / 注册） ---------- */
.mc-auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(900px 480px at 110% 20%, rgba(244, 114, 82, 0.12), transparent 50%),
    linear-gradient(165deg, #0b1220 0%, #111827 42%, #0f172a 100%);
  color: #e5e7eb;
}
.mc-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 28px 28px 22px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}
.mc-auth-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.mc-auth-card .mc-muted a { color: #93c5fd; }
.mc-auth-card .mc-form label { color: rgba(226, 232, 240, 0.92); }
.mc-auth-card .mc-form input[type=text],
.mc-auth-card .mc-form input[type=password] {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
  border-radius: 10px;
}
.mc-success-banner {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #bbf7d0;
  font-size: 14px;
}
.mc-info-banner {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.42);
  color: #bae6fd;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 14px;
}
.mc-admin-content .mc-success-banner {
  color: #065f46;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(52, 211, 153, 0.35);
}

/* ---------- Buttons ---------- */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.mc-btn--primary {
  background: linear-gradient(135deg, #00f9ff 0%, #c026ff 100%);
  color: #0a0f1e;
  box-shadow: var(--mc-neon-glow);
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.3);
}
.mc-btn--primary:hover { 
  filter: brightness(1.15); 
  box-shadow: 0 0 12px rgba(0, 249, 255, 0.8), 0 0 30px rgba(192, 38, 255, 0.4);
}
.mc-btn--secondary {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
}
.mc-btn--ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
}
.mc-btn--danger {
  background: rgba(225, 29, 72, 0.14);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fecdd3;
}
.mc-btn--small { padding: 6px 10px; font-size: 13px; margin-top: 0; }

/* ---------- Admin shell ---------- */
.mc-admin-body {
  margin: 0;
  min-height: 100vh;
  background: var(--mc-admin-bg);
  color: var(--mc-admin-fg);
  font-family: "DM Sans", "Segoe UI", "Microsoft YaHei", sans-serif;
}
.mc-admin-body code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.92em;
}
:root {
  /* 科技赛博朋克暗色主题 - Cyber Tech Neon */
  --mc-admin-bg: #0a0f1e;
  --mc-admin-fg: #e0f2fe;
  --mc-admin-sidebar: #0b1220;
  --mc-admin-sidebar-fg: #94a3b8;
  --mc-admin-accent: #00f9ff;
  --mc-admin-accent2: #c026ff;
  --mc-admin-accent-dim: rgba(0, 249, 255, 0.12);
  --mc-admin-card: #111827;
  --mc-admin-border: rgba(148, 163, 184, 0.18);
  --mc-neon-glow: 0 0 8px rgba(0, 249, 255, 0.6), 0 0 20px rgba(0, 249, 255, 0.3);
}
.mc-admin-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.mc-admin-shell__aside {
  background: linear-gradient(180deg, #0c111b 0%, #111827 52%, #0b1220 100%);
  color: var(--mc-admin-sidebar-fg);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}
.mc-admin-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 12px;
}
.mc-admin-brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fef08a, #f97316 42%, #ea580c);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.55);
}
.mc-admin-brand__text {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}
.mc-admin-brand__sub {
  margin-left: auto;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.85);
  text-transform: uppercase;
}
.mc-admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mc-admin-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mc-admin-nav__link:hover {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.12);
}
.mc-admin-nav__link.is-active {
  background: var(--mc-admin-accent-dim);
  border-color: rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
}
.mc-admin-nav__link--ghost {
  margin-top: 8px;
  color: rgba(148, 163, 184, 0.95);
  font-size: 13px;
}
.mc-admin-aside-foot {
  padding-top: 14px;
  margin-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mc-admin-user-chip {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.85);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.mc-admin-logout .mc-btn { margin-top: 0; width: 100%; }
.mc-admin-shell__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mc-admin-topbar {
  padding: 18px 28px;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mc-admin-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.mc-admin-topbar__title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #e0f2fe;
  text-shadow: 0 0 6px rgba(0, 249, 255, 0.4);
}
.mc-admin-content {
  padding: 22px 28px 40px;
  background: var(--mc-admin-bg);
}
.mc-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.mc-stat-card {
  background: var(--mc-admin-card);
  border-radius: 14px;
  padding: 16px 16px 14px;
  border: 1px solid var(--mc-admin-border);
  box-shadow: 0 14px 36px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mc-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5), var(--mc-neon-glow);
}
.mc-stat-card--accent {
  border-color: rgba(0, 249, 255, 0.4);
  box-shadow: 0 18px 42px rgba(0, 249, 255, 0.15);
}
.mc-stat-card__label {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mc-stat-card__value {
  margin: 8px 0 0;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 1.35rem;
  color: var(--mc-admin-fg);
}
.mc-stat-card__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94a3b8;
}
.mc-sketchup-login-env {
  margin-top: 28px;
  padding: 18px 20px 22px;
  background: var(--mc-admin-card);
  border: 1px solid var(--mc-admin-border);
  border-radius: 14px;
  max-width: 960px;
}
.mc-sketchup-login-env__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.mc-sketchup-login-env__lead {
  margin: 0 0 14px;
  max-width: 900px;
  line-height: 1.5;
}
.mc-sketchup-login-env__table {
  margin-top: 0;
}
.mc-sketchup-login-env__pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.mc-sketchup-login-env__pill--ok {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}
.mc-sketchup-login-env__pill--warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}
.mc-dashboard-panel {
  margin-top: 18px;
  padding: 18px 18px 14px;
  background: var(--mc-admin-card);
  border-radius: 14px;
  border: 1px solid var(--mc-admin-border);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}
.mc-dash-heading {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.mc-page-stack {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}
.mc-table--compact th,
.mc-table--compact td { padding: 8px 10px; font-size: 13px; }
.mc-link-dashed { color: #2563eb; text-decoration: underline; text-decoration-style: dashed; }
.mc-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #0369a1;
}
.mc-cell-actions {
  white-space: nowrap;
}
.mc-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  vertical-align: middle;
}
.mc-inline-form input[type=password] {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  min-width: 120px;
}
.mc-error-banner {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #9f1239;
  margin-bottom: 14px;
}
.mc-form--row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: flex-end;
}
.mc-form--row label span { display: block; font-size: 13px; color: #475569; margin-bottom: 4px; }
.mc-form--row label { margin-top: 0; }
.mc-form--inline .mc-btn { margin-top: 0; }

@media (max-width: 920px) {
  .mc-admin-shell { grid-template-columns: 1fr; }
  .mc-admin-shell__aside { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .mc-admin-nav { flex-direction: row; flex-wrap: wrap; flex: 1 1 auto; }
  .mc-admin-aside-foot { flex-direction: row; align-items: center; border-top: none; padding-top: 0; margin-top: 0; border-left: 1px solid rgba(148, 163, 184, 0.14); padding-left: 12px; }
}

/* ========== 科技赛博增强效果 ========== */
/* 扫描线效果 - Tech scanline overlay */
.mc-admin-body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,249,255,0.03) 0px,
    rgba(0,249,255,0.03) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* 霓虹表格 & pill */
.mc-admin-content .mc-table th {
  background: rgba(15, 23, 42, 0.7);
  color: #67e8f9;
  border-color: rgba(0,249,255,0.2);
}
.mc-admin-content .mc-pill {
  background: rgba(0, 249, 255, 0.12);
  border-color: rgba(0, 249, 255, 0.4);
  color: #67e8f9;
  box-shadow: 0 0 6px rgba(0,249,255,0.3);
}

/* 卡片辉光通用 */
.mc-dashboard-panel {
  background: var(--mc-admin-card);
  border: 1px solid var(--mc-admin-border);
  box-shadow: 0 14px 36px rgba(0,0,0,0.4);
  transition: box-shadow 0.2s ease;
}
.mc-dashboard-panel:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), var(--mc-neon-glow);
}

.mc-upload-material-batch__table-wrap {
  max-height: 320px;
  overflow: auto;
  margin: 12px 0;
}
.mc-upload-material-batch__summary {
  margin-top: 8px;
}

/* 强调链接霓虹 */
.mc-admin-content a {
  color: #67e8f9;
  transition: color 0.15s, text-shadow 0.15s;
}
.mc-admin-content a:hover {
  color: #c026ff;
  text-shadow: 0 0 6px rgba(192,38,255,0.6);
}

/* ---------- 前台 Studio：表单与预览在暗色主区内 ---------- */
.mc-admin-content .mc-muted {
  color: #94a3b8;
}
.mc-admin-content .mc-form--app label {
  color: rgba(226, 232, 240, 0.92);
}
.mc-admin-content .mc-form--app input[type=text],
.mc-admin-content .mc-form--app input[type=file] {
  width: 100%;
  max-width: 520px;
  margin-top: 4px;
  padding: 10px 12px;
  box-sizing: border-box;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
}
.mc-admin-content .mc-form--app button.mc-btn {
  margin-top: 18px;
}

.mc-app-viewer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 10px;
}
.mc-app-viewer-actions {
  font-size: 14px;
  white-space: nowrap;
}
.mc-viewer-layout--app {
  margin-top: 16px;
  align-items: stretch;
}
.mc-viewer-layout--app #mc-viewport {
  flex: 1;
  min-width: 280px;
  min-height: 420px;
  height: min(70vh, 640px);
  background: #111827;
  border-radius: 12px;
  border: 1px solid rgba(0, 249, 255, 0.15);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
}
.mc-admin-content .mc-viewer-panel {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}
.mc-admin-content .mc-viewer-panel label {
  color: rgba(226, 232, 240, 0.88);
}
.mc-admin-content .mc-viewer-panel input[type=text] {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
  border-radius: 8px;
}

/* 应用内模型预览页：整块面板与深色视口 / 侧栏一致 */
.mc-app-viewer-panel {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}
.mc-app-viewer-panel .mc-dash-heading {
  color: #f1f5f9;
}
.mc-app-viewer-panel .mc-muted {
  color: #94a3b8;
}
.mc-app-viewer-panel .mc-app-viewer-actions a {
  color: #67e8f9;
}
.mc-app-viewer-panel .mc-app-viewer-actions a:hover {
  color: #a5f3fc;
}
.mc-app-viewer-panel .mc-highlight-msg {
  color: #7dd3fc;
}
.mc-app-viewer-panel > .mc-dashboard-panel {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: none;
}
.mc-app-viewer-panel > .mc-dashboard-panel .mc-dash-heading {
  color: #e2e8f0;
}
.mc-app-viewer-panel > .mc-dashboard-panel .mc-muted {
  color: #94a3b8;
}

/* ---------- 模型列表缩略图网格 ---------- */
.mc-card--browse-models {
  max-width: 1200px;
}
.mc-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.mc-model-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 5px;
  border: 1px solid #e1e1e1;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 3px 12px 0px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.mc-model-card:hover {
  border-color: #888888;
  box-shadow: rgba(100, 100, 111, 0.22) 0px 3px 14px 0px;
}
.mc-model-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  overflow: hidden;
}
.mc-model-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mc-model-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #94a3b8;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
}
.mc-model-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 6px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-model-card__status {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 8px;
  font-size: 11px;
  text-transform: lowercase;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.mc-model-card__status--ready {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.45);
}
.mc-model-card__status--failed {
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.45);
}
.mc-model-card__status--queued,
.mc-model-card__status--converting {
  color: #0369a1;
  border-color: rgba(56, 189, 248, 0.45);
}

/* ---------- SketchUp 5d_library iframe：缩略图底栏对齐本地库 .model-thumb-action-bar ---------- */
.mc-browse-su-thumb-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: stretch;
  align-items: stretch;
  padding: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 4;
  overflow: hidden;
  border-radius: 0 0 1px 1px;
}
.mc-model-card:hover .mc-browse-su-thumb-actions,
.mc-browse-su-thumb-actions:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.mc-browse-su-btn {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 3px 2px;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 500;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.55);
  background-color: #3a3a3a;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.12) 100%);
  cursor: pointer;
  box-sizing: border-box;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    background-image 0.15s ease,
    font-weight 0.12s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}
.mc-browse-su-btn + .mc-browse-su-btn {
  border-left: 1px solid rgba(0, 0, 0, 0.35);
}
.mc-browse-su-btn:hover {
  color: #fff;
  font-weight: 700;
  background-color: #6e6e6e;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(0, 0, 0, 0.06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 -1px 6px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}
.mc-browse-su-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}
.mc-browse-su-ctx-menu {
  position: fixed;
  z-index: 9999;
  min-width: 160px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}
.mc-browse-su-ctx-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  font-size: 13px;
  color: #1e293b;
  background: transparent;
  border: none;
  cursor: pointer;
}
.mc-browse-su-ctx-item:hover {
  background: #f1f5f9;
}

.mc-model-card__title {
  margin: 12px 14px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-model-card__meta {
  margin: 4px 14px 0;
  font-size: 12px;
}
.mc-model-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid #f0f1f4;
  background: #fafbfc;
}
.mc-model-card__btn {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  padding: 7px 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box;
}
.mc-model-card__btn:hover {
  background: #dbeafe;
}
.mc-model-card__btn--primary {
  color: #fff;
  background: #007ed1;
  border-color: #0066b3;
  border-radius: 5px;
}
.mc-model-card__btn--primary:hover {
  background: #0066b3;
  border-color: #005a9e;
}
.mc-model-card__btn--ghost {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 5px;
}
.mc-model-card__btn--ghost:hover {
  background: #f1f5f9;
}
.mc-model-card__btn--disabled {
  color: #94a3b8;
  background: #f1f5f9;
  border-color: #e2e8f0;
  border-radius: 5px;
  cursor: not-allowed;
  pointer-events: none;
}
.mc-admin-content .mc-model-card {
  background: var(--mc-admin-card);
  border-color: var(--mc-admin-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.mc-admin-content .mc-model-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.mc-admin-content .mc-model-card__media {
  background: rgba(15, 23, 42, 0.55);
}
.mc-admin-content .mc-model-card__placeholder {
  color: rgba(148, 163, 184, 0.75);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
}
.mc-admin-content .mc-model-card__title {
  color: var(--mc-admin-fg);
}
.mc-admin-content .mc-model-card__btn {
  color: #93c5fd;
  background: rgba(30, 58, 138, 0.35);
  border-color: rgba(59, 130, 246, 0.35);
}
.mc-admin-content .mc-model-card__btn:hover {
  background: rgba(30, 58, 138, 0.55);
}
.mc-admin-content .mc-model-card__btn--primary {
  color: #0f172a;
  background: linear-gradient(135deg, var(--mc-admin-accent) 0%, #38bdf8 100%);
  border-color: rgba(0, 249, 255, 0.45);
}
.mc-admin-content .mc-model-card__btn--primary:hover {
  filter: brightness(1.06);
}
.mc-admin-content .mc-model-card__btn--ghost {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.45);
  border-color: var(--mc-admin-border);
}
.mc-admin-content .mc-model-card__btn--disabled {
  color: #64748b;
  background: rgba(15, 23, 42, 0.35);
  border-color: var(--mc-admin-border);
}
.mc-admin-content .mc-model-card__status {
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}
.mc-admin-content .mc-model-card__status--ready {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.45);
}
.mc-admin-content .mc-model-card__status--failed {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.45);
}
.mc-admin-content .mc-model-card__status--queued,
.mc-admin-content .mc-model-card__status--converting {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
}

/* ---------- 模型列表可见性筛选 + 右键菜单 ---------- */
.mc-vis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}
.mc-vis-tabs__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #64748b;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.mc-vis-tabs__link:hover {
  color: #334155;
  border-color: rgba(100, 116, 139, 0.45);
}
.mc-vis-tabs__link.is-active {
  color: #0f172a;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35) 0%, rgba(37, 99, 235, 0.2) 100%);
  border-color: rgba(37, 99, 235, 0.35);
}
.mc-admin-content .mc-vis-tabs__link {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.45);
  border-color: var(--mc-admin-border);
}
.mc-admin-content .mc-vis-tabs__link:hover {
  color: #e2e8f0;
}
.mc-admin-content .mc-vis-tabs__link.is-active {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.45);
}
.mc-context-menu {
  position: fixed;
  z-index: 10050;
  min-width: 148px;
  padding: 4px 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}
.mc-context-menu__item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 9px 14px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  color: #1e293b;
}
.mc-context-menu__item:hover {
  background: #f1f5f9;
}

/* ---------- 材质管理（登录端卡片） ---------- */
.mc-material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.mc-material-card {
  display: flex;
  flex-direction: column;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 5px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: rgba(100, 100, 111, 0.15) 0px 3px 12px 0px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.mc-material-card:hover {
  border-color: #94a3b8;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 4px 14px 0px;
}
.mc-material-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  overflow: hidden;
}
.mc-material-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mc-material-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
}
.mc-material-card__vis {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: #f8fafc;
  border-radius: 6px;
  max-width: calc(100% - 16px);
}
.mc-material-card__vis--pub {
  background: rgba(21, 128, 61, 0.88);
}
.mc-material-card__vis--priv {
  background: rgba(71, 85, 105, 0.88);
}
.mc-material-card__body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mc-material-card__title {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mc-material-card__meta {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}
.mc-material-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mc-material-card__mini-form {
  margin: 0;
  display: inline;
}

.mc-table-mat-preview-cell {
  width: 1%;
  vertical-align: middle;
  padding: 6px 8px !important;
}
.mc-table-mat-thumb {
  display: block;
  width: auto;
  max-width: 80px;
  height: auto;
  max-height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.mc-library-mat-table .mc-table-mat-thumb {
  max-width: 64px;
  max-height: 48px;
}

.mc-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}
.mc-pagination__summary {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}
.mc-pagination__controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mc-pagination .mc-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* 资源批量管理与编辑 */
.mc-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--mc-admin-border);
  border-radius: 10px;
}
.mc-bulk-toolbar__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
}
.mc-bulk-toolbar__select {
  min-width: 140px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--mc-admin-border);
  background: var(--mc-admin-card);
  color: inherit;
}
.mc-list-filters {
  margin: 12px 0 16px;
}
.mc-list-filters__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.mc-list-filters__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
}
.mc-list-filters__item select {
  min-width: 160px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--mc-admin-border);
  background: var(--mc-admin-card);
  color: inherit;
}
.mc-list-filters--browse {
  margin: 12px 0 16px;
}
.mc-body .mc-list-filters--browse select {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
}
.mc-resource-card {
  position: relative;
}
.mc-card-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 4px;
  padding: 2px 4px;
}
.mc-pill--cat {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.45);
  color: #cbd5e1;
}
.mc-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-edit-modal[hidden] {
  display: none !important;
}
.mc-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.mc-edit-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  padding: 20px;
  background: var(--mc-admin-card);
  border: 1px solid var(--mc-admin-border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.mc-edit-modal__title {
  margin: 0 0 16px;
  font-size: 1.125rem;
}
.mc-edit-modal__form .mc-form__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.mc-edit-modal__form input,
.mc-edit-modal__form select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--mc-admin-border);
  background: rgba(15, 23, 42, 0.4);
  color: inherit;
}
.mc-edit-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.mc-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
