:root {
  color-scheme: light;
  --bg: #eef4ff;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(132, 160, 255, 0.16);
  --text: #111a34;
  --muted: #5f6d90;
  --blue: #4b7dff;
  --blue-strong: #315ff0;
  --indigo: #6f5dff;
  --purple: #9a67ff;
  --mint: #58d5c6;
  --orange: #ffae5c;
  --slate: #9badcc;
  --shadow: 0 18px 40px rgba(63, 89, 169, 0.16);
  --soft-shadow: 0 10px 24px rgba(76, 101, 178, 0.11);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(163, 196, 255, 0.42), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(186, 160, 255, 0.3), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, #edf4ff 45%, #f8fbff 100%);
  color: var(--text);
  text-rendering: geometricPrecision;
}

body,
button,
input,
textarea,
select {
  font: inherit;
  -webkit-font-smoothing: antialiased;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.mobile-body {
  display: flex;
  justify-content: center;
  padding: 0;
}

.mobile-app {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  padding: env(safe-area-inset-top, 0) 16px calc(132px + env(safe-area-inset-bottom, 0));
  overflow: hidden;
}

.app-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
}

.app-glow-a {
  top: 92px;
  right: -18px;
  width: 160px;
  height: 160px;
  background: rgba(135, 115, 255, 0.26);
}

.app-glow-b {
  top: 260px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: rgba(115, 197, 255, 0.22);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px 12px;
  font-weight: 700;
}

.status-icons {
  display: flex;
  gap: 6px;
}

.status-icons span {
  display: block;
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(22, 33, 59, 0.9);
}

.screen-shell {
  display: grid;
  gap: 20px;
  padding-bottom: 42px;
}

.tab-screen {
  display: none;
  gap: 20px;
  padding-bottom: 12px;
}

.tab-screen.active {
  display: grid;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-box h1,
.view-header h2,
.section-head h3,
.hero-card h2,
.sheet-panel h3 {
  margin: 0;
  color: #0f1832;
}

.brand-box p,
.view-header p,
.hero-card p,
.section-head p,
.discover-card p,
.agent-card p,
.cta-banner p,
.profile-meta span,
.sheet-summary,
.notice-list p {
  margin: 0;
  color: var(--muted);
}

.brand-box p,
.category-chip span,
.agent-meta,
.discover-meta,
.nav-tab {
  text-shadow: none;
}

.brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4c86ff 0%, #735dff 58%, #33d4ff 100%);
  box-shadow: 0 14px 24px rgba(78, 109, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.brand-mark.small {
  width: 44px;
  height: 44px;
}

.brand-mark-ring {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #ffffff;
}

.brand-mark-ring::before,
.brand-mark-ring::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.brand-mark-ring::before {
  inset: 8px;
  background: linear-gradient(135deg, #4f84ff, #7b60ff);
}

.brand-mark-ring::after {
  inset: 15px;
  background: #ffffff;
}

.header-tools {
  display: flex;
  gap: 10px;
}

.icon-button,
.sheet-close {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(76, 101, 178, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(91, 118, 196, 0.08);
}

.icon-button::before,
.sheet-close::before,
.sheet-close::after,
.nav-icon::before,
.nav-icon::after,
.category-icon::before,
.hero-visual .mini-ring::before {
  content: "";
  position: absolute;
}

.icon-button[data-action="open-search"]::before {
  inset: 11px;
  border: 2.5px solid var(--text);
  border-radius: 50%;
}

.icon-button[data-action="open-search"]::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 11px;
  width: 10px;
  height: 2.5px;
  background: var(--text);
  transform: rotate(45deg);
  border-radius: 999px;
}

.icon-button[data-action="open-notice"]::before {
  top: 10px;
  left: 13px;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--text);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.icon-button[data-action="open-notice"]::after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: 11px;
  width: 22px;
  height: 11px;
  border: 2.5px solid var(--text);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.notice-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6d79, #ff855a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 16px rgba(255, 111, 122, 0.28);
}

.hero-card,
.cta-banner,
.agent-card,
.discover-card,
.profile-card,
.stat-card,
.profile-menu-item,
.hub-panel,
.sheet-panel,
.admin-card,
.admin-login-card,
.admin-item-card,
.admin-empty {
  background: var(--panel);
  border: 1px solid rgba(112, 136, 204, 0.1);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, #ffffff 0%, #f7faff 56%, #eef5ff 100%);
  box-shadow: 0 18px 36px rgba(67, 94, 181, 0.15);
}

.hero-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 700;
}

.hero-card h2 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
  color: #101933;
  font-weight: 900;
}

.hero-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 22px;
  color: #33415f;
  font-size: 14px;
  font-weight: 600;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 0 0 4px rgba(92, 128, 255, 0.12);
}

.primary-pill,
.light-pill {
  width: fit-content;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.primary-pill {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 16px 26px rgba(90, 111, 255, 0.26);
}

.light-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 52% 30%, rgba(255, 255, 255, 0.86), transparent 28%),
    linear-gradient(180deg, rgba(107, 132, 255, 0.22), rgba(198, 222, 255, 0.08));
  overflow: hidden;
}

.avatar-sphere {
  position: absolute;
  right: 22px;
  bottom: 8px;
  width: 198px;
  height: 250px;
  border-radius: 110px 110px 28px 28px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(180deg, rgba(84, 127, 255, 0.9), rgba(125, 102, 255, 0.72) 48%, rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.36);
}

.avatar-sphere::before,
.avatar-sphere::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.avatar-sphere::before {
  top: 22px;
  left: 44px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 50% 32%, #fff, #edf2ff 70%);
}

.avatar-sphere::after {
  left: 28px;
  bottom: 0;
  width: 142px;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
  border-radius: 26px 26px 18px 18px;
}

.floating {
  position: absolute;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: 0 20px 32px rgba(110, 131, 195, 0.16);
}

.floating-dashboard {
  left: 12px;
  bottom: 58px;
  width: 152px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.mini-chip {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(77, 125, 255, 0.18), rgba(132, 105, 255, 0.22));
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 800;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 8px;
}

.mini-bars span {
  display: block;
  width: 18px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(87, 130, 255, 0.9), rgba(129, 107, 255, 0.62));
}

.mini-bars span:nth-child(1) { height: 44px; }
.mini-bars span:nth-child(2) { height: 28px; }
.mini-bars span:nth-child(3) { height: 58px; }

.floating-data {
  top: 22px;
  right: 18px;
  width: 118px;
  height: 118px;
  padding: 16px;
}

.mini-ring {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #71cfff, #5d81ff, #a16dff, #71cfff);
}

.mini-ring::before {
  inset: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mini-grid span {
  height: 10px;
  border-radius: 999px;
  background: rgba(98, 126, 255, 0.22);
}

.visual-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.bubble-a { top: 34px; left: 18px; width: 36px; height: 36px; }
.bubble-b { top: 118px; right: 126px; width: 26px; height: 26px; }
.bubble-c { bottom: 22px; right: 8px; width: 48px; height: 48px; }

.category-strip,
.filter-tabs,
.hub-matrix,
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category-chip {
  position: relative;
  border: 0;
  border-radius: 20px;
  padding: 14px 10px 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(76, 101, 178, 0.12);
  text-align: center;
  border: 1px solid rgba(112, 136, 204, 0.08);
}

.category-icon {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 16px;
  color: var(--blue-strong);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.category-chip strong,
.agent-card strong,
.discover-card strong,
.profile-menu-item strong,
.stat-card strong,
.hub-tile strong {
  display: block;
  color: #121b36;
}

.category-chip span {
  display: block;
  color: #6b7795;
  font-size: 12px;
  font-weight: 600;
}

.section-head,
.view-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-head h3,
.view-header h2 {
  font-size: 28px;
  font-weight: 900;
}

.section-line {
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.text-link {
  border: 0;
  background: none;
  color: #7584ac;
  font-weight: 700;
}

.agent-grid,
.agent-list,
.discover-list,
.profile-menu {
  display: grid;
  gap: 14px;
}

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

.agent-card,
.discover-card,
.profile-menu-item {
  position: relative;
  border: 0;
  padding: 18px;
  border-radius: 24px;
  text-align: left;
  overflow: hidden;
}

.agent-card {
  min-height: 238px;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(72, 97, 176, 0.14);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.82);
}

.agent-icon,
.discover-icon,
.hub-icon,
.sheet-icon-card {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--blue-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.category-icon svg,
.agent-icon svg,
.discover-icon svg,
.hub-icon svg,
.sheet-icon-card svg {
  width: 34px;
  height: 34px;
  display: block;
  overflow: visible;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 5px 8px rgba(61, 91, 176, 0.12));
}

.category-icon::before,
.category-icon::after,
.agent-icon::before,
.agent-icon::after,
.discover-icon::before,
.discover-icon::after,
.hub-icon::before,
.hub-icon::after,
.sheet-icon-card::before,
.sheet-icon-card::after {
  content: none !important;
}

.agent-card p,
.discover-card p {
  line-height: 1.6;
  font-size: 13px;
  color: #5b6887;
}

.agent-meta,
.discover-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #69789a;
  font-size: 12px;
  font-weight: 600;
}

.pill-label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(150, 184, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #1c347f, #19235f 58%, #455af3);
  color: #fff;
}

.cta-banner h3,
.profile-card strong {
  margin: 0 0 6px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.74);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(calc(100vw - 24px), 406px);
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(112, 136, 204, 0.1);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -14px 34px rgba(80, 101, 176, 0.14);
}

.nav-tab {
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  gap: 6px;
  color: #657493;
  font-size: 12px;
}

.nav-tab.active {
  color: var(--blue-strong);
  font-weight: 700;
}

.nav-tab-center {
  transform: translateY(-18px);
}

.nav-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #4f7dff 0%, #7b5cff 100%);
  box-shadow: 0 16px 28px rgba(86, 92, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.nav-icon {
  position: relative;
  width: 26px;
  height: 26px;
}

.nav-home::before {
  inset: 5px;
  background: linear-gradient(135deg, currentColor, currentColor);
  clip-path: polygon(50% 0, 100% 36%, 100% 100%, 0 100%, 0 36%);
}

.nav-agent::before {
  inset: 2px 4px;
  border: 2.2px solid currentColor;
  border-radius: 8px;
}

.nav-discover::before {
  inset: 3px;
  border: 2.2px solid currentColor;
  border-radius: 50%;
}

.nav-discover::after {
  inset: 11px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.nav-user::before {
  top: 2px;
  left: 7px;
  width: 12px;
  height: 12px;
  border: 2.2px solid currentColor;
  border-radius: 50%;
}

.nav-user::after {
  left: 4px;
  bottom: 2px;
  width: 18px;
  height: 10px;
  border: 2.2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.filter-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #596887;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(118, 142, 201, 0.08);
}

.filter-button.active {
  background: linear-gradient(135deg, rgba(78, 124, 255, 0.14), rgba(129, 107, 255, 0.18));
  color: var(--blue-strong);
}

.agent-list .agent-card {
  min-height: 0;
}

.hub-panel {
  padding: 24px;
  border-radius: 30px;
  display: grid;
  gap: 18px;
}

.hub-hero {
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(83, 131, 255, 0.08), rgba(132, 108, 255, 0.1)),
    rgba(255, 255, 255, 0.92);
}

.hub-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 800;
}

.hub-hero h3 {
  margin: 14px 0 8px;
  font-size: 26px;
}

.hub-hero p {
  margin: 0;
  color: #596887;
  line-height: 1.7;
}

.hub-matrix {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-tile {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
}

.hub-mini-card {
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
}

.discover-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.discover-body {
  flex: 1;
}

.profile-card,
.profile-stats,
.profile-menu {
  display: grid;
}

.profile-card {
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
}

.profile-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  border-radius: 22px;
  padding: 18px 14px;
  text-align: center;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  font-size: 28px;
  margin-top: 8px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
}

.profile-menu-item::after,
.agent-card::after {
  content: "›";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-strong);
  font-size: 24px;
  box-shadow: 0 10px 18px rgba(118, 142, 201, 0.14);
}

.detail-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(13, 21, 42, 0.42);
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 46vh;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0));
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
}

.sheet-panel.short {
  min-height: 28vh;
}

.sheet-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: rgba(238, 244, 255, 0.9);
}

.sheet-close::before,
.sheet-close::after {
  top: 20px;
  left: 12px;
  width: 20px;
  height: 2px;
  background: #617196;
  border-radius: 999px;
}

.sheet-close::before { transform: rotate(45deg); }
.sheet-close::after { transform: rotate(-45deg); }

.sheet-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sheet-badge,
.sheet-pill {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.sheet-summary {
  line-height: 1.7;
  margin-top: 10px;
  color: #596887;
}

.sheet-icon-card {
  margin: 20px 0 18px;
}

.sheet-bullets {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #495879;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.sheet-action {
  min-height: 48px;
  border-radius: 16px;
  border: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.sheet-action.primary {
  color: #fff;
  background: linear-gradient(135deg, #2478ff, #7557ff);
  box-shadow: 0 16px 28px rgba(77, 100, 255, 0.24);
}

.sheet-action.ghost {
  color: #2851c6;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(112, 138, 210, 0.28);
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 118px;
  z-index: 60;
  transform: translateX(-50%);
  min-width: 168px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  background: rgba(18, 27, 55, 0.88);
  box-shadow: 0 16px 36px rgba(21, 31, 63, 0.24);
  backdrop-filter: blur(14px);
}

.notice-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.notice-list article {
  padding: 16px;
  border-radius: 18px;
  background: #f6f9ff;
}

/* Admin */

.admin-body {
  padding: 24px;
}

.admin-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.admin-toolbar,
.admin-login-card,
.admin-card {
  padding: 22px;
  border-radius: 28px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.admin-title h1,
.admin-title p,
.admin-card h2 {
  margin: 0;
}

.admin-title p,
.admin-card p,
.field-help,
.login-hint {
  color: var(--muted);
}

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

.admin-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.admin-card {
  display: grid;
  gap: 18px;
}

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

.admin-item-list {
  display: grid;
  gap: 14px;
}

.admin-item-card {
  padding: 18px;
  border-radius: 22px;
  background: #f8fbff;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-grid.single {
  grid-template-columns: 1fr;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-size: 13px;
  color: #4d5b80;
  font-weight: 700;
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  border: 1px solid rgba(115, 138, 199, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text);
  resize: vertical;
}

.field-group textarea {
  min-height: 100px;
}

.tiny-button,
.ghost-button,
.primary-button,
.save-fab {
  border: 0;
  border-radius: 14px;
  font-weight: 700;
}

.tiny-button,
.ghost-button,
.primary-button {
  min-height: 42px;
  padding: 0 16px;
}

.tiny-button {
  background: rgba(103, 123, 255, 0.12);
  color: var(--blue-strong);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.82);
  color: #5b6a8f;
}

.primary-button,
.save-fab {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff;
  box-shadow: 0 16px 26px rgba(90, 111, 255, 0.24);
}

.danger-button {
  background: rgba(255, 106, 125, 0.1);
  color: #d34262;
}

.login-row {
  display: grid;
  gap: 12px;
}

.admin-login-card {
  width: min(440px, 100%);
  margin: 10vh auto 0;
}

.admin-empty {
  padding: 18px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
}

.save-fab {
  position: sticky;
  bottom: 18px;
  justify-self: end;
  min-height: 52px;
  padding: 0 22px;
}

.message-bar {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(92, 128, 255, 0.12);
  color: #3956a8;
  font-weight: 700;
}

.message-bar.error {
  background: rgba(255, 106, 125, 0.12);
  color: #bf3255;
}

/* Accent and icon system */

.accent-blue { background: linear-gradient(135deg, rgba(96, 157, 255, 0.2), rgba(82, 122, 255, 0.16)); }
.accent-purple { background: linear-gradient(135deg, rgba(188, 135, 255, 0.22), rgba(128, 101, 255, 0.16)); }
.accent-mint { background: linear-gradient(135deg, rgba(111, 229, 206, 0.24), rgba(92, 198, 172, 0.16)); }
.accent-orange { background: linear-gradient(135deg, rgba(255, 196, 126, 0.28), rgba(255, 152, 85, 0.16)); }
.accent-indigo { background: linear-gradient(135deg, rgba(125, 155, 255, 0.24), rgba(100, 110, 255, 0.16)); }
.accent-slate { background: linear-gradient(135deg, rgba(198, 208, 230, 0.24), rgba(146, 164, 203, 0.16)); }

.pill-blue { background: rgba(90, 128, 255, 0.14); color: var(--blue-strong); }
.pill-purple { background: rgba(154, 103, 255, 0.14); color: #7c58ef; }
.pill-mint { background: rgba(88, 213, 198, 0.16); color: #238f80; }
.pill-orange { background: rgba(255, 174, 92, 0.16); color: #d57d18; }
.pill-indigo { background: rgba(111, 93, 255, 0.14); color: #5c4ef1; }
.pill-slate { background: rgba(155, 173, 204, 0.18); color: #627596; }

.category-icon::before,
.agent-icon::before,
.discover-icon::before,
.hub-icon::before,
.sheet-icon-card::before {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.icon-briefcase::before,
.icon-bag::before,
.icon-health::before,
.icon-graduation::before,
.icon-chart::before,
.icon-grid::before,
.icon-spark::before,
.icon-compass::before,
.icon-rocket::before {
  width: 34px;
  height: 34px;
}

.icon-briefcase::before {
  border: 3px solid #4b7dff;
  border-radius: 10px;
}

.icon-briefcase::after,
.icon-bag::after,
.icon-health::after,
.icon-chart::after,
.icon-compass::after,
.icon-rocket::after {
  content: "";
  position: absolute;
}

.icon-briefcase::after {
  top: 14px;
  left: 21px;
  width: 12px;
  height: 6px;
  border: 3px solid #4b7dff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.icon-bag::before {
  border: 3px solid #9a67ff;
  border-radius: 12px;
}

.icon-bag::after {
  top: 14px;
  left: 22px;
  width: 10px;
  height: 8px;
  border: 3px solid #9a67ff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.icon-health::before {
  background:
    linear-gradient(#58d5c6, #58d5c6) center/10px 28px no-repeat,
    linear-gradient(#58d5c6, #58d5c6) center/28px 10px no-repeat;
}

.icon-graduation::before {
  background: linear-gradient(135deg, #ffb15d, #ff9544);
  clip-path: polygon(50% 0, 100% 28%, 50% 56%, 0 28%);
}

.icon-graduation::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 16px;
  width: 36px;
  height: 12px;
  background: linear-gradient(135deg, #ffb15d, #ff9544);
  border-radius: 0 0 14px 14px;
}

.icon-chart::before {
  background:
    linear-gradient(#79a6ff, #4b7dff) 0 100%/8px 18px no-repeat,
    linear-gradient(#79a6ff, #4b7dff) 13px 100%/8px 26px no-repeat,
    linear-gradient(#79a6ff, #4b7dff) 26px 100%/8px 34px no-repeat;
}

.icon-grid::before {
  background:
    linear-gradient(#8ea2c8, #8ea2c8) 0 0/12px 12px no-repeat,
    linear-gradient(#8ea2c8, #8ea2c8) 18px 0/12px 12px no-repeat,
    linear-gradient(#8ea2c8, #8ea2c8) 0 18px/12px 12px no-repeat,
    linear-gradient(#8ea2c8, #8ea2c8) 18px 18px/12px 12px no-repeat;
}

.icon-spark::before {
  background: linear-gradient(135deg, #7e8eff, #9a67ff);
  clip-path: polygon(56% 0, 69% 34%, 100% 44%, 69% 56%, 56% 100%, 44% 56%, 0 44%, 44% 34%);
}

.icon-compass::before {
  border: 3px solid #4b7dff;
  border-radius: 50%;
}

.icon-compass::after {
  top: 18px;
  left: 28px;
  width: 3px;
  height: 16px;
  background: #4b7dff;
  transform: rotate(35deg);
  border-radius: 999px;
}

.icon-rocket::before {
  background: linear-gradient(135deg, #9a67ff, #4b7dff);
  clip-path: polygon(50% 0, 74% 25%, 74% 68%, 50% 100%, 26% 68%, 26% 25%);
}

.icon-rocket::after {
  bottom: 12px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: #ffb15d;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

code {
  font-family: Consolas, monospace;
  background: rgba(100, 120, 170, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

@media (max-width: 410px) {
  .mobile-app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 260px;
  }

  .category-strip,
  .agent-grid,
  .filter-tabs,
  .hub-matrix,
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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