:root {
  --font: "Noto Sans SC Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-soft: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.13);
  --blue: #0071e3;
  --blue-deep: #005fca;
  --blue-soft: rgba(0, 113, 227, 0.09);
  --green: #1f9d55;
  --shadow-lg: 0 30px 80px rgba(20, 28, 42, 0.1), 0 8px 24px rgba(20, 28, 42, 0.05);
  --shadow-sm: 0 8px 24px rgba(20, 28, 42, 0.06), 0 2px 8px rgba(20, 28, 42, 0.03);
  --page-width: 1320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(circle at 11% 2%, rgba(105, 177, 255, 0.17), transparent 31rem),
    radial-gradient(circle at 92% 17%, rgba(255, 195, 113, 0.11), transparent 26rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 36%, #f3f4f6 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 2px 22px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 8px 14px rgba(0, 86, 196, 0.2));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  color: #4c4c50;
  font-size: 12px;
  font-weight: 560;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(20, 28, 42, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(118, 118, 128, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 999px;
}

.theme-option {
  height: 28px;
  padding: 0 12px;
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 620;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.theme-option:hover {
  color: var(--text);
}

.theme-option.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(20, 28, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #34c759;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.12);
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 54px 2px 50px;
}

.hero-copy-wrap {
  max-width: 850px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 830px;
  margin: 14px 0 18px;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero h1 span {
  color: #85858a;
}

.hero-copy {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
}

.hero-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #545458;
  font-size: 13px;
  font-weight: 520;
}

.hero-steps b {
  color: var(--blue);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.hero-spec {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.spec-ring {
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 14px;
  place-items: center;
}

.spec-ring svg {
  width: 24px;
  height: 24px;
}

.hero-spec > span:last-child {
  display: grid;
  gap: 3px;
}

.hero-spec strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hero-spec small {
  color: var(--muted-soft);
  font-size: 11px;
}

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

.control-column {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.preview-column {
  position: sticky;
  top: 24px;
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.search-panel,
.editor-panel,
.preview-panel {
  padding: 26px;
}

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

.panel-heading h2,
.preview-heading h2 {
  margin: 5px 0 0;
  font-size: 23px;
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.panel-note {
  padding-top: 3px;
  color: var(--muted-soft);
  font-size: 11px;
  white-space: nowrap;
}

.selection-badge,
.spec-pill {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 620;
  line-height: 1;
  background: rgba(0, 0, 0, 0.045);
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 999px;
}

.selection-badge.is-selected {
  color: #16743e;
  background: rgba(52, 199, 89, 0.1);
  border-color: rgba(52, 199, 89, 0.12);
}

.spec-pill {
  color: #3d3d41;
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(0, 0, 0, 0.07);
}

.search-form {
  display: grid;
  gap: 14px;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  background: rgba(118, 118, 128, 0.075);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 15px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.search-field:focus-within {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.36);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
}

.search-field svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: #8a8a8f;
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  background: transparent;
  border: 0;
  outline: 0;
}

.search-field input::placeholder {
  color: #9a9aa0;
}

.search-field input::-webkit-search-cancel-button {
  opacity: 0.55;
}

.search-button,
.export-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 104px;
  height: 52px;
  padding: 0 21px;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 620;
  background: linear-gradient(180deg, #1686f5 0%, var(--blue) 58%, var(--blue-deep) 100%);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.search-button:hover,
.export-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(0, 113, 227, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.search-button:active,
.export-button:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.search-button:focus-visible,
.export-button:focus-visible,
.quick-chip:focus-visible,
.result-card:focus-visible,
.theme-option:focus-visible,
.country-picker select:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.24);
  outline-offset: 2px;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.search-button.is-loading .button-label,
.export-button.is-loading #exportLabel,
.export-button.is-loading > svg {
  display: none;
}

.search-button.is-loading .button-spinner,
.export-button.is-loading .button-spinner {
  display: block;
}

.search-button.is-loading,
.export-button.is-loading {
  pointer-events: none;
}

.search-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 26px;
}

.country-picker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-soft);
  font-size: 11px;
  white-space: nowrap;
}

.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-wrap select {
  height: 28px;
  padding: 0 26px 0 10px;
  color: #3c3c40;
  font-size: 11px;
  font-weight: 580;
  background: rgba(0, 0, 0, 0.045);
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.select-wrap select:hover {
  background: rgba(0, 0, 0, 0.065);
}

.select-wrap svg {
  position: absolute;
  right: 8px;
  width: 13px;
  height: 13px;
  color: #707075;
  pointer-events: none;
}

.result-summary {
  overflow: hidden;
  color: var(--muted-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 17px 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-row::-webkit-scrollbar {
  display: none;
}

.quick-row > span {
  flex: 0 0 auto;
  margin-right: 2px;
  color: var(--muted-soft);
  font-size: 10px;
}

.quick-chip {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 11px;
  color: #55555a;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.quick-chip:hover {
  color: var(--blue);
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.2);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 220px;
  max-height: 470px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px;
  margin: -2px;
  scrollbar-color: rgba(0, 0, 0, 0.14) transparent;
  scrollbar-width: thin;
}

.results-grid::-webkit-scrollbar {
  width: 6px;
}

.results-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.13);
  border-radius: 999px;
}

.results-empty,
.results-message {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 28px;
  text-align: center;
  flex-direction: column;
}

.results-empty {
  background:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58)),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.025) 0, rgba(0, 0, 0, 0.025) 1px, transparent 1px, transparent 8px);
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

.empty-visual {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  color: #86868b;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 19px;
  box-shadow: var(--shadow-sm);
  place-items: center;
}

.empty-visual svg {
  width: 33px;
  height: 33px;
}

.results-empty strong {
  font-size: 14px;
  font-weight: 620;
}

.results-empty > span:last-child {
  max-width: 300px;
  margin-top: 7px;
  color: var(--muted-soft);
  font-size: 11px;
  line-height: 1.6;
}

.results-message {
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.7;
}

.results-message strong {
  display: block;
  margin-bottom: 5px;
  color: #4d4d52;
  font-size: 14px;
}

.result-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 74px;
  padding: 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(0, 0, 0, 0.065);
  border-radius: 17px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.result-card:hover {
  z-index: 1;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 22px rgba(20, 28, 42, 0.08);
  transform: translateY(-2px);
}

.result-card.is-selected {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08), 0 10px 22px rgba(20, 28, 42, 0.07);
}

.result-icon-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: #eef0f3;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.result-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-icon-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  color: #8b8b90;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(145deg, #f8f8fa, #e8eaee);
  place-items: center;
}

.result-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-right: 18px;
}

.result-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-copy small {
  overflow: hidden;
  color: var(--muted-soft);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  width: 17px;
  height: 17px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 113, 227, 0.3);
  place-items: center;
}

.result-check svg {
  width: 11px;
  height: 11px;
}

.result-card.is-selected .result-check {
  display: grid;
}

.skeleton-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 74px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.53);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 17px;
}

.skeleton-block {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.045) 20%, rgba(0, 0, 0, 0.075) 50%, rgba(0, 0, 0, 0.045) 80%);
  background-size: 200% 100%;
  border-radius: 7px;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.skeleton-copy {
  display: grid;
  flex: 1;
  gap: 8px;
}

.skeleton-line {
  height: 8px;
}

.skeleton-line:last-child {
  width: 62%;
  height: 6px;
}

.editor-panel {
  display: grid;
  gap: 18px;
}

.editor-panel .panel-heading {
  margin-bottom: 2px;
}

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

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field-label > span {
  color: #3d3d42;
  font-size: 12px;
  font-weight: 620;
}

.field-label small {
  color: var(--muted-soft);
  font-size: 9px;
  font-weight: 420;
  text-align: right;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  background: rgba(118, 118, 128, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 14px;
  outline: 0;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9aa0;
}

.field input:focus,
.field textarea:focus {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.36);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
}

.field-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -7px;
  color: var(--muted-soft);
  font-size: 9px;
}

.field-foot b {
  font-weight: 600;
}

.preview-panel {
  padding-bottom: 24px;
}

.preview-heading {
  align-items: center;
  margin-bottom: 18px;
}

.canvas-shell {
  position: relative;
  overflow: hidden;
  padding: 10px;
  background:
    radial-gradient(circle at 25% 20%, rgba(125, 181, 255, 0.2), transparent 30%),
    radial-gradient(circle at 82% 86%, rgba(255, 200, 126, 0.17), transparent 32%),
    linear-gradient(145deg, #eef3fa, #e9edf3);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 54px rgba(20, 28, 42, 0.09);
}

.canvas-shell::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

#coverCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 21px;
  box-shadow: 0 20px 50px rgba(24, 40, 68, 0.13);
}

.canvas-loading {
  position: absolute;
  inset: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4e4e53;
  font-size: 12px;
  background: rgba(250, 251, 253, 0.72);
  border-radius: 21px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.loading-ring {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 113, 227, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.preview-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.export-button {
  width: 100%;
  height: 54px;
  border-radius: 16px;
}

.export-button svg {
  width: 19px;
  height: 19px;
}

.export-button:disabled {
  color: #8c8c91;
  background: rgba(118, 118, 128, 0.12);
  box-shadow: none;
  cursor: not-allowed;
}

.export-note {
  margin: 0;
  color: var(--muted-soft);
  font-size: 9px;
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 42px 4px 30px;
  color: #8b8b90;
  font-size: 10px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 50;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 17px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  background: rgba(29, 29, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: rgba(156, 35, 35, 0.93);
}

html[data-theme="normal"] .panel {
  background: rgba(255, 255, 255, 0.94);
}

html[data-theme="liquid"] body {
  background:
    radial-gradient(circle at 9% 4%, rgba(94, 166, 255, 0.3), transparent 33rem),
    radial-gradient(circle at 93% 17%, rgba(255, 137, 198, 0.17), transparent 27rem),
    radial-gradient(circle at 74% 92%, rgba(255, 188, 92, 0.2), transparent 31rem),
    linear-gradient(145deg, #f7fbff 0%, #f2f5ff 34%, #fbf5ff 68%, #fff9f1 100%);
  background-size: 140% 140%;
  animation: liquid-drift 18s ease-in-out infinite alternate;
}

html[data-theme="liquid"] .panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.38) 55%, rgba(255, 255, 255, 0.56));
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 30px 80px rgba(20, 41, 82, 0.12),
    0 6px 20px rgba(20, 41, 82, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(34px) saturate(158%);
  -webkit-backdrop-filter: blur(34px) saturate(158%);
}

html[data-theme="liquid"] .header-badge,
html[data-theme="liquid"] .hero-spec {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36));
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 10px 30px rgba(20, 41, 82, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="liquid"] .theme-switch {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.24));
  border-color: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

html[data-theme="liquid"] .theme-option.is-active {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.64));
  box-shadow:
    0 3px 10px rgba(20, 41, 82, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="liquid"] .search-field,
html[data-theme="liquid"] .field input,
html[data-theme="liquid"] .field textarea {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.34));
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 6px 18px rgba(20, 41, 82, 0.035);
}

html[data-theme="liquid"] .search-field:focus-within,
html[data-theme="liquid"] .field input:focus,
html[data-theme="liquid"] .field textarea:focus {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(0, 113, 227, 0.34);
}

html[data-theme="liquid"] .quick-chip {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.24));
  border-color: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

html[data-theme="liquid"] .quick-chip:hover {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(0, 113, 227, 0.18);
}

html[data-theme="liquid"] .country-picker select,
html[data-theme="liquid"] .selection-badge,
html[data-theme="liquid"] .spec-pill {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

html[data-theme="liquid"] .result-card,
html[data-theme="liquid"] .skeleton-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.32));
  border-color: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

html[data-theme="liquid"] .result-card:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 12px 28px rgba(20, 41, 82, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="liquid"] .result-card.is-selected {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(242, 249, 255, 0.62));
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow:
    0 0 0 3px rgba(0, 113, 227, 0.08),
    0 12px 26px rgba(20, 41, 82, 0.08);
}

html[data-theme="liquid"] .results-empty {
  background:
    linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.26)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 1px, transparent 1px, transparent 8px);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

html[data-theme="liquid"] .canvas-shell {
  background:
    radial-gradient(circle at 20% 15%, rgba(92, 169, 255, 0.34), transparent 35%),
    radial-gradient(circle at 88% 18%, rgba(255, 145, 199, 0.18), transparent 28%),
    radial-gradient(circle at 70% 92%, rgba(255, 192, 102, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(236, 243, 255, 0.34));
  border-color: rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 64px rgba(20, 41, 82, 0.14);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

html[data-theme="liquid"] .search-button,
html[data-theme="liquid"] .export-button:not(:disabled) {
  background: linear-gradient(145deg, #3fa2ff 0%, #0071e3 48%, #0054c8 100%);
  box-shadow:
    0 14px 30px rgba(0, 113, 227, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 66, 148, 0.2);
}

html[data-theme="liquid"] .toast {
  background: rgba(29, 29, 31, 0.72);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

@keyframes liquid-drift {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 100%;
  }
}

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

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.94fr);
  }

  .hero-spec {
    display: none;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(760px, calc(100% - 32px));
  }

  .hero {
    align-items: flex-start;
    padding: 38px 0 34px;
  }

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

  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-column {
    position: static;
  }

  .results-grid {
    max-height: 420px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .site-header {
    padding: 18px 2px 12px;
  }

  .header-badge {
    display: none;
  }

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

  .hero {
    gap: 22px;
    padding: 30px 2px 28px;
  }

  .hero h1 {
    margin-top: 11px;
    font-size: clamp(35px, 10.8vw, 48px);
    line-height: 1.1;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-steps {
    gap: 8px 16px;
    margin-top: 22px;
  }

  .hero-steps span {
    font-size: 12px;
  }

  .search-panel,
  .editor-panel,
  .preview-panel {
    padding: 20px;
    border-radius: 25px;
  }

  .panel-heading,
  .preview-heading {
    margin-bottom: 18px;
  }

  .panel-heading h2,
  .preview-heading h2 {
    font-size: 21px;
  }

  .panel-note,
  .field-label small {
    display: none;
  }

  .search-row {
    gap: 8px;
  }

  .search-button {
    min-width: 72px;
    padding: 0 15px;
  }

  .search-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .result-summary {
    width: 100%;
  }

  .results-grid {
    grid-template-columns: minmax(0, 1fr);
    max-height: 380px;
  }

  .canvas-shell {
    padding: 7px;
    border-radius: 23px;
  }

  #coverCanvas,
  .canvas-loading {
    border-radius: 18px;
  }

  .canvas-loading {
    inset: 7px;
  }

  .site-footer {
    align-items: flex-start;
    padding: 30px 3px 24px;
    flex-direction: column;
    gap: 7px;
  }

  .toast {
    bottom: 18px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
