:root {
  --creator-hub-primary: #6d28d9;
  --creator-hub-primary-strong: #5b21b6;
  --creator-hub-primary-soft: #f3e8ff;
  --creator-hub-canvas: #ffffff;
  --creator-hub-surface: #ffffff;
  --creator-hub-text: #24113f;
  --creator-hub-muted: #6b5b7a;
  --creator-hub-line: #e8def3;
  --creator-hub-shadow: 0 12px 32px rgba(73, 35, 113, .10);
}

.creator-hub-page {
  background: var(--creator-hub-canvas);
  color: var(--creator-hub-text);
  isolation: isolate;
}

.creator-hub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(232, 222, 243, .86);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(15px);
}

.creator-hub-header-inner {
  display: flex;
  width: min(860px, calc(100% - 32px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
}

.creator-hub-brand,
.creator-hub-home-link,
.creator-hub-nav-item {
  text-decoration: none;
}

.creator-hub-brand {
  min-height: 44px;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--creator-hub-text);
}

.creator-hub-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  box-shadow: 0 7px 16px rgba(109, 40, 217, .24);
}

.creator-hub-brand-mark svg,
.creator-hub-home-link svg,
.creator-hub-nav-item svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.creator-hub-brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.creator-hub-brand-copy > span {
  color: var(--creator-hub-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
}

.creator-hub-brand-copy strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-hub-home-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--creator-hub-line);
  border-radius: 12px;
  background: #fff;
  color: var(--creator-hub-muted);
  font-size: 12px;
  font-weight: 800;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.creator-hub-home-link svg { width: 18px; height: 18px; }
.creator-hub-home-link:hover { border-color: #c4a9e8; background: var(--creator-hub-primary-soft); color: var(--creator-hub-primary-strong); }

.creator-hub-content {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 28px 16px 112px;
}

.creator-hub-page .bal-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}

.creator-hub-bottom-nav {
  position: fixed;
  z-index: 60;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  width: min(500px, calc(100% - 24px));
  min-height: 66px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(225, 211, 243, .94);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 36px rgba(58, 24, 93, .22);
  transform: translateX(-50%);
  backdrop-filter: blur(15px);
}

.creator-hub-nav-item {
  display: grid;
  min-height: 52px;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 16px;
  color: #786a87;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.creator-hub-nav-item svg { width: 20px; height: 20px; }
.creator-hub-nav-item:hover { background: #f7f2fc; color: var(--creator-hub-primary-strong); }
.creator-hub-nav-item.is-active { background: var(--creator-hub-primary); color: #fff; box-shadow: 0 5px 13px rgba(109, 40, 217, .24); }

.creator-hub-page .creator-room-hero,
.creator-hub-page .creator-ranking-hero,
.creator-hub-intro {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--creator-hub-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--creator-hub-shadow);
}

.creator-hub-page .creator-room-hero::after,
.creator-hub-page .creator-ranking-hero::after,
.creator-hub-intro::after {
  position: absolute;
  top: -88px;
  right: -68px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(196, 181, 253, .30);
  content: "";
  pointer-events: none;
}

.creator-hub-page .creator-room-topbar,
.creator-hub-page .creator-ranking-topline,
.creator-hub-intro-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--creator-hub-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.creator-hub-page .bal-back-link,
.creator-hub-page .creator-rank-link {
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--creator-hub-primary-strong);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.creator-hub-page .bal-back-link { background: rgba(255, 255, 255, .72); }
.creator-hub-page .creator-rank-link { background: var(--creator-hub-primary-soft); }
.creator-hub-page .bal-back-link:hover,
.creator-hub-page .creator-rank-link:hover { color: #fff; background: var(--creator-hub-primary); }

.creator-hub-page .creator-room-profile {
  position: relative;
  z-index: 1;
  gap: 16px;
  margin-top: 20px;
}

.creator-hub-page .creator-avatar {
  border-color: #e1d3f3;
  background: #eee3ff;
  color: var(--creator-hub-primary-strong);
}

.creator-hub-page .creator-avatar-lg {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, .92);
  box-shadow: 0 8px 20px rgba(73, 35, 113, .13);
}

.creator-hub-page .creator-room-titlebox h1,
.creator-hub-page .creator-ranking-hero h1,
.creator-hub-intro h1 {
  position: relative;
  z-index: 1;
  color: var(--creator-hub-text);
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 900;
  letter-spacing: -.055em;
}

.creator-hub-page .creator-room-stats,
.creator-hub-page .creator-ranking-hero p,
.creator-hub-intro p {
  position: relative;
  z-index: 1;
  color: var(--creator-hub-muted);
  font-size: 13px;
}

.creator-hub-page .creator-room-stats { gap: 6px; }
.creator-hub-page .creator-room-stats > span:not(.creator-room-rank-stat) {
  min-height: 27px;
  padding: 3px 9px;
  border: 1px solid rgba(225, 211, 243, .78);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}

.creator-hub-page .creator-room-rank-stat strong { color: var(--creator-hub-primary-strong); }
.creator-hub-page .creator-room-section { margin: 28px 0 22px; }

.creator-hub-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.creator-hub-section-head h2 {
  margin: 0;
  color: var(--creator-hub-text);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.creator-hub-section-head span {
  color: var(--creator-hub-muted);
  font-size: 12px;
  font-weight: 700;
}

.creator-hub-page .creator-test-list,
.creator-hub-page .creator-ranking-list { gap: 12px; }

.creator-hub-page .creator-test-card,
.creator-hub-page .creator-rank-row {
  border-color: var(--creator-hub-line);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(73, 35, 113, .04);
}

.creator-hub-page .creator-test-card:hover,
.creator-hub-page .creator-rank-row:hover {
  border-color: #c4a9e8;
  box-shadow: 0 10px 22px rgba(73, 35, 113, .11);
  transform: translateY(-2px);
}

.creator-hub-page .creator-test-thumb { width: 94px; height: 94px; border-radius: 13px; }
.creator-hub-page .creator-test-thumb-fallback { color: var(--creator-hub-primary-strong); background: var(--creator-hub-primary-soft); }
.creator-hub-page .creator-type-badge { background: #f2ecfa; color: #5d4c6e; }
.creator-hub-page .creator-type-balance { background: #fff0e2; color: #b45309; }
.creator-hub-page .creator-type-quiz { background: #e9e3ff; color: #5b21b6; }
.creator-hub-page .creator-test-title,
.creator-hub-page .creator-rank-name { color: var(--creator-hub-text); }
.creator-hub-page .creator-test-desc,
.creator-hub-page .creator-rank-meta,
.creator-hub-page .creator-test-meta { color: var(--creator-hub-muted); }

.creator-hub-page .bal-empty-panel {
  border-color: var(--creator-hub-line);
  border-radius: 18px;
  color: var(--creator-hub-muted);
}

.creator-hub-page .creator-create-cta-wrap,
.creator-hub-page .creator-ranking-cta-wrap { margin: 22px 0 28px; }
.creator-hub-page .bal-create-cta { border-radius: 16px; background: linear-gradient(135deg, #7c3aed, #5b21b6); box-shadow: 0 10px 20px rgba(109, 40, 217, .18); }

.creator-hub-page .creator-ranking-hero { margin-bottom: 22px; }
.creator-hub-page .creator-ranking-hero h1 { margin-top: 14px; }
.creator-hub-page .creator-rank-row { min-height: 80px; }
.creator-hub-page .creator-rank-num { color: #6f5d80; }
.creator-hub-page .creator-medal-ribbon { fill: #7c3aed; }

.creator-hub-intro { margin-bottom: 24px; }
.creator-hub-intro-kicker { justify-content: flex-start; }
.creator-hub-intro h1 { margin: 10px 0 8px; }
.creator-hub-intro p { max-width: 600px; margin: 0; line-height: 1.62; }

.creator-hub-work-list { display: grid; gap: 12px; }

.creator-hub-work-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 15px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--creator-hub-line);
  border-radius: 19px;
  background: var(--creator-hub-surface);
  box-shadow: 0 4px 14px rgba(73, 35, 113, .04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.creator-hub-work-card:hover { border-color: #c4a9e8; box-shadow: 0 10px 22px rgba(73, 35, 113, .10); transform: translateY(-2px); }
.creator-hub-work-cover { display: block; overflow: hidden; min-height: 108px; border-radius: 13px; background: var(--creator-hub-primary-soft); }
.creator-hub-work-cover img { display: block; width: 100%; height: 100%; min-height: 108px; object-fit: cover; transition: transform 220ms ease; }
.creator-hub-work-card:hover .creator-hub-work-cover img { transform: scale(1.04); }
.creator-hub-work-cover-fallback { display: grid; width: 100%; min-height: 108px; place-items: center; padding: 10px; color: var(--creator-hub-primary-strong); font-size: 13px; font-weight: 900; text-align: center; }
.creator-hub-work-body { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.creator-hub-work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 7px; }
.creator-hub-work-type { display: inline-flex; min-height: 22px; align-items: center; padding: 2px 8px; border-radius: 999px; background: #eee7fb; color: var(--creator-hub-primary-strong); font-size: 11px; font-weight: 900; }
.creator-hub-work-date { color: var(--creator-hub-muted); font-size: 11px; font-weight: 700; }
.creator-hub-work-title { margin: 0; overflow: hidden; color: var(--creator-hub-text); font-size: 17px; font-weight: 900; letter-spacing: -.035em; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.creator-hub-work-title a { color: inherit; text-decoration: none; }
.creator-hub-work-title a:hover { color: var(--creator-hub-primary-strong); }
.creator-hub-work-desc { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--creator-hub-muted); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.creator-hub-work-foot { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.creator-hub-work-author { display: inline-flex; min-width: 0; align-items: center; gap: 6px; color: var(--creator-hub-text); font-size: 12px; font-weight: 900; text-decoration: none; }
.creator-hub-work-author:hover { color: var(--creator-hub-primary-strong); }
.creator-hub-work-author-avatar { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; background: #ece3fb; color: var(--creator-hub-primary-strong); font-size: 11px; }
.creator-hub-work-author-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.creator-hub-work-author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-hub-work-stats { display: flex; flex: 0 0 auto; gap: 8px; color: var(--creator-hub-muted); font-size: 11px; font-weight: 700; }

.creator-hub-page .bal-comments-panel { margin-top: 18px; }

.creator-hub-page a:focus-visible,
.creator-hub-page button:focus-visible {
  outline: 3px solid rgba(109, 40, 217, .35);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .creator-hub-header-inner { width: min(100% - 24px, 860px); min-height: 64px; }
  .creator-hub-brand-mark { width: 35px; height: 35px; border-radius: 12px; }
  .creator-hub-brand-copy strong { font-size: 16px; }
  .creator-hub-home-link span { display: none; }
  .creator-hub-page .creator-room-hero,
  .creator-hub-page .creator-ranking-hero,
  .creator-hub-intro { padding: 20px; border-radius: 20px; }
  .creator-hub-page .creator-room-profile { align-items: flex-start; }
  .creator-hub-page .creator-avatar-lg { width: 68px; height: 68px; font-size: 24px; }
  .creator-hub-page .creator-room-titlebox h1,
  .creator-hub-page .creator-ranking-hero h1,
  .creator-hub-intro h1 { font-size: 27px; }
  .creator-hub-page .creator-test-thumb { width: 78px; height: 78px; }
  .creator-hub-work-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 16px; }
  .creator-hub-work-cover,
  .creator-hub-work-cover img,
  .creator-hub-work-cover-fallback { min-height: 84px; }
  .creator-hub-work-title { font-size: 15px; }
  .creator-hub-work-desc { -webkit-line-clamp: 1; }
  .creator-hub-work-foot { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .creator-hub-page *,
  .creator-hub-page *::before,
  .creator-hub-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

html:has(body.creator-hub-page--studio) { background: var(--creator-hub-canvas); }
body.creator-hub-page--studio { background: var(--creator-hub-canvas); }
body.creator-hub-page--studio .creator-hub-header-inner { width: min(600px, calc(100% - 24px)); }
body.creator-hub-page--studio .studio-shell { min-height: 0; margin: 0 auto; background: #fff; }
body.creator-hub-page--studio .studio-app,
body.creator-hub-page--studio .studio-app.is-wizard { padding-bottom: 112px; }
body.creator-hub-page--studio .studio-footer { padding-bottom: 116px; }
body.creator-hub-page--studio .studio-toast { bottom: 94px; }
.creator-hub-work-author { min-height: 44px; }

body.creator-hub-body .goldsaju-dark-footer .goldsaju-footer-inner {
  padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
}

html:has(.creator-hub-page),
body:has(.creator-hub-page) {
  max-width: 100%;
  overflow-x: hidden;
  background: #fff;
}

.creator-hub-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: #fff;
}

.creator-hub-header-inner,
.creator-hub-content,
.creator-hub-bottom-nav,
.creator-hub-page .bal-wrap,
.creator-hub-page .creator-room-section,
.creator-hub-page .creator-test-list,
.creator-hub-page .creator-ranking-list,
.creator-hub-work-list,
.creator-hub-page .creator-test-card,
.creator-hub-page .creator-rank-row,
.creator-hub-work-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.creator-hub-content {
  width: 100%;
  max-width: 860px;
}

.creator-hub-page .creator-test-card,
.creator-hub-page .creator-rank-row,
.creator-hub-work-card {
  width: 100%;
}

.creator-hub-work-foot,
.creator-hub-work-author,
.creator-hub-work-stats {
  min-width: 0;
  max-width: 100%;
}

.creator-hub-work-stats {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.creator-hub-body {
  padding-bottom: 0 !important;
}

body.creator-hub-body #topQuickMenu.header-quick-menu {
  display: none !important;
}

.creatorapp-body .quizapp-bottom-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.creatorapp-body .creator-hub-page {
  min-height: 100%;
  background: #fff;
}

.creatorapp-body .creator-hub-content {
  width: calc(100% - 28px);
  max-width: 1280px;
  padding: 28px 0 34px;
}

.creatorapp-body .creator-hub-page .creator-room-hero,
.creatorapp-body .creator-hub-page .creator-ranking-hero,
.creatorapp-body .creator-hub-intro {
  border-radius: var(--quizapp-radius);
  box-shadow: none;
}

.creator-hub-page .creator-room-topbar {
  flex-wrap: wrap;
}

.creator-room-topbar-links {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.creator-room-topbar-links .bal-back-link,
.creator-room-topbar-links .creator-rank-link {
  display: inline-flex;
  align-items: center;
}

.creator-hub-page .creator-room-share-trigger {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(109, 40, 217, .24);
  border-radius: 999px;
  background: #fff;
  color: var(--creator-hub-primary-strong);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.creator-hub-page .creator-room-share-trigger svg,
.creator-share-close svg,
.creator-share-native svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.creator-hub-page .creator-room-share-trigger:hover {
  border-color: var(--creator-hub-primary);
  background: var(--creator-hub-primary);
  color: #fff;
  box-shadow: 0 8px 16px rgba(109, 40, 217, .18);
}

body.creator-share-open {
  overflow: hidden;
}

.creator-share-modal,
.creator-share-modal *,
.creator-share-modal *::before,
.creator-share-modal *::after {
  box-sizing: border-box;
}

.creator-share-modal {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.creator-share-modal[hidden] {
  display: none;
}

.creator-share-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(26, 13, 43, .52);
  backdrop-filter: blur(3px);
}

.creator-share-dialog {
  position: relative;
  z-index: 1;
  width: min(432px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--creator-hub-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(26, 13, 43, .28);
  color: var(--creator-hub-text);
}

.creator-share-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.creator-share-dialog-head p {
  margin: 0 0 4px;
  color: var(--creator-hub-primary-strong);
  font-size: 12px;
  font-weight: 900;
}

.creator-share-dialog-head h2 {
  margin: 0;
  color: var(--creator-hub-text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.28;
}

.creator-share-close {
  display: grid;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--creator-hub-line);
  border-radius: 14px;
  background: #fff;
  color: var(--creator-hub-muted);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.creator-share-close:hover {
  border-color: #c4a9e8;
  background: var(--creator-hub-primary-soft);
  color: var(--creator-hub-primary-strong);
}

.creator-share-desc {
  margin: 10px 0 18px;
  color: var(--creator-hub-muted);
  font-size: 14px;
  line-height: 1.55;
}

.creator-share-qr {
  display: grid;
  width: 224px;
  min-height: 224px;
  place-items: center;
  margin: 0 auto 18px;
  padding: 8px;
  border: 1px solid var(--creator-hub-line);
  border-radius: 18px;
  background: #fff;
  color: var(--creator-hub-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.creator-share-qr img {
  display: block;
  width: 208px;
  height: 208px;
  max-width: 100%;
}

.creator-share-qr.is-error {
  padding: 18px;
  background: #fffaf5;
  color: #9a3412;
}

.creator-share-url-label {
  display: block;
  margin-bottom: 7px;
  color: var(--creator-hub-text);
  font-size: 13px;
  font-weight: 900;
}

.creator-share-url-row {
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: 8px;
}

.creator-share-url-input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--creator-hub-line);
  border-radius: 13px;
  outline: none;
  background: #fbf9fe;
  color: var(--creator-hub-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
}

.creator-share-url-input:focus {
  border-color: var(--creator-hub-primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .14);
}

.creator-share-copy,
.creator-share-native {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.creator-share-copy {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 13px;
  background: var(--creator-hub-primary-soft);
  color: var(--creator-hub-primary-strong);
  font-size: 13px;
}

.creator-share-native {
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--creator-hub-primary);
  color: #fff;
  font-size: 15px;
}

.creator-share-copy:hover {
  background: #e8dcfb;
}

.creator-share-native:hover {
  background: var(--creator-hub-primary-strong);
  box-shadow: 0 9px 18px rgba(109, 40, 217, .20);
}

.creator-share-native:disabled {
  cursor: wait;
  opacity: .68;
}

.creator-share-status {
  min-height: 20px;
  margin: 9px 0 0;
  color: var(--creator-hub-primary-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.creator-share-dialog:focus-visible,
.creator-share-close:focus-visible,
.creator-share-copy:focus-visible,
.creator-share-native:focus-visible {
  outline: 3px solid rgba(109, 40, 217, .35);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .creator-room-topbar-links {
    flex-basis: 100%;
  }

  .creator-hub-page .creator-room-share-trigger {
    width: 100%;
  }

  .creator-share-dialog {
    padding: 20px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .creator-hub-page .creator-room-share-trigger,
  .creator-share-close,
  .creator-share-copy,
  .creator-share-native {
    transition: none;
  }
}

/* School-battle style creator-room sharing controls. */
.creator-share-target {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  padding: 10px 12px;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  background: #faf8ff;
  color: var(--creator-hub-primary-strong);
}

.creator-share-target > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.creator-share-target-copy {
  min-width: 0;
}

.creator-share-target-copy strong,
.creator-share-target-copy span {
  display: block;
}

.creator-share-target-copy strong {
  overflow: hidden;
  color: var(--creator-hub-text);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-share-target-copy span {
  margin-top: 2px;
  color: var(--creator-hub-muted);
  font-size: 11px;
  font-weight: 700;
}

.creator-share-qr-card {
  padding: 13px 12px 12px;
  border: 1px solid #e9e2fb;
  border-radius: 17px;
  background: #faf8ff;
  text-align: center;
}

.creator-share-qr-card .creator-share-qr {
  margin: 0 auto 9px;
  border-radius: 14px;
}

.creator-share-qr-caption {
  margin: 0;
  color: var(--creator-hub-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.creator-share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.creator-share-action {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.creator-share-action:hover {
  transform: translateY(-1px);
}

.creator-share-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.creator-share-kakao {
  background: #fee500;
  color: #3c1e1e;
}

.creator-share-kakao:hover {
  background: #f7d900;
}

.creator-share-actions .creator-share-copy {
  width: auto;
  min-height: 48px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--creator-hub-primary);
  color: #fff;
  font-size: 13px;
}

.creator-share-actions .creator-share-copy:hover {
  background: var(--creator-hub-primary-strong);
  box-shadow: 0 8px 16px rgba(109, 40, 217, .18);
}

.creator-share-action:disabled,
.creator-share-native:disabled {
  cursor: wait;
  opacity: .68;
}

.creator-share-url-row {
  display: block;
}

.creator-share-url-row .creator-share-url-input {
  display: block;
}

.creator-share-native {
  min-height: 48px;
}

.creator-share-dialog:focus-visible,
.creator-share-close:focus-visible,
.creator-share-action:focus-visible,
.creator-share-native:focus-visible {
  outline: 3px solid rgba(109, 40, 217, .35);
  outline-offset: 3px;
}

@media (max-width: 390px) {
  .creator-share-actions {
    grid-template-columns: 1fr;
  }
}

.creator-hub-header,
.creatorapp-body .quizapp-shell,
.creatorapp-body .creatorapp-bottom-nav {
  box-sizing: border-box;
}

/* Keep the creator app header fixed without changing its original full-width layout. */
.creatorapp-body .quizapp-appbar {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
}

.creatorapp-body .quizapp-shell {
  min-height: calc(100dvh - 48px);
  margin-top: 48px;
}

/* All creator routes share one 600px white canvas. */
html:has(body.creatorapp-body),
body.creatorapp-body {
  min-width: 320px;
  background: #fff;
}

.creatorapp-body .quizapp-appbar {
  width: min(600px, 100%);
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.creatorapp-body .quizapp-shell {
  width: min(600px, 100%);
  min-height: calc(100dvh - 48px);
  margin: 48px auto 0;
  background: #fff;
}

.creatorapp-body .creator-hub-page {
  width: 100%;
  max-width: 600px;
  min-height: calc(100dvh - 48px);
  margin: 0 auto;
  background: #fff;
}

.creatorapp-body .creator-hub-content {
  width: calc(100% - 28px);
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 0 calc(112px + env(safe-area-inset-bottom));
}

.creatorapp-body .creatorapp-bottom-nav {
  width: min(600px, 100%);
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.creatorapp-body .goldsaju-dark-footer {
  width: min(600px, 100%);
  margin: 0 auto;
}

@media (max-width: 600px) {
  .creatorapp-body .creator-hub-content {
    width: calc(100% - 24px);
  }
}
