/*
 * Lingxuan AI public and authentication surfaces.
 * Direction: task-first commercial SaaS with a playful, tactile edge.
 * Shape system: 16px major surfaces, 10px controls, pill tags only.
 */

.tb-public-app[data-ui-style="playful"] {
  --lxp-brand: #ea580c;
  --lxp-brand-hover: #c2410c;
  --lxp-brand-deep: #9a3412;
  --lxp-brand-soft: #fff7ed;
  --lxp-flame-red: #dc2626;
  --lxp-flame-gold: #f59e0b;
  --lxp-flame-grad: linear-gradient(118deg, #dc2626, #ea580c 52%, #f59e0b);
  --lxp-ink: #1c1917;
  --lxp-ink-2: #44403c;
  --lxp-muted: #78716c;
  --lxp-line: #e7e2dd;
  --lxp-line-strong: #d6cfc7;
  --lxp-canvas: #faf8f5;
  --lxp-surface: #ffffff;
  --lxp-graphite: #1d1814;
  --lxp-graphite-2: #2b241d;
  --lxp-mint: #ddf5ea;
  --lxp-mint-ink: #17634f;
  --lxp-yellow: #fef3c7;
  --lxp-yellow-ink: #7c3d00;
  --lxp-blue: #e5f0ff;
  --lxp-blue-ink: #245d96;
  --lxp-ease: cubic-bezier(.2, .8, .2, 1);
  display: flex !important;
  min-height: 100dvh;
  color: var(--lxp-ink) !important;
  background: var(--lxp-canvas) !important;
  font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}

.tb-public-app[data-ui-style="playful"] *,
.tb-public-app[data-ui-style="playful"] *::before,
.tb-public-app[data-ui-style="playful"] *::after,
.tb-auth-overlay *,
.tb-auth-overlay *::before,
.tb-auth-overlay *::after,
.tb-modal-auth-page *,
.tb-modal-auth-page *::before,
.tb-modal-auth-page *::after {
  box-sizing: border-box;
}

.tb-public-app[data-ui-style="playful"] :where(a, button, input, summary),
.tb-auth-overlay :where(a, button, input),
.tb-modal-auth-page :where(a, button, input) {
  font: inherit;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

.tb-public-app[data-ui-style="playful"] :where(a, button, input, summary):focus-visible,
.tb-auth-overlay :where(a, button, input):focus-visible,
.tb-modal-auth-page :where(a, button, input):focus-visible {
  outline: 3px solid rgb(234 88 12 / 22%);
  outline-offset: 2px;
}

/* Public workspace shell */

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-sidebar {
  position: sticky !important;
  top: 0;
  z-index: 30;
  display: flex !important;
  flex: 0 0 248px !important;
  flex-direction: column;
  width: 248px !important;
  height: 100dvh !important;
  padding: 18px 14px !important;
  border: 0 !important;
  border-right: 1px solid var(--lxp-line) !important;
  background: var(--lxp-surface) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.tb-public-app[data-ui-style="playful"] .tb-public-sidebar .tb-brand {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin-bottom: 14px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid #f5f1ec;
  color: var(--lxp-ink);
  text-decoration: none;
  gap: 11px;
}

.tb-public-app[data-ui-style="playful"] .tb-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #fdba74;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 0 #fb923c;
  overflow: hidden;
}

.tb-public-app[data-ui-style="playful"] .tb-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tb-public-app[data-ui-style="playful"] .tb-brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--lxp-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.tb-public-app[data-ui-style="playful"] .tb-brand-text small {
  margin-top: 4px;
  color: var(--lxp-muted);
  font-size: 10px;
  font-weight: 600;
}

.tb-public-app[data-ui-style="playful"] .tb-public-nav {
  display: grid;
  min-height: 0;
  padding: 2px 3px 6px 0;
  gap: 5px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--lxp-line) transparent;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-nav a {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  padding: 7px 9px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: var(--lxp-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none;
  gap: 10px;
  transition: color 170ms var(--lxp-ease), background-color 170ms var(--lxp-ease), transform 170ms var(--lxp-ease);
}

.tb-public-app[data-ui-style="playful"] .tb-public-nav a > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--lxp-muted);
  background: #f5f1ec;
  font-size: 15px;
  transition: color 170ms var(--lxp-ease), background-color 170ms var(--lxp-ease), transform 170ms var(--lxp-ease);
}

.tb-public-app[data-ui-style="playful"] .tb-public-nav a span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  font-size: 13px;
  font-weight: 720;
}

.tb-public-app[data-ui-style="playful"] .tb-public-nav a small {
  margin-top: 2px;
  color: var(--lxp-muted);
  font-size: 10px;
  font-weight: 540;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-nav a:hover {
  color: var(--lxp-ink) !important;
  background: #f5f1ec !important;
  transform: translateX(2px);
}

.tb-public-app[data-ui-style="playful"] .tb-public-nav a:hover > i {
  color: var(--lxp-brand);
  background: var(--lxp-brand-soft);
  transform: rotate(-2deg);
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-nav a.active {
  color: #9a3412 !important;
  background: var(--lxp-brand-soft) !important;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-nav a.active > i {
  color: #fff !important;
  background: var(--lxp-brand) !important;
  box-shadow: 0 3px 0 var(--lxp-brand-deep) !important;
}

.tb-public-app[data-ui-style="playful"] .tb-public-user {
  display: grid;
  margin-top: auto;
  padding: 14px;
  border: 1px solid #f5f1ec;
  border-radius: 12px;
  color: var(--lxp-ink);
  background: #f5f1ec;
  gap: 7px;
}

.tb-public-app[data-ui-style="playful"] .tb-public-user > span {
  color: var(--lxp-brand-deep);
  font-size: 11px;
  font-weight: 780;
}

.tb-public-app[data-ui-style="playful"] .tb-public-user > strong {
  font-size: 13px;
  line-height: 1.5;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 18px 24px 44px !important;
}

.tb-public-app[data-ui-style="playful"] .tb-public-main > * {
  width: min(100%, 1260px);
  margin-right: auto;
  margin-left: auto;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px !important;
  margin-bottom: 16px;
  padding: 9px 11px 9px 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 5px 8px rgb(41 25 12 / 8%) !important;
}

.tb-public-app[data-ui-style="playful"] .tb-public-topbar > div:first-child {
  display: flex;
  flex-direction: column;
}

.tb-public-app[data-ui-style="playful"] .tb-public-topbar strong {
  color: var(--lxp-ink);
  font-size: 16px;
  font-weight: 800;
}

.tb-public-app[data-ui-style="playful"] .tb-public-topbar span {
  margin-top: 2px;
  color: var(--lxp-muted);
  font-size: 11px;
}

.tb-public-app[data-ui-style="playful"] .tb-userbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */

.tb-public-app[data-ui-style="playful"] .tb-btn,
.tb-auth-overlay :where(.tb-auth-submit, .tb-auth-field.action button, .tb-btn),
.tb-modal-auth-page :where(.tb-auth-submit, .tb-auth-field.action button, .tb-btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d4d9e2;
  border-radius: 10px;
  color: #323949;
  background: #fff;
  box-shadow: 0 3px 0 var(--lxp-line-strong);
  font-size: 13px;
  font-weight: 740;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: color 170ms var(--lxp-ease), background-color 170ms var(--lxp-ease), border-color 170ms var(--lxp-ease), box-shadow 170ms var(--lxp-ease), transform 170ms var(--lxp-ease);
}

.tb-public-app[data-ui-style="playful"] .tb-btn.primary,
.tb-auth-overlay .tb-auth-submit,
.tb-modal-auth-page .tb-auth-submit {
  border-color: var(--lxp-brand) !important;
  color: #fff !important;
  background: var(--lxp-brand) !important;
  box-shadow: 0 4px 0 var(--lxp-brand-deep) !important;
}

.tb-public-app[data-ui-style="playful"] .tb-btn.compact {
  min-height: 42px;
  padding: 0 15px;
}

.tb-public-app[data-ui-style="playful"] .tb-btn.full,
.tb-auth-overlay .tb-btn.full,
.tb-modal-auth-page .tb-btn.full {
  width: 100%;
}

.tb-public-app[data-ui-style="playful"] .tb-btn:hover,
.tb-auth-overlay :where(.tb-auth-submit, .tb-auth-field.action button, .tb-btn):hover,
.tb-modal-auth-page :where(.tb-auth-submit, .tb-auth-field.action button, .tb-btn):hover {
  transform: translateY(-1px);
}

.tb-public-app[data-ui-style="playful"] .tb-btn.primary:hover,
.tb-auth-overlay .tb-auth-submit:hover,
.tb-modal-auth-page .tb-auth-submit:hover {
  border-color: var(--lxp-brand-hover) !important;
  background: var(--lxp-brand-hover) !important;
  box-shadow: 0 5px 0 #9a3412 !important;
}

.tb-public-app[data-ui-style="playful"] .tb-btn:active,
.tb-public-app[data-ui-style="playful"] .tb-btn[data-ui-pressed="true"],
.tb-auth-overlay :where(button, .tb-btn):active,
.tb-modal-auth-page :where(button, .tb-btn):active {
  box-shadow: 0 1px 0 var(--lxp-line-strong) !important;
  transform: translateY(2px) scale(.99);
}

.tb-public-app[data-ui-style="playful"] .tb-btn.primary:active,
.tb-public-app[data-ui-style="playful"] .tb-btn.primary[data-ui-pressed="true"],
.tb-auth-overlay .tb-auth-submit:active,
.tb-modal-auth-page .tb-auth-submit:active {
  box-shadow: 0 1px 0 var(--lxp-brand-deep) !important;
}

.tb-public-app[data-ui-style="playful"] :where(button, .tb-btn):disabled,
.tb-public-app[data-ui-style="playful"] :where(button, .tb-btn)[aria-disabled="true"],
.tb-auth-overlay :where(button, .tb-btn):disabled,
.tb-auth-overlay :where(button, .tb-btn)[aria-disabled="true"],
.tb-modal-auth-page :where(button, .tb-btn):disabled,
.tb-modal-auth-page :where(button, .tb-btn)[aria-disabled="true"] {
  border-color: #dfe2e8 !important;
  color: #8c94a3 !important;
  background: #f5f1ec !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}

.tb-public-app[data-ui-style="playful"] .ui-press-wave,
.tb-auth-overlay .ui-press-wave,
.tb-modal-auth-page .ui-press-wave {
  position: absolute;
  z-index: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 42%);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: lxp-press-wave 180ms var(--lxp-ease) forwards;
}

@keyframes lxp-press-wave {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(14);
  }
}

/* Primary task surface */

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-studio {
  display: grid !important;
  grid-template-columns: minmax(0, 1.14fr) minmax(390px, .86fr) !important;
  min-height: 560px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 6px 8px rgb(41 25 12 / 9%) !important;
  overflow: hidden;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 46px 44px !important;
  background: #fff !important;
}

.tb-public-app[data-ui-style="playful"] .tb-inspire-stage {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #9a3412;
  background: var(--lxp-brand-soft);
  gap: 8px;
  font-size: 11px;
  font-weight: 760;
}

.tb-public-app[data-ui-style="playful"] .tb-inspire-stage i {
  width: 18px;
  height: 1px;
  background: #e7aaa4;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-copy h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--lxp-ink) !important;
  font-size: 42px !important;
  font-weight: 850;
  line-height: 1.17 !important;
  letter-spacing: 0;
  text-wrap: balance;
}

.tb-public-app[data-ui-style="playful"] .tb-public-copy > p {
  max-width: 59ch;
  margin: 17px 0 24px;
  color: var(--lxp-ink-2);
  font-size: 14px;
  line-height: 1.8;
  text-wrap: pretty;
}

.tb-public-app[data-ui-style="playful"] .tb-public-link-form {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 68px;
  padding: 7px;
  border: 1px solid #d3d8e1;
  border-radius: 12px;
  background: #f7f8fa;
  box-shadow: inset 0 1px 2px rgb(31 37 50 / 5%);
  transition: border-color 170ms var(--lxp-ease), box-shadow 170ms var(--lxp-ease), background-color 170ms var(--lxp-ease);
}

.tb-public-app[data-ui-style="playful"] .tb-public-link-form:focus-within {
  border-color: var(--lxp-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(234 88 12 / 10%);
}

.tb-public-app[data-ui-style="playful"] .tb-public-link-form > i {
  color: var(--lxp-brand);
  font-size: 20px;
  text-align: center;
}

.tb-public-app[data-ui-style="playful"] .tb-public-link-form input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 9px;
  border: 0;
  outline: 0;
  color: var(--lxp-ink);
  background: transparent;
  font-size: 14px;
}

.tb-public-app[data-ui-style="playful"] .tb-public-link-form input::placeholder {
  color: var(--lxp-muted);
  opacity: 1;
}

.tb-public-app[data-ui-style="playful"] .tb-public-link-form .tb-btn {
  min-width: 124px;
  height: 52px;
  gap: 7px;
}

.tb-public-app[data-ui-style="playful"] .tb-supported-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 15px;
  gap: 7px;
}

.tb-public-app[data-ui-style="playful"] .tb-supported-row span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #50596b;
  background: #f5f1ec;
  font-size: 10px;
  font-weight: 680;
}

.tb-public-app[data-ui-style="playful"] .tb-supported-row span:nth-child(2) {
  color: var(--lxp-blue-ink);
  background: var(--lxp-blue);
}

.tb-public-app[data-ui-style="playful"] .tb-supported-row span:nth-child(3) {
  color: var(--lxp-yellow-ink);
  background: var(--lxp-yellow);
}

.tb-public-app[data-ui-style="playful"] .tb-supported-row span:nth-child(4) {
  color: var(--lxp-mint-ink);
  background: var(--lxp-mint);
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-result {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: var(--lxp-graphite) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.tb-public-app[data-ui-style="playful"] .tb-public-result::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--lxp-flame-grad);
  pointer-events: none;
}

.tb-public-app[data-ui-style="playful"] .tb-public-result::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(234 88 12 / 26%), transparent 68%);
  pointer-events: none;
}

.tb-public-app[data-ui-style="playful"] .tb-public-result .tb-studio-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tb-public-app[data-ui-style="playful"] .tb-public-result .tb-studio-head small {
  display: block;
  margin-bottom: 5px;
  color: #f3aaa4;
  font-size: 11px;
  font-weight: 760;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-result .tb-studio-head h3 {
  margin: 0;
  color: #fff !important;
  font-size: 21px;
  font-weight: 820;
}

.tb-public-app[data-ui-style="playful"] .tb-public-result .tb-badge {
  padding: 6px 9px;
  border-radius: 999px;
  color: #b9f0dd;
  background: #284039;
  font-size: 10px;
  font-weight: 740;
  white-space: nowrap;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-preview-gallery {
  position: relative;
  z-index: 1;
  display: grid !important;
  flex: 1 1 auto;
  grid-template-columns: 1.12fr .92fr .92fr !important;
  align-items: end;
  min-height: 350px;
  margin: 25px 0 21px;
  gap: 11px;
}

.tb-public-app[data-ui-style="playful"] .tb-public-preview-gallery figure {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 3px solid #fff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 0 rgb(0 0 0 / 28%);
  overflow: hidden;
  transform-origin: bottom center;
  transition: transform 190ms var(--lxp-ease), box-shadow 190ms var(--lxp-ease);
}

.tb-public-app[data-ui-style="playful"] .tb-public-preview-gallery figure:nth-child(1) {
  transform: rotate(-2deg) translateY(5px);
}

.tb-public-app[data-ui-style="playful"] .tb-public-preview-gallery figure:nth-child(2) {
  transform: rotate(2deg) translateY(-10px);
}

.tb-public-app[data-ui-style="playful"] .tb-public-preview-gallery figure:nth-child(3) {
  transform: rotate(-1deg) translateY(9px);
}

.tb-public-app[data-ui-style="playful"] .tb-public-preview-gallery figure:hover {
  z-index: 2;
  box-shadow: 0 8px 0 rgb(0 0 0 / 30%);
  transform: translateY(-6px) rotate(0);
}

.tb-public-app[data-ui-style="playful"] .tb-public-preview-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.tb-public-app[data-ui-style="playful"] .tb-public-preview-gallery figcaption {
  padding: 8px 6px;
  color: #2c3240;
  background: #fff;
  font-size: 10px;
  font-weight: 720;
  text-align: center;
}

.tb-public-app[data-ui-style="playful"] .tb-public-result-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-result-list span {
  display: inline-flex;
  align-items: center;
  color: #dce1eb !important;
  background: transparent !important;
  font-size: 11px;
  gap: 6px;
}

.tb-public-app[data-ui-style="playful"] .tb-public-result-list i {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #173f34;
  background: #afe7d3;
}

/* Functional entry and process */

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-section {
  margin-top: 16px;
  padding: 22px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 5px 8px rgb(41 25 12 / 7%) !important;
}

.tb-public-app[data-ui-style="playful"] .tb-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.tb-public-app[data-ui-style="playful"] .tb-panel-head h3 {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--lxp-ink);
  font-size: 18px;
  font-weight: 820;
  gap: 8px;
}

.tb-public-app[data-ui-style="playful"] .tb-panel-head h3 i {
  color: var(--lxp-brand);
}

.tb-public-app[data-ui-style="playful"] .tb-panel-head .tb-badge {
  padding: 6px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: var(--lxp-brand-soft);
  font-size: 10px;
  font-weight: 740;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-action-grid {
  display: grid !important;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)) !important;
  gap: 11px;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-action-card {
  position: relative;
  display: grid;
  min-height: 158px !important;
  padding: 17px !important;
  border: 1px solid var(--lxp-line) !important;
  border-radius: 12px !important;
  color: var(--lxp-ink) !important;
  background: #fff !important;
  box-shadow: none !important;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 180ms var(--lxp-ease), box-shadow 180ms var(--lxp-ease), transform 180ms var(--lxp-ease);
}

.tb-public-app[data-ui-style="playful"] .tb-action-card > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--lxp-blue-ink);
  background: var(--lxp-blue);
  font-size: 17px;
}

.tb-public-app[data-ui-style="playful"] .tb-action-card:nth-child(2) > i {
  color: var(--lxp-mint-ink);
  background: var(--lxp-mint);
}

.tb-public-app[data-ui-style="playful"] .tb-action-card:nth-child(3) > i {
  color: var(--lxp-yellow-ink);
  background: var(--lxp-yellow);
}

.tb-public-app[data-ui-style="playful"] .tb-action-card strong {
  align-self: end;
  font-size: 15px;
  font-weight: 800;
}

.tb-public-app[data-ui-style="playful"] .tb-action-card span {
  margin-top: 5px;
  color: var(--lxp-muted);
  font-size: 11px;
  line-height: 1.55;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-action-card.primary {
  border-color: var(--lxp-brand) !important;
  color: #fff !important;
  background: var(--lxp-brand) !important;
  box-shadow: 0 5px 0 var(--lxp-brand-deep) !important;
}

.tb-public-app[data-ui-style="playful"] .tb-action-card.primary > i {
  color: var(--lxp-brand-deep);
  background: #fff;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-action-card.primary :where(strong, span) {
  color: #fff !important;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-action-card:hover {
  border-color: var(--lxp-line-strong) !important;
  box-shadow: 0 4px 0 var(--lxp-line) !important;
  transform: translateY(-2px);
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-action-card.primary:hover {
  border-color: var(--lxp-brand-hover) !important;
  background: var(--lxp-brand-hover) !important;
  box-shadow: 0 7px 0 #9a3412 !important;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-action-card:active {
  box-shadow: 0 1px 0 var(--lxp-line) !important;
  transform: translateY(2px) scale(.995);
}

.tb-public-app[data-ui-style="playful"] .tb-replicate-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-replicate-steps > div {
  position: relative;
  min-width: 0;
  padding: 15px 12px 15px 49px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f5f1ec !important;
  box-shadow: none !important;
}

.tb-public-app[data-ui-style="playful"] .tb-replicate-steps > div > span {
  position: absolute;
  top: 14px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--lxp-graphite);
  box-shadow: 0 3px 0 #0f1117;
  font-size: 10px;
  font-weight: 800;
}

.tb-public-app[data-ui-style="playful"] .tb-replicate-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 780;
}

.tb-public-app[data-ui-style="playful"] .tb-replicate-steps p {
  margin: 0;
  color: var(--lxp-muted);
  font-size: 11px;
  line-height: 1.55;
}

/* Footer and legal pages */

.tb-public-app[data-ui-style="playful"] + .tb-footer,
.tb-modal-auth-page ~ .tb-footer {
  color: var(--lxp-muted);
  background: var(--lxp-canvas);
}

.tb-footer .tb-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.tb-footer a {
  color: inherit;
}

.tb-agreement-panel {
  max-width: 920px;
  margin: 24px auto;
  border-radius: 16px;
}

.tb-agreement-panel pre {
  color: var(--lxp-ink-2);
  font-family: inherit;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* Authentication surfaces */

.tb-auth-overlay,
.tb-modal-auth-page {
  --lxp-brand: #e84c41;
  --lxp-brand-hover: #d83f35;
  --lxp-brand-deep: #9a3412;
  --lxp-brand-soft: #fff7ed;
  --lxp-ink: #171923;
  --lxp-muted: var(--lxp-muted);
  --lxp-line: var(--lxp-line);
  --lxp-graphite: #20232e;
  --lxp-ease: cubic-bezier(.2, .8, .2, 1);
  font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

.tb-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(17 19 26 / 78%);
}

.tb-auth-overlay[hidden] {
  display: none !important;
}

.tb-modal-auth-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 30px;
  background: #eef1f5;
}

.tb-modal-auth-page .tb-auth-bg {
  display: none !important;
}

.tb-auth-overlay .tb-auth-modal,
.tb-modal-auth-page .tb-auth-modal {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr) !important;
  width: min(1080px, 100%) !important;
  min-height: 660px !important;
  max-height: calc(100dvh - 48px);
  border: 0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 24px 64px rgb(12 14 21 / 28%) !important;
  overflow: hidden;
}

.tb-auth-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--lxp-line);
  border-radius: 10px;
  color: #454c5c;
  background: #fff;
  box-shadow: 0 3px 0 var(--lxp-line-strong);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 170ms var(--lxp-ease), box-shadow 170ms var(--lxp-ease), transform 170ms var(--lxp-ease);
}

.tb-auth-close:hover {
  color: var(--lxp-brand);
  transform: translateY(-1px);
}

.tb-auth-close:active {
  box-shadow: 0 1px 0 var(--lxp-line-strong);
  transform: translateY(2px);
}

.tb-auth-overlay .tb-modal-left,
.tb-modal-auth-page .tb-modal-left {
  position: relative;
  display: flex !important;
  min-width: 0;
  flex-direction: column;
  padding: 36px 38px 30px !important;
  color: #fff !important;
  background: var(--lxp-graphite) !important;
  overflow: hidden;
}

.tb-modal-left::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 12px;
  background: var(--lxp-brand);
  pointer-events: none;
}

.tb-modal-left::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 170px;
  height: 170px;
  border: 36px solid rgb(234 88 12 / 38%);
  border-radius: 50%;
  pointer-events: none;
}

.tb-auth-overlay .tb-modal-brand,
.tb-modal-auth-page .tb-modal-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #fff !important;
  font-size: 15px;
  font-weight: 820;
  text-decoration: none;
  gap: 11px;
}

.tb-modal-brand > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #f2aaa4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 0 #ef9d96;
  overflow: hidden;
}

.tb-modal-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tb-modal-copy {
  position: relative;
  z-index: 2;
  margin-top: 34px;
}

.tb-auth-overlay .tb-modal-copy h1,
.tb-modal-auth-page .tb-modal-copy h1 {
  max-width: 10ch;
  margin: 0;
  color: #fff !important;
  font-size: 37px;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
}

.tb-auth-overlay .tb-modal-copy p,
.tb-modal-auth-page .tb-modal-copy p {
  max-width: 35ch;
  margin: 14px 0 0;
  color: #cdd2dc !important;
  font-size: 13px;
  line-height: 1.75;
}

.tb-modal-work-samples {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 1.12fr .92fr .92fr;
  align-items: end;
  min-height: 270px;
  margin: 26px 10px 20px;
  gap: 10px;
}

.tb-modal-work-samples figure {
  min-width: 0;
  margin: 0;
  border: 3px solid #fff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 0 rgb(0 0 0 / 30%);
  overflow: hidden;
  transform-origin: bottom center;
  transition: transform 190ms var(--lxp-ease), box-shadow 190ms var(--lxp-ease);
}

.tb-modal-work-samples figure:nth-child(1) {
  transform: rotate(-3deg) translateY(4px);
}

.tb-modal-work-samples figure:nth-child(2) {
  transform: rotate(3deg) translateY(-11px);
}

.tb-modal-work-samples figure:nth-child(3) {
  transform: rotate(-2deg) translateY(8px);
}

.tb-modal-work-samples figure:hover {
  z-index: 3;
  box-shadow: 0 9px 0 rgb(0 0 0 / 32%);
  transform: translateY(-5px) rotate(0);
}

.tb-modal-work-samples img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.tb-modal-pills {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tb-modal-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  color: #e2e6ee;
  background: var(--lxp-graphite-2, #2b241d);
  font-size: 10px;
  font-weight: 690;
  gap: 5px;
}

.tb-modal-pills i {
  color: #f4a29b;
}

.tb-auth-overlay .tb-modal-right,
.tb-modal-auth-page .tb-modal-right {
  min-width: 0;
  padding: 64px 44px 36px !important;
  background: #fff !important;
  overflow: auto;
}

.tb-modal-right > h2 {
  margin: 0 0 24px;
  color: var(--lxp-ink);
  font-size: 26px;
  font-weight: 840;
  letter-spacing: 0;
}

.tb-auth-overlay .tb-modal-tabs,
.tb-modal-auth-page .tb-modal-tabs {
  display: flex;
  margin-bottom: 24px;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f5f1ec !important;
  box-shadow: none !important;
  gap: 4px;
}

.tb-auth-overlay .tb-modal-tabs:has(> button:only-child),
.tb-modal-auth-page .tb-modal-tabs:has(> button:only-child) {
  display: none !important;
}

.tb-auth-overlay .tb-modal-tabs button,
.tb-modal-auth-page .tb-modal-tabs button {
  position: relative;
  flex: 1 1 0;
  min-height: 42px !important;
  padding: 0 10px;
  border: 0 !important;
  border-radius: 8px !important;
  color: #60687a !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
  transition: color 170ms var(--lxp-ease), background-color 170ms var(--lxp-ease), box-shadow 170ms var(--lxp-ease), transform 170ms var(--lxp-ease);
}

.tb-auth-overlay .tb-modal-tabs button:hover,
.tb-modal-auth-page .tb-modal-tabs button:hover {
  color: var(--lxp-ink) !important;
}

.tb-auth-overlay .tb-modal-tabs button.active,
.tb-auth-overlay .tb-modal-tabs button[aria-selected="true"],
.tb-modal-auth-page .tb-modal-tabs button.active,
.tb-modal-auth-page .tb-modal-tabs button[aria-selected="true"] {
  color: #9a3412 !important;
  background: #fff !important;
  box-shadow: 0 3px 0 #d0d5de !important;
}

.tb-auth-overlay .tb-modal-tabs button::after,
.tb-modal-auth-page .tb-modal-tabs button::after {
  display: none !important;
  content: none !important;
}

.tb-auth-panel,
.tb-auth-variant {
  display: none;
}

.tb-auth-panel.active,
.tb-auth-variant.active {
  display: grid;
  gap: 13px;
}

.tb-auth-overlay .tb-auth-field,
.tb-modal-auth-page .tb-auth-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 50px;
  border: 1px solid #cbd1db !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color 170ms var(--lxp-ease), box-shadow 170ms var(--lxp-ease), background-color 170ms var(--lxp-ease);
}

.tb-auth-overlay .tb-auth-field:hover,
.tb-modal-auth-page .tb-auth-field:hover {
  border-color: #abb3c1 !important;
}

.tb-auth-overlay .tb-auth-field:focus-within,
.tb-modal-auth-page .tb-auth-field:focus-within {
  border-color: var(--lxp-brand) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgb(234 88 12 / 10%) !important;
}

.tb-auth-field.prefix {
  grid-template-columns: auto minmax(0, 1fr);
}

.tb-auth-field.action {
  grid-template-columns: minmax(0, 1fr) auto;
}

.tb-auth-field > span {
  display: flex;
  align-items: center;
  min-width: 60px;
  padding: 0 14px;
  border-right: 1px solid var(--lxp-line);
  color: #353c4c;
  background: #f5f1ec;
  font-size: 12px;
  font-weight: 720;
}

.tb-auth-field input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: var(--lxp-ink);
  background: transparent;
  font-size: 13px;
}

.tb-auth-field input::placeholder {
  color: var(--lxp-muted);
  opacity: 1;
}

.tb-auth-overlay .tb-auth-field.action button,
.tb-modal-auth-page .tb-auth-field.action button {
  min-width: 110px;
  min-height: 50px;
  padding: 0 13px;
  border: 0 !important;
  border-left: 1px solid var(--lxp-line) !important;
  border-radius: 0 !important;
  color: #9a3412 !important;
  background: #fff7ed !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 760;
}

.tb-auth-overlay .tb-auth-field.action button:hover,
.tb-modal-auth-page .tb-auth-field.action button:hover {
  color: #7c211c !important;
  background: #ffe7e3 !important;
  transform: none;
}

.tb-modal-agree,
.tb-auth-agreement {
  display: flex !important;
  align-items: flex-start;
  margin: 0;
  color: var(--lxp-muted);
  font-size: 11px;
  line-height: 1.65;
  gap: 8px;
}

.tb-modal-agree input,
.tb-auth-agreement input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--lxp-brand);
}

.tb-modal-agree a,
.tb-auth-agreement a,
.tb-auth-row a {
  color: #9a3412;
  font-weight: 720;
  text-decoration: none;
}

.tb-modal-agree a:hover,
.tb-auth-agreement a:hover,
.tb-auth-row a:hover {
  color: var(--lxp-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tb-auth-submit {
  width: 100%;
  min-height: 50px !important;
}

.tb-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--lxp-muted);
  font-size: 11px;
  gap: 12px;
}

.tb-auth-muted {
  margin: 0;
  color: var(--lxp-muted);
  font-size: 12px;
  line-height: 1.75;
}

.tb-auth-center {
  text-align: center;
}

.tb-qr-box {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  margin: 2px auto 0;
  border: 1px solid var(--lxp-line);
  border-radius: 12px;
  color: var(--lxp-brand);
  background: #f5f1ec;
  font-size: 54px;
}

.tb-auth-oauth-actions {
  display: grid;
  gap: 9px;
}

.tb-auth-overlay .tb-status,
.tb-modal-auth-page .tb-status {
  min-height: 0;
  color: var(--lxp-muted);
  font-size: 11px;
}

.tb-auth-overlay .tb-status:not(:empty),
.tb-modal-auth-page .tb-status:not(:empty) {
  padding: 10px 11px;
  border-radius: 10px;
  background: #f2f4f7;
}

.tb-auth-overlay .tb-status.ok:not(:empty),
.tb-modal-auth-page .tb-status.ok:not(:empty) {
  color: #17634f;
  background: #e5f6ef;
}

.tb-auth-overlay .tb-status.error:not(:empty),
.tb-modal-auth-page .tb-status.error:not(:empty),
.tb-auth-overlay [data-ui-feedback="error"],
.tb-modal-auth-page [data-ui-feedback="error"] {
  color: #922b34;
  background: #fff0f2;
}

.tb-auth-overlay [data-ui-submit-state="loading"] .tb-auth-submit,
.tb-modal-auth-page [data-ui-submit-state="loading"] .tb-auth-submit,
.tb-auth-overlay [data-loading="true"],
.tb-modal-auth-page [data-loading="true"] {
  cursor: progress;
  opacity: .72;
}

.tb-auth-binding-card {
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(520px, 100%) !important;
  min-height: 0 !important;
}

.tb-auth-binding-card .tb-modal-right {
  padding: 58px 38px 36px !important;
}

/* Tablet */

@media (max-width: 1180px) {
  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-sidebar {
    flex-basis: 220px !important;
    width: 220px !important;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-main {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-studio {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr) !important;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-copy {
    padding: 36px 28px !important;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-copy h1 {
    font-size: 35px !important;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-sidebar {
    flex-basis: 204px !important;
    width: 204px !important;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-studio {
    display: block !important;
    min-height: 0 !important;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-result {
    min-height: 500px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-replicate-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-auth-overlay .tb-auth-modal,
  .tb-modal-auth-page .tb-auth-modal {
    grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr) !important;
  }

  .tb-auth-overlay .tb-modal-left,
  .tb-modal-auth-page .tb-modal-left {
    padding: 30px 26px 26px !important;
  }

  .tb-auth-overlay .tb-modal-copy h1,
  .tb-modal-auth-page .tb-modal-copy h1 {
    font-size: 31px;
  }

  .tb-auth-overlay .tb-modal-right,
  .tb-modal-auth-page .tb-modal-right {
    padding-right: 28px !important;
    padding-left: 28px !important;
  }
}

/* Mobile: 390px target */

@media (max-width: 767px) {
  .tb-public-app[data-ui-style="playful"] {
    display: block !important;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-sidebar {
    position: sticky !important;
    top: 0;
    z-index: 35;
    display: flex !important;
    width: 100% !important;
    height: 62px !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--lxp-line) !important;
    background: #fff !important;
    box-shadow: 0 4px 8px rgb(31 36 50 / 7%) !important;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-sidebar .tb-brand {
    min-height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .tb-public-app[data-ui-style="playful"] .tb-brand-mark {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-brand-text {
    font-size: 14px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-nav,
  .tb-public-app[data-ui-style="playful"] .tb-public-user {
    display: none;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-main {
    padding: 10px 10px 28px !important;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-topbar {
    top: 70px;
    min-height: 56px !important;
    margin-bottom: 10px;
    padding: 7px 8px 7px 11px !important;
    border-radius: 10px !important;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-topbar strong {
    font-size: 13px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-topbar span {
    font-size: 10px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-topbar .tb-btn {
    min-height: 40px;
    padding: 0 12px;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-studio {
    display: block !important;
    min-height: 0 !important;
    border-radius: 14px !important;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-copy {
    padding: 25px 16px 21px !important;
  }

  .tb-public-app[data-ui-style="playful"] .tb-inspire-stage {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    width: 100%;
    margin-bottom: 17px;
    padding: 8px 9px;
    gap: 5px 13px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-inspire-stage i {
    display: none;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-copy h1 {
    max-width: 14ch;
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-copy > p {
    margin: 13px 0 19px;
    font-size: 13px;
    line-height: 1.7;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-link-form {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 0;
    padding: 8px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-link-form input {
    height: 48px;
    padding-right: 2px;
    font-size: 13px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-link-form .tb-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    height: 48px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-supported-row {
    gap: 6px;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-result {
    min-height: 0;
    padding: 21px 16px 22px !important;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-result .tb-studio-head h3 {
    font-size: 18px;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-preview-gallery {
    grid-template-columns: 1.08fr .92fr .92fr !important;
    min-height: 236px;
    margin: 20px 0 17px;
    gap: 7px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-preview-gallery figure {
    border-width: 2px;
    border-radius: 9px;
    box-shadow: 0 4px 0 rgb(0 0 0 / 28%);
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-preview-gallery figcaption {
    display: none;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-result-list {
    display: grid;
    gap: 7px;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-public-section {
    margin-top: 10px;
    padding: 16px 12px !important;
    border-radius: 14px !important;
  }

  .tb-public-app[data-ui-style="playful"] .tb-panel-head {
    margin-bottom: 12px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-panel-head h3 {
    font-size: 16px;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-action-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px;
  }

  .tb-public-app[data-ui-version="2"][data-ui-style="playful"] .tb-action-card {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 104px !important;
    padding: 14px !important;
    column-gap: 11px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-action-card > i {
    grid-row: 1 / 3;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .tb-public-app[data-ui-style="playful"] .tb-action-card strong {
    align-self: end;
  }

  .tb-public-app[data-ui-style="playful"] .tb-action-card span {
    grid-column: 2;
    margin-top: 3px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-replicate-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-auth-overlay {
    align-items: start;
    padding: 8px;
    overflow: auto;
  }

  .tb-modal-auth-page {
    align-items: start;
    padding: 8px;
  }

  .tb-auth-overlay .tb-auth-modal,
  .tb-modal-auth-page .tb-auth-modal {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: none;
    border-radius: 14px !important;
  }

  .tb-auth-overlay .tb-modal-left,
  .tb-modal-auth-page .tb-modal-left {
    display: block !important;
    min-height: 158px;
    padding: 20px 18px !important;
  }

  .tb-modal-left::before {
    width: 74px;
    height: 8px;
  }

  .tb-modal-left::after,
  .tb-modal-copy,
  .tb-modal-pills {
    display: none;
  }

  .tb-modal-brand > span {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .tb-modal-work-samples {
    position: absolute;
    right: 18px;
    bottom: 14px;
    width: 194px;
    min-height: 0;
    margin: 0;
    gap: 5px;
  }

  .tb-modal-work-samples figure {
    border-width: 2px;
    border-radius: 8px;
    box-shadow: 0 4px 0 rgb(0 0 0 / 30%);
  }

  .tb-auth-overlay .tb-modal-right,
  .tb-modal-auth-page .tb-modal-right {
    padding: 54px 16px 22px !important;
    overflow: visible;
  }

  .tb-modal-right > h2 {
    margin-bottom: 18px;
    font-size: 23px;
  }

  .tb-auth-close {
    top: 172px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    font-size: 21px;
  }

  .tb-auth-overlay .tb-modal-tabs,
  .tb-modal-auth-page .tb-modal-tabs {
    margin-bottom: 18px;
  }

  .tb-auth-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .tb-auth-overlay .tb-auth-field.action button,
  .tb-modal-auth-page .tb-auth-field.action button {
    min-width: 98px;
    padding: 0 10px;
  }

  .tb-auth-binding-card .tb-modal-right {
    padding: 58px 18px 24px !important;
  }

  .tb-auth-binding-card .tb-auth-close {
    top: 14px;
  }
}

@media (max-width: 420px) {
  .tb-public-app[data-ui-style="playful"] .tb-public-topbar span {
    max-width: 20ch;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-topbar .tb-btn {
    padding: 0 10px;
    font-size: 12px;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-result .tb-badge {
    display: none;
  }

  .tb-modal-work-samples {
    width: 174px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-public-app[data-ui-style="playful"] *,
  .tb-public-app[data-ui-style="playful"] *::before,
  .tb-public-app[data-ui-style="playful"] *::after,
  .tb-auth-overlay *,
  .tb-auth-overlay *::before,
  .tb-auth-overlay *::after,
  .tb-modal-auth-page *,
  .tb-modal-auth-page *::before,
  .tb-modal-auth-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .tb-public-app[data-ui-style="playful"] .tb-public-preview-gallery figure,
  .tb-modal-work-samples figure {
    transform: none !important;
  }
}

/* Revision 3 committed brand hero: vivid outside, restrained inside the app. */
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-studio {
  border: 0 !important;
  box-shadow: 0 6px 0 var(--lxp-line) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-copy {
  position: relative;
  overflow: hidden;
  color: #fff !important;
  background: linear-gradient(132deg, #b91c1c, #dc2626 30%, #ea580c 68%, #d97706) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-copy::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgb(253 224 71 / 30%), transparent);
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-copy > * {
  position: relative;
  z-index: 1;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-copy h1 {
  color: #fff !important;
  text-wrap: balance;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-copy > p {
  color: #ffedd5 !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-inspire-stage {
  border-color: rgb(255 255 255 / 34%) !important;
  color: #fff !important;
  background: rgb(120 30 5 / 28%) !important;
  box-shadow: none !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-inspire-stage :where(span, i) {
  color: #fff !important;
  border-color: rgb(255 255 255 / 42%) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-link-form {
  border-color: #fff !important;
  background: #fff !important;
  box-shadow: 0 5px 0 rgb(120 30 5 / 55%) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-link-form > i { color: var(--lxp-brand) !important; }
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-link-form input { color: #1c1917 !important; }
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-link-form input::placeholder { color: var(--lxp-muted) !important; }

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-link-form .tb-btn {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(118deg, #1d1814, #2b241d) !important;
  box-shadow: 0 3px 0 #0c0a08 !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-supported-row span {
  border-color: rgb(255 255 255 / 28%) !important;
  color: #fff !important;
  background: rgb(120 30 5 / 24%) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card.primary {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(132deg, #1d1814, #2b241d) !important;
  box-shadow: 0 5px 0 #0c0a08, inset 0 3px 0 var(--lxp-brand) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card.primary:hover {
  background: linear-gradient(132deg, #241d16, #352c22) !important;
  box-shadow: 0 7px 0 #0c0a08, inset 0 3px 0 var(--lxp-flame-gold) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card.primary > i {
  color: var(--lxp-brand) !important;
  background: #fff7ed !important;
}

@media (max-width: 767px) {
  .tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-copy {
    padding-top: 26px !important;
    padding-bottom: 24px !important;
  }

  .tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-copy h1 { font-size: 30px !important; }
  .tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-link-form { margin-top: 20px; }
}

/* Revision 3 · 焰火细节升级：完整流程步骤卡 */

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-replicate-steps {
  gap: 10px;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-replicate-steps > div {
  display: block !important;
  padding: 16px 14px 15px 52px !important;
  border: 1px solid #efe7dd !important;
  border-radius: 12px !important;
  background: #fdfaf6 !important;
  transition: transform .18s var(--lxp-ease), border-color .18s var(--lxp-ease), box-shadow .18s var(--lxp-ease);
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-replicate-steps > div:hover {
  border-color: #f6c9a8 !important;
  box-shadow: 0 10px 24px -14px rgb(234 88 12 / 35%) !important;
  transform: translateY(-2px);
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-replicate-steps > div > span {
  top: 15px;
  left: 13px;
  border-radius: 9px;
  background: var(--lxp-flame-grad);
  box-shadow: 0 3px 0 var(--lxp-brand-deep);
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-replicate-steps strong {
  white-space: nowrap;
  font-size: 13.5px;
}

/* Revision 3 · 焰火科技质感：层次光影系统（公开页） */

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] {
  --lxp-elev-1: 0 1px 2px rgb(30 18 8 / 5%), 0 8px 20px -10px rgb(30 18 8 / 12%);
  --lxp-elev-2: 0 2px 4px rgb(30 18 8 / 6%), 0 20px 44px -18px rgb(194 65 12 / 20%);
  --lxp-glow: 0 8px 26px -8px rgb(234 88 12 / 45%);
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-main {
  background:
    radial-gradient(1100px 480px at 86% -6%, rgb(249 115 22 / 6%), transparent 62%),
    radial-gradient(circle at 1px 1px, rgb(28 25 23 / 6%) 1px, transparent 1.6px),
    var(--lxp-canvas) !important;
  background-size: auto, 23px 23px, auto;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-topbar {
  background: rgb(255 253 250 / 78%) !important;
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%), 0 8px 24px -14px rgb(30 18 8 / 22%) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-copy {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%), 0 24px 48px -20px rgb(194 65 12 / 45%) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-result {
  background:
    linear-gradient(rgb(255 255 255 / 3.5%) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, rgb(255 255 255 / 3.5%) 1px, transparent 1px) 0 0 / 36px 100%,
    var(--lxp-graphite) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 24px 48px -20px rgb(12 8 4 / 60%) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-preview-gallery figure {
  border-width: 4px;
  border-radius: 13px;
  box-shadow: 0 12px 24px -10px rgb(0 0 0 / 60%), 0 30px 56px -22px rgb(234 88 12 / 38%);
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-preview-gallery figure:hover {
  box-shadow: 0 18px 34px -12px rgb(0 0 0 / 62%), 0 36px 68px -22px rgb(234 88 12 / 52%);
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-preview-gallery img {
  transition: transform 260ms var(--lxp-ease);
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-preview-gallery figure:hover img {
  transform: scale(1.045);
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-preview-gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px 8px 8px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgb(12 8 4 / 82%));
  font-size: 10.5px;
  letter-spacing: .02em;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-link-form {
  box-shadow: var(--lxp-elev-2), inset 0 1px 0 rgb(255 255 255 / 90%) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-link-form .tb-btn.primary {
  background: var(--lxp-flame-grad) !important;
  box-shadow: var(--lxp-glow) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card {
  border: 1px solid var(--lxp-line) !important;
  box-shadow: var(--lxp-elev-1) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card:hover {
  border-color: rgb(234 88 12 / 45%) !important;
  box-shadow: var(--lxp-elev-2), 0 0 0 1px rgb(234 88 12 / 30%) !important;
  transform: translateY(-3px);
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card.primary {
  box-shadow: inset 0 3px 0 var(--lxp-brand), 0 18px 38px -14px rgb(12 8 4 / 55%) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card.primary:hover {
  box-shadow: inset 0 3px 0 var(--lxp-flame-gold), 0 22px 44px -14px rgb(194 65 12 / 55%) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-replicate-steps > div {
  box-shadow: var(--lxp-elev-1) !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-replicate-steps > div > span,
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-supported-row span,
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-badge {
  font-variant-numeric: tabular-nums;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-sidebar {
  box-shadow: 4px 0 18px -12px rgb(30 18 8 / 18%) !important;
}

@media (prefers-reduced-motion: reduce) {
  .tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-preview-gallery img {
    transition: none;
  }
}

/* ============================================================
 * Revision 3 · 方案B「曜金蓝图」卡片语言（公开页）
 * 蓝图网格画布 + 白卡斜切角/焰火发丝描边/角标括号 + 白框装裱画廊
 * ============================================================ */

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] {
  --lxp-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* 画布：点阵换成蓝图细线网格 */
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-main {
  background:
    radial-gradient(1100px 480px at 86% -6%, rgb(249 115 22 / 7%), transparent 62%),
    linear-gradient(rgb(28 25 23 / 4%) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgb(28 25 23 / 4%) 1px, transparent 1px) 0 0 / 28px 100%,
    var(--lxp-canvas) !important;
  background-size: auto, 100% 28px, 28px 100%, auto;
}

/* 工具卡：白卡 + 焰火发丝渐变描边 + 右上斜切角 + 左下角标括号 */
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card:not(.primary) {
  position: relative;
  border: 1px solid transparent !important;
  background:
    linear-gradient(180deg, #ffffff, #fffdf8) padding-box,
    linear-gradient(165deg, rgb(234 88 12 / 50%), rgb(28 25 23 / 12%) 38%, rgb(28 25 23 / 10%) 62%, rgb(245 158 11 / 55%)) border-box !important;
  overflow: visible;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card:not(.primary)::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  border-radius: 0 14px 0 0;
  background: linear-gradient(45deg, transparent calc(50% - 1.5px), #ea580c calc(50% - 1.5px), #f59e0b calc(50% + 1.5px), var(--lxp-canvas) calc(50% + 1.5px));
  pointer-events: none;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card:not(.primary)::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border: 2px solid rgb(234 88 12 / 65%);
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 14px;
  pointer-events: none;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card:not(.primary):hover {
  background:
    linear-gradient(180deg, #fffdf8, #fff6ea) padding-box,
    linear-gradient(165deg, #f59e0b, #ea580c 45%, #dc2626) border-box !important;
}

/* 主推卡（曜石炭）：顶部焰火光刃 */
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card.primary {
  position: relative;
  overflow: hidden;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-action-card.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lxp-flame-grad);
  filter: drop-shadow(0 2px 8px rgb(234 88 12 / 70%));
  pointer-events: none;
}

/* 真实生成效果面板：顶条光刃加辉光 + 右下角标 */
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-result::before {
  filter: drop-shadow(0 2px 10px rgb(234 88 12 / 65%));
}

/* 画廊：白框装裱 + 焰火衬线 */
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-public-preview-gallery figure {
  border: 4px solid #fff !important;
  outline: 1px solid rgb(234 88 12 / 40%);
}

/* 流程步骤卡：同白卡语言 + 等宽数字 */
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-replicate-steps > div {
  border: 1px solid transparent !important;
  background:
    linear-gradient(180deg, #ffffff, #fffdf8) padding-box,
    linear-gradient(165deg, rgb(234 88 12 / 40%), rgb(28 25 23 / 10%) 40%, rgb(28 25 23 / 9%) 64%, rgb(245 158 11 / 45%)) border-box !important;
}

.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-replicate-steps > div > span {
  font-family: var(--lxp-mono);
  letter-spacing: .04em;
}

/* 读数类小徽章统一等宽字体（解析 0 点 / 点数 等） */
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-supported-row span:last-child,
.tb-public-app[data-ui-revision="3"][data-ui-style="playful"] .tb-badge {
  font-family: var(--lxp-mono);
  font-size: 10px;
  letter-spacing: .05em;
}
