:root {
  --bg: #0c0f10;
  --bg-elevated: #14191b;
  --ink: #e8eeef;
  --muted: #8b979a;
  --line: rgba(232, 238, 239, 0.12);
  --accent: #3dcfb6;
  --accent-deep: #1f9f8a;
  --danger: #e07060;
  --font-brand: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --radius: 12px;
  --shell: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

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

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(12, 15, 16, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-main {
  display: flex;
  gap: 1rem;
  margin-left: 1.5rem;
  flex: 1;
}

.nav-main a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a.is-active {
  color: var(--ink);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-right: 0.15rem;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 1.6rem 0.3rem 0.5rem;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% - 2px), calc(100% - 8px) calc(50% - 2px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  max-width: 8.5rem;
}

/* Windows 原生下拉列表常是白底，需强制深色字，否则浅色字看不清 */
.lang-switch select option {
  color: #111;
  background-color: #fff;
}

.lang-switch select:hover,
.lang-switch select:focus {
  border-color: var(--accent);
  outline: none;
}

html[dir="rtl"] .lang-switch select {
  padding: 0.3rem 0.5rem 0.3rem 1.6rem;
  background-position: 8px calc(50% - 2px), 12px calc(50% - 2px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.user-email {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.points-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 207, 182, 0.35);
  background: rgba(61, 207, 182, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06231e;
}

.btn-primary:hover {
  background: #55dbc4;
  border-color: #55dbc4;
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(232, 238, 239, 0.28);
}

.btn-block {
  width: 100%;
}

.site-main {
  min-height: calc(100vh - 64px - 120px);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-brand);
}

.footer-brand strong {
  font-size: 1.05rem;
}

.footer-brand span,
.footer-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #061016;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.section-lead {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.55;
}

.guest-gate {
  margin: 0 auto 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: rgba(45, 212, 191, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.guest-gate p {
  margin: 0;
  color: var(--text);
  max-width: 36rem;
}

.faq-section {
  padding: 2.5rem 0 1rem;
}

.guide-section {
  padding: 2.75rem 0 0.5rem;
}

.guide-body {
  display: grid;
  gap: 1.35rem;
  max-width: 48rem;
}

.guide-block h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
}

.guide-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-block p + p,
.guide-block ul + p {
  margin-top: 0.65rem;
}

.guide-block ul {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.guide-block li + li {
  margin-top: 0.35rem;
}

html[dir="rtl"] .guide-block ul {
  padding-left: 0;
  padding-right: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 48rem;
}

.faq-item {
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Hero */
.hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 15, 16, 0.2) 0%, rgba(12, 15, 16, 0.75) 70%, rgba(12, 15, 16, 1) 100%),
    radial-gradient(900px 500px at 80% 20%, rgba(61, 207, 182, 0.22), transparent 60%),
    radial-gradient(700px 480px at 15% 70%, rgba(40, 90, 110, 0.35), transparent 55%),
    linear-gradient(135deg, #101619 0%, #0c0f10 45%, #152026 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(232, 238, 239, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 239, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.hero-content {
  width: min(100% - 2rem, var(--shell));
  margin: 0 auto;
  padding: 2.75rem 0 2.5rem;
  animation: rise 0.9s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-mark {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
}

.hero-headline {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700;
  max-width: 18ch;
}

.hero-support {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 36ch;
  font-size: 1.02rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Tools section */
.tools-section {
  padding: 4rem 0 2rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tool-item {
  display: block;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 25, 27, 0.7);
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: rise 0.7s ease both;
}

.tool-item:nth-child(1) { animation-delay: 0.05s; }
.tool-item:nth-child(2) { animation-delay: 0.1s; }
.tool-item:nth-child(3) { animation-delay: 0.15s; }
.tool-item:nth-child(4) { animation-delay: 0.2s; }
.tool-item:nth-child(5) { animation-delay: 0.25s; }
.tool-item:nth-child(6) { animation-delay: 0.3s; }
.tool-item:nth-child(7) { animation-delay: 0.35s; }
.tool-item:nth-child(8) { animation-delay: 0.4s; }

.tool-item:hover {
  border-color: rgba(61, 207, 182, 0.45);
  transform: translateY(-2px);
}

.tool-item.is-soon {
  opacity: 0.72;
}

.tool-item.is-soon:hover {
  border-color: rgba(61, 207, 182, 0.28);
  transform: translateY(-1px);
  opacity: 0.9;
}

.tool-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.tool-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.badge-live {
  color: #06231e;
  background: var(--accent);
  border-color: var(--accent);
}

.tool-zh {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.tool-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Auth */
.page-auth .site-main {
  display: flex;
  align-items: center;
}

.auth-panel {
  padding: 2.5rem 0 3rem;
  width: min(100% - 2rem, 440px);
}

.auth-card h1 {
  font-family: var(--font-brand);
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

.auth-card .lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.auth-form input:focus {
  outline: 2px solid rgba(61, 207, 182, 0.45);
  outline-offset: 1px;
}

.auth-switch {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
}

.alert {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(224, 112, 96, 0.12);
  border: 1px solid rgba(224, 112, 96, 0.35);
  color: #f0b4ab;
}

/* Erase workspace */
.page-erase .site-footer {
  margin-top: 1.5rem;
}

.erase-hero {
  padding: 1.6rem 0 0.6rem;
}

.erase-hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.erase-hero p {
  margin: 0;
  color: var(--muted);
}

.erase-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 1rem 0 1rem;
}

.erase-toolbar label.file-btn input {
  display: none;
}

.brush-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.brush-control input[type="range"] {
  width: 110px;
}

.ratio-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.ratio-chip {
  cursor: pointer;
  position: relative;
}

.ratio-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ratio-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.ratio-chip input:checked + span {
  border-color: var(--accent);
  background: rgba(61, 207, 182, 0.14);
  color: var(--accent);
}

.text-style-form {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
  max-width: 720px;
}

.text-style-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.text-style-form input,
.text-style-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
  resize: vertical;
}

.text-style-form input:focus,
.text-style-form textarea:focus {
  outline: 2px solid rgba(61, 207, 182, 0.45);
  outline-offset: 1px;
}

.replace-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.replace-head .muted {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.replace-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.replace-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 25, 27, 0.65);
}

.replace-from {
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replace-arrow {
  color: var(--accent);
  font-weight: 700;
}

.replace-item input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0f10;
  color: var(--ink);
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.replace-remove {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .replace-item {
    grid-template-columns: 1fr;
  }
}

.ocr-stage {
  position: relative;
  width: 100%;
  background: #070909;
  border-radius: 8px;
  overflow: hidden;
}

.ocr-stage img {
  width: 100%;
  height: auto;
  display: block;
}

.ocr-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ocr-box {
  position: absolute;
  pointer-events: auto;
  border: 2px solid rgba(61, 207, 182, 0.85);
  background: rgba(61, 207, 182, 0.18);
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.ocr-box:hover,
.ocr-box.is-active {
  background: rgba(61, 207, 182, 0.35);
  border-color: #7aead5;
  box-shadow: 0 0 0 1px rgba(61, 207, 182, 0.5);
}

.ocr-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 120px;
  overflow: auto;
}

.ocr-list-item {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ocr-list-item:hover,
.ocr-list-item.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(61, 207, 182, 0.12);
}

.edit-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 1rem;
}

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

.edit-pop-card {
  width: min(100%, 420px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.15rem;
}

.edit-pop-label {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.edit-pop-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0f10;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
  margin-bottom: 0.9rem;
}

.edit-pop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.erase-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .erase-stage {
    grid-template-columns: 1fr 1fr;
  }
}

.erase-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 25, 27, 0.65);
  padding: 0.9rem;
  min-height: 300px;
}

.erase-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  background: #070909;
  border-radius: 8px;
  overflow: hidden;
  touch-action: none;
}

#view {
  display: block;
  width: 100%;
  height: auto;
}

#paint {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.hint {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.result-frame {
  width: 100%;
  min-height: 180px;
  border-radius: 8px;
  background: #070909;
  overflow: hidden;
}

#resultImg {
  width: 100%;
  border-radius: 8px;
  background: #070909;
  min-height: 180px;
  object-fit: contain;
}

.erase-status {
  margin-top: 0.75rem;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.erase-status.is-error {
  color: var(--danger);
}

.erase-status.is-ok {
  color: var(--accent);
}

.result-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

/* Coming soon */
.coming-panel {
  padding: 4rem 0 3rem;
  max-width: 640px;
}

.coming-panel h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.6rem;
}

.coming-panel p {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

/* Before / After compare */
.compare-section {
  padding: 3.5rem 0 1rem;
}

.compare {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #070909;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  aspect-ratio: 16 / 9;
}

.compare.compare-tall {
  aspect-ratio: 1 / 1;
  max-width: 720px;
  margin-inline: auto;
}

.demo-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.demo-lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 42ch;
}

.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-before {
  display: block;
}

.compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

.compare-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(232, 238, 239, 0.92);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(12, 15, 16, 0.88);
  border: 2px solid rgba(232, 238, 239, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.compare-knob::before,
.compare-knob::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.compare-knob::before {
  left: 11px;
  transform: translateY(-50%) rotate(-135deg);
}

.compare-knob::after {
  right: 11px;
}

.compare-labels {
  position: absolute;
  inset: 0.85rem 0.9rem auto;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.compare-labels span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 15, 16, 0.62);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.compare.is-dragging .compare-knob {
  border-color: var(--accent);
}

.compare-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .nav-main {
    display: none;
  }

  .user-email {
    display: none;
  }
}
