* {
  box-sizing: border-box;
}

:root {
  --bg: #f8f5ef;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-strong: #fffaf3;
  --ink: #172033;
  --muted: #6b7280;
  --line: rgba(23, 32, 51, 0.1);
  --brand: #ec4899;
  --brand-2: #f97316;
  --green: #16a34a;
  --teal: #0f766e;
  --shadow: 0 24px 60px rgba(84, 54, 25, 0.12);
  --radius: 28px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(236, 72, 153, 0.14), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(249, 115, 22, 0.14), transparent 32%),
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 46%, #ffffff 100%);
  line-height: 1.65;
}

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

.preview-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.preview-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 244, 0.78);
  border-bottom: 1px solid var(--line);
}

.preview-nav__inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto 120px;
  align-items: center;
  gap: 18px;
  min-height: 70px;
}

.preview-nav-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-nav-auth[data-auth-state="loading"] {
  min-width: 120px;
  min-height: 36px;
}

.preview-nav-auth__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.preview-nav-auth__btn:hover {
  transform: translateY(-1px);
}

.preview-nav-auth__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.22);
}

.preview-nav-auth__btn--outline {
  color: #be185d;
  border: 1px solid rgba(236, 72, 153, 0.34);
  background: rgba(255, 255, 255, 0.82);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 220px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4b5563;
  font-size: 14px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
  font-weight: inherit;
}

.nav-links a:hover,
.nav-links .is-active {
  background: rgba(236, 72, 153, 0.1);
  color: var(--brand);
}

.utility-menu {
  position: relative;
  flex: 0 0 auto;
  justify-self: end;
}

.utility-menu summary {
  list-style: none;
  min-width: 84px;
  padding: 9px 16px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  color: #0f766e;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.95), rgba(103, 232, 249, 0.86));
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.2);
}

.utility-menu summary::-webkit-details-marker {
  display: none;
}

.utility-menu[open] summary {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

.utility-menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  width: min(280px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.94)),
    radial-gradient(circle at 92% 8%, rgba(45, 212, 191, 0.18), transparent 36%);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.utility-menu__panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 184, 166, 0.12);
  border-radius: 14px;
  color: #164e63;
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.utility-menu__panel a:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.32);
  background: rgba(236, 254, 255, 0.95);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.12);
}

.tool-hero {
  padding: 44px 0 26px;
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.68fr);
  gap: 28px;
  align-items: end;
}

.tool-hero-grid--single {
  grid-template-columns: minmax(0, 760px);
}

body[data-preview-tool="second-contract"] .tool-hero-grid--single {
  grid-template-columns: minmax(0, 980px);
}

body[data-preview-tool="second-contract"] .tool-hero h1 {
  white-space: nowrap;
}

body[data-preview-tool="calculator"] .tool-hero-grid--single {
  grid-template-columns: minmax(0, 1040px);
}

body[data-preview-tool="calculator"] .tool-hero h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(36px, 4.45vw, 58px);
  letter-spacing: -0.06em;
}

.tool-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.tool-hero h1 span {
  color: var(--brand);
}

.tool-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.tool-workbench {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,250,245,0.72)),
    radial-gradient(circle at 100% 0%, rgba(236,72,153,0.12), transparent 34%);
  box-shadow: 0 28px 80px rgba(84,54,25,0.13);
}

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

.fx-form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(128px, 0.45fr);
  gap: 14px;
  align-items: end;
}

.tool-field {
  display: grid;
  gap: 7px;
}

.tool-field label {
  color: #4b5563;
  font-size: 13px;
  font-weight: 900;
}

.tool-input,
.tool-select,
.tool-textarea {
  width: 100%;
  border: 1px solid rgba(23,32,51,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.tool-input,
.tool-select {
  min-height: 46px;
  padding: 0 14px;
}

.tool-textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
  line-height: 1.65;
}

.tool-input:focus,
.tool-select:focus,
.tool-textarea:focus {
  border-color: rgba(236,72,153,0.38);
  box-shadow: 0 0 0 4px rgba(236,72,153,0.1);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.fx-action-field .btn {
  width: 100%;
  min-height: 46px;
  justify-content: center;
}

.tool-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(23,32,51,0.08);
  border-radius: 24px;
  background: rgba(255,255,255,0.74);
}

.tool-result h3 {
  margin: 0 0 10px;
}

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

.media-extract-workbench {
  max-width: 980px;
  margin: 0 auto;
}

.media-url-input {
  min-height: 116px;
}

.media-result[data-mode="ok"] {
  border-color: rgba(20, 184, 166, 0.22);
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.1), transparent 32%);
}

.media-result[data-mode="error"] {
  border-color: rgba(225, 29, 72, 0.2);
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.92), rgba(255, 255, 255, 0.82));
  color: #be123c;
}

.media-post-text {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.media-post-text p {
  margin: 0;
  color: #334155;
  white-space: pre-wrap;
  line-height: 1.75;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.media-card {
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.media-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #111827, #312e81);
}

.media-preview-zoom {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-preview img,
.media-preview video {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: contain;
  background: #0f172a;
}

.media-file-placeholder {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.media-card__body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

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

.media-card__body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.media-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.media-card__actions .btn {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 12px;
}

.media-preview-open {
  overflow: hidden;
}

.media-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 14, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.media-preview-modal[hidden] {
  display: none !important;
}

.media-preview-modal__img {
  max-width: min(96vw, 1280px);
  max-height: 90vh;
  display: block;
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38);
  cursor: zoom-out;
}

.media-preview-modal__close {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.vault-workbench {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(22px, 2.5vw, 36px);
}

body[data-preview-tool="vault"] .preview-shell {
  width: min(1480px, calc(100% - 56px));
}

.vault-toolbar,
.vault-editor-head,
.vault-images-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.vault-toolbar {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.vault-toolbar strong,
.vault-images-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.vault-toolbar span,
.vault-images-head span,
.vault-parent-hint {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.vault-toolbar-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.vault-editor-head {
  align-items: center;
  flex-wrap: nowrap;
}

.vault-editor-head .vault-title-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.vault-editor-actions {
  flex-wrap: nowrap;
  margin-top: 0;
  flex-shrink: 0;
  gap: 8px;
}

.vault-editor-actions .btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.jiyu-vault-status {
  min-height: 22px;
  margin: 12px 0;
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
}

.jiyu-vault-status[data-tone="error"] {
  color: #be123c;
}

.vault-layout {
  display: grid;
  grid-template-columns: minmax(230px, 286px) minmax(0, 1fr);
  gap: 22px;
  min-height: 760px;
  align-items: stretch;
}

.vault-sidebar,
.vault-editor-wrap {
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.vault-sidebar {
  overflow: auto;
  padding: 12px;
  min-height: 0;
}

.jiyu-vault-nav-empty {
  margin: 8px;
  color: var(--muted);
  font-size: 13px;
}

.jiyu-vault-nav-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.jiyu-vault-nav-row.is-dragging {
  opacity: 0.45;
}

.jiyu-vault-nav-caret,
.jiyu-vault-nav-caret-placeholder {
  width: 24px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.jiyu-vault-nav-item {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 14px;
  padding: 0 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  color: #374151;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.jiyu-vault-nav-item[aria-selected="true"] {
  border-color: rgba(236, 72, 153, 0.28);
  color: #be185d;
  background: linear-gradient(135deg, rgba(255, 241, 247, 0.94), rgba(255, 255, 255, 0.9));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.08);
}

.vault-editor-wrap {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vault-editor {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.vault-empty {
  min-height: 580px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

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

.vault-title-input,
.vault-body-input {
  width: 100%;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.vault-title-input {
  min-height: 46px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 900;
}

.vault-body-shell {
  display: flex;
  flex-direction: column;
  height: 580px;
  min-height: 580px;
  max-height: 580px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vault-body-shell:focus-within,
.vault-body-shell.is-dragover {
  border-color: rgba(236, 72, 153, 0.38);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.vault-body-shell.is-dragover {
  background: rgba(255, 251, 253, 0.98);
}

.vault-body-shell .vault-body-input {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  padding: 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.85;
  resize: none;
  background: transparent;
  overflow-y: auto;
}

.vault-body-shell .vault-image-grid--inline {
  flex-shrink: 0;
  overflow-y: auto;
}

.vault-body-shell .vault-image-grid--inline:not(:empty) {
  height: 148px;
  max-height: 148px;
  padding: 0 16px 16px;
}

.vault-body-shell .vault-body-editor {
  flex: 1 1 auto;
  min-height: 430px;
  padding: 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.85;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
  resize: none;
}

.vault-body-editor:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  white-space: pre-wrap;
  pointer-events: none;
}

.vault-inline-figure {
  display: block;
  margin: 14px 0;
  max-width: 100%;
}

.vault-inline-img {
  display: block;
  max-width: min(100%, 420px);
  max-height: 280px;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: #fff;
  cursor: zoom-in;
  object-fit: contain;
}

.vault-inline-img.is-uploading {
  opacity: 0.55;
  filter: grayscale(0.15);
  cursor: wait;
}

.vault-images {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(20, 184, 166, 0.14);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.72), rgba(255, 255, 255, 0.72));
}

.vault-image-drop {
  padding: 16px;
  border: 1px dashed rgba(20, 184, 166, 0.35);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.vault-image-drop.is-dragover {
  border-color: rgba(236, 72, 153, 0.45);
  background: rgba(255, 241, 247, 0.8);
}

.vault-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.jiyu-vault-image-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 16px;
  background: #fff;
}

.jiyu-vault-image-card.is-uploading {
  opacity: 0.62;
}

.jiyu-vault-image-card__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.jiyu-vault-image-card img {
  width: 100%;
  height: 112px;
  display: block;
  object-fit: cover;
}

.jiyu-vault-image-card__name {
  padding: 7px 8px;
  overflow: hidden;
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jiyu-vault-image-card__del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(190, 18, 60, 0.9);
  cursor: pointer;
}

.vault-modal[hidden],
.vault-modal.hidden,
.hidden {
  display: none !important;
}

.vault-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.vault-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 22, 0.36);
  backdrop-filter: blur(5px);
}

.vault-modal__box {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(88, 28, 55, 0.24);
}

.vault-modal__box h3 {
  margin: 0 0 8px;
}

.vault-modal__box p {
  margin: 0 0 16px;
  color: #4b5563;
}

.preview-pixel-modal-open {
  overflow: hidden;
}

.preview-pixel-img-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 14, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.preview-pixel-img-modal[hidden] {
  display: none !important;
}

.preview-pixel-img-modal__img {
  max-width: min(96vw, 1280px);
  max-height: 90vh;
  display: block;
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38);
  cursor: zoom-out;
}

.preview-pixel-img-modal__close {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.vault-image-preview__box {
  width: min(860px, 100%);
}

.vault-image-preview__box img {
  max-width: 100%;
  max-height: 72vh;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
}

.vault-image-preview__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.76);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 980px) {
  body[data-preview-tool="vault"] .preview-shell {
    width: min(100% - 28px, 1480px);
  }

  .vault-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .vault-sidebar {
    max-height: 280px;
  }

  .vault-body-shell {
    height: 480px;
    min-height: 480px;
    max-height: 480px;
  }

  .vault-empty {
    min-height: 480px;
  }
}

@media (max-width: 860px) {
  .fx-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fx-action-field {
    grid-column: 1 / -1;
  }
}

.tool-stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(23,32,51,0.07);
}

.tool-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}

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

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

.tool-list-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(23,32,51,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}

.tool-iframe {
  width: 100%;
  min-height: 680px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(23,32,51,0.08);
  transition: opacity 0.16s ease;
}

.tool-iframe.is-ready {
  opacity: 1;
}

.tool-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.second-tier {
  min-height: 54px;
  padding: 10px 8px;
  border: 1px solid rgba(225, 29, 138, 0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  color: #4b5563;
  cursor: pointer;
  font: inherit;
  transition: 0.18s ease;
}

.second-tier strong,
.second-tier span,
.second-tier-rate {
  display: block;
}

.second-tier-rate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 4px;
}

.second-tier-rate__input {
  width: 56px;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid rgba(225, 29, 138, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.second-tier-rate__input:focus {
  outline: none;
  border-color: rgba(225, 29, 138, 0.45);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

.second-tier span:not(.second-tier-rate) {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.second-tier.is-on,
.second-tier:hover {
  transform: translateY(-1px);
  border-color: rgba(225, 29, 138, 0.32);
  background: linear-gradient(180deg, #fff, #fff1f7);
  box-shadow: 0 14px 34px rgba(225, 29, 138, 0.12);
}

.second-result-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
}

.second-result-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.second-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.second-result-table th,
.second-result-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.second-result-table th:first-child,
.second-result-table td:first-child {
  text-align: left;
}

.second-result-table thead th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.second-result-table tfoot td {
  border-bottom: none;
  color: #9d174d;
  font-size: 16px;
  font-weight: 900;
}

.second-profit-label {
  display: inline-block;
  margin-right: 12px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
}

.second-result-table tfoot strong {
  color: #9d174d;
  font: inherit;
}

.calc-display {
  min-height: 104px;
  padding: 20px 24px;
  border-radius: 28px;
  background: #111827;
  color: #fff;
  text-align: right;
  overflow: hidden;
}

.calc-display small {
  display: block;
  min-height: 24px;
  color: rgba(255,255,255,0.58);
  font-size: 15px;
}

.calc-display strong {
  display: block;
  font-size: 46px;
  line-height: 1.1;
}

.calc-workbench {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: 42px;
  box-shadow: 0 34px 95px rgba(84, 54, 25, 0.16);
}

.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.calc-key {
  min-height: 72px;
  border: 1px solid rgba(23,32,51,0.08);
  border-radius: 24px;
  background: rgba(255,255,255,0.86);
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.calc-key.is-op,
.calc-key.is-eq {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.tool-embed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero {
  padding: 56px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #be185d;
  background: rgba(236, 72, 153, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: var(--brand);
}

.lead {
  margin: 0;
  max-width: 680px;
  color: #4b5563;
  font-size: 18px;
}

.hero-actions,
.section-actions,
.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.btn-primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.btn-green {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(236, 72, 153, 0.15);
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(255,255,255,0.94), rgba(255,245,249,0.9));
  box-shadow: var(--shadow);
}

.chat-preview {
  display: grid;
  gap: 14px;
}

.bubble {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  font-size: 14px;
}

.bubble.user {
  justify-self: end;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.bubble.ai {
  justify-self: start;
  border-top-left-radius: 6px;
}

.bubble small {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.82);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}

.metric strong {
  display: block;
  font-size: 20px;
}

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

.section {
  padding: 36px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
}

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

.card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.card-grid--four .card {
  padding: 20px;
  min-width: 0;
}

.card-grid--four .card h3 {
  font-size: 18px;
}

.card-grid--four .card p {
  font-size: 13px;
  line-height: 1.6;
}

.card-grid--four .tag-row {
  gap: 6px;
}

.card-grid--four .tag {
  padding: 4px 8px;
  font-size: 11px;
}

.client-download-stack {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.client-download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(84, 54, 25, 0.12);
}

.client-download-panel--desktop {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 243, 255, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.16), transparent 38%);
  border-color: rgba(199, 210, 254, 0.72);
}

.client-download-panel--rpa {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 242, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.14), transparent 36%);
}

.client-download-panel h3 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.client-download-panel p {
  margin: 0;
  max-width: 620px;
  color: #4b5563;
}

.client-download-panel__note {
  margin-top: 0.75rem !important;
  font-size: 13px;
  color: #6b7280 !important;
}

.client-download-actions {
  display: grid;
  gap: 12px;
}

.client-download-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 18px 20px;
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
}

.client-download-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 12%, rgba(255,255,255,0.34), transparent 32%);
  pointer-events: none;
}

.client-download-card strong {
  position: relative;
  z-index: 1;
  font-size: 20px;
  line-height: 1.2;
}

.client-download-card span {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

.client-download-panel--desktop .client-download-card--win {
  background: linear-gradient(135deg, #4338ca, #6366f1);
}

.client-download-panel--desktop .client-download-card--mac {
  background: linear-gradient(135deg, #312e81, #a855f7);
}

.client-download-panel--rpa .client-download-card--win {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.client-download-panel--rpa .client-download-card--mac {
  background: linear-gradient(135deg, #111827, #ec4899);
}

.client-download-card:hover {
  transform: translateY(-2px);
}

/* legacy aliases — keep dialog styles on rpa-download-* */
.rpa-download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 242, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.14), transparent 36%);
  box-shadow: 0 24px 70px rgba(84, 54, 25, 0.12);
}

.rpa-download-panel h3 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.rpa-download-panel p {
  margin: 0;
  max-width: 620px;
  color: #4b5563;
}

.rpa-download-actions {
  display: grid;
  gap: 12px;
}

.rpa-download-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 18px 20px;
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
}

.rpa-download-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 12%, rgba(255,255,255,0.34), transparent 32%);
  pointer-events: none;
}

.rpa-download-card strong {
  position: relative;
  z-index: 1;
  font-size: 20px;
  line-height: 1.2;
}

.rpa-download-card span {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

.rpa-download-card--win {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.rpa-download-card--mac {
  background: linear-gradient(135deg, #111827, #ec4899);
}

.rpa-download-card:hover {
  transform: translateY(-2px);
}

.rpa-download-dialog[hidden] {
  display: none !important;
}

.rpa-download-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.rpa-download-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 22, 0.36);
  backdrop-filter: blur(5px);
}

.rpa-download-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 30px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,247,250,0.94)),
    radial-gradient(circle at 100% 0%, rgba(20,184,166,0.13), transparent 34%);
  box-shadow: 0 30px 90px rgba(88, 28, 55, 0.24);
}

.rpa-download-dialog__head,
.rpa-download-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rpa-download-dialog__head {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 18px;
}

.rpa-download-dialog__head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #9d174d;
  background: #fff1f7;
  font-size: 22px;
  cursor: pointer;
}

.rpa-download-dialog__body {
  display: grid;
  gap: 12px;
  color: #445066;
  line-height: 1.75;
}

.rpa-download-dialog__body p {
  margin: 0;
}

.rpa-download-dialog__ok {
  color: #0f766e;
  font-weight: 900;
}

.rpa-download-dialog__warn {
  color: #be123c;
  font-weight: 900;
}

.rpa-download-dialog__note {
  color: var(--muted);
  font-size: 14px;
}

.rpa-license-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(20,184,166,0.18);
  border-radius: 18px;
  background: rgba(240,253,250,0.9);
}

.rpa-license-box span {
  color: #064e3b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 900;
  word-break: break-all;
}

.rpa-license-box button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.rpa-download-dialog__actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.card p {
  margin: 0;
  color: #4b5563;
}

.tool-action-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tool-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.09);
}

.card .tag-row,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag,
.tool-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #6b21a8;
  background: rgba(168, 85, 247, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.value-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  box-shadow: var(--shadow);
}

.compare {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

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

.compare-row > div {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.compare-row:last-child > div {
  border-bottom: 0;
}

.compare-head > div {
  font-weight: 900;
  background: #fff7ed;
}

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

.tool-card {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.tool-card strong {
  display: block;
  margin-bottom: 8px;
}

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

.ai-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0 44px;
}

.preview-ai-page .ai-layout {
  padding-top: 32px;
}

.side-panel,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 18px;
  align-self: start;
}

.mode-card {
  display: grid;
  place-items: center;
  width: 100%;
  margin-bottom: 10px;
  min-height: 76px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  text-align: center;
  background: #fff;
  cursor: pointer;
}

.mode-card.active {
  border-color: rgba(236, 72, 153, 0.35);
  background: #fff1f7;
}

.mode-card strong,
.mode-card span {
  display: block;
}

.mode-card strong {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

.chat-panel {
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff7ed, #fff1f7);
}

.chat-head h1 {
  margin: 0;
  font-size: 23px;
}

.chat-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chat-clear-btn {
  min-width: 82px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  color: #0f766e;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.95), rgba(103, 232, 249, 0.86));
  box-shadow: 0 14px 32px rgba(20, 184, 166, 0.22);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-context-btn {
  min-width: 112px;
  color: #be185d;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 247, 0.9));
  box-shadow: 0 12px 28px rgba(190, 24, 93, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.22);
}

.chat-clear-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(20, 184, 166, 0.28);
}

.chat-context-btn:hover {
  box-shadow: 0 16px 34px rgba(190, 24, 93, 0.18);
}

.temp-mail-workbench {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.temp-mail-card--featured {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.88));
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.14);
}

.temp-mail-card--chitu .temp-mail-card-head strong {
  color: #c2410c;
}

.temp-mail-steps {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.temp-mail-steps code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 13px;
}

.temp-mail-otp--code {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.tool-field .pwd-wrap {
  position: relative;
  display: block;
}

.tool-field .pwd-wrap .tool-input[type="password"],
.tool-field .pwd-wrap .tool-input.is-revealed {
  padding-right: 42px;
  width: 100%;
}

.tool-field .pwd-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.tool-field .pwd-eye:hover {
  color: var(--accent, #db2777);
}

.tool-field .pwd-eye svg {
  width: 18px;
  height: 18px;
}

.tool-field .pwd-eye .icon-on {
  display: block;
}

.tool-field .pwd-eye .icon-off {
  display: none;
}

.tool-field .pwd-eye.is-on .icon-on {
  display: none;
}

.tool-field .pwd-eye.is-on .icon-off {
  display: block;
}

.temp-mail-url-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.temp-mail-url-btn {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #9d174d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  word-break: break-all;
  box-shadow: 0 10px 28px rgba(244, 114, 182, 0.08);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.temp-mail-url-btn:hover {
  border-color: rgba(219, 39, 119, 0.35);
  background: rgba(255, 241, 247, 0.95);
  transform: translateY(-1px);
}

.temp-mail-links-compact .temp-mail-card-head {
  margin-bottom: 10px;
}

.temp-mail-status {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 114, 182, 0.16);
  border-radius: 18px;
  color: #9f1239;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 241, 247, 0.72));
  font-size: 13px;
  font-weight: 800;
}

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

.temp-mail-card {
  padding: 20px;
  border: 1px solid rgba(244, 114, 182, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 60px rgba(244, 114, 182, 0.12);
}

.temp-mail-card--primary {
  grid-row: span 2;
}

.temp-mail-card-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.temp-mail-card-head strong {
  font-size: 18px;
  color: var(--ink);
}

.temp-mail-card-head span,
.temp-mail-note,
.temp-mail-check,
.temp-mail-card .muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.temp-mail-form {
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr);
}

.temp-mail-actions {
  margin-top: 12px;
}

.temp-mail-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  font-weight: 800;
}

.temp-mail-note {
  margin: 12px 0 0;
}

.temp-mail-list,
.temp-mail-detail,
.temp-mail-otp {
  margin-top: 12px;
}

.temp-mail-list {
  overflow-x: auto;
  border-radius: 16px;
}

.temp-mail-list table {
  min-width: 520px;
}

.temp-mail-detail pre,
.temp-mail-card pre {
  border: 1px solid rgba(244, 114, 182, 0.14);
  background: rgba(255, 247, 250, 0.72) !important;
}

.temp-mail-frame {
  width: 100%;
  min-height: 460px;
  margin-top: 12px;
  border: 1px solid rgba(244, 114, 182, 0.16);
  border-radius: 18px;
  background: #fff;
}

.temp-mail-field-gap {
  margin-top: 16px;
}

.temp-mail-links {
  margin-top: 18px;
}

.temp-mail-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.temp-mail-link-grid a {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 114, 182, 0.14);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.76);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.temp-mail-link-grid a:hover {
  transform: translateY(-1px);
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.12);
}

.temp-mail-link-grid strong {
  color: #be185d;
  font-size: 14px;
}

.temp-mail-link-grid span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 920px) {
  .temp-mail-grid,
  .temp-mail-link-grid {
    grid-template-columns: 1fr;
  }

  .temp-mail-card--primary {
    grid-row: auto;
  }

  .temp-mail-form {
    grid-template-columns: 1fr;
  }
}

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

.chat-window {
  min-height: 520px;
  padding: 24px;
  background: linear-gradient(180deg, #fff, #fffbf7);
}

.chat-window[hidden] {
  display: none !important;
}

.message {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.message-body {
  display: grid;
  gap: 7px;
  max-width: min(760px, 82%);
}

.message.user {
  justify-content: flex-end;
}

.message.user .message-body {
  justify-items: end;
}

.avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #16a34a);
  font-weight: 900;
}

.message.user .avatar {
  order: 2;
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.message .bubble {
  margin: 0;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.86;
}

.message-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: .74;
  transform: translateY(-2px);
  transition: opacity .16s ease, transform .16s ease;
}

.message:hover .message-tools,
.message:focus-within .message-tools {
  opacity: 1;
  transform: translateY(0);
}

.message-tool {
  border: 1px solid rgba(225, 29, 138, 0.14);
  border-radius: 999px;
  padding: 4px 9px;
  color: #9d174d;
  background: rgba(255,255,255,0.86);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17,24,39,0.05);
}

.message-tool:hover {
  border-color: rgba(225, 29, 138, 0.32);
  background: #fff1f7;
}

.message-edit-dialog[hidden] {
  display: none !important;
}

html.message-edit-open,
body.message-edit-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.message-edit-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  overscroll-behavior: none;
}

.message-edit-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 22, 0.36);
  backdrop-filter: blur(4px);
  touch-action: none;
}

.message-edit-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 32px));
  border: 1px solid rgba(225, 29, 138, 0.16);
  border-radius: 28px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,250,0.96));
  box-shadow: 0 28px 90px rgba(88, 28, 55, 0.28);
  overscroll-behavior: contain;
  contain: layout paint;
}

.message-edit-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 18px;
}

.message-edit-dialog__x {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #9d174d;
  background: #fff1f7;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.message-edit-dialog textarea {
  width: 100%;
  min-height: 190px;
  max-height: 44vh;
  resize: vertical;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border: 1px solid rgba(225, 29, 138, 0.18);
  border-radius: 20px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  font: inherit;
  line-height: 1.75;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.message-edit-dialog textarea:focus {
  border-color: rgba(225, 29, 138, 0.42);
  box-shadow: 0 0 0 4px rgba(225, 29, 138, 0.1);
}

.message-edit-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.message-edit-dialog__btn {
  min-width: 88px;
  border: 1px solid rgba(225, 29, 138, 0.16);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}

.message-edit-dialog__btn:active,
.message-edit-dialog__x:active {
  transform: translateY(2px) scale(0.98);
}

.message-edit-dialog__btn.soft {
  color: #9d174d;
  background: #fff;
}

.message-edit-dialog__btn.primary {
  border-color: rgba(20, 184, 166, 0.35);
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #22d3ee);
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.2);
}

.message.user .bubble {
  border-top-right-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.preview-ai-page .message .bubble {
  padding: 18px 20px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.preview-ai-page .message.ai .bubble {
  color: #172033;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 248, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.08), transparent 34%);
}

.preview-ai-page .message.user .bubble {
  line-height: 1.78;
}

.composer {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.composer textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  font: inherit;
  outline: none;
}

.composer textarea:focus {
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.preview-ai-page .ai-layout {
  min-height: calc(100vh - 70px);
  align-items: start;
}

.preview-ai-page .chat-panel {
  height: calc(100vh - 118px);
  min-height: 720px;
  max-height: 920px;
  display: flex;
  flex-direction: column;
}

.preview-ai-page .chat-head {
  flex: 0 0 auto;
}

.preview-ai-page .chat-window {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.preview-ai-page .composer {
  flex: 0 0 auto;
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.composer-tools[hidden],
.composer-image-preview[hidden] {
  display: none !important;
}

.composer-image-btn {
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  color: #be185d;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 247, 0.9));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.1);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.composer-image-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.16);
}

.composer-image-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.composer-image-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  max-width: 240px;
  padding: 7px 32px 7px 7px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.composer-image-item img {
  width: 56px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.composer-image-item span {
  overflow: hidden;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-image-item button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  color: #be185d;
  background: rgba(244, 114, 182, 0.14);
  cursor: pointer;
  font-weight: 900;
}

.message-image-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.message.user .message-image-strip {
  justify-content: flex-end;
}

.message-image-thumb {
  display: grid;
  gap: 5px;
  width: 118px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  color: #fff;
  background: rgba(225, 29, 138, 0.18);
  cursor: zoom-in;
}

.message-image-thumb img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
}

.message-image-thumb span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(14px);
}

.chat-image-preview-modal[hidden] {
  display: none;
}

.chat-image-preview-modal img {
  max-width: min(1120px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.chat-image-preview-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.preview-ai-page .composer textarea {
  min-height: 104px;
  max-height: 140px;
  resize: none;
}

.form-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
}

.form-card textarea {
  min-height: 132px;
  resize: vertical;
}

.result-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid var(--line);
}

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

.process-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
}

.process-list b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

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

.price-grid--single {
  width: min(720px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}

.price-card.is-featured {
  border-color: rgba(236, 72, 153, 0.32);
  background: linear-gradient(180deg, #fff, #fff1f7);
}

.price-card h3 {
  margin: 0 0 6px;
}

.member-benefits {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.member-benefits li {
  position: relative;
  padding-left: 18px;
}

.member-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: 900;
}

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

.price-card .btn-pick-tier {
  margin-top: 16px;
  width: 100%;
}

/* 可点击选择的套餐卡片 */
.price-grid--triple .price-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.price-grid--triple .price-card:focus-visible {
  outline: 3px solid rgba(236, 72, 153, 0.45);
  outline-offset: 2px;
}

.price-card__for {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 800;
  color: #ec4899;
}

.price-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ec4899;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.price-card.is-selected {
  border-color: #ec4899;
  box-shadow: 0 0 0 2px #ec4899, 0 18px 44px rgba(236, 72, 153, 0.22);
  transform: translateY(-2px);
}

.price-card.is-selected .price-card__check {
  display: inline-block;
}

.price-card.is-selected .btn-pick-tier {
  background: #ec4899;
  border-color: #ec4899;
  color: #fff;
}

/* 表单内「已选套餐」摘要条 */
.member-selected-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(236, 72, 153, 0.32);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fff1f7);
}

.member-selected-tier__main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.member-selected-tier__eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: #9ca3af;
}

.member-selected-tier__main strong {
  font-size: 17px;
  font-weight: 900;
  color: #be185d;
}

.member-selected-tier__price {
  font-size: 13px;
  font-weight: 800;
  color: #4b5563;
}

.member-change-tier {
  flex: none;
  padding: 7px 12px;
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 999px;
  background: #fff;
  color: #be185d;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.member-change-tier:hover {
  background: #fff1f7;
}

.member-redeem-hint {
  margin: 0;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fafafa;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.member-redeem-hint a {
  color: #be185d;
  font-weight: 800;
  text-decoration: underline;
}

.tier-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #ec4899;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.member-tier-picker {
  display: grid;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafafa;
}

.member-tier-picker legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #4b5563;
}

.member-tier-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
}

.member-upgrade-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(236, 72, 153, 0.32);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fff1f7);
}

.member-upgrade-card strong {
  font-size: 14px;
  color: #be185d;
}

.member-upgrade-card span {
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
}

.member-month-card {
  display: grid;
  gap: 12px;
}

.member-month-picker {
  display: grid;
  gap: 6px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.member-month-picker input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  font: inherit;
  font-weight: 900;
  outline: none;
}

.member-month-picker input:focus {
  border-color: rgba(236,72,153,0.38);
  box-shadow: 0 0 0 4px rgba(236,72,153,0.1);
}

.member-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(17,24,39,0.08);
}

.member-total span {
  color: var(--muted);
  font-weight: 800;
}

.member-total strong {
  font-size: 28px;
  line-height: 1;
}

.price {
  margin: 10px 0;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.price span {
  font-size: 15px;
  color: var(--muted);
}

.check-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #4b5563;
  font-size: 14px;
}

.check-list li {
  margin: 7px 0;
}

.check-list li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--green);
  font-weight: 900;
}

.translate-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 38px;
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
}

.translate-pane {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.72);
}

.translate-pane + .translate-pane {
  border-left: 1px solid var(--line);
}

.translate-pane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,247,237,0.86), rgba(255,241,247,0.72));
}

.translate-lang {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  outline: none;
}

.translate-pane textarea,
.translate-output {
  flex: 1;
  width: 100%;
  border: 0;
  padding: 28px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 20px;
  line-height: 1.75;
  outline: none;
  resize: none;
}

.translate-output {
  color: #233044;
  white-space: pre-wrap;
}

.translate-pane__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.translate-tone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.translate-tone {
  border: 1px solid rgba(225, 29, 138, 0.16);
  border-radius: 999px;
  padding: 7px 11px;
  color: #9d174d;
  background: linear-gradient(135deg, rgba(225, 29, 138, 0.09), rgba(255, 106, 26, 0.07));
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.translate-toolbar {
  display: flex;
  justify-content: center;
  margin: -18px 0 20px;
}

.swap-btn {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 42px rgba(225, 29, 138, 0.2);
  font-size: 22px;
  cursor: pointer;
}

.translate-workbench {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(245, 236, 255, 0.78), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 82% 0%, rgba(225, 29, 138, 0.12), transparent 30%);
  box-shadow: var(--shadow);
}

.translate-topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(237, 226, 255, 0.55);
}

.translate-select-pill {
  min-width: 180px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 250, 236, 0.9);
  font: inherit;
  font-weight: 900;
  outline: none;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.translate-swap-inline {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

.translate-dual-stack {
  display: grid;
  gap: 0;
}

.translate-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 330px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

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

.translate-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  background: rgba(255, 255, 255, 0.68);
}

.translate-cell + .translate-cell {
  border-left: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(241, 232, 255, 0.45);
}

.translate-cell-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  color: #445066;
  font-size: 14px;
  font-weight: 900;
}

.translate-cell textarea,
.translate-cell-output {
  flex: 1;
  width: 100%;
  border: 0;
  padding: 18px 22px 76px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 18px;
  line-height: 1.8;
  outline: none;
  resize: none;
}

.translate-cell-output {
  color: #273247;
  white-space: pre-wrap;
}

.translate-cell-tools {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 250, 236, 0.92);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
}

.translate-mini-btn {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255,255,255,0.78);
  color: #6b4b16;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.translate-mini-btn.is-primary {
  color: #fff;
  background: #1f2937;
}

.translate-copy-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-height: 38px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 250, 236, 0.95);
  color: #6b4b16;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
}

.translate-hint {
  color: #9aa3b2;
  font-size: 13px;
  font-weight: 700;
}

.translate-popover {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 30;
  width: min(420px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 80px));
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(17, 24, 39, 0.22);
  backdrop-filter: blur(20px);
}

.translate-popover__head {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.translate-popover__head input,
.translate-phrase-add textarea {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

.translate-popover__head button {
  width: 36px;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
}

.translate-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
}

.translate-emoji-grid button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: #fff7ed;
  font-size: 20px;
  cursor: pointer;
}

.translate-phrase-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding: 12px;
}

.translate-phrase-list button {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fffaf4;
  text-align: left;
  white-space: pre-line;
  cursor: pointer;
}

.translate-phrase-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.translate-phrase-add textarea {
  min-height: 58px;
  resize: vertical;
}

.translate-popover__foot {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
}

.full-feature-frame {
  position: relative;
  overflow: hidden;
  height: min(760px, calc(100vh - 190px));
  min-height: 610px;
  padding: clamp(10px, 1.6vw, 18px);
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,244,250,0.56)),
    radial-gradient(circle at 88% 6%, rgba(225, 29, 138, 0.13), transparent 34%),
    radial-gradient(circle at 12% 100%, rgba(255, 106, 26, 0.11), transparent 30%);
  box-shadow: 0 36px 100px rgba(76, 48, 30, 0.16);
  backdrop-filter: blur(18px);
}

.full-feature-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 30px;
  display: block;
  background: transparent;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.preview-translate-page .full-feature-frame {
  height: calc(100vh - 58px);
  min-height: 0;
  max-height: none;
  padding: 4px;
  border-radius: 26px;
}

.preview-translate-page .full-feature-frame iframe {
  border-radius: 20px;
}

.full-feature-frame.is-ready iframe {
  opacity: 1;
}

.frame-loading {
  position: absolute;
  inset: clamp(10px, 1.6vw, 18px);
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 30px;
  color: #9d174d;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,244,250,0.82)),
    radial-gradient(circle at 88% 8%, rgba(225, 29, 138, 0.12), transparent 34%);
  font-weight: 900;
}

.frame-loading[hidden] {
  display: none;
}

.footer {
  padding: 34px 0 54px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (min-width: 901px) {
  .nav-links {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .nav-links a {
    justify-self: stretch;
    width: 100%;
    text-align: center;
    padding-inline: 6px;
  }
}

@media (max-width: 900px) {
  .preview-nav__inner {
    grid-template-columns: 180px minmax(0, 1fr) 110px;
    gap: 12px;
  }

  .brand {
    width: 180px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 8px 9px;
  }

  .hero-grid,
  .value-panel,
  .ai-layout,
  .translate-shell,
  .tool-hero-grid,
  .tool-form-grid {
    grid-template-columns: 1fr;
  }

  .translate-pane + .translate-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .translate-cell + .translate-cell {
    border-left: 0;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
  }

  .card-grid,
  .tool-board,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .utility-menu__panel {
    width: min(280px, calc(100vw - 32px));
  }
}

@media (max-width: 640px) {
  .second-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-nav__inner,
  .section-head {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    width: auto;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .preview-nav-auth {
    width: 100%;
    justify-content: flex-start;
  }

  .preview-nav-auth__btn {
    flex: 1 1 auto;
  }

  .card-grid,
  .tool-board,
  .metric-row,
  .price-grid,
  .price-grid--single {
    grid-template-columns: 1fr;
  }

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

  .utility-menu {
    width: 100%;
  }

  .utility-menu summary {
    width: 100%;
  }

  .utility-menu__panel {
    left: 0;
    right: auto;
    flex-direction: column;
  }

  .tool-result-grid,
  .tool-list-item,
  .rpa-download-panel,
  .client-download-panel {
    grid-template-columns: 1fr;
  }

  .translate-pane {
    min-height: 380px;
  }

  .translate-pane textarea,
  .translate-output {
    font-size: 17px;
    padding: 20px;
  }

  .translate-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .translate-select-pill {
    width: 100%;
  }
}

/* Premium visual pass */
:root {
  --bg: #fff8f0;
  --paper: rgba(255, 255, 255, 0.78);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --ink: #111827;
  --muted: #64748b;
  --line: rgba(17, 24, 39, 0.09);
  --brand: #e11d8a;
  --brand-2: #ff6a1a;
  --gold: #f8c77e;
  --shadow: 0 34px 90px rgba(72, 45, 26, 0.14);
  --shadow-soft: 0 18px 54px rgba(17, 24, 39, 0.08);
  --radius: 32px;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(225, 29, 138, 0.18), transparent 32%),
    radial-gradient(circle at 82% 4%, rgba(255, 106, 26, 0.17), transparent 34%),
    radial-gradient(circle at 50% 48%, rgba(248, 199, 126, 0.14), transparent 42%),
    linear-gradient(180deg, #fff8f2 0%, #fffaf5 42%, #fff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 72%);
}

.preview-shell {
  width: min(1240px, calc(100% - 40px));
}

.preview-nav {
  background: rgba(255, 248, 242, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 42px rgba(90, 59, 36, 0.06);
}

.preview-nav__inner {
  min-height: 78px;
}

.brand {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 17px;
  box-shadow: 0 16px 34px rgba(225, 29, 138, 0.3), inset 0 1px 0 rgba(255,255,255,0.35);
}

.nav-links {
  gap: 6px;
  font-weight: 800;
}

.nav-links a {
  padding: 9px 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-links .is-active {
  background: linear-gradient(135deg, rgba(225, 29, 138, 0.13), rgba(255, 106, 26, 0.11));
}

/* 中等宽度（约 901–1200px）顶栏防挤压：收紧品牌/导航/功能菜单的占位与间距，
   让 6 个导航在一行内有更多空间。放在第二套主题样式之后以确保生效。 */
@media (min-width: 901px) and (max-width: 1200px) {
  .preview-nav__inner {
    grid-template-columns: 150px minmax(0, 1fr) auto 92px;
    gap: 10px;
  }

  .brand {
    width: 150px;
    gap: 8px;
    font-size: 14px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .nav-links {
    gap: 4px;
    font-size: 13px;
    max-width: none;
  }

  .nav-links a {
    padding: 7px 8px;
  }

  .utility-menu summary {
    min-width: 0;
    padding: 8px 12px;
    font-size: 12px;
  }

  .preview-nav-auth__btn {
    padding: 7px 12px;
    font-size: 12px;
  }
}

.hero {
  position: relative;
  padding: 92px 0 76px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: min(860px, 80vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(225, 29, 138, 0.24), rgba(255, 106, 26, 0.22), transparent);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  gap: clamp(34px, 6vw, 72px);
}

.eyebrow {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(225, 29, 138, 0.14);
  box-shadow: 0 10px 28px rgba(225, 29, 138, 0.07);
  color: #b91c67;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 850px;
  margin: 22px 0 22px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.96;
}

.hero--compact {
  padding: 54px 0 26px;
}

.hero--compact::after {
  bottom: 0;
}

.hero--compact h1 {
  max-width: 760px;
  margin: 16px 0 16px;
  font-size: clamp(38px, 5.2vw, 68px);
}

.hero--compact .lead {
  max-width: 720px;
  font-size: clamp(16px, 1.45vw, 19px);
}

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

.preview-translate-page .hero--compact {
  padding: 8px 0 0;
}

.preview-translate-page .hero--compact::after {
  display: none;
}

.preview-translate-page .hero--compact h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(20px, 2.35vw, 30px);
  line-height: 1;
}

.preview-translate-page .hero--compact .lead {
  display: none;
}

.preview-translate-page .hero--compact .eyebrow {
  display: none;
}

.preview-translate-page .section--tight {
  padding-top: 0;
  padding-bottom: 0;
}

.hero h1 span,
.section-title span {
  color: transparent;
  background: linear-gradient(105deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.preview-home-page .hero h1 {
  max-width: 820px;
  font-size: clamp(48px, 5.45vw, 72px);
  line-height: 1.02;
}

.lead {
  max-width: 760px;
  color: #455166;
  font-size: clamp(18px, 1.8vw, 22px);
}

.hero-actions,
.section-actions,
.chat-actions {
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 48px;
  padding: 0 21px;
  border-color: rgba(17, 24, 39, 0.08);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.12);
}

.btn-primary,
.btn-green {
  box-shadow: 0 18px 42px rgba(225, 29, 138, 0.22);
}

.btn-primary:hover,
.btn-green:hover {
  filter: saturate(1.08) brightness(1.02);
}

.btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.btn-green,
.tg-support-btn {
  color: #fff;
  border-color: rgba(20, 184, 166, 0.32);
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  box-shadow: 0 18px 42px rgba(20, 184, 166, 0.22);
}

.tg-support-btn {
  font-weight: 900;
  letter-spacing: 0.01em;
}

.hero-card,
.side-panel,
.chat-panel,
.form-card,
.value-panel {
  border: 1px solid rgba(255,255,255,0.78);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.68)),
    radial-gradient(circle at 0% 0%, rgba(225, 29, 138, 0.08), transparent 32%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  border-radius: 40px;
}

.bubble {
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.1);
}

.bubble.user,
.message.user .bubble {
  background: linear-gradient(135deg, #e11d8a 0%, #ff6a1a 100%);
}

.metric {
  padding: 18px;
  border-color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.72);
}

.metric strong {
  font-size: 22px;
}

.section {
  padding: 68px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
}

.section-sub {
  max-width: 850px;
  font-size: 17px;
}

.card,
.tool-card,
.price-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before,
.tool-card::before,
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--gold));
  opacity: 0;
  transition: opacity 0.22s ease;
}

a.card:hover,
.tool-card:hover,
.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 138, 0.18);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.12);
}

a.card:hover::before,
.tool-card:hover::before,
.price-card:hover::before {
  opacity: 1;
}

.card {
  min-height: 210px;
  padding: 28px;
}

.card h3,
.tool-card strong {
  font-size: 22px;
}

.tag,
.tool-pill {
  color: #9d174d;
  background: linear-gradient(135deg, rgba(225, 29, 138, 0.11), rgba(255, 106, 26, 0.09));
}

.value-panel {
  padding: clamp(26px, 4vw, 46px);
  border-radius: 42px;
}

.compare {
  border-color: rgba(255,255,255,0.8);
  box-shadow: var(--shadow-soft);
}

.compare-head > div {
  background: linear-gradient(135deg, #fff7ed, #fff1f7);
}

.tool-board {
  gap: 16px;
}

.tool-card {
  min-height: 146px;
  padding: 23px;
  border-radius: 26px;
}

.ai-layout {
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0 72px;
}

.preview-ai-page .ai-layout {
  padding-top: 32px;
}

.side-panel {
  position: sticky;
  top: 104px;
  padding: 20px;
  border-radius: 34px;
}

.mode-card {
  min-height: 88px;
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.mode-card.active {
  border-color: rgba(225, 29, 138, 0.22);
  background: linear-gradient(135deg, #fff1f7, #fff7ed);
}

.chat-panel {
  border-radius: 36px;
}

.chat-head {
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255,247,237,0.9), rgba(255,241,247,0.9));
}

.chat-window {
  min-height: 560px;
  padding: 30px;
}

.preview-ai-page .chat-window {
  min-height: 0;
}

.composer {
  padding: 20px;
}

.composer textarea,
.form-card input,
.form-card textarea,
.form-card select {
  border-color: rgba(17, 24, 39, 0.08);
  background: rgba(255,255,255,0.84);
}

.form-card {
  padding: 26px;
  border-radius: 34px;
}

.result-box {
  padding: 18px;
  border-color: rgba(17, 24, 39, 0.08);
  background: linear-gradient(135deg, #f8fafc, #fff7ed);
}

.result-box[data-mode="ok"] {
  border-color: rgba(20, 184, 166, 0.22);
  background: linear-gradient(135deg, #f0fdfa, #fff);
  color: #0f766e;
}

.result-box[data-mode="error"] {
  border-color: rgba(225, 29, 72, 0.2);
  background: linear-gradient(135deg, #fff1f2, #fff);
  color: #be123c;
}

#member-result-status {
  margin-top: 8px;
  line-height: 1.7;
}

.member-account-state {
  padding: 13px 15px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.member-account-state[data-mode="ok"] {
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.2);
  background: rgba(240, 253, 250, 0.86);
}

.member-account-state[data-mode="error"] {
  color: #be123c;
  border-color: rgba(225, 29, 72, 0.18);
  background: rgba(255, 241, 242, 0.8);
}

.member-trial-state {
  padding: 13px 15px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 18px;
  color: #0f766e;
  background: rgba(240,253,250,0.88);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.7;
}

.member-trial-state[hidden] {
  display: none !important;
}

.member-trial-state strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
}

.member-trial-state[data-mode="member"] {
  color: #7c2d12;
  border-color: rgba(251, 146, 60, 0.24);
  background: rgba(255, 247, 237, 0.9);
}

.member-trial-state[data-mode="error"] {
  color: #be123c;
  border-color: rgba(225, 29, 72, 0.18);
  background: rgba(255, 241, 242, 0.84);
}

.member-redeem-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(250, 245, 255, 0.92), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.14), transparent 34%);
}

.member-redeem-card strong {
  display: block;
  color: #4c1d95;
  font-size: 15px;
  font-weight: 900;
}

.member-redeem-card span {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

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

.member-redeem-row input {
  min-height: 46px;
  border: 1px solid rgba(76, 29, 149, 0.12);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  outline: none;
}

.member-redeem-row input:focus {
  border-color: rgba(124, 58, 237, 0.34);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.member-redeem-row .btn {
  min-height: 46px;
  padding-inline: 18px;
}

.member-redeem-card p {
  min-height: 18px;
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.member-redeem-card p[data-mode="ok"] {
  color: #0f766e;
}

.member-redeem-card p[data-mode="error"] {
  color: #be123c;
}

.member-payment-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,253,250,0.82)),
    radial-gradient(circle at 100% 0%, rgba(20,184,166,0.12), transparent 32%);
  box-shadow: 0 22px 55px rgba(15, 118, 110, 0.1);
}

.member-payment-card[hidden] {
  display: none !important;
}

.member-payment-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
}

.member-payment-row span,
.member-pay-address,
.member-tx-box {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.member-payment-row strong {
  color: var(--ink);
  word-break: break-all;
}

.member-pay-address,
.member-tx-box {
  display: grid;
  gap: 8px;
}

.member-pay-address textarea {
  min-height: 78px;
  resize: none;
  word-break: break-all;
}

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

.member-payment-actions .btn {
  flex: 1 1 150px;
}

.member-payment-note {
  border-radius: 16px;
  padding: 12px 14px;
  color: #0f766e;
  background: rgba(240,253,250,0.9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.member-payment-row--amount {
  background: linear-gradient(135deg, rgba(254,243,199,0.95), rgba(254,249,235,0.92));
  border: 1px solid rgba(245,158,11,0.45);
  align-items: center;
}

.member-payment-row--amount strong {
  font-size: 20px;
  font-weight: 900;
  color: #b45309;
  letter-spacing: 0.2px;
}

.member-amount-warning {
  border-radius: 16px;
  padding: 12px 14px;
  color: #9a3412;
  background: rgba(255,237,213,0.92);
  border: 1px solid rgba(234,88,12,0.4);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.member-amount-warning strong {
  color: #b91c1c;
  font-weight: 900;
}

.btn-amount-copy {
  border-color: rgba(234,88,12,0.55);
  color: #b45309;
  font-weight: 900;
}

.process-list {
  gap: 14px;
}

.process-list li {
  padding: 18px;
  border-color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.74);
}

.price-grid {
  gap: 18px;
}

.price-card {
  padding: 28px;
  border-radius: 30px;
}

.price-card.is-featured {
  transform: translateY(-8px);
  border-color: rgba(225, 29, 138, 0.25);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,241,247,0.92)),
    radial-gradient(circle at 100% 0%, rgba(255,106,26,0.14), transparent 36%);
}

.price {
  font-size: 44px;
}

.check-list {
  font-size: 15px;
}

.cta-band {
  margin: 38px auto 0;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(17,24,39,0.94), rgba(77,35,74,0.92)),
    radial-gradient(circle at 85% 0%, rgba(255,106,26,0.28), transparent 34%);
  color: #fff;
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.22);
}

.cta-band .section-title,
.cta-band .section-sub {
  color: #fff;
}

.cta-band .section-sub {
  opacity: 0.82;
}

.cta-band .btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}

.cta-band .btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.footer {
  padding: 44px 0 68px;
}

.translate-workbench {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,247,241,0.72)),
    radial-gradient(circle at 15% 0%, rgba(255,95,133,0.15), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(27,194,214,0.16), transparent 32%);
  box-shadow: 0 34px 92px rgba(143, 82, 74, 0.16);
}

.translate-workbench__bar,
.translate-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.translate-workbench select {
  height: 42px;
  min-width: 150px;
  border: 1px solid rgba(219, 39, 119, 0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.86);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
}

.translate-swap {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

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

.translate-dual--reverse {
  margin-top: 16px;
}

.translate-pane {
  position: relative;
  height: 360px;
  min-height: 360px;
  max-height: 360px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  background: rgba(255,255,255,0.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 18px 52px rgba(143,82,74,0.08);
  overflow: hidden;
}

.translate-pane.is-picker-host {
  z-index: 4;
  overflow: visible;
}

.translate-pane__tools button.is-picker-open {
  border-color: rgba(20, 184, 166, 0.45);
  color: #0f766e;
  background: #ecfdf5;
}

.translate-pane__head {
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(226, 173, 157, 0.32);
  color: var(--ink);
  font-weight: 900;
}

.translate-pane__head button {
  min-height: 30px;
  border: 1px solid rgba(225, 29, 138, 0.16);
  border-radius: 999px;
  padding: 5px 11px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,241,247,0.9));
  color: #c2186a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(225, 29, 138, 0.08), inset 0 1px 0 rgba(255,255,255,0.92);
  transition: transform .1s ease, box-shadow .1s ease, background .16s ease, border-color .16s ease;
  user-select: none;
}

.translate-pane__head button:hover {
  border-color: rgba(225, 29, 138, 0.32);
  background: linear-gradient(180deg, #fff, #ffe8f2);
  box-shadow: 0 12px 24px rgba(225, 29, 138, 0.12), inset 0 1px 0 rgba(255,255,255,0.95);
}

.translate-pane__head button:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 3px 8px rgba(225, 29, 138, 0.12), inset 0 2px 5px rgba(157, 23, 77, 0.12);
}

.translate-pane__head button:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.translate-pane__tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.translate-pane__tools button {
  white-space: nowrap;
}

.translate-run-mini {
  border-color: rgba(20, 184, 166, 0.42) !important;
  color: #fff !important;
  background: linear-gradient(135deg, #14b8a6, #22d3ee) !important;
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.18), inset 0 1px 0 rgba(255,255,255,0.34) !important;
}

.translate-run-mini:hover {
  background: linear-gradient(135deg, #0fbaa7, #06b6d4) !important;
  box-shadow: 0 15px 30px rgba(20, 184, 166, 0.24), inset 0 1px 0 rgba(255,255,255,0.36) !important;
}

.translate-picker {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(320px, 70vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(219, 39, 119, 0.16);
  border-radius: 18px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 20px 55px rgba(143, 82, 74, 0.18);
}

.translate-picker--floating {
  position: fixed;
  right: auto;
  z-index: 10050;
}

.translate-picker--anchored {
  position: absolute;
  top: 46px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: auto;
  max-height: none;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.translate-picker--anchored.translate-picker--phrase {
  display: block;
  overflow: auto;
  padding: 14px;
}

.translate-picker:not(.translate-picker--emoji) button {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(236,72,153,0.1);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed, #fff1f7);
  color: #33272a;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.translate-picker:not(.translate-picker--emoji) button:hover {
  border-color: rgba(236,72,153,0.28);
  background: #fff;
}

.translate-picker--floating.translate-picker--emoji.translate-picker--mac {
  position: fixed;
  right: auto;
  z-index: 10050;
  width: 380px;
  height: 318px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    0 16px 48px rgba(15, 23, 42, 0.16),
    0 4px 12px rgba(15, 23, 42, 0.08);
  animation: translate-emoji-pop 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  transform-origin: top left;
}

.translate-picker--inline.translate-picker--emoji {
  display: none;
}

.translate-emoji-mac__header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr minmax(96px, 132px);
  align-items: center;
  gap: 8px;
  padding: 8px 10px 6px;
}

.translate-emoji-mac__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(142, 142, 147, 0.16);
  color: #636366;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.translate-emoji-mac__close:hover {
  background: rgba(142, 142, 147, 0.24);
}

.translate-emoji-mac__types {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.translate-emoji-mac__type-tab {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8e8e93;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.translate-emoji-mac__type-tab:hover {
  color: #636366;
}

.translate-emoji-mac__type-tab.is-active {
  background: #007aff;
  color: #fff;
}

.translate-emoji-mac__search {
  position: relative;
  display: block;
  min-width: 0;
}

.translate-emoji-mac__search::after {
  content: "⌕";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-52%);
  color: #aeaeb2;
  font-size: 14px;
  pointer-events: none;
}

.translate-emoji-mac__search input {
  width: 100%;
  height: 30px;
  padding: 0 28px 0 12px;
  border: 1px solid #d1d1d6;
  border-radius: 999px;
  background: #fff;
  color: #1c1c1e;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.translate-emoji-mac__search input:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14);
}

.translate-emoji-mac__divider {
  flex: 0 0 auto;
  height: 1px;
  margin: 0 10px;
  background: repeating-linear-gradient(
    90deg,
    #d1d1d6 0,
    #d1d1d6 4px,
    transparent 4px,
    transparent 8px
  );
}

.translate-emoji-mac__footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px 8px 8px;
}

.translate-emoji-mac__categories {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.translate-emoji-mac__categories::-webkit-scrollbar {
  display: none;
}

.translate-emoji-mac__category {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8e8e93;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.translate-emoji-mac__category:hover {
  color: #636366;
  background: rgba(142, 142, 147, 0.08);
}

.translate-emoji-mac__category.is-active {
  color: #007aff;
  background: transparent;
}

.translate-emoji-mac__more {
  flex: 0 0 auto;
  width: 18px;
  color: #c7c7cc;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  user-select: none;
}

.translate-emoji-mac__empty {
  margin: 0;
  padding: 28px 12px;
  color: #8e8e93;
  font-size: 13px;
  text-align: center;
}

.translate-picker--mac .translate-emoji-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 6px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #d1d1d6 transparent;
}

.translate-picker--mac .translate-emoji-body::-webkit-scrollbar {
  width: 8px;
}

.translate-picker--mac .translate-emoji-body::-webkit-scrollbar-thumb {
  background: #d1d1d6;
  border-radius: 999px;
  border: 2px solid #fff;
}

.translate-picker--mac .translate-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
}

.translate-picker--mac .translate-emoji-cell,
.translate-picker--mac .translate-emoji-grid button {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.translate-picker--mac .translate-emoji-cell:hover,
.translate-picker--mac .translate-emoji-grid button:hover {
  background: #e5e5ea;
}

.translate-picker--mac .translate-emoji-cell:active,
.translate-picker--mac .translate-emoji-grid button:active {
  background: #d1d1d6;
  transform: scale(0.94);
}

.translate-emoji-mac__text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.translate-emoji-mac__text-cell {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1c1c1e;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.translate-emoji-mac__text-cell:hover {
  background: #e5e5ea;
}

.translate-emoji-mac__text-cell:active {
  background: #d1d1d6;
}

.translate-picker--emoji {
  width: 352px;
  max-height: min(320px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow:
    0 0 0 0.5px rgba(15, 23, 42, 0.06),
    0 10px 36px rgba(15, 23, 42, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.06);
  animation: translate-emoji-pop 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  transform-origin: top left;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .translate-picker--emoji {
    background: #fff;
  }
}

@keyframes translate-emoji-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.translate-picker--emoji button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-weight: 400;
  text-align: center;
}

.translate-emoji-head {
  display: none;
}

.translate-emoji-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 8px 10px 10px;
  border-top: 0.5px solid rgba(15, 23, 42, 0.08);
  border-bottom: none;
  background: rgba(248, 248, 250, 0.72);
  scrollbar-width: none;
  justify-content: space-around;
}

.translate-picker--inline.translate-picker--emoji .translate-emoji-tabs {
  border-top: 0;
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.06);
  justify-content: flex-start;
}

.translate-emoji-tabs::-webkit-scrollbar {
  display: none;
}

.translate-emoji-tab,
.translate-emoji-tabs button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.translate-emoji-tab:hover,
.translate-emoji-tabs button:hover {
  background: rgba(15, 23, 42, 0.05);
}

.translate-emoji-tab.is-active,
.translate-emoji-tabs button.is-active {
  background: rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

.translate-emoji-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 6px 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.translate-emoji-body::-webkit-scrollbar {
  display: none;
}

.translate-emoji-section {
  display: none;
}

.translate-emoji-section.is-active {
  display: block;
}

.translate-emoji-title {
  display: none;
}

.translate-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.translate-emoji-cell,
.translate-picker--emoji .translate-emoji-grid button {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-size: 26px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.translate-emoji-cell:hover,
.translate-picker--emoji .translate-emoji-grid button:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: transparent;
  transform: none;
}

.translate-emoji-cell:active,
.translate-picker--emoji .translate-emoji-grid button:active {
  background: rgba(15, 23, 42, 0.1);
  transform: scale(0.92);
}

.translate-picker--emoji button {
  font-weight: 400;
  text-align: center;
}

@media (max-width: 720px) {
  .translate-picker--floating.translate-picker--emoji.translate-picker--mac {
    width: min(340px, calc(100vw - 24px));
    height: min(300px, calc(100vh - 80px));
  }

  .translate-emoji-mac__header {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "close types"
      "search search";
  }

  .translate-emoji-mac__close {
    grid-area: close;
  }

  .translate-emoji-mac__types {
    grid-area: types;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .translate-emoji-mac__types::-webkit-scrollbar {
    display: none;
  }

  .translate-emoji-mac__search {
    grid-area: search;
  }

  .translate-picker--mac .translate-emoji-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.translate-picker--phrase {
  width: 540px;
  height: 500px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    0 16px 48px rgba(15, 23, 42, 0.16),
    0 4px 12px rgba(15, 23, 42, 0.08);
}

.translate-picker--phrase .translate-phrase-add {
  flex: 0 0 auto;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.translate-picker--phrase .translate-phrase-add textarea {
  min-height: 48px;
  max-height: 64px;
}

.translate-picker--phrase .translate-phrase-add button {
  min-height: 48px;
}

.translate-phrase-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.translate-picker--phrase .translate-phrase-section--preset {
  flex: 0 0 auto;
  min-height: 0;
  max-height: 34%;
}

.translate-picker--phrase .translate-phrase-section--custom {
  flex: 1 1 auto;
  min-height: 0;
}

.translate-picker--phrase .translate-phrase-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.translate-picker--phrase .translate-phrase-section--preset .translate-phrase-list {
  max-height: 120px;
  flex: 0 1 auto;
}

.translate-picker--phrase .translate-phrase-section--custom .translate-phrase-list {
  flex: 1 1 auto;
  min-height: 0;
}

.translate-picker--phrase .translate-phrase-list {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d1d6 transparent;
}

.translate-picker--phrase .translate-phrase-foot {
  flex: 0 0 auto;
  margin-top: 10px;
  margin-bottom: 0;
  padding-top: 8px;
}

.translate-phrase-section + .translate-phrase-section {
  margin-top: 0;
}

.translate-phrase-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(219,39,119,0.1);
}

.translate-phrase-add textarea {
  min-height: 72px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid rgba(236,72,153,0.16);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.9);
  color: #33272a;
  font: inherit;
  outline: none;
}

.translate-phrase-add button {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.translate-phrase-section + .translate-phrase-section {
  margin-top: 0;
}

.translate-phrase-title {
  margin-bottom: 8px;
  color: #7c2d5f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.translate-phrase-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.translate-phrase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(236, 72, 153, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.translate-phrase-row:not(:has(.translate-phrase-actions)) {
  grid-template-columns: minmax(0, 1fr);
}

.translate-phrase-insert {
  min-height: 0;
  padding: 6px 8px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
  font-size: 13px;
  font-weight: 600;
}

.translate-phrase-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.translate-picker--phrase .translate-phrase-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8e8e93;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.translate-picker--phrase .translate-phrase-icon svg {
  width: 16px;
  height: 16px;
}

.translate-picker--phrase .translate-phrase-icon:hover {
  background: rgba(142, 142, 147, 0.12);
  color: #636366;
}

.translate-picker--phrase .translate-phrase-icon--edit:hover {
  color: #007aff;
  background: rgba(0, 122, 255, 0.1);
}

.translate-picker--phrase .translate-phrase-icon--delete:hover {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.1);
}

.translate-phrase-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.translate-phrase-foot {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.translate-pane textarea,
.translate-output {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #33272a;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.74;
  padding: 16px;
  overflow: auto;
}

.translate-output {
  white-space: pre-wrap;
}

.translate-actions {
  margin: 0;
  min-height: 0;
}

.translate-actions--reverse {
  margin-bottom: 0;
}

#translate-status {
  color: var(--muted);
  font-size: 14px;
}

#translate-status[data-mode="ok"] {
  color: #059669;
}

#translate-status[data-mode="error"] {
  color: #dc2626;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 58px;
  }

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

  .side-panel {
    position: static;
  }

  .price-card.is-featured {
    transform: none;
  }

  .translate-dual {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    padding: 44px 0 54px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .section {
    padding: 48px 0;
  }

  .translate-workbench__bar,
  .translate-actions {
    flex-wrap: wrap;
  }

  .translate-workbench select {
    min-width: 128px;
  }
}

/* Final AI chat sizing override: keep the shell fixed and scroll only messages. */
.preview-ai-page .ai-layout {
  height: calc(100vh - 70px);
  min-height: 760px;
  overflow: hidden;
}

.preview-ai-page .chat-panel {
  height: calc(100vh - 118px);
  min-height: 720px;
  max-height: calc(100vh - 118px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-ai-page .chat-head,
.preview-ai-page .composer {
  flex: 0 0 auto;
}

.preview-ai-page .chat-window {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.preview-ai-page .message .message-body {
  max-width: min(760px, 84%);
}

.preview-ai-page .message .bubble {
  max-width: 100%;
  line-height: 1.95;
}

.preview-ai-page .message.ai .message-body {
  max-width: min(720px, 84%);
}

.preview-ai-page .message.user .message-body {
  max-width: min(680px, 80%);
}

.preview-ai-page .message.ai .message-body {
  max-width: min(780px, 92%);
}

.preview-ai-page .message.ai .bubble.ai-rich {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  white-space: normal;
  font-size: 15px;
  line-height: 1.82;
  letter-spacing: 0;
}

.preview-ai-page .ai-rich p,
.preview-ai-page .ai-rich ul,
.preview-ai-page .ai-rich ol {
  margin: 0;
}

.preview-ai-page .ai-paragraph {
  color: #243044;
  overflow-wrap: anywhere;
}

.preview-ai-page .ai-heading {
  margin-top: 2px;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.45;
}

.preview-ai-page .ai-script-heading {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #9d174d;
  background: linear-gradient(135deg, rgba(255, 241, 247, 0.95), rgba(240, 253, 250, 0.9));
  box-shadow: inset 0 0 0 1px rgba(225, 29, 138, 0.11);
}

.preview-ai-page .ai-script-heading::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e11d8a, #14b8a6);
}

.preview-ai-page .ai-callout,
.preview-ai-page .ai-quote-block {
  border: 1px solid rgba(225, 29, 138, 0.12);
  border-left: 4px solid rgba(225, 29, 138, 0.5);
  border-radius: 18px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 241, 247, 0.72), rgba(255, 247, 237, 0.62)),
    rgba(255, 255, 255, 0.86);
  color: #3b1f35;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.preview-ai-page .ai-quote-block {
  border-color: rgba(20, 184, 166, 0.16);
  border-left-color: rgba(20, 184, 166, 0.58);
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.7), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.9);
  color: #164e63;
}

.preview-ai-page .ai-paragraph-group {
  display: grid;
  gap: 10px;
}

.preview-ai-page .ai-list {
  display: grid;
  gap: 9px;
  padding-left: 1.25em;
  color: #243044;
}

.preview-ai-page .ai-list li::marker {
  color: #e11d8a;
  font-weight: 900;
}

.preview-ai-page .ai-list-line {
  position: relative;
  padding-left: 18px;
  color: #243044;
}

.preview-ai-page .ai-list-line::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e11d8a, #14b8a6);
}

.preview-ai-page .ai-paragraph:has(.ai-inline-quote) + .ai-paragraph,
.preview-ai-page .ai-paragraph-group .ai-paragraph:has(+ .ai-heading) {
  margin-bottom: 2px;
}

.preview-ai-page .ai-paragraph:first-letter {
  letter-spacing: 0;
}

.preview-ai-page .ai-inline-quote {
  color: #7c2d12;
  font-weight: 850;
}

.preview-ai-page .ai-thinking {
  color: #64748b;
  font-weight: 750;
}

/* Tutorial Center */
.preview-tutorial-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(236, 72, 153, 0.16), transparent 28%),
    radial-gradient(circle at 84% 0%, rgba(20, 184, 166, 0.16), transparent 30%),
    linear-gradient(180deg, #fff7fb 0%, #f5efff 46%, #ffffff 100%);
}

.tutorial-hero {
  padding: 44px 0 22px;
}

.tutorial-hero h1 {
  max-width: 840px;
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.tutorial-hero p {
  max-width: 720px;
  margin: 0;
  color: #64748b;
  font-size: 16px;
  font-weight: 700;
}

.tutorial-hub-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 46px;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tutorial-article-shell {
  grid-template-columns: minmax(210px, 280px) minmax(0, 860px);
}

.tutorial-hub-sidebar,
.tutorial-article-list,
.tutorial-article {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.1), transparent 34%);
  box-shadow: 0 28px 70px rgba(88, 28, 135, 0.1);
  backdrop-filter: blur(18px);
}

.tutorial-hub-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  border-radius: 28px;
  padding: 16px 0;
}

.tutorial-hub-cat-title {
  margin: 0 0 10px;
  padding: 0 18px;
  color: #4c1d95;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.tutorial-cat-list,
.tutorial-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tutorial-cat-list li a,
.tutorial-cat-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 0;
  color: #475569;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.tutorial-cat-list li a:hover,
.tutorial-cat-list button:hover,
.tutorial-cat-list button.active {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
}

.tutorial-cat-list button.active {
  font-weight: 950;
}

.tutorial-cat-list .cnt {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
}

.tutorial-hub-main {
  min-width: 0;
}

.tutorial-article-list {
  border-radius: 32px;
  overflow: hidden;
}

.tutorial-article-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  transition: background 0.18s ease, transform 0.18s ease;
}

.tutorial-article-list li:last-child {
  border-bottom: 0;
}

.tutorial-article-list li:hover {
  background: rgba(255, 255, 255, 0.62);
}

.tutorial-article-list li.hidden {
  display: none;
}

.tutorial-article-list .tut-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(20, 184, 166, 0.12));
}

.tutorial-article-list .tut-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tutorial-article-list .tut-info a,
.tutorial-article-list .tut-title--guest {
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutorial-article-list .tut-info a:hover {
  color: #db2777;
}

.tutorial-article-list .meta {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.tutorial-article-list .tutorial-list-hint {
  align-items: flex-start;
  color: #4c1d95;
  background: linear-gradient(135deg, rgba(250, 245, 255, 0.95), rgba(255, 255, 255, 0.78));
  font-size: 14px;
  font-weight: 850;
  line-height: 1.7;
}

.tutorial-article-list .tutorial-list-hint a {
  color: #db2777;
  font-weight: 950;
}

.tutorial-article {
  border-radius: 34px;
  padding: clamp(24px, 4vw, 44px);
  color: #1f2937;
  min-width: 0;
  overflow: hidden;
}

.tutorial-article img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
  vertical-align: middle;
}

.tutorial-article figure {
  margin: 1.2rem 0;
}

.tutorial-article figcaption {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.tutorial-article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}

.tutorial-article-h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.tutorial-article-lead {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.7;
}

.tutorial-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 900;
}

.tutorial-content h2,
.tutorial-article-h2 {
  margin: 34px 0 14px;
  padding-left: 14px;
  border-left: 4px solid #ec4899;
  color: #111827;
  font-size: 22px;
  line-height: 1.35;
}

.tutorial-content p,
.tutorial-p {
  max-width: 100%;
  color: #334155;
  font-size: 15px;
  line-height: 1.86;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tutorial-content ul,
.tutorial-ul {
  padding-left: 1.2em;
  color: #334155;
  line-height: 1.8;
}

.tutorial-content blockquote,
.tutorial-blockquote,
.tutorial-read-locked {
  max-width: 100%;
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-left: 4px solid rgba(236, 72, 153, 0.74);
  border-radius: 22px;
  background: rgba(250, 245, 255, 0.75);
  color: #4c1d95;
  font-weight: 800;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tutorial-content pre,
.tutorial-article pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 22px;
  padding: 16px 18px;
  background: rgba(250, 245, 255, 0.75);
  color: #4c1d95;
  font-size: 13px;
  line-height: 1.75;
}

.tutorial-content code {
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.1);
  color: #5b21b6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.tutorial-content blockquote *,
.tutorial-blockquote *,
.tutorial-article pre *,
.tutorial-content pre * {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tutorial-content,
.tutorial-content *,
.tutorial-article,
.tutorial-article * {
  min-width: 0;
}

.tutorial-content > *,
.tutorial-content div,
.tutorial-content span,
.tutorial-content p,
.tutorial-content li,
.tutorial-content td,
.tutorial-content th {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.tutorial-content pre,
.tutorial-content code,
.tutorial-content textarea,
.tutorial-content .code,
.tutorial-content [style*="white-space"],
.tutorial-content [style*="monospace"] {
  max-width: 100% !important;
  white-space: pre-wrap !important;
  overflow-x: auto !important;
  overflow-wrap: anywhere !important;
  word-break: break-all !important;
}

.tutorial-img-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(124, 58, 237, 0.28);
  border-radius: 24px;
  color: #7c3aed;
  background: rgba(250, 245, 255, 0.72);
  font-weight: 900;
}

.tutorial-faq dt {
  margin: 16px 0 6px;
  color: #111827;
  font-weight: 950;
}

.tutorial-faq dd {
  margin: 0 0 8px;
  color: #64748b;
  line-height: 1.75;
}

.tutorial-article-nav {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(124, 58, 237, 0.12);
}

.tutorial-back-btn,
.tutorial-read-locked__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #f97316);
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.22);
}

.tutorial-read-locked__title {
  margin: 0 0 6px;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.tutorial-read-locked__desc {
  margin: 0 0 12px;
  color: #64748b;
}

.tutorial-footer {
  text-align: center;
}

.tutorial-footer .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 850;
}

@media (max-width: 860px) {
  .tutorial-hub-shell,
  .tutorial-article-shell {
    grid-template-columns: 1fr;
  }

  .tutorial-hub-sidebar {
    position: static;
    max-height: none;
  }

  .tutorial-hero {
    padding-top: 28px;
  }

  .tutorial-article-list .tut-info a,
  .tutorial-article-list .tut-title--guest {
    white-space: normal;
  }
}

/* Facebook 快速回复工作台 */
.preview-fb-reply-page .fb-reply-hero {
  margin-bottom: 18px;
}

.preview-fb-reply-page .fb-reply-workbench .translate-pane {
  height: auto;
  min-height: 420px;
  max-height: none;
}

.preview-fb-reply-page .fb-reply-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.preview-fb-reply-page .fb-reply-group {
  display: grid;
  gap: 8px;
}

.preview-fb-reply-page .fb-reply-group--lang {
  max-width: 220px;
}

.preview-fb-reply-page .fb-reply-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.preview-fb-reply-page .fb-reply-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-fb-reply-page .fb-chip {
  border: 1px solid rgba(225, 29, 138, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #7a294f;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.preview-fb-reply-page .fb-chip:hover {
  background: #fff7fb;
}

.preview-fb-reply-page .fb-chip.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(225, 29, 138, 0.18);
}

.preview-fb-reply-page .fb-reply-group--lang select {
  height: 42px;
  border: 1px solid rgba(219, 39, 119, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
}

.preview-fb-reply-page #fb-source {
  flex: 1 1 auto;
  min-height: 180px;
  border: 0;
  resize: vertical;
  padding: 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.65;
}

.preview-fb-reply-page .fb-context-wrap {
  border-top: 1px solid rgba(226, 173, 157, 0.32);
  padding: 12px 16px 14px;
}

.preview-fb-reply-page .fb-context-wrap label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #9a4f67;
}

.preview-fb-reply-page .fb-context-wrap textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid rgba(225, 29, 138, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.preview-fb-reply-page .fb-output-edit {
  flex: 1 1 auto;
  min-height: 260px;
  border: 0;
  resize: vertical;
  padding: 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.7;
}

.preview-fb-reply-page .fb-reply-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(226, 173, 157, 0.32);
}

.preview-fb-reply-page .fb-reply-status {
  margin: 12px 4px 0;
  min-height: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #7a294f;
}

.preview-fb-reply-page .fb-reply-status[data-mode="ok"] {
  color: #15803d;
}

.preview-fb-reply-page .fb-reply-status[data-mode="error"] {
  color: #b91c1c;
}

.preview-fb-reply-page .fb-reply-status[data-mode="loading"] {
  color: #9a4f67;
}

@media (max-width: 900px) {
  .preview-fb-reply-page .translate-dual {
    grid-template-columns: 1fr;
  }
}

/* Facebook 快速回复 — InstaReply 风格落地页 */
.preview-fb-ext-landing {
  background: #fff;
}

.preview-fb-ext-landing .preview-nav {
  background: rgba(255, 250, 244, 0.92);
}

.preview-fb-ext-landing .fb-lp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.preview-fb-ext-landing .fb-lp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.preview-fb-ext-landing .fb-lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
}

.preview-fb-ext-landing .fb-lp-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.preview-fb-ext-landing .fb-lp-menu {
  position: relative;
}

.preview-fb-ext-landing .fb-lp-menu summary {
  list-style: none;
  padding: 8px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  background: #fff;
}

.preview-fb-ext-landing .fb-lp-menu summary::-webkit-details-marker {
  display: none;
}

.preview-fb-ext-landing .fb-lp-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.preview-fb-ext-landing .fb-lp-menu__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
}

.preview-fb-ext-landing .fb-lp-menu__panel a:hover,
.preview-fb-ext-landing .fb-lp-menu__panel a.is-active {
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
}

.preview-fb-ext-landing .fb-lp-hero {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 38%, #c026d3 72%, #ec4899 100%);
  color: #fff;
  padding: 56px 0 72px;
}

.preview-fb-ext-landing .fb-lp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 48px;
  align-items: center;
}

.preview-fb-ext-landing .fb-lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.preview-fb-ext-landing .fb-lp-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.preview-fb-ext-landing .fb-lp-title em {
  font-style: normal;
  color: #fde047;
}

.preview-fb-ext-landing .fb-lp-lead {
  margin: 0 0 24px;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.preview-fb-ext-landing .fb-lp-lead strong {
  color: #fff;
  font-weight: 800;
}

.preview-fb-ext-landing .fb-lp-platforms {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 560px;
}

.preview-fb-ext-landing .fb-lp-platforms li {
  flex: 1 1 220px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.5;
}

.preview-fb-ext-landing .fb-lp-platforms strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  color: #fff;
}

.preview-fb-ext-landing .fb-lp-platforms span {
  color: rgba(255, 255, 255, 0.82);
}

.preview-fb-ext-landing .fb-lp-hero-switch {
  display: flex;
  gap: 8px;
  padding: 12px 14px 0;
  background: #fff;
}

.preview-fb-ext-landing .fb-lp-hero-switch__btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #f3f4f6;
  color: #4b5563;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.preview-fb-ext-landing .fb-lp-hero-switch__btn.is-active {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
}

.preview-fb-ext-landing .fb-demo-scene--instagram {
  background: linear-gradient(180deg, #fff 0%, #fff7fb 100%);
}

.preview-fb-ext-landing .fb-lp-demo__stage .fb-demo-panel {
  bottom: 16px;
  width: min(340px, calc(100% - 32px));
}

.preview-fb-ext-landing .ig-demo-feed {
  padding: 16px;
}

.preview-fb-ext-landing .ig-demo-post {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.preview-fb-ext-landing .ig-demo-post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 0;
}

.preview-fb-ext-landing .ig-demo-post__head strong {
  display: block;
  font-size: 14px;
  color: #111827;
}

.preview-fb-ext-landing .ig-demo-post__head span {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.preview-fb-ext-landing .ig-demo-post__media {
  height: 140px;
  margin: 10px 14px 0;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(219, 39, 119, 0.18), rgba(124, 58, 237, 0.18)),
    linear-gradient(45deg, #fce7f3 25%, #ede9fe 50%, #fdf2f8 75%);
}

.preview-fb-ext-landing .ig-demo-post__caption {
  margin: 0;
  padding: 12px 14px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.preview-fb-ext-landing .ig-demo-composer {
  margin: 12px 14px 14px;
}

.preview-fb-ext-landing .fb-demo-ir-btn--ig {
  background: linear-gradient(135deg, #db2777, #e11d8a);
  color: #fff;
  border-color: transparent;
}

.preview-fb-ext-landing .fb-demo-panel__options {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.preview-fb-ext-landing .fb-demo-panel__option {
  border: 1px solid rgba(219, 39, 119, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fffafb;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  color: #111827;
}

.preview-fb-ext-landing .fb-demo-panel__option.is-active {
  border-color: #db2777;
  background: linear-gradient(135deg, #fff1f7, #fff7fb);
  box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.12);
}

.preview-fb-ext-landing .fb-lp-demo__tab--ig.is-active {
  background: linear-gradient(135deg, #db2777, #be185d);
  color: #fff;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-panel__options {
  max-height: 150px;
}

.preview-fb-ext-landing .fb-lp-cta-wrap {
  margin-bottom: 18px;
}

.preview-fb-ext-landing .fb-lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  align-items: flex-start;
}

.preview-fb-ext-landing .fb-lp-install-item {
  flex: 1 1 240px;
  max-width: 320px;
}

.preview-fb-ext-landing .fb-lp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  background: #facc15;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.preview-fb-ext-landing .fb-lp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.preview-fb-ext-landing .fb-lp-cta.is-pending {
  background: #9ca3af;
  color: #f9fafb;
  box-shadow: none;
  pointer-events: none;
}

.preview-fb-ext-landing .fb-lp-cta--ig {
  background: linear-gradient(135deg, #f472b6 0%, #db2777 55%, #be185d 100%);
  color: #fff;
}

.preview-fb-ext-landing .fb-lp-cta--ig:hover {
  box-shadow: 0 20px 42px rgba(190, 24, 93, 0.35);
}

.preview-fb-ext-landing .fb-lp-cta__platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.preview-fb-ext-landing .fb-lp-cta__arrow {
  font-size: 20px;
  line-height: 1;
}

.preview-fb-ext-landing .fb-lp-store-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
}

.preview-fb-ext-landing .fb-lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.preview-fb-ext-landing .fb-lp-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
}

.preview-fb-ext-landing .fb-lp-stars {
  color: #fde047;
  letter-spacing: 1px;
}

.preview-fb-ext-landing .fb-lp-score {
  color: #fff;
}

.preview-fb-ext-landing .fb-lp-users {
  color: rgba(255, 255, 255, 0.88);
}

.preview-fb-ext-landing .fb-lp-account {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.preview-fb-ext-landing .fb-lp-account.is-ok {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(110, 231, 183, 0.35);
}

.preview-fb-ext-landing .fb-lp-account.is-warn {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(252, 211, 77, 0.35);
}

.preview-fb-ext-landing .fb-lp-account__line {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.preview-fb-ext-landing .fb-lp-account__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-fb-ext-landing .fb-lp-account__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.preview-fb-ext-landing .fb-lp-account__btn--primary {
  background: rgba(255, 255, 255, 0.18);
}

.preview-fb-ext-landing .fb-lp-visual-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.preview-fb-ext-landing .fb-lp-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-fb-ext-landing .fb-lp-hero-preview {
  background: #fff;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-browser {
  min-height: 0;
}

.preview-fb-ext-landing .fb-demo-scene-slot {
  position: relative;
  min-height: 360px;
  background: #f0f2f5;
}

.preview-fb-ext-landing .fb-demo-scene-slot .fb-demo-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
}

.preview-fb-ext-landing .fb-demo-scene[hidden] {
  display: none !important;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-scene-slot {
  min-height: 300px;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-scene {
  min-height: 100%;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-feed {
  padding: 12px;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-post__text,
.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-bubble p {
  font-size: 12px;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-panel {
  right: 12px;
  bottom: 12px;
  width: min(280px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-panel:not(.is-open) {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-panel__source[contenteditable] {
  outline: none;
  cursor: text;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-panel__source[contenteditable]:focus {
  border-color: rgba(219, 39, 119, 0.42);
  box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.12);
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-panel__chips button {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(225, 29, 138, 0.18);
  background: #fff7fb;
  color: #9d174d;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-panel__chips button.is-active {
  background: linear-gradient(135deg, #db2777, #e11d8a);
  color: #fff;
  border-color: transparent;
}

.preview-fb-ext-landing .fb-lp-hero-preview .fb-demo-input.is-filled {
  color: #111827;
}

.preview-fb-ext-landing .fb-lp-stats {
  background: #111827;
  color: #fff;
  padding: 34px 0;
}

.preview-fb-ext-landing .fb-lp-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}

.preview-fb-ext-landing .fb-lp-stat__icon {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  color: #facc15;
}

.preview-fb-ext-landing .fb-lp-stat__num {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: #fde047;
}

.preview-fb-ext-landing .fb-lp-stat__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.preview-fb-ext-landing .fb-lp-demo {
  padding: 72px 0 56px;
  background: #fff;
}

.preview-fb-ext-landing .fb-lp-demo__title {
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #111827;
}

.preview-fb-ext-landing .fb-lp-demo__sub {
  margin: 0 auto 32px;
  max-width: 640px;
  text-align: center;
  font-size: 17px;
  color: #7c3aed;
  font-weight: 700;
}

.preview-fb-ext-landing .fb-lp-demo__card {
  max-width: 920px;
  margin: 0 auto 40px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  background: #fff;
}

.preview-fb-ext-landing .fb-lp-demo__mock-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafafa;
}

.preview-fb-ext-landing .fb-lp-demo__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.preview-fb-ext-landing .fb-lp-demo__tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #f3f4f6;
  gap: 4px;
}

.preview-fb-ext-landing .fb-lp-demo__tab {
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.preview-fb-ext-landing .fb-lp-demo__tab.is-active {
  background: #fff;
  color: #7c3aed;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.preview-fb-ext-landing .fb-lp-demo__replay {
  border: 1px solid rgba(124, 58, 237, 0.22);
  padding: 7px 12px;
  border-radius: 999px;
  background: #faf5ff;
  color: #6d28d9;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.preview-fb-ext-landing .fb-lp-demo__stage {
  position: relative;
  background: #f8fafc;
}

.preview-fb-ext-landing .fb-lp-demo__caption {
  margin: 0;
  padding: 14px 18px 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #6d28d9;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.04));
}

.preview-fb-ext-landing .fb-lp-demo__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #a78bfa);
}

.preview-fb-ext-landing .fb-lp-demo__mock-head strong {
  display: block;
  font-size: 15px;
  color: #111827;
}

.preview-fb-ext-landing .fb-lp-demo__mock-head span {
  font-size: 13px;
  color: #6b7280;
}

.preview-fb-ext-landing .fb-demo-browser {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.preview-fb-ext-landing .fb-demo-browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #e5e7eb;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.preview-fb-ext-landing .fb-demo-browser__dots {
  display: inline-flex;
  gap: 5px;
}

.preview-fb-ext-landing .fb-demo-browser__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  font-style: normal;
}

.preview-fb-ext-landing .fb-demo-browser__dots i:nth-child(1) {
  background: #fca5a5;
}

.preview-fb-ext-landing .fb-demo-browser__dots i:nth-child(2) {
  background: #fde047;
}

.preview-fb-ext-landing .fb-demo-browser__dots i:nth-child(3) {
  background: #86efac;
}

.preview-fb-ext-landing .fb-demo-browser__url {
  flex: 1;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.preview-fb-ext-landing .fb-demo-scene-slot {
  position: relative;
  min-height: 420px;
  background: #f0f2f5;
}

.preview-fb-ext-landing .fb-demo-scene-slot .fb-demo-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
}

.preview-fb-ext-landing .fb-demo-scene[hidden] {
  display: none !important;
}

.preview-fb-ext-landing .fb-demo-scene {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  background: #f0f2f5;
}

.preview-fb-ext-landing .fb-demo-scene--message,
.preview-fb-ext-landing .fb-demo-scene--instagram {
  display: block;
}

.preview-fb-ext-landing .fb-demo-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  background: #fff;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.preview-fb-ext-landing .fb-demo-sidebar__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1877f2;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.preview-fb-ext-landing .fb-demo-sidebar span:not(.fb-demo-sidebar__logo) {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #e5e7eb;
}

.preview-fb-ext-landing .fb-demo-feed {
  padding: 16px;
}

.preview-fb-ext-landing .fb-demo-post,
.preview-fb-ext-landing .fb-demo-thread,
.preview-fb-ext-landing .fb-demo-composer {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.preview-fb-ext-landing .fb-demo-post {
  padding: 14px;
  margin-bottom: 12px;
}

.preview-fb-ext-landing .fb-demo-post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.preview-fb-ext-landing .fb-demo-post__head strong {
  display: block;
  font-size: 14px;
  color: #111827;
}

.preview-fb-ext-landing .fb-demo-post__head span {
  font-size: 12px;
  color: #6b7280;
}

.preview-fb-ext-landing .fb-demo-post__text {
  margin: 0 0 10px;
  font-size: 14px;
  color: #374151;
  line-height: 1.55;
}

.preview-fb-ext-landing .fb-demo-post__actions {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #6b7280;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.preview-fb-ext-landing .fb-demo-thread {
  padding: 12px 14px;
  margin-bottom: 12px;
}

.preview-fb-ext-landing .fb-demo-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.preview-fb-ext-landing .fb-demo-bubble {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f3f4f6;
}

.preview-fb-ext-landing .fb-demo-bubble strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #111827;
}

.preview-fb-ext-landing .fb-demo-bubble p {
  margin: 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}

.preview-fb-ext-landing .fb-demo-composer {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  align-items: flex-start;
}

.preview-fb-ext-landing .fb-demo-composer__box {
  flex: 1;
  position: relative;
}

.preview-fb-ext-landing .fb-demo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #c4b5fd, #f9a8d4);
}

.preview-fb-ext-landing .fb-demo-avatar--page {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.preview-fb-ext-landing .fb-demo-avatar--user {
  background: linear-gradient(135deg, #60a5fa, #34d399);
}

.preview-fb-ext-landing .fb-demo-avatar--me {
  background: linear-gradient(135deg, #f472b6, #fb923c);
}

.preview-fb-ext-landing .fb-demo-input {
  min-height: 40px;
  padding: 10px 88px 10px 12px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 13px;
  color: #111827;
  line-height: 1.5;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.preview-fb-ext-landing .fb-demo-input:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
}

.preview-fb-ext-landing .fb-demo-input.is-filled {
  background: #fff;
  border-color: rgba(124, 58, 237, 0.28);
}

.preview-fb-ext-landing .fb-demo-ir-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #db2777, #e11d8a);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: default;
  box-shadow: 0 6px 16px rgba(225, 29, 138, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.preview-fb-ext-landing .fb-demo-ir-btn.is-pulse {
  animation: fb-demo-pulse 1.1s ease-in-out infinite;
}

@keyframes fb-demo-pulse {
  0%,
  100% {
    box-shadow: 0 6px 16px rgba(225, 29, 138, 0.28);
    transform: translateY(-50%) scale(1);
  }
  50% {
    box-shadow: 0 10px 24px rgba(225, 29, 138, 0.42);
    transform: translateY(-50%) scale(1.04);
  }
}

.preview-fb-ext-landing .fb-demo-messenger {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  background: #fff;
}

.preview-fb-ext-landing .fb-demo-messenger__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.preview-fb-ext-landing .fb-demo-messenger__head strong {
  display: block;
  font-size: 14px;
}

.preview-fb-ext-landing .fb-demo-messenger__head span {
  font-size: 12px;
  color: #6b7280;
}

.preview-fb-ext-landing .fb-demo-messenger__body {
  flex: 1;
  padding: 16px;
  background: linear-gradient(180deg, #fafafa, #fff);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-fb-ext-landing .fb-demo-msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.preview-fb-ext-landing .fb-demo-msg--in {
  align-self: flex-start;
  background: #f3f4f6;
  color: #374151;
}

.preview-fb-ext-landing .fb-demo-msg--out {
  align-self: flex-end;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
}

.preview-fb-ext-landing .fb-demo-msg p {
  margin: 0;
}

.preview-fb-ext-landing .fb-demo-messenger__composer {
  position: relative;
  padding: 12px 16px 16px;
  border-top: 1px solid #f3f4f6;
}

.preview-fb-ext-landing .fb-demo-messenger__composer .fb-demo-input {
  padding-right: 88px;
}

.preview-fb-ext-landing .fb-demo-panel {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 72px;
  width: min(320px, calc(100% - 36px));
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(225, 29, 138, 0.2);
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.preview-fb-ext-landing .fb-demo-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.preview-fb-ext-landing .fb-demo-panel.is-loading .fb-demo-panel__out {
  background: linear-gradient(90deg, #fffafb 0%, #fce7f3 50%, #fffafb 100%);
  background-size: 200% 100%;
  animation: fb-demo-shimmer 1s linear infinite;
}

@keyframes fb-demo-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.preview-fb-ext-landing .fb-demo-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.preview-fb-ext-landing .fb-demo-panel__brand {
  font-size: 13px;
  font-weight: 900;
  color: #be185d;
}

.preview-fb-ext-landing .fb-demo-panel__close {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
}

.preview-fb-ext-landing .fb-demo-panel__label {
  display: block;
  margin: 8px 0 6px;
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
}

.preview-fb-ext-landing .fb-demo-panel__source,
.preview-fb-ext-landing .fb-demo-panel__out {
  padding: 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #111827;
}

.preview-fb-ext-landing .fb-demo-panel__source {
  border: 1px solid rgba(219, 39, 119, 0.16);
  background: #fff;
  min-height: 44px;
}

.preview-fb-ext-landing .fb-demo-panel__out {
  min-height: 72px;
  border: 1px dashed rgba(219, 39, 119, 0.22);
  background: #fffafb;
  white-space: pre-wrap;
}

.preview-fb-ext-landing .fb-demo-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preview-fb-ext-landing .fb-demo-panel__chips span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(225, 29, 138, 0.18);
  background: #fff7fb;
  color: #9d174d;
  font-size: 11px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.preview-fb-ext-landing .fb-demo-panel__chips span.is-active {
  background: linear-gradient(135deg, #db2777, #e11d8a);
  color: #fff;
  border-color: transparent;
}

.preview-fb-ext-landing .fb-demo-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.preview-fb-ext-landing .fb-demo-panel__btn {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f3f4f6;
  color: #374151;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.preview-fb-ext-landing .fb-demo-panel__btn--primary {
  background: linear-gradient(135deg, #db2777, #e11d8a);
  color: #fff;
}

.preview-fb-ext-landing .fb-demo-panel__btn:disabled {
  opacity: 0.45;
}

.preview-fb-ext-landing .fb-demo-panel__status {
  margin: 8px 0 0;
  min-height: 16px;
  font-size: 11px;
  color: #6b7280;
  font-weight: 700;
}

.preview-fb-ext-landing .fb-demo-panel__status.is-ok {
  color: #059669;
}

.preview-fb-ext-landing .fb-demo-panel__status.is-error {
  color: #dc2626;
}

.preview-fb-ext-landing .fb-demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  width: 22px;
  height: 22px;
  border-radius: 50% 2px 50% 50%;
  background: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(-999px, -999px);
  transition: opacity 0.2s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.preview-fb-ext-landing .fb-demo-cursor::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #fff;
  opacity: 0.15;
}

.preview-fb-ext-landing .fb-demo-cursor.is-visible {
  opacity: 1;
}

.preview-fb-ext-landing .fb-demo-cursor.is-click {
  filter: brightness(1.35);
}

.preview-fb-ext-landing .fb-lp-demo__stage[data-step="2"] .fb-demo-ir-btn,
.preview-fb-ext-landing .fb-lp-demo__stage[data-step="3"] .fb-demo-panel,
.preview-fb-ext-landing .fb-lp-demo__stage[data-step="4"] .fb-demo-panel__btn--primary,
.preview-fb-ext-landing .fb-lp-demo__stage[data-step="5"] .fb-demo-input.is-filled {
  outline: 2px solid rgba(124, 58, 237, 0.35);
  outline-offset: 2px;
}

.preview-fb-ext-landing .fb-lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.preview-fb-ext-landing .fb-lp-step {
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fafafa;
}

.preview-fb-ext-landing .fb-lp-step__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.preview-fb-ext-landing .fb-lp-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #111827;
}

.preview-fb-ext-landing .fb-lp-step p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
}

.preview-fb-ext-landing .fb-lp-footer {
  padding: 0 0 48px;
  background: #fff;
}

.preview-fb-ext-landing .fb-lp-details {
  border: 1px dashed rgba(124, 58, 237, 0.22);
  border-radius: 14px;
  padding: 12px 16px;
  background: #faf5ff;
  margin-bottom: 14px;
}

.preview-fb-ext-landing .fb-lp-details summary {
  cursor: pointer;
  font-weight: 800;
  color: #6d28d9;
}

.preview-fb-ext-landing .fb-lp-details ol,
.preview-fb-ext-landing .fb-lp-details ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #4b5563;
}

.preview-fb-ext-landing .fb-lp-details code {
  font-size: 12px;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 6px;
}

.preview-fb-ext-landing .fb-lp-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.preview-fb-ext-landing .fb-lp-note a {
  color: #7c3aed;
  font-weight: 700;
}

@media (max-width: 960px) {
  .preview-fb-ext-landing .fb-lp-hero__grid {
    grid-template-columns: 1fr;
  }

  .preview-fb-ext-landing .fb-lp-hero__visual {
    order: -1;
  }

  .preview-fb-ext-landing .fb-lp-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-fb-ext-landing .fb-lp-steps {
    grid-template-columns: 1fr;
  }

  .preview-fb-ext-landing .fb-lp-demo__toolbar {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .preview-fb-ext-landing .fb-demo-panel {
    right: 10px;
    bottom: 64px;
    width: calc(100% - 20px);
  }
}

@media (max-width: 560px) {
  .preview-fb-ext-landing .fb-lp-hero {
    padding: 36px 0 48px;
  }

  .preview-fb-ext-landing .fb-lp-cta {
    width: 100%;
    justify-content: center;
  }

  .preview-fb-ext-landing .fb-lp-stats__grid {
    grid-template-columns: 1fr;
  }

  .preview-fb-ext-landing .fb-demo-scene {
    grid-template-columns: 1fr;
  }

  .preview-fb-ext-landing .fb-demo-sidebar {
    display: none;
  }

  .preview-fb-ext-landing .fb-lp-demo__tab {
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* ============================================================
   工具发现：分类下拉菜单 / 工具中心 / 相关工具
   ============================================================ */

.utility-menu__panel {
  width: min(460px, calc(100vw - 24px));
  gap: 10px;
  padding: 12px;
}

.utility-menu__search-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  color: #164e63;
  outline: none;
}

.utility-menu__search-input:focus {
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

.utility-menu__scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(64vh, 460px);
  overflow-y: auto;
  padding-right: 2px;
}

/* 分类组排成多列网格，整体更矮、一眼扫完 */
.utility-menu__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.utility-menu__group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.utility-menu__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.utility-menu__items--inline {
  flex-direction: row;
  flex-wrap: wrap;
}

.utility-menu__head {
  padding: 0 2px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.78;
}

/* 单行紧凑条目 */
.utility-menu__panel a.utility-menu__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 7px 10px;
  font-weight: 800;
}

.utility-menu__items--inline a.utility-menu__item {
  flex: 1 1 auto;
}

.utility-menu__item-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #0f3b44;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.utility-menu__item--plain .utility-menu__item-title {
  font-weight: 900;
}

/* 搜索过滤：display 规则会覆盖 [hidden]，需显式还原隐藏 */
.utility-menu__panel a.utility-menu__item[hidden],
.utility-menu__group[hidden] {
  display: none;
}

.utility-menu__all {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.14), rgba(103, 232, 249, 0.14));
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.utility-menu__all:hover {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.26), rgba(103, 232, 249, 0.26));
}

.utility-menu__empty {
  margin: 6px 2px;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.tool-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f472b6, #fb7185);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* 工具中心落地页 */
.tool-hub-hero {
  padding: 40px 0 8px;
}

.tool-hub-search-wrap {
  margin-top: 18px;
  max-width: 460px;
}

.tool-hub-search-wrap input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-size: 15px;
  outline: none;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.tool-hub-search-wrap input:focus {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.14);
}

.tool-board--hub {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.tool-card--rich {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-card--rich strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-hub-empty {
  margin: 8px 0 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .tool-board--hub {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 560px) {
  .utility-menu__groups {
    grid-template-columns: 1fr;
  }
}
