:root {
  color-scheme: light;
  --tl-bg: #f5f5f7;
  --tl-panel: rgba(255, 255, 255, 0.82);
  --tl-panel-strong: rgba(255, 255, 255, 0.96);
  --tl-line: rgba(25, 28, 36, 0.12);
  --tl-text: #121417;
  --tl-muted: #707783;
  --tl-soft: #e8ebef;
  --tl-blue: #0071e3;
  --tl-blue-dark: #0058b8;
  --tl-green: #35c759;
  --tl-shadow: 0 24px 60px rgba(21, 27, 38, 0.12);
  --tl-radius: 22px;
}

.text-lut-page .tl-shell,
.text-lut-page .tl-shell *,
.text-lut-page .style-pay-modal,
.text-lut-page .style-pay-modal * {
  box-sizing: border-box;
}

body.text-lut-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,0.95), rgba(255,255,255,0) 28%),
    linear-gradient(135deg, #f8f9fb 0%, #eef1f5 48%, #f6f7f9 100%);
  color: var(--tl-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.text-lut-page .tl-shell button,
.text-lut-page .tl-shell textarea,
.text-lut-page .tl-shell input,
.text-lut-page .style-pay-modal button,
.text-lut-page .style-pay-modal textarea,
.text-lut-page .style-pay-modal input {
  font: inherit;
}

.text-lut-page .tl-shell button,
.text-lut-page .style-pay-modal button {
  border: 0;
  cursor: pointer;
}

.tl-shell {
  min-height: calc(100vh - 96px);
  padding: 22px;
}

.tl-workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
  max-width: 1520px;
  min-height: calc(100vh - 140px);
  margin: 0 auto;
}

.tl-sidebar,
.tl-stage {
  border: 1px solid var(--tl-line);
  background: var(--tl-panel);
  box-shadow: var(--tl-shadow);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.tl-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--tl-radius);
  padding: 18px;
}

.tl-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: var(--tl-radius);
  padding: 18px;
  overflow: hidden;
}

.tl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 10px;
}

.tl-brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0,113,227,0.95), rgba(82,142,255,0.9)),
    linear-gradient(180deg, #fff, #dce8ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 12px 28px rgba(0,113,227,0.24);
  position: relative;
}

.tl-brand__mark::before,
.tl-brand__mark::after {
  content: "";
  position: absolute;
  background: #fff;
}

.tl-brand__mark::before {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  left: 9px;
  top: 9px;
  opacity: 0.88;
}

.tl-brand__mark::after {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  right: 10px;
  bottom: 10px;
  opacity: 0.72;
}

.tl-brand h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 760;
}

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

.tl-cost-note {
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 14px;
  padding: 11px 12px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0.92));
  color: #35506f;
  font-size: 12px;
  line-height: 1.55;
}

.tl-panel {
  border: 1px solid var(--tl-line);
  border-radius: 18px;
  padding: 14px;
  background: var(--tl-panel-strong);
}

.tl-panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tl-panel__head span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--tl-blue);
  font-size: 12px;
  font-weight: 700;
}

.tl-panel__head strong {
  font-size: 15px;
}

.tl-upload {
  display: block;
  position: relative;
  min-height: 188px;
  aspect-ratio: 4 / 3;
  border: 1px dashed rgba(0, 113, 227, 0.35);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f9fc, #edf1f6);
  transition: min-height 0.18s ease, aspect-ratio 0.18s ease, border-color 0.18s ease;
}

.tl-upload.has-image {
  border-style: solid;
  border-color: rgba(25, 28, 36, 0.10);
  background: #f8fafc;
}

.tl-upload.is-landscape {
  aspect-ratio: 16 / 10;
}

.tl-upload.is-portrait {
  min-height: 246px;
  aspect-ratio: 4 / 5;
}

.tl-upload.is-square {
  min-height: 220px;
  aspect-ratio: 1 / 1;
}

.tl-upload input {
  display: none;
}

.tl-upload img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
  border-radius: 12px;
  display: none;
}

.tl-upload.has-image img {
  display: block;
}

.tl-upload__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--tl-muted);
  text-align: center;
}

.tl-upload__empty span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.12);
  position: relative;
}

.tl-upload__empty span::before,
.tl-upload__empty span::after {
  content: "";
  position: absolute;
  background: var(--tl-blue);
  border-radius: 2px;
}

.tl-upload__empty span::before {
  width: 20px;
  height: 3px;
  left: 12px;
  top: 21px;
}

.tl-upload__empty span::after {
  width: 3px;
  height: 20px;
  left: 21px;
  top: 12px;
}

.tl-upload.has-image .tl-upload__empty {
  display: none;
}

.tl-counter {
  margin-top: 8px;
  color: var(--tl-muted);
  font-size: 12px;
}

.tl-prompt {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid var(--tl-line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--tl-text);
  background: #f7f8fa;
  outline: none;
  line-height: 1.55;
}

.tl-prompt:focus {
  border-color: rgba(0, 113, 227, 0.48);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
  background: #fff;
}

.tl-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tl-chip-grid button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f0f2f5;
  color: #303640;
  font-size: 13px;
}

.tl-chip-grid button:hover,
.tl-chip-grid button.is-active {
  background: #e3efff;
  color: var(--tl-blue);
}

.tl-control {
  display: grid;
  gap: 9px;
}

.tl-control div {
  display: flex;
  justify-content: space-between;
  color: var(--tl-muted);
  font-size: 13px;
}

.tl-control output {
  color: var(--tl-text);
  font-weight: 700;
}

.tl-control input[type="range"] {
  width: 100%;
  accent-color: var(--tl-blue);
}

.tl-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border-radius: 13px;
  background: #eef0f4;
}

.tl-segment button {
  height: 34px;
  border-radius: 10px;
  background: transparent;
  color: var(--tl-muted);
  font-size: 13px;
}

.tl-segment button.is-active {
  background: #fff;
  color: var(--tl-text);
  box-shadow: 0 3px 9px rgba(20, 28, 40, 0.10);
}

.tl-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.tl-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #39404a;
  font-size: 13px;
  user-select: none;
}

.tl-toggle input {
  display: none;
}

.tl-toggle span {
  width: 39px;
  height: 23px;
  border-radius: 999px;
  background: #d7dbe2;
  position: relative;
  transition: background 0.16s ease;
  flex: 0 0 auto;
}

.tl-toggle span::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.22);
  transition: transform 0.16s ease;
}

.tl-toggle input:checked + span {
  background: var(--tl-green);
}

.tl-toggle input:checked + span::after {
  transform: translateX(16px);
}

.tl-actions {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
  margin-top: auto;
}

.tl-form-error {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(210, 38, 48, 0.22);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff1f2;
  color: #c01824;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.tl-form-error[hidden] {
  display: none;
}

.tl-button {
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
}

.tl-button--primary {
  color: #fff;
  background: linear-gradient(180deg, #1682f4, #0069d9);
  box-shadow: 0 12px 25px rgba(0, 113, 227, 0.26);
}

.tl-button--primary:hover {
  background: linear-gradient(180deg, #0877e5, #005fc5);
}

.tl-button--ghost {
  color: #303640;
  background: #edf0f4;
}

.tl-button__icon {
  width: 17px;
  height: 17px;
  position: relative;
}

.tl-button__icon--spark::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
}

.tl-button__icon--reset::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
}

.tl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 2px 2px 10px;
}

.tl-topbar[hidden] {
  display: none;
}

.tl-status {
  display: grid;
  grid-template-columns: 12px auto;
  column-gap: 10px;
  align-items: center;
}

.tl-status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aeb5bf;
}

.tl-status.is-ready span {
  background: var(--tl-green);
}

.tl-status.is-running span {
  background: var(--tl-blue);
  box-shadow: 0 0 0 6px rgba(0,113,227,0.13);
}

.tl-status strong {
  font-size: 16px;
}

.tl-status small {
  grid-column: 2;
  color: var(--tl-muted);
  font-size: 12px;
  margin-top: 2px;
}

.tl-topbar__actions {
  display: flex;
  gap: 9px;
}

.tl-icon-button {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--tl-line);
  position: relative;
}

.tl-icon-button:hover {
  border-color: rgba(0, 113, 227, 0.34);
}

.tl-icon-button::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid #252b33;
  border-radius: 4px;
}

.tl-icon-button::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 2px;
  left: 15px;
  top: 13px;
  background: #252b33;
}

.tl-icon-button--download::before {
  inset: auto 12px 10px 12px;
  height: 7px;
  border-top: 0;
}

.tl-icon-button--download::after {
  width: 14px;
  height: 14px;
  left: 14px;
  top: 10px;
  background: transparent;
  border-right: 2px solid #252b33;
  border-bottom: 2px solid #252b33;
  transform: rotate(45deg);
}

.tl-icon-button.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.tl-compare-card {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 1px solid var(--tl-line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.tl-preview-card__head {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--tl-line);
}

.tl-preview-card__head strong {
  font-size: 15px;
}

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

.tl-preview-card__badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl-preview-card__badges span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #f2f4f7;
}

.tl-compare-viewport {
  position: relative;
  flex: 1;
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 240, 252, 0.92) 44%, rgba(246, 249, 247, 0.94) 100%),
    linear-gradient(115deg, rgba(0, 113, 227, 0.18), rgba(255, 255, 255, 0) 42%),
    linear-gradient(245deg, rgba(53, 199, 89, 0.14), rgba(255, 255, 255, 0) 46%);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.tl-compare-viewport::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(25, 28, 36, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(246, 249, 253, 0.32)),
    linear-gradient(90deg, rgba(0, 113, 227, 0.12), rgba(255, 255, 255, 0) 48%, rgba(53, 199, 89, 0.10));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 20px 70px rgba(45, 65, 95, 0.10);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  pointer-events: none;
}

.tl-compare-viewport.has-result::before {
  display: none;
}

.tl-compare-viewport.has-result {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #f6f8fb;
  touch-action: auto;
}

.tl-compare-viewport.has-result.is-stack {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}

.tl-compare-viewport.has-result.is-side-by-side {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
}

.tl-compare-viewport.has-result.is-side-by-side.is-portrait {
  min-height: 620px;
}

.tl-compare-viewport.has-result.is-stack.is-landscape,
.tl-compare-viewport.has-result.is-stack.is-square {
  min-height: 560px;
}

.tl-compare-image {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  border-radius: 14px;
  display: none;
  z-index: 1;
  pointer-events: none;
}

.tl-compare-viewport.has-result .tl-compare-image--before,
.tl-compare-viewport.has-result .tl-compare-image--after {
  display: block;
}

.tl-compare-viewport.has-result .tl-compare-image {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(21, 26, 34, 0.08);
  background: #eef2f7;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tl-compare-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  clip-path: inset(0 0 0 50%);
}

.tl-compare-viewport.has-result .tl-compare-after {
  position: relative;
  inset: auto;
  display: block;
  overflow: visible;
  pointer-events: none;
  clip-path: none !important;
}

.tl-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 56px;
  transform: translateX(-50%);
  cursor: ew-resize;
  display: none;
  z-index: 4;
}

.tl-compare-viewport.has-result .tl-compare-handle {
  display: none;
}

.tl-compare-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.78);
  transform: translateX(-50%);
}

.tl-compare-handle__knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #171a20;
}

.tl-compare-handle__knob::before,
.tl-compare-handle__knob::after {
  font-weight: 760;
  font-size: 16px;
  line-height: 1;
}

.tl-compare-handle__knob::before {
  content: "<";
}

.tl-compare-handle__knob::after {
  content: ">";
}

.tl-compare-slider {
  display: none;
}

.tl-compare-label {
  position: absolute;
  top: 16px;
  z-index: 2;
  min-height: 28px;
  display: none;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(10, 12, 16, 0.48);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tl-compare-viewport.has-result .tl-compare-label {
  display: inline-flex;
}

.tl-compare-label--before {
  left: 28px;
}

.tl-compare-label--after {
  right: 28px;
}

.tl-compare-viewport.has-result.is-stack .tl-compare-label--before {
  left: 28px;
  top: 28px;
}

.tl-compare-viewport.has-result.is-stack .tl-compare-label--after {
  right: 28px;
  top: calc(50% + 22px);
}

.tl-compare-viewport.has-result.is-side-by-side .tl-compare-label--before,
.tl-compare-viewport.has-result.is-side-by-side .tl-compare-label--after {
  top: 28px;
}

.tl-preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}

.tl-preview-empty[hidden] {
  display: none;
}

.tl-preview-empty__copy {
  max-width: min(460px, calc(100% - 64px));
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 22px 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 24px 70px rgba(24, 36, 55, 0.12);
  backdrop-filter: blur(26px) saturate(1.18);
  -webkit-backdrop-filter: blur(26px) saturate(1.18);
  text-align: center;
}

.tl-preview-empty__copy strong {
  color: #161a22;
  font-size: 18px;
  font-weight: 780;
}

.tl-preview-empty__copy small {
  color: #5f6875;
  font-size: 14px;
  line-height: 1.55;
}

.tl-compare-viewport.has-result .tl-preview-empty,
.tl-compare-viewport.has-result .tl-preview-empty--result {
  display: none;
}

.tl-progress {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.tl-progress[hidden] {
  display: none;
}

.tl-progress strong {
  font-size: 17px;
}

.tl-progress small {
  color: var(--tl-muted);
}

.tl-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #d9e6f8;
  border-top-color: var(--tl-blue);
  border-radius: 50%;
  animation: tl-spin 0.82s linear infinite;
}

@keyframes tl-spin {
  to {
    transform: rotate(360deg);
  }
}

.tl-console {
  border: 1px solid var(--tl-line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.tl-console__head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tl-console__head[hidden] {
  display: none;
}

.tl-console__head strong {
  font-size: 14px;
}

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

.tl-console__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tl-download-button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(180deg, #1682f4, #0069d9);
  box-shadow: 0 10px 22px rgba(0, 113, 227, 0.22);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.tl-download-button.is-disabled {
  color: #8a929f;
  background: #edf0f4;
  box-shadow: none;
  cursor: not-allowed;
}

.tl-console__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tl-console__grid div {
  min-height: 72px;
  border-radius: 14px;
  background: #f6f7f9;
  padding: 12px;
}

.tl-console__grid span {
  display: block;
  color: var(--tl-muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.tl-console__grid strong {
  font-size: 15px;
}

.tl-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  border-radius: 20px;
  padding: 0;
  color: #161a21;
  background: transparent;
}

.tl-dialog::backdrop {
  background: rgba(12, 16, 24, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tl-dialog-card {
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(25, 28, 36, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.tl-dialog-kicker {
  margin: 0 0 10px;
  color: #a16622;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.tl-dialog-card h3 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.22;
}

.tl-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tl-choice-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-content: center;
  border: 1px solid rgba(25, 28, 36, 0.14);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
}

.tl-choice-card:has(input:checked) {
  border-color: rgba(184, 112, 38, 0.74);
  background: #fff8eb;
}

.tl-choice-card input {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #b16f25;
}

.tl-choice-card span {
  font-size: 16px;
  font-weight: 780;
}

.tl-choice-card small {
  color: #687080;
  font-size: 12px;
  line-height: 1.45;
}

.tl-restore-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(25, 28, 36, 0.10);
  border-radius: 14px;
  background: #f7f8fb;
}

.tl-restore-picker.hidden {
  display: none;
}

.tl-field-control {
  display: grid;
  gap: 7px;
  color: #39404a;
  font-size: 13px;
  font-weight: 700;
}

.tl-field-control select {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(25, 28, 36, 0.13);
  border-radius: 11px;
  padding: 0 11px;
  background: #fff;
  color: #18202b;
  outline: none;
}

.tl-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.tl-dialog-actions .tl-button {
  min-width: 88px;
  height: 42px;
  padding: 0 16px;
}

@media (max-width: 1080px) {
  .tl-workspace {
    grid-template-columns: 1fr;
  }

  .tl-sidebar {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  body.text-lut-page {
    background: linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
  }

  .tl-shell {
    min-height: auto;
    padding: 8px 10px calc(102px + env(safe-area-inset-bottom));
  }

  .tl-workspace {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: auto;
  }

  .tl-sidebar,
  .tl-stage {
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 12px 34px rgba(21, 27, 38, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .tl-sidebar {
    gap: 10px;
  }

  .tl-stage {
    gap: 10px;
  }

  .tl-dialog-card {
    padding: 22px;
  }

  .tl-choice-grid,
  .tl-restore-picker {
    grid-template-columns: 1fr;
  }

  .tl-brand {
    gap: 10px;
    padding: 2px 0 4px;
  }

  .tl-brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .tl-brand__mark::before {
    width: 15px;
    height: 15px;
    border-radius: 6px;
    left: 8px;
    top: 8px;
  }

  .tl-brand__mark::after {
    width: 12px;
    height: 12px;
    right: 8px;
    bottom: 8px;
  }

  .tl-brand h1 {
    font-size: 19px;
  }

  .tl-brand p {
    font-size: 11px;
    margin-top: 2px;
  }

  .tl-cost-note {
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.45;
  }

  .tl-panel {
    border-radius: 16px;
    padding: 11px;
  }

  .tl-panel__head {
    margin-bottom: 9px;
  }

  .tl-panel__head span {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .tl-panel__head strong {
    font-size: 14px;
  }

  .tl-upload {
    min-height: 134px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }

  .tl-upload.is-landscape {
    min-height: 126px;
    aspect-ratio: 16 / 9;
  }

  .tl-upload.is-portrait {
    min-height: 178px;
    aspect-ratio: 4 / 5;
  }

  .tl-upload.is-square {
    min-height: 150px;
  }

  .tl-upload img {
    inset: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 11px;
  }

  .tl-upload__empty span {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .tl-upload__empty span::before {
    width: 18px;
    left: 10px;
    top: 18px;
  }

  .tl-upload__empty span::after {
    height: 18px;
    left: 18px;
    top: 10px;
  }

  .tl-upload__empty strong {
    font-size: 13px;
  }

  .tl-upload__empty small {
    font-size: 11px;
  }

  .tl-prompt {
    min-height: 92px;
    border-radius: 13px;
    padding: 11px 12px;
    font-size: 15px;
  }

  .tl-counter {
    margin-top: 6px;
    font-size: 11px;
  }

  .tl-chip-grid {
    flex-wrap: nowrap;
    gap: 7px;
    margin: 10px -11px 0;
    padding: 0 11px 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tl-chip-grid::-webkit-scrollbar {
    display: none;
  }

  .tl-chip-grid button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .tl-form-error {
    min-height: 34px;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
  }

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

  .tl-actions {
    position: sticky;
    bottom: calc(74px + env(safe-area-inset-bottom));
    z-index: 20;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
    margin: 0 -2px -2px;
    padding: 8px;
    border: 1px solid rgba(25, 28, 36, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(22px) saturate(1.12);
    -webkit-backdrop-filter: blur(22px) saturate(1.12);
  }

  .tl-button {
    height: 44px;
    min-width: 0;
    border-radius: 13px;
    font-size: 14px;
  }

  .tl-button--ghost {
    font-size: 0;
  }

  .tl-button--ghost .tl-button__icon {
    margin: 0;
  }

  .tl-topbar {
    align-items: flex-start;
  }

  .tl-console__head {
    align-items: flex-start;
    gap: 10px;
  }

  .tl-console__actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .tl-download-button {
    width: min(180px, 100%);
    min-height: 38px;
    font-size: 14px;
  }

  .tl-preview-card__head {
    height: 44px;
    padding: 0 12px;
  }

  .tl-preview-card__head strong {
    font-size: 14px;
  }

  .tl-preview-card__badges {
    gap: 5px;
  }

  .tl-preview-card__badges span {
    min-height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }

  .tl-compare-card,
  .tl-console {
    border-radius: 16px;
  }

  .tl-compare-viewport {
    min-height: min(58vh, 430px);
  }

  .tl-compare-viewport::before {
    inset: 10px;
    border-radius: 15px;
  }

  .tl-preview-empty__copy {
    max-width: calc(100% - 34px);
    gap: 7px;
    padding: 18px 18px;
    border-radius: 16px;
  }

  .tl-preview-empty__copy strong {
    font-size: 16px;
  }

  .tl-preview-empty__copy small {
    font-size: 12px;
    line-height: 1.45;
  }

  .tl-compare-viewport.has-result {
    gap: 8px;
    padding: 8px;
    min-height: min(68vh, 560px);
  }

  .tl-compare-viewport.has-result.is-stack {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tl-compare-viewport.has-result.is-side-by-side {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .tl-compare-viewport.has-result.is-side-by-side.is-portrait,
  .tl-compare-viewport.has-result.is-stack.is-square {
    min-height: min(68vh, 520px);
  }

  .tl-compare-viewport.has-result.is-stack.is-landscape {
    min-height: min(66vh, 500px);
  }

  .tl-compare-image {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 12px;
  }

  .tl-compare-viewport.has-result .tl-compare-image {
    border-radius: 13px;
  }

  .tl-compare-label {
    min-height: 24px;
    padding: 0 9px;
    font-size: 11px;
  }

  .tl-compare-label--before {
    left: 18px;
  }

  .tl-compare-label--after {
    right: 18px;
  }

  .tl-compare-viewport.has-result.is-stack .tl-compare-label--before {
    left: 18px;
    top: 18px;
  }

  .tl-compare-viewport.has-result.is-stack .tl-compare-label--after {
    right: 18px;
    top: calc(50% + 14px);
  }

  .tl-compare-viewport.has-result.is-side-by-side .tl-compare-label--before,
  .tl-compare-viewport.has-result.is-side-by-side .tl-compare-label--after {
    top: 18px;
  }

  .tl-console {
    padding: 10px;
  }

  .tl-console__head {
    margin-bottom: 10px;
  }

  .tl-console__grid div {
    min-height: 58px;
    border-radius: 12px;
    padding: 10px;
  }

  .tl-console__grid span {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .tl-console__grid strong {
    font-size: 13px;
    line-height: 1.25;
    word-break: break-word;
  }
}

@media (max-width: 380px) {
  .tl-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .tl-sidebar,
  .tl-stage {
    padding: 10px;
  }

  .tl-actions {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .tl-compare-viewport.has-result.is-side-by-side {
    gap: 6px;
    padding: 6px;
  }

  .tl-console__grid {
    grid-template-columns: 1fr;
  }
}

.primary-button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #0071e3;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.18);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

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

.style-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.style-pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.58)),
    rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.style-pay-modal__dialog {
  position: relative;
  width: min(700px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 32px 80px rgba(15, 23, 42, 0.22),
    0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.style-pay-modal__dialog--pay {
  width: min(500px, calc(100vw - 24px));
}

.style-pay-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 46px 0;
  border-bottom: 0;
  text-align: left;
}

.style-pay-modal__header h3 {
  margin: 0;
  color: #111827;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 800;
}

.style-pay-modal__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  background: rgba(17, 24, 39, 0.05);
  font-size: 30px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.style-pay-modal__close:hover {
  color: #111827;
  background: rgba(17, 24, 39, 0.09);
  transform: scale(1.04);
}

.style-pay-modal__body {
  display: grid;
  gap: 18px;
  padding: 10px 46px 30px;
}

.style-pay-modal__hero {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.style-pay-modal__lead {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
}

.style-pay-modal__headline {
  margin: 26px 0 14px;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.style-pay-modal__headline--pay {
  margin-top: 20px;
  margin-bottom: 14px;
}

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

.style-pay-modal__plan {
  position: relative;
  min-height: 104px;
  padding: 22px 24px 18px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.style-pay-modal__plan:hover {
  border-color: rgba(0, 113, 227, 0.38);
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.style-pay-modal__plan.is-active {
  border-color: #0878ff;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 0 0 1px #0878ff, 0 12px 28px rgba(0, 113, 227, 0.12);
}

.style-pay-modal__plan strong,
.style-pay-modal__plan em {
  display: block;
  font-style: normal;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
}

.style-pay-modal__plan small {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.35;
}

.style-pay-modal__plan.is-active small,
.style-pay-modal__plan.is-active em {
  color: #0a66d9;
}

.style-pay-modal__plan-badge {
  position: absolute;
  top: -6px;
  left: -1px;
  min-height: 24px;
  padding: 3px 12px;
  border-radius: 14px 14px 14px 0;
  background: #0878ff;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.style-pay-modal__plan-check {
  display: none;
}

.style-pay-modal__plan.is-active::after {
  content: '✓';
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0878ff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.style-pay-modal__subline,
.style-pay-modal__error {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.style-pay-modal__subline {
  margin-top: 18px;
  font-size: 15px;
}

.style-pay-modal__divider {
  height: 1px;
  margin: 20px 0 0;
  background: rgba(203, 213, 225, 0.72);
}

.style-pay-modal__balance {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 20px;
  color: #111827;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

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

.style-pay-modal__pay-method {
  min-height: 66px;
  padding: 0 18px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
}

.style-pay-modal__pay-method.is-active {
  border-color: #0878ff;
  box-shadow: inset 0 0 0 1px #0878ff, 0 10px 24px rgba(0, 113, 227, 0.08);
}

.style-pay-modal__pay-method img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.style-pay-modal__pay-method span {
  flex: 1 1 auto;
}

.style-pay-modal__pay-method i {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #c5cad3;
  flex: 0 0 auto;
  position: relative;
}

.style-pay-modal__pay-method.is-active i {
  border-color: #0878ff;
}

.style-pay-modal__pay-method.is-active i::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: #0878ff;
}

.style-pay-modal__actions {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.style-pay-modal__actions .primary-button {
  width: 100%;
  min-height: 64px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
}

.style-pay-modal__member-card {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  min-height: 66px;
  padding: 12px 16px 12px 20px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(238, 240, 255, 0.98), rgba(245, 247, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 32px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
}

.style-pay-modal__member-copy {
  flex: 1 1 auto;
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}

.style-pay-modal__member-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.style-pay-modal__member {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin: 0 0 0 auto;
  padding: 0 18px;
  border-radius: 12px;
  color: #0a66d9;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.style-pay-modal__error {
  min-height: 22px;
  margin-top: 0;
  color: #c2410c;
}

.style-pay-modal__body--pay {
  align-items: center;
  justify-items: center;
  padding-bottom: 10px;
  text-align: center;
}

.style-pay-modal__qr-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: min(280px, 100%);
  aspect-ratio: 1 / 1;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(15, 23, 42, 0.08);
}

.style-pay-modal__qr {
  width: 100%;
  max-width: 236px;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: #fff;
}

.style-pay-modal__body--pay > p,
.style-pay-modal__body--pay > small {
  margin: 0;
}

#styleLabPayAmount {
  color: #111827;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

#styleLabPayStatus {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.75;
}

#styleLabPayOrder {
  color: #9ca3af;
  font-size: 12px;
  word-break: break-all;
}

.style-pay-modal__member-card--pay {
  width: 100%;
}

@media (max-width: 760px) {
  .style-pay-modal {
    padding: 10px;
  }

  .style-pay-modal__dialog {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    border-radius: 22px;
  }

  .style-pay-modal__header {
    padding: 20px 22px 0;
  }

  .style-pay-modal__header h3 {
    font-size: 24px;
  }

  .style-pay-modal__body {
    padding: 8px 22px 24px;
  }

  .style-pay-modal__plans,
  .style-pay-modal__pay-methods {
    grid-template-columns: 1fr;
  }

  .style-pay-modal__plan {
    min-height: 88px;
  }

  .style-pay-modal__plan strong,
  .style-pay-modal__plan em {
    font-size: 22px;
  }

  .style-pay-modal__member-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .style-pay-modal__member {
    margin-left: 0;
  }
}
