:root {
  --page: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f1f4f6;
  --ink: #14181d;
  --muted: #6f7781;
  --soft: #a8b0b9;
  --line: #e2e6ea;
  --line-strong: #d1d8df;
  --accent: #b58a48;
  --accent-strong: #90672e;
  --teal: #497f7a;
  --danger: #b9543b;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(26, 34, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: #f5f5f7;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.shell {
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  gap: 30px;
  align-items: stretch;
  padding: 34px;
  margin-bottom: 14px;
}

.hero-copy {
  display: grid;
  align-content: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
  word-break: keep-all;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 18px;
  font-size: 24px;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.access-summary {
  display: grid;
  align-items: start;
  gap: 8px;
  max-width: 720px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #f8f9fb;
}

.access-summary span {
  display: block;
}

.access-summary strong {
  color: var(--ink);
  font-size: 20px;
}

.hero-demo-video-shell {
  align-self: center;
  justify-self: end;
  width: min(250px, 100%);
}

.hero-demo-video {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
  background: #111111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-demo-video video {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 1444;
  background: #111111;
  object-fit: contain;
}

.hero-demo-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.hero-demo-video__play span {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #ffffff;
}

.hero-demo-video__play:hover {
  background: rgba(17, 17, 17, 0.86);
}

.hero-demo-video.is-playing .hero-demo-video__play {
  display: none;
}

.hero-demo-video__fullscreen {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(17, 17, 17, 0.78);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.hero-demo-video__fullscreen:hover {
  background: rgba(17, 17, 17, 0.92);
}

.hero-demo-video__dots {
  display: none;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.hero-demo-video-shell.has-photo-carousel .hero-demo-video__dots {
  display: flex;
}

.hero-demo-video__dots button {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(20, 24, 29, 0.36);
  border-radius: 999px;
  background: rgba(20, 24, 29, 0.18);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hero-demo-video__dots button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  transform: scale(1.12);
}

.hero-steps {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.hero-steps article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.hero-steps strong {
  font-size: 17px;
}

.hero-steps p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel {
  padding: 22px;
  margin-bottom: 14px;
}

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

.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.upload-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.upload-title-row h2 {
  margin-bottom: 0;
}

.prompt-view-button {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.prompt-view-button:hover {
  border-color: var(--ink);
}

.upload-warning {
  max-width: 760px;
  color: #8a5a12 !important;
  font-weight: 700;
}

.preview-head {
  align-items: center;
}

.mode-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.mode-switch__buttons {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.mode-switch__button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mode-switch__button.is-active {
  color: #fff;
  background: var(--ink);
}

.mode-switch__hint {
  flex: 1 1 auto;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.identity-guide-button {
  flex: 0 0 auto;
}

.restore-base-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
}

.primary-button,
.ghost-button {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, border-color 160ms ease;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #2e3945);
  box-shadow: 0 10px 24px rgba(20, 24, 29, 0.16);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  text-decoration: none;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  pointer-events: none;
  opacity: 0.5;
  box-shadow: none;
}

.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.disabled:hover {
  transform: none;
}

.is-identity-mode .preview-panel .panel-head {
  display: grid;
  justify-content: center;
  margin-bottom: 0;
  text-align: center;
}

.is-identity-mode .preview-panel .panel-head > div:first-child,
.is-identity-mode .preview-stage,
.is-identity-mode .result-summary {
  display: none;
}

.is-identity-mode .preview-actions {
  justify-content: center;
  width: min(440px, 100%);
  margin: 0 auto;
}

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

.upload-field {
  display: grid;
  gap: 9px;
}

.upload-tile {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(241, 244, 246, 0.9)),
    var(--surface-soft);
}

.upload-tile:hover {
  border-color: var(--accent);
}

.upload-tile input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-tile.is-missing {
  border-color: #df8d73;
  animation: uploadTilePulse 720ms ease;
}

.upload-tile::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  pointer-events: none;
}

.upload-tile img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.upload-tile.has-image::before {
  display: none;
}

.upload-tile.has-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.48));
  pointer-events: none;
}

.upload-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.upload-copy span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.tile-meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.tile-meta-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-copy strong {
  font-size: 20px;
}

.upload-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.upload-tile.has-image .upload-copy {
  left: 18px;
  right: auto;
  bottom: 18px;
  max-width: calc(100% - 112px);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.upload-tile.has-image .upload-copy strong {
  display: none;
}

.upload-tile.has-image .upload-copy span,
.upload-tile.has-image .tile-meta-row small,
.upload-tile.has-image .upload-copy p {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.upload-tile.has-image .upload-copy span {
  font-size: 20px;
}

.upload-tile.has-image .upload-copy p {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-hint {
  display: none;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #efc0ad;
  border-radius: var(--radius);
  color: var(--danger);
  background: #fff1ec;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.upload-hint.is-visible {
  display: block;
  animation: uploadHintIn 720ms ease;
}


@keyframes uploadHintIn {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  40% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes uploadTilePulse {
  0%,
  100% {
    box-shadow: none;
  }
  45% {
    box-shadow: 0 0 0 4px rgba(185, 84, 59, 0.12);
  }
}

.preview-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: center;
}

.preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(56vh, 620px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f9fb;
}

.preview-stage img {
  display: none;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.preview-stage.has-preview img {
  display: block;
}

.preview-placeholder {
  display: grid;
  place-items: center;
  width: min(560px, calc(100% - 48px));
  min-height: 108px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

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

.preview-placeholder span {
  max-width: 520px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.result-summary article {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.result-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.result-summary strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 26px;
  line-height: 1.05;
}

.status-bar {
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #eadbc2;
  border-radius: var(--radius);
  color: #7a633f;
  background: #fff8ec;
}

.status-bar--between {
  margin: -8px 0 24px;
}

.status-bar[hidden] {
  display: none;
}

.status-bar.is-warning {
  border-color: #efc0ad;
  color: var(--danger);
  background: #fff1ec;
}

.status-bar.is-success {
  border-color: #c6ded8;
  color: var(--teal);
  background: #edf8f5;
}

.manual-preview-canvas {
  display: none;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.preview-stage.is-manual-preview img {
  display: none;
}

.preview-stage.is-manual-preview .manual-preview-canvas {
  display: block;
}

.manual-lab {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.manual-lab[hidden] {
  display: none !important;
}

.manual-lab__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.manual-lab__head h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.manual-lab__head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.manual-lab__group {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.manual-lab__group--hsl {
  grid-column: 1 / -1;
}

.manual-lab__group h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.manual-control {
  display: grid;
  grid-template-columns: 96px minmax(90px, 1fr) 72px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.manual-control:last-child {
  margin-bottom: 0;
}

.manual-control__range {
  width: 100%;
  accent-color: var(--accent);
}

.manual-control__number {
  width: 72px;
  height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  text-align: right;
}

.manual-lab__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.manual-swatch {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid transparent;
  border-radius: 50%;
  color: #fff;
  background: var(--swatch);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.manual-swatch.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 24, 29, 0.1);
}

.app-dialog,
.progress-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
}

.app-dialog--prompt {
  width: min(920px, calc(100vw - 64px));
  overflow: hidden;
}

.progress-dialog {
  width: min(460px, calc(100vw - 28px));
}

.app-dialog::backdrop,
.progress-dialog::backdrop {
  background: rgba(20, 24, 29, 0.48);
  backdrop-filter: blur(6px);
}

dialog:not([open]) {
  display: none;
}

.dialog-card,
.progress-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 24, 29, 0.2);
}

.dialog-card--prompt {
  width: 100%;
  max-height: calc(100vh - 72px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 30px;
}

.prompt-copy {
  display: grid;
  gap: 18px;
  margin: 0 0 20px;
  border: 0;
  border-radius: 12px;
  color: #2f3742;
  background: #f8fafc;
  padding: 22px;
  font-size: 14px;
  line-height: 1.85;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

.prompt-copy section {
  display: grid;
  gap: 8px;
}

.prompt-copy h4,
.prompt-copy p,
.prompt-copy ol {
  margin: 0;
}

.prompt-copy h4 {
  color: var(--ink);
  font-size: 14px;
}

.prompt-copy ol {
  display: grid;
  gap: 6px;
  padding-left: 22px;
}

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

.identity-guide {
  display: grid;
  gap: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.identity-guide p,
.identity-guide ol {
  margin: 0;
}

.identity-guide ol {
  padding-left: 20px;
}

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

.identity-chart-actions--single {
  grid-template-columns: minmax(0, 1fr);
}

.identity-action-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.identity-action-card strong {
  color: var(--ink);
  font-size: 14px;
}

.identity-action-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.identity-action-buttons {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.identity-action-buttons .primary-button,
.identity-action-buttons .ghost-button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 560px) {
  .identity-chart-actions {
    grid-template-columns: 1fr;
  }
}

.choice-card {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 102px;
  padding: 34px 15px 15px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: #fff8ec;
}

.choice-card input {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: 0;
  appearance: none;
  border: 1px solid #8e98a3;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.choice-card input:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px rgba(181, 138, 72, 0.26);
}

.choice-card span {
  font-size: 17px;
  font-weight: 800;
}

.choice-card small {
  color: var(--muted);
  line-height: 1.5;
}

.field-control {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.field-control input,
.field-control select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.field-control input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 84, 59, 0.12);
}

.field-hint {
  color: #7a4a12;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding: 8px 10px;
  border: 1px solid #f0d19a;
  border-radius: 8px;
  background: #fff7e8;
}

.dialog-error {
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid #efc0ad;
  border-radius: var(--radius);
  color: var(--danger);
  background: #fff1ec;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

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

.report-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.report-toggle input {
  width: 18px;
  min-height: 18px;
}

.restore-lut-panel {
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.hidden {
  display: none !important;
}

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

.progress-card {
  text-align: center;
}

.progress-card h3 {
  margin-bottom: 14px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  transition: width 520ms ease;
}

.progress-card p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.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: rgba(20, 24, 29, 0.48);
  backdrop-filter: blur(10px);
}

.style-pay-modal__dialog {
  position: relative;
  width: min(92vw, 560px);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(20, 24, 29, 0.22);
}

.style-pay-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.style-pay-modal__header h3 {
  margin: 0;
  font-size: 22px;
}

.style-pay-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface-soft);
  cursor: pointer;
}

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

.style-pay-modal__hero {
  padding: 18px;
  border-radius: 16px;
  background: #fff8ec;
}

.style-pay-modal__eyebrow {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.style-pay-modal__headline {
  margin: 8px 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.style-pay-modal__count {
  width: 72px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font: inherit;
  font-weight: 900;
}

.style-pay-modal__subline,
.style-pay-modal__error {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.style-pay-modal__balance {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ink);
  background: #edf8f5;
}

.style-pay-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.style-pay-modal__member {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

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

.style-pay-modal__body--pay {
  text-align: center;
}

.style-pay-modal__qr {
  width: 260px;
  max-width: 78vw;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.style-pay-modal__backdrop {
  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 {
  width: min(700px, calc(100vw - 24px));
  padding: 0;
  gap: 0;
  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));
}

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

#styleLabPayModal .style-pay-modal__header h3 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

#styleLabPayModal .style-pay-modal__close {
  width: 32px;
  height: 32px;
  font-size: 24px;
}

#styleLabPayModal .style-pay-modal__body {
  gap: 12px;
  padding: 14px 22px 10px;
}

#styleLabPayModal .style-pay-modal__member-card {
  display: block;
  padding: 12px 14px;
  border-radius: 24px;
}

#styleLabPayModal .style-pay-modal__member-copy {
  font-size: 13px;
  line-height: 1.65;
}

#styleLabPayModal .style-pay-modal__member {
  min-height: 40px;
  padding: 0 16px;
  margin: 12px auto 0;
}

.style-pay-modal__header {
  align-items: center;
  padding: 28px 46px 0;
  border-bottom: 0;
  text-align: left;
}

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

.style-pay-modal__close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  background: rgba(17, 24, 39, 0.05);
  font-size: 30px;
  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__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0a66d9;
  background: rgba(0, 113, 227, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

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

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

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

.style-pay-modal__count {
  width: 72px;
  height: 38px;
  min-height: 0;
  margin: 0 4px;
  padding: 0 12px;
  border: 1px solid rgba(209, 213, 219, 0.92);
  border-radius: 10px;
  color: #111827;
  background: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(17, 24, 39, 0.06);
}

.style-pay-modal__count:focus {
  outline: none;
  border-color: rgba(0, 122, 255, 0.7);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 3px rgba(0, 122, 255, 0.16),
    0 1px 2px rgba(17, 24, 39, 0.08);
}

.style-pay-modal__count::-webkit-outer-spin-button,
.style-pay-modal__count::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.style-pay-modal__count[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.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;
  letter-spacing: 0;
}

.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 {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #0878ff;
  color: #ffffff;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.style-pay-modal__plan.is-active .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 {
  margin: 18px 0 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.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,
.style-pay-modal__actions .ghost-button {
  width: 100%;
  min-height: 64px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.style-pay-modal__actions .primary-button {
  background: #0071e3;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.18);
}

.style-pay-modal__actions .ghost-button {
  color: #111827;
  border-color: rgba(209, 213, 219, 0.95);
  background: rgba(248, 250, 252, 0.88);
  box-shadow: none;
}

.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-card::before {
  content: '';
  position: absolute;
  inset: auto -18% -42% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0));
  pointer-events: none;
}

.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:not(#styleLabUnlockModal):not(#styleLabPayModal) .style-pay-modal__dialog {
  width: min(560px, calc(100vw - 24px));
  border-radius: 28px;
}

.style-pay-modal:not(#styleLabUnlockModal):not(#styleLabPayModal) .style-pay-modal__header {
  padding: 20px 22px 0;
}

.style-pay-modal:not(#styleLabUnlockModal):not(#styleLabPayModal) .style-pay-modal__header h3 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.style-pay-modal:not(#styleLabUnlockModal):not(#styleLabPayModal) .style-pay-modal__close {
  width: 32px;
  height: 32px;
  font-size: 24px;
}

.style-pay-modal:not(#styleLabUnlockModal):not(#styleLabPayModal) .style-pay-modal__body {
  gap: 12px;
  padding: 14px 22px 12px;
}

.style-pay-modal:not(#styleLabUnlockModal):not(#styleLabPayModal) .style-pay-modal__hero {
  padding: 4px 2px 0;
}

.style-pay-modal:not(#styleLabUnlockModal):not(#styleLabPayModal) .style-pay-modal__headline {
  margin: 10px 0 6px;
  font-size: 22px;
}

.style-pay-modal:not(#styleLabUnlockModal):not(#styleLabPayModal) .style-pay-modal__actions .primary-button,
.style-pay-modal:not(#styleLabUnlockModal):not(#styleLabPayModal) .style-pay-modal__actions .ghost-button {
  min-height: 50px;
  border-radius: 16px;
  font-size: inherit;
  font-weight: 700;
}

.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;
  letter-spacing: -0.04em;
}

#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: 960px) {
  .shell {
    width: min(100vw - 24px, 1160px);
    padding-top: 14px;
  }

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

  .hero-demo-video-shell {
    justify-self: center;
    width: min(360px, 100%);
  }

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

  .manual-lab__grid {
    grid-template-columns: 1fr;
  }

  .manual-lab__group--hsl {
    grid-column: auto;
  }

  .hero,
  .panel {
    padding: 18px;
  }

  .panel-head,
  .preview-head {
    display: grid;
  }

  .mode-switch {
    display: grid;
  }

  .mode-switch__buttons {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    min-height: 48px;
  }

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

  .preview-stage {
    min-height: 320px;
  }

  .upload-tile {
    min-height: 220px;
  }

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

  h1 {
    font-size: 52px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: 100%;
    padding: 10px 4px 36px;
  }

  .hero,
  .panel {
    border-radius: 8px;
    padding: 16px;
  }

  .hero-copy {
    text-align: center;
  }

  h1 {
    font-size: 40px;
  }

  h2,
  h3 {
    font-size: 21px;
  }

  .lead,
  .panel-head p {
    font-size: 14px;
  }

  .access-summary {
    display: grid;
    width: 100%;
    gap: 8px;
  }

  .upload-grid {
    gap: 12px;
  }

  .upload-tile {
    min-height: 184px;
  }

  .upload-copy {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }

  .hero-steps article {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 13px;
  }

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

  .result-summary {
    grid-template-columns: 1fr;
  }

  .manual-lab {
    padding: 14px;
  }

  .manual-lab__head {
    display: grid;
  }

  .manual-control {
    grid-template-columns: 1fr 68px;
  }

  .manual-control span {
    grid-column: 1 / -1;
  }

  .preview-stage {
    min-height: 240px;
  }

  .preview-placeholder {
    width: calc(100% - 28px);
    padding: 18px;
    font-size: 14px;
  }

  .dialog-actions {
    display: grid;
  }

  .app-dialog {
    width: 100vw;
    max-width: none;
    padding: 0 10px;
  }

  .dialog-card,
  .progress-card {
    width: min(100%, 460px);
  }

  .app-dialog--prompt {
    width: 100vw;
  }

  .dialog-card--prompt {
    width: 100%;
    padding: 18px;
  }

  .prompt-copy {
    padding: 16px;
    font-size: 13px;
  }

  .style-pay-modal {
    align-items: center;
    padding: 10px;
  }

  .style-pay-modal__dialog {
    width: min(100vw - 28px, 430px);
    border-radius: 22px;
  }

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

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

  .style-pay-modal__close {
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  .style-pay-modal__body {
    gap: 11px;
    padding: 8px 18px 18px;
  }

  .style-pay-modal__lead {
    font-size: 13px;
  }

  .style-pay-modal__headline {
    margin: 16px 0 9px;
    font-size: 15px;
  }

  .style-pay-modal__count {
    width: 64px;
    height: 36px;
    border-radius: 9px;
    font-size: 17px;
  }

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

  .style-pay-modal__plan {
    min-height: 70px;
    padding: 13px 14px 11px;
    border-radius: 12px;
  }

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

  .style-pay-modal__plan small {
    margin-top: 6px;
    font-size: 11px;
  }

  .style-pay-modal__plan-badge {
    min-height: 19px;
    padding: 2px 9px;
    border-radius: 10px 10px 10px 0;
    font-size: 11px;
  }

  .style-pay-modal__plan-check {
    width: 18px;
    height: 18px;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
  }

  .style-pay-modal__plan.is-active::after {
    width: 18px;
    height: 18px;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
  }

  .style-pay-modal__subline {
    margin-top: 10px;
  }

  .style-pay-modal__divider {
    margin-top: 12px;
  }

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

  .style-pay-modal__pay-method {
    min-height: 46px;
    padding: 0 10px;
    gap: 8px;
    border-radius: 12px;
    font-size: 13px;
  }

  .style-pay-modal__pay-method img {
    width: 20px;
    height: 20px;
  }

  .style-pay-modal__pay-method i {
    width: 17px;
    height: 17px;
    border-width: 1.5px;
  }

  .style-pay-modal__pay-method.is-active i::after {
    inset: 4px;
  }

  .style-pay-modal__subline,
  .style-pay-modal__member-copy,
  #styleLabPayStatus {
    font-size: 13px;
  }

  .style-pay-modal__actions .primary-button,
  .style-pay-modal__actions .ghost-button {
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }

  .style-pay-modal__member-card {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 52px;
    padding: 9px 10px;
    border-radius: 12px;
  }

  .style-pay-modal__member-icon {
    width: 20px;
    height: 20px;
  }

  .style-pay-modal__member {
    grid-column: auto;
    min-height: 32px;
    margin: 0 0 0 auto;
    padding: 0 10px;
    font-size: 12px;
  }

  .style-pay-modal:not(#styleLabUnlockModal) .style-pay-modal__header {
    padding: 16px 16px 0;
  }

  .style-pay-modal:not(#styleLabUnlockModal) .style-pay-modal__header h3 {
    font-size: 18px;
  }

  .style-pay-modal:not(#styleLabUnlockModal) .style-pay-modal__body {
    gap: 10px;
    padding: 12px 16px 10px;
  }

  .style-pay-modal:not(#styleLabUnlockModal) .style-pay-modal__headline {
    margin: 10px 0 6px;
    font-size: 20px;
  }

  .style-pay-modal:not(#styleLabUnlockModal) .style-pay-modal__actions .primary-button,
  .style-pay-modal:not(#styleLabUnlockModal) .style-pay-modal__actions .ghost-button {
    min-height: 48px;
    font-size: 14px;
  }

  .style-pay-modal__qr-shell {
    width: min(244px, 100%);
    padding: 14px;
    border-radius: 22px;
  }
}

.style-share-modal__check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.style-share-modal__check input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.style-share-modal__hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.style-community-panel {
  margin-top: 24px;
}

.style-community-panel .lut-grid {
  margin-top: 18px;
}

.style-community-panel .browse-pagination {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.style-community-panel .browse-pagination__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.style-community-panel .browse-pagination__pages {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.style-community-panel .browse-page-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.style-community-panel .browse-page-chip:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.style-community-panel .browse-page-chip.is-active {
  border-color: #1677ff;
  background: #1677ff;
  color: #ffffff;
}

.style-community-panel .browse-pagination__meta {
  color: #64748b;
  font-size: 13px;
}

.style-community-panel .browse-pagination__jump {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.style-community-panel .browse-pagination__jump input[type="number"] {
  width: 96px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: #ffffff;
}

.style-community-panel .browse-pagination--single {
  display: block;
}

.style-community-panel .btn.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}
