:root {
  --ink: #111410;
  --muted: #61645d;
  --line: #d9d6cb;
  --line-strong: #272a24;
  --paper: #f7f6f1;
  --paper-2: #eeece5;
  --white: #ffffff;
  --blue: #272a24;
  --orange: #8a6a32;
  --red: #df3c3c;
  --shadow: 0 24px 70px rgba(17, 20, 16, .10);
  --radius: 22px;
}

.targeting-grid select[multiple] {
  min-height: 132px;
  padding: 8px;
}

.targeting-field {
  border: 0;
  padding: 0;
  margin: 0;
}

.targeting-field legend {
  margin-bottom: 10px;
  color: var(--text-2, #667085);
}

.targeting-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.targeting-field .targeting-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.targeting-field .targeting-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--ink);
}

/* Account, order, real-name and organization subpages */
.feature-page {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 180, 109, 0.08), transparent 30%),
    #f6f8f7;
}

.feature-page-shell {
  width: min(880px, calc(100% - 40px));
  padding: 34px 0 64px;
}

.feature-form-shell {
  width: min(760px, calc(100% - 40px));
}

.feature-heading-card {
  margin-bottom: 18px;
}

.feature-content-card,
.wallet-overview-card,
.privacy-banner {
  background: #fff;
  border: 1px solid rgba(20, 49, 39, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(24, 62, 49, 0.07);
}

.wallet-overview-card {
  overflow: hidden;
  padding: 32px;
}

.wallet-balance-copy {
  display: grid;
  gap: 8px;
  padding-bottom: 26px;
}

.wallet-balance-copy > span,
.wallet-withdrawable span {
  color: var(--muted);
  font-size: 14px;
}

.wallet-balance-copy > strong {
  color: var(--primary);
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1;
}

.wallet-balance-copy > small {
  color: var(--primary);
  font-size: 13px;
}

.wallet-balance-copy > small.warning {
  color: #ef5350;
}

.wallet-withdrawable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.wallet-withdrawable strong {
  color: var(--primary);
  font-size: 20px;
}

.wallet-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 4px -32px -32px;
  border-top: 1px solid var(--line);
}

.wallet-secondary-actions button {
  min-height: 58px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: #44544e;
  cursor: pointer;
}

.wallet-secondary-actions button:last-child {
  border-right: 0;
}

.wallet-secondary-actions button:hover {
  background: #f5fbf8;
  color: var(--primary);
}

.feature-action-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.recharge-card {
  margin-top: 18px;
  border: 1px solid rgba(20, 49, 39, 0.08);
  border-radius: 20px;
  padding: 28px 32px 32px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(24, 62, 49, 0.07);
}

.recharge-card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.recharge-card-heading h2 {
  margin: 5px 0 0;
  font-size: 24px;
}

.recharge-card-heading p {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.recharge-kicker {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.recharge-form,
.recharge-form fieldset,
.recharge-custom {
  display: grid;
  gap: 12px;
}

.recharge-form fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.recharge-form legend,
.recharge-custom > span:first-child {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.recharge-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.recharge-presets button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.recharge-presets button:hover,
.recharge-presets button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 180, 109, .08);
}

.recharge-custom {
  margin-top: 8px;
}

.recharge-input-wrap {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.recharge-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 180, 109, .10);
}

.recharge-input-wrap b {
  padding-left: 15px;
  color: var(--muted);
  font-size: 18px;
}

.recharge-input-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px 0 8px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 17px;
}

.recharge-custom small {
  color: var(--muted);
  font-size: 12px;
}

.recharge-custom .recharge-error {
  color: #b42318;
  font-weight: 700;
}

.recharge-input-wrap:has(input[aria-invalid="true"]) {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .10);
}

.recharge-submit {
  min-height: 50px;
  margin-top: 6px;
}

.recharge-submit:disabled,
.feature-primary-action:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.feature-primary-action {
  width: 100%;
  min-height: 48px;
}

.feature-status-note {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.order-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.order-filter-bar button {
  position: relative;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.order-filter-bar button.active {
  color: var(--primary);
  font-weight: 700;
}

.order-filter-bar button.active::after {
  position: absolute;
  right: 26%;
  bottom: 0;
  left: 26%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
  content: "";
}

.feature-empty-state {
  display: grid;
  justify-items: center;
  padding: 72px 24px 82px;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 22px;
  background: #eaf8f1;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

.feature-empty-state h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.feature-empty-state p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.privacy-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 13px 20px;
  border-color: rgba(22, 119, 255, 0.14);
  background: #eef7ff;
  color: #1677ff;
  box-shadow: none;
  font-size: 14px;
}

.privacy-banner > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: rgba(22, 119, 255, 0.1);
  font-size: 12px;
}

.form-card {
  padding: 30px;
}

.form-intro {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-field > span {
  color: #34443e;
  font-size: 14px;
  font-weight: 700;
}

.feature-field input {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  border: 1px solid #dce5e1;
  border-radius: 12px;
  outline: 0;
  padding: 0 15px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.feature-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 180, 109, 0.1);
}

.feature-field input:disabled {
  background: #f3f5f4;
  color: #75817d;
}

.feature-field small {
  min-height: 18px;
  color: #e05252;
  font-size: 12px;
}

.agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.agreement-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.agreement-row a {
  color: var(--primary);
}

.feature-submit {
  width: 100%;
  min-height: 48px;
}

.feature-submit:disabled {
  border-color: #c9d0cd;
  background: #c9d0cd;
  cursor: not-allowed;
}

.organization-list {
  overflow: hidden;
}

.organization-list > button {
  display: grid;
  grid-template-columns: 1fr auto 24px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.organization-list > button:last-child {
  border-bottom: 0;
}

.organization-list > button:hover {
  background: #f8fbfa;
}

.organization-list small {
  color: var(--muted);
}

.organization-list b {
  color: #aab4b0;
  font-size: 24px;
  text-align: right;
}

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

.feature-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.feature-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(8, 24, 19, 0.48);
}

.feature-modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(5, 26, 19, 0.24);
}

.feature-modal-panel h2 {
  margin: 0;
  padding: 24px 24px 16px;
  font-size: 20px;
  text-align: center;
}

.feature-modal-panel > button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.feature-modal-panel > button:hover {
  background: #f3faf7;
  color: var(--primary);
}

.feature-modal-panel > button.modal-cancel {
  color: var(--muted);
}

.parent-bind-panel {
  padding: 0 26px 26px;
}

.parent-bind-panel > p {
  margin: 0 0 22px;
  color: var(--muted);
  text-align: center;
}

.modal-form-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .feature-page-shell,
  .feature-form-shell {
    width: min(100% - 24px, 880px);
    padding-top: 18px;
  }

  .wallet-overview-card,
  .form-card {
    padding: 22px;
    border-radius: 16px;
  }

  .wallet-secondary-actions {
    margin: 4px -22px -22px;
  }

  .recharge-card {
    padding: 22px;
    border-radius: 16px;
  }

  .recharge-card-heading {
    display: grid;
    gap: 8px;
  }

  .recharge-card-heading p {
    max-width: none;
    text-align: left;
  }

  .recharge-presets {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-filter-bar {
    overflow-x: auto;
  }

  .order-filter-bar button {
    min-width: 76px;
  }

  .feature-empty-state {
    padding: 56px 18px 64px;
  }

  .feature-modal {
    align-items: end;
    padding: 0;
  }

  .feature-modal-panel {
    width: 100%;
    border-radius: 22px 22px 0 0;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .parent-bind-panel {
    box-sizing: border-box;
    padding: 0 20px max(24px, env(safe-area-inset-bottom));
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  background: transparent;
  border-bottom: 0;
  pointer-events: none;
}

.nav-shell {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 12px 0 16px;
  border: 1px solid rgba(17, 20, 16, .13);
  border-radius: 999px;
  background: rgba(247, 246, 241, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(17, 20, 16, .08);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

.brand-name {
  font-size: 19px;
  font-weight: 850;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}

.desktop-nav a {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  color: var(--ink);
  background: rgba(17, 20, 16, .06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login-button,
.auth-links .nav-login-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 19px;
  color: var(--paper);
  background: var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-login-button:hover,
.auth-links .nav-login-button:hover {
  color: var(--paper);
  background: #2a2e27;
  border-color: #2a2e27;
}

.account-menu {
  position: relative;
}

.account-menu[hidden],
.auth-links[hidden],
.nav-login-button[hidden] {
  display: none;
}

.account-trigger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1689dd;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 -6px 12px rgba(17, 20, 16, .16);
}

.account-avatar.large {
  width: 54px;
  height: 54px;
  font-size: 20px;
}

.account-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: min(360px, calc(100vw - 28px));
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(17, 20, 16, .16);
  padding: 20px 22px;
}

.account-menu:hover .account-popover,
.account-menu:focus-within .account-popover,
.account-menu.open .account-popover {
  display: grid;
  gap: 12px;
}

.account-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
}

.account-head strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.account-upgrade a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: #e99a39;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.account-level {
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
}

.account-popover > a,
.account-popover > button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  padding: 0 8px;
  text-align: left;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.account-popover > a:hover,
.account-popover > button:hover {
  color: var(--ink);
  background: rgba(17, 20, 16, .06);
}

.account-popover > a span,
.account-popover > button span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  color: var(--ink);
  background: var(--white);
  transition: transform .18s ease, background .18s ease, border .18s ease, box-shadow .18s ease;
}

.btn:active,
.chip:active,
.sort:active,
.question-card:active {
  transform: translateY(1px);
}

.btn-primary {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}

.btn-primary:hover {
  background: #2a2e27;
  border-color: #2a2e27;
}

.btn-outline {
  color: var(--ink);
  border-color: rgba(17, 20, 16, .24);
  background: transparent;
}

.btn-subtle {
  color: var(--ink);
  background: rgba(17, 20, 16, .06);
  border-color: rgba(17, 20, 16, .06);
  box-shadow: none;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(17, 20, 16, .22);
}

.btn-large {
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1fr);
  gap: 56px;
  align-items: center;
  padding: 104px 0 70px;
}

.hero-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-sub {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-panel,
.filter-card,
.side-card,
.question-card,
.detail-card,
.login-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(17, 20, 16, .13);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.panel-head strong {
  display: block;
  font-size: 22px;
}

.panel-head a {
  color: var(--ink);
  font-weight: 800;
}

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

.preview-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fdfcf7;
}

.preview-item h3 {
  margin: 8px 0 4px;
  font-size: 15px;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.market-section {
  padding: 38px 0 70px;
}

.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.filter-card {
  padding: 22px;
  margin-bottom: 18px;
}

.search-box,
.field {
  display: grid;
  gap: 8px;
}

.search-box span,
.field span,
.filter-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.search-box input,
.field input,
.field select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: #fdfcf7;
  outline: none;
}

.search-box input:focus,
.field input:focus,
.field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(17, 20, 16, .08);
}

.filter-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.chip-row,
.sort-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip,
.sort,
.filter-drawer-button,
.load-more {
  min-height: 36px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: #fdfcf7;
  font-weight: 750;
}

.chip.active,
.sort.active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.sort-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.sort-tabs span {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-drawer-button {
  color: var(--ink);
  border-color: rgba(17, 20, 16, .24);
}

.state-line {
  min-height: 24px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.question-card {
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border .18s ease;
}

.question-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 20, 16, .32);
  box-shadow: 0 26px 70px rgba(17, 20, 16, .12);
}

.question-card.disabled {
  opacity: .72;
}

.question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--ink);
  background: rgba(17, 20, 16, .07);
  font-size: 12px;
  font-weight: 850;
}

.tag.blue {
  color: #272a24;
  background: #eeece5;
}

.tag.orange {
  color: #73552a;
  background: #f3ead9;
}

.tag.gray {
  color: #61645d;
  background: #eeece5;
}

.tag.red {
  color: var(--red);
  background: #fff0f0;
}

.question-title {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.35;
}

.publisher {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}

.reward-box {
  min-width: 170px;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.reward-box strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.reward-box span {
  color: var(--muted);
  font-size: 12px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.load-more {
  width: 190px;
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
}

.market-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 92px;
}

.side-card {
  padding: 20px;
  box-shadow: none;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.metric-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.metric-row p {
  margin: 0;
  color: var(--muted);
}

.metric-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 900;
}

.metric-icon.reward {
  color: var(--ink);
  background: #f3ead9;
}

.metric-icon.users {
  color: var(--ink);
  background: var(--paper-2);
}

.rank-list {
  display: grid;
  gap: 4px;
}

.rank-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-size: 14px;
}

.rank-no {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 900;
  font-size: 12px;
}

.security-card {
  background: linear-gradient(145deg, #eeece5, #fdfcf7);
}

.security-card ul,
.detail-checks {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.publish-band {
  padding: 44px 0;
  background: var(--ink);
  color: var(--white);
}

.publish-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.publish-inner h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.publish-inner p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.site-footer,
.footer {
  padding: 52px 0 28px;
  color: rgba(255, 255, 255, .72);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr .8fr 1.1fr;
  gap: 24px;
}

.footer-grid strong {
  display: block;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 15px;
  font-weight: 850;
}

.footer-grid p {
  margin: 0 0 6px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 246, 241, .14);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(247, 246, 241, .68);
  font-size: 13px;
  line-height: 2.05;
}

.filter-drawer,
.login-modal,
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(16, 23, 19, .42);
  backdrop-filter: blur(4px);
}

.filter-drawer.open,
.login-modal.open,
.mobile-menu.open {
  display: block;
}

.filter-panel,
.mobile-menu-panel {
  width: min(420px, 100%);
  height: 100%;
  box-sizing: border-box;
  margin-left: auto;
  padding: 22px;
  background: var(--white);
  overflow-y: hidden;
}

@media (max-height: 620px) {
  .filter-panel,
  .mobile-menu-panel {
    overflow-y: auto;
  }
}

.drawer-head,
.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.drawer-head button,
.mobile-menu-head button,
.modal-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.filter-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.check-line {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
}

.check-line input {
  width: 18px;
  height: 18px;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.mobile-menu-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.mobile-menu-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(17, 20, 16, .06);
  font-weight: 800;
}

.login-modal {
  place-items: center;
}

.login-modal.open {
  display: grid;
}

.login-card {
  width: min(440px, calc(100% - 32px));
  padding: 28px;
  position: relative;
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.login-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.form-message {
  min-height: 20px;
  margin-top: 12px !important;
  font-size: 13px;
}

.form-message.error {
  color: var(--red);
}

.form-message.success {
  color: var(--ink);
}

.detail-main {
  padding: 34px 0 72px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.detail-back:hover {
  color: var(--ink);
}

.detail-back span {
  font-size: 18px;
  line-height: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-stack {
  display: grid;
  gap: 18px;
}

.detail-card {
  padding: 24px;
}

.detail-design-card,
.detail-notice-card,
.detail-status-card {
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(17, 20, 16, .10);
  box-shadow: 0 10px 34px rgba(17, 20, 16, .06);
}

.detail-title {
  margin: 0 0 12px;
  max-width: 780px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 800;
}

.detail-publisher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.publisher-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--muted);
  background: #f1f0ea;
  font-size: 14px;
  font-weight: 900;
}

.detail-publisher strong {
  display: block;
  font-size: 15px;
}

.detail-publisher p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-copy-block {
  margin-bottom: 24px;
}

.detail-copy-block h2,
.detail-notice-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.detail-copy-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  padding-top: 4px;
}

.detail-info-item {
  min-width: 0;
}

.detail-info-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.detail-info-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.detail-notice-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-notice-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--muted);
}

.detail-notice-list li span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 3px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--muted);
  font-size: 11px;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 900;
}

.detail-notice-list p {
  margin: 0;
  line-height: 1.65;
}

.detail-status-wrap {
  position: sticky;
  top: 96px;
}

.detail-status-card {
  padding: 24px;
}

.detail-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-status-head > span {
  color: var(--muted);
  font-size: 14px;
}

.detail-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  background: #f1f0ea;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.detail-status-pill.dark {
  color: var(--paper);
  background: var(--ink);
}

.detail-status-pill.yellow {
  color: #7a5d18;
  background: #fff7d8;
}

.detail-status-pill.blue {
  color: #315b86;
  background: #e9f2fb;
}

.detail-status-pill.red {
  color: #8f2d2d;
  background: #fae8e8;
}

.detail-status-list {
  display: grid;
  gap: 15px;
  margin-bottom: 22px;
}

.detail-status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-status-list span {
  color: var(--muted);
  font-size: 14px;
}

.detail-status-list strong {
  font-size: 15px;
}

.detail-auth-tip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #f1f0ea;
}

.detail-auth-tip span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.detail-auth-tip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-start-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
}

.detail-start-btn:disabled {
  border-color: #d9d6cb;
  color: #8f918a;
  background: #e7e4dc;
  cursor: not-allowed;
}

.detail-consent {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.detail-loading,
.empty-state {
  padding: 44px 20px;
  color: var(--muted);
  text-align: center;
}

.answer-main {
  padding: 58px 0 80px;
}

.answer-shell {
  display: block;
}

.answer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.answer-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.answer-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.answer-hero p,
.answer-tip {
  color: var(--muted);
}

.answer-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}

.answer-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 20, 16, .1);
}

.answer-progress i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--ink);
  transition: width .2s ease;
}

.answer-topic {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.answer-topic-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.answer-topic-head span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.answer-topic-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.answer-options {
  display: grid;
  gap: 10px;
}

.answer-option {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  cursor: pointer;
}

.answer-option input {
  width: 18px;
  height: 18px;
  display: grid;
  place-content: center;
  flex: 0 0 18px;
  appearance: none;
  border: 1.5px solid var(--line-strong);
  margin: 0;
  background: #fff;
  cursor: pointer;
}

.answer-option input::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--ink);
  transform: scale(0);
  transition: transform .14s ease;
}

.answer-option input:checked::before {
  transform: scale(1);
}

.answer-option input[type="radio"] {
  border-radius: 50%;
}

.answer-option input[type="radio"]::before {
  border-radius: 50%;
}

.answer-option input[type="checkbox"] {
  border-radius: 3px;
}

.answer-option input[type="checkbox"]::before {
  border-radius: 1px;
}

.answer-option:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.answer-select {
  width: 100%;
  min-height: 46px;
  appearance: auto;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.answer-input {
  width: 100%;
  max-width: 100%;
  min-height: 112px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.answer-scale {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(48px, 1fr));
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.answer-scale .answer-option {
  position: relative;
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.answer-scale .answer-option:hover {
  background: rgba(17, 20, 16, .05);
}

.answer-scale-input {
  width: 1px !important;
  height: 1px !important;
  position: absolute;
  overflow: hidden;
  opacity: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.answer-scale-input + span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}

.answer-scale-input:checked + span {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.answer-scale-input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.answer-consent-copy {
  max-width: 76ch;
  margin: 0 0 6px;
  border-left: 3px solid var(--ink);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  color: var(--muted);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.answer-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.answer-result {
  text-align: left;
}

.app-page {
  padding: 118px 0 74px;
}

.page-hero {
  margin-bottom: 24px;
  padding: 34px;
  border: 1px solid rgba(17, 20, 16, .13);
  border-radius: 28px;
  background: #fdfcf7;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.auth-shell {
  min-height: calc(100dvh - 88px);
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.auth-shell .form-card {
  width: min(100%, 480px);
}

.auth-shell .card-title {
  justify-content: center;
  text-align: center;
}

.auth-shell .page-actions {
  display: grid;
}

.auth-link-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 16px;
}

.auth-link-row button {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.auth-link-row button:hover {
  color: var(--ink);
}

.profile-page {
  background: var(--paper);
}

.profile-shell {
  display: grid;
  gap: 18px;
}

.profile-card-web,
.profile-wallet-card,
.profile-info-panel,
.profile-nav-grid {
  border: 1px solid rgba(17, 20, 16, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 42px rgba(17, 20, 16, .08);
}

.profile-card-web {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.profile-edit {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.profile-edit:hover {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.profile-edit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-user-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.profile-user-row h1 {
  margin: 0 0 4px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}

.profile-user-row p {
  margin: 0;
  color: var(--muted);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.profile-stats a {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf7;
}

.profile-stats span,
.profile-wallet-card p,
.profile-row span {
  color: var(--muted);
  font-size: 14px;
}

.profile-stats strong {
  font-size: 24px;
}

.profile-wallet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.profile-wallet-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
}

.profile-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-wallet-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.profile-wallet-card p {
  margin: 0;
  line-height: 1.8;
}

.profile-link-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  padding: 0 16px;
  font-weight: 850;
  line-height: 1;
}

.profile-info-panel {
  display: grid;
  overflow: hidden;
}

.profile-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0 22px;
  text-align: left;
}

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

.profile-row strong {
  color: var(--ink);
}

.profile-link-value {
  color: var(--orange) !important;
}

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

.profile-nav-grid a,
.profile-nav-grid button {
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  padding: 12px 14px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.profile-nav-grid a:hover,
.profile-nav-grid button:hover {
  background: #f4f4f1;
  transform: translateY(-1px);
}

.profile-nav-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
}

.profile-nav-icon svg,
.profile-nav-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-nav-icon svg {
  width: 21px;
  height: 21px;
}

.profile-nav-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-nav-copy strong {
  font-size: 15px;
}

.profile-nav-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-nav-arrow {
  width: 17px;
  height: 17px;
  color: #9a9a94;
  transition: transform .18s ease;
}

.profile-nav-grid a:hover .profile-nav-arrow,
.profile-nav-grid button:hover .profile-nav-arrow {
  transform: translateX(2px);
}

.account-subpage {
  background: var(--paper);
}

.account-page-shell {
  display: grid;
  gap: 18px;
}

.account-page-shell.narrow {
  max-width: 920px;
}

.account-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.account-page-heading h1 {
  margin: 12px 0 6px;
  font-size: 34px;
}

.account-page-heading p {
  margin: 0;
  color: var(--muted);
}

.back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.subpage-heading-card {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px 24px;
  box-shadow: 0 12px 34px rgba(17, 20, 16, .06);
}

.subpage-heading-copy {
  min-width: 0;
  flex: 1;
}

.subpage-heading-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.subpage-heading-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.subpage-heading-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #f7f7f4;
}

.subpage-heading-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-button,
.primary-small {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  padding: 0 14px;
  font-weight: 800;
}

.filter-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.records-panel,
.feedback-form,
.settings-list,
.account-security-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 20, 16, .06);
}

.records-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.record-tabs {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 26px;
}

.record-tabs button {
  position: relative;
  align-self: stretch;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
}

.record-tabs button.active {
  color: var(--ink);
}

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

.record-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr)) auto auto;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
  background: #f7f7f4;
}

.record-filter[hidden] {
  display: none;
}

.record-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.record-filter input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
  font: inherit;
}

.record-filter > button {
  align-self: end;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 16px;
  font-weight: 800;
}

.record-filter .primary-small {
  color: #fff;
  background: var(--ink);
}

.record-list {
  display: grid;
}

.record-item {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.record-item:last-child {
  border-bottom: 0;
}

.record-main,
.record-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.record-main h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.record-main p,
.record-foot {
  color: var(--muted);
  font-size: 13px;
}

.record-main p {
  margin: 0;
}

.record-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.record-status.accepted {
  color: #14633c;
  background: #eaf6ef;
}

.record-status.pending {
  color: #7a5a12;
  background: #fbf3dd;
}

.record-status.rejected {
  color: #9b2f2f;
  background: #faeaea;
}

.record-foot {
  align-items: center;
  margin-top: 18px;
}

.record-foot strong {
  color: var(--ink);
  font-size: 15px;
}

.record-foot button {
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
}

.account-empty {
  min-height: 240px;
  display: grid;
  place-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.account-empty strong {
  color: var(--ink);
  font-size: 18px;
}

.feedback-form {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.feedback-form fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.feedback-form legend,
.feedback-field > span {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 850;
}

.feedback-form em {
  color: #c53c3c;
  font-style: normal;
}

.feedback-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feedback-types span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 16px;
  color: var(--muted);
  cursor: pointer;
}

.feedback-types input:checked + span {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.feedback-field {
  position: relative;
  display: block;
}

.feedback-field textarea,
.feedback-field > input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 13px 14px;
  font: inherit;
}

.feedback-field textarea {
  min-height: 150px;
  resize: vertical;
}

.feedback-field > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.feedback-field textarea + small {
  position: absolute;
  right: 12px;
  bottom: 10px;
}

.feedback-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-preview,
.feedback-add-image {
  position: relative;
  width: 92px;
  height: 92px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  overflow: hidden;
}

.feedback-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .7);
}

.feedback-add-image {
  display: grid;
  place-content: center;
  gap: 2px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.feedback-add-image input {
  position: absolute;
  opacity: 0;
}

.feedback-add-image strong {
  font-size: 25px;
  font-weight: 400;
}

.feedback-submit,
.logout-wide {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-weight: 850;
}

.feedback-submit:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.form-message {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
}

.form-message.error {
  color: #b72e2e;
}

.form-message.success {
  color: #14633c;
}

.settings-list {
  overflow: hidden;
}

.settings-heading-card {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px 24px;
  box-shadow: 0 12px 34px rgba(17, 20, 16, .06);
}

.settings-heading-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.settings-heading-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.settings-heading-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #f7f7f4;
}

.settings-heading-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-list > button,
.account-security-panel > div,
.account-security-panel > button {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 14px 20px;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.settings-list > button:last-child,
.account-security-panel > button:last-child {
  border-bottom: 0;
}

.settings-list > button:hover {
  background: #f7f7f4;
}

.settings-list span,
.account-security-panel span {
  display: grid;
  gap: 4px;
}

.settings-list small,
.account-security-panel small {
  color: var(--muted);
  font-size: 12px;
}

.settings-list b {
  color: var(--muted);
  font-size: 22px;
}

.account-security-panel {
  overflow: hidden;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch i {
  position: relative;
  width: 44px;
  height: 24px;
  display: block;
  border-radius: 999px;
  background: #c9c9c3;
  cursor: pointer;
  transition: background .2s ease;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.switch input:checked + i {
  background: var(--ink);
}

.switch input:checked + i::after {
  transform: translateX(20px);
}

.account-security-panel .danger-row {
  justify-content: center;
  color: #b72e2e;
  font-weight: 800;
}

.logout-wide {
  color: #b72e2e;
  border: 1px solid var(--line);
  background: #fff;
}

.settings-save-message {
  margin: 0;
}

.settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.settings-dialog {
  width: min(560px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
}

.settings-dialog::backdrop {
  background: rgba(0, 0, 0, .42);
}

.settings-dialog h2 {
  margin: 0 0 18px;
}

.settings-dialog p {
  color: var(--muted);
  line-height: 1.75;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: #f1f1ee;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.profile-edit-form {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 20, 16, .06);
}

.profile-edit-heading {
  display: grid;
  gap: 12px;
}

.profile-edit-heading-card {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px 24px;
  box-shadow: 0 12px 34px rgba(17, 20, 16, .06);
}

.profile-edit-heading-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.profile-edit-heading-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-edit-heading-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #f7f7f4;
}

.profile-edit-heading-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avatar-edit-row {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.avatar-preview-edit {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  font-size: 24px;
  font-weight: 900;
}

.avatar-edit-row p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.secondary-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(50%);
  pointer-events: none;
}

.edit-info-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
}

.edit-info-row > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.edit-info-row em {
  color: #b72e2e;
  font-style: normal;
}

.edit-info-row input,
.edit-info-row select {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.edit-info-row input[readonly] {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

.edit-value-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.edit-value-action button {
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
}

.profile-edit-form > .form-message {
  margin: 16px 24px 0;
}

.profile-edit-form > .feedback-submit {
  width: calc(100% - 48px);
  margin: 12px 24px 24px;
}

.phone-dialog {
  width: min(520px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
}

.phone-dialog::backdrop {
  background: rgba(0, 0, 0, .42);
}

.phone-dialog h2 {
  margin: 0 0 8px;
}

.phone-dialog p {
  margin: 0 0 24px;
  color: var(--muted);
}

.phone-dialog label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
}

.phone-dialog label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.phone-dialog input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}

.phone-dialog label button {
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}

.phone-dialog .feedback-submit {
  width: 100%;
  margin-top: 8px;
}

.form-card,
.tool-card,
.table-card,
.editor-card {
  padding: 24px;
  border: 1px solid rgba(17, 20, 16, .13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.form-card + .form-card,
.editor-card + .editor-card {
  margin-top: 16px;
}

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

.card-title h2,
.tool-card h2,
.table-card h2,
.editor-card h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

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

.field.full {
  grid-column: 1 / -1;
}

.field textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fdfcf7;
  outline: none;
}

.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(17, 20, 16, .08);
}

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

.choice-card {
  min-height: 124px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fdfcf7;
  text-align: left;
}

.choice-card.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.choice-card strong {
  font-size: 18px;
}

.choice-card span {
  color: var(--muted);
  font-size: 14px;
}

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

.switch-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

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

.switch-row span {
  color: var(--muted);
  font-size: 13px;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
}

.switch i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17, 20, 16, .2);
  border-radius: 999px;
  background: var(--paper-2);
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(17, 20, 16, .16);
  transition: transform .18s ease;
}

.switch input:checked + i {
  background: var(--ink);
}

.switch input:checked + i::after {
  transform: translateX(20px);
}

.summary-panel {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 106px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.summary-row strong {
  color: var(--ink);
}

.summary-row.large {
  align-items: baseline;
  color: var(--ink);
  font-weight: 900;
  font-size: 20px;
}

.summary-panel .btn-full {
  margin-top: 18px;
}

.publish-payment-card {
  position: relative;
  overflow: hidden;
}

.publish-payment-card::before {
  width: 170px;
  height: 170px;
  position: absolute;
  top: -96px;
  right: -72px;
  border-radius: 50%;
  background: rgba(7, 193, 96, .08);
  content: "";
  pointer-events: none;
}

.publish-payment-card .card-title {
  align-items: flex-end;
}

.publish-payment-kicker {
  display: block;
  margin-bottom: 5px;
  color: #167845;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.publish-payment-safe {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

.publish-pay-method {
  min-height: 104px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 16px;
  color: var(--ink);
  background: #fdfcf7;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.publish-pay-method:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 20, 16, .34);
}

.publish-pay-method.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink), 0 12px 26px rgba(17, 20, 16, .07);
}

.publish-pay-method:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.publish-pay-method > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.publish-pay-method strong {
  font-size: 15px;
}

.publish-pay-method small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.publish-pay-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #4e4128;
  background: #eee4cb;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.publish-pay-icon.wechat {
  color: #08733d;
  background: #dff5e8;
}

.publish-pay-method > i {
  width: 17px;
  height: 17px;
  display: block;
  position: relative;
  border: 1px solid #aaa99f;
  border-radius: 50%;
}

.publish-pay-method.active > i {
  border-color: var(--ink);
}

.publish-pay-method.active > i::after {
  width: 9px;
  height: 9px;
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.publish-payment-note {
  margin: 14px 0 0;
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--muted);
  background: rgba(17, 20, 16, .04);
  font-size: 12px;
  line-height: 1.55;
}

.publish-state-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border-radius: 13px;
  padding: 11px 12px;
  background: rgba(17, 20, 16, .04);
}

.publish-state-note > span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8d8d84;
  box-shadow: 0 0 0 4px rgba(17, 20, 16, .06);
}

.publish-state-note.public > span {
  background: #0a8b4a;
  box-shadow: 0 0 0 4px rgba(7, 193, 96, .12);
}

.publish-state-note p,
.publish-state-note strong,
.publish-state-note small {
  margin: 0;
}

.publish-state-note p {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.publish-state-note strong {
  font-size: 12px;
}

.publish-state-note small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.summary-panel [data-publish-submit]:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.toast-line {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.toast-line.error {
  color: var(--red);
}

.toast-line.success {
  color: var(--ink);
}

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

.create-option {
  min-height: 240px;
  display: grid;
  align-content: space-between;
  padding: 26px;
  border: 1px solid rgba(17, 20, 16, .13);
  border-radius: 26px;
  background: #fdfcf7;
  box-shadow: var(--shadow);
}

.create-option h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.create-option-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.create-option-title-row h2 {
  margin: 0;
}

.create-option-title-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 850;
}

.create-option p {
  margin: 0;
  color: var(--muted);
}

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

.block-list,
.question-builder,
.preview-pane {
  display: grid;
  gap: 12px;
}

.block-item,
.question-item-builder {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fdfcf7;
}

.block-item.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.question-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.question-type-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fdfcf7;
  padding: 0 12px;
}

.question-edit-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fdfcf7;
}

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

.question-edit-head button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0 10px;
  color: var(--muted);
  font-weight: 800;
}

.option-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.option-list input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: var(--white);
}

.preview-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fdfcf7;
}

.preview-block h3 {
  margin: 0;
}

.preview-question {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.preview-option,
.preview-input {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin: 0 6px 6px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--white);
  font-size: 13px;
}

.table-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(17, 20, 16, .07);
  font-size: 12px;
  font-weight: 850;
}

.status-pill.published,
.status-pill.success {
  color: var(--paper);
  background: var(--ink);
}

.status-pill.draft,
.status-pill.pending {
  color: #73552a;
  background: #f3ead9;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-actions a,
.mini-actions button,
.table-actions a,
.table-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fdfcf7;
  padding: 0 11px;
  color: var(--ink);
  font-weight: 800;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

/* GemDesign-style questionnaire editor */
.editor-topbar {
  width: min(100% - 40px, 1240px);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  border: 1px solid rgba(17, 20, 16, .13);
  border-radius: 999px;
  background: rgba(247, 246, 241, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(17, 20, 16, .08);
  padding: 0 12px 0 16px;
}

.editor-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.editor-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.editor-brand strong {
  font-size: 19px;
  font-weight: 850;
}

.editor-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}

.editor-nav a {
  height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.editor-nav a.active,
.editor-nav a:hover {
  color: var(--ink);
  background: rgba(17, 20, 16, .06);
}

.editor-actions {
  width: min(100% - 40px, 1240px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  top: 88px;
  z-index: 45;
  margin: 12px auto 0;
  padding: 0;
}

.editor-save-state {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: #fdfcf7;
  font-size: 12px;
  font-weight: 800;
}

.editor-save-state.saved {
  color: var(--ink);
}

.editor-save-state.error {
  color: var(--red);
}

.editor-primary-action,
.editor-secondary-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 16px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 14px;
}

.editor-primary-action {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.editor-secondary-action {
  color: var(--ink);
  background: var(--white);
}

.survey-editor-page {
  min-height: calc(100dvh - 60px);
  background: var(--paper);
}

.survey-editor-shell {
  min-height: calc(100dvh - 60px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 280px;
}

.survey-editor-sidebar,
.survey-editor-preview {
  background: var(--white);
}

.survey-editor-sidebar {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  overflow: auto;
}

.survey-editor-preview {
  border-left: 1px solid var(--line);
  padding: 18px 14px;
}

.type-palette-panel {
  background: #fdfcf7;
}

.editor-type-palette {
  display: grid;
  gap: 16px;
}

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

.type-group-title {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.type-group-title i {
  width: 0;
  height: 0;
  border-left: 7px solid var(--ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transition: transform .16s ease;
}

.type-group:not(.collapsed) .type-group-title i {
  transform: rotate(90deg);
}

.type-group-title strong {
  font-size: 14px;
  letter-spacing: 0;
}

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

.type-group.collapsed .type-grid {
  display: none;
}

.type-tile {
  position: relative;
  min-height: 56px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 8px;
  color: var(--ink);
  background: #f6f6f5;
  text-align: left;
  transition: background .16s ease, border .16s ease, color .16s ease;
}

.type-tile:hover {
  border-color: rgba(17, 20, 16, .22);
  background: var(--white);
}

.type-tile i {
  width: 22px;
  color: #9c9c9c;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.type-tile span {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  font-size: 13px;
  font-weight: 850;
}

.editor-type-palette > span {
  color: var(--muted);
  font-size: 12px;
}

.block-panel {
  background: var(--white);
}

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

.editor-panel-title h2,
.preview-sticky h2 {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.editor-panel-title span {
  color: var(--muted);
  font-size: 12px;
}

.survey-block-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.survey-block-outline {
  display: grid;
  gap: 6px;
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 4px 0 6px 8px;
}

.survey-block-outline.active {
  border-left-color: var(--ink);
  background: var(--paper-2);
}

.survey-block-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
}

.survey-block-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 0 10px 0 6px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.survey-block-remove {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--white);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.survey-block-remove:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.survey-block-remove:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.survey-block-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.survey-block-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
}

.block-topic-list {
  display: grid;
  gap: 4px;
  padding: 0 6px 0 2px;
}

.block-topic-item {
  min-height: 34px;
  display: grid;
  grid-template-columns: 32px 54px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 0 6px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.block-topic-item:hover {
  color: var(--ink);
  background: rgba(17, 20, 16, .06);
}

.block-topic-item.active {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.block-topic-item strong {
  color: var(--ink);
  font-size: 12px;
}

.block-topic-item span {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.block-topic-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-style: normal;
}

.block-topic-empty {
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
}

.editor-add-block,
.editor-add-option {
  min-height: 34px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  text-align: left;
  padding: 0 12px;
}

.editor-add-block {
  width: auto;
  min-width: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 0;
  border: 1px dashed var(--line);
  text-align: center;
}

.editor-add-block:hover,
.editor-add-option:hover {
  color: var(--ink);
  background: rgba(17, 20, 16, .06);
}

.survey-editor-main {
  min-width: 0;
  padding: 28px;
  overflow: auto;
}

.editor-intro {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.editor-intro h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: 0;
}

.editor-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.editor-work-card,
.question-edit-card,
.survey-preview-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.title-card {
  padding: 18px;
  margin-bottom: 18px;
}

.title-card label,
.survey-question-title {
  display: grid;
  gap: 8px;
}

.title-card span,
.survey-question-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.title-card input,
.survey-question-title input,
.survey-option-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fdfcf7;
  outline: none;
}

.title-card input {
  font-size: 18px;
  font-weight: 800;
}

.title-card input:focus,
.survey-question-title input:focus,
.survey-option-row input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(17, 20, 16, .10);
}

.survey-consent-body {
  display: grid;
  gap: 8px;
}

.survey-consent-body span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.survey-consent-body textarea {
  width: 100%;
  max-width: 100%;
  min-height: 112px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  background: #fdfcf7;
  font: inherit;
  line-height: 1.6;
  outline: none;
  resize: vertical;
}

.survey-consent-body textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(17, 20, 16, .10);
}

.editor-type-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.preview-modal.open {
  display: block;
}

.preview-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 16, .42);
  backdrop-filter: blur(4px);
}

.preview-modal-panel {
  position: relative;
  width: min(100% - 40px, 900px);
  max-height: min(760px, calc(100dvh - 64px));
  overflow: auto;
  margin: 32px auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(17, 20, 16, .22);
  padding: 20px;
}

.preview-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.preview-modal-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.preview-modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.preview-modal-head button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.editor-type-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.editor-type-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.editor-type-toolbar button:hover {
  border-color: var(--ink);
}

.current-block-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.current-block-row h2 {
  margin: 0;
  font-size: 22px;
}

.current-block-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.survey-question-list {
  display: grid;
  gap: 14px;
  padding-right: 0;
  margin-bottom: 22px;
}

.question-edit-card {
  position: relative;
  gap: 14px;
  padding: 18px 62px 18px 18px;
}

.question-edit-card.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(20, 20, 20, 0.06), 0 14px 30px rgba(20, 20, 20, 0.08);
}

.question-edit-head strong {
  display: block;
  font-size: 15px;
}

.question-edit-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.question-edit-head {
  justify-content: flex-start;
}

.question-edit-head-main {
  min-width: 0;
  flex: 1;
}

.question-edit-head .question-drag-handle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f7f4;
  padding: 0;
  margin-top: 0;
  color: var(--muted);
  cursor: grab;
  user-select: none;
}

.question-edit-head .question-drag-handle:active {
  cursor: grabbing;
}

.question-drag-handle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.question-edit-card.dragging {
  opacity: .48;
}

.question-edit-card.drop-before::before,
.question-edit-card.drop-after::after {
  content: "";
  position: absolute;
  right: 10px;
  left: 10px;
  z-index: 4;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--paper);
  pointer-events: none;
}

.question-edit-card.drop-before::before {
  top: -9px;
}

.question-edit-card.drop-after::after {
  bottom: -9px;
}

.question-inline-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 2;
  display: grid;
  gap: 5px;
  transform: translateY(-50%);
}

.question-inline-actions button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.1);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.question-inline-actions button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

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

.survey-option-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.survey-option-row span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
}

.editing-select-preview {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.editing-select-preview .option-mark {
  border-radius: 6px;
}

.editing-text-placeholder {
  width: 100%;
  max-width: 100%;
  min-height: 92px;
  box-sizing: border-box;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--muted);
  background: #fdfcf7;
  font: inherit;
  line-height: 1.55;
  resize: none;
}

.editing-scale-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(52px, 100%), 1fr));
  gap: 8px;
}

.editing-scale-grid input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  color: var(--ink);
  background: #fdfcf7;
  font: inherit;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.editing-scale-grid input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(17, 20, 16, .10);
}

.screen-rule-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(138, 106, 50, .42);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: #fbf6ea;
}

.screen-rule-card > strong {
  color: #73552a;
  font-size: 14px;
}

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

.screen-correct-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.screen-correct-options label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
}

.screen-correct-options input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  accent-color: var(--ink);
}

.screen-rule-card button {
  width: fit-content;
  min-height: 34px;
  border: 1px solid rgba(138, 106, 50, .42);
  border-radius: 6px;
  padding: 0 12px;
  color: #73552a;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.screen-rule-error {
  color: var(--red) !important;
  font-weight: 800;
}

.survey-text-placeholder {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  background: #fdfcf7;
  font-size: 13px;
}

.editor-bottom-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.editor-add-question-main {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 22px;
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.editor-add-question-main span {
  position: relative;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 0;
  line-height: 0;
}

.editor-add-question-main span::before,
.editor-add-question-main span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.editor-add-question-main span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.editor-add-question-main:hover {
  background: #fdfcf7;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.08);
}

.preview-sticky {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  max-height: calc(100dvh - 104px);
  overflow: auto;
}

.survey-preview-card {
  padding: 18px;
}

.preview-survey-title {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.preview-survey-title strong {
  font-size: 18px;
}

.preview-survey-title span {
  color: var(--muted);
  font-size: 12px;
}

.preview-scale {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.preview-scale span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.preview-option i {
  margin-right: 6px;
  color: var(--ink);
  font-style: normal;
}

.editor-mobile-tabs {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .desktop-only,
  .market-sidebar {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .menu-button {
    display: inline-block;
  }

  .hero-grid,
  .market-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 52px 0;
  }

  .hero-panel {
    max-width: 680px;
  }

  .detail-status-wrap {
    position: static;
  }

  .editor-topbar {
    padding: 0 16px;
  }

  .editor-nav {
    display: none;
  }

  .editor-mobile-tabs {
    display: flex;
    position: sticky;
    top: 60px;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .editor-mobile-tabs button {
    flex: 1;
    min-height: 46px;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    background: transparent;
    font-weight: 900;
  }

  .editor-mobile-tabs button.active {
    color: var(--ink);
    border-bottom-color: var(--ink);
    background: #fdfcf7;
  }

  .survey-editor-shell {
    display: block;
    min-height: calc(100dvh - 106px);
  }

  .survey-editor-sidebar,
  .survey-editor-main,
  .survey-editor-preview {
    display: none;
  }

  .survey-editor-shell[data-active-tab="types"] .survey-editor-sidebar,
  .survey-editor-shell[data-active-tab="blocks"] .survey-editor-sidebar,
  .survey-editor-shell[data-active-tab="editor"] .survey-editor-main,
  .survey-editor-shell[data-active-tab="blocks"] .survey-editor-preview {
    display: block;
  }

  .survey-editor-shell[data-active-tab="blocks"] .survey-editor-sidebar {
    display: none;
  }

  .survey-editor-sidebar,
  .survey-editor-preview {
    border: 0;
  }

  .survey-editor-main {
    padding: 20px;
  }

  .preview-sticky {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1240px);
  }

  .nav-shell {
    min-height: 64px;
    gap: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 17px;
  }

  .nav-actions {
    display: none;
  }

  .hero {
    border-bottom: 0;
  }

  .hero-grid {
    gap: 22px;
    padding: 38px 0 26px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-actions,
  .publish-inner,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn-large {
    width: 100%;
  }

  .market-section {
    padding-top: 18px;
  }

  .filter-card,
  .question-card,
  .detail-card,
  .hero-panel {
    border-radius: 16px;
    padding: 16px;
  }

  .sort-row {
    display: grid;
  }

  .sort-tabs span {
    display: none;
  }

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

  .reward-box {
    min-width: 0;
    justify-items: start;
    grid-template-columns: 1fr;
  }

  .card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .profile-wallet-card {
    display: grid;
  }

  .profile-link-button {
    width: 100%;
  }

  .profile-nav-grid {
    grid-template-columns: 1fr;
  }

  .profile-nav-grid a,
  .profile-nav-grid button {
    min-height: 70px;
  }

  .account-page-heading {
    align-items: flex-start;
  }

  .account-page-heading h1 {
    font-size: 28px;
  }

  .subpage-heading-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .records-heading-card .filter-button {
    width: 100%;
  }

  .record-filter {
    grid-template-columns: 1fr 1fr;
  }

  .record-filter > button {
    width: 100%;
  }

  .feedback-form {
    padding: 20px;
  }

  .feedback-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .edit-info-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .avatar-edit-row {
    align-items: flex-start;
  }

  .settings-actions {
    grid-template-columns: 1fr;
  }

  .editor-brand strong {
    display: none;
  }

  .editor-actions {
    gap: 8px;
  }

  .editor-save-state {
    display: none;
  }

  .editor-primary-action,
  .editor-secondary-action {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .editor-intro {
    display: grid;
  }

  .editor-intro h1 {
    font-size: 22px;
  }

  .editor-type-toolbar {
    align-items: stretch;
  }

  .editor-type-toolbar span {
    width: 100%;
  }

  .editor-type-toolbar button {
    flex: 1 1 calc(50% - 8px);
  }

  .current-block-row {
    align-items: start;
  }

  .editor-bottom-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .survey-option-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .card-actions,
  .detail-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Answer audit */
.sr-only {
  width: 1px !important;
  height: 1px !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.audit-page {
  padding-bottom: 72px;
}

.audit-heading-card {
  position: relative;
}

.audit-back-link {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.audit-summary-card {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  color: var(--muted);
  background: #fdfcf7;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.audit-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 20, 16, .3);
}

.audit-summary-card.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink), 0 12px 30px rgba(17, 20, 16, .07);
}

.audit-summary-card span {
  font-size: 13px;
  font-weight: 850;
}

.audit-summary-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.audit-recruitment-card {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fdfcf7;
}

.audit-recruitment-head {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.audit-recruitment-head > div:first-child > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.audit-recruitment-head h2,
.audit-recruitment-head p {
  margin: 0;
}

.audit-recruitment-head h2 {
  margin-top: 5px;
  font-size: 20px;
}

.audit-recruitment-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.audit-recruitment-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.audit-recruitment-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 17px;
  color: var(--ink);
  background: var(--white);
  font-weight: 850;
}

.audit-recruitment-actions button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.audit-recruitment-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 18px 22px;
}

.audit-recruitment-metrics > div {
  min-width: 0;
  display: grid;
  gap: 7px;
  border-right: 1px solid var(--line);
  padding: 2px 18px;
}

.audit-recruitment-metrics > div:first-child {
  padding-left: 0;
}

.audit-recruitment-metrics > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.audit-recruitment-metrics dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.audit-recruitment-metrics dd {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.audit-recruitment-metrics .refund-metric dd {
  color: #27643b;
}

.audit-recruitment-hint {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 11px 22px 12px;
  color: var(--muted);
  background: rgba(17, 20, 16, .025);
  font-size: 12px;
}

.audit-table-card {
  padding: 0;
  overflow: hidden;
}

.audit-toolbar,
.audit-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.audit-toolbar {
  border-bottom: 1px solid var(--line);
}

.audit-toolbar h2,
.audit-toolbar p {
  margin: 0;
}

.audit-toolbar p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.audit-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audit-search input {
  width: min(320px, 34vw);
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--ink);
  background: var(--white);
}

.audit-search button,
.audit-pagination button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  background: #fdfcf7;
  font-weight: 800;
}

.audit-batch-bar {
  min-height: 62px;
  background: rgba(17, 20, 16, .035);
}

.audit-batch-bar > span {
  color: var(--muted);
  font-size: 14px;
}

.audit-primary-action {
  color: var(--paper) !important;
  border-color: var(--ink) !important;
  background: var(--ink) !important;
}

.audit-message {
  margin: 0;
  padding: 0 22px;
}

.audit-table-scroll {
  overflow-x: auto;
}

.audit-data-table {
  min-width: 840px;
}

.audit-data-table th:first-child,
.audit-data-table td:first-child {
  padding-left: 22px;
}

.audit-data-table th:last-child,
.audit-data-table td:last-child {
  padding-right: 22px;
}

.audit-data-table td span:not(.status-pill),
.audit-data-table td small {
  color: var(--muted);
  font-size: 12px;
}

.audit-check-cell {
  width: 42px;
  text-align: center !important;
}

.audit-check-cell input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.status-pill.rejected {
  color: #8b342f;
  background: #f8dfdc;
}

.audit-empty {
  min-height: 110px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.audit-empty strong {
  color: var(--ink);
}

.audit-pagination {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.audit-pagination button:disabled,
.audit-batch-bar button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.audit-drawer,
.audit-confirm {
  position: fixed;
  inset: 0;
  z-index: 180;
}

.audit-confirm {
  z-index: 200;
}

.audit-drawer[hidden],
.audit-confirm[hidden] {
  display: none;
}

.audit-drawer-backdrop,
.audit-confirm-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(17, 20, 16, .42);
  backdrop-filter: blur(3px);
}

.audit-drawer-panel {
  width: min(620px, 92vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: absolute;
  top: 0;
  right: 0;
  background: var(--paper);
  box-shadow: -24px 0 70px rgba(17, 20, 16, .18);
}

.audit-drawer-head,
.audit-drawer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.audit-drawer-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.audit-drawer-head h2 {
  margin: 4px 0 0;
}

.audit-drawer-body {
  overflow-y: auto;
  padding: 22px 24px 30px;
}

.audit-drawer-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: #fdfcf7;
}

.audit-drawer-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 850;
}

.audit-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0 0 2px;
  color: var(--ink);
  background: transparent;
  font: 400 24px/1 Arial, sans-serif;
}

.audit-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.audit-detail-meta span {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

.audit-detail-meta strong {
  color: var(--ink);
  font-size: 13px;
}

.audit-reason {
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 14px 16px;
  color: #8b342f;
  background: #f8dfdc;
}

.audit-reason p {
  margin: 6px 0 0;
}

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

.audit-answer-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fdfcf7;
}

.audit-answer-item > span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.audit-answer-item h3,
.audit-answer-item p {
  margin: 0;
}

.audit-answer-item h3 {
  font-size: 14px;
}

.audit-answer-item p {
  margin-top: 8px;
  color: var(--muted);
  white-space: pre-wrap;
}

.audit-confirm-panel {
  width: min(480px, calc(100% - 32px));
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 22px;
  padding: 26px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(17, 20, 16, .24);
}

.audit-confirm-panel > .audit-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.audit-confirm-panel h2 {
  margin: 0 46px 8px 0;
}

.audit-confirm-panel > p {
  color: var(--muted);
}

.audit-confirm-panel label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-weight: 850;
}

.audit-confirm-panel textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  box-sizing: border-box;
}

.audit-refund-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 0;
}

.audit-refund-breakdown > div {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--white);
}

.audit-refund-breakdown dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.audit-refund-breakdown dd {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.audit-refund-breakdown > div:first-child dd {
  color: #27643b;
}

.audit-confirm-panel .audit-refund-rule {
  margin: 12px 0 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(17, 20, 16, .045);
  font-size: 12px;
}

.audit-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.audit-confirm-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 850;
}

.audit-overlay-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .audit-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audit-toolbar,
  .audit-batch-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-recruitment-head {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-recruitment-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .audit-recruitment-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 16px 0;
  }

  .audit-recruitment-metrics > div,
  .audit-recruitment-metrics > div:first-child,
  .audit-recruitment-metrics > div:last-child {
    border-right: 0;
    padding: 0;
  }

  .audit-refund-breakdown {
    grid-template-columns: 1fr;
  }

  .audit-search {
    display: grid;
    grid-template-columns: 1fr auto auto;
  }

  .audit-search input {
    width: 100%;
    min-width: 0;
  }

  .audit-batch-bar .mini-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .audit-batch-bar .mini-actions button {
    justify-content: center;
  }

  .audit-drawer-panel {
    width: 100%;
  }

  .audit-detail-meta {
    grid-template-columns: 1fr;
  }
}
.audit-lifecycle-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  color: var(--muted, #667085);
  font-size: 14px;
}

.audit-lifecycle-lines p {
  flex-basis: 100%;
  margin: 0;
  color: #b42318;
}

.dashboard-reasons {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  color: #b42318;
}

/* Website WeChat payment */
.payment-dialog {
  border: 0;
}

[data-copy-purchase-dialog] {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: var(--shadow);
}

[data-copy-purchase-dialog]::backdrop {
  background: rgba(17, 20, 16, .58);
  backdrop-filter: blur(5px);
}

.copy-purchase-panel {
  position: relative;
  padding: 30px;
  background: var(--paper);
}

.copy-purchase-kicker {
  margin: 0 0 7px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.copy-purchase-panel h2 {
  margin: 0;
  font-size: 25px;
}

.copy-purchase-panel > p:not(.copy-purchase-kicker):not(.copy-purchase-error):not(.copy-purchase-status) {
  margin: 8px 46px 22px 0;
  color: var(--muted);
  line-height: 1.65;
}

.copy-purchase-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  font: 400 22px/1 Arial, sans-serif;
  cursor: pointer;
}

.copy-purchase-input-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

[data-copy-purchase-input] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  box-sizing: border-box;
  font: inherit;
  font-size: 18px;
  font-weight: 850;
}

[data-copy-purchase-input]:focus {
  outline: 3px solid rgba(228, 91, 48, .18);
  border-color: var(--orange);
}

[data-copy-purchase-input][aria-invalid="true"] {
  border-color: #b42318;
}

.copy-purchase-panel > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.copy-purchase-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 20px 0 0;
}

.copy-purchase-summary > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 12px;
  background: var(--white);
}

.copy-purchase-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.copy-purchase-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.copy-purchase-summary .copy-purchase-emphasis {
  border-color: rgba(228, 91, 48, .35);
  background: rgba(228, 91, 48, .07);
}

.copy-purchase-summary .copy-purchase-emphasis dd {
  color: var(--orange);
}

.copy-purchase-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.copy-purchase-error {
  min-height: 20px;
  margin: 7px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 750;
}

.copy-purchase-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.copy-purchase-actions button {
  min-height: 44px;
  min-width: 126px;
  justify-content: center;
}

.copy-purchase-actions button:disabled,
[data-copy-purchase-input]:disabled {
  cursor: not-allowed;
  opacity: .55;
}

[data-payment-dialog] {
  width: min(430px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: var(--shadow);
}

[data-payment-dialog]::backdrop {
  background: rgba(17, 20, 16, .58);
  backdrop-filter: blur(5px);
}

.payment-dialog-panel {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 32px;
  background: var(--paper);
  text-align: center;
}

.payment-dialog-kicker {
  margin: 0 0 7px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.payment-dialog-panel h2 {
  margin: 0;
  font-size: 25px;
}

.payment-dialog-purpose {
  min-height: 22px;
  margin: 8px 0 20px;
  color: var(--muted);
}

.payment-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.payment-qr-frame {
  display: grid;
  width: 252px;
  height: 252px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 11px;
  background: var(--white);
  box-sizing: border-box;
}

[data-payment-qr] {
  display: block;
  width: 228px;
  height: 228px;
}

[data-payment-amount] {
  margin-top: 18px;
  font-size: 32px;
  letter-spacing: -.03em;
}

[data-payment-status] {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--ink);
  font-weight: 800;
}

[data-payment-countdown] {
  min-height: 20px;
  margin: 5px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.payment-regenerate,
.payment-cancel {
  min-width: 190px;
  min-height: 44px;
  justify-content: center;
}

.payment-cancel {
  margin-top: 10px;
}

@media (max-width: 520px) {
  .copy-purchase-panel {
    padding: 26px 18px 20px;
  }

  .copy-purchase-summary {
    grid-template-columns: 1fr;
  }

  .copy-purchase-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .copy-purchase-actions button {
    min-width: 0;
  }

  .payment-dialog-panel {
    padding: 28px 20px 22px;
  }

  .payment-qr-frame {
    width: 232px;
    height: 232px;
  }

  [data-payment-qr] {
    width: 208px;
    height: 208px;
  }
}
