.sgh-main-shell { background: #f1f5f9 !important; min-height: 70vh; }
.sgh-page { padding: 16px 18px 40px; max-width: 1180px; }
.sgh-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.sgh-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sgh-accent {
  width: 4px; height: 22px; border-radius: 2px;
  background: linear-gradient(180deg, #f5c842, #d4af37);
  display: inline-block;
}
.sgh-header h1 { margin: 0; font-size: 20px; color: #0f172a; font-weight: 700; }
.sgh-hint { margin: 0 0 14px; color: #64748b; font-size: 13px; line-height: 1.4; }
.sgh-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.sgh-btn {
  cursor: pointer; border: 1px solid #a67c1a; border-radius: 6px;
  background: linear-gradient(180deg, #f5c842, #d4af37 55%, #a67c1a);
  color: #111; font-weight: 700; padding: 7px 14px; font-size: 13px;
}
.sgh-btn.sgh-secondary { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
.sgh-btn.sgh-danger {
  background: linear-gradient(180deg, #f87171, #dc2626 55%, #991b1b);
  border-color: #991b1b; color: #fff;
}
.sgh-btn.sgh-ok {
  background: linear-gradient(180deg, #86efac, #22c55e 55%, #15803d);
  border-color: #15803d; color: #fff;
}
.sgh-th-all { color: #f5c842; }
.sgh-msg { font-size: 13px; margin-left: 6px; }
.sgh-msg.ok { color: #15803d; }
.sgh-msg.err { color: #b91c1c; }
.sgh-table-wrap { overflow: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.sgh-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 860px; }
.sgh-table th, .sgh-table td {
  border-bottom: 1px solid #e2e8f0; padding: 8px 10px; font-size: 12px; vertical-align: middle;
}
.sgh-table th { background: #0f172a; color: #f5c842; text-align: left; position: sticky; top: 0; }
.sgh-table input[type=text], .sgh-table input[type=number] {
  width: 100%; max-width: 140px; padding: 5px 7px; border: 1px solid #cbd5e1; border-radius: 4px;
}
.sgh-sub { color: #94a3b8; font-size: 11px; margin-top: 2px; word-break: break-all; }
.sgh-switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sgh-switch input { width: 16px; height: 16px; }

/* Side navbar — injected Game Hall item */
#sgh-nav-item {
  width: 100%;
  cursor: pointer;
}
#sgh-nav-item .sgh-nav-row,
#sgh-nav-item > span,
#sgh-nav-item span.ml-4,
#sgh-nav-item .sgh-nav-icon,
#sgh-nav-item svg {
  color: #e8eef7 !important;
  fill: currentColor;
  stroke: currentColor;
}
#sgh-nav-item .sgh-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5c842 !important;
}
#sgh-nav-item:hover > span,
#sgh-nav-item:hover .sgh-nav-row {
  background: rgba(255, 255, 255, 0.06);
}
/* Active: gold bar + light text (never dark-on-gold) */
#sgh-nav-item.sgh-nav-active,
#sgh-nav-item.sgh-nav-active > span,
#sgh-nav-item.sgh-nav-active .sgh-nav-row {
  background: rgba(245, 200, 66, 0.22) !important;
}
#sgh-nav-item.sgh-nav-active span,
#sgh-nav-item.sgh-nav-active span.ml-4,
#sgh-nav-item.sgh-nav-active .sgh-nav-icon,
#sgh-nav-item.sgh-nav-active svg {
  color: #ffffff !important;
  fill: currentColor;
  stroke: currentColor;
}
