:root {
  --bg: #fbf7f2;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --ink: #1f2233;
  --ink-soft: #4c5368;
  --muted: #7b8194;
  --quiet: #a2a8b8;
  --line: rgba(44, 48, 72, 0.12);
  --primary: #6c63ff;
  --primary-dark: #4038d7;
  --jade: #d9fff1;
  --cyan: #eaf4ff;
  --petal: #fff0f3;
  --lime: #fff1bd;
  --cinnabar: #ff765c;
  --warn: #b7791f;
  --danger: #c74747;
  --sidebar-ink: #17182f;
  --sidebar-soft: #252843;
  --shadow: 0 26px 70px rgba(41, 38, 72, 0.13);
  --soft-shadow: 0 14px 34px rgba(41, 38, 72, 0.08);
  --hairline: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 118, 92, 0.2), transparent 28vw),
    radial-gradient(circle at 92% 0%, rgba(108, 99, 255, 0.18), transparent 26vw),
    radial-gradient(circle at 78% 86%, rgba(45, 212, 191, 0.16), transparent 30vw),
    linear-gradient(135deg, #fffaf4 0%, #f6f2ff 50%, #f4fbff 100%);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--lime);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

p,
li {
  font-weight: 400;
}

strong {
  font-weight: 700;
}

select {
  color: var(--ink-soft);
}

.main::before {
  content: "";
  position: fixed;
  top: 20px;
  right: 30px;
  width: min(38vw, 520px);
  height: 140px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 118, 92, 0.12), rgba(108, 99, 255, 0.14), rgba(45, 212, 191, 0.1));
  filter: blur(32px);
  pointer-events: none;
}

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

.app-shell.is-admin {
  display: block;
}

.app-shell.is-admin .sidebar {
  display: none;
}

.app-shell.is-admin .main {
  min-height: 100vh;
}

.app-shell.is-locked {
  display: none;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-screen.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.auth-card {
  position: relative;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    linear-gradient(100deg, rgba(108, 99, 255, 0.11), rgba(255, 118, 92, 0.08));
  box-shadow: var(--shadow), var(--hairline);
  backdrop-filter: blur(18px);
}

.auth-admin-corner {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(108, 99, 255, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--soft-shadow);
}

.auth-admin-corner:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.auth-visual,
.auth-form {
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
}

.auth-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  align-content: center;
  overflow: hidden;
  color: #fffaf4;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 118, 92, 0.36), transparent 18vw),
    radial-gradient(circle at 84% 20%, rgba(108, 99, 255, 0.42), transparent 20vw),
    linear-gradient(145deg, #17182f, #26284c 56%, #3b2c55);
}

.auth-visual::after {
  content: "BUBBLE";
  position: absolute;
  right: -10px;
  bottom: -38px;
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(92px, 15vw, 190px);
  font-weight: 820;
  line-height: 0.8;
}

.auth-visual h1 {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-size: clamp(36px, 5vw, 64px);
}

.auth-visual p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 18px 0 0;
  color: rgba(255, 250, 244, 0.74);
  line-height: 1.8;
}

.auth-orbit {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.auth-orbit span {
  width: 46px;
  height: 8px;
  border-radius: 999px;
  background: var(--cinnabar);
  opacity: 0.88;
}

.auth-orbit span:nth-child(2) {
  width: 28px;
  background: var(--primary);
}

.auth-orbit span:nth-child(3) {
  width: 16px;
  background: #2dd4bf;
}

.auth-form {
  display: grid;
  align-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: grid;
}

.admin-gate-panel {
  background:
    radial-gradient(circle at 90% 10%, rgba(108, 99, 255, 0.12), transparent 160px),
    rgba(255, 255, 255, 0.72);
}

.auth-note,
.auth-status {
  margin: 8px 0 0;
  color: var(--quiet);
  line-height: 1.65;
  font-size: 14px;
}

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

.auth-status {
  min-height: 22px;
}

.admin-auth-entry {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-auth-entry strong,
.admin-auth-entry span {
  display: block;
}

.admin-auth-entry span {
  margin-top: 4px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.5;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #fffaf4;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 118, 92, 0.26), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(108, 99, 255, 0.36), transparent 34%),
    linear-gradient(165deg, var(--sidebar-ink), var(--sidebar-soft) 58%, #2a2137);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #191a31;
  background: linear-gradient(135deg, #fff1bd, #ffb8a6 48%, #c8c4ff);
  font-weight: 820;
  letter-spacing: 0;
  box-shadow: 0 14px 34px rgba(255, 118, 92, 0.2);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.brand-mark:hover {
  transform: translateY(-2px);
}

.brand-mark.is-empty {
  border: 1px dashed rgba(255, 250, 244, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 250, 244, 0.9);
  font-size: 28px;
  font-weight: 520;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 17px;
  font-weight: 760;
}

.brand span {
  margin-top: 4px;
  color: rgba(255, 250, 244, 0.68);
  font-size: 13px;
}

.nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  color: rgba(255, 250, 244, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: left;
  padding: 12px 16px;
  font-weight: 520;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
  color: #fffaf4;
}

.nav-item.active {
  transform: translateX(4px);
  background: linear-gradient(135deg, #fff1bd, #ffb8a6 62%, #d9d6ff);
  border-color: rgba(255, 241, 189, 0.88);
  color: #191a31;
  box-shadow: 0 16px 34px rgba(15, 14, 38, 0.22);
  font-weight: 720;
}

.nav-item.admin-only-nav {
  display: none;
}

.app-shell.is-admin .nav-item.admin-only-nav {
  display: flex;
}

.side-note {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  color: #fffaf4;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.side-note strong {
  font-weight: 700;
}

.side-note p {
  margin: 8px 0 0;
  line-height: 1.55;
  font-size: 13px;
  color: rgba(255, 250, 244, 0.68);
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(108, 99, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 244, 0.68)),
    linear-gradient(100deg, rgba(255, 118, 92, 0.1), rgba(108, 99, 255, 0.08));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.topbar::after {
  content: "BUBBLE PLANET";
  position: absolute;
  right: 18px;
  bottom: -6px;
  color: rgba(108, 99, 255, 0.07);
  font-size: clamp(34px, 6vw, 84px);
  font-weight: 820;
  letter-spacing: 0;
  pointer-events: none;
}

.eyebrow,
.micro-label {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 860;
  letter-spacing: 0;
}

h2 {
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0;
}

h3 {
  font-size: 17px;
  font-weight: 700;
}

.hero-copy {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 400;
}

.subcopy {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  font-weight: 400;
}

.top-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0efff;
  border: 1px solid rgba(108, 99, 255, 0.18);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 680;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 18px;
  animation: viewIn 0.28s ease both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vibe-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 118, 92, 0.34), transparent 28%),
    linear-gradient(110deg, #1b1b33, #4038d7 62%, #ff765c);
  color: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.vibe-strip strong {
  display: block;
  font-size: 20px;
  font-weight: 760;
}

.vibe-strip .micro-label {
  color: var(--lime);
}

.panel.bubble-world {
  position: relative;
  min-height: 560px;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 12, 32, 0.18), rgba(10, 12, 32, 0.36)),
    url("./assets/bubble-universe.jpg") center / cover no-repeat;
  box-shadow: 0 28px 70px rgba(24, 20, 58, 0.22);
}

.bubble-world::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(90deg, rgba(9, 11, 31, 0.28), transparent 30%, rgba(9, 11, 31, 0.12));
  opacity: 0.72;
  pointer-events: none;
}

.bubble-world::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%, rgba(4, 6, 20, 0.2));
  opacity: 0.86;
  pointer-events: none;
}

.bubble-stage {
  position: relative;
  z-index: 1;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
}

.bubble-stage::before {
  content: "";
  position: absolute;
  left: 16%;
  top: 10%;
  width: 68%;
  height: 76%;
  border-radius: 50%;
  border: 1px solid rgba(199, 210, 255, 0.14);
  transform: rotate(-12deg);
}

.bubble-stage::after {
  content: "";
  position: absolute;
  left: 30%;
  top: 22%;
  width: 42%;
  height: 56%;
  border-radius: 50%;
  border: 1px solid rgba(255, 184, 166, 0.12);
  transform: rotate(18deg);
}

.person-bubble {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  transform: translate(-50%, -50%);
  display: block;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.12) 34%, transparent 58%),
    linear-gradient(135deg, rgba(108, 99, 255, 0.28), rgba(255, 118, 92, 0.2));
  box-shadow: 0 0 26px rgba(131, 164, 255, 0.38), inset 0 0 18px rgba(255, 255, 255, 0.4);
  color: var(--ink);
  animation: bubbleDrift var(--dur, 18s) ease-in-out infinite;
  animation-delay: var(--d);
  cursor: pointer;
  z-index: 2;
  will-change: transform;
}

.person-bubble:hover {
  animation-play-state: paused;
  box-shadow: 0 0 34px rgba(255, 241, 189, 0.64), inset 0 0 18px rgba(255, 255, 255, 0.58);
}

.person-bubble img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.52);
}

.bubble-2,
.bubble-5 {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.28) 28%, transparent 50%),
    linear-gradient(135deg, rgba(45, 212, 191, 0.28), rgba(108, 99, 255, 0.22));
}

.bubble-3,
.bubble-6 {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.28) 28%, transparent 50%),
    linear-gradient(135deg, rgba(255, 241, 189, 0.42), rgba(255, 118, 92, 0.22));
}

.bubble-profile {
  position: absolute;
  z-index: 5;
  width: 220px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fffaf4;
  background: rgba(18, 20, 45, 0.76);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.bubble-profile strong {
  font-size: 19px;
}

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

.bubble-profile-kicker {
  color: #fff1bd;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
}

.bubble-profile-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: 14px;
}

.bubble-profile-grid span {
  color: rgba(255, 250, 244, 0.56);
}

.bubble-profile-grid b {
  color: #fffaf4;
  font-weight: 650;
}

.bubble-chat-btn {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 241, 189, 0.46);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 241, 189, 0.94), rgba(255, 132, 168, 0.88));
  color: #281834;
  font-weight: 760;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.bubble-chat-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

@keyframes bubbleDrift {
  0% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r));
  }
  32% {
    transform: translate(calc(-50% + var(--dx2)), calc(-50% + var(--dy2))) rotate(var(--r2));
  }
  64% {
    transform: translate(calc(-50% + var(--dx3)), calc(-50% + var(--dy3))) rotate(calc(var(--r) * -1));
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r));
  }
}

.mini-radar {
  width: 118px;
  height: 60px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.mini-radar span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #fff1bd, #ffb8a6);
  animation: bars 1.8s ease-in-out infinite;
}

.mini-radar span:nth-child(1) {
  height: 38%;
}

.mini-radar span:nth-child(2) {
  height: 82%;
  animation-delay: 0.15s;
}

.mini-radar span:nth-child(3) {
  height: 58%;
  animation-delay: 0.3s;
}

@keyframes bars {
  50% {
    transform: scaleY(0.72);
  }
}

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

.admin-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric,
.panel,
.result-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--soft-shadow), var(--hairline);
  backdrop-filter: blur(14px);
}

.metric {
  position: relative;
  padding: 18px;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px auto;
  width: 44px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.2;
}

.metric:nth-child(2)::after {
  background: #ff765c;
}

.metric:nth-child(3)::after {
  background: #2dd4bf;
}

.metric:nth-child(4)::after {
  background: #c8c4ff;
}

.metric:nth-child(5)::after {
  background: #ffb8a6;
}

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

.metric strong {
  display: block;
  font-size: 34px;
  margin-top: 8px;
  font-weight: 820;
  letter-spacing: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
}

.panel,
.result-panel {
  padding: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-head > div {
  min-width: 0;
}

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

.feature-list > div {
  position: relative;
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.64);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-list strong {
  font-weight: 720;
}

.feature-list > div:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.feature-list > div::before {
  content: "";
  display: block;
  width: 36px;
  height: 6px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--primary), #c8c4ff);
}

.feature-list > div:nth-child(2)::before {
  background: linear-gradient(90deg, #2dd4bf, var(--cyan));
}

.feature-list > div:nth-child(3)::before {
  background: linear-gradient(90deg, var(--cinnabar), #ffb8a6);
}

.feature-list > div:nth-child(4)::before {
  background: linear-gradient(90deg, var(--lime), var(--primary));
}

.feature-list p {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.65;
  font-weight: 400;
}

.quick-actions {
  display: grid;
  gap: 10px;
}

.reward-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reward-action em {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: inherit;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.secondary-btn.reward-action em {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-dark);
}

.primary-btn,
.secondary-btn,
.danger-btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  min-height: 42px;
  font-weight: 720;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover {
  transform: translateY(-2px);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(108, 99, 255, 0.22);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #3028c3, #5b52f0);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.danger-btn {
  background: #feecec;
  color: var(--danger);
}

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

.import-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 132px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  border: 1px dashed rgba(108, 99, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 241, 189, 0.24), rgba(234, 244, 255, 0.62)),
    rgba(255, 255, 255, 0.42);
}

.import-box p {
  margin: 6px 0 0;
  color: var(--quiet);
  line-height: 1.6;
  font-size: 14px;
  font-weight: 400;
}

.import-box strong {
  font-weight: 720;
}

.file-picker {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 8px;
  background: #1b1b33;
  color: #fff1bd;
  font-weight: 760;
  text-align: center;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.import-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 2px;
  padding: 11px 12px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(108, 99, 255, 0.11), rgba(255, 241, 189, 0.3)),
    rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(108, 99, 255, 0.12);
}

.form-section-title span {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #1b1b33;
  color: #fff1bd;
  font-size: 12px;
  font-weight: 780;
}

.form-section-title strong {
  color: var(--ink);
  font-weight: 720;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 520;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: none;
  font-weight: 400;
  transition: box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: #a7abb8;
  font-weight: 400;
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(108, 99, 255, 0.62);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
}

.span-2 {
  grid-column: 1 / -1;
}

.inline-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2px;
}

.work-history-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.hobby-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.hobby-chip-row button {
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 520;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.hobby-chip-row button:hover,
.hobby-chip-row button.active {
  transform: translateY(-1px);
  border-color: rgba(108, 99, 255, 0.48);
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.16), rgba(98, 216, 207, 0.16));
  color: var(--primary-dark);
}

.hobby-other-line {
  margin-top: 2px;
}

.hr-score-table {
  display: grid;
  gap: 14px;
}

.scoring-guide {
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.09), rgba(255, 241, 189, 0.28));
  border: 1px solid rgba(108, 99, 255, 0.14);
}

.scoring-guide h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
}

.scoring-guide ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.scoring-guide li {
  padding: 9px 8px;
  border-radius: 999px;
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  font-weight: 720;
}

.scoring-guide li:nth-child(1) { background: #25a46b; }
.scoring-guide li:nth-child(2) { background: #3488db; }
.scoring-guide li:nth-child(3) { background: #f1a330; }
.scoring-guide li:nth-child(4) { background: #df7a2f; }
.scoring-guide li:nth-child(5) { background: #d94b4b; }

.hr-score-dimension {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.14), rgba(98, 216, 207, 0.12));
  border: 1px solid rgba(108, 99, 255, 0.18);
}

.hr-score-dimension strong {
  color: var(--primary-dark);
  font-size: 18px;
}

.hr-score-dimension span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 760;
}

.hr-question-prompts {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px dashed rgba(108, 99, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(240, 239, 255, 0.7), rgba(255, 255, 255, 0.78));
}

.hr-question-prompts strong {
  color: var(--primary-dark);
  font-size: 15px;
}

.hr-question-prompts ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.hr-question-prompts li {
  padding-left: 2px;
}

.hr-score-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.46fr) minmax(260px, 1fr);
  gap: 12px 16px;
  padding: 16px;
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(31, 35, 78, 0.06);
}

.hr-score-row {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}

.hr-score-row strong {
  color: var(--ink);
  font-weight: 720;
  align-content: center;
}

.hr-score-row p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 400;
}

.score-value-input {
  display: none;
}

.rating-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: start;
}

.rating-btn {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(108, 99, 255, 0.16);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 760;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.rating-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 99, 255, 0.5);
  background: rgba(108, 99, 255, 0.08);
}

.rating-btn.active {
  color: #ffffff;
}

.rating-btn.active-low {
  border-color: #d94b4b;
  background: #d94b4b;
}

.rating-btn.active-mid {
  border-color: #f1a330;
  background: #f1a330;
}

.rating-btn.active-high {
  border-color: #25a46b;
  background: #25a46b;
}

.hr-score-row textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 72px;
  background: rgba(248, 249, 255, 0.76);
}

.hr-score-total {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 241, 189, 0.36), rgba(108, 99, 255, 0.1));
  color: var(--ink-soft);
}

.hr-score-total strong {
  color: var(--primary-dark);
  font-size: 34px;
  line-height: 1;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.result-panel:empty {
  display: none;
}

.score-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.score-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--primary) var(--score), #eef0ff 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), var(--soft-shadow);
}

.score-ring span {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  font-size: 28px;
  font-weight: 820;
  letter-spacing: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: #f0efff;
  color: var(--primary-dark);
  border: 1px solid rgba(108, 99, 255, 0.14);
  font-size: 13px;
  font-weight: 560;
}

.mall-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 118, 92, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(240, 239, 255, 0.68));
}

.mall-balance {
  min-width: 150px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(108, 99, 255, 0.16);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

.mall-balance strong {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  color: var(--primary-dark);
}

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

.mall-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow), var(--hairline);
}

.mall-product-visual {
  aspect-ratio: 72 / 46;
  min-height: 132px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.88), transparent 18%),
    linear-gradient(135deg, rgba(108, 99, 255, 0.18), rgba(255, 118, 92, 0.18));
}

.event-card .mall-product-visual {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.88), transparent 18%),
    linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(108, 99, 255, 0.2));
}

.mall-product-visual span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-dark);
  font-size: 30px;
  font-weight: 820;
  box-shadow: var(--soft-shadow);
}

.mall-product-visual img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  display: block;
}

.mall-card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.mall-card-body h3,
.mall-card-body p {
  margin: 0;
}

.mall-card-body p {
  color: var(--muted);
  line-height: 1.6;
}

.mall-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f0efff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.mall-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.mall-card-foot strong {
  font-size: 22px;
  color: var(--ink);
}

.mall-card-foot .primary-btn {
  min-height: 38px;
  padding: 8px 12px;
}

.mall-order-panel {
  border-color: rgba(108, 99, 255, 0.16);
}

.mall-pickup-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mall-order-list {
  display: grid;
  gap: 12px;
}

.mall-order-card p {
  margin-bottom: 0;
}

.admin-product-form {
  padding: 16px;
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 6%, rgba(255, 214, 102, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.66);
}

.product-image-preview {
  aspect-ratio: 72 / 46;
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(108, 99, 255, 0.28);
  border-radius: 12px;
  background: rgba(248, 247, 255, 0.72);
  color: var(--muted);
}

.product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-product-thumb {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.qr-box {
  display: inline-grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.qr-grid {
  width: 132px;
  height: 132px;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-template-rows: repeat(11, 1fr);
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: #f8f8ff;
}

.qr-grid span {
  border-radius: 2px;
  background: rgba(31, 34, 51, 0.08);
}

.qr-grid span.on {
  background: #1b1b33;
}

.qr-box p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.section-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.mini-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 400;
}

.mini-card strong {
  display: block;
  font-weight: 680;
}

.question-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.68);
  margin-bottom: 12px;
  overflow: hidden;
}

.question-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--cinnabar));
}

.question-card p {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.65;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  margin: 7px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.55;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.option:hover {
  background: #ffffff;
  border-color: rgba(108, 99, 255, 0.16);
}

.option input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--primary);
}

.four-d-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 24px;
  margin-bottom: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 18%, rgba(118, 75, 162, 0.28), transparent 28%),
    linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 22px 48px rgba(72, 55, 160, 0.22);
}

.four-d-stage .eyebrow,
.four-d-stage .subcopy {
  color: rgba(255, 255, 255, 0.78);
}

.four-d-stage h3 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.assessment-stage {
  margin-top: 12px;
}

.assessment-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.assessment-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 680;
  box-shadow: inset 0 0 0 1px rgba(108, 99, 255, 0.12);
}

.four-d-progress {
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(108, 99, 255, 0.14);
  box-shadow: 0 14px 34px rgba(73, 85, 140, 0.08);
}

.four-d-progress-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 680;
}

.four-d-progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ebf5;
}

.four-d-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.28s ease;
}

.four-d-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.four-d-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: #eef0f8;
  color: var(--ink-soft);
  font-weight: 720;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.four-d-tab:hover {
  transform: translateY(-1px);
}

.four-d-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.four-d-step-area {
  min-height: 420px;
}

.four-d-step-card {
  display: none;
  animation: fourDStepIn 0.24s ease;
}

.four-d-step-card.active {
  display: block;
}

.four-d-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.four-d-nav button:last-child {
  margin-left: auto;
}

.quiz-step-nav,
.mbti-step-nav {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(108, 99, 255, 0.12);
  box-shadow: 0 18px 44px rgba(73, 85, 140, 0.13);
  backdrop-filter: blur(18px);
}

@keyframes fourDStepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.four-d-badges,
.four-d-section-head,
.question-meta,
.four-d-dimension-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.four-d-badge,
.four-d-mini {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.four-d-mini {
  background: #f0f4ff;
  color: #5b5ee8;
  border-color: rgba(108, 99, 255, 0.18);
}

.four-d-mini.is-c,
.four-d-badge.is-c {
  background: #e8f8f0;
  color: #20975c;
}

.four-d-mini.is-i,
.four-d-badge.is-i {
  background: #fff8df;
  color: #b38500;
}

.four-d-mini.is-v,
.four-d-badge.is-v {
  background: #e9f5ff;
  color: #247fc1;
}

.four-d-mini.is-d,
.four-d-badge.is-d {
  background: #fff0e1;
  color: #c96513;
}

.four-d-section {
  margin-top: 20px;
}

.four-d-section-head {
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(108, 99, 255, 0.12);
}

.four-d-section-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  font-weight: 800;
}

.four-d-section-head h3 {
  margin: 0;
}

.four-d-section-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.four-d-question {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(73, 85, 140, 0.08);
}

.question-meta {
  align-items: center;
  margin-bottom: 10px;
}

.question-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.four-d-option {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border-color: transparent;
}

.four-d-option:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.four-d-option b {
  color: var(--ink);
}

.four-d-option em {
  margin-left: 8px;
  color: #7b8194;
  font-size: 12px;
  font-style: normal;
}

.four-d-case {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 244, 255, 0.86));
}

.four-d-case h3 {
  margin: 0 0 10px;
  color: #5b5ee8;
}

.four-d-case .case-content {
  color: var(--ink-soft);
  font-weight: 400;
}

.four-d-case label {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 620;
}

.four-d-case textarea {
  width: 100%;
  min-height: 92px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

.four-d-case textarea:focus {
  outline: none;
  border-color: rgba(108, 99, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.four-d-result-hero {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 244, 255, 0.86));
}

.four-d-dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.four-d-dim-card {
  min-height: 154px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(108, 99, 255, 0.12);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(73, 85, 140, 0.08);
}

.four-d-dim-card span,
.four-d-dim-card strong,
.four-d-dim-card b,
.four-d-dim-card small {
  display: block;
}

.four-d-dim-card span {
  font-size: 26px;
}

.four-d-dim-card strong {
  margin-top: 8px;
  font-size: 16px;
}

.four-d-dim-card b {
  margin-top: 10px;
  font-size: 32px;
  line-height: 1;
}

.four-d-dim-card small {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.four-d-dim-card.is-primary {
  border-width: 2px;
  transform: translateY(-2px);
}

.four-d-dim-card.is-c {
  background: linear-gradient(180deg, #ffffff, #e8f8f0);
}

.four-d-dim-card.is-i {
  background: linear-gradient(180deg, #ffffff, #fff8df);
}

.four-d-dim-card.is-v {
  background: linear-gradient(180deg, #ffffff, #e9f5ff);
}

.four-d-dim-card.is-d {
  background: linear-gradient(180deg, #ffffff, #fff0e1);
}

.quiz-actions {
  margin-top: 14px;
}

.mbti-landing {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(108, 99, 255, 0.06), transparent 18%, transparent 82%, rgba(108, 99, 255, 0.06)),
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(180deg, #dfe6ff, #edf2ff 72%, rgba(255, 255, 255, 0.8));
}

.mbti-landing::before {
  content: "MBTI";
  position: absolute;
  inset: -30px auto auto 4%;
  color: rgba(108, 99, 255, 0.08);
  font-size: clamp(140px, 20vw, 320px);
  font-weight: 900;
  line-height: 0.9;
}

.mbti-hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 8px;
}

.mbti-hero-copy h2 {
  color: #3360ff;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 880;
}

.mbti-hero-copy p:not(.eyebrow) {
  margin: 10px auto 0;
  max-width: 620px;
  color: rgba(51, 96, 255, 0.82);
  line-height: 1.55;
}

.mbti-mode-grid {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.mbti-mode-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  padding: 18px 26px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, rgba(69, 95, 255, 0.86), rgba(42, 162, 255, 0.86));
  box-shadow: 0 20px 38px rgba(51, 96, 255, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.mbti-mode-card:hover,
.mbti-mode-card.active {
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow: 0 24px 46px rgba(51, 96, 255, 0.24);
}

.mbti-mode-card.active {
  outline: 3px solid rgba(255, 255, 255, 0.56);
}

.mbti-mode-card strong {
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
}

.mbti-mode-card span {
  font-size: 16px;
}

.mbti-current-mode {
  margin: 0;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f0efff;
  color: var(--primary-dark);
  font-weight: 700;
}

.career-chart-panel {
  position: relative;
  overflow: hidden;
  color: #fffaf4;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 205, 225, 0.34), transparent 24%),
    radial-gradient(circle at 82% 8%, rgba(110, 226, 255, 0.3), transparent 26%),
    radial-gradient(circle at 70% 78%, rgba(255, 214, 102, 0.22), transparent 28%),
    linear-gradient(135deg, #171765, #392379 48%, #10133e);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 60px rgba(18, 18, 74, 0.26);
}

.career-chart-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px);
  background-size: 86px 86px, 132px 132px;
  opacity: 0.38;
  transform: rotate(-8deg);
}

.career-chart-panel > * {
  position: relative;
  z-index: 1;
}

.career-chart-panel .panel-head {
  color: #fffaf4;
}

.career-chart-panel .subcopy,
.career-chart-panel .eyebrow {
  color: rgba(255, 250, 244, 0.72);
}

.career-chart-form {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr 1fr;
  gap: 18px;
  align-items: end;
  margin-top: 24px;
}

.career-chart-panel label,
.career-chart-panel legend {
  color: #fffaf4;
}

.career-chart-panel input,
.career-chart-panel select {
  color: #fffaf4;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.career-chart-panel input:focus,
.career-chart-panel select:focus {
  border-color: rgba(255, 205, 225, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 205, 225, 0.12);
}

.career-chart-panel select option {
  color: #182033;
  background: #ffffff;
}

.career-chart-panel select option:checked {
  color: #ffffff;
  background: #6c63ff;
}

.birth-select-group {
  min-width: 0;
}

.birth-selects {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: 8px;
}

.birth-selects select {
  min-width: 0;
  padding-left: 12px;
  padding-right: 28px;
}

.radio-field {
  display: grid;
  gap: 10px;
  min-height: 64px;
  border: 0;
  padding: 0;
  margin: 0;
}

.radio-field legend {
  width: 100%;
  margin-bottom: 8px;
  font-weight: 650;
}

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

.gender-options label {
  position: relative;
  display: grid;
}

.gender-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-options span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 250, 244, 0.76);
  font-weight: 720;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.gender-options input:checked + span {
  color: #fffaf4;
  border-color: rgba(255, 205, 225, 0.88);
  background: linear-gradient(135deg, rgba(255, 132, 168, 0.88), rgba(108, 99, 255, 0.78));
  box-shadow: 0 12px 26px rgba(255, 132, 168, 0.2);
}

.career-form-note {
  grid-column: 1 / 4;
  align-self: center;
  margin: 0;
}

.career-form-actions {
  grid-column: 4;
  justify-content: end;
}

.career-result {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 20px;
  align-items: start;
}

.fun-astro-result {
  padding: 6px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 205, 225, 0.2), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(45, 212, 191, 0.14), transparent 26%),
    rgba(255, 255, 255, 0.34);
}

.career-wheel {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1;
  margin: 12px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 17%, transparent 18%),
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), transparent 10%),
    conic-gradient(from 18deg, rgba(108, 99, 255, 0.34), rgba(255, 132, 168, 0.3), rgba(255, 214, 102, 0.26), rgba(45, 212, 191, 0.28), rgba(108, 99, 255, 0.34));
  box-shadow: 0 30px 70px rgba(35, 31, 84, 0.2), inset 0 0 0 1px rgba(108, 99, 255, 0.18);
}

.career-wheel::before,
.career-wheel::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 50%;
}

.career-wheel::after {
  inset: 33%;
  border-color: rgba(255, 118, 92, 0.2);
}

.career-wheel span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 30px;
  margin: -15px 0 0 -35px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 720;
  transform: rotate(calc(var(--i) * 45deg)) translateY(-136px) rotate(calc(var(--i) * -45deg));
}

.career-wheel span.active {
  color: #fffaf4;
  background: linear-gradient(135deg, #6c63ff, #ff84a8 55%, #ffd666);
  box-shadow: 0 16px 32px rgba(255, 132, 168, 0.26);
}

.career-wheel-core {
  position: absolute;
  inset: 38%;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.career-wheel-core strong {
  font-size: 20px;
}

.career-wheel-core small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 650;
}

.astro-summary {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 205, 225, 0.34), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 247, 255, 0.78));
}

.astro-summary p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.astro-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.astro-chip-row span {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(108, 99, 255, 0.12);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 720;
}

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

.astro-block {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(31, 34, 51, 0.07);
}

.astro-block::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -48px;
  top: -54px;
  border-radius: 50%;
  opacity: 0.58;
  background: var(--astro-glow, rgba(108, 99, 255, 0.18));
}

.astro-block-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.astro-block-head span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 780;
}

.astro-block-head small {
  color: var(--muted);
  font-weight: 520;
}

.astro-block .list {
  position: relative;
  z-index: 1;
}

.astro-block .list li {
  line-height: 1.75;
}

.astro-violet { --astro-glow: rgba(108, 99, 255, 0.2); }
.astro-gold { --astro-glow: rgba(255, 214, 102, 0.34); }
.astro-mint { --astro-glow: rgba(45, 212, 191, 0.22); }
.astro-blue { --astro-glow: rgba(75, 151, 255, 0.2); }
.astro-rose { --astro-glow: rgba(255, 132, 168, 0.28); }
.astro-sunset { --astro-glow: rgba(255, 118, 92, 0.24); }

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

.name-line {
  max-width: 380px;
}

.mbti-dim {
  margin: 22px 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff1bd, #f0efff);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

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

.record-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.record-card p {
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
}

.profile-lock {
  padding: 12px;
  border: 1px dashed rgba(108, 99, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(234, 244, 255, 0.72), rgba(255, 241, 189, 0.34));
}

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px dashed rgba(108, 99, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.avatar-editor img {
  width: 150px;
  height: 150px;
  border-radius: 34px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  flex: 0 0 auto;
}

.avatar-editor p {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 400;
}

.avatar-picker {
  display: inline-flex;
}

.point-card strong {
  color: var(--primary-dark);
}

.admin-login-box {
  display: grid;
  gap: 14px;
  max-width: 520px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 241, 189, 0.18), rgba(234, 244, 255, 0.48)),
    rgba(255, 255, 255, 0.62);
}

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

.admin-controls {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 241, 189, 0.2), rgba(234, 244, 255, 0.5)),
    rgba(255, 255, 255, 0.62);
}

.admin-search {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.admin-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.compact-search-btn {
  min-height: 48px;
  padding-inline: 24px;
  white-space: nowrap;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 520;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.admin-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(108, 99, 255, 0.32);
  color: var(--ink);
}

.admin-tab.active {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: rgba(108, 99, 255, 0.78);
  color: #fff;
  box-shadow: 0 12px 24px rgba(108, 99, 255, 0.2);
}

.admin-module-panel {
  display: grid;
  gap: 12px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

@media (max-width: 900px) {
  .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(44, 48, 72, 0.09);
  font-size: 14px;
  white-space: nowrap;
}

.admin-table th {
  color: var(--ink);
  background: rgba(240, 239, 255, 0.72);
  font-weight: 680;
}

.admin-table td {
  color: var(--ink-soft);
  font-weight: 400;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.feedback-admin-table {
  min-width: 1120px;
}

.user-admin-table {
  min-width: 980px;
}

.mall-order-admin-table {
  min-width: 1180px;
}

.admin-table .long-cell {
  min-width: 260px;
  max-width: 360px;
  white-space: normal;
  line-height: 1.6;
}

.admin-table .long-cell p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 400;
}

.table-muted {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 400;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
}

.shipping-action {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 210px;
}

.shipping-action input {
  min-width: 130px;
  padding: 8px 9px;
  font-size: 12px;
}

.tiny-btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 9px;
  background: rgba(255, 241, 189, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.tiny-btn.danger {
  background: rgba(255, 235, 229, 0.8);
  color: #8c3a27;
}

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

.inbox-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.compact-card {
  padding: 12px;
}

.inbox-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--quiet);
}

.inbox-head div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inbox-card p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 400;
}

.status-pill {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f0efff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.station-letter {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(234, 244, 255, 0.92), rgba(255, 241, 189, 0.72));
  border: 1px solid rgba(108, 99, 255, 0.14);
}

.station-letter p {
  margin: 6px 0;
}

.station-letter span {
  color: var(--quiet);
  font-size: 13px;
}

.empty-note {
  margin: 10px 0 0;
  color: var(--quiet);
  line-height: 1.7;
}

.list {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 400;
}

.report-text {
  white-space: pre-wrap;
  line-height: 1.75;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font-weight: 400;
}

.warning {
  color: #8f7f69;
  font-weight: 400;
  line-height: 1.7;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: 340px;
  padding: 13px 15px;
  border-radius: 8px;
  background: #1b1b33;
  color: #ffffff;
  box-shadow: var(--shadow);
  animation: toastIn 0.22s ease both;
}

.toast strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 700;
}

.toast span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mbti-persona-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 184, 160, 0.36), transparent 30%),
    linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(69, 205, 206, 0.12));
}

.mbti-persona-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  font-size: 46px;
  background: linear-gradient(145deg, #fff6e8, #e8e7ff);
  box-shadow: 0 18px 42px rgba(60, 48, 120, 0.18);
}

.mbti-persona-card h3 {
  margin: 4px 0 8px;
}

.mbti-persona-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.astro-match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.astro-match-grid article {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.46), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(239, 236, 255, 0.68));
  box-shadow: 0 18px 38px rgba(47, 43, 100, 0.12);
}

.astro-match-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.astro-match-grid strong {
  display: block;
  font-size: 24px;
}

.astro-match-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

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

  .career-form-note,
  .career-form-actions {
    grid-column: 1 / -1;
  }

  .career-form-actions {
    justify-content: start;
  }

  .auth-visual {
    min-height: 340px;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .metric-grid,
  .two-col,
  .feature-list,
  .record-grid,
  .astro-report-grid,
  .astro-match-grid,
  .career-result,
  .four-d-stage,
  .four-d-dimension-grid,
  .bubble-world {
    grid-template-columns: 1fr;
  }

  .bubble-stage {
    min-height: 360px;
  }

  .bubble-world {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .main,
  .sidebar {
    padding: 16px;
  }

  .topbar,
  .panel-head,
  .score-card,
  .vibe-strip,
  .mall-hero {
    display: grid;
  }

  .career-chart-form {
    grid-template-columns: 1fr;
  }

  .avatar-editor {
    display: grid;
  }

  .form-grid,
  .mini-grid,
  .astro-report-grid,
  .astro-match-grid,
  .four-d-dimension-grid {
    grid-template-columns: 1fr;
  }

  .mbti-mode-grid {
    grid-template-columns: 1fr;
  }

  .mbti-mode-card {
    min-height: 76px;
  }

  .import-box {
    grid-template-columns: 1fr;
  }

  .work-history-grid,
  .hr-score-row,
  .scoring-guide ul {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}
