* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--gx-canvas);
  color: var(--gx-ink);
  font-family: var(--gx-body);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--gx-cobalt);
  outline-offset: 3px;
}
::selection {
  background: var(--gx-cobalt);
  color: #fff;
}
.studio-header {
  height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gx-line);
  background: var(--gx-paper);
  position: sticky;
  top: 0;
  z-index: 30;
}
.studio-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.studio-brand img {
  display: block;
  width: auto;
  height: 38px;
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gx-cobalt);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  transform: rotate(-8deg);
}
.studio-header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}
.studio-beta,
.workspace-label,
.sidebar-heading,
.panel-kicker,
.eyebrow {
  font: 500 10px/1.4 var(--gx-mono);
  letter-spacing: 0.1em;
  color: var(--gx-cobalt);
}
.studio-header-right button {
  background: none;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--gx-muted);
  padding: 10px 0;
}
.studio-header-right button:hover {
  color: var(--gx-cobalt);
}
.auth-view {
  max-width: 1310px;
  min-height: calc(100vh - 76px);
  margin: auto;
  padding: 74px clamp(24px, 5vw, 75px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
}
.auth-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 35px 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gx-cobalt);
}
.auth-copy h1 {
  font: 700 clamp(60px, 6vw, 96px)/0.99 var(--gx-display);
  letter-spacing: -0.045em;
  margin: 24px 0;
  max-width: 700px;
}
.auth-copy h1 em {
  font-style: normal;
  color: var(--gx-cobalt);
}
.auth-copy > p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--gx-muted);
  max-width: 480px;
  margin: 0;
}
.auth-visual {
  position: relative;
  width: min(430px, 100%);
  margin-top: 58px;
  padding: 20px 24px 22px;
  background: var(--gx-cobalt);
  color: #fff;
  border-radius: 12px;
  transform: rotate(-2deg);
  box-shadow: 17px 17px 0 #dfe5ea;
}
.visual-top {
  font: 500 10px var(--gx-mono);
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.visual-orbit {
  height: 65px;
  display: flex;
  align-items: center;
}
.visual-orbit span {
  font-size: 43px;
  line-height: 1;
}
.visual-link {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #ffffff7a;
  font-size: 12px;
  font-weight: 700;
}
.visual-highlight {
  color: #fff;
}
.auth-card {
  background: var(--gx-paper);
  border: 1px solid var(--gx-line);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 23px 65px #162e4610;
}
.auth-card h2 {
  font: 750 32px/1.1 var(--gx-display);
  letter-spacing: -0.04em;
  margin: 0 0 7px;
}
.auth-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gx-muted);
  margin: 0 0 22px;
}
.auth-card label,
.panel label {
  display: block;
  margin: 17px 0 7px;
  font-size: 12px;
  font-weight: 700;
}
.auth-card input,
.panel input:not([type="color"]):not([type="checkbox"]),
.panel textarea,
.panel select,
.share-url input,
.request-result input {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 11px 12px;
  border: 1px solid #cbd6da;
  background: #fff;
  border-radius: 7px;
  color: var(--gx-ink);
  outline: 0;
}
.auth-card input:focus,
.panel input:focus,
.panel textarea:focus,
.panel select:focus {
  border-color: var(--gx-cobalt);
  box-shadow: 0 0 0 3px var(--gx-cobalt-soft);
}
.auth-card input::placeholder,
.panel input::placeholder,
.panel textarea::placeholder {
  color: #819099;
}
.avatar-row small,
.field-bottom,
.wallet-note {
  display: block;
  color: var(--gx-muted);
  font-size: 11px;
  line-height: 1.5;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid var(--gx-cobalt);
  border-radius: 8px;
  background: var(--gx-cobalt);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary-button:hover {
  background: var(--gx-cobalt-dark);
  transform: translateY(-2px);
}
.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.primary-button span {
  font-size: 19px;
  font-weight: 400;
}
.auth-message,
.studio-message {
  min-height: 20px;
  margin-top: 14px;
  font-size: 12px;
  color: #157650;
}
.auth-message.error,
.studio-message.error {
  color: #ae3434;
}
.studio-view {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}
.studio-sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  padding: 30px 13px 22px;
  border-right: 1px solid var(--gx-line);
  background: #eaf0f1;
  display: flex;
  flex-direction: column;
}
.sidebar-heading {
  padding: 0 15px;
  margin-bottom: 17px;
  color: var(--gx-muted);
}
.studio-sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 12px 15px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #52636e;
  font-size: 13px;
  font-weight: 700;
}
.nav-item span {
  width: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
}
.nav-item:hover {
  background: #dfe8ea;
  color: var(--gx-ink);
}
.nav-item.active {
  background: var(--gx-cobalt);
  color: #fff;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid var(--gx-line);
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 4px 8px;
  color: var(--gx-ink);
  font-size: 12px;
}
.sidebar-bottom small {
  grid-column: 2;
  color: var(--gx-muted);
  font: 400 9px var(--gx-mono);
  letter-spacing: 0.1em;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #268c6c;
  margin-top: 4px;
}
.studio-content {
  width: 100%;
  max-width: 1370px;
  margin: auto;
  padding: 44px clamp(24px, 4vw, 70px) 100px;
}
.studio-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.studio-toolbar h1 {
  font: 750 clamp(39px, 4vw, 58px)/1 var(--gx-display);
  letter-spacing: -0.06em;
  margin: 6px 0 0;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.subtle-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #c6d1d6;
  border-radius: 7px;
  background: #fff;
  color: var(--gx-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.subtle-button:hover,
.outline-button:hover {
  border-color: var(--gx-cobalt);
  color: var(--gx-cobalt);
}
.studio-message {
  margin: 13px 0 17px;
}
.studio-section {
  display: none;
}
.studio-section.active {
  display: block;
}
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(280px, 0.8fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
}
.panel {
  padding: clamp(22px, 2.5vw, 30px);
  border: 1px solid var(--gx-line);
  border-radius: 11px;
  background: #fff;
}
.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.panel h2,
.section-intro h2 {
  font: 730 29px/1.14 var(--gx-display);
  letter-spacing: -0.04em;
  margin: 6px 0 3px;
}
.panel-heading p,
.section-intro p,
.muted-copy {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gx-muted);
  margin: 6px 0 0;
}
.panel-symbol {
  color: var(--gx-cobalt);
  font-size: 25px;
}
.panel h3 {
  font: 710 22px var(--gx-display);
  letter-spacing: -0.035em;
  margin: 7px 0 12px;
}
.avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.avatar-preview {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--gx-cobalt-soft);
  color: var(--gx-cobalt);
  font: 750 34px var(--gx-display);
}
.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-button {
  display: inline-block !important;
  padding: 8px 11px;
  margin: 0 0 5px !important;
  border: 1px solid var(--gx-line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.upload-button:hover {
  border-color: var(--gx-cobalt);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.readonly-field {
  min-height: 45px;
  padding: 12px;
  border: 1px solid var(--gx-line);
  border-radius: 7px;
  background: var(--gx-canvas);
  color: var(--gx-muted);
  font-size: 12px;
}
.panel textarea {
  resize: vertical;
  min-height: 90px;
}
.field-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.panel-divider {
  height: 1px;
  margin: 26px 0;
  background: var(--gx-line);
}
.color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gx-muted);
  font-size: 12px;
}
.color-row input {
  width: 52px;
  height: 39px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.switch-row {
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding-top: 22px;
  margin-top: 26px !important;
  border-top: 1px solid var(--gx-line);
}
.switch-row input,
.payout-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--gx-cobalt);
}
.switch-row strong,
.switch-row small {
  display: block;
}
.switch-row small {
  margin-top: 3px;
  color: var(--gx-muted);
  font-weight: 400;
}
.preview-column {
  position: sticky;
  top: 110px;
  text-align: center;
}
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  margin-bottom: 18px;
}
.preview-header h3 {
  font: 720 21px var(--gx-display);
  letter-spacing: -0.035em;
  margin: 5px 0 0;
}
.preview-indicator {
  color: #16845d;
  font: 500 10px var(--gx-mono);
  white-space: nowrap;
}
.phone-frame {
  position: relative;
  overflow: hidden;
  max-width: 330px;
  height: 610px;
  margin: auto;
  border: 6px solid var(--gx-ink);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 20px 50px #1b364229;
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 17px;
  border-radius: 0 0 12px 12px;
  background: var(--gx-ink);
  z-index: 2;
}
.phone-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.preview-column > p {
  color: var(--gx-muted);
  font-size: 11px;
}
.section-intro {
  max-width: 650px;
  margin-bottom: 27px;
}
.section-intro h2 {
  font-size: clamp(32px, 3vw, 42px);
}
.section-intro p {
  font-size: 14px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.link-list {
  display: grid;
  gap: 8px;
}
.editor-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--gx-line);
  border-radius: 7px;
  background: #fff;
}
.editor-link-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--gx-cobalt-soft);
  color: var(--gx-cobalt);
}
.editor-link-body {
  min-width: 0;
}
.editor-link-body strong,
.editor-link-body small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-link-body strong {
  font-size: 12px;
}
.editor-link-body small {
  margin-top: 3px;
  color: var(--gx-muted);
  font-size: 10px;
}
.editor-link-actions {
  display: flex;
  gap: 2px;
}
.editor-link-actions button {
  border: 0;
  background: none;
  color: var(--gx-muted);
  padding: 5px;
  font-size: 12px;
}
.editor-link-actions button:hover {
  color: var(--gx-cobalt);
}
.editor-link-actions button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.count-badge {
  padding: 6px 8px;
  border-radius: 5px;
  background: var(--gx-cobalt-soft);
  color: var(--gx-cobalt);
  font: 500 11px var(--gx-mono);
}
.empty-state {
  padding: 24px;
  text-align: center;
  border: 1px dashed #bdcbd0;
  border-radius: 7px;
  color: var(--gx-muted);
  font-size: 12px;
}
.verified-pill {
  display: inline-block;
  padding: 7px 9px;
  margin: 8px 0 13px;
  border-radius: 5px;
  background: #e6f4ef;
  color: #147451;
  font-size: 11px;
  font-weight: 700;
}
.panel code {
  display: block;
  word-break: break-all;
  padding: 12px;
  border: 1px solid var(--gx-line);
  border-radius: 6px;
  background: var(--gx-canvas);
  color: var(--gx-ink);
  font: 400 11px/1.5 var(--gx-mono);
}
.wallet-note {
  margin-top: 9px;
}
.payout-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 17px 0;
  color: var(--gx-ink);
  font-size: 12px;
}
#withdraw-button {
  margin-right: 10px;
}
.danger-link {
  border: 0;
  background: none;
  color: #b23939;
  padding: 0;
  margin-top: 16px;
  font-size: 12px;
}
.request-result {
  margin-top: 18px;
  padding: 13px;
  border: 1px solid #bdc8f5;
  border-radius: 7px;
  background: var(--gx-cobalt-soft);
}
.request-result > span {
  display: block;
  color: var(--gx-cobalt);
  font: 500 10px var(--gx-mono);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.request-result input {
  font-size: 11px;
}
.request-result button {
  border: 0;
  background: none;
  padding: 7px 0 0;
  color: var(--gx-cobalt);
  font-size: 12px;
  font-weight: 700;
}
.request-history {
  margin-top: 18px;
}
.request-row {
  display: grid;
  grid-template-columns: 1fr auto 20px;
  gap: 13px;
  align-items: center;
  border-top: 1px solid var(--gx-line);
  padding: 15px 0;
}
.request-row strong,
.request-row small,
.request-amount span {
  display: block;
}
.request-row strong {
  font-size: 12px;
}
.request-row small {
  color: var(--gx-muted);
  font-size: 10px;
  margin-top: 4px;
}
.request-amount {
  text-align: right;
}
.request-amount span {
  font-size: 10px;
  margin-top: 4px;
}
.status-paid {
  color: #147451;
}
.status-pending {
  color: #9a6500;
}
.request-row a {
  color: var(--gx-cobalt);
}
.direct-balance {
  display: block;
  margin: 8px 0 18px;
  font: 750 32px/1.1 var(--gx-display);
  letter-spacing: -0.04em;
}
.direct-withdraw-form {
  margin-bottom: 20px;
}
.direct-withdraw-form .form-grid {
  align-items: end;
}
.direct-withdraw-form .primary-button {
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  padding: 24px;
  border: 1px solid var(--gx-line);
  border-radius: 10px;
  background: #fff;
}
.stat-card:first-child {
  border-top: 3px solid var(--gx-cobalt);
}
.stat-card span,
.stat-card small {
  display: block;
  color: var(--gx-muted);
}
.stat-card span {
  font: 500 10px var(--gx-mono);
  letter-spacing: 0.07em;
}
.stat-card strong {
  display: block;
  margin: 9px 0;
  font: 750 55px/1 var(--gx-display);
  letter-spacing: -0.06em;
}
.stat-card small {
  font-size: 11px;
}
.analytics-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--gx-line);
  font-size: 12px;
}
.analytics-row strong {
  color: var(--gx-cobalt);
}
.share-dialog {
  width: min(470px, calc(100vw - 24px));
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid #dfe3f3;
  border-radius: 24px;
  background: #fff;
  color: var(--gx-ink);
  box-shadow: 0 30px 90px #14263142;
}
.share-dialog::backdrop {
  background: #101b22bb;
}
.share-inner {
  position: relative;
  padding: 31px;
}
.share-inner h2 {
  font: 800 28px/1.12 var(--gx-display);
  letter-spacing: -0.04em;
  margin: 0 42px 8px 0;
}
.share-inner p {
  color: var(--gx-muted);
  font-size: 14px;
  line-height: 1.55;
}
.dialog-close {
  position: absolute;
  right: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #dfe3f3;
  border-radius: 50%;
  background: #f2f4ff;
  color: #505a76;
  font-size: 23px;
  line-height: 1;
}
.share-inner img {
  display: block;
  width: 176px;
  height: 176px;
  margin: 20px auto;
  border: 8px solid #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 1px #dfe3f3;
}
.share-url {
  display: flex;
  gap: 7px;
}
.share-url input {
  min-height: 48px;
  border-radius: 12px;
  background: #f8f9ff;
  font-size: 13px;
}
.share-url button {
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--gx-cobalt);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.share-inner > a {
  display: block;
  margin-top: 17px;
  text-align: center;
  color: var(--gx-cobalt);
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 1050px) {
  .page-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .preview-column {
    position: static;
  }
  .auth-view {
    gap: 36px;
  }
}
@media (max-width: 750px) {
  .studio-header {
    height: 62px;
    padding: 0 18px;
  }
  .studio-brand img {
    height: 34px;
  }
  .studio-beta {
    display: none;
  }
  .auth-view {
    display: block;
    padding: 44px 20px;
  }
  .auth-copy {
    padding: 0;
  }
  .auth-copy h1 {
    font-size: clamp(54px, 12vw, 76px);
  }
  .auth-copy > p {
    font-size: 16px;
  }
  .auth-visual {
    display: none;
  }
  .auth-card {
    margin-top: 33px;
    padding: 24px;
  }
  .studio-view {
    display: block;
  }
  .studio-sidebar {
    top: 62px;
    z-index: 20;
    height: auto;
    min-height: 0;
    padding: 7px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--gx-line);
  }
  .studio-sidebar nav {
    display: flex;
    justify-content: space-around;
  }
  .sidebar-heading,
  .sidebar-bottom {
    display: none;
  }
  .nav-item {
    justify-content: center;
    gap: 5px;
    padding: 10px 5px;
    font-size: 11px;
  }
  .nav-item span {
    width: auto;
    font-size: 16px;
  }
  .studio-content {
    padding: 26px 16px 70px;
  }
  .studio-toolbar {
    align-items: start;
  }
  .studio-toolbar h1 {
    font-size: 38px;
  }
  .toolbar-actions {
    gap: 5px;
  }
  .toolbar-actions a,
  .toolbar-actions button {
    padding: 8px;
    font-size: 10px;
  }
  .panel {
    padding: 21px;
  }
  .form-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card strong {
    font-size: 45px;
  }
  .preview-column {
    display: none;
  }
  .section-intro h2 {
    font-size: 31px;
  }
}
@media (max-width: 430px) {
  .nav-item {
    font-size: 10px;
  }
  .nav-item span {
    display: none;
  }
  .studio-toolbar {
    display: block;
  }
  .toolbar-actions {
    margin-top: 16px;
  }
  .toolbar-actions > * {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
