:root { color-scheme: light; font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif; }
[hidden] { display:none !important; }
.cost-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0; }
.cost-metrics>div { padding:16px;background:#f0f6ff;border:1px solid #e1eaf7;border-radius:12px;color:#65778d;font-size:13px; }
.cost-metrics strong { display:block;margin-top:8px;color:#1e487f;font-size:21px;font-weight:600;overflow-wrap:anywhere; }
.cost-warning,.legacy-cost { background:#fffbef;border:1px solid #f0e5c6;border-radius:10px;padding:13px;font-size:13px;line-height:1.7;color:#816334; }
.cost-customer { border:1px solid #dce6f2;border-radius:12px;padding:16px;min-width:0; }
.cost-customer>summary { display:flex;justify-content:space-between;gap:14px;cursor:pointer;font-weight:500;overflow-wrap:anywhere; }
.cost-customer small,.cost-table small { display:block;color:#76859a;font-size:12px;font-weight:400;margin-top:4px; }
.cost-table { overflow:auto; }.cost-table table { width:100%;border-collapse:collapse; }.cost-table td,.cost-table th { text-align:left;padding:12px;border-bottom:1px solid #e6edf6;font-size:13px; }
@media(max-width:700px){.cost-metrics{grid-template-columns:1fr}.cost-customer>summary{flex-direction:column}.cost-metrics strong{font-size:19px}}
.auth-locked #signOut { display:none; }
#modelTestResult:empty { display:none; }
.nav-groups { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.nav-groups button { width:auto; margin:0; padding:11px 18px; background:transparent; color:#52657d; font-weight:500; }
.nav-groups button.selected { background:#e0edff; color:#155ec3; }
.toolbar { flex-wrap:wrap; }
.toolbar button.selected { color:#155ec3; border-color:#9bbfec; }
.config-section { margin-top:18px; border:1px solid #e1e9f3; border-radius:12px; padding:16px; }
.config-section summary, #scenePolicies summary { cursor:pointer; font-weight:600; padding:5px 0; }
.config-section summary span { color:#7b8ba2; font-weight:400; font-size:13px; margin-left:10px; }
.config-section[open] summary { margin-bottom:16px; }
.actual-model { font:13px/1.7 "Segoe UI",sans-serif; color:#356080; overflow-wrap:anywhere; }
#scenePolicies details { margin-top:16px; }
#scenePolicies details label { margin-top:12px; }
#scenePolicies input[type=checkbox] { width:auto; margin-left:12px; }
#independentAsrSchemes { display:contents; }
body:not(.auth-locked) .side #email,body:not(.auth-locked) .side #password,body:not(.auth-locked) .side #login { display:none; }
@media(min-width:1000px) { .shell { grid-template-columns:220px minmax(0,1fr) !important; } .side { padding:24px 20px !important; } .side h1 { font-size:22px; } }
@media(max-width:700px) { .nav-groups button { flex:1 1 40%; } .config-section summary span { display:block; margin:6px 0 0; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #eef4fb; color: #122033; }
.shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.side { padding: 28px; background: rgba(255,255,255,.78); backdrop-filter: blur(18px); border-right: 1px solid #dce6f2; }
h1 { margin: 0; font-size: 28px; }
h2 { margin: 0 0 18px; font-size: 22px; }
p { color: #5d6e85; }
input, textarea, button, select { width: 100%; border: 1px solid #d6dfeb; border-radius: 8px; padding: 11px 12px; font: inherit; outline: none; }
input:focus, textarea:focus { border-color: #3d8bff; box-shadow: 0 0 0 3px rgba(61,139,255,.14); }
textarea { min-height: 100px; resize: vertical; }
button { cursor: pointer; border: 0; background: #3d8bff; color: white; font-weight: 700; margin-top: 10px; }
button:hover { filter: brightness(.96); }
.side input { margin-top: 12px; }
.status { margin-top: 14px; color: #5d6e85; line-height: 1.5; word-break: break-word; }
.content { padding: 28px; overflow: auto; }
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; }
.toolbar button { width: auto; min-width: 96px; margin: 0; background: white; color: #122033; border: 1px solid #dce6f2; }
.panel { display: none; background: rgba(255,255,255,.88); border: 1px solid #dce6f2; border-radius: 10px; padding: 22px; }
.panel.active { display: block; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; }
.searchbar { display: grid; grid-template-columns: 1fr 120px; gap: 10px; margin-bottom: 14px; }
.searchbar button { margin: 0; }
.list { display: grid; gap: 10px; margin-top: 18px; }
.item { background: #f7faff; border: 1px solid #e2ebf6; border-radius: 8px; padding: 12px; line-height: 1.55; }
.item small { color: #6b7c92; }
.empty { color: #6b7c92; padding: 18px; }
.user-card { display: grid; gap: 12px; }
.user-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.head-actions { display: flex; gap: 10px; align-items: center; }
.badge { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; background: #e8eef7; color: #53647b; }
.badge.active { background: #e7f8ee; color: #128246; }
.badge.disabled { background: #fdeaea; color: #c23a3a; }
.manage-btn { width: auto; margin: 0; padding: 8px 16px; border-radius: 8px; background: #3d8bff; color: white; border: 0; }
.summary { display: flex; gap: 16px; flex-wrap: wrap; color: #52667f; font-size: 13px; }
.detail { display: none; border-top: 1px solid #e2ebf6; padding-top: 12px; }
.detail.open { display: grid; gap: 12px; }
.meta { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 8px 14px; color: #52667f; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions button { width: auto; margin: 0; padding: 8px 10px; font-size: 13px; background: #ffffff; color: #17324d; border: 1px solid #d6dfeb; }
.actions button:hover { background: #edf5ff; }
@media (max-width: 860px) { .shell { grid-template-columns: 1fr; } .side { border-right: 0; border-bottom: 1px solid #dce6f2; } }

.model-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 14px; }
.model-card { background: #f7faff; border: 1px solid #e2ebf6; border-radius: 8px; padding: 14px; display: grid; gap: 10px; }
.model-card h3 { margin: 0 0 4px; font-size: 17px; }
.model-card label { display: grid; gap: 6px; color: #52667f; font-size: 13px; font-weight: 700; }
.hint { color: #6b7c92; font-size: 13px; }
.secondary { background: #ffffff; color: #17324d; border: 1px solid #d6dfeb; }
.muted-box { color: #52667f; }
@media (max-width: 980px) { .model-grid { grid-template-columns: 1fr; } }

.searchbar.compact { grid-template-columns: 180px 160px; max-width: 380px; }
.compact-grid { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
#usageSummary h3 { margin: 18px 0 8px; font-size: 16px; }
.badge.blocked { background: #fdeaea; color: #c23a3a; }
.glossary-row.selected { border-color: #3d8bff; background: #edf6ff; }
.inline-check { display: inline-flex !important; align-items: center; gap: 8px; }
.inline-check input { width: auto; }

body { background: linear-gradient(135deg, #eef5fc 0%, #f7fbff 46%, #eaf3fb 100%); }
.side h1 { letter-spacing: 0; line-height: 1.2; }
.side p { line-height: 1.6; font-size: 14px; }
.toolbar { position: sticky; top: 0; z-index: 3; padding: 0 0 14px; background: linear-gradient(180deg, rgba(238,244,251,.98), rgba(238,244,251,.72)); backdrop-filter: blur(12px); }
.toolbar button { min-width: 82px; box-shadow: 0 8px 18px rgba(22, 74, 120, .05); }
.toolbar button:hover { background: #edf5ff; filter: none; }
.panel { box-shadow: 0 18px 48px rgba(28,67,120,.08); }
.item { box-shadow: 0 8px 22px rgba(28,67,120,.04); }
.item b { color: #102033; }
button.secondary, .actions button { transition: background .15s ease, border-color .15s ease, transform .15s ease; }
button.secondary:hover, .actions button:hover { transform: translateY(-1px); }
.status { padding: 12px; border-radius: 8px; background: rgba(247,250,255,.76); border: 1px solid #e2ebf6; }

.auth-locked .shell {
  grid-template-columns: minmax(320px, 420px);
  justify-content: center;
  align-items: start;
  padding: 56px 18px;
}
.auth-locked .side {
  border: 1px solid #dce6f2;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(28,67,120,.10);
}
.auth-locked .content {
  display: none;
}
.auth-locked .side p {
  margin-bottom: 22px;
}


.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 6px 0 14px;
  padding: 9px 12px;
  border: 1px solid rgba(61, 139, 255, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #315273;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}

.home-link:hover {
  background: #edf5ff;
  transform: translateY(-1px);
}

/* ============================================================
   电竞板块样式
   ============================================================ */
.esports-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.esports-team-card {
  cursor: pointer;
  border: 2px solid rgba(180, 200, 220, 0.5);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  transition: all .15s ease;
}
.esports-team-card:hover {
  border-color: #3d8bff;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 139, 255, 0.15);
}
.esports-team-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}
.esports-team-card .name-en {
  font-weight: 700;
  font-size: 13px;
  color: #1f2c3d;
  margin-bottom: 2px;
}
.esports-team-card .name-zh {
  font-size: 12px;
  color: #56708a;
  margin-bottom: 4px;
}
.esports-team-card .region {
  font-size: 11px;
  color: #97a5b5;
}

.esports-player-item {
  cursor: pointer;
  padding: 10px 14px;
  margin-bottom: 6px;
  border: 1px solid rgba(180, 200, 220, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}
.esports-player-item:hover {
  background: #fff;
  border-color: #3d8bff;
}
.esports-player-item .row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.esports-player-item .muted {
  color: #7d8b9d;
  font-size: 12px;
}

button.danger {
  background: #ff5b5b;
  color: #fff;
  border-color: #ff5b5b;
}
button.danger:hover {
  background: #ff3a3a;
}

.account-form { max-width: 480px; display: grid; gap: 12px; }
/* Bulk glossary maintenance: scoped, no changes to other admin panels. */
.bulk-glossary { margin-bottom: 24px; }
.bulk-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bulk-columns label { min-width: 0; }
.bulk-columns textarea { min-height: 190px; line-height: 1.65; white-space: pre; overflow: auto; }
.bulk-table-wrap { max-height: 520px; overflow: auto; }
.bulk-glossary table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.bulk-glossary th, .bulk-glossary td { text-align: left; padding: 10px; border-bottom: 1px solid #dce6f2; overflow-wrap: anywhere; }
.bulk-glossary th { background: #edf4ff; position: sticky; top: 0; }
.bulk-glossary input[type="checkbox"] { width: auto; }
.bulk-glossary tr[data-state="conflict"], .bulk-glossary tr[data-state="invalid"], .bulk-glossary tr[data-state="review"] { background: #fff5e8; }
.bulk-glossary button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 640px) { .bulk-columns { gap: 8px; } .bulk-glossary th, .bulk-glossary td { padding: 6px; } }
