:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --sidebar: #ffffff;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #6b7280;
  --soft: #f6f8fc;
  --line: #e5eaf3;
  --blue: #2f73ff;
  --blue-soft: #eef5ff;
  --red: #d94b63;
  --gold: #a87513;
  --shadow: 0 10px 30px rgba(35, 52, 84, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-toast {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 32px));
  border: 1px solid #bcd5ff;
  border-radius: 8px;
  padding: 13px 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(30, 58, 95, 0.16);
  font-size: 14px;
  font-weight: 950;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.login-page {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 0.86fr);
  min-height: 100vh;
  background: #eef4ff;
}

.login-visual {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: clamp(38px, 7vw, 90px);
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #2f73ff 0%, #437dff 52%, #2563eb 100%);
  color: #fff;
  transition: background 0.24s ease;
}

.login-page.admin-login-page .login-visual {
  background:
    radial-gradient(circle at 74% 22%, rgba(34, 211, 238, 0.32), transparent 24%),
    radial-gradient(circle at 20% 78%, rgba(16, 185, 129, 0.2), transparent 26%),
    linear-gradient(135deg, #071123 0%, #102a56 48%, #102f78 100%);
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.35;
}

.login-visual > * {
  position: relative;
  z-index: 1;
}

.login-visual h1 {
  max-width: 620px;
  margin: 72px 0 18px;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.04;
}

.login-visual p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.8;
}

.login-orbits {
  position: absolute;
  right: 10%;
  bottom: 10%;
  width: 260px;
  height: 260px;
}

.front-login-benefits,
.admin-login-metrics {
  display: none;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 32px;
}

.front-login-benefits {
  display: grid;
}

.login-page.admin-login-page .front-login-benefits {
  display: none;
}

.front-login-benefits article,
.admin-login-metrics article {
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.front-login-benefits span,
.front-login-benefits strong,
.admin-login-metrics span,
.admin-login-metrics em {
  display: block;
  color: rgba(232, 246, 255, 0.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.front-login-benefits strong {
  margin-top: 7px;
  color: #fff;
  font-size: 16px;
}

.admin-login-metrics strong {
  display: block;
  margin: 6px 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.login-page.admin-login-page .admin-login-metrics {
  display: grid;
}

.login-orbits span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.login-orbits span:nth-child(1) {
  inset: 0;
}

.login-orbits span:nth-child(2) {
  inset: 44px;
}

.login-orbits span:nth-child(3) {
  inset: 96px;
  background: rgba(255, 255, 255, 0.14);
}

.login-panel {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: 42px clamp(28px, 7vw, 88px);
}

.login-card {
  position: relative;
  display: grid;
  width: min(100%, 466px);
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-page.admin-login-page .login-card {
  overflow: hidden;
  border-color: rgba(96, 165, 250, 0.42);
  background:
    linear-gradient(rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 92% 0%, rgba(34, 211, 238, 0.22), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow:
    0 28px 90px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.login-page.admin-login-page .login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2f73ff, #22d3ee, #10b981, #2f73ff);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
}

.front-auth-only,
.admin-auth-only {
  display: none;
}

.login-page.front-login-page .front-auth-only {
  display: flex;
}

.login-page.admin-login-page .admin-auth-only {
  display: flex;
}

.front-login-chip,
.admin-login-chip {
  align-items: center;
  gap: 8px;
  width: max-content;
  border: 1px solid #d7e5ff;
  border-radius: 999px;
  padding: 7px 11px;
  background: #f3f8ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.login-page.admin-login-page .admin-login-chip {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(239, 248, 255, 0.86);
  color: #1d4ed8;
  letter-spacing: 0.04em;
}

.front-login-chip {
  border-color: #c7f0df;
  background: #f2fff7;
  color: #158052;
}

.front-login-chip span,
.admin-login-chip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.13);
}

.admin-login-safe {
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #dfe9fb;
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.08), rgba(34, 211, 238, 0.08));
}

.admin-login-safe span {
  flex: 0 0 auto;
  border-radius: 6px;
  padding: 5px 8px;
  background: #e8f1ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.admin-login-safe em {
  color: #536276;
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.login-page.admin-login-page .login-kicker,
.login-page.admin-login-page .admin-login-safe,
.login-page.admin-login-page #loginRoleLabel {
  display: none;
}

.admin-login-audit {
  justify-content: space-between;
  gap: 8px;
}

.admin-login-audit span {
  flex: 1;
  border: 1px solid #e0e9f7;
  border-radius: 6px;
  padding: 8px 6px;
  background: #f8fbff;
  color: #5c6d84;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.login-brand {
  height: auto;
  padding: 0;
  color: #fff;
}

.login-page.admin-login-page .login-brand {
  color: #f8fbff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.login-page.admin-login-page .login-brand .brand-icon {
  background: rgba(248, 251, 255, 0.96);
  color: #0f2b5f;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.28), 0 18px 34px rgba(0, 0, 0, 0.22);
}

.login-card h1 {
  margin: 0;
  font-size: 28px;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

#loginHint {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbff;
}

#loginHint.success {
  border-color: #bfe8d1;
  background: #f2fff7;
  color: #158052;
}

#loginHint.warning {
  border-color: #ffe1a8;
  background: #fff9ec;
  color: #96630f;
}

#loginHint.error {
  border-color: #ffd0d0;
  background: #fff7f7;
  color: #c24141;
}

.login-kicker {
  color: var(--blue) !important;
  font-size: 11px;
  font-weight: 900;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.login-tabs button {
  height: 36px;
  border: 0;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.login-tabs button.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.login-page.admin-login-page .login-tabs {
  display: none;
}

.login-page.admin-login-page .login-links {
  display: none;
}

.login-page.admin-login-page #loginRoleLabel.admin-locked select {
  color: var(--blue);
  background: #f3f8ff;
  font-weight: 900;
}

.login-page.admin-login-page .login-card h1 {
  font-size: 26px;
  letter-spacing: 0;
}

.login-page.admin-login-page #loginHint {
  border-color: rgba(34, 211, 238, 0.18);
  background: rgba(241, 248, 255, 0.72);
  color: #536276;
}

.login-card label,
.settings-grid label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.settings-grid .readonly-setting {
  min-height: 76px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
}

.settings-grid .readonly-setting strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.login-card input,
.login-card select,
.settings-grid input,
.settings-grid select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  font-size: 13px;
}

.account-manage-layout {
  display: grid;
  gap: 14px;
}

.account-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.1), rgba(34, 193, 255, 0.05)),
    #fff;
}

.account-profile-hero > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f73ff, #22c1ff);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.account-profile-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.account-profile-hero p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.account-hero-actions,
.account-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.account-stat-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid #dfe8f8;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.account-stat-grid span,
.account-security-list span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.account-stat-grid strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.account-stat-grid em,
.account-section-title span,
.account-card-actions span {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.account-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.account-section-card {
  display: grid;
  gap: 14px;
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.account-section-card.full {
  grid-column: 1 / -1;
}

.account-section-title {
  display: grid;
  gap: 4px;
}

.account-section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.account-form-grid .wide {
  grid-column: 1 / -1;
}

.account-security-list {
  display: grid;
  gap: 8px;
}

.account-security-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7faff;
}

.account-security-list strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.login-submit {
  height: 36px;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.login-page.admin-login-page .login-submit {
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(125, 211, 252, 0.22) inset;
}

.account-expired-banner {
  position: fixed;
  top: 14px;
  left: calc(var(--sidebar) + 18px);
  right: 18px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff7f7;
  color: #9f2525;
  box-shadow: 0 14px 34px rgba(159, 37, 37, 0.12);
}

.sidebar-collapsed .account-expired-banner {
  left: 86px;
}

.account-expired-banner strong {
  flex: 0 0 auto;
  color: #b42318;
  font-size: 14px;
  font-weight: 900;
}

.account-expired-banner span {
  flex: 1;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.account-expired-banner button {
  flex: 0 0 auto;
  height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.account-expired-mode .page-view:not(.hidden) {
  padding-top: 56px;
}

.login-options,
.login-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  font-size: 11px;
  font-weight: 500;
}

.login-options input[type="checkbox"] {
  width: 13px;
  height: 13px;
}

.login-options button,
.login-links button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.login-page.admin-login-page .login-options button,
.login-page.admin-login-page .login-options label {
  font-size: 10px;
}

.login-links {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.app-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100vh;
}

.app-layout.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.app-layout.sidebar-collapsed .sidebar {
  display: none;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: none;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid rgba(125, 211, 252, 0.18);
  background:
    radial-gradient(circle at 10% 0%, rgba(47, 115, 255, 0.22), transparent 32%),
    linear-gradient(180deg, #081426 0%, #0f1e38 58%, #111827 100%);
  color: #eaf4ff;
}

.app-layout.admin-console-mode {
  grid-template-columns: 244px minmax(0, 1fr);
  background: #eef4fb;
}

.app-layout.admin-console-mode .sidebar {
  display: none;
}

.app-layout.admin-console-mode .admin-sidebar {
  display: flex;
}

.admin-brand {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 18px;
  color: #fff;
  text-decoration: none;
}

.admin-brand .brand-icon {
  background: linear-gradient(135deg, #2f73ff, #22d3ee);
  box-shadow: 0 14px 34px rgba(47, 115, 255, 0.34);
}

.admin-brand strong,
.admin-brand em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-brand strong {
  font-size: 18px;
}

.admin-brand em {
  margin-top: 3px;
  color: #8db3da;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.admin-menu {
  display: grid;
  gap: 6px;
  padding: 8px 12px;
}

.admin-menu-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: #b7c8dc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.admin-menu-item span {
  color: #63d7ff;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  border-color: rgba(125, 211, 252, 0.24);
  background: linear-gradient(90deg, rgba(47, 115, 255, 0.28), rgba(34, 211, 238, 0.12));
  color: #fff;
}

.admin-sidebar-foot {
  margin-top: auto;
  border-top: 1px solid rgba(125, 211, 252, 0.16);
  padding: 16px 18px;
}

.admin-sidebar-foot span,
.admin-sidebar-foot strong {
  display: block;
}

.admin-sidebar-foot span {
  color: #84a4c6;
  font-size: 12px;
  font-weight: 900;
}

.admin-sidebar-foot strong {
  margin-top: 5px;
  color: #fff;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 20px;
  color: #111827;
  text-decoration: none;
  font-size: 24px;
  font-weight: 850;
}

.brand-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  font-size: 15px;
}

.side-menu {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
}

.menu-group {
  margin: 18px 0 7px;
  padding: 0 6px;
  color: #8b95a7;
  font-size: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  min-height: 38px;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 6px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
}

.menu-item:hover,
.menu-item.active {
  background: #f2f6ff;
  color: var(--blue);
}

.menu-item.sub-active {
  background: #eef4ff;
  color: var(--blue);
  font-weight: 700;
}

.menu-icon {
  display: inline-grid;
  width: 16px;
  place-items: center;
  color: currentColor;
  font-size: 13px;
}

.menu-item em,
.menu-item strong {
  margin-left: auto;
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.menu-item strong {
  background: #d77b16;
}

.group-menu-list {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.group-menu-item {
  min-height: 38px;
  padding: 9px 10px;
  font-size: 14px;
}

.group-menu-item span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-menu-empty {
  margin: 6px 0 0 28px;
  color: #a0a9b8;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.green {
  background: #20b26b;
}

.status-dot.yellow {
  background: #e9c84b;
}

.account-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  color: #4b5563;
  font-size: 13px;
}

.account-box button {
  border: 0;
  background: transparent;
  color: #6b7280;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.app-layout.admin-console-mode .topbar {
  height: 64px;
  background: rgba(248, 251, 255, 0.94);
}

.admin-topbar-title {
  display: none;
  margin-right: auto;
}

.app-layout.admin-console-mode .admin-topbar-title {
  display: block;
}

.admin-topbar-title span,
.admin-topbar-title strong {
  display: block;
}

.admin-topbar-title span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.admin-topbar-title strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 18px;
}

.admin-topbar-extra {
  display: none;
  flex: 1;
  min-width: 0;
  align-items: center;
  margin-left: 18px;
}

.app-layout.admin-console-mode .admin-topbar-extra {
  display: flex;
}

.admin-topbar-extra .model-security-note {
  max-width: 560px;
  margin-right: auto;
}

.admin-topbar-extra .title-actions {
  margin-right: auto;
}

.admin-console-only {
  display: none;
}

.app-layout.admin-console-mode .admin-console-only {
  display: inline-flex;
  align-items: center;
}

.admin-console-primary,
#adminPrimaryActionButton {
  min-width: 112px;
  justify-content: center;
}

.app-layout.admin-console-mode .collapse-button,
.app-layout.admin-console-mode .consult-button,
.app-layout.admin-console-mode #adminPortalButton,
.app-layout.admin-console-mode #roleBadge {
  display: none;
}

.app-layout.admin-console-mode .page-card {
  margin: 22px;
}

.app-layout.showcase-mode {
  grid-template-columns: minmax(0, 1fr);
  background: #020817;
}

.app-layout.showcase-mode .sidebar,
.app-layout.showcase-mode .admin-sidebar,
.app-layout.showcase-mode .topbar {
  display: none;
}

.app-layout.showcase-mode .workspace {
  min-height: 100vh;
}

.app-layout.showcase-mode .page-card {
  margin: 0;
}

.collapse-button,
.consult-button,
.login-button,
.create-button,
.secondary-button,
.danger-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #374151;
}

.collapse-button {
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  transition:
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.collapse-button:hover {
  border-color: #c6d8ff;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(47, 115, 255, 0.1);
}

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

.consult-button,
.login-button,
.create-button,
.secondary-button,
.danger-button {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.login-button,
.create-button {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.danger-button {
  border-color: #ffd7df;
  background: #fff5f7;
  color: #c83252;
}

.page-card {
  margin: 24px;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.page-title p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.page-title h1 {
  margin: 0;
  font-size: 24px;
}

.admin-compact-title {
  align-items: center;
  min-height: 44px;
  margin-bottom: 14px;
}

.admin-compact-title h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  line-height: 1.2;
}

.admin-compact-title h1::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f73ff, #22d3ee);
}

.admin-compact-title .title-actions {
  align-items: center;
}

.company-fund-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, auto);
  gap: 12px;
  align-items: center;
  min-width: 238px;
  overflow: hidden;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  padding: 12px 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.28), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 48%, #e8f7ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 32px rgba(47, 115, 255, 0.14);
}

.company-fund-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(47, 115, 255, 0.1);
}

.fund-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f73ff, #22c1ff);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(47, 115, 255, 0.24);
}

.company-fund-card div {
  position: relative;
  z-index: 1;
}

.company-fund-card em {
  display: block;
  color: #6b7a90;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.company-fund-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.tabs {
  display: flex;
  gap: 26px;
  min-height: 42px;
  margin: 0 -24px 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tabs button {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.tabs button.active {
  color: var(--blue);
  font-weight: 750;
}

.tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
}

.filter-panel {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) 90px;
  gap: 12px;
  margin: 18px 0;
}

.filter-panel select,
.filter-panel input,
.filter-panel button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.filter-panel select,
.filter-panel input {
  padding: 0 12px;
  color: #374151;
}

.filter-panel button {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 750;
}

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

.agent-card {
  position: relative;
  min-height: 306px;
  overflow: hidden;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.agent-card:hover {
  transform: translateY(-3px);
  border-color: #b9d1ff;
  box-shadow: 0 16px 36px rgba(47, 115, 255, 0.13);
}

.agent-card[data-detail-agent] {
  cursor: pointer;
}

.agent-face {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  place-items: center;
  border: 6px solid #f2f4f8;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.role-avatar-wrap {
  overflow: visible;
  border-color: #eef4ff;
  background: #fff;
  color: inherit;
  image-rendering: pixelated;
}

.role-avatar-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 12px rgba(35, 52, 84, 0.16));
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}

.role-avatar-img {
  display: block;
  width: 112%;
  height: 112%;
  margin: -6%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  image-rendering: pixelated;
}

.army-avatar-button.role-avatar-wrap,
.employee-avatar.role-avatar-wrap {
  border: 5px solid #eef4ff;
  border-radius: 50%;
  padding: 0;
  background: #fff;
}

.employee-avatar.role-avatar-wrap {
  flex: 0 0 64px;
}

.pixel-role-avatar {
  position: relative;
  overflow: visible;
  border-color: #edf3ff;
  background:
    radial-gradient(circle at 50% 36%, #ffffff 0 22%, #dce8ff 23% 43%, var(--suit) 44% 68%, #172033 69%);
  image-rendering: pixelated;
}

.pixel-role-avatar i {
  position: absolute;
  display: block;
  image-rendering: pixelated;
}

.pixel-role-avatar .role-head {
  left: 50%;
  top: 15%;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  background: var(--skin);
  box-shadow:
    -5px 6px 0 var(--skin),
    5px 6px 0 var(--skin),
    0 0 0 4px #172033;
}

.pixel-role-avatar .role-hair {
  left: 50%;
  top: 8%;
  width: 30px;
  height: 13px;
  transform: translateX(-50%);
  background: var(--hair);
  box-shadow:
    -8px 9px 0 -1px var(--hair),
    8px 9px 0 -1px var(--hair);
}

.pixel-role-avatar .role-eyes {
  left: 50%;
  top: 34%;
  width: 20px;
  height: 9px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, #fff 0 36%, transparent 36% 64%, #fff 64%),
    linear-gradient(90deg, #172033 0 18%, transparent 18% 68%, #172033 68%);
  box-shadow:
    -5px 8px 0 -3px #f48ca0,
    5px 8px 0 -3px #f48ca0,
    0 12px 0 -4px #7f1d1d;
}

.pixel-role-avatar .role-body {
  left: 50%;
  bottom: 9%;
  width: 26px;
  height: 22px;
  transform: translateX(-50%);
  background: var(--suit);
  box-shadow:
    inset 0 -7px 0 var(--suit-dark),
    inset 11px 0 0 var(--accent),
    0 0 0 4px #172033;
}

.pixel-role-avatar .role-prop {
  right: 10%;
  bottom: 18%;
  width: 12px;
  height: 18px;
  background: var(--accent);
  box-shadow: 0 0 0 3px #172033;
}

.pixel-role-avatar.avatar-strategist .role-hat {
  left: 50%;
  top: -8%;
  width: 34px;
  height: 7px;
  transform: translateX(-50%);
  background: #111827;
  box-shadow:
    7px -14px 0 -3px #111827,
    7px -8px 0 -3px #ffd166;
}

.pixel-role-avatar.avatar-strategist .role-prop {
  right: 7%;
  bottom: 8%;
  width: 4px;
  height: 32px;
  background: #8a5d22;
  box-shadow:
    0 0 0 2px #172033,
    -2px -4px 0 2px #ffd166;
}

.pixel-role-avatar.avatar-support .role-prop {
  right: 5%;
  bottom: 34%;
  width: 16px;
  height: 10px;
  background: #fff;
  box-shadow:
    0 0 0 3px #172033,
    -28px -17px 0 -5px #2b3a55,
    11px -17px 0 -5px #2b3a55;
}

.pixel-role-avatar.avatar-support .role-hair {
  background: #334155;
  box-shadow:
    -8px 9px 0 -1px #334155,
    8px 9px 0 -1px #334155;
}

.pixel-role-avatar.avatar-product .role-prop {
  right: 6%;
  bottom: 20%;
  width: 15px;
  height: 20px;
  background: #dbeafe;
  box-shadow:
    0 0 0 3px #172033,
    inset 0 5px 0 #5266d8,
    inset 0 11px 0 #22c55e;
}

.pixel-role-avatar.avatar-product .role-hair {
  background: #1e293b;
  box-shadow:
    -8px 9px 0 -1px #1e293b,
    8px 9px 0 -1px #1e293b;
}

.agent-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.agent-desc {
  display: grid;
  gap: 7px;
  min-height: 76px;
  margin: 0 auto 12px;
  color: #586273;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.agent-desc span {
  display: flex;
  min-width: 0;
  align-items: center;
  white-space: nowrap;
}

.agent-desc strong {
  flex: 0 0 auto;
  color: #374151;
  font-weight: 700;
}

.agent-desc em {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #586273;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tags {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 22px;
  margin-bottom: 10px;
  color: #8b95a7;
  font-size: 12px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tags span::before {
  content: "◎";
  color: #b2bccb;
  font-size: 12px;
}

.salary {
  margin-bottom: 4px;
  color: var(--red);
  font-weight: 800;
}

.salary span {
  display: inline-block;
  margin-left: 6px;
  border-radius: 4px;
  padding: 2px 6px;
  background: #fff1cf;
  color: var(--gold);
  font-size: 12px;
}

.hire-button {
  min-width: 120px;
  height: 38px;
  border: 1px solid #05070d;
  border-radius: 6px;
  background: #05070d;
  color: #fff;
  font-weight: 750;
}

.hire-button.hired {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hired-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #13b981;
  color: #fff;
  box-shadow: 0 8px 18px rgba(19, 185, 129, 0.24);
  font-size: 15px;
  font-weight: 900;
}

.agent-hover-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 54px 18px 18px;
  background: linear-gradient(180deg, rgba(47, 115, 255, 0), rgba(47, 115, 255, 0.72) 48%, #2f73ff 100%);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.agent-card:hover .agent-hover-actions,
.agent-card:focus-within .agent-hover-actions {
  opacity: 1;
  transform: translateY(0);
}

.trial-button {
  height: 38px;
  border: 1px solid #fff;
  border-radius: 6px;
  background: #fff;
  color: #27364b;
  font-weight: 800;
}

.trial-button:disabled {
  cursor: default;
  color: #9fb0cf;
  opacity: 0.82;
}

body.modal-open {
  overflow: hidden;
}

.agent-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(10px);
}

.agent-detail-overlay.hidden {
  display: none;
}

.agent-detail-modal {
  position: relative;
  width: min(760px, 92vw);
  overflow: hidden;
  border: 1px solid #cfe0fb;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
  transform-origin: 50% 42%;
  animation: agentDetailSpringIn 0.44s cubic-bezier(0.18, 0.9, 0.28, 1.18) both;
}

@keyframes agentDetailSpringIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }

  62% {
    opacity: 1;
    transform: translateY(-4px) scale(1.018);
  }

  82% {
    transform: translateY(1px) scale(0.994);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.agent-detail-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #dce8ff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.agent-detail-close:hover {
  border-color: #bdd3ff;
  color: #2f73ff;
}

.agent-detail-hero {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 196px;
  gap: 20px;
  align-items: start;
  padding: 26px 30px 22px;
  border-bottom: 1px solid #dfeaff;
  background:
    radial-gradient(circle at 18% 12%, rgba(36, 198, 220, 0.16), transparent 33%),
    linear-gradient(135deg, rgba(47, 115, 255, 0.13), rgba(255, 255, 255, 0));
}

.agent-detail-avatar {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 6px solid #eef4ff;
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4edfb, 0 18px 38px rgba(47, 115, 255, 0.13);
}

.agent-detail-avatar .role-avatar-img {
  width: 82px;
  height: 82px;
  margin: 0;
  object-fit: contain;
  border-radius: 0;
}

.agent-detail-avatar .role-avatar-svg {
  width: 82px;
  height: 82px;
}

.agent-detail-hero h2 {
  max-width: calc(100% - 50px);
  margin: 0 0 8px;
  color: #121a2c;
  font-size: 24px;
  line-height: 1.25;
}

.agent-detail-hero p {
  margin: 0;
  color: #5f6d82;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.agent-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.agent-detail-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: #eef5ff;
  padding: 0 10px;
  color: #356fe6;
  font-size: 12px;
  font-weight: 700;
}

.agent-detail-pay-badge {
  align-self: start;
  justify-self: end;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-width: 184px;
  border: 1px solid #dce8ff;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(47, 115, 255, 0.1);
  text-align: center;
}

.agent-detail-pay-badge span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.agent-detail-pay-badge strong {
  color: var(--red);
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

.agent-detail-pay-badge em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.agent-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 18px;
  padding: 22px 30px 26px;
}

.agent-detail-workflow h3 {
  margin: 0 0 12px;
  color: #2f73ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.agent-detail-step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  margin-bottom: 10px;
  border: 1px solid #dce8ff;
  border-radius: 12px;
  background: #f8fbff;
  padding: 11px 14px 11px 34px;
}

.agent-detail-step span {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f73ff, #24c6dc);
  transform: translateY(-50%);
}

.agent-detail-step strong {
  color: #1d2939;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.agent-detail-step em {
  color: #586273;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.55;
  white-space: nowrap;
}

.agent-detail-price-card {
  align-self: start;
  border: 1px solid #dce8ff;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  text-align: left;
  box-shadow: 0 18px 36px rgba(47, 115, 255, 0.12);
}

.agent-detail-model {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}

.agent-detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.agent-detail-employment {
  display: grid;
  gap: 8px;
  margin-top: 0;
  text-align: left;
}

.agent-detail-employment div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 10px;
  min-height: 46px;
  padding: 10px;
  background: #f8fbff;
  align-items: center;
}

.agent-detail-employment span {
  color: #7b8798;
  font-size: 12px;
  line-height: 1.5;
}

.agent-detail-employment strong {
  color: #172033;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
}

.agent-detail-actions .trial-button,
.agent-detail-actions .hire-button {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  font-size: 13px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.agent-detail-actions .hire-button {
  border: 0;
  background: linear-gradient(135deg, #7b3cff, #20bdf2);
  box-shadow: 0 16px 30px rgba(47, 115, 255, 0.24);
}

.agent-detail-actions .trial-button:not(:disabled):hover,
.agent-detail-actions .hire-button:not(:disabled):hover {
  transform: translateY(-2px);
}

.agent-detail-actions .trial-button:not(:disabled):hover {
  border-color: #b9d1ff;
  background: #f7fbff;
  box-shadow: 0 12px 24px rgba(47, 115, 255, 0.12);
  color: #2f73ff;
}

.agent-detail-actions .hire-button:not(:disabled):hover {
  box-shadow:
    0 18px 34px rgba(47, 115, 255, 0.28),
    0 0 0 5px rgba(47, 115, 255, 0.08);
  filter: saturate(1.08);
}

.agent-detail-actions .trial-button:not(:disabled):active,
.agent-detail-actions .hire-button:not(:disabled):active {
  transform: translateY(0) scale(0.98);
}

.empty {
  grid-column: 1 / -1;
  padding: 50px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.metric-grid,
.group-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workgroup-composer {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.08), rgba(38, 195, 255, 0.06)),
    #fff;
  box-shadow: var(--shadow);
}

.workgroup-composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.workgroup-composer-head h1 {
  margin: 0 0 6px;
  font-size: 26px;
}

.workgroup-composer-head p {
  max-width: 720px;
}

.workgroup-composer-head > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.workgroup-composer label {
  color: #111827;
  font-size: 16px;
  font-weight: 850;
}

.workgroup-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: stretch;
}

.workgroup-input-row textarea {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
  resize: vertical;
  line-height: 1.7;
}

.workgroup-input-row button {
  align-self: end;
  min-height: 44px;
}

.workgroup-composer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 8px 0 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-grid article,
.group-card,
.info-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.front-dashboard-screen {
  display: grid;
  gap: 14px;
}

.dashboard-command-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.13), rgba(34, 193, 255, 0.08)),
    #fff;
  box-shadow: 0 18px 40px rgba(47, 115, 255, 0.11);
}

.dashboard-command-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-command-copy span,
.dashboard-panel-title span,
.dashboard-metric-grid span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.dashboard-command-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-command-copy p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.dashboard-command-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-metric-grid article,
.dashboard-panel {
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(47, 115, 255, 0.08);
}

.dashboard-metric-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.dashboard-metric-grid strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.dashboard-metric-grid em,
.dashboard-feed-list span,
.dashboard-employee-list span,
.dashboard-employee-list em,
.dashboard-announcement-list p,
.dashboard-gauge em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.dashboard-panel {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 16px;
}

.dashboard-wide-panel {
  min-height: 220px;
}

.dashboard-panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-panel-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.dashboard-panel-title span {
  color: #64748b;
  letter-spacing: 0;
  text-align: right;
}

.dashboard-ops-grid,
.dashboard-assets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 12px;
}

.dashboard-gauge {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #f6faff, #eef6ff);
}

.dashboard-gauge span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-gauge strong {
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.dashboard-gauge div {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #dfeaff;
}

.dashboard-gauge i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f73ff, #22c1ff);
}

.dashboard-cost-list,
.dashboard-health-list,
.dashboard-feed-list,
.dashboard-employee-list,
.dashboard-announcement-list {
  display: grid;
  gap: 8px;
}

.dashboard-cost-list div,
.dashboard-health-list div,
.dashboard-feed-list article,
.dashboard-employee-list button,
.dashboard-announcement-list article {
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbff;
}

.dashboard-cost-list div,
.dashboard-health-list div,
.dashboard-employee-list button {
  display: grid;
  align-items: center;
  gap: 10px;
}

.dashboard-cost-list div,
.dashboard-health-list div {
  grid-template-columns: minmax(70px, 0.8fr) minmax(0, 1fr);
}

.dashboard-cost-list span,
.dashboard-health-list span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-cost-list strong,
.dashboard-health-list strong,
.dashboard-feed-list strong,
.dashboard-employee-list strong,
.dashboard-announcement-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.dashboard-feed-list article {
  display: grid;
  gap: 4px;
}

.dashboard-employee-list button {
  grid-template-columns: minmax(160px, 1.35fr) minmax(90px, 0.8fr) auto;
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}

.dashboard-employee-list button:hover {
  background: #eef6ff;
  transform: translateY(-1px);
}

.dashboard-employee-list button:disabled {
  cursor: default;
  transform: none;
}

.dashboard-employee-list strong {
  display: grid;
  gap: 2px;
}

.dashboard-employee-list small {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-employee-list em {
  text-align: right;
}

.dashboard-announcement-list article {
  display: grid;
  gap: 5px;
  border-left: 3px solid #2f73ff;
}

.dashboard-announcement-list article div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dashboard-announcement-list article span {
  flex: 0 0 auto;
  width: max-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-announcement-list article strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-announcement-list p {
  margin: 0;
}

.group-card h3 {
  margin: 0 0 6px;
}

.group-card {
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 246px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.group-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #7c3cff, #26c3ff);
  content: "";
}

.group-card:hover {
  border-color: #b9d1ff;
  box-shadow: 0 18px 44px rgba(47, 115, 255, 0.16);
  transform: translateY(-2px);
}

.group-card-top {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.group-card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef4ff, #e8fbff);
  color: #2f73ff;
  font-size: 22px;
  font-weight: 900;
}

.group-card p,
.info-box {
  color: var(--muted);
  line-height: 1.7;
}

.group-card-top p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.group-requirement-preview {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.group-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-card-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.group-member-strip {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.group-member-avatar.role-avatar-wrap {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-right: -10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.group-member-avatar .role-avatar-img,
.group-member-avatar .role-avatar-svg {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.group-member-strip em {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-left: 4px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2f73ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

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

.group-card-footer strong {
  color: var(--muted);
  font-size: 12px;
}

.group-card-footer .secondary-button {
  height: 34px;
  padding: 0 14px;
}

.group-chat-layout {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  align-items: stretch;
  gap: 22px;
  height: calc(100vh - 88px);
  min-height: 620px;
}

.group-side-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  border: 1px solid #d8e6ff;
  border-radius: 10px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(243, 248, 255, 0.96), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 18px 40px rgba(37, 71, 123, 0.1);
}

.group-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.group-side-title strong {
  overflow: hidden;
  color: #4b5563;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-side-title .secondary-button {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
}

.group-requirement {
  border: 1px solid #e6eefb;
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.08), rgba(28, 184, 255, 0.06)),
    #f8fbff;
}

.group-requirement strong,
.group-side-panel h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
}

.group-requirement p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.group-side-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.group-side-panel select {
  height: 44px;
  border: 1px solid #d9e5f7;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-weight: 800;
}

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

.group-member {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 88px;
  border: 1px solid #dce8fb;
  border-radius: 10px;
  padding: 12px 34px 12px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.98)),
    #fff;
  box-shadow: 0 10px 22px rgba(47, 115, 255, 0.06);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.group-member:hover {
  z-index: 3;
  transform: translateY(-2px);
  border-color: #8eb8ff;
  box-shadow: 0 18px 30px rgba(47, 115, 255, 0.14);
}

.group-member.manager {
  border-color: #adc8ff;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.1), rgba(255, 255, 255, 0.98)),
    #fff;
}

.group-member-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ff4d67;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.18;
  transform: scale(0.9);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 77, 103, 0.28);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.group-member:hover .group-member-remove {
  opacity: 1;
  transform: scale(1);
}

.group-member-avatar.role-avatar-wrap {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.group-member-avatar .role-avatar-img,
.group-member-avatar .role-avatar-svg {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  border-radius: 0;
}

.member-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.group-member strong,
.group-member small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-member small {
  margin-top: 3px;
  color: var(--muted);
}

.group-member em {
  display: inline-flex;
  margin-top: 7px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf4ff;
  color: #2f73ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.dissolve-group-button {
  justify-self: start;
  width: 128px;
  margin-top: auto;
}

.group-workflow-card {
  display: grid;
  gap: 14px;
  border: 1px solid #d8e6ff;
  border-radius: 10px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.08), rgba(33, 185, 255, 0.03)),
    #fff;
  box-shadow: 0 14px 32px rgba(37, 71, 123, 0.08);
}

.group-workflow-card > strong,
.workflow-card-title strong {
  color: #6b7b93;
  font-size: 13px;
}

.workflow-card-title small {
  display: block;
  margin-top: 4px;
  color: #2f73ff;
  font-size: 11px;
  font-weight: 900;
}

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

.workflow-card-title b {
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
}

.workflow-current {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f4f8ff;
}

.workflow-current span,
.workflow-owner span {
  color: #6b7b93;
  font-size: 12px;
  font-weight: 900;
}

.workflow-current b {
  color: var(--blue);
  font-size: 18px;
}

.workflow-owner {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.workflow-owner-avatar {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px #dbe8ff;
}

.workflow-owner em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-owner b {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.workflow-owner em {
  color: #6b7b93;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.workflow-steps {
  display: grid;
  gap: 8px;
}

.workflow-steps span {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  color: #7b8aa1;
  font-size: 12px;
  font-weight: 900;
}

.workflow-steps i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #eef5ff;
  color: #7b8aa1;
  font-style: normal;
}

.workflow-steps span.done i,
.workflow-steps span.active i {
  background: linear-gradient(135deg, #2f73ff, #21b9ff);
  color: #fff;
}

.workflow-steps span.active {
  color: var(--blue);
}

.group-chat-panel {
  position: relative;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  border: 1px solid #d8e6ff;
  border-radius: 10px;
  background:
    radial-gradient(circle at 14% 0%, rgba(47, 115, 255, 0.12), transparent 30%),
    radial-gradient(circle at 92% 14%, rgba(26, 184, 255, 0.1), transparent 30%),
    #fff;
  box-shadow: 0 20px 46px rgba(37, 71, 123, 0.1);
}

.group-chat-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e3ecfb;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.1), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.88);
}

.group-chat-hero span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.group-chat-hero strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
}

.group-chat-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.group-chat-meta span {
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: #5b6b84;
}

.group-chat-panel .chat-messages {
  min-height: 0;
  align-content: start;
  background:
    linear-gradient(rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

.group-message {
  border: 1px solid rgba(206, 219, 240, 0.78);
  box-shadow: 0 12px 28px rgba(35, 52, 84, 0.08);
}

.group-message.system {
  justify-self: start;
  max-width: 86%;
  border-color: #c7dcff;
  background: #eef4ff;
}

.group-message.agent {
  border-top-left-radius: 3px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

.group-message.manager {
  border-color: #c7dcff;
  background: linear-gradient(135deg, #f8fbff, #edf5ff);
}

.group-message.active {
  border-color: #bad4ff;
  background:
    radial-gradient(circle at 100% 0%, rgba(33, 185, 255, 0.1), transparent 28%),
    linear-gradient(135deg, #f9fcff, #edf5ff);
}

.group-message.summary {
  border-color: #b7d2ff;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.1), rgba(255, 255, 255, 0.86)),
    #f5f9ff;
}

.group-message-mode {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.group-message-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.group-message-head strong {
  display: inline;
  margin: 0;
}

.group-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 4px 0;
}

.group-next-actions button {
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  padding: 8px 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
  color: #2f73ff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(47, 115, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.group-next-actions button:hover {
  transform: translateY(-1px);
  border-color: #7fb0ff;
  box-shadow: 0 14px 26px rgba(47, 115, 255, 0.14);
}

.group-message.system {
  border-color: #cfe0ff;
  background: linear-gradient(135deg, #eef5ff, #e8f1ff);
}

.group-message.user {
  border-color: #2f73ff;
  background: linear-gradient(135deg, #2f73ff, #21b9ff);
  box-shadow: 0 14px 30px rgba(47, 115, 255, 0.22);
}

.message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 4px;
}

.message-actions button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  color: #8a94a6;
  cursor: pointer;
}

.message-actions button img {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.9;
}

.message-actions button img.regenerate-icon {
  width: 16px;
  height: 16px;
}

.message-actions button:hover {
  background: transparent;
  color: var(--blue);
}

.message-actions button.done {
  color: #17b26a;
}

.chat-followup-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  padding: 2px 2px 0;
}

.chat-followup-suggestions button {
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #516179;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 71, 123, 0.08);
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.chat-followup-suggestions button:hover {
  border-color: #2f73ff;
  color: #2f73ff;
  box-shadow: 0 10px 22px rgba(47, 115, 255, 0.14);
  transform: translateY(-1px);
}

.workflow-chat-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  padding: 2px 2px 0;
}

.workflow-chat-actions span {
  border: 1px solid #d9e7ff;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(245, 249, 255, 0.92);
  color: #70819c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.workflow-chat-actions button {
  border: 1px solid #2f73ff;
  border-radius: 999px;
  padding: 8px 13px;
  background: #2f73ff;
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(47, 115, 255, 0.18);
  transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.workflow-chat-actions button:hover {
  background: #1f62ef;
  box-shadow: 0 12px 24px rgba(47, 115, 255, 0.24);
  transform: translateY(-1px);
}

.chat-starter-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 720px;
  width: min(100%, 720px);
  margin: auto;
  padding: 22px 16px;
  text-align: center;
}

.chat-starter-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border: 6px solid #eef5ff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(37, 71, 123, 0.1);
}

.chat-starter-avatar .role-avatar-img,
.chat-starter-avatar .role-avatar-svg {
  width: 60px;
  height: 60px;
  margin: 0;
  object-fit: contain;
}

.chat-starter-title {
  display: grid;
  gap: 6px;
  max-width: 620px;
}

.chat-starter-title strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.25;
}

.chat-starter-title span {
  color: #6b7a90;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
}

.chat-starter-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: min(100%, 660px);
  margin-top: 4px;
}

.chat-starter-options button {
  width: fit-content;
  max-width: min(100%, 420px);
  min-height: 38px;
  border: 1px solid #dfe7f5;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #526173;
  box-shadow: 0 8px 20px rgba(37, 71, 123, 0.07);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.chat-starter-options button:hover {
  border-color: #9ec2ff;
  color: var(--blue);
  box-shadow: 0 12px 24px rgba(47, 115, 255, 0.12);
  transform: translateY(-1px);
}

.user-message-context-menu {
  position: fixed;
  z-index: 1000;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(35, 52, 84, 0.16);
}

.user-message-context-menu button {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: transparent;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.user-message-context-menu button:hover {
  background: #eef5ff;
  color: #2f73ff;
}

.message-time {
  justify-self: center;
  margin: 6px 0 2px;
  color: #9aa1ad;
  font-size: 13px;
  font-weight: 700;
}

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

.admin-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.admin-category-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-category-stats article {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7e5ff;
  border-radius: 8px;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 88% 18%, rgba(34, 211, 238, 0.14), transparent 28%),
    #fff;
  box-shadow: 0 8px 18px rgba(37, 71, 123, 0.05);
}

.admin-category-stats article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2f73ff, #24c2ff);
}

.admin-category-stats span,
.admin-category-stats em {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
}

.admin-category-stats strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.category-admin-list {
  max-height: calc(100vh - 240px);
  overflow: auto;
  padding-right: 4px;
}

.category-admin-card p {
  min-height: 20px;
}

.category-admin-form {
  position: sticky;
  top: 18px;
}

.category-admin-card {
  gap: 8px;
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(37, 71, 123, 0.05);
}

.category-admin-card.active {
  box-shadow: 0 10px 22px rgba(47, 115, 255, 0.1);
}

.category-admin-card .admin-resource-head,
.category-admin-card .admin-resource-foot {
  gap: 8px;
}

.category-admin-card .admin-resource-head strong {
  font-size: 14px;
  line-height: 1.25;
}

.category-admin-card .admin-resource-head span,
.category-admin-card p,
.category-admin-card .admin-resource-foot span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.category-admin-card .admin-resource-head em {
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.category-admin-card .admin-resource-foot div {
  gap: 6px;
}

.category-admin-card .admin-resource-foot button {
  height: 26px;
  border-radius: 5px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

#sceneLevelList,
#enterpriseLevelList {
  gap: 8px;
}

#sceneLevelList .admin-resource-card,
#enterpriseLevelList .admin-resource-card {
  gap: 8px;
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(37, 71, 123, 0.05);
}

#enterpriseLevelList .admin-resource-card {
  gap: 6px;
  padding: 10px 12px;
}

#sceneLevelList .admin-resource-card.active,
#enterpriseLevelList .admin-resource-card.active {
  box-shadow: 0 10px 22px rgba(47, 115, 255, 0.1);
}

#sceneLevelList .admin-resource-head,
#sceneLevelList .admin-resource-foot,
#enterpriseLevelList .admin-resource-head,
#enterpriseLevelList .admin-resource-foot {
  gap: 8px;
}

#sceneLevelList .admin-resource-head strong,
#enterpriseLevelList .admin-resource-head strong {
  font-size: 14px;
  line-height: 1.25;
}

#sceneLevelList .admin-resource-head span,
#sceneLevelList .admin-resource-card p,
#sceneLevelList .admin-resource-foot span,
#enterpriseLevelList .admin-resource-head span,
#enterpriseLevelList .admin-resource-card p,
#enterpriseLevelList .admin-resource-foot span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

#sceneLevelList .admin-resource-head em,
#enterpriseLevelList .admin-resource-head em {
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

#sceneLevelList .admin-resource-foot div,
#enterpriseLevelList .admin-resource-foot div {
  gap: 6px;
}

#sceneLevelList .admin-resource-foot button,
#enterpriseLevelList .admin-resource-foot button {
  height: 26px;
  border-radius: 5px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

#enterpriseLevelList .admin-resource-card p {
  overflow: hidden;
  min-height: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-purchase-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border: 1px solid #dce8fb;
  border-radius: 6px;
  padding: 5px 6px 5px 8px;
  background: #f8fbff;
}

.level-purchase-link span {
  overflow: hidden;
  color: #5e6b80;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-purchase-link button {
  height: 22px;
  border: 1px solid #cfe0ff;
  border-radius: 5px;
  padding: 0 7px;
  background: #fff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.admin-data-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.admin-data-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-data-stats article {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7e5ff;
  border-radius: 8px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 84% 18%, rgba(34, 211, 238, 0.15), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(37, 71, 123, 0.06);
}

.admin-data-stats article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2f73ff, #24c2ff);
}

.admin-data-stats span,
.admin-data-stats em {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.admin-data-stats strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.admin-user-list-page,
.user-detail-layout {
  display: grid;
  gap: 16px;
}

.admin-user-toolbar,
.user-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.admin-user-toolbar span,
.user-detail-head span,
.user-chat-audit-head span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.admin-user-toolbar strong,
.user-detail-head h1,
.user-chat-audit-head strong {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.admin-user-table {
  overflow: hidden;
  border: 1px solid #e2eaf6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(30, 58, 95, 0.06);
}

.admin-user-row {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr 1.8fr 1.5fr 1.4fr 1fr 1.7fr;
  align-items: center;
  min-height: 74px;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid #edf2f8;
  color: #1e293b;
  font-size: 15px;
  font-weight: 800;
}

.admin-user-row:last-child {
  border-bottom: 0;
}

.admin-user-head {
  min-height: 56px;
  color: #475569;
  font-size: 13px;
  font-weight: 950;
  background: #f8fbff;
}

.admin-user-row .user-id {
  color: var(--blue);
  font-size: 18px;
  font-weight: 1000;
}

.admin-user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-user-actions button {
  min-width: 68px;
  height: 40px;
  border: 1px solid #dfe8f5;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.admin-user-actions .danger-button {
  border-color: #ffe1e1;
  color: #e98585;
  background: #fff8f8;
}

.admin-user-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.user-detail-layout {
  grid-template-columns: minmax(520px, 1.35fr) minmax(320px, 0.65fr);
  align-items: start;
}

.user-detail-main,
.user-chat-audit-panel {
  border: 1px solid #dce8f7;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30, 58, 95, 0.06);
}

.user-detail-form {
  margin-top: 16px;
}

.user-chat-detail-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.user-chat-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.user-chat-detail-toolbar span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.user-chat-detail-toolbar h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
}

.user-chat-audit-panel {
  display: grid;
  gap: 14px;
}

.user-chat-session-list {
  display: grid;
  max-height: min(680px, calc(100vh - 210px));
  overflow: auto;
  gap: 8px;
}

.user-chat-session-list button {
  display: grid;
  gap: 5px;
  border: 1px solid #e2eaf6;
  border-radius: 8px;
  padding: 11px 12px;
  text-align: left;
  background: #f8fbff;
  cursor: pointer;
}

.user-chat-session-list button.active {
  border-color: #9dc2ff;
  background: #edf5ff;
}

.user-chat-session-list strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.user-chat-session-list span {
  color: #738198;
  font-size: 12px;
  font-weight: 800;
}

.user-chat-message-view {
  min-height: min(620px, calc(100vh - 220px));
  border: 1px solid #edf2f8;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.user-chat-message-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f8;
  background: #fff;
}

.user-chat-message-title strong {
  color: var(--ink);
  font-weight: 950;
}

.user-chat-message-title span {
  color: #738198;
  font-size: 12px;
  font-weight: 800;
}

.user-chat-message-list {
  display: grid;
  align-content: start;
  max-height: min(560px, calc(100vh - 310px));
  overflow: auto;
  gap: 12px;
  padding: 14px;
}

.audit-chat-message {
  display: grid;
  gap: 6px;
  max-width: 92%;
}

.audit-chat-message.user {
  justify-self: end;
}

.audit-chat-message em {
  color: #738198;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.audit-chat-message div {
  border: 1px solid #e2eaf6;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #263348;
  font-size: 13px;
  line-height: 1.65;
}

.audit-chat-message.user div {
  border-color: #9dc2ff;
  color: #fff;
  background: linear-gradient(135deg, #2f73ff, #24a3ff);
}

.admin-order-shell {
  display: grid;
  gap: 14px;
}

.order-summary-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-order-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 110px;
  gap: 10px;
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 94% 20%, rgba(47, 115, 255, 0.08), transparent 28%),
    #fff;
  box-shadow: 0 12px 28px rgba(37, 71, 123, 0.05);
}

.admin-order-toolbar input,
.admin-order-toolbar select,
.admin-order-toolbar button {
  height: 40px;
  border: 1px solid #d7e5ff;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  outline: none;
}

.admin-order-toolbar input:focus,
.admin-order-toolbar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 115, 255, 0.12);
}

.admin-order-toolbar button {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

.admin-order-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-admin-card {
  min-height: 184px;
}

.order-admin-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-admin-body span {
  display: grid;
  gap: 4px;
  border: 1px solid #e4edf9;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbff;
  color: #708096;
  font-size: 12px;
  font-weight: 850;
}

.order-admin-body strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.order-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(8px);
}

.order-detail-overlay.hidden {
  display: none;
}

.order-detail-modal {
  position: relative;
  width: min(640px, 100%);
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  padding: 20px;
  background:
    linear-gradient(rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    #fff;
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: 0 28px 72px rgba(23, 35, 55, 0.22);
}

.order-detail-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  background: #fff;
  color: #617089;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.order-detail-head {
  padding-right: 42px;
}

.order-detail-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.order-detail-head h2 {
  margin: 5px 0 4px;
  color: #172033;
  font-size: 20px;
  line-height: 1.3;
}

.order-detail-head p {
  margin: 0;
  color: #71819a;
  font-size: 13px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.order-detail-grid div {
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  padding: 11px 12px;
  background: #f8fbff;
}

.order-detail-grid span,
.order-detail-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-detail-grid span {
  color: #71819a;
  font-size: 12px;
  font-weight: 500;
}

.order-detail-grid strong {
  margin-top: 3px;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

.order-detail-note {
  margin-top: 12px;
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #66758c;
  font-size: 12px;
  line-height: 1.65;
}

.order-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.purchase-consult-shell,
.membership-shell {
  display: grid;
  gap: 18px;
}

.purchase-consult-hero,
.membership-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  overflow: hidden;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(rgba(47, 115, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 88% 18%, rgba(34, 211, 238, 0.22), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  background-size:
    32px 32px,
    32px 32px,
    auto,
    auto;
  box-shadow: 0 24px 52px rgba(47, 115, 255, 0.1);
}

.purchase-consult-hero p,
.membership-hero p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
}

.purchase-consult-hero h1,
.membership-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.2;
}

.purchase-consult-hero span,
.membership-hero span {
  display: block;
  max-width: 720px;
  margin-top: 14px;
  color: #65758d;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.8;
}

.purchase-consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.purchase-consult-actions button,
.membership-hero button {
  min-width: 150px;
  height: 42px;
}

.purchase-consult-hero aside {
  display: grid;
  align-content: center;
  gap: 12px;
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.purchase-consult-hero aside strong {
  color: var(--ink);
  font-size: 20px;
}

.purchase-consult-hero aside p {
  color: #65758d;
  font-size: 13px;
  line-height: 1.7;
}

.purchase-consult-hero aside div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #536276;
  font-size: 13px;
  font-weight: 900;
}

.purchase-consult-hero aside div span {
  display: grid;
  width: 26px;
  height: 26px;
  margin: 0;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ff;
  color: var(--blue);
  font-size: 12px;
}

.consult-feature-grid,
.membership-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.consult-feature-grid article,
.membership-plan-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 32px rgba(37, 71, 123, 0.06);
}

.consult-feature-grid article::before,
.membership-plan-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2f73ff, #24c2ff);
}

.consult-feature-grid strong,
.membership-plan-top span {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.consult-feature-grid span {
  display: block;
  margin-top: 10px;
  color: #65758d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.7;
}

.membership-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.membership-plan-card {
  display: grid;
  gap: 14px;
  min-height: 360px;
}

.membership-plan-card.active {
  border-color: #8bb7ff;
  box-shadow: 0 20px 44px rgba(47, 115, 255, 0.14);
}

.membership-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.membership-plan-top em {
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.membership-plan-card > strong {
  color: #d94b63;
  font-size: 34px;
  line-height: 1;
}

.membership-plan-card > strong small {
  margin-left: 4px;
  color: #708096;
  font-size: 14px;
}

.membership-plan-card p {
  margin: 0;
  color: #65758d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.7;
}

.membership-benefits {
  display: grid;
  gap: 8px;
}

.membership-benefits span {
  border: 1px solid #e4edf9;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fbff;
  color: #536276;
  font-size: 12px;
  font-weight: 900;
}

.membership-plan-card button {
  align-self: end;
  height: 42px;
}

.form-section-title {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #edf3fb;
  padding-bottom: 12px;
}

.form-section-title span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.form-section-title strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.category-form-tip {
  border: 1px solid #d7e5ff;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.7;
}

.admin-resource-card {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgba(47, 115, 255, 0.1), transparent 26%),
    #fff;
  box-shadow: 0 12px 28px rgba(37, 71, 123, 0.06);
}

.admin-resource-card.active {
  border-color: #8bb7ff;
  box-shadow: 0 16px 34px rgba(47, 115, 255, 0.14);
}

.admin-resource-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2f73ff, #24c2ff);
}

.admin-resource-head,
.admin-resource-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-resource-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.admin-resource-head span,
.admin-resource-card p,
.admin-resource-foot span {
  color: #6b7a90;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.admin-resource-card p {
  margin: 0;
}

.admin-resource-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff5f7;
  color: #d94b63;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-resource-head em.configured {
  background: #e9fff1;
  color: #12a979;
}

.admin-resource-foot div {
  display: flex;
  gap: 8px;
}

.admin-resource-foot button {
  height: 32px;
  border: 1px solid #d7e5ff;
  border-radius: 6px;
  padding: 0 12px;
  background: #f4f8ff;
  color: #536276;
  font-weight: 900;
}

.admin-resource-foot button:hover {
  color: var(--blue);
}

.admin-resource-foot button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.user-level-control select {
  height: 32px;
  border: 1px solid #d7e5ff;
  border-radius: 6px;
  padding: 0 10px;
  background: #f8fbff;
  color: #374151;
  font-weight: 900;
  outline: none;
}

.user-level-control select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 115, 255, 0.12);
}

#enterprisePage {
  min-height: calc(100vh - 104px);
  margin: 0;
  padding: 30px;
  background:
    linear-gradient(rgba(55, 180, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 180, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #071123 0%, #10172f 46%, #111827 100%);
  background-size:
    42px 42px,
    42px 42px,
    auto;
  color: #eef7ff;
}

#enterprisePage .page-title {
  margin-bottom: 22px;
}

#enterprisePage .page-title p {
  color: #55f0ff;
  letter-spacing: 0.08em;
}

#enterprisePage .page-title h1 {
  color: #f8fbff;
  font-size: 32px;
  text-shadow: 0 0 24px rgba(85, 240, 255, 0.28);
}

.enterprise-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.enterprise-summary article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(13, 26, 52, 0.92), rgba(24, 40, 82, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 50px rgba(0, 0, 0, 0.28);
}

.enterprise-summary article::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: 0;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #55f0ff, #8b5cf6);
  opacity: 0.86;
}

.enterprise-summary span {
  display: block;
  color: #81e6ff;
  font-size: 12px;
  font-weight: 900;
}

.enterprise-summary strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 24px;
}

.enterprise-summary em {
  display: block;
  margin-top: 6px;
  color: #9bb4d6;
  font-size: 12px;
  font-style: normal;
}

.org-chart {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 10px;
  padding: 34px;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.94), rgba(15, 34, 68, 0.88)),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.05) 0 1px, transparent 1px 70px);
  box-shadow:
    inset 0 0 60px rgba(56, 189, 248, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.34);
}

.org-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(85, 240, 255, 0.1) 50%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.08) 54%, transparent 100%);
  mask-image: linear-gradient(#000, transparent 88%);
}

.org-company {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  min-width: min(520px, 100%);
  border: 1px solid rgba(85, 240, 255, 0.5);
  border-radius: 10px;
  padding: 20px 34px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(47, 115, 255, 0.22), rgba(139, 92, 246, 0.14));
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 42px rgba(85, 240, 255, 0.22);
}

.org-company span,
.org-company em {
  color: #9beaff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.org-company strong {
  margin: 8px 0;
  font-size: 30px;
  font-weight: 900;
}

.org-branches {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
}

.org-department {
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 10px;
  padding: 16px;
  background: rgba(8, 18, 40, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.24);
}

.org-department-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.org-department-head > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f73ff, #22d3ee);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.24);
}

.org-department h3,
.org-department p {
  margin: 0;
}

.org-department h3 {
  color: #f8fbff;
}

.org-department p {
  margin-top: 4px;
  color: #8aa8cc;
  font-size: 12px;
}

.org-employees {
  display: grid;
  gap: 10px;
}

.org-employee {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.74);
}

.org-employee strong,
.org-employee small,
.org-employee em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-employee strong {
  color: #eef7ff;
}

.org-employee small,
.org-employee em {
  color: #8aa8cc;
  font-size: 12px;
}

.org-employee em {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 8px;
  font-style: normal;
}

.org-avatar {
  box-shadow: 0 0 20px rgba(85, 240, 255, 0.18);
}

.employee-manage-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.org-employee.warning,
.employee-manage-row.warning {
  border-color: #ffd991;
  background: #fffaf0;
}

.org-employee.danger,
.employee-manage-row.danger {
  border-color: #ffc2cf;
  background: #fff5f7;
}

#enterprisePage .org-employee.warning {
  border-color: rgba(251, 191, 36, 0.46);
  background: rgba(72, 43, 12, 0.42);
}

#enterprisePage .org-employee.danger {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(73, 18, 38, 0.42);
}

.employee-manage-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.employee-manage-row strong,
.employee-manage-row span,
.employee-manage-row em {
  display: block;
}

.employee-manage-row span {
  margin-top: 4px;
  color: var(--muted);
}

.employee-manage-row em {
  margin-top: 6px;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.department-manage-card {
  overflow: hidden;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  box-shadow: var(--shadow);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.department-manage-card.drag-over {
  transform: translateY(-2px);
  border-color: #7eb1ff;
  box-shadow:
    0 18px 42px rgba(47, 115, 255, 0.18),
    inset 0 0 0 2px rgba(47, 115, 255, 0.12);
}

.department-manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e6edf8;
  padding: 16px 18px;
  background:
    linear-gradient(90deg, rgba(47, 115, 255, 0.08), transparent 58%),
    #fff;
}

.department-manage-head span,
.department-manage-head em {
  color: #6b7a90;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.department-manage-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 22px;
}

.department-name-editor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.department-name-editor input {
  width: min(360px, 42vw);
  height: 40px;
  border: 1px solid #dbe6f6;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.department-name-editor input:focus {
  border-color: #9ec2ff;
  box-shadow: 0 0 0 4px rgba(47, 115, 255, 0.09);
}

.department-name-editor button {
  height: 40px;
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  background: #eef5ff;
  padding: 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.department-name-editor button:hover {
  border-color: #9ec2ff;
  background: #e5efff;
  transform: translateY(-1px);
}

.department-manage-head em {
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef4ff;
  color: var(--blue);
}

.department-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.department-dismiss-button {
  height: 34px;
  border: 1px solid #ffd4dc;
  border-radius: 999px;
  background: #fff5f7;
  padding: 0 14px;
  color: #d92d5a;
  font-size: 12px;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.department-dismiss-button:hover {
  transform: translateY(-1px);
  border-color: #ffb8c7;
  box-shadow: 0 10px 22px rgba(217, 45, 90, 0.12);
}

.department-employee-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.department-empty-drop {
  grid-column: 1 / -1;
  display: grid;
  min-height: 84px;
  place-items: center;
  border: 1px dashed #c9daf8;
  border-radius: 8px;
  background: rgba(238, 245, 255, 0.54);
  color: #7b8aa5;
  font-size: 13px;
  font-weight: 800;
}

.department-employee-card {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  border: 1px solid #e2e9f6;
  border-radius: 8px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.06);
  cursor: grab;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.department-employee-card:hover {
  transform: translateY(-2px);
  border-color: #c7dcff;
  box-shadow: 0 16px 34px rgba(47, 115, 255, 0.12);
}

.department-employee-card.dragging {
  cursor: grabbing;
  opacity: 0.52;
  transform: scale(0.98);
}

.department-employee-card.drag-target {
  border-color: #2f73ff;
  box-shadow:
    0 18px 36px rgba(47, 115, 255, 0.18),
    inset 4px 0 0 #2f73ff;
}

.add-department-button {
  height: 46px;
  padding: 0 18px;
  box-shadow: 0 14px 30px rgba(47, 115, 255, 0.16);
}

.department-create-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 16px;
}

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

.role-admin-list {
  display: grid;
  align-self: stretch;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  contain: size;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.role-admin-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #e1e9f7;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  text-align: left;
}

.role-admin-item:hover,
.role-admin-item.active {
  border-color: #9ec2ff;
  background: #f5f9ff;
  box-shadow: 0 10px 24px rgba(47, 115, 255, 0.1);
}

.role-admin-item span,
.role-admin-item strong,
.role-admin-item small {
  display: block;
  min-width: 0;
}

.role-admin-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-admin-item small {
  overflow: hidden;
  margin-top: 4px;
  color: #7b8aa5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-admin-add {
  min-height: 48px;
  border: 1px dashed #9ec2ff;
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 16%, rgba(34, 211, 238, 0.14), transparent 30%),
    #f7fbff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
}

.role-admin-add:hover {
  border-style: solid;
  background: #eef6ff;
}

.role-admin-form {
  align-self: start;
}

.role-live-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #dce8ff;
  border-radius: 10px;
  background:
    radial-gradient(circle at 90% 8%, rgba(34, 211, 238, 0.16), transparent 34%),
    #f8fbff;
  padding: 18px;
}

.role-preview-avatar {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 6px solid #eef4ff;
  border-radius: 22px;
  background: #fff;
  image-rendering: pixelated;
}

.role-preview-avatar .role-avatar-img,
.role-preview-avatar .role-avatar-svg {
  width: 82px;
  height: 82px;
  margin: 0;
  object-fit: contain;
  border-radius: 0;
}

.role-live-preview strong,
.role-live-preview span {
  display: block;
}

.role-live-preview strong {
  color: var(--ink);
  font-size: 20px;
}

.role-live-preview span {
  margin-top: 6px;
  color: #7b8aa5;
  font-size: 13px;
  font-weight: 800;
}

.role-sprite-editor {
  display: grid;
  gap: 12px;
  border: 1px solid #dce8ff;
  border-radius: 10px;
  padding: 14px;
  background: #f8fbff;
}

.role-sprite-title {
  display: grid;
  gap: 4px;
}

.role-sprite-title strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.role-sprite-title span {
  color: #708096;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.6;
}

.role-sprite-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.role-sprite-card {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
}

.role-sprite-card:hover {
  border-color: #9ec2ff;
  box-shadow: 0 10px 22px rgba(47, 115, 255, 0.1);
}

.role-sprite-card span {
  color: #536276;
  font-size: 12px;
  font-weight: 900;
}

.role-sprite-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  image-rendering: pixelated;
}

.role-sprite-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.role-sprite-card em {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.department-salary-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  justify-items: end;
  gap: 3px;
  border: 1px solid #d8e5ff;
  border-radius: 8px;
  padding: 7px 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 255, 0.9));
  box-shadow: 0 10px 22px rgba(47, 115, 255, 0.1);
}

.department-salary-badge span,
.department-salary-badge strong {
  display: block;
  white-space: nowrap;
}

.department-salary-badge span {
  color: #6b7a90;
  font-size: 11px;
  font-weight: 900;
}

.department-salary-badge strong {
  color: #ff315f;
  font-size: 13px;
  font-weight: 900;
}

.department-employee-card.warning {
  border-color: #ffd991;
  background: #fffaf0;
}

.department-employee-card.danger {
  border-color: #ffc2cf;
  background: #fff5f7;
}

.department-employee-avatar {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #eef5ff;
}

.department-employee-avatar .role-avatar-img {
  width: 72px;
  height: 72px;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.department-employee-main {
  min-width: 0;
  padding-right: 114px;
}

.department-employee-main strong,
.department-employee-main span,
.department-employee-main em,
.department-employee-main b {
  display: block;
}

.department-employee-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-employee-main span {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-employee-main em {
  margin-top: 8px;
  color: #526173;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.department-employee-main b {
  margin-top: 6px;
  color: var(--blue);
  font-size: 12px;
}

.department-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  border-top: 1px solid #eef2f8;
  padding-top: 12px;
}

.department-actions button {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.row-actions button.danger {
  border-color: #ffd4dc;
  color: #d92d5a;
  background: #fff5f7;
}

.pixel-game-shell {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 3px solid #bcdcff;
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #b8efff 0%, #ddf8ff 42%, #f7fcff 100%);
  box-shadow:
    0 5px 0 #9ec8ff,
    0 26px 54px rgba(47, 115, 255, 0.13);
}

.enterprise-scene-viewport {
  position: relative;
  overflow: auto;
  margin-top: 10px;
  border: 3px solid #ffffff;
  border-radius: 6px;
  background: rgba(235, 247, 255, 0.68);
  box-shadow: inset 0 0 0 2px rgba(47, 115, 255, 0.18);
}

.enterprise-scene-surface {
  position: relative;
  min-width: 760px;
  margin: 0 auto;
  transition: width 0.22s ease;
}

.enterprise-canvas {
  display: block;
  width: 100%;
  min-height: 620px;
  border-radius: 3px;
  image-rendering: pixelated;
}

.enterprise-zoom-controls {
  position: absolute;
  right: 22px;
  top: 50%;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
  border: 2px solid rgba(197, 220, 255, 0.94);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 4px 0 rgba(159, 194, 255, 0.76),
    0 18px 34px rgba(47, 115, 255, 0.16);
}

.enterprise-zoom-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid #d8e6ff;
  border-radius: 12px;
  background: #f8fbff;
  color: #2f73ff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.enterprise-zoom-controls button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2f73ff, #22c1ff);
  box-shadow: 0 8px 18px rgba(47, 115, 255, 0.24);
  color: #fff;
}

.enterprise-zoom-controls button[data-enterprise-zoom="reset"] {
  width: 42px;
  font-size: 11px;
}

.enterprise-zoom-controls span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.enterprise-agent-menu {
  position: absolute;
  z-index: 40;
  display: none;
  width: min(240px, calc(100% - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.enterprise-hover-card {
  position: absolute;
  z-index: 38;
  display: none;
  width: min(240px, calc(100% - 24px));
  transform: translateX(-50%);
  border: 2px solid #cfe0ff;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 5px 0 rgba(159, 194, 255, 0.8),
    0 16px 34px rgba(47, 115, 255, 0.18);
  color: #172033;
  pointer-events: none;
}

.enterprise-hover-card.show {
  display: block;
}

.enterprise-hover-card strong,
.enterprise-hover-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-hover-card strong {
  font-size: 15px;
  font-weight: 900;
}

.enterprise-hover-card span {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.enterprise-hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.enterprise-hotspot {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.enterprise-hotspot::after {
  content: none;
}

.enterprise-label-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.pixel-game-shell.agent-hovering .enterprise-label-layer {
  opacity: 0.14;
  pointer-events: none;
}

.enterprise-map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 2px solid #d8e6ff;
  border-radius: 7px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 4px 0 rgba(159, 194, 255, 0.78),
    0 10px 18px rgba(47, 115, 255, 0.12);
  color: #2f73ff;
  cursor: grab;
  font-size: 14px;
  font-weight: 900;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  white-space: nowrap;
}

.enterprise-map-label.group {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: transparent;
}

.enterprise-map-label:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.03);
}

.enterprise-agent-menu.show {
  display: block;
}

.enterprise-agent-menu.locked {
  pointer-events: auto;
}

.enterprise-agent-card {
  border: 2px solid #cfe0ff;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 5px 0 rgba(159, 194, 255, 0.8),
    0 16px 34px rgba(47, 115, 255, 0.18);
}

.enterprise-agent-card strong,
.enterprise-agent-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-agent-card strong {
  color: #172033;
  font-size: 15px;
  font-weight: 900;
}

.enterprise-agent-card span {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.enterprise-agent-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.enterprise-agent-actions button,
.enterprise-agent-actions select {
  width: 100%;
  border: 1px solid #d8e4f8;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.enterprise-agent-actions button {
  padding: 8px 10px;
  background: linear-gradient(135deg, #2f73ff, #55d6ff);
  color: #fff;
  cursor: pointer;
}

.enterprise-agent-actions button.danger {
  border-color: #ffd3db;
  background: linear-gradient(135deg, #ff4d67, #ff8aa0);
}

.enterprise-agent-actions label {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.enterprise-agent-actions select {
  padding: 7px 8px;
}

#enterprisePage {
  min-height: calc(100vh - 56px);
  margin: 0;
  padding: 12px 26px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, #d9f6ff 0%, #f4fbff 44%, #eef4ff 100%);
  color: #172033;
}

#enterprisePage .page-title p {
  color: var(--blue);
  letter-spacing: 0;
}

#enterprisePage .page-title h1 {
  color: #111827;
  font-size: 28px;
  text-shadow: none;
}

#enterprisePage .enterprise-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

#enterprisePage .enterprise-summary article {
  border: 3px solid #d8e6ff;
  border-radius: 4px;
  padding: 14px 16px 14px 74px;
  min-height: 108px;
  background:
    radial-gradient(circle at 92% 14%, rgba(47, 115, 255, 0.09), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
  box-shadow:
    0 4px 0 #b8d2ff,
    0 12px 28px rgba(47, 115, 255, 0.1);
}

#enterprisePage .enterprise-summary article::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.14), rgba(34, 211, 238, 0.22)),
    #eef6ff;
  box-shadow:
    0 10px 24px rgba(47, 115, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  color: #2f73ff;
  font-size: 20px;
  font-weight: 900;
}

#enterprisePage .enterprise-summary article::after {
  display: block;
  left: 16px;
  right: auto;
  bottom: 14px;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f73ff, #22d3ee);
  opacity: 0.82;
}

#enterprisePage .enterprise-summary .company::before {
  content: "S";
}

#enterprisePage .enterprise-summary .scale::before {
  content: "▦";
  color: #0f9bb8;
}

#enterprisePage .enterprise-summary .revenue::before {
  content: "¥";
  color: #16a34a;
}

#enterprisePage .enterprise-summary .expense::before {
  content: "↘";
  color: #e85b7d;
}

#enterprisePage .enterprise-summary .scale::after {
  background: linear-gradient(90deg, #0f9bb8, #22d3ee);
}

#enterprisePage .enterprise-summary .revenue::after {
  background: linear-gradient(90deg, #16a34a, #5eead4);
}

#enterprisePage .enterprise-summary .expense::after {
  background: linear-gradient(90deg, #e85b7d, #f59e0b);
}

#enterprisePage .enterprise-summary span {
  color: #6b7c94;
  font-size: 12px;
  font-weight: 900;
}

#enterprisePage .enterprise-summary strong {
  margin-top: 6px;
  color: #14213d;
  font-size: 21px;
  line-height: 1.18;
}

#enterprisePage .enterprise-summary em {
  margin-top: 5px;
  color: #6c7c92;
  font-size: 12px;
}

#enterprisePage .org-chart {
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.pixel-office-shell {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  min-height: 760px;
  border: 4px solid #cce3ff;
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.9) 0 34px, transparent 35px),
    radial-gradient(circle at 72% 8%, rgba(255, 255, 255, 0.76) 0 42px, transparent 43px),
    linear-gradient(180deg, #b8efff 0%, #ddf8ff 36%, #f7fcff 100%);
  box-shadow:
    0 5px 0 #9ec8ff,
    0 26px 54px rgba(47, 115, 255, 0.13);
  image-rendering: pixelated;
}

.pixel-cloud {
  position: absolute;
  width: 104px;
  height: 28px;
  background: #fff;
  box-shadow:
    24px -12px 0 #fff,
    56px -4px 0 #fff,
    84px 0 0 rgba(255, 255, 255, 0.82);
  opacity: 0.88;
}

.cloud-a {
  top: 42px;
  left: 72px;
}

.cloud-b {
  top: 86px;
  right: 110px;
  transform: scale(0.82);
}

.pixel-office-hud {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 3px solid #6aa6ff;
  border-radius: 4px;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 4px 0 #8bb5ff;
  opacity: 0.96;
}

.pixel-office-hud strong {
  font-size: 20px;
}

.pixel-office-hud small {
  display: block;
  margin-top: 4px;
  color: #7b8ba4;
  font-size: 12px;
  font-weight: 800;
}

.pixel-office-hud span {
  color: #60708a;
  font-size: 13px;
  font-weight: 800;
}

.office-upgrade-button {
  border: 1px solid #bcd5ff;
  border-radius: 12px;
  padding: 9px 14px;
  color: #226ff6;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #edf6ff);
  box-shadow: 0 10px 22px rgba(54, 119, 255, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.office-upgrade-button:hover {
  transform: translateY(-2px);
  border-color: #6da8ff;
  box-shadow: 0 16px 28px rgba(54, 119, 255, 0.2);
}

.pixel-office-stage {
  position: relative;
  z-index: 1;
  margin: 30px 0 12px;
  width: 100%;
  min-height: clamp(720px, 74vw, 960px);
  perspective: 1200px;
}

.pixel-isometric-base {
  position: absolute;
  inset: 34px 24px 0;
  z-index: 0;
  transform: rotateX(58deg) rotateZ(45deg);
  transform-origin: center;
  border: 5px solid #9dc6ff;
  background:
    linear-gradient(90deg, rgba(164, 118, 48, 0.15) 1px, transparent 1px),
    linear-gradient(rgba(164, 118, 48, 0.15) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255,255,255,.16) 25%, transparent 25% 50%, rgba(255,255,255,.16) 50% 75%, transparent 75%),
    #f8dc94;
  background-size: 30px 30px, 30px 30px, 60px 60px;
  box-shadow:
    18px 18px 0 #75bfff,
    34px 34px 0 #4aa3f7;
}

.pixel-office-map {
  position: relative;
  z-index: 2;
  min-height: clamp(700px, 72vw, 940px);
  padding: 28px 34px 34px;
}

.pixel-scene-props,
.pixel-scene-props i {
  position: absolute;
  display: block;
}

.pixel-scene-props {
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.pixel-scene-props i {
  z-index: 2;
}

.pixel-scene-props .scene-wall {
  z-index: 0;
}

.scene-wall {
  background: #f8fbff;
  border: 4px solid #d7e4f5;
  box-shadow: 0 5px 0 #b8cbe5;
}

.wall-back {
  top: 74px;
  left: 11%;
  width: 78%;
  height: 44px;
  transform: skewX(-24deg);
}

.wall-left {
  top: 116px;
  left: 7%;
  width: 6%;
  height: 55%;
  transform: skewY(-24deg);
}

.scene-floor-zone {
  border: 0;
  opacity: 0.58;
  transform: skewX(-28deg);
}

.zone-left {
  left: 13%;
  top: 39%;
  width: 250px;
  height: 150px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.24) 25%, transparent 25% 50%, rgba(255,255,255,.24) 50% 75%, transparent 75%),
    #bcebd6;
  background-size: 22px 22px;
}

.zone-center {
  left: 38%;
  top: 35%;
  width: 300px;
  height: 170px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.24) 25%, transparent 25% 50%, rgba(255,255,255,.24) 50% 75%, transparent 75%),
    #dbe8ff;
  background-size: 22px 22px;
}

.zone-right {
  right: 12%;
  top: 31%;
  width: 240px;
  height: 148px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.24) 25%, transparent 25% 50%, rgba(255,255,255,.24) 50% 75%, transparent 75%),
    #ffe0a3;
  background-size: 22px 22px;
}

.scene-bookshelf {
  width: 96px;
  height: 70px;
  border: 4px solid #8a5b34;
  background:
    linear-gradient(90deg, #ca8b4c 0 10px, #7c5cff 10px 18px, #f8d36a 18px 28px, #2f73ff 28px 38px, #ca8b4c 38px 48px, #11a36b 48px 58px, #e85b7d 58px 68px, #ca8b4c 68px),
    #a66b3a;
  box-shadow: 0 7px 0 #744523;
}

.shelf-a {
  top: 17%;
  right: 10%;
}

.shelf-b {
  right: 7%;
  bottom: 22%;
  transform: scale(0.82);
}

.scene-vending {
  top: 23%;
  left: 12%;
  width: 48px;
  height: 86px;
  border: 4px solid #b92736;
  background:
    linear-gradient(#ff6b7e 0 18px, #fff7a8 18px 30px, #55d6ff 30px 46px, #ff6b7e 46px),
    #e23b4f;
  box-shadow: 0 7px 0 #8e2130;
}

.scene-sofa {
  left: 10%;
  bottom: 18%;
  width: 128px;
  height: 46px;
  border: 4px solid #6e83aa;
  border-radius: 5px 5px 2px 2px;
  background: #91a9d7;
  box-shadow: 0 8px 0 #556a91;
}

.scene-coffee {
  left: 23%;
  bottom: 19%;
  width: 58px;
  height: 28px;
  border: 4px solid #8c613f;
  background: #d6a064;
  box-shadow: 0 6px 0 #6f492d;
}

.scene-whiteboard {
  top: 15%;
  left: 45%;
  width: 150px;
  height: 62px;
  border: 4px solid #c7d4e5;
  background:
    linear-gradient(12deg, transparent 0 42%, #e85b7d 42% 45%, transparent 45%),
    linear-gradient(-8deg, transparent 0 58%, #2f73ff 58% 61%, transparent 61%),
    #fff;
  box-shadow: 0 7px 0 #94a3b8;
}

.scene-boss-desk {
  top: 17%;
  right: 31%;
  width: 126px;
  height: 58px;
  border: 4px solid #6d4429;
  background: #9d653c;
  box-shadow: 0 9px 0 #5d3822;
}

.scene-trophy {
  top: 11%;
  right: 33%;
  width: 24px;
  height: 36px;
  background: #f2c94c;
  box-shadow:
    -12px 8px 0 #f2c94c,
    12px 8px 0 #f2c94c,
    0 36px 0 #8a5b34;
}

.scene-workstation {
  width: 106px;
  height: 56px;
  border: 4px solid #9aa9bc;
  background:
    linear-gradient(#9be7ff 0 22px, transparent 22px),
    linear-gradient(90deg, #eef2f7 0 48px, transparent 48px 58px, #eef2f7 58px),
    #c9d4e5;
  box-shadow:
    0 8px 0 #7f8fa6,
    42px -22px 0 -12px #344055,
    42px -36px 0 -9px #9be7ff;
}

.station-a {
  left: 41%;
  top: 42%;
}

.station-b {
  left: 54%;
  top: 50%;
}

.station-c {
  left: 35%;
  top: 61%;
}

.scene-meeting-table-prop {
  left: 65%;
  top: 39%;
  width: 118px;
  height: 54px;
  border: 4px solid #8c613f;
  background: #d6a064;
  box-shadow:
    0 8px 0 #6f492d,
    -30px 18px 0 -8px #6e83aa,
    30px 18px 0 -8px #6e83aa,
    58px 2px 0 -8px #6e83aa;
}

.scene-file-cabinet {
  width: 58px;
  height: 54px;
  border: 4px solid #8aa1bf;
  background:
    linear-gradient(#eef5ff 0 16px, #c7d7ee 16px 19px, #eef5ff 19px 35px, #c7d7ee 35px 38px, #eef5ff 38px),
    #eef5ff;
  box-shadow: 0 7px 0 #647995;
}

.cabinet-a {
  left: 74%;
  top: 54%;
}

.cabinet-b {
  left: 22%;
  top: 48%;
}

.scene-display-stand {
  left: 16%;
  top: 62%;
  width: 76px;
  height: 42px;
  border: 4px solid #b98558;
  background:
    radial-gradient(circle at 18px 16px, #2f73ff 0 8px, transparent 9px),
    radial-gradient(circle at 48px 14px, #e85b7d 0 8px, transparent 9px),
    #ffe7a8;
  box-shadow: 0 8px 0 #8c613f;
}

.scene-desk-cluster {
  width: 154px;
  height: 82px;
  border: 4px solid #8aa1bf;
  background:
    linear-gradient(90deg, #eef2f7 0 46px, transparent 46px 54px, #eef2f7 54px 100px, transparent 100px 108px, #eef2f7 108px),
    linear-gradient(#9be7ff 0 22px, transparent 22px),
    #cfd9e8;
  box-shadow:
    0 8px 0 #6d7f98,
    16px -22px 0 -8px #344055,
    16px -34px 0 -6px #9be7ff,
    74px -22px 0 -8px #344055,
    74px -34px 0 -6px #9be7ff,
    128px -22px 0 -8px #344055,
    128px -34px 0 -6px #9be7ff;
}

.cluster-a {
  left: 48%;
  top: 36%;
}

.cluster-b {
  left: 30%;
  top: 70%;
  transform: scale(0.88);
}

.scene-lounge-rug {
  left: 9%;
  top: 66%;
  width: 180px;
  height: 92px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 12px, transparent 12px 24px),
    #d4c5ff;
  box-shadow: 0 5px 0 rgba(80, 62, 140, 0.24);
}

.scene-arcade {
  right: 13%;
  top: 25%;
  width: 48px;
  height: 76px;
  border: 4px solid #734b97;
  background:
    linear-gradient(#8ee8ff 0 28px, #ffd166 28px 42px, #ef476f 42px),
    #734b97;
  box-shadow: 0 8px 0 #4e3268;
}

.scene-water {
  right: 9%;
  top: 45%;
  width: 34px;
  height: 68px;
  border: 4px solid #78a7c8;
  background:
    linear-gradient(#d6f7ff 0 14px, #7dd3fc 14px 42px, #eef7ff 42px),
    #a7e7ff;
  box-shadow: 0 7px 0 #5c7f99;
}

.scene-package {
  width: 54px;
  height: 38px;
  border: 4px solid #a56635;
  background:
    linear-gradient(90deg, transparent 0 22px, #8c4f2a 22px 28px, transparent 28px),
    #d99a55;
  box-shadow: 0 7px 0 #744523;
}

.package-a {
  left: 20%;
  top: 80%;
}

.package-b {
  right: 20%;
  top: 69%;
  transform: scale(0.86);
}

.scene-chair {
  width: 30px;
  height: 28px;
  border: 4px solid #45556f;
  border-radius: 4px 4px 1px 1px;
  background: #5f78a4;
  box-shadow: 0 8px 0 #334056;
}

.chair-a {
  left: 45%;
  top: 51%;
}

.chair-b {
  left: 59%;
  top: 45%;
}

.chair-c {
  left: 28%;
  top: 72%;
}

.chair-d {
  right: 25%;
  top: 51%;
}

.scene-poster {
  width: 42px;
  height: 48px;
  border: 4px solid #c7d4e5;
  background:
    linear-gradient(135deg, #2f73ff 0 34%, #fff 34% 45%, #e85b7d 45% 70%, #ffd166 70%);
  box-shadow: 0 6px 0 #94a3b8;
}

.poster-a {
  left: 24%;
  top: 14%;
}

.poster-b {
  right: 26%;
  top: 17%;
}

.scene-plant {
  width: 22px;
  height: 38px;
  background: #20b26b;
  box-shadow:
    -12px 8px 0 #16a05f,
    12px 8px 0 #35c27d,
    0 34px 0 #9a673f;
}

.plant-a {
  top: 30%;
  left: 8%;
}

.plant-b {
  right: 22%;
  top: 29%;
}

.plant-c {
  right: 176px;
  bottom: 118px;
}

.scene-printer {
  right: 246px;
  bottom: 154px;
  width: 66px;
  height: 36px;
  border: 4px solid #9aa9bc;
  background: #f5f7fb;
  box-shadow: 0 7px 0 #748198;
}

.scene-carpet {
  left: 208px;
  bottom: 96px;
  width: 240px;
  height: 90px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.2) 10px, transparent 10px 20px),
    #ffcad5;
  opacity: 0.72;
}

.pixel-reception {
  position: relative;
  z-index: 5;
  justify-self: center;
  width: fit-content;
  margin: 0 auto;
  min-width: 320px;
  border: 4px solid #1c4da8;
  border-radius: 4px;
  padding: 12px 22px;
  background: #ffffff;
  box-shadow: 0 5px 0 #7fb0ff;
  text-align: center;
}

.pixel-reception span,
.pixel-reception strong {
  display: block;
}

.pixel-reception span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.pixel-reception strong {
  margin-top: 4px;
  font-size: 22px;
}

.pixel-room-grid,
.pixel-meeting-zone {
  position: absolute;
  z-index: 4;
  display: block;
}

.pixel-room-grid {
  inset: 160px 50px 150px;
}

.pixel-meeting-zone {
  right: 7%;
  bottom: 9%;
  width: min(360px, 38%);
}

.pixel-room,
.pixel-meeting-room {
  position: absolute;
  width: min(310px, 32%);
  min-height: 190px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.pixel-room:hover,
.pixel-meeting-room:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.pixel-room::before,
.pixel-room::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pixel-room::before {
  inset: 38px auto auto 12px;
  width: 74%;
  height: 18px;
  background: repeating-linear-gradient(90deg, #fff 0 24px, #dcecff 24px 30px);
  border: 3px solid #d3dfef;
  box-shadow: 0 4px 0 #afc2dc;
}

.pixel-room::after {
  right: 14px;
  top: 54px;
  width: 16px;
  height: 98px;
  background: #ecf4ff;
  border: 3px solid #d3dfef;
  box-shadow: 4px 4px 0 #afc2dc;
}

.pixel-room:nth-child(1) {
  left: 16%;
  top: 34%;
}

.pixel-room:nth-child(2) {
  left: 50%;
  top: 34%;
}

.pixel-room:nth-child(3) {
  right: 8%;
  top: 29%;
}

.pixel-room:nth-child(4) {
  left: 9%;
  top: 58%;
}

.pixel-room:nth-child(5) {
  left: 42%;
  top: 60%;
}

.pixel-room:nth-child(6) {
  right: 5%;
  top: 50%;
}

.room-1,
.room-4 {
  background-color: transparent;
}

.room-2,
.room-5 {
  background-color: transparent;
}

.pixel-meeting-room {
  position: relative;
  width: 100%;
  min-height: 184px;
  background-color: rgba(255, 227, 173, 0.76);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.25),
    0 0 0 4px rgba(236, 168, 90, 0.45),
    7px 7px 0 rgba(84, 116, 156, 0.16);
}

.pixel-room-title {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 230px;
  border: 3px solid #ffffff;
  border-radius: 4px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 0 rgba(68, 91, 123, 0.16);
}

.pixel-room-title span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.pixel-room-title strong {
  overflow: hidden;
  color: #172033;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixel-furniture {
  position: relative;
  z-index: 2;
  height: 76px;
}

.pixel-desk,
.pixel-screen,
.pixel-plant {
  position: absolute;
  display: block;
}

.pixel-desk {
  left: 38px;
  top: 38px;
  width: 96px;
  height: 28px;
  background: #b98558;
  box-shadow: 0 6px 0 #8c613f;
}

.pixel-desk::before,
.pixel-desk::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 54px;
  height: 18px;
  background: #f2f5fb;
  box-shadow: 0 5px 0 #a9b7cc;
}

.pixel-desk::before {
  left: -42px;
}

.pixel-desk::after {
  right: -48px;
}

.pixel-screen {
  left: 78px;
  top: 16px;
  width: 32px;
  height: 24px;
  border: 3px solid #344055;
  background: #9be7ff;
  box-shadow: 0 5px 0 #5c6675;
}

.pixel-plant {
  right: 38px;
  top: 28px;
  width: 18px;
  height: 28px;
  background: #25b36a;
  box-shadow:
    -10px 4px 0 #20a35f,
    10px 4px 0 #34c979,
    0 28px 0 #b77f4c;
}

.pixel-workers,
.pixel-meeting-people {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  min-height: 76px;
  position: relative;
  z-index: 5;
  padding-left: 18px;
}

.pixel-worker-card {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.pixel-worker-card > span {
  max-width: 86px;
  overflow: hidden;
  border: 2px solid #d7e5ff;
  border-radius: 3px;
  padding: 2px 5px;
  background: #fff;
  color: #31405a;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixel-person {
  position: relative;
  width: 34px;
  height: 54px;
  animation: pixel-idle 1.6s steps(2, end) infinite;
}

.pixel-head,
.pixel-body,
.pixel-legs {
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
}

.pixel-head {
  top: 5px;
  width: 18px;
  height: 18px;
  border: 3px solid #47372e;
  background: var(--skin);
  box-shadow:
    -5px -3px 0 #3d2f28,
    5px -3px 0 #3d2f28;
}

.pixel-head::before,
.pixel-head::after {
  content: "";
  position: absolute;
  display: block;
}

.pixel-head::before {
  left: -4px;
  top: -7px;
  width: 20px;
  height: 8px;
  background: #3d2f28;
}

.pixel-head::after {
  right: -3px;
  top: 7px;
  width: 4px;
  height: 4px;
  background: #2e3448;
}

.avatar-1 .pixel-head::before {
  background: #263247;
  box-shadow: 10px -2px 0 #263247;
}

.avatar-2 .pixel-head::before {
  left: -7px;
  width: 25px;
  background: #7c3aed;
}

.avatar-3 .pixel-head::before {
  top: -9px;
  height: 10px;
  background: #111827;
  box-shadow: 0 6px 0 #111827;
}

.avatar-4 .pixel-head::before {
  left: 1px;
  width: 16px;
  background: #e85b7d;
}

.avatar-5 .pixel-head::before {
  top: -8px;
  background: #f59e0b;
  box-shadow: -5px 7px 0 #f59e0b, 7px 7px 0 #f59e0b;
}

.pixel-body {
  top: 25px;
  width: 22px;
  height: 18px;
  border: 3px solid #263247;
  background: var(--shirt);
}

.pixel-body::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.84);
}

.pixel-legs {
  top: 45px;
  width: 24px;
  height: 7px;
  background: linear-gradient(90deg, #263247 0 9px, transparent 9px 15px, #263247 15px);
}

.pixel-bubble {
  position: absolute;
  top: -18px;
  left: 50%;
  z-index: 2;
  min-width: 44px;
  transform: translateX(-50%);
  border: 2px solid #8ca7cf;
  border-radius: 3px;
  padding: 2px 5px;
  background: #fff;
  color: #38506e;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.pixel-person.working .pixel-bubble {
  color: var(--blue);
}

.pixel-person.meeting {
  animation-name: pixel-meeting;
}

.pixel-person.sleeping {
  animation-name: pixel-sleep;
}

.pixel-person.walking {
  animation-name: pixel-walk;
  animation-duration: 3.2s;
}

.pixel-round-table {
  width: 88px;
  height: 44px;
  margin: 28px auto 0;
  border: 4px solid #8c613f;
  background: #bf8655;
  box-shadow: 0 8px 0 #8b5f3e;
}

.pixel-meeting-people {
  justify-content: center;
  margin-top: -42px;
}

.pixel-meeting-room p,
.pixel-empty-room {
  margin: 12px 0 0;
  border: 2px dashed rgba(49, 64, 90, 0.22);
  border-radius: 4px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.48);
  color: #53677e;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.pixel-empty-room.wide {
  grid-column: 1 / -1;
}

@keyframes pixel-idle {
  50% {
    transform: translateY(-2px);
  }
}

@keyframes pixel-walk {
  50% {
    transform: translate(4px, -1px);
  }
}

@keyframes pixel-sleep {
  50% {
    transform: translateY(2px);
    opacity: 0.72;
  }
}

@keyframes pixel-meeting {
  50% {
    transform: translateY(-3px);
  }
}

.data-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.data-row span {
  min-width: 0;
  overflow: hidden;
  color: #4b5563;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.army-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.army-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.army-head span,
.army-section-head span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.army-head h1 {
  margin: 0;
  font-size: 28px;
}

.army-head p,
.army-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.army-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #f8faff;
}

.army-section + .army-section {
  margin-top: 20px;
}

.army-section-head {
  margin-bottom: 18px;
}

.army-section-head h2 {
  margin: 14px 0 8px;
  font-size: 30px;
}

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

.my-agents-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.army-grid.compact {
  grid-template-columns: repeat(5, minmax(126px, 1fr));
  gap: 12px;
}

.army-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 12px 58px;
  background:
    radial-gradient(circle at 50% 16%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
    #fff;
  box-shadow: 0 12px 28px rgba(35, 52, 84, 0.08);
  text-align: center;
}

.army-card h3 {
  display: -webkit-box;
  min-height: 40px;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.army-card-actions {
  display: grid;
  justify-items: center;
  margin-bottom: 9px;
}

.army-card-actions span {
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef2f8;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.army-card p {
  display: -webkit-box;
  margin: 0 auto;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.army-avatar-button {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  align-self: start;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background:
    radial-gradient(circle at 48% 34%, #fff 0 18%, #dce8ff 19% 34%, var(--accent) 35% 64%, #172033 65%);
  box-shadow: 0 14px 26px rgba(35, 52, 84, 0.18);
  cursor: pointer;
}

.army-avatar-inner.role-avatar-wrap {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  background: transparent;
}

.army-avatar-inner .role-avatar-img,
.army-avatar-inner .role-avatar-svg {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.army-avatar-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(35, 52, 84, 0.22);
}

.army-avatar-button:focus-visible {
  outline: 2px solid #8ab4ff;
  outline-offset: 2px;
}

.enter-advisor-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #b8d6ff;
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  color: #2f73ff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(47, 115, 255, 0.12);
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.enter-advisor-button span {
  position: relative;
  z-index: 2;
}

.enter-advisor-button::before {
  position: absolute;
  z-index: 1;
  top: -42%;
  bottom: -42%;
  left: -46%;
  width: 168%;
  border-radius: 45% 52% 48% 44%;
  background:
    radial-gradient(circle at 22% 32%, rgba(255, 255, 255, 0.36) 0 5px, transparent 6px),
    radial-gradient(circle at 60% 72%, rgba(255, 255, 255, 0.24) 0 4px, transparent 5px),
    linear-gradient(90deg, #7c3cff, #26c3ff);
  content: "";
  transform: translateX(-76%) rotate(0deg);
  transition: transform 0.62s cubic-bezier(0.2, 0.86, 0.2, 1);
}

.enter-advisor-button::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3cff, #26c3ff);
  content: "";
  opacity: 0;
  transition: opacity 0.22s ease 0.34s;
  pointer-events: none;
}

.all-agent-recent-panel {
  position: sticky;
  top: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.all-agent-recent-panel .panel-title {
  margin-bottom: 10px;
}

.all-agent-recent-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.all-agent-recent-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fff;
  color: #374151;
  text-align: left;
}

.all-agent-recent-item:hover {
  border-color: #b9d1ff;
  background: #f7faff;
}

.recent-agent-avatar.role-avatar-wrap {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.recent-agent-avatar .role-avatar-img,
.recent-agent-avatar .role-avatar-svg {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}

.all-agent-recent-item strong,
.all-agent-recent-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-agent-recent-item strong {
  font-size: 13px;
}

.all-agent-recent-item em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.recent-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 26px 12px;
  color: var(--muted);
  text-align: center;
}

.enter-advisor-button:hover {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px rgba(47, 115, 255, 0.24);
  transform: translateY(-1px);
}

.enter-advisor-button:hover::before {
  transform: translateX(16%) rotate(7deg);
}

.enter-advisor-button:hover::after {
  opacity: 1;
}

.army-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

.employee-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  border: 6px solid #f1f4f9;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.employee-head h3 {
  margin: 0 0 4px;
}

.employee-head span,
.employee-card p {
  color: var(--muted);
  line-height: 1.65;
}

.employee-card button {
  height: 36px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
  gap: 18px;
  height: calc(100vh - 88px);
  min-height: 560px;
}

.chat-panel,
.chat-history-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.chat-agent-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e3ecfb;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
}

.chat-agent-bar .secondary-button {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
}

.chat-agent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  background: transparent;
  color: #172033;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.chat-agent-arrow {
  display: block;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  object-fit: contain;
  opacity: 0.9;
}

.chat-agent-toggle:hover {
  background: #eef4ff;
}

.chat-agent-popover {
  position: absolute;
  left: 14px;
  top: calc(100% + 8px);
  z-index: 9;
  width: min(420px, calc(100% - 28px));
  border: 1px solid #d8e6ff;
  border-radius: 18px;
  padding: 24px 24px 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 46px rgba(37, 71, 123, 0.16);
}

.chat-agent-popover.hidden {
  display: none;
}

.chat-agent-profile-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.chat-agent-profile-head .employee-avatar {
  width: 72px;
  height: 72px;
  margin: 0;
}

.chat-agent-profile-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.25;
}

.chat-agent-profile-head p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.chat-agent-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
  text-align: center;
}

.chat-agent-profile-stats span {
  display: grid;
  gap: 5px;
}

.chat-agent-profile-stats strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-agent-profile-stats em {
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.chat-agent-profile-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.chat-agent-profile-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.chat-agent-starter-preview {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #dfe7f5;
  border-radius: 12px;
  padding: 11px 16px;
  background: #fff;
  color: #374151;
  box-shadow: 0 8px 18px rgba(37, 71, 123, 0.07);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.chat-agent-capability-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat-agent-capability-list li {
  position: relative;
  padding-left: 22px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.chat-agent-capability-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: #16a34a;
  font-size: 15px;
  font-weight: 700;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  overflow: auto;
}

.message {
  max-width: 86%;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
}

.message.agent {
  justify-self: start;
  border: 1px solid rgba(206, 219, 240, 0.78);
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  box-shadow: 0 12px 28px rgba(35, 52, 84, 0.08);
}

.message.agent.thinking {
  position: relative;
  overflow: hidden;
  border-color: rgba(47, 115, 255, 0.32);
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 115, 255, 0.12), transparent 26%),
    linear-gradient(135deg, #f8fbff, #edf5ff);
  animation: thinkingPulse 1.8s ease-in-out infinite;
}

.message.agent.thinking::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: thinkingShimmer 2.4s ease-in-out infinite;
  pointer-events: none;
}

.message.agent.thinking::after {
  content: none;
}

.message.agent.thinking > * {
  position: relative;
  z-index: 1;
}

.message.agent.thinking .rich-ai-reply h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}

.message.agent.thinking .rich-ai-reply h3::after {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 6px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #2f73ff 46%, transparent 52%) 0 50% / 6px 6px no-repeat,
    radial-gradient(circle, #2f73ff 46%, transparent 52%) 7px 50% / 6px 6px no-repeat,
    radial-gradient(circle, #2f73ff 46%, transparent 52%) 14px 50% / 6px 6px no-repeat;
  opacity: 0.8;
  animation: thinkingDots 1.15s steps(3, end) infinite;
}

.message-stack {
  display: grid;
  gap: 5px;
  max-width: 86%;
}

.message-stack.agent {
  justify-self: start;
}

.message-stack .message {
  max-width: none;
}

@keyframes thinkingPulse {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(35, 52, 84, 0.08), 0 0 0 rgba(47, 115, 255, 0);
  }
  50% {
    box-shadow: 0 16px 34px rgba(35, 52, 84, 0.12), 0 0 0 4px rgba(47, 115, 255, 0.08);
  }
}

@keyframes thinkingShimmer {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes thinkingDots {
  0% {
    clip-path: inset(0 18px 0 0);
  }
  33% {
    clip-path: inset(0 9px 0 0);
  }
  66%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.message.system {
  justify-self: center;
  max-width: 88%;
  background: #eef4ff;
  color: #375078;
}

.message.user {
  justify-self: end;
  margin-right: 16px;
  background: var(--blue);
  color: #fff;
}

.message strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  opacity: 0.78;
}

.message span {
  display: block;
}

.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  max-width: min(360px, 100%);
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  padding: 6px 8px 6px 6px;
  background: #f8fbff;
  color: #243047;
  box-shadow: 0 8px 20px rgba(37, 71, 123, 0.06);
}

.attachment-chip-preview,
.message-file-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eaf2ff;
  color: #2f73ff;
  font-size: 10px;
  font-weight: 1000;
}

.message .message-file-icon {
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
}

.attachment-chip-preview.image-preview {
  overflow: hidden;
  background: #fff;
}

.attachment-chip-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-chip-text {
  display: grid;
  min-width: 0;
  margin: 0 8px;
}

.attachment-chip-text strong,
.message-file-attachment strong,
.message-image-attachment figcaption strong {
  overflow: hidden;
  max-width: 220px;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip-text em,
.message-file-attachment em,
.message-image-attachment figcaption em {
  color: inherit;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  opacity: 0.68;
}

.attachment-chip button {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #eaf2ff;
  color: #4f6077;
  font-weight: 1000;
}

.attachment-chip-pdf .attachment-chip-preview,
.message-file-attachment.file-kind-pdf .message-file-icon {
  background: #fff0f0;
  color: #d92d20;
}

.attachment-chip-document .attachment-chip-preview,
.message-file-attachment.file-kind-document .message-file-icon {
  background: #edf5ff;
  color: #2563eb;
}

.attachment-chip-spreadsheet .attachment-chip-preview,
.message-file-attachment.file-kind-spreadsheet .message-file-icon {
  background: #eafff5;
  color: #079455;
}

.attachment-chip-presentation .attachment-chip-preview,
.message-file-attachment.file-kind-presentation .message-file-icon {
  background: #fff7e8;
  color: #dc6803;
}

.attachment-chip-archive .attachment-chip-preview,
.message-file-attachment.file-kind-archive .message-file-icon {
  background: #f4efff;
  color: #7047d9;
}

.message-image-attachment {
  overflow: hidden;
  width: min(220px, 100%);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.message-image-attachment img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.2);
}

.message-image-attachment figcaption,
.message-file-attachment {
  padding: 7px 9px;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0.9;
}

.message-file-attachment {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: min(260px, 100%);
  max-width: min(360px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.message-file-attachment span:last-child,
.message-image-attachment figcaption {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.message.agent .message-image-attachment,
.message.agent .message-file-attachment {
  border-color: #d8e6ff;
  background: #f7fbff;
}

.rich-ai-reply {
  display: grid;
  gap: 12px;
  color: #111827;
  line-height: 1.82;
}

.rich-ai-reply h3 {
  margin: 12px 0 0;
  color: #111827;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.5;
}

.rich-ai-reply h3:first-child {
  margin-top: 0;
}

.rich-ai-reply p {
  margin: 0;
  color: #1f2937;
}

.rich-ai-reply ul,
.rich-ai-reply ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 22px;
}

.rich-ai-reply li {
  padding-left: 4px;
  color: #1f2937;
}

.rich-ai-reply li::marker {
  color: #111827;
  font-weight: 1000;
}

.rich-ai-reply blockquote {
  display: grid;
  gap: 6px;
  margin: 0;
  border-left: 3px solid #94a3b8;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.62);
  color: #374151;
}

.rich-ai-reply hr {
  width: 100%;
  height: 1px;
  margin: 2px 0;
  border: 0;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.34), rgba(148, 163, 184, 0.04));
}

.rich-ai-reply strong {
  display: inline;
  margin: 0;
  color: #0f172a;
  font-size: inherit;
  font-weight: 1000;
  opacity: 1;
}

.rich-ai-reply code {
  border-radius: 5px;
  padding: 1px 5px;
  background: #e8f1ff;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.ai-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.ai-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: #172033;
  font-size: 13px;
  line-height: 1.55;
}

.ai-table th,
.ai-table td {
  border-bottom: 1px solid #dde9ff;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.ai-table th {
  background: linear-gradient(135deg, #f2f7ff, #eaf4ff);
  color: #2f73ff;
  font-weight: 800;
  white-space: nowrap;
}

.ai-table tr:last-child td {
  border-bottom: 0;
}

.chat-input {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-areas:
    "files files files"
    "input input input"
    "tools voice send";
  grid-template-columns: 1fr 30px 30px;
  gap: 7px;
  margin: 12px;
  border: 1px solid #d8e6ff;
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(37, 71, 123, 0.09);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chat-input.drag-over {
  border-color: #2f73ff;
  background: rgba(247, 251, 255, 0.98);
  box-shadow: 0 16px 38px rgba(47, 115, 255, 0.2), inset 0 0 0 1px rgba(47, 115, 255, 0.14);
}

.mention-menu {
  position: absolute;
  left: 56px;
  top: -272px;
  z-index: 12;
  width: 360px;
  max-width: calc(100% - 28px);
  max-height: 260px;
  overflow: auto;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(37, 71, 123, 0.18);
}

.mention-menu button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.mention-menu button:hover {
  background: #eef5ff;
}

.mention-menu img,
.mention-menu .role-avatar-wrap,
.mention-avatar {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.mention-menu strong,
.mention-menu small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-menu strong {
  font-size: 14px;
}

.mention-menu small {
  margin-top: 2px;
  color: #6b778c;
  font-size: 12px;
  font-weight: 700;
}

.chat-attachments {
  grid-area: files;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-attachments:empty {
  display: none;
}

.attachment-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 240px;
  border: 1px solid #d8e6ff;
  border-radius: 10px;
  padding: 9px 30px 9px 11px;
  background: #f7fbff;
  color: #516179;
  font-size: 12px;
  font-weight: 800;
}

.attachment-chip button {
  position: absolute;
  top: 5px;
  right: 6px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e8f0fb;
  color: #7b8798;
  cursor: pointer;
  line-height: 1;
}

.chat-tools {
  grid-area: tools;
  display: grid;
  gap: 8px;
  align-content: end;
  justify-content: start;
}

.chat-tools label,
.voice-input-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #d8e6ff;
  border-radius: 50%;
  background: #f8fbff;
  color: #5f6b7a;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.voice-input-button {
  grid-area: voice;
  font-size: 14px;
  letter-spacing: 0;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.voice-mic-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 16px;
  color: currentColor;
}

.voice-mic-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  width: 8px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 7px;
  box-sizing: border-box;
}

.voice-mic-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 10px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 -2px 0 -1px currentColor;
}

.voice-input-button:hover:not(:disabled) {
  border-color: #9dc3ff;
  color: #2873ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(40, 115, 255, 0.16);
}

.voice-input-button.recording {
  border-color: #2f73ff;
  background: #eef5ff;
  color: #2f73ff;
  box-shadow: 0 0 0 6px rgba(47, 115, 255, 0.1);
}

.voice-input-button.unsupported {
  cursor: not-allowed;
  opacity: 0.45;
}

.chat-tools input {
  display: none;
}

.chat-input textarea {
  grid-area: input;
  min-height: 42px;
  max-height: 132px;
  border: 0;
  border-radius: 10px;
  padding: 7px 8px;
  background: transparent;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

.chat-input .create-button {
  grid-area: send;
  align-self: end;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.chat-input .chat-submit-button.stopping {
  background: #fff1f2;
  color: #e11d48;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.18);
}

.chat-input .chat-submit-button.stopping:hover {
  background: #ffe4e8;
  color: #be123c;
}

.employee-chat-panel {
  border: 1px solid #d8e6ff;
  border-radius: 10px;
  background:
    radial-gradient(circle at 14% 0%, rgba(47, 115, 255, 0.12), transparent 30%),
    radial-gradient(circle at 92% 14%, rgba(26, 184, 255, 0.1), transparent 30%),
    #fff;
  box-shadow: 0 20px 46px rgba(37, 71, 123, 0.1);
}

.employee-chat-panel .chat-messages {
  background:
    linear-gradient(rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

.group-chat-input {
  grid-template-columns: 1fr 34px 34px;
}

.chat-panel.group-chat-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.group-chat-tools label {
  min-width: 0;
  height: 34px;
  border-color: #d8e6ff;
  border-radius: 50%;
  color: #5f6b7a;
}

.group-attachments:empty {
  display: none;
}

.group-attachment-chip {
  max-width: 260px;
  border: 1px solid #cfe0ff;
  background: #f4f8ff;
}

.group-attachment-chip strong {
  overflow: hidden;
  max-width: 120px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-attachment-chip small {
  color: #6b7b93;
  font-size: 11px;
  font-weight: 800;
}

.chat-history-panel {
  padding: 16px;
}

.chat-session-list {
  display: grid;
  gap: 9px;
}

.chat-session {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  background: #fff;
  color: #374151;
}

.chat-session-main {
  overflow: hidden;
  border: 0;
  padding: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.chat-session.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.chat-session strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.chat-session-more {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7b8798;
  cursor: pointer;
  opacity: 0;
}

.chat-session:hover .chat-session-more,
.chat-session-menu.show + .chat-session-more {
  opacity: 1;
}

.chat-session-menu {
  position: absolute;
  top: 34px;
  right: 6px;
  z-index: 8;
  display: none;
  min-width: 104px;
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(37, 71, 123, 0.16);
}

.chat-session-menu.show {
  display: grid;
}

.chat-session-menu button {
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  background: transparent;
  color: #374151;
  text-align: left;
}

.chat-session-menu button:hover {
  background: #eef4ff;
}

.chat-session-menu button.danger {
  color: #e54863;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  margin: 16px 0 20px;
}

.knowledge-side-panel,
.knowledge-editor {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.knowledge-side-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.knowledge-side-panel > div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.knowledge-side-panel span,
.knowledge-editor-head span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.knowledge-side-panel strong,
.knowledge-editor-head strong {
  display: block;
  margin-top: 5px;
  color: #172033;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.knowledge-side-panel p,
.knowledge-file-picker em {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.65;
}

.knowledge-side-panel label {
  display: grid;
  gap: 7px;
}

.knowledge-side-panel small {
  color: #374151;
  font-size: 11px;
  font-weight: 500;
}

.knowledge-side-panel input,
.knowledge-side-panel select,
.rich-editor {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 400;
  outline: none;
}

.knowledge-side-panel input:focus,
.knowledge-side-panel select:focus,
.rich-editor:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 115, 255, 0.12);
}

.knowledge-editor {
  overflow: hidden;
}

.knowledge-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.knowledge-editor-head small {
  border-radius: 999px;
  padding: 7px 11px;
  background: #f4f8ff;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}

.knowledge-editor-head small.saved {
  background: #e8fff4;
  color: #0ca66b;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  background: #f8fbff;
}

.rich-toolbar span {
  width: 1px;
  min-height: 28px;
  background: #dce7f8;
}

.rich-toolbar button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  background: #fff;
  color: #374151;
  font-size: 11px;
  font-weight: 500;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.rich-toolbar button:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(47, 115, 255, 0.1);
  transform: translateY(-1px);
}

.rich-editor {
  min-height: 360px;
  border: 0;
  border-radius: 0;
  padding: 22px 24px 28px;
  background:
    linear-gradient(rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
  box-shadow: none;
  line-height: 1.8;
  outline: none;
  font-weight: 400;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #9aa4b2;
}

.rich-editor h2,
.rich-editor h3 {
  margin: 16px 0 8px;
  color: var(--text);
  line-height: 1.35;
}

.rich-editor h2 {
  font-size: 22px;
}

.rich-editor h3 {
  font-size: 18px;
}

.rich-editor p,
.rich-editor ul,
.rich-editor ol,
.rich-editor blockquote {
  margin: 10px 0;
}

.rich-editor blockquote {
  border-left: 4px solid #2f73ff;
  border-radius: 6px;
  padding: 10px 14px;
  background: rgba(47, 115, 255, 0.07);
  color: #4f6077;
}

.rich-editor hr {
  height: 1px;
  border: 0;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent, #bcd4ff, transparent);
}

.knowledge-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.knowledge-card {
  display: grid;
  min-height: 214px;
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(37, 71, 123, 0.07);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.knowledge-card:hover {
  border-color: #9fc4ff;
  box-shadow: 0 18px 42px rgba(37, 71, 123, 0.12);
  transform: translateY(-2px);
}

.knowledge-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.knowledge-type-badge {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #edf5ff;
  color: #2f73ff;
  font-size: 11px;
  font-weight: 1000;
}

.knowledge-card-pdf .knowledge-type-badge {
  background: #fff0f0;
  color: #d92d20;
}

.knowledge-card-sheet .knowledge-type-badge {
  background: #eafff5;
  color: #079455;
}

.knowledge-card-slide .knowledge-type-badge {
  background: #fff7e8;
  color: #dc6803;
}

.knowledge-card-title {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.knowledge-card-title strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-card-title em {
  color: #6b7b93;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.knowledge-card-content {
  display: -webkit-box;
  overflow: hidden;
  min-height: 60px;
  margin: 14px 0;
  color: #56677f;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.knowledge-card-meta {
  display: grid;
  gap: 5px;
  align-self: end;
  min-width: 0;
  border-top: 1px solid #edf3ff;
  padding-top: 11px;
}

.knowledge-card-meta span {
  overflow: hidden;
  color: #7a8798;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-card-actions button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 500;
}

.knowledge-card-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.knowledge-empty {
  grid-column: 1 / -1;
}

.knowledge-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #d8e6ff;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(37, 71, 123, 0.07);
}

.knowledge-row strong,
.knowledge-row span,
.knowledge-row p {
  display: block;
}

.knowledge-row span,
.knowledge-row p {
  color: var(--muted);
}

.knowledge-content {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.knowledge-content h3,
.knowledge-content p,
.knowledge-content ul {
  margin: 8px 0 0;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #374151;
}

.model-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.admin-dashboard-page {
  background:
    linear-gradient(rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    #f8fbff;
  background-size: 34px 34px;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-metric-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7e5ff;
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 90% 12%, rgba(34, 211, 238, 0.18), transparent 28%),
    #fff;
  box-shadow: 0 16px 38px rgba(37, 71, 123, 0.08);
}

.admin-metric-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2f73ff, #22d3ee);
}

.admin-metric-grid span,
.admin-metric-grid em {
  display: block;
  color: #6b7a90;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-metric-grid strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.admin-control-grid,
.wechat-admin-grid,
.admin-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.wechat-admin-control {
  display: grid;
  gap: 16px;
}

.wechat-admin-overview,
.wechat-admin-panel {
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(37, 71, 123, 0.06);
}

.wechat-admin-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #fff, #f5faff);
  background-size: 28px 28px, 28px 28px, auto;
}

.wechat-admin-overview span,
.wechat-admin-panel-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.wechat-admin-overview h2,
.wechat-admin-panel-head h2 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 20px;
  line-height: 1.3;
}

.wechat-admin-overview p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #66758c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.wechat-admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wechat-admin-metrics article {
  border: 1px solid #d9e6fb;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.wechat-admin-metrics span,
.wechat-admin-metrics em {
  display: block;
  overflow: hidden;
  color: #65758c;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-admin-metrics strong {
  display: block;
  margin: 5px 0 2px;
  color: #172033;
  font-size: 24px;
  line-height: 1.1;
}

.wechat-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.wechat-admin-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.wechat-admin-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.wechat-admin-panel-head em {
  color: #71819a;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
}

.wechat-admin-tenant-list,
.wechat-admin-event-list {
  display: grid;
  gap: 10px;
}

.wechat-admin-tenant-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(130px, 0.95fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e1eaf7;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
}

.wechat-admin-tenant-row strong,
.wechat-admin-tenant-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-admin-tenant-row strong {
  color: #172033;
  font-size: 13px;
  font-weight: 650;
}

.wechat-admin-tenant-row span {
  color: #73839a;
  font-size: 12px;
  font-weight: 400;
}

.wechat-admin-tenant-row em {
  justify-self: end;
  min-width: 64px;
  border: 1px solid #dbe7f8;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: #73839a;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  text-align: center;
}

.wechat-admin-tenant-row em.enabled {
  border-color: #bdeedb;
  background: #f0fff7;
  color: #09865a;
}

.wechat-admin-tenant-row em.pending {
  border-color: #d8e6ff;
  background: #f2f7ff;
  color: var(--blue);
}

.wechat-admin-callback {
  display: grid;
  gap: 8px;
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
}

.wechat-admin-callback span,
.wechat-admin-event-list h3 {
  margin: 0;
  color: #60708a;
  font-size: 12px;
  font-weight: 600;
}

.wechat-admin-callback code {
  overflow: hidden;
  border: 1px solid #d4e2f5;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-admin-callback p,
.wechat-admin-event-list p,
.wechat-admin-empty {
  margin: 0;
  color: #71819a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

.wechat-admin-event-list article,
.wechat-admin-empty {
  border: 1px solid #e2eaf6;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.wechat-admin-event-list strong,
.wechat-admin-event-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-admin-event-list strong {
  color: #172033;
  font-size: 13px;
  font-weight: 650;
}

.wechat-admin-event-list span {
  color: #7b8aa0;
  font-size: 12px;
  font-weight: 400;
}

.maintenance-layout {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

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

.maintenance-status-card,
.maintenance-panel,
.maintenance-backup-row {
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(35, 52, 84, 0.06);
}

.maintenance-status-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.maintenance-status-card span,
.maintenance-panel-head span {
  color: #2f73ff;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
}

.maintenance-status-card strong {
  color: #172033;
  font-size: 22px;
  line-height: 1.2;
}

.maintenance-status-card em {
  overflow: hidden;
  color: #70809a;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maintenance-status-card.warning {
  border-color: #ffd1da;
  background: #fff7f9;
}

.maintenance-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.maintenance-panel-head,
.maintenance-backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.maintenance-panel-head strong {
  display: block;
  margin-top: 4px;
  color: #172033;
  font-size: 18px;
}

.maintenance-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
  align-items: end;
}

.maintenance-upload-row label {
  display: grid;
  gap: 8px;
  color: #526174;
  font-size: 13px;
  font-weight: 900;
}

.maintenance-upload-row input {
  width: 100%;
  border: 1px solid #dbe7f8;
  border-radius: 6px;
  padding: 9px 10px;
  background: #f8fbff;
}

.maintenance-warning {
  border: 1px solid #ffe1a8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff9ec;
  color: #96630f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.6;
}

.maintenance-backup-list {
  display: grid;
  gap: 10px;
}

.maintenance-backup-row {
  padding: 14px;
}

.maintenance-backup-row strong {
  display: block;
  margin-bottom: 5px;
  color: #172033;
  font-size: 14px;
}

.maintenance-backup-row span {
  color: #74849b;
  font-size: 12px;
  font-weight: 800;
}

.maintenance-backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.maintenance-backup-actions button {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.maintenance-update-box {
  display: grid;
  gap: 12px;
}

.maintenance-source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 10px;
  align-items: end;
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.maintenance-source-actions {
  display: grid;
  gap: 8px;
}

.maintenance-source-actions button {
  width: 100%;
}

.maintenance-source-card label {
  display: grid;
  gap: 8px;
  color: #526174;
  font-size: 13px;
  font-weight: 900;
}

.maintenance-source-card input {
  width: 100%;
  border: 1px solid #d4e2f5;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: #172033;
  outline: none;
}

.maintenance-source-card input:focus {
  border-color: #2f73ff;
  box-shadow: 0 0 0 3px rgba(47, 115, 255, 0.12);
}

.maintenance-source-card small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #74849b;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maintenance-update-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px)) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.maintenance-update-summary.available {
  border-color: #bcd5ff;
  background: #f2f7ff;
}

.maintenance-update-summary div {
  display: grid;
  gap: 4px;
}

.maintenance-update-summary span {
  color: #71819a;
  font-size: 12px;
  font-weight: 900;
}

.maintenance-update-summary strong {
  color: #172033;
  font-size: 20px;
}

.maintenance-update-summary em {
  color: #60708a;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.5;
}

.maintenance-update-detail {
  border: 1px solid #e1e8f5;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.maintenance-update-detail strong {
  color: #172033;
  font-size: 15px;
}

.maintenance-update-detail p,
.maintenance-update-detail li,
.maintenance-update-detail small {
  color: #687890;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.maintenance-update-detail ul {
  margin: 10px 0;
  padding-left: 18px;
}

.maintenance-remote-status {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5eaf3;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #728197;
  font-size: 12px;
  font-weight: 900;
}

.maintenance-remote-status.ok {
  border-color: #c7f0df;
  background: #f3fff9;
  color: #0b7a4b;
}

.maintenance-remote-status strong {
  color: #172033;
}

.admin-control-grid article,
.wechat-admin-grid article {
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-control-grid h2,
.wechat-admin-grid h2 {
  margin: 0 0 8px;
  color: var(--ink);
}

.admin-control-grid p,
.wechat-admin-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-quick-actions button {
  height: 34px;
  border: 1px solid #d7e5ff;
  border-radius: 6px;
  padding: 0 12px;
  background: #f4f8ff;
  color: var(--blue);
  font-weight: 900;
}

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

.admin-status-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4b5b70;
  font-weight: 800;
}

.admin-status-list b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #13b981;
  box-shadow: 0 0 0 5px rgba(19, 185, 129, 0.1);
}

.admin-token-wall {
  margin-top: 18px;
  border: 1px solid #d7e5ff;
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(rgba(47, 115, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow: 0 18px 42px rgba(47, 115, 255, 0.1);
}

.token-wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.token-wall-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.token-wall-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
}

.token-wall-head button {
  height: 36px;
  border: 1px solid #cfe0ff;
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.token-wall-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr 1fr;
  gap: 14px;
}

.token-wall-grid article {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(37, 71, 123, 0.07);
}

.token-wall-hero {
  display: grid;
  align-content: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(36, 194, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #fff, #f4f9ff) !important;
}

.token-wall-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 5px;
  height: 54px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #2f73ff, #24c2ff);
}

.token-wall-hero span,
.token-wall-hero em,
.token-wall-card-title span,
.token-wall-node em,
.token-wall-empty {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.token-wall-hero strong {
  display: block;
  margin: 10px 0 8px;
  color: #172033;
  font-size: 34px;
  font-weight: 950;
}

.token-wall-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.token-wall-card-title strong {
  color: #172033;
  font-size: 15px;
  font-weight: 950;
}

.token-ring {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 132px;
  height: 132px;
  margin: 2px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 58%, transparent 59%),
    conic-gradient(#2f73ff var(--ring), #eaf2ff 0);
  box-shadow: inset 0 0 0 1px #dbe8ff, 0 14px 30px rgba(47, 115, 255, 0.12);
}

.token-ring b {
  color: #172033;
  font-size: 20px;
  font-weight: 950;
}

.token-ring em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.token-wall-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.token-wall-bar span,
.token-wall-bar b {
  color: #4f5f75;
  font-size: 12px;
  font-weight: 900;
}

.token-wall-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-wall-bar i {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #edf4ff;
}

.token-wall-bar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, #2f73ff, #24c2ff);
}

.token-wall-stream {
  grid-column: 1 / -1;
  min-height: 136px !important;
}

.token-wall-stream > div:last-child {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.token-wall-node {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 62px;
  border: 1px solid #d7e5ff;
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.token-wall-node b {
  color: var(--blue);
  font-size: 16px;
  font-weight: 950;
}

.token-wall-node em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-wall-node.muted {
  opacity: 0.58;
}

.token-wall-empty {
  border: 1px dashed #cfe0ff;
  border-radius: 8px;
  padding: 18px;
  background: #f8fbff;
  line-height: 1.7;
}

.usage-dashboard {
  display: grid;
  gap: 18px;
}

.usage-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.usage-metric-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid #dce8fb;
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 18%, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 16px 32px rgba(47, 115, 255, 0.08);
}

.usage-metric-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 5px;
  height: 38px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #2f73ff, #22d3ee);
}

.usage-metric-grid span,
.usage-metric-grid em {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.usage-metric-grid strong {
  display: block;
  margin: 8px 0 4px;
  color: #172033;
  font-size: 34px;
  font-weight: 950;
}

.usage-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.usage-panel {
  border: 1px solid #dce8fb;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(47, 115, 255, 0.08);
}

.usage-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.usage-panel-title h2 {
  margin: 0;
  color: #172033;
  font-size: 18px;
}

.usage-panel-title span {
  color: #2f73ff;
  font-size: 12px;
  font-weight: 900;
}

.usage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf3fb;
  padding: 12px 0;
}

.usage-row:first-of-type {
  border-top: 0;
}

.usage-row strong,
.usage-row span,
.usage-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-row strong {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

.usage-row span,
.usage-row small,
.usage-row em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.usage-row b {
  min-width: 72px;
  color: #2f73ff;
  font-size: 20px;
  font-weight: 950;
  text-align: right;
}

.wechat-admin-grid article > div {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  border-radius: 8px;
  padding: 12px;
  background: #f4f8ff;
}

.admin-settings-layout {
  margin-top: 0;
}

.admin-setting-summary {
  align-content: start;
}

.site-settings-shell {
  display: grid;
  gap: 14px;
}

.site-settings-overview,
.site-settings-section {
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(35, 52, 84, 0.06);
}

.site-settings-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #fff, #f7fbff);
  background-size: 26px 26px, 26px 26px, auto;
}

.site-settings-overview span,
.site-settings-card-head span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.site-settings-overview h2,
.site-settings-card-head h2 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 18px;
  line-height: 1.35;
}

.site-settings-overview p,
.site-settings-card-head p {
  margin: 8px 0 0;
  color: #66758c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.site-settings-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.site-settings-status article {
  border: 1px solid #dce8fb;
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.84);
}

.site-settings-status span,
.site-settings-status strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-settings-status span {
  color: #71819a;
  font-size: 12px;
  font-weight: 500;
}

.site-settings-status strong {
  margin-top: 4px;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

.site-settings-sections {
  display: grid;
  gap: 12px;
}

.site-settings-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
}

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

.site-settings-form-grid label,
.site-qr-uploader {
  display: grid;
  gap: 7px;
  color: #536276;
  font-size: 12px;
  font-weight: 500;
}

.site-settings-form-grid label span,
.site-qr-uploader > span {
  color: #536276;
  font-size: 12px;
  font-weight: 500;
}

.site-settings-form-grid input,
.site-settings-form-grid select,
.site-qr-uploader input {
  width: 100%;
  border: 1px solid #dbe7f8;
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff;
  color: #172033;
  font-size: 13px;
  font-weight: 400;
  outline: none;
}

.site-settings-form-grid input:focus,
.site-settings-form-grid select:focus,
.site-qr-uploader input:focus {
  border-color: #8db8ff;
  box-shadow: 0 0 0 3px rgba(47, 115, 255, 0.1);
}

.site-settings-wide {
  grid-column: span 2;
}

.site-settings-qr-section {
  align-items: stretch;
}

.site-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wechat-admin-grid strong,
.wechat-admin-grid em {
  display: block;
}

.wechat-admin-grid em {
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.wechat-test-checklist {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(37, 71, 123, 0.05);
}

.wechat-test-checklist h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.wechat-test-checklist p,
.wechat-test-checklist li {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.wechat-test-checklist p {
  margin: 0;
}

.wechat-test-checklist ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.wechat-test-checklist code {
  border: 1px solid #dbe7f8;
  border-radius: 6px;
  padding: 2px 6px;
  background: #f8fbff;
  color: #2f73ff;
  font-size: 12px;
  word-break: break-all;
}

.wechat-integration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  margin-top: 16px;
}

.wechat-bind-panel,
.wechat-flow-card,
.wechat-simulator {
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(37, 71, 123, 0.06);
}

.wechat-bind-panel,
.wechat-simulator {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.wechat-bind-head {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.wechat-bind-head .status-dot {
  align-self: start;
  margin-top: 5px;
}

.wechat-bind-head h2,
.wechat-simulator h2,
.wechat-flow-card h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
}

.wechat-bind-head p,
.wechat-simulator p,
.wechat-flow-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

#wechatPage .wechat-bind-head h2,
#wechatPage .wechat-simulator h2,
#wechatPage .wechat-flow-card h2 {
  font-size: 15px;
  font-weight: 600;
}

#wechatPage .wechat-bind-head p,
#wechatPage .wechat-simulator p,
#wechatPage .wechat-flow-card p,
#wechatPage .info-box {
  font-size: 13px;
  font-weight: 400;
}

.wechat-bind-panel label {
  display: grid;
  gap: 7px;
  color: #536276;
  font-size: 11px;
  font-weight: 400;
}

#wechatPage .wechat-bind-panel label > span {
  font-size: 11px;
  font-weight: 400;
  color: #5d6b80;
}

.wechat-bind-panel input,
.wechat-bind-panel select,
.wechat-bind-panel textarea,
.wechat-simulator textarea {
  width: 100%;
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbff;
  color: #172033;
  font-size: 12px;
  font-weight: 400;
  font-family: inherit;
  line-height: 1.6;
  outline: none;
}

#wechatPage .wechat-bind-panel input,
#wechatPage .wechat-bind-panel select,
#wechatPage .wechat-bind-panel textarea,
#wechatPage .wechat-simulator textarea {
  font-size: 13px;
  font-weight: 400;
}

#wechatPage #wechatMockQuestion {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

#wechatPage .wechat-bind-panel select option,
#wechatPage .wechat-bind-panel input::placeholder,
#wechatPage .wechat-bind-panel textarea::placeholder,
#wechatPage .wechat-simulator textarea::placeholder {
  font-size: 13px;
  font-weight: 400;
  color: #8b95a7;
}

#wechatPage #wechatMockQuestion::placeholder {
  font-size: 13px;
  font-weight: 400;
  color: #8b95a7;
}

.wechat-bind-panel textarea,
.wechat-simulator textarea {
  min-height: 92px;
  resize: vertical;
}

.wechat-bind-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wechat-bind-actions button {
  height: 34px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 400;
}

#wechatPage .wechat-bind-actions .create-button,
#wechatPage .wechat-bind-actions .secondary-button {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 400;
}

.wechat-flow-card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  text-align: center;
}

.wechat-bind-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #edf4ff;
}

.wechat-bind-avatar .role-avatar-img,
.wechat-bind-avatar .role-avatar-svg {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.wechat-bind-state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 400;
}

.wechat-bind-state.enabled {
  background: #e9fff1;
  color: #12a979;
}

.wechat-flow-card dl {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.wechat-flow-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fbff;
}

.wechat-flow-card dt,
.wechat-flow-card dd {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 400;
}

.wechat-flow-card dd {
  color: #172033;
  font-weight: 400;
}

.wechat-simulator {
  margin-top: 16px;
}

.wechat-mock-result {
  min-height: 44px;
  border: 1px dashed #d4e2f5;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

.wechat-mock-result span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 400;
}

.wechat-mock-result p {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 400;
}

#wechatPage #wechatMockResult,
#wechatPage #wechatMockResult.empty.small,
#wechatPage .info-box {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.empty.small {
  padding: 18px;
  font-size: 13px;
}

.admin-page {
  margin-bottom: 40px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 270px minmax(560px, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.admin-list-panel,
.builder-form,
.model-panel,
.agent-preview-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-list-panel,
.model-panel,
.agent-preview-panel {
  position: sticky;
  top: 76px;
  padding: 16px;
}

.admin-list-panel {
  max-height: calc(100vh - 104px);
  overflow: hidden;
}

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

.admin-list-panel::before,
.agent-preview-panel::before {
  content: "";
  display: block;
  height: 3px;
  margin: -16px -16px 14px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #2f73ff, #24c2ff);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
}

.panel-title > span,
.panel-title h2 span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.icon-create-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f73ff, #24c2ff);
  color: #fff;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(47, 115, 255, 0.2);
}

.icon-create-button span {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
}

.icon-create-button span::before,
.icon-create-button span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.icon-create-button span::before {
  width: 14px;
  height: 1.5px;
}

.icon-create-button span::after {
  width: 1.5px;
  height: 14px;
}

.managed-list,
.model-list {
  display: grid;
  gap: 8px;
}

.managed-list {
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding-right: 4px;
}

.managed-category {
  display: grid;
  gap: 8px;
}

.managed-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 10px 10px;
  background: #f3f7ff;
  color: #516179;
  font-weight: 900;
  text-align: left;
}

.managed-category-toggle span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.managed-category-toggle span::before {
  content: "▸";
  color: var(--blue);
  font-size: 12px;
  transition: transform 0.18s ease;
}

.managed-category.open .managed-category-toggle span::before {
  transform: rotate(90deg);
}

.managed-category-toggle em {
  display: inline-grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-style: normal;
  font-size: 12px;
}

.managed-category-list {
  display: none;
  gap: 8px;
}

.managed-category.open .managed-category-list {
  display: grid;
}

.managed-empty {
  margin: 0;
  border: 1px dashed #d8e6ff;
  border-radius: 6px;
  padding: 10px;
  color: #8a97aa;
  font-size: 12px;
  font-weight: 700;
}

.managed-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fff;
  color: #374151;
  text-align: left;
}

.managed-avatar {
  width: 40px;
  height: 40px;
}

.managed-item.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.managed-item strong,
.managed-item span,
.model-item strong,
.model-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-item small,
.model-item span {
  color: var(--muted);
  font-size: 12px;
}

.managed-item small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.form-section {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.form-section h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

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

.builder-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.agent-starters-field {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.agent-starters-field > span {
  color: #374151;
}

.agent-starters-field small {
  color: #7b8aa5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.agent-starter-editor {
  display: grid;
  gap: 10px;
}

.agent-starter-list {
  display: grid;
  gap: 8px;
}

.agent-starter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agent-starter-row input {
  height: 42px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}

.agent-starter-row button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: #172033;
  font-size: 22px;
  line-height: 1;
}

.agent-starter-row button:hover {
  background: #fff5f7;
  color: #d92d5a;
}

.agent-starter-editor .secondary-button {
  justify-self: start;
  height: 34px;
}

.builder-form input,
.builder-form select,
.builder-form textarea,
.model-form input,
.model-form select,
.model-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: #172033;
  outline: none;
}

.builder-form textarea {
  resize: vertical;
}

.model-form textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.65;
}

.builder-form input:focus,
.builder-form select:focus,
.builder-form textarea:focus,
.model-form input:focus,
.model-form select:focus,
.model-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 115, 255, 0.12);
}

.tool-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tool-checks label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  position: relative;
  align-items: center;
  min-height: 38px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--soft);
  font-weight: 600;
  white-space: nowrap;
}

.tool-checks label input {
  justify-self: start;
  width: 16px;
  height: 16px;
}

.tool-checks label small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tool-checks label.disabled {
  border-color: #e5eaf3;
  background: #f4f7fb;
  color: #9aa7b8;
  cursor: not-allowed;
}

.tool-checks label.disabled input {
  cursor: not-allowed;
}

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

.model-capability-note {
  border: 1px solid #d8e6ff;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f6f9ff;
  color: #5b6b82;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.prompt-counter {
  float: right;
  color: #8a97aa;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.prompt-counter.warning {
  color: #ef476f;
}

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

.prompt-adapt-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}

.agent-workflow-field {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid #d8e6ff;
  border-radius: 10px;
  padding: 16px;
  background: #f8fbff;
}

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

.agent-workflow-head > span {
  color: #172033;
  font-size: 15px;
  font-weight: 1000;
}

.agent-workflow-head label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #516179;
  font-size: 13px;
  font-weight: 900;
}

.agent-workflow-head input {
  width: 16px;
  height: 16px;
}

.agent-workflow-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.agent-workflow-column {
  display: grid;
  gap: 9px;
}

.agent-workflow-column > strong {
  color: #5c6f8a;
  font-size: 13px;
  font-weight: 1000;
}

.agent-workflow-list {
  display: grid;
  gap: 8px;
}

.agent-workflow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
}

.agent-workflow-row input {
  min-height: 40px;
}

.agent-workflow-row button {
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  background: #fff;
  color: #6b7890;
  font-size: 18px;
  font-weight: 1000;
  cursor: pointer;
}

.agent-workflow-row button:hover {
  border-color: #ffccd5;
  color: #d94860;
}

.agent-workflow-field small {
  color: #8090a8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.agent-knowledge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  min-height: 12px;
}

.agent-knowledge-list:empty::before {
  content: "未上传专属资料。默认可按设置读取共享知识库。";
  color: #8a97aa;
  font-size: 12px;
  font-weight: 700;
  grid-column: 1 / -1;
}

.agent-knowledge-chip {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 50px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 9px 34px 9px 10px;
  background: #fff;
  color: #151515;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  min-width: 0;
}

.agent-knowledge-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: #168bff;
  color: #fff;
  flex: 0 0 auto;
}

.agent-knowledge-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-knowledge-chip-image .agent-knowledge-icon {
  background: #16a34a;
}

.agent-knowledge-chip-pdf .agent-knowledge-icon {
  background: #ef4444;
}

.agent-knowledge-chip-spreadsheet .agent-knowledge-icon {
  background: #0f9f6e;
}

.agent-knowledge-chip-presentation .agent-knowledge-icon {
  background: #f97316;
}

.agent-knowledge-chip-archive .agent-knowledge-icon {
  background: #8b5cf6;
}

.agent-knowledge-chip-audio .agent-knowledge-icon,
.agent-knowledge-chip-video .agent-knowledge-icon {
  background: #2563eb;
}

.agent-knowledge-info {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.agent-knowledge-chip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.agent-knowledge-chip small {
  color: #6f737a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.agent-knowledge-chip button {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #181818;
  color: transparent;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, background 0.15s ease;
}

.agent-knowledge-chip button::before,
.agent-knowledge-chip button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform-origin: center;
}

.agent-knowledge-chip button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.agent-knowledge-chip button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.agent-knowledge-chip button:hover {
  background: #ef4444;
  transform: scale(1.05);
}

.preview-card {
  width: 100%;
  min-height: auto;
}

.agent-preview-panel .preview-card {
  position: static;
}

.agent-preview-panel .preview-card .agent-hover-actions {
  display: none;
}

.agent-preview-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 10px;
}

.agent-preview-actions button {
  min-height: 40px;
  cursor: pointer;
}

.agent-save-status {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  padding: 9px 12px;
  background:
    linear-gradient(135deg, rgba(47, 115, 255, 0.08), rgba(33, 185, 255, 0.04)),
    #fff;
  color: #5b6b84;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(37, 71, 123, 0.08);
}

.agent-save-status.show {
  display: flex;
  animation: saveStatusIn 0.22s ease both;
}

.agent-save-status span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 999px;
  background: #18c28f;
  color: #fff;
}

.agent-save-status.error span {
  background: #ff5b8a;
}

.agent-save-status strong {
  color: var(--text);
}

.agent-save-status em {
  margin-left: auto;
  color: #8a9ab2;
  font-style: normal;
  font-size: 12px;
}

.agent-preview-actions .create-button.saved {
  background: linear-gradient(135deg, #18c28f, #31c7ff);
}

@keyframes saveStatusIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#formPrompt {
  min-height: 360px;
}

.prompt-adapter-overlay {
  position: fixed;
  inset: 0;
  z-index: 340;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(10px);
}

.prompt-adapter-overlay.hidden {
  display: none;
}

.prompt-adapter-modal {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, 96vw);
  max-height: min(860px, 92vh);
  overflow: hidden;
  border: 1px solid #cfe0fb;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
  animation: agentDetailSpringIn 0.36s cubic-bezier(0.18, 0.9, 0.28, 1.12) both;
}

.prompt-adapter-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid #dbe7fb;
  border-radius: 50%;
  background: #fff;
  color: #5d6d86;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.prompt-adapter-head {
  padding: 28px 34px 18px;
  border-bottom: 1px solid #e2ebfb;
}

.prompt-adapter-head span,
.prompt-adapter-result-card > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
}

.prompt-adapter-head h2 {
  margin: 6px 0;
  color: #172033;
  font-size: 28px;
  line-height: 1.25;
}

.prompt-adapter-head p {
  max-width: 760px;
  margin: 0;
  color: #71809a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.prompt-adapter-body {
  overflow: auto;
  padding: 24px 34px;
  background: #f5f9ff;
}

.prompt-adapter-empty,
.prompt-adapter-loading,
.prompt-adapter-error,
.prompt-adapter-source,
.prompt-adapter-result-card {
  border: 1px solid #d7e5fb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(43, 73, 119, 0.06);
}

.prompt-adapter-empty,
.prompt-adapter-loading,
.prompt-adapter-error,
.prompt-adapter-source {
  padding: 18px 20px;
  color: #65758f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.prompt-adapter-source {
  margin-bottom: 14px;
}

.prompt-adapter-source strong,
.prompt-adapter-loading strong,
.prompt-adapter-error strong,
.prompt-adapter-list strong {
  display: block;
  margin-bottom: 6px;
  color: #172033;
  font-size: 15px;
}

.prompt-adapter-source p,
.prompt-adapter-loading p,
.prompt-adapter-error p {
  margin: 0;
}

.prompt-adapter-error {
  border-color: #ffcdd2;
  background: #fff7f8;
  color: #b42318;
}

.prompt-adapter-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.prompt-adapter-result-card {
  padding: 20px;
}

.prompt-adapter-result-card h3 {
  margin: 5px 0 14px;
  color: #172033;
  font-size: 20px;
}

.prompt-adapter-main-result textarea {
  width: 100%;
  min-height: 460px;
  resize: vertical;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
  color: #172033;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.72;
}

.prompt-adapter-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.prompt-adapter-meta dt {
  color: #71809a;
  font-size: 12px;
  font-weight: 1000;
}

.prompt-adapter-meta dd {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 8px;
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

.prompt-adapter-meta em {
  border-radius: 999px;
  padding: 5px 9px;
  background: #eaf2ff;
  color: #2f73ff;
  font-style: normal;
  font-size: 12px;
}

.prompt-adapter-meta small {
  color: #8a98ad;
  font-weight: 800;
}

.prompt-adapter-list {
  margin-top: 16px;
  border-top: 1px solid #e3ecfb;
  padding-top: 14px;
}

.prompt-adapter-list p {
  margin: 0 0 8px;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f5f9ff;
  color: #4e5f77;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.prompt-adapter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 34px 24px;
  border-top: 1px solid #e2ebfb;
  background: #fff;
}

.prompt-adapter-actions button {
  min-width: 116px;
}

@media (max-width: 980px) {
  .prompt-adapter-result-grid {
    grid-template-columns: 1fr;
  }

  .prompt-label-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-workflow-editor {
    grid-template-columns: 1fr;
  }

  .wechat-integration-layout,
  .wechat-admin-grid,
  .wechat-admin-overview,
  .wechat-admin-layout,
  .site-settings-overview,
  .site-settings-section {
    grid-template-columns: 1fr;
  }

  .wechat-admin-tenant-row {
    grid-template-columns: 1fr;
  }

  .wechat-admin-tenant-row em {
    justify-self: start;
  }

  .site-settings-status,
  .site-settings-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.context-window-field {
  margin-top: 18px;
}

.context-window-field input {
  max-width: 180px;
}

.context-window-field small {
  display: block;
  margin-top: 8px;
  color: #708099;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.avatar-picker-field {
  position: relative;
}

.avatar-native-select {
  display: none;
}

.avatar-picker-trigger {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: #172033;
  text-align: left;
}

.avatar-picker-trigger:hover,
.avatar-picker-field:focus-within .avatar-picker-trigger {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 115, 255, 0.1);
}

.avatar-picker-current,
.avatar-picker-avatar {
  width: 38px;
  height: 38px;
}

.avatar-picker-trigger strong,
.avatar-picker-trigger small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-picker-trigger small {
  margin-top: 2px;
  color: #8a97aa;
  font-size: 11px;
  font-weight: 800;
}

.avatar-picker-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  width: min(430px, 82vw);
  max-height: 420px;
  overflow: auto;
  border: 1px solid #bfd6ff;
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(37, 71, 123, 0.2);
}

.avatar-picker-popover button {
  display: grid;
  gap: 6px;
  justify-items: center;
  border: 1px solid #d8e6ff;
  border-radius: 10px;
  padding: 10px 8px;
  background: #f8fbff;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.avatar-picker-popover button:hover,
.avatar-picker-popover button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.avatar-picker-popover span {
  overflow: hidden;
  width: 100%;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 12%, rgba(47, 115, 255, 0.09), transparent 28%),
    #fff;
  box-shadow: 0 12px 28px rgba(37, 71, 123, 0.06);
}

.model-item.disabled {
  opacity: 0.66;
  filter: grayscale(0.2);
}

.model-item-head,
.model-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.model-item-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff5f7;
  color: #d94b63;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.model-item-head em.configured {
  background: #ecfdf3;
  color: #079455;
}

.model-item code {
  overflow: hidden;
  border: 1px solid #dfe8f6;
  border-radius: 6px;
  padding: 9px 10px;
  background: #f8fbff;
  color: #526173;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-purpose-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-purpose-tags span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.model-item-foot > span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 900;
}

.model-item-foot div {
  display: flex;
  gap: 8px;
}

.model-item-foot button {
  height: 30px;
  border: 1px solid #d7e3f5;
  border-radius: 6px;
  padding: 0 9px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.model-item-foot button.danger {
  border-color: #ffd4dc;
  background: #fff5f7;
  color: #d92d5a;
}

.model-form {
  display: grid;
  align-content: start;
  gap: 11px;
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.model-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.model-form label span {
  color: #536276;
}

.model-purpose-field small {
  color: #7b889b;
  font-size: 12px;
  line-height: 1.55;
}

.model-purpose-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.model-purpose-checks label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid #dfe8f6;
  border-radius: 6px;
  padding: 0 10px;
  background: #f8fbff;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.model-purpose-checks input {
  width: 14px;
  height: 14px;
}

.model-version-field small {
  color: #7b889b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.model-version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 8px;
}

.model-version-row .secondary-button {
  height: 38px;
  padding: 0 10px;
  font-size: 12px;
}

.model-form-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.model-form .secondary-button,
.model-form .create-button,
.model-form .danger-button {
  height: 36px;
}

.model-security-note {
  max-width: 520px;
  border: 1px solid #d7e5ff;
  border-radius: 8px;
  padding: 8px 12px;
  background: #f4f8ff;
  color: #536276;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .plaza-grid {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
  }

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

  .admin-list-panel,
  .model-panel,
  .agent-preview-panel {
    position: static;
  }

  .admin-list-panel {
    max-height: none;
  }

  .managed-list {
    max-height: 360px;
  }

  .metric-grid,
  .group-grid,
  .settings-grid,
  .model-admin-layout,
  .employee-grid,
  .chat-layout,
  .group-chat-layout,
  .my-agents-workbench,
  .workgroup-input-row,
  .enterprise-summary,
  .org-branches,
  .pixel-room-grid,
  .pixel-meeting-zone,
  .army-grid,
  .knowledge-layout,
  .knowledge-editor,
  .user-detail-layout {
    grid-template-columns: 1fr;
  }

  .user-chat-session-list {
    max-height: 360px;
  }

  .army-card {
    grid-template-columns: 1fr;
  }

  .department-employee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: auto;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-layout.admin-console-mode {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar .admin-menu {
    max-height: 320px;
    overflow: auto;
  }

  .side-menu {
    max-height: 280px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .plaza-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid,
  .tool-checks,
  .model-route-grid,
  .model-purpose-checks {
    grid-template-columns: 1fr;
  }

  .company-fund-card {
    width: 100%;
  }

  .department-employee-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .plaza-grid {
    grid-template-columns: 1fr;
  }

  .site-settings-status,
  .site-settings-form-grid,
  .site-qr-grid {
    grid-template-columns: 1fr;
  }

  .site-settings-wide {
    grid-column: auto;
  }
}

.site-qr-uploader {
  display: grid;
  gap: 8px;
}

.site-qr-uploader input {
  min-height: auto;
  padding: 10px;
  color: #526177;
  font-size: 12px;
}

.site-qr-preview {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed #b9cff6;
  border-radius: 8px;
  background:
    linear-gradient(rgba(47, 115, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.05) 1px, transparent 1px),
    #f8fbff;
  background-size: 18px 18px;
  color: #718198;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.site-qr-preview img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(47, 115, 255, 0.12);
}

.site-qr-preview span {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 12px;
}

#consultPage {
  overflow: hidden;
  min-height: 100vh;
  border-radius: 0;
  background: #020817;
  color: #eaf6ff;
}

#consultPage .purchase-consult-shell {
  position: relative;
  display: grid;
  gap: 26px;
  min-height: 100vh;
  padding: 34px clamp(24px, 5vw, 76px) 56px;
  background:
    linear-gradient(rgba(125, 211, 252, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(6, 20, 48, 0.96) 50%, rgba(4, 14, 35, 0.98));
  background-size: 42px 42px, 42px 42px, auto;
}

#consultPage .purchase-consult-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 28%, rgba(47, 115, 255, 0.16) 29%, transparent 30% 100%),
    linear-gradient(160deg, transparent 0 58%, rgba(36, 194, 255, 0.14) 59%, transparent 60% 100%);
  opacity: 0.85;
}

#consultPage .purchase-consult-hero {
  position: relative;
  z-index: 1;
  min-height: min(760px, calc(100vh - 68px));
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 12px;
  padding: clamp(30px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(47, 115, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 34px 90px rgba(0, 0, 0, 0.34);
}

#consultPage .purchase-consult-hero::before {
  content: "";
  position: absolute;
  right: 33%;
  top: 22%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(47, 115, 255, 0.04),
    0 0 0 52px rgba(34, 211, 238, 0.035),
    inset 0 0 40px rgba(47, 115, 255, 0.18);
}

#consultPage .purchase-consult-hero p {
  color: #7dd3fc;
  letter-spacing: 0.08em;
}

#consultPage .purchase-consult-hero h1 {
  max-width: 880px;
  color: #f8fbff;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.06;
  text-shadow: 0 18px 48px rgba(47, 115, 255, 0.28);
}

#consultPage .purchase-consult-hero span {
  max-width: 760px;
  color: #b9c9dc;
  font-size: 17px;
  line-height: 1.9;
}

#consultPage .purchase-consult-actions .create-button,
#consultPage .purchase-consult-actions .secondary-button {
  height: 46px;
  border-color: rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 950;
}

#consultPage .purchase-consult-actions .secondary-button {
  background: rgba(8, 21, 48, 0.72);
  color: #dbeafe;
}

.consult-back-button {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 8;
  height: 40px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(7, 17, 38, 0.72);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

#consultPage .consult-qr-panel {
  align-content: start;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 12px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(7, 17, 38, 0.78);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

#consultPage .consult-qr-panel strong {
  color: #fff;
  font-size: 22px;
}

#consultPage .consult-qr-panel p {
  color: #a9bdd4;
  font-size: 13px;
}

#consultPage .consult-qr-box {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(rgba(125, 211, 252, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.08) 1px, transparent 1px),
    rgba(2, 8, 23, 0.65);
  background-size: 18px 18px;
  color: #93a8bf;
  text-align: center;
}

#consultPage .consult-qr-box span {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: #93a8bf;
  font-size: 13px;
}

#consultPage .consult-qr-box img {
  width: min(230px, 70vw);
  height: min(230px, 70vw);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.consult-system-strip,
.consult-problem-grid,
.consult-feature-grid,
.consult-scenario-band {
  position: relative;
  z-index: 1;
}

.consult-system-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.consult-system-strip article,
#consultPage .consult-feature-grid article,
.consult-problem-grid article,
.consult-scenario-band div {
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 10px;
  background: rgba(8, 21, 48, 0.72);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.consult-system-strip article {
  padding: 20px;
}

.consult-system-strip strong {
  display: block;
  color: #f8fbff;
  font-size: 28px;
  font-weight: 950;
}

.consult-system-strip span {
  display: block;
  margin-top: 8px;
  color: #9fb3ca;
  font-size: 13px;
  font-weight: 850;
}

.consult-war-room {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 12px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.18), rgba(15, 23, 42, 0.72));
}

.consult-war-room p {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.consult-war-room h2 {
  max-width: 900px;
  margin: 0;
  color: #f8fbff;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.18;
}

.consult-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.consult-problem-grid article,
#consultPage .consult-feature-grid article,
.consult-scenario-band div {
  padding: 20px;
}

#consultPage .consult-feature-grid article {
  background:
    linear-gradient(180deg, rgba(47, 115, 255, 0.14), rgba(8, 21, 48, 0.76));
}

#consultPage .consult-feature-grid article::before {
  background: linear-gradient(180deg, #7dd3fc, #2f73ff);
}

.consult-problem-grid strong,
#consultPage .consult-feature-grid strong,
.consult-scenario-band strong {
  display: block;
  color: #f8fbff;
  font-size: 19px;
  font-weight: 950;
}

.consult-problem-grid span,
#consultPage .consult-feature-grid span,
.consult-scenario-band em {
  display: block;
  margin-top: 10px;
  color: #a9bdd4;
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.75;
}

.consult-scenario-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.consult-scenario-band span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 999px;
  background: rgba(47, 115, 255, 0.18);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 950;
}

@media (max-width: 980px) {
  #consultPage .purchase-consult-hero,
  .consult-system-strip,
  .consult-problem-grid,
  #consultPage .consult-feature-grid,
  .consult-scenario-band {
    grid-template-columns: 1fr;
  }

  #consultPage .purchase-consult-hero::before {
    display: none;
  }
}

.app-layout.showcase-mode {
  background: #eef4fb;
}

#consultPage {
  --consult-scroll: 0;
  background: #eef4fb;
  color: var(--ink);
}

#consultPage .purchase-consult-shell {
  overflow: hidden;
  background:
    linear-gradient(rgba(47, 115, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 48%, #f8fbff 100%);
  background-size: 38px 38px, 38px 38px, auto;
}

#consultPage .purchase-consult-shell::before {
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(47, 115, 255, 0.08) 19%, transparent 20% 100%),
    linear-gradient(150deg, transparent 0 64%, rgba(36, 194, 255, 0.12) 65%, transparent 66% 100%),
    linear-gradient(90deg, rgba(47, 115, 255, 0.06), transparent 36%, rgba(36, 194, 255, 0.08));
  transform: translateY(calc(var(--consult-scroll) * -36px));
}

#consultPage .purchase-consult-hero {
  isolation: isolate;
  min-height: min(720px, calc(100vh - 68px));
  border: 1px solid #cfe0ff;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.88)),
    linear-gradient(135deg, rgba(47, 115, 255, 0.08), rgba(36, 194, 255, 0.08));
  box-shadow:
    0 28px 70px rgba(47, 115, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#consultPage .purchase-consult-hero::before {
  right: 31%;
  top: 18%;
  border-color: rgba(47, 115, 255, 0.22);
  box-shadow:
    0 0 0 22px rgba(47, 115, 255, 0.045),
    0 0 0 54px rgba(36, 194, 255, 0.04),
    inset 0 0 36px rgba(47, 115, 255, 0.14);
  transform: translateY(calc(var(--consult-scroll) * 46px)) rotate(calc(var(--consult-scroll) * 18deg));
  transition: transform 0.2s ease;
}

#consultPage .purchase-consult-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, transparent 0 42%, rgba(47, 115, 255, 0.12) 43%, transparent 44% 100%),
    linear-gradient(180deg, transparent 0 70%, rgba(36, 194, 255, 0.1));
  transform: translateX(calc(var(--consult-scroll) * 72px));
}

#consultPage .purchase-consult-hero p {
  color: var(--blue);
  letter-spacing: 0.08em;
}

#consultPage .purchase-consult-hero h1 {
  color: var(--ink);
  text-shadow: none;
}

#consultPage .purchase-consult-hero span {
  color: #607087;
}

#consultPage .purchase-consult-actions .create-button {
  border: 0;
  background: linear-gradient(135deg, #2f73ff, #24c2ff);
  color: #fff;
  box-shadow: 0 16px 34px rgba(47, 115, 255, 0.24);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

#consultPage .purchase-consult-actions .secondary-button {
  border-color: #cfe0ff;
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

#consultPage .purchase-consult-actions .create-button:hover,
#consultPage .purchase-consult-actions .secondary-button:hover,
.consult-back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(47, 115, 255, 0.18);
}

.consult-back-button {
  border-color: #cfe0ff;
  background: rgba(255, 255, 255, 0.82);
  color: #314057;
  box-shadow: 0 12px 28px rgba(47, 115, 255, 0.1);
}

#consultPage .consult-qr-panel {
  border-color: #cfe0ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.92));
  box-shadow: 0 24px 58px rgba(47, 115, 255, 0.14);
}

#consultPage .consult-qr-panel strong {
  color: var(--ink);
}

#consultPage .consult-qr-panel p {
  color: #667791;
}

#consultPage .consult-qr-box {
  border-color: #cfe0ff;
  background:
    linear-gradient(rgba(47, 115, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.055) 1px, transparent 1px),
    #f8fbff;
  background-size: 18px 18px;
  color: #708096;
}

#consultPage .consult-qr-box span {
  color: #708096;
}

#consultPage .consult-qr-box img {
  box-shadow: 0 20px 42px rgba(47, 115, 255, 0.16);
}

.consult-system-strip article,
#consultPage .consult-feature-grid article,
.consult-problem-grid article,
.consult-scenario-band div {
  border-color: #d7e5ff;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(47, 115, 255, 0.1);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.consult-system-strip article:hover,
#consultPage .consult-feature-grid article:hover,
.consult-problem-grid article:hover,
.consult-scenario-band div:hover {
  border-color: #9ec2ff;
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(47, 115, 255, 0.16);
}

.consult-system-strip strong,
.consult-problem-grid strong,
#consultPage .consult-feature-grid strong,
.consult-scenario-band strong {
  color: var(--ink);
}

.consult-system-strip span,
.consult-problem-grid span,
#consultPage .consult-feature-grid span,
.consult-scenario-band em {
  color: #65758d;
}

.consult-war-room {
  border-color: #cfe0ff;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.88)),
    linear-gradient(90deg, rgba(47, 115, 255, 0.08), rgba(36, 194, 255, 0.08));
  box-shadow: 0 24px 64px rgba(47, 115, 255, 0.12);
}

.consult-war-room p {
  color: var(--blue);
}

.consult-war-room h2 {
  color: var(--ink);
}

#consultPage .consult-feature-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92));
}

.consult-scenario-band span {
  background: #eaf3ff;
  color: var(--blue);
}

.consult-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.72s ease var(--reveal-delay),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.consult-reveal.consult-visible {
  opacity: 1;
  transform: translateY(0);
}

#consultPage .consult-system-strip article:nth-child(2),
#consultPage .consult-problem-grid article:nth-child(2),
#consultPage .consult-feature-grid article:nth-child(2),
#consultPage .consult-scenario-band div:nth-child(2) {
  transform: translateY(calc(18px - var(--consult-scroll) * 26px));
}

#consultPage .consult-system-strip article:nth-child(2).consult-visible,
#consultPage .consult-problem-grid article:nth-child(2).consult-visible,
#consultPage .consult-feature-grid article:nth-child(2).consult-visible,
#consultPage .consult-scenario-band div:nth-child(2).consult-visible {
  opacity: 1;
}

#consultPage .purchase-consult-shell {
  padding: 0;
  background:
    linear-gradient(rgba(47, 115, 255, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.042) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbff 0%, #eff6ff 36%, #f8fbff 100%);
  background-size: 40px 40px, 40px 40px, auto;
}

.consult-showcase-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  height: 68px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(207, 224, 255, 0.86);
  background: rgba(248, 251, 255, 0.82);
  backdrop-filter: blur(18px);
}

.consult-showcase-nav strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.consult-showcase-nav div {
  display: flex;
  align-items: center;
  gap: 24px;
}

.consult-showcase-nav a {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: color 0.16s ease;
}

.consult-showcase-nav a:hover {
  color: var(--blue);
}

.consult-showcase-nav .consult-back-button {
  position: static;
  height: 36px;
  border-radius: 999px;
  box-shadow: none;
}

#consultPage .purchase-consult-hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 680px;
  margin: 34px auto 0;
  padding: 64px;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.92)),
    linear-gradient(135deg, rgba(47, 115, 255, 0.1), rgba(36, 194, 255, 0.12));
}

#consultPage .purchase-consult-hero::before {
  right: 360px;
  top: 112px;
  width: 360px;
  height: 360px;
  opacity: 0.85;
}

#consultPage .purchase-consult-hero::after {
  background:
    linear-gradient(100deg, transparent 0 34%, rgba(47, 115, 255, 0.09) 35%, transparent 36% 100%),
    linear-gradient(150deg, transparent 0 60%, rgba(36, 194, 255, 0.12) 61%, transparent 62% 100%);
}

.consult-hero-copy {
  position: relative;
  z-index: 2;
}

#consultPage .purchase-consult-hero h1 {
  max-width: 780px;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

#consultPage .purchase-consult-hero span {
  max-width: 720px;
  font-size: 17px;
}

.consult-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin-top: 34px;
}

.consult-hero-metrics article {
  border: 1px solid #d7e5ff;
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(47, 115, 255, 0.08);
}

.consult-hero-metrics strong {
  display: block;
  color: var(--blue);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.consult-hero-metrics span {
  margin-top: 8px;
  color: #63748a;
  font-size: 12px;
  line-height: 1.4;
}

#consultPage .consult-qr-panel {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: 24px;
  border-radius: 20px;
}

#consultPage .consult-qr-panel em {
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.08em;
}

#consultPage .consult-qr-box {
  min-height: 280px;
  border-radius: 18px;
}

.consult-membership-row,
.consult-war-room,
.consult-flow-section,
.consult-scenario-band,
.consult-final-cta {
  width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.consult-membership-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -58px;
}

.consult-membership-row article {
  min-height: 190px;
  border: 1px solid #d7e5ff;
  border-radius: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(47, 115, 255, 0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.consult-membership-row article:hover {
  border-color: #9ec2ff;
  transform: translateY(-8px);
  box-shadow: 0 30px 72px rgba(47, 115, 255, 0.18);
}

.consult-membership-row span,
.consult-section-title p {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.consult-membership-row strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.consult-membership-row p {
  margin: 12px 0 0;
  color: #65758d;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.8;
}

#consultPage .consult-war-room {
  margin-top: 78px;
  border-radius: 24px;
  padding: 52px;
}

#consultPage .consult-war-room h2,
.consult-section-title h2,
.consult-final-cta h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: 0;
}

#consultPage .consult-problem-grid {
  margin-top: 20px;
}

#consultPage .consult-problem-grid article {
  min-height: 240px;
  border-radius: 18px;
  padding: 26px;
}

#consultPage .consult-problem-grid b {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #eaf3ff;
  color: var(--blue);
  font-size: 13px;
}

#consultPage .consult-problem-grid strong {
  margin-top: 22px;
  font-size: 24px;
}

.consult-flow-section {
  margin-top: 82px;
}

.consult-section-title {
  display: grid;
  max-width: 760px;
  gap: 8px;
  margin-bottom: 24px;
}

.consult-section-title h2 {
  margin: 0;
}

.consult-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.consult-flow-grid article {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid #d7e5ff;
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 255, 0.92));
  box-shadow: 0 18px 46px rgba(47, 115, 255, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.consult-flow-grid article::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(47, 115, 255, 0.16);
  border-radius: 50%;
}

.consult-flow-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(47, 115, 255, 0.16);
}

.consult-flow-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f73ff, #24c2ff);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.consult-flow-grid strong {
  display: block;
  margin-top: 24px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.consult-flow-grid em {
  display: block;
  margin-top: 12px;
  color: #65758d;
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.75;
}

#consultPage .consult-scenario-band {
  margin-top: 82px;
}

#consultPage .consult-scenario-band div {
  min-height: 220px;
  border-radius: 18px;
  padding: 26px;
}

.consult-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 82px;
  margin-bottom: 72px;
  border: 1px solid #bfdbfe;
  border-radius: 26px;
  padding: 42px;
  background:
    linear-gradient(120deg, rgba(47, 115, 255, 0.1), rgba(36, 194, 255, 0.12)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 74px rgba(47, 115, 255, 0.14);
}

.consult-final-cta p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.consult-final-cta h2 {
  max-width: 760px;
  margin: 0;
}

.consult-final-cta span {
  display: block;
  max-width: 760px;
  margin-top: 14px;
  color: #65758d;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.8;
}

.consult-final-cta .create-button {
  min-width: 170px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f73ff, #24c2ff);
  box-shadow: 0 16px 36px rgba(47, 115, 255, 0.22);
}

@media (max-width: 980px) {
  .consult-showcase-nav {
    width: min(100% - 28px, 1180px);
  }

  .consult-showcase-nav div {
    display: none;
  }

  #consultPage .purchase-consult-hero,
  .consult-membership-row,
  .consult-flow-grid,
  .consult-final-cta {
    grid-template-columns: 1fr;
  }

  #consultPage .purchase-consult-hero,
  .consult-membership-row,
  .consult-war-room,
  .consult-flow-section,
  .consult-scenario-band,
  .consult-final-cta {
    width: min(100% - 28px, 1180px);
  }

  #consultPage .purchase-consult-hero {
    padding: 32px;
  }

  .consult-hero-metrics {
    grid-template-columns: 1fr;
  }

  .consult-membership-row {
    margin-top: 20px;
  }

  .consult-final-cta {
    align-items: stretch;
  }
}

#consultPage .purchase-consult-shell {
  padding-bottom: 1px;
}

.consult-showcase-nav {
  width: 100%;
  padding: 0 clamp(24px, calc((100vw - 1180px) / 2), 999px);
  margin: 0;
}

#consultPage .purchase-consult-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#consultPage .purchase-consult-hero {
  min-height: 650px;
  margin-top: 24px;
}

.consult-membership-row {
  width: min(1280px, calc(100% - 24px));
  margin-top: -48px;
}

.consult-membership-row article {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 178px;
}

#consultPage .consult-war-room {
  margin-top: 42px;
  padding: 42px;
}

.consult-flow-section,
#consultPage .consult-scenario-band,
.consult-final-cta {
  margin-top: 42px;
}

#consultPage .consult-scenario-band {
  width: min(1180px, calc(100% - 48px));
}

.consult-final-cta {
  margin-bottom: 44px;
}

#consultPage .consult-war-room h2,
.consult-section-title h2,
.consult-final-cta h2 {
  max-width: 1040px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.16;
  text-wrap: balance;
}

.consult-section-title {
  max-width: 1080px;
}

.consult-flow-section .consult-section-title h2 {
  white-space: nowrap;
}

#consultPage .consult-problem-grid,
.consult-flow-grid,
#consultPage .consult-scenario-band {
  align-items: stretch;
}

#consultPage .consult-problem-grid article,
.consult-flow-grid article,
#consultPage .consult-scenario-band div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#consultPage .consult-problem-grid article {
  min-height: 222px;
}

.consult-flow-grid article {
  min-height: 218px;
}

#consultPage .consult-scenario-band div {
  min-height: 210px;
}

.consult-flow-grid strong,
#consultPage .consult-scenario-band strong,
#consultPage .consult-problem-grid strong {
  line-height: 1.25;
}

.consult-final-cta {
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) 320px;
  display: grid;
}

.consult-final-qr {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-content: center;
  align-items: center;
  justify-items: center;
  border: 1px solid #cfe0ff;
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(47, 115, 255, 0.12);
}

.consult-final-qr strong {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

#consultPage .consult-final-qr .consult-qr-box {
  width: 88px;
  height: 88px;
  min-height: 0;
  padding: 6px;
  border-radius: 12px;
  background-size: 12px 12px;
  flex: none;
}

#consultPage .consult-final-qr .consult-qr-box img {
  width: 74px;
  height: 74px;
  padding: 4px;
  border-radius: 8px;
}

#consultPage .consult-final-qr .consult-qr-box span {
  padding: 0 4px;
  font-size: 9px;
  line-height: 1.2;
}

#consultPage .consult-scenario-band div:nth-child(2),
#consultPage .consult-scenario-band div:nth-child(2).consult-visible {
  transform: translateY(0);
}

#consultPage .consult-scenario-band div.consult-reveal,
#consultPage .consult-scenario-band div.consult-reveal.consult-visible {
  transform: translateY(0);
}

.consult-final-qr p {
  margin: 0;
  text-align: left;
  color: #65758d;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.55;
}

.consult-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: -18px auto 34px;
  border-top: 1px solid rgba(207, 224, 255, 0.9);
  padding: 18px clamp(24px, calc((100vw - 1180px) / 2), 999px) 0;
  color: #7b8ca3;
  font-size: 12px;
  font-weight: 850;
}

#membershipPage {
  min-height: 100vh;
  border-radius: 0;
  background:
    linear-gradient(rgba(47, 115, 255, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.042) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbff 0%, #eff6ff 44%, #f8fbff 100%);
  background-size: 40px 40px, 40px 40px, auto;
}

#membershipPage .membership-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

#membershipPage .membership-hero {
  min-height: 330px;
  border: 1px solid #cfe0ff;
  border-radius: 22px;
  padding: 52px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.92)),
    linear-gradient(135deg, rgba(47, 115, 255, 0.1), rgba(36, 194, 255, 0.12));
  box-shadow: 0 28px 70px rgba(47, 115, 255, 0.14);
}

#membershipPage .membership-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}

#membershipPage .membership-hero span {
  max-width: 760px;
}

#membershipPage .membership-plan-grid {
  align-items: stretch;
  gap: 18px;
  margin-top: -38px;
}

#membershipPage .membership-plan-card {
  min-height: 430px;
  border-color: #d7e5ff;
  border-radius: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(47, 115, 255, 0.12);
}

#membershipPage .membership-plan-card::before {
  width: 100%;
  height: 5px;
  inset: 0 0 auto;
}

#membershipPage .membership-plan-card > strong {
  color: #d94b63;
  text-align: center;
  font-size: 38px;
}

#membershipPage .membership-benefits span {
  border-color: #e1ebfb;
  background: #f8fbff;
}

#membershipPage {
  overflow: auto;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(36, 194, 255, 0.18), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(47, 115, 255, 0.14), transparent 28%),
    linear-gradient(rgba(47, 115, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 115, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 48%, #ffffff 100%);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

#membershipPage .membership-shell {
  width: min(1200px, calc(100% - 48px));
  padding: 42px 0 72px;
}

#membershipPage .membership-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  min-height: 360px;
  border: 1px solid rgba(177, 205, 255, 0.72);
  border-radius: 18px;
  padding: 54px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 250, 255, 0.68)),
    linear-gradient(90deg, rgba(47, 115, 255, 0.1), rgba(34, 211, 238, 0.08));
  box-shadow: 0 30px 74px rgba(47, 115, 255, 0.14);
  backdrop-filter: blur(18px);
}

#membershipPage .membership-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(47, 115, 255, 0.08) 48% 48.15%, transparent 48.15%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent 54%);
  pointer-events: none;
}

#membershipPage .membership-hero > div,
#membershipPage .membership-hero-terminal {
  position: relative;
  z-index: 1;
}

#membershipPage .membership-hero p {
  margin: 0 0 18px;
  color: #2f73ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#membershipPage .membership-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #111c30;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.08;
}

#membershipPage .membership-hero span {
  display: block;
  max-width: 780px;
  margin-top: 20px;
  color: #607089;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
}

.membership-hero-terminal {
  align-self: center;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(177, 205, 255, 0.66);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 42px rgba(47, 115, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
}

.membership-hero-terminal strong {
  color: #111c30;
  font-size: 18px;
  font-weight: 750;
}

.membership-hero-terminal span {
  margin: 0 !important;
  border: 1px solid rgba(207, 224, 255, 0.82);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(248, 251, 255, 0.8);
  color: #43536a !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

#membershipPage .membership-plan-grid {
  position: relative;
  z-index: 2;
  align-items: stretch;
  gap: 18px;
  margin-top: -48px;
}

#membershipPage .membership-plan-card {
  display: grid;
  gap: 16px;
  min-height: 430px;
  border: 1px solid rgba(159, 190, 255, 0.5);
  border-radius: 16px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.88)),
    linear-gradient(135deg, rgba(47, 115, 255, 0.08), transparent);
  box-shadow: 0 22px 58px rgba(47, 115, 255, 0.12);
  backdrop-filter: blur(14px);
}

#membershipPage .membership-plan-card::before {
  width: 100%;
  height: 3px;
  inset: 0 0 auto;
  background: linear-gradient(90deg, #2f73ff, #24c2ff, #22c55e);
}

#membershipPage .membership-plan-card.active {
  border-color: #5f98ff;
  box-shadow: 0 32px 86px rgba(47, 115, 255, 0.24);
}

#membershipPage .membership-plan-top span {
  color: #111c30;
  font-size: 19px;
  font-weight: 750;
}

#membershipPage .membership-plan-top em {
  background: #eaf2ff;
  color: #2f73ff;
  font-size: 11px;
  font-weight: 650;
}

#membershipPage .membership-plan-card > strong {
  color: #111c30;
  text-align: left;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
}

#membershipPage .membership-plan-card > strong small {
  color: #6b7890;
  font-size: 13px;
  font-weight: 500;
}

#membershipPage .membership-plan-card p {
  min-height: 44px;
  color: #5c6a80;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

#membershipPage .membership-benefits {
  gap: 9px;
}

#membershipPage .membership-benefits span {
  border-color: #e0e9f8;
  border-radius: 10px;
  padding: 10px 11px;
  background: #f8fbff;
  color: #43536a;
  font-size: 12px;
  font-weight: 500;
}

#membershipPage .membership-plan-card button {
  height: 44px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #2f73ff, #24c2ff);
  box-shadow: 0 16px 34px rgba(47, 115, 255, 0.24);
}

.membership-payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 460;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(224, 235, 250, 0.62);
  backdrop-filter: blur(12px);
}

.membership-payment-overlay.hidden {
  display: none;
}

.membership-payment-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 300px;
  gap: 24px;
  width: min(760px, 100%);
  border: 1px solid rgba(174, 203, 255, 0.75);
  border-radius: 20px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.9) 52%, rgba(255, 255, 255, 0.98) 52.2%, #fff);
  box-shadow: 0 30px 86px rgba(47, 115, 255, 0.2);
  backdrop-filter: blur(18px);
}

.membership-payment-close {
  position: absolute;
  right: -12px;
  top: -12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d5e4ff;
  border-radius: 50%;
  background: #fff;
  color: #56657a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(13, 33, 66, 0.18);
  cursor: pointer;
}

.membership-payment-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  color: #111c30;
}

.membership-payment-copy > span {
  color: #2f73ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.membership-payment-copy h2 {
  margin: 0;
  color: #111c30;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.membership-payment-copy p {
  margin: 0;
  max-width: 360px;
  color: #607089;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
}

.membership-payment-summary {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.membership-payment-summary div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(207, 224, 255, 0.82);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(248, 251, 255, 0.82);
}

.membership-payment-summary span {
  color: #6b7890;
  font-size: 12px;
  font-weight: 500;
}

.membership-payment-summary strong {
  overflow: hidden;
  color: #111c30;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-payment-qr-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid #dce8fb;
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(13, 33, 66, 0.12);
}

.membership-payment-qr {
  display: grid;
  width: 188px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8e6ff;
  border-radius: 14px;
  background: #f8fbff;
}

.membership-payment-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.membership-payment-qr span {
  padding: 18px;
  color: #7b8aa5;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

.membership-payment-qr-panel strong {
  color: #111c30;
  font-size: 16px;
  font-weight: 750;
}

.membership-payment-qr-panel p {
  margin: 0;
  color: #6b7890;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

#membershipPage .membership-plan-card button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f73ff, #24c2ff);
  box-shadow: 0 16px 36px rgba(47, 115, 255, 0.22);
}

.office-upgrade-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(57, 128, 255, 0.2), transparent 38%),
    rgba(8, 19, 45, 0.46);
  backdrop-filter: blur(10px);
}

.office-upgrade-overlay.hidden {
  display: none;
}

.office-upgrade-modal {
  position: relative;
  width: min(1080px, 96vw);
  border: 1px solid #cfe0ff;
  border-radius: 24px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.96)),
    linear-gradient(90deg, rgba(68, 128, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(68, 128, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
  box-shadow: 0 34px 90px rgba(25, 72, 150, 0.28);
}

.office-upgrade-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid #d7e5ff;
  border-radius: 12px;
  color: #66758d;
  font-size: 22px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.office-upgrade-head {
  padding-right: 48px;
}

.office-upgrade-head span {
  color: #2f73ff;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.office-upgrade-head h2 {
  margin: 8px 0 8px;
  font-size: 32px;
}

.office-upgrade-head p {
  margin: 0;
  color: #6c7a91;
  font-size: 15px;
  font-weight: 800;
}

.office-upgrade-body {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.insufficient-balance-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 19, 45, 0.42);
  backdrop-filter: blur(10px);
}

.insufficient-balance-overlay.hidden {
  display: none;
}

.insufficient-balance-modal {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  width: min(560px, 94vw);
  border: 1px solid #cfe0ff;
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.98));
  box-shadow: 0 28px 72px rgba(25, 72, 150, 0.26);
}

.insufficient-balance-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #d7e5ff;
  border-radius: 10px;
  color: #66758d;
  font-size: 20px;
  font-weight: 900;
  background: #fff;
  cursor: pointer;
}

.insufficient-balance-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  color: #fff;
  font-size: 28px;
  font-weight: 1000;
  background: linear-gradient(135deg, #2f73ff, #24c2ff);
  box-shadow: 0 16px 36px rgba(47, 115, 255, 0.24);
}

.insufficient-balance-copy span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.insufficient-balance-copy h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 26px;
}

.insufficient-balance-copy p {
  margin: 0;
  color: #5f6f86;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.insufficient-balance-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.agent-commerce-overlay {
  position: fixed;
  inset: 0;
  z-index: 94;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 19, 45, 0.36);
  backdrop-filter: blur(10px);
}

.agent-commerce-overlay.hidden {
  display: none;
}

.agent-commerce-modal {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(520px, 94vw);
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
  box-shadow: 0 24px 66px rgba(25, 72, 150, 0.24);
}

.agent-commerce-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid #d7e5ff;
  border-radius: 9px;
  background: #fff;
  color: #66758d;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.agent-commerce-head {
  display: grid;
  gap: 6px;
  padding-right: 34px;
}

.agent-commerce-head span {
  width: max-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.agent-commerce-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.agent-commerce-head p,
.agent-commerce-agent span {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
}

.agent-commerce-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.agent-commerce-summary div,
.agent-commerce-agent {
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
}

.agent-commerce-summary span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.agent-commerce-summary strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.agent-commerce-agent {
  display: grid;
  gap: 4px;
}

.agent-commerce-agent strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.agent-commerce-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.office-slide-arrow {
  width: 52px;
  height: 86px;
  border: 1px solid #cfe0ff;
  border-radius: 18px;
  color: #2f73ff;
  font-size: 42px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(47, 115, 255, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.office-slide-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(47, 115, 255, 0.2);
}

.office-scene-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 22px;
  border: 1px solid #cfe0ff;
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 56px rgba(47, 115, 255, 0.12);
}

.office-scene-card.active {
  border-color: #73a9ff;
  box-shadow: 0 24px 66px rgba(47, 115, 255, 0.2);
}

.office-scene-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid #d6e7ff;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background: #eaf4ff;
}

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

.office-scene-preview span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
  background: rgba(18, 35, 68, 0.72);
}

.office-scene-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.office-scene-info em {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  color: #2f73ff;
  font-style: normal;
  font-size: 12px;
  font-weight: 1000;
  background: #edf4ff;
}

.office-scene-info h3 {
  margin: 16px 0 10px;
  font-size: 30px;
}

.office-scene-info p {
  margin: 0;
  color: #68778f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.office-scene-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.office-scene-stats span {
  border: 1px solid #d9e7ff;
  border-radius: 16px;
  padding: 12px;
  background: #f7fbff;
}

.office-scene-stats strong,
.office-scene-stats small {
  display: block;
}

.office-scene-stats strong {
  color: #172238;
  font-size: 18px;
}

.office-scene-stats small {
  margin-top: 4px;
  color: #7d8aa0;
  font-size: 12px;
  font-weight: 900;
}

.office-confirm-button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
  background: linear-gradient(135deg, #2f73ff, #24c2ff);
  box-shadow: 0 16px 36px rgba(47, 115, 255, 0.22);
  cursor: pointer;
}

.office-confirm-button:disabled {
  color: #2f73ff;
  background: #edf4ff;
  box-shadow: none;
  cursor: default;
}

body {
  font-size: 13px;
  line-height: 1.6;
}

.page-card p,
.page-card li,
.page-card .info-box,
.page-card .empty.small,
.login-card p {
  font-size: 13px;
  line-height: 1.65;
}

.page-card label,
.login-card label,
.settings-grid label,
.builder-form label,
.model-form label {
  font-size: 12px;
  line-height: 1.55;
}

.page-card label > span,
.login-card label > span,
.settings-grid label > span,
.builder-form label > span,
.model-form label > span {
  font-size: 12px;
  line-height: 1.55;
}

.page-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.page-card select,
.page-card textarea,
.login-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.login-card select,
.login-card textarea,
.settings-grid input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.settings-grid select,
.settings-grid textarea,
.filter-panel select,
.filter-panel input,
.admin-order-toolbar input,
.admin-order-toolbar select,
.knowledge-side-panel input,
.knowledge-side-panel select,
.builder-form input,
.builder-form select,
.builder-form textarea,
.model-form input,
.model-form select,
.model-form textarea,
.avatar-native-select {
  font-size: 13px;
}

.page-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"])::placeholder,
.page-card textarea::placeholder,
.login-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"])::placeholder,
.login-card textarea::placeholder,
.settings-grid input:not([type="checkbox"]):not([type="radio"]):not([type="range"])::placeholder,
.settings-grid textarea::placeholder,
.builder-form input::placeholder,
.builder-form textarea::placeholder,
.model-form input::placeholder,
.model-form textarea::placeholder {
  font-size: 13px;
}

.tabs button,
.filter-panel button,
.login-options button,
.login-links button,
.login-button,
.create-button,
.secondary-button,
.danger-button,
.hire-button,
.trial-button,
.row-actions button,
.admin-resource-foot button,
.admin-user-actions button,
.group-next-actions button,
.message-actions button,
.chat-followup-suggestions button,
.workflow-chat-actions button,
.chat-starter-options button,
.user-message-context-menu button,
.maintenance-backup-actions button,
.maintenance-source-actions button,
.admin-quick-actions button,
.token-wall-head button,
.knowledge-card-actions button,
.agent-preview-actions button,
.agent-workflow-row button,
.prompt-adapter-actions button,
.model-item-foot button,
.office-confirm-button {
  font-size: 13px;
}

.app-layout.admin-console-mode {
  font-size: 13px;
  line-height: 1.6;
}

.app-layout.admin-console-mode .admin-sidebar,
.app-layout.admin-console-mode .topbar,
.app-layout.admin-console-mode .page-card,
.app-layout.admin-console-mode .admin-list-panel,
.app-layout.admin-console-mode .builder-form,
.app-layout.admin-console-mode .model-form,
.app-layout.admin-console-mode .admin-resource-card,
.app-layout.admin-console-mode .usage-panel,
.app-layout.admin-console-mode .wechat-admin-panel,
.app-layout.admin-console-mode .site-settings-section,
.app-layout.admin-console-mode .wechat-test-checklist,
.app-layout.admin-console-mode .user-chat-audit-panel,
.app-layout.admin-console-mode .admin-user-table {
  font-size: 13px;
  line-height: 1.6;
}

.app-layout.admin-console-mode p,
.app-layout.admin-console-mode li,
.app-layout.admin-console-mode small,
.app-layout.admin-console-mode .empty,
.app-layout.admin-console-mode .empty.small,
.app-layout.admin-console-mode .info-box,
.app-layout.admin-console-mode .category-form-tip,
.app-layout.admin-console-mode .model-security-note,
.app-layout.admin-console-mode .managed-empty,
.app-layout.admin-console-mode .wechat-test-checklist p,
.app-layout.admin-console-mode .wechat-test-checklist li,
.app-layout.admin-console-mode .wechat-admin-overview p,
.app-layout.admin-console-mode .wechat-admin-callback p,
.app-layout.admin-console-mode .wechat-admin-event-list p,
.app-layout.admin-console-mode .wechat-admin-empty,
.app-layout.admin-console-mode .site-settings-overview p,
.app-layout.admin-console-mode .site-settings-card-head p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.app-layout.admin-console-mode .admin-menu-item,
.app-layout.admin-console-mode .admin-sidebar-foot span,
.app-layout.admin-console-mode .admin-sidebar-foot strong,
.app-layout.admin-console-mode .admin-topbar-title span,
.app-layout.admin-console-mode .admin-topbar-title strong,
.app-layout.admin-console-mode .admin-topbar-extra,
.app-layout.admin-console-mode .admin-resource-head span,
.app-layout.admin-console-mode .admin-resource-foot span,
.app-layout.admin-console-mode .admin-user-toolbar span,
.app-layout.admin-console-mode .user-detail-head span,
.app-layout.admin-console-mode .user-chat-audit-head span,
.app-layout.admin-console-mode .usage-panel-title span,
.app-layout.admin-console-mode .usage-row span,
.app-layout.admin-console-mode .usage-row small,
.app-layout.admin-console-mode .usage-row em,
.app-layout.admin-console-mode .admin-data-stats span,
.app-layout.admin-console-mode .admin-data-stats em,
.app-layout.admin-console-mode .admin-category-stats span,
.app-layout.admin-console-mode .admin-category-stats em,
.app-layout.admin-console-mode .usage-metric-grid span,
.app-layout.admin-console-mode .usage-metric-grid em,
.app-layout.admin-console-mode .wechat-admin-grid em,
.app-layout.admin-console-mode .wechat-admin-overview span,
.app-layout.admin-console-mode .wechat-admin-panel-head span,
.app-layout.admin-console-mode .wechat-admin-metrics span,
.app-layout.admin-console-mode .wechat-admin-metrics em,
.app-layout.admin-console-mode .wechat-admin-tenant-row span,
.app-layout.admin-console-mode .wechat-admin-tenant-row em,
.app-layout.admin-console-mode .wechat-admin-event-list span,
.app-layout.admin-console-mode .site-settings-overview span,
.app-layout.admin-console-mode .site-settings-card-head span,
.app-layout.admin-console-mode .site-settings-status span,
.app-layout.admin-console-mode .site-settings-form-grid label,
.app-layout.admin-console-mode .site-settings-form-grid label span,
.app-layout.admin-console-mode .site-qr-uploader,
.app-layout.admin-console-mode .site-qr-uploader > span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
}

.app-layout.admin-console-mode .admin-topbar-title strong,
.app-layout.admin-console-mode .admin-user-toolbar strong,
.app-layout.admin-console-mode .user-detail-head h1,
.app-layout.admin-console-mode .user-chat-audit-head strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.app-layout.admin-console-mode .panel-title h2,
.app-layout.admin-console-mode .form-section h2,
.app-layout.admin-console-mode .usage-panel-title h2,
.app-layout.admin-console-mode .wechat-test-checklist h2 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.app-layout.admin-console-mode .builder-form label,
.app-layout.admin-console-mode .builder-form label > span,
.app-layout.admin-console-mode .model-form label,
.app-layout.admin-console-mode .model-form label > span,
.app-layout.admin-console-mode .agent-starters-field,
.app-layout.admin-console-mode .agent-starters-field > span,
.app-layout.admin-console-mode .tool-checks label,
.app-layout.admin-console-mode .model-purpose-checks label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.app-layout.admin-console-mode .builder-form input,
.app-layout.admin-console-mode .builder-form select,
.app-layout.admin-console-mode .builder-form textarea,
.app-layout.admin-console-mode .model-form input,
.app-layout.admin-console-mode .model-form select,
.app-layout.admin-console-mode .model-form textarea,
.app-layout.admin-console-mode .admin-order-toolbar input,
.app-layout.admin-console-mode .admin-order-toolbar select,
.app-layout.admin-console-mode .settings-grid input,
.app-layout.admin-console-mode .settings-grid select,
.app-layout.admin-console-mode .settings-grid textarea {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.app-layout.admin-console-mode .builder-form input::placeholder,
.app-layout.admin-console-mode .builder-form textarea::placeholder,
.app-layout.admin-console-mode .model-form input::placeholder,
.app-layout.admin-console-mode .model-form textarea::placeholder,
.app-layout.admin-console-mode .admin-order-toolbar input::placeholder,
.app-layout.admin-console-mode .settings-grid input::placeholder,
.app-layout.admin-console-mode .settings-grid textarea::placeholder {
  font-size: 13px;
  font-weight: 400;
}

.app-layout.admin-console-mode button,
.app-layout.admin-console-mode .create-button,
.app-layout.admin-console-mode .secondary-button,
.app-layout.admin-console-mode .danger-button,
.app-layout.admin-console-mode .admin-resource-foot button,
.app-layout.admin-console-mode .admin-user-actions button,
.app-layout.admin-console-mode .admin-quick-actions button,
.app-layout.admin-console-mode .model-item-foot button,
.app-layout.admin-console-mode .maintenance-backup-actions button,
.app-layout.admin-console-mode .maintenance-source-actions button {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.app-layout.admin-console-mode .admin-user-row {
  min-height: 64px;
  color: #263244;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.app-layout.admin-console-mode .admin-user-head {
  min-height: 48px;
  font-size: 12px;
  font-weight: 600;
}

.app-layout.admin-console-mode .admin-user-row .user-id {
  font-size: 14px;
  font-weight: 700;
}

.app-layout.admin-console-mode .managed-category-toggle,
.app-layout.admin-console-mode .managed-item,
.app-layout.admin-console-mode .model-item,
.app-layout.admin-console-mode .admin-resource-card,
.app-layout.admin-console-mode .category-admin-card,
.app-layout.admin-console-mode #sceneLevelList .admin-resource-card,
.app-layout.admin-console-mode #enterpriseLevelList .admin-resource-card {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.app-layout.admin-console-mode .managed-item strong,
.app-layout.admin-console-mode .model-item strong,
.app-layout.admin-console-mode .admin-resource-head strong,
.app-layout.admin-console-mode .category-admin-card .admin-resource-head strong,
.app-layout.admin-console-mode #sceneLevelList .admin-resource-head strong,
.app-layout.admin-console-mode #enterpriseLevelList .admin-resource-head strong,
.app-layout.admin-console-mode .usage-row strong,
.app-layout.admin-console-mode .wechat-admin-grid strong,
.app-layout.admin-console-mode .wechat-admin-tenant-row strong,
.app-layout.admin-console-mode .wechat-admin-event-list strong,
.app-layout.admin-console-mode .site-settings-status strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.app-layout.admin-console-mode .managed-item small,
.app-layout.admin-console-mode .model-item span,
.app-layout.admin-console-mode .category-admin-card p,
.app-layout.admin-console-mode #sceneLevelList .admin-resource-card p,
.app-layout.admin-console-mode #enterpriseLevelList .admin-resource-card p,
.app-layout.admin-console-mode .agent-starters-field small,
.app-layout.admin-console-mode .model-purpose-field small,
.app-layout.admin-console-mode .model-version-field small {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.app-layout.admin-console-mode .admin-category-stats strong,
.app-layout.admin-console-mode .admin-data-stats strong,
.app-layout.admin-console-mode .usage-row b {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.app-layout.admin-console-mode .usage-metric-grid strong {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.app-layout.admin-console-mode .admin-resource-head em,
.app-layout.admin-console-mode .category-admin-card .admin-resource-head em,
.app-layout.admin-console-mode #sceneLevelList .admin-resource-head em,
.app-layout.admin-console-mode #enterpriseLevelList .admin-resource-head em,
.app-layout.admin-console-mode .managed-category-toggle em,
.app-layout.admin-console-mode .panel-title > span,
.app-layout.admin-console-mode .panel-title h2 span {
  font-size: 11px;
  font-weight: 600;
}

.app-layout.admin-console-mode .level-purchase-link {
  min-height: 30px;
}

.app-layout.admin-console-mode .level-purchase-link span {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.app-layout.admin-console-mode .level-purchase-link button {
  height: 22px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

@media (max-width: 980px) {
  .consult-showcase-nav {
    padding: 0 14px;
  }

  .consult-membership-row,
  #consultPage .purchase-consult-hero,
  .consult-war-room,
  .consult-flow-section,
  #consultPage .consult-scenario-band,
  .consult-final-cta,
  #membershipPage .membership-shell {
    width: min(100% - 28px, 1180px);
  }

  #membershipPage .membership-hero,
  .membership-payment-modal {
    grid-template-columns: 1fr;
  }

  #membershipPage .membership-hero {
    padding: 30px;
  }

  .membership-hero-terminal {
    width: 100%;
  }

  .membership-payment-modal {
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94) 58%, #fff 100%);
  }

  .membership-payment-close {
    right: 12px;
    top: 12px;
  }

  .consult-flow-section .consult-section-title h2 {
    white-space: normal;
  }

  .consult-final-cta,
  #membershipPage .membership-plan-grid {
    grid-template-columns: 1fr;
  }

  .agent-knowledge-list {
    grid-template-columns: 1fr;
  }

  .agent-knowledge-chip {
    min-height: 84px;
  }

  .dashboard-command-center {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-command-actions {
    flex-wrap: wrap;
  }

  .dashboard-metric-grid,
  .dashboard-main-grid,
  .dashboard-ops-grid,
  .dashboard-assets-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-employee-list button {
    grid-template-columns: 1fr;
  }

  .dashboard-employee-list em,
  .dashboard-panel-title span {
    text-align: left;
  }

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

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

  .account-section-card.full {
    grid-column: auto;
  }

  #membershipPage .membership-hero {
    padding: 32px;
  }
}
