:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #000000;
  --panel: rgba(0, 0, 0, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.028);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
  --accent: #ffffff;
  --accent-2: #dcdcdc;
  --danger: #ff7a7a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
  --sidebar-width: 320px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #000;
  overflow-x: hidden;
}

body.workspace-open {
  overflow: hidden;
}

body.workspace-open .portal-shell {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.shell {
  width: min(1600px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 0 0 20px;
}

.hero-copy-block {
  max-width: 760px;
}

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

.brand-lockup-inline {
  align-items: center;
}

.brand-copy {
  display: grid;
  gap: 2px;
  align-content: center;
}

.brand-mark {
  display: flex;
  align-items: center;
  width: clamp(128px, 15vw, 170px);
  flex: 0 0 auto;
}

.brand-mark-inline {
  width: clamp(118px, 15vw, 150px);
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.eyebrow {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 38px;
  line-height: 1.05;
  color: var(--text);
}

h2 {
  font-size: 28px;
  line-height: 1.15;
  color: var(--text);
}

.lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill,
.ghost,
button,
input {
  border-radius: 12px;
  border: 1px solid var(--line);
}

.pill {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.ghost,
button {
  min-width: 108px;
  height: 44px;
  padding: 0 18px;
  background: rgba(0, 0, 0, 0.92);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, filter 0.2s ease;
}

.ghost:hover,
button:hover {
  background: rgba(8, 8, 8, 0.98);
}

.ghost.danger {
  color: #ffd1d1;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.login-shell {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 24px 20px;
  display: grid;
  place-items: center;
}

.login-stage {
  width: min(760px, 100%);
  display: grid;
  gap: 28px;
  align-content: center;
  justify-items: stretch;
}

.login-hero {
  width: 100%;
}

.login-hero-logo-only {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 0 6px 30px;
}

.login-brand-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.login-brand-mark {
  width: clamp(118px, 12vw, 142px);
}

.login-brand-copy {
  display: grid;
  gap: 4px;
  align-content: end;
  width: 240px;
  padding-bottom: 10px;
}

.login-brand-title-cn {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  width: 100%;
}

.login-brand-title-en {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  width: 100%;
}

.auth-panel {
  width: 100%;
  padding: 30px;
}

.portal-user-cards {
  display: grid;
  gap: 10px;
}

.mini-stat {
  background: rgba(0, 0, 0, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.mini-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

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

.pending-auth {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.98);
}

.pending-auth strong {
  display: block;
  margin-bottom: 6px;
}

.pending-auth p {
  color: var(--muted);
}

.form-grid {
  width: 100%;
  display: grid;
  gap: 16px;
}

.card {
  display: grid;
  gap: 16px;
  background: rgba(0, 0, 0, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 28px;
}

.auth-card {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
}

.auth-card h2,
.section-head h2 {
  letter-spacing: 0;
}

.auth-card h2 {
  font-size: 26px;
  line-height: 1.05;
}

label {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  background: rgba(20, 20, 20, 0.98);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 24, 0.98);
}

input::placeholder {
  color: #6f7b88;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px rgba(20, 20, 20, 0.98) inset;
  box-shadow: 0 0 0 1000px rgba(20, 20, 20, 0.98) inset;
  caret-color: #ffffff;
  transition: background-color 9999s ease-in-out 0s;
}

button {
  justify-self: start;
  background: linear-gradient(180deg, #161616 0%, #050505 100%);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
}

button:hover {
  filter: none;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.auth-card .action-row {
  margin-top: 2px;
}

.auth-card button {
  width: 100%;
  min-width: 0;
  height: 50px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-eyebrow {
  margin-bottom: 6px;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.portal-shell {
  width: min(1600px, calc(100vw - 48px));
}

.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  width: 100%;
}

.sidebar-panel {
  position: fixed;
  top: 32px;
  left: max(24px, calc((100vw - 1600px) / 2));
  width: var(--sidebar-width);
  height: calc(100vh - 80px);
  overflow: auto;
  display: grid;
  gap: 16px;
  align-content: start;
  z-index: 20;
}

.sidebar-brand,
.sidebar-meta {
  display: grid;
  gap: 12px;
}

.admin-shell .sidebar-brand h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.06;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0;
}

.hero-text {
  color: var(--muted);
  line-height: 1.7;
}

.sidebar-meta {
  align-content: start;
}

.admin-shell .version-chip,
.admin-shell .user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid var(--line);
  color: var(--text);
}

.admin-shell .user-chip button {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.92);
  color: var(--text);
  line-height: 0;
}

.admin-shell .user-chip button:hover {
  color: var(--danger);
}

.admin-shell .user-chip button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-shell .chip-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-switch {
  margin: 0;
}

.system-switch-strip {
  display: grid;
  gap: 10px;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

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

.admin-shell .system-switch-head strong {
  color: var(--text);
  font-size: 15px;
}

.admin-shell .system-switch-head small {
  color: var(--muted);
  font-size: 13px;
}

.system-switch-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.admin-shell .switch-pill {
  min-width: 140px;
  display: grid;
  gap: 2px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(0, 0, 0, 0.92);
  text-align: left;
  color: var(--text);
  box-shadow: none;
  justify-self: auto;
}

.admin-shell .switch-pill.active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(12, 12, 12, 0.98);
  color: var(--text);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.admin-shell .switch-pill span {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.18;
}

.admin-shell .switch-pill:disabled {
  cursor: default;
}

.admin-shell .switch-pill.active:disabled {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(12, 12, 12, 0.98);
  color: var(--text);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.system-switch-empty {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.94);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.content-area {
  display: grid;
  gap: 20px;
  min-width: 0;
  width: calc(100% - var(--sidebar-width) - 20px);
  margin-left: calc(var(--sidebar-width) + 20px);
  align-content: start;
  padding-left: 0;
  min-height: calc(100vh - 80px);
}

.portal-summary {
  margin-top: 12px;
}

.portal-apps {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(320px, 340px) minmax(0, 1fr);
  gap: 20px;
}
.portal-account-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.account-panel {
  min-width: 0;
}

.account-grid {
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
}

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

.account-meta-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 8, 0.96);
}

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

.account-meta-list strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.account-app-panel {
  gap: 14px;
}

.account-app-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-app-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.9);
  color: var(--muted);
  font-size: 13px;
}

.workspace-shell {
  position: fixed;
  inset: 0;
  height: 100vh;
  width: 100vw;
  min-height: 0;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

.account-shell .content-area,
.admin-shell#platformAdminPanel .content-area {
  width: calc(100% - var(--sidebar-width) - 20px);
  margin-left: calc(var(--sidebar-width) + 20px);
}

.workspace-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: calc(var(--sidebar-width) + 20px + max(24px, calc((100vw - 1600px) / 2)));
  width: auto;
  margin-left: 0;
  height: 100vh;
  min-height: 0;
  padding: 0;
  display: block;
  overflow: hidden;
}

.workspace-shell > .workspace-content {
  width: auto;
  margin-left: 0;
}

.workspace-frame-panel {
  height: 100%;
  width: 100%;
  min-height: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 16px minmax(0, 1fr);
}

.workspace-frame-head {
  min-height: 58px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.workspace-frame-head h2 {
  font-size: 20px;
  line-height: 1.15;
}

.workspace-frame-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-frame-actions .ghost {
  height: 36px;
  min-width: 96px;
  padding: 0 14px;
  border-radius: 10px;
}

.workspace-frame {
  display: block;
  grid-row: 3;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 0;
  background: transparent;
}

.portal-grid,
.admin-panel {
  min-width: 0;
}

.workspace-content,
.account-shell .content-area,
#platformAdminPanel .content-area {
  overflow-x: hidden;
}

.platform-admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.platform-admin-create,
.platform-admin-list {
  display: grid;
  gap: 18px;
  align-content: start;
}

.platform-admin-create .admin-section-title,
.platform-admin-list .admin-summary {
  margin-bottom: 6px;
}

.app-checkboxes {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 14px;
}

.app-checkboxes legend {
  padding: 0 8px;
  color: var(--muted);
}

.checkbox-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.app-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  font-size: 14px;
  min-height: 36px;
  position: relative;
  padding-right: 32px;
  cursor: pointer;
}

.app-check input[type="checkbox"] {
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
}

.app-check::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 18, 18, 0.98);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-check::before {
  content: "";
  position: absolute;
  right: 5px;
  top: 50%;
  width: 7px;
  height: 4px;
  transform: translateY(-52%) rotate(-45deg);
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  opacity: 0;
  z-index: 1;
}

.app-check:has(input[type="checkbox"]:checked)::after {
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.98) 0%, rgba(14, 14, 14, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.34);
}

.app-check:has(input[type="checkbox"]:checked)::before {
  opacity: 1;
}

.app-check:has(input[type="checkbox"]:focus-visible)::after {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.app-check span {
  order: 1;
  flex: 1 1 auto;
}

.create-app-check,
.detail-app-check {
  padding: 4px 0;
}

.create-app-check span,
.detail-app-check span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  font-size: 15px;
  line-height: 1.4;
}

.detail-checkbox-grid {
  gap: 16px;
}

.detail-app-check {
  min-height: 36px;
}

.admin-user-form .app-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.detail-app-check span {
  font-size: 15px;
  font-weight: 600;
}

#platformAdminPanel .section-head {
  display: none;
}

#platformAdminPanel #portalHero {
  display: none;
}

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

.group-manager {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 7, 7, 0.96);
}

.group-manager-head {
  display: grid;
  gap: 4px;
}

.group-manager-head strong {
  font-size: 15px;
}

.group-manager-head small {
  color: var(--muted);
  font-size: 13px;
}

.group-manager-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 10px;
}

.group-manager-create input {
  min-height: 42px;
}

.group-manager-create button {
  width: 100%;
  min-width: 0;
}

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

.group-manager-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.9);
}

.group-manager-item.is-static {
  opacity: 0.92;
}

.group-manager-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.group-manager-meta strong {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-manager-meta small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.group-manager-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-self: end;
}

.group-action-btn {
  min-width: 66px;
  height: 34px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 10px;
}

.group-order-btn,
.user-order-btn {
  min-width: 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1;
}

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

.admin-search-row {
  display: flex;
  align-items: end;
  gap: 10px;
}

.admin-search-decoy {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.admin-search-decoy input {
  width: 0;
  min-width: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
}

.admin-search {
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
}

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

.admin-search input {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(8, 8, 8, 0.98) 100%);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.admin-search input:focus {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.admin-search-clear {
  min-width: 72px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.portal-app-panel,
.portal-summary {
  background: rgba(0, 0, 0, 0.96);
}

.app-copy {
  display: grid;
  gap: 4px;
}

.empty-app {
  min-height: 120px;
  align-content: center;
}

.app {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-user-card {
  gap: 12px;
}

.admin-group-section {
  display: grid;
  gap: 12px;
}

.admin-group-header {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.96);
  border: 1px solid var(--line);
  text-align: left;
}

.admin-group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.admin-group-meta {
  color: var(--muted);
  font-size: 13px;
}

.admin-group-header svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.admin-group-section.is-expanded .admin-group-header svg {
  transform: rotate(90deg);
}

.admin-group-users {
  display: grid;
  gap: 12px;
}

.admin-user-summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 110px auto;
  align-items: center;
  gap: 12px;
}

.admin-user-order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.admin-user-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
}

.admin-user-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.admin-user-card.is-expanded .admin-user-toggle svg {
  transform: rotate(180deg);
}

.admin-user-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-user-identity strong {
  font-size: 17px;
  line-height: 1.2;
}

.admin-user-identity small {
  color: var(--muted);
  font-size: 13px;
}

.admin-user-status {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: var(--muted);
  font-size: 12px;
}

.admin-user-status span {
  display: none;
}

.admin-user-status select {
  width: 110px;
  min-height: 34px;
}

.form-select {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background-color: #ffffff;
  color: #111827;
  padding: 0 40px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  box-shadow: none;
}

.form-select-compact {
  min-height: 34px;
}

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

.form-select:focus {
  outline: none;
}

.form-select:disabled {
  background-color: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.admin-user-card .admin-user-form[hidden] {
  display: none !important;
}

.admin-user-form {
  display: grid;
  gap: 14px;
}

.admin-user-form small {
  color: var(--muted);
}

.credit-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 7, 7, 0.96);
}

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

.credit-panel-head strong {
  font-size: 15px;
  line-height: 1.2;
}

.credit-balance {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.credit-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.credit-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.9);
  color: var(--muted);
  font-size: 13px;
}

.credit-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: end;
}

.credit-input {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.credit-input input {
  min-height: 42px;
}

.credit-actions button {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.admin-user-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.admin-user-form input,
.admin-user-form select {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(8, 8, 8, 0.98) 100%);
  color: var(--text);
  padding: 0 14px;
  appearance: none;
  box-shadow: none;
}

#adminCreateForm select {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(8, 8, 8, 0.98) 100%);
  color: var(--text);
  padding: 0 14px;
  appearance: none;
  box-shadow: none;
}

#adminCreateForm select,
.admin-user-form select {
  color-scheme: dark;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.76) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76) 50%, transparent 50%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(8, 8, 8, 0.98) 100%);
  background-position:
    calc(100% - 18px) calc(50% - 1px),
    calc(100% - 12px) calc(50% - 1px),
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

#adminCreateForm select option,
.admin-user-form select option {
  background: #0b0b0b;
  color: #ffffff;
}

#adminCreateForm select:focus {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  outline: none;
}

.admin-user-form select:focus {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  outline: none;
}

.admin-user-form label:has(select) {
  gap: 6px;
}

.app button {
  justify-self: start;
}

.app small {
  color: var(--muted);
}

.message {
  margin: 0 0 14px;
  min-height: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.6;
}

.message[hidden] {
  display: none !important;
}

.message[data-kind="error"] {
  color: #ffd8d8;
  border-color: rgba(232, 91, 91, 0.42);
  background: rgba(113, 24, 24, 0.22);
}

.message[data-kind="success"] {
  color: #d7f5e3;
  border-color: rgba(66, 184, 131, 0.38);
  background: rgba(20, 84, 53, 0.22);
}

.message[data-kind="info"] {
  color: #d7dde5;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.admin-message {
  margin: -6px 0 0;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-message[data-toast-visible="true"] {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1200;
  width: min(460px, calc(100vw - 32px));
  min-height: 0;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  text-align: center;
}

.admin-message[data-toast-visible="true"][data-kind="success"] {
  color: #ebfff3;
  border-color: rgba(66, 184, 131, 0.45);
  background: rgba(12, 38, 24, 0.96);
}

.admin-message[data-toast-visible="true"][data-kind="error"] {
  color: #ffe5e5;
  border-color: rgba(232, 91, 91, 0.45);
  background: rgba(58, 16, 16, 0.96);
}

.admin-message[data-toast-visible="true"][data-kind="info"] {
  color: #f2f5f8;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 18, 0.96);
}

.portal-home-btn[hidden] {
  display: none !important;
}

.launch-shell {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 24px 20px;
  display: grid;
  place-items: center;
}

.launch-panel {
  width: min(680px, 100%);
}

.launch-status {
  display: flex;
  gap: 18px;
  align-items: center;
}

.launch-footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.launch-note {
  color: var(--muted);
}

.auth-card button {
  background: linear-gradient(180deg, #161616 0%, #050505 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-card button:hover {
  background: linear-gradient(180deg, #141414 0%, #050505 100%);
}

.loader-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: #ffffff;
  animation: spin 0.9s linear infinite;
  flex: 0 0 auto;
}

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

@media (max-width: 720px) {
  .shell {
    width: min(100%, calc(100% - 24px));
    margin: 16px auto 28px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-lockup {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .brand-mark {
    width: 140px;
  }

  .brand-mark-inline {
    width: 132px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  .login-shell,
  .launch-shell {
    padding: 16px;
  }

  .login-stage {
    width: 100%;
    gap: 20px;
  }

  .login-brand-mark {
    width: 112px;
  }

  .login-brand-title-cn {
    font-size: 18px;
  }

  .login-brand-title-en {
    font-size: 10px;
  }

  .auth-panel {
    padding: 20px;
  }

  .card {
    padding: 22px;
  }

  .auth-card h2 {
    font-size: 23px;
  }

  .login-hero-logo-only {
    padding-left: 20px;
  }

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

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

  .sidebar-panel {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    overflow: visible;
  }

  .content-area,
  .workspace-shell .content-area,
  .account-shell .content-area,
  .admin-shell#platformAdminPanel .content-area {
    width: 100%;
    margin-left: 0;
  }

  .workspace-shell {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .workspace-content {
    position: static;
    left: auto !important;
    right: auto;
    bottom: auto;
    height: auto;
    min-height: calc(100vh - 80px);
  }

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

  .launch-status,
  .launch-footer {
    align-items: flex-start;
  }

  .sidebar-meta .user-chip,
  .sidebar-meta .version-chip {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (min-width: 1180px) {
  .version-chip,
  .user-chip,
  .system-switch-strip {
    width: 100%;
  }

  .version-chip,
  .user-chip {
    justify-content: flex-start;
  }

  .user-chip {
    justify-content: space-between;
  }

  .system-switch-strip {
    margin: 0;
    padding: 16px 14px;
    border-radius: 18px;
    min-height: 240px;
  }

  .system-switch-head {
    padding: 2px 4px 8px;
  }

  .system-switch-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .switch-pill {
    width: 100%;
    min-height: 56px;
  }
}

/* Unified light theme override */
:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-2: #eef2f7;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.78);
  --line: rgba(148, 163, 184, 0.24);
  --line-strong: rgba(148, 163, 184, 0.32);
  --text: #111827;
  --muted: #5f6b7c;
  --accent: #1d4ed8;
  --accent-2: #1e40af;
  --danger: #b91c1c;
  --shadow: 0 20px 52px rgba(15, 23, 42, 0.08);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 26%),
    radial-gradient(circle at bottom right, rgba(30, 64, 175, 0.06), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.brand-logo {
  filter: drop-shadow(0 10px 24px rgba(148, 163, 184, 0.18));
}

.eyebrow,
.login-brand-title-cn,
.login-brand-title-en,
h1,
h2,
.admin-shell .sidebar-brand h1,
.admin-shell .system-switch-head strong,
.account-meta-list strong,
.credit-balance,
.credit-panel-head strong,
.admin-user-identity strong,
.app-check,
.switch-pill,
.user-chip,
.version-chip,
button,
input,
select,
textarea {
  color: var(--text);
}

.eyebrow,
.login-brand-title-en {
  color: var(--accent-2);
}

.lead,
label,
.mini-stat span,
.pending-auth p,
.hero-text,
.system-switch-head small,
.system-switch-empty,
.account-meta-list span,
.account-app-list span,
.message,
.app small,
.admin-user-identity small,
.admin-user-status,
.admin-search span,
.credit-input,
.credit-stats span,
.launch-note {
  color: var(--muted);
}

.pill,
.mini-stat,
.pending-auth,
.card,
.panel,
.system-switch-strip,
.system-switch-empty,
.portal-app-panel,
.portal-summary,
.app,
.credit-panel {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow);
}

.pill {
  background: rgba(239, 246, 255, 0.92);
}

.ghost,
.admin-search-clear,
.admin-user-toggle,
.admin-shell .version-chip,
.admin-shell .user-chip,
.admin-shell .user-chip button,
.topbar-unified-login {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--text);
  box-shadow: none;
}

.ghost:hover,
.admin-search-clear:hover,
.admin-user-toggle:hover,
.admin-shell .user-chip button:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.24);
}

.ghost.danger,
.admin-shell .user-chip button:hover {
  color: var(--danger);
}

.switch-pill,
.admin-shell .switch-pill {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: none;
}

.switch-pill:hover,
.admin-shell .switch-pill:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.24);
}

.switch-pill.active,
.switch-pill.active:disabled,
.admin-shell .switch-pill.active,
.admin-shell .switch-pill.active:disabled {
  background: rgba(239, 246, 255, 0.96);
  border-color: rgba(37, 99, 235, 0.26);
  color: var(--accent-2);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

input,
.admin-search input,
.admin-user-form input,
.admin-user-form select,
#adminCreateForm select {
  background: #ffffff;
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.3);
}

input::placeholder,
.admin-search input::placeholder {
  color: #94a3b8;
}

input:focus,
.admin-search input:focus,
#adminCreateForm select:focus,
.admin-user-form select:focus {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #111827;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  box-shadow: 0 0 0 1000px #ffffff inset;
  caret-color: #111827;
}

.app button,
.credit-actions button,
.admin-user-form button,
.action-row button,
#refreshBtn,
#portalHomeBtn,
#logoutBtn,
#accountViewBtn {
  background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%);
  border-color: rgba(30, 58, 138, 0.26);
  color: #ffffff;
}

.app button:hover,
.credit-actions button:hover,
.admin-user-form button:hover,
.action-row button:hover,
#refreshBtn:hover,
#portalHomeBtn:hover,
#logoutBtn:hover,
#accountViewBtn:hover,
.auth-card button:hover,
.launch-panel button:hover {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: rgba(29, 78, 216, 0.3);
}

.ghost,
.admin-search-clear,
.admin-user-toggle,
.admin-shell .user-chip button {
  color: var(--text);
}

.ghost.danger {
  color: var(--danger);
}

.account-meta-list div,
.account-app-list span {
  border-color: rgba(148, 163, 184, 0.2);
  background: #f8fafc;
}

.app-checkboxes {
  border-color: rgba(148, 163, 184, 0.22);
}

.app-checkboxes legend {
  color: var(--muted);
}

.app-check::after {
  border-color: rgba(148, 163, 184, 0.36);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.06);
}

.app-check::before {
  border-left-color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.app-check:has(input[type="checkbox"]:checked)::after {
  background: rgba(239, 246, 255, 0.98);
  border-color: rgba(37, 99, 235, 0.38);
}

.app-check:has(input[type="checkbox"]:focus-visible)::after {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), inset 0 0 0 1px rgba(37, 99, 235, 0.04);
}

#adminCreateForm select,
.admin-user-form select {
  color-scheme: light;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.25 5.5 7 9.25 10.75 5.5' stroke='%2364748B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}

#adminCreateForm select option,
.admin-user-form select option {
  background: #ffffff;
  color: #111827;
}

.credit-stats span {
  border-color: rgba(37, 99, 235, 0.14);
  background: #eff6ff;
  color: #1e40af;
  font-weight: 600;
}

.credit-stats span:nth-child(2) {
  border-color: rgba(34, 197, 94, 0.14);
  background: #f0fdf4;
  color: #166534;
}

.credit-stats span:nth-child(3) {
  border-color: rgba(249, 115, 22, 0.16);
  background: #fff7ed;
  color: #c2410c;
}

.action-row .ghost.danger {
  background: #fff1f2;
  border-color: rgba(239, 68, 68, 0.22);
  color: #b91c1c;
  box-shadow: none;
}

.action-row .ghost.danger:hover {
  background: #ffe4e6;
  border-color: rgba(239, 68, 68, 0.28);
  color: #991b1b;
}

.message {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.96);
}

.message[data-kind="error"] {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(254, 242, 242, 0.96);
}

.message[data-kind="success"] {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(240, 253, 244, 0.96);
}

.message[data-kind="info"] {
  color: #475569;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.96);
}

.group-manager {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow);
}

.group-manager-head strong,
.group-manager-meta strong,
.admin-group-title {
  color: var(--text);
}

.group-manager-head small,
.group-manager-meta small,
.admin-group-meta {
  color: var(--muted);
}

.group-manager-create input {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text);
}

.group-manager-create input::placeholder {
  color: #94a3b8;
}

.group-manager-create button {
  background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%);
  border-color: rgba(30, 58, 138, 0.26);
  color: #ffffff;
}

.group-manager-create button:hover {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: rgba(29, 78, 216, 0.3);
  color: #ffffff;
}

.group-manager-item,
.admin-group-header {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--text);
  box-shadow: none;
}

.group-manager-item.is-static {
  background: #f8fafc;
  opacity: 1;
}

.admin-group-header:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.22);
}

.group-action-btn {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text);
  box-shadow: none;
}

.group-action-btn:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.24);
  color: var(--accent-2);
}

.user-order-btn {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.24);
  color: #0f172a;
  box-shadow: none;
}

.user-order-btn:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.45);
  color: #0f172a;
}

.admin-user-summary .user-order-btn {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--text);
  box-shadow: none;
}

.admin-user-summary .user-order-btn:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.24);
  color: var(--accent-2);
}

.group-action-btn.danger,
.ghost.danger.group-action-btn {
  background: #fff1f2;
  border-color: rgba(239, 68, 68, 0.22);
  color: #b91c1c;
}

.group-action-btn.danger:hover,
.ghost.danger.group-action-btn:hover {
  background: #ffe4e6;
  border-color: rgba(239, 68, 68, 0.28);
  color: #991b1b;
}

.admin-message[data-toast-visible="true"] {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px));
  padding: 16px 20px;
  border-radius: 16px;
  text-align: center;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.global-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 4000;
  transform: translate(-50%, -50%);
  width: min(380px, calc(100vw - 40px));
  min-height: 0;
  margin: 0;
  padding: 14px 18px;
  border-radius: 14px;
  text-align: center;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
  pointer-events: none;
  backdrop-filter: blur(14px);
  font-weight: 600;
  letter-spacing: 0;
  animation: toastFadeIn 0.22s ease-out;
}

.global-toast[hidden] {
  animation: none;
}

.global-toast[data-hiding="true"] {
  animation: toastFadeOut 0.22s ease-in forwards;
}

.global-toast[data-kind="success"] {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.34);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.985) 0%, rgba(220, 252, 231, 0.985) 100%);
}

.global-toast[data-kind="error"] {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.34);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.99) 0%, rgba(254, 226, 226, 0.99) 100%);
}

.global-toast[data-kind="info"] {
  color: #475569;
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.99) 100%);
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes toastFadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 6px)) scale(0.98);
  }
}

.admin-message[data-toast-visible="true"][data-kind="success"] {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(240, 253, 244, 0.98);
}

.admin-message[data-toast-visible="true"][data-kind="error"] {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(254, 242, 242, 0.98);
}

.admin-message[data-toast-visible="true"][data-kind="info"] {
  color: #475569;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.98);
}

.loader-ring {
  border-color: rgba(148, 163, 184, 0.26);
  border-top-color: #1d4ed8;
}
