:root {
  --bg1: #1d1f1f;
  --bg2: #15191a;
  --page-bg: linear-gradient(180deg, #1d1f1f 0%, #1a1d1d 42%, #15191a 100%);
  --surface: rgba(40, 42, 42, 0.9);
  --surface-strong: rgba(46, 48, 48, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(221, 230, 221, 0.08);
  --line-strong: rgba(221, 230, 221, 0.14);
  --fg: #f1eae2;
  --fg-muted: rgba(221, 230, 221, 0.74);
  --fg-subtle: rgba(221, 230, 221, 0.5);
  --glass-bg: var(--surface);
  --brand-1: #d38a59;
  --brand-2: #e3b681;
  --brand-soft: rgba(211, 138, 89, 0.22);
  --accent: #d38a59;
  --warm: rgba(211, 138, 89, 0.16);
  --warn: #f0c36f;
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.36);

  --page-padding: clamp(14px, 1.8vw, 28px);
  --section-gap: clamp(18px, 2.8vh, 34px);
  --card-gap: clamp(12px, 1.8vw, 22px);
  --pane-padding: clamp(18px, 3vw, 34px);

  --font-title: clamp(22px, 3.8vw, 36px);
  --font-h2: clamp(22px, 3.4vw, 32px);
  --font-body: clamp(16px, 1.6vw, 18px);
  --font-small: clamp(13px, 1.2vw, 14px);
  --home-content-width: min(1200px, 94vw);
  --hero-reveal-peek: 0px;
  --hero-reveal-opacity: 0;
  color-scheme: dark;
}

@media (min-width: 1280px) {
  :root {
    --home-content-width: 88vw;
  }
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(88px, 11vw, 118px);
  background-color: var(--bg1);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: var(--font-body);
  color: var(--fg);
  background: var(--page-bg);
  line-height: 1.6;
  letter-spacing: 0;
}

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

.page {
  padding: 0 var(--page-padding) var(--page-padding);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  align-items: center;
}

.edit-page .page {
  gap: 8px;
}

.hidden {
  display: none !important;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px) saturate(1.35);
}

.topbar {
  width: calc(100% + (var(--page-padding) * 2));
  margin-inline: calc(var(--page-padding) * -1);
  padding: 0;
  display: block;
  position: sticky;
  top: 0;
  z-index: 120;
  background:
    linear-gradient(180deg, #000 0%, #000 20%, rgba(0, 0, 0, 0.7) 65%, rgba(0, 0, 0, 0) 100%);
  transform: translateY(var(--hero-reveal-peek));
  transition: transform 0.16s linear;
}

#nav-sentinel {
  height: 0 !important;
  margin-block: calc(var(--section-gap) * -1);
  pointer-events: none;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(1px) saturate(1.08);
  backdrop-filter: blur(1px) saturate(1.08);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 48%, rgba(0, 0, 0, 0) 88%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 48%, rgba(0, 0, 0, 0) 88%);
  z-index: 0;
}

.topbar-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 94vw);
  padding: clamp(12px, 1.5vw, 18px) 0 clamp(22px, 3vw, 34px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 18px);
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding-inline: clamp(14px, 2vw, 24px);
  box-shadow: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 22px);
}

.site-user-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: clamp(120px, 14vw, 190px);
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.site-user-avatar {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  border-radius: 50%;
  object-fit: cover;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--accent));
}

.site-user-avatar i {
  font-size: 12px;
}

.site-user-name {
  min-width: 0;
  overflow: hidden;
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-login-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 4px;
  border: 0;
  color: var(--fg);
  background: transparent;
  font: inherit;
  font-size: var(--font-small);
  font-weight: 700;
  cursor: pointer;
}

.site-login-btn:hover {
  color: var(--accent);
}

.site-login-btn #logoutIcon {
  display: none;
}

.site-login-btn.icon-only {
  width: 38px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.site-login-btn.icon-only #logoutIcon {
  display: inline-block;
}

.site-login-btn.icon-only #i18n-login {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

.logo {
  width: clamp(30px, 4vw, 36px);
  height: clamp(30px, 4vw, 36px);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo.mini {
  width: clamp(36px, 4vw, 42px);
  height: clamp(36px, 4vw, 42px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.4vw, 6px);
}

.brand-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-tagline {
  color: var(--fg-subtle);
  font-size: var(--font-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2.2vw, 20px);
}

.nav a {
  font-size: var(--font-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: clamp(8px, 1.4vw, 12px) clamp(12px, 2vw, 18px);
  border-radius: 10px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav a:not(.primary):hover {
  background: var(--surface-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav a.primary {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(211, 138, 89, 0.32);
}

.nav a.primary:hover {
  transform: translateY(-1px) scale(1.01);
}

.nav-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-tool-trigger {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(8px, 1.4vw, 12px) clamp(12px, 2vw, 18px);
  border: 0;
  border-radius: 10px;
  color: var(--fg);
  background: transparent;
  font: inherit;
  font-size: var(--font-small);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-tool-trigger:hover,
.nav-tool:focus-within .nav-tool-trigger {
  background: var(--surface-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-tool-trigger i {
  color: var(--brand-2);
  font-size: 11px;
}

.nav-tool-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(360px, 82vw);
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(10, 15, 23, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px) saturate(1.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}

.nav-tool:hover .nav-tool-menu,
.nav-tool:focus-within .nav-tool-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-tool-menu a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.035);
}

.nav-tool-menu a:hover {
  border-color: rgba(211, 138, 89, 0.34);
  background: rgba(211, 138, 89, 0.1);
  transform: none;
  box-shadow: none;
}

.nav-tool-menu i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211, 138, 89, 0.36);
  border-radius: 9px;
  color: var(--brand-2);
  background: rgba(211, 138, 89, 0.1);
}

.nav-tool-menu strong,
.nav-tool-menu small {
  display: block;
  min-width: 0;
}

.nav-tool-menu strong {
  color: var(--fg);
  font-size: 13px;
  line-height: 1.25;
}

.nav-tool-menu small {
  margin-top: 2px;
  color: var(--fg-subtle);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.lang-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, 3.2vw, 38px);
  height: clamp(32px, 3.2vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  background: transparent;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.lang-trigger:hover {
  background-color: var(--surface-soft);
}

.lang-trigger i {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--fg);
  pointer-events: none;
}

.lang-trigger i:before {
  content: "🌐";
  font-size: clamp(16px, 1.8vw, 18px);
}

.lang-trigger select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  appearance: none;
  cursor: pointer;
}

.lang-trigger select:focus {
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vh, 72px);
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.auth-panel {
  position: relative;
  width: min(620px, 94vw);
  max-height: min(760px, 92vh);
  overflow-y: auto;
  padding: clamp(24px, 5vh, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.6vh, 24px);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}

.auth-close {
  position: absolute;
  top: clamp(12px, 2vh, 18px);
  inset-inline-end: clamp(12px, 2vh, 18px);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.auth-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 34px;
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: contain;
}

.auth-head-text h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

.auth-head-text p {
  margin: 6px 0 0;
  color: var(--fg-muted);
  font-size: var(--font-small);
}

.auth-tabs {
  display: inline-flex;
  align-self: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-tabs button {
  min-width: 108px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--fg-muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs button.active {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
}

.auth-alert {
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.5;
}

.auth-alert.error {
  color: #ffb4c1;
  background: rgba(255, 99, 132, 0.12);
}

.auth-alert.success {
  color: #d8ead8;
  background: rgba(85, 214, 138, 0.12);
}

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

.auth-social-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auth-social-btn .icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.auth-divider {
  position: relative;
  color: var(--fg-subtle);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 32%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

#authForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field label {
  color: var(--fg-muted);
  font-size: 13px;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  padding: 0 14px;
  color: var(--fg);
  background: rgba(7, 12, 17, 0.48);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(211, 138, 89, 0.66);
  box-shadow: 0 0 0 4px rgba(211, 138, 89, 0.12);
}

.auth-password {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(7, 12, 17, 0.48);
}

.auth-password input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-password button {
  width: 46px;
  border: 0;
  color: var(--fg-subtle);
  background: transparent;
  cursor: pointer;
}

.auth-aux {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2px;
  font-size: 13px;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg-muted);
  font-size: 13px;
}

.auth-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.auth-agree {
  align-items: flex-start;
  line-height: 1.55;
}

.auth-inline-link,
.auth-link {
  border: 0;
  color: var(--accent);
  background: none;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.auth-link:hover,
.auth-inline-link:hover {
  color: var(--fg);
  text-decoration: underline;
}

.auth-submit {
  align-self: center;
  min-width: 156px;
  min-height: 48px;
  margin-top: 4px;
}

.auth-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 13px;
}

.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  animation: auth-spin 0.9s linear infinite;
}

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

.main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  align-items: center;
  width: 100%;
}

.hero {
  width: var(--home-content-width);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero.glass {
  background:
    linear-gradient(145deg, rgba(46, 48, 48, 0.92), rgba(40, 42, 42, 0.74)),
    var(--surface);
}

.hero-community-section {
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  align-items: stretch;
  padding: clamp(28px, 4.4vw, 46px);
  gap: clamp(28px, 4.4vw, 56px);
}

.hero-product-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 42px);
}

.hero-community-section .hero-copy {
  max-width: 620px;
}

.hero-community-section .hero-visual {
  justify-content: stretch;
}

.hero-community-section .visual-card {
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 32px);
}

.hero-copy h2 {
  font-size: var(--font-title);
  line-height: 1.15;
}

.eyebrow {
  font-size: var(--font-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

h1 {
  font-size: var(--font-title);
  margin: 0;
  line-height: 1.15;
}

h2 {
  font-size: var(--font-h2);
  margin: 0;
}

h3 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
}

p {
  margin: 0;
  color: var(--fg-muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 12px);
  padding: clamp(12px, 2.4vw, 16px) clamp(18px, 3vw, 24px);
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(211, 138, 89, 0.32);
}

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

.btn.nav {
  padding: clamp(6px, 1.2vw, 8px) clamp(12px, 2vw, 16px);
  font-size: clamp(12px, 1.4vw, 14px);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(211, 138, 89, 0.25);
}

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

.btn.ghost {
  background: var(--surface-soft);
  color: var(--fg);
  border: 1px solid var(--line);
}

.btn.ghost:hover {
  opacity: 0.8;
}

.btn.small {
  padding: clamp(8px, 1.4vw, 12px) clamp(16px, 2.4vw, 20px);
  font-size: var(--font-small);
}

.btn.ghost.small {
  background: transparent;
}

.store-inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2.2vw, 18px);
  max-width: clamp(400px, 70vw, 480px);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.6vw, 12px);
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--fg-muted);
  font-size: var(--font-small);
  line-height: 1.25;
}

@media (max-width: 640px) {
  .store-inline {
    grid-template-columns: 1fr;
    max-width: clamp(280px, 80vw, 320px);
  }
}

.store {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(12px, 2.6vw, 18px) clamp(16px, 3vw, 24px);
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.store.web {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  color: #ffffff;
  border-color: transparent;
}

.store.web .store-text small {
  color: rgba(255, 255, 255, 0.74);
}

.store.web:hover {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  opacity: 0.9;
}

.store i {
  font-size: clamp(20px, 2.6vw, 28px);
}

.store .store-text {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: clamp(13px, 1.6vw, 14px);
  line-height: 1.2;
}

.store .store-text small {
  font-size: clamp(11px, 1.2vw, 12px);
  color: var(--fg-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.platform-access {
  position: relative;
  width: var(--home-content-width);
  padding: clamp(18px, 2.4vw, 28px) clamp(24px, 4vw, 44px) clamp(24px, 3.2vw, 36px);
  display: grid;
  gap: clamp(18px, 2.8vw, 32px);
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(46, 48, 48, 0.92), rgba(40, 42, 42, 0.74)),
    var(--surface);
}

.platform-access::before {
  content: "";
  position: absolute;
  inset: clamp(38px, 4vw, 58px) clamp(48px, 6vw, 78px) clamp(24px, 3vw, 34px);
  background: rgba(6, 14, 24, 0.18);
  border: 1px solid rgba(220, 232, 244, 0.04);
  pointer-events: none;
}

.platform-access-points,
.platform-access-grid {
  position: relative;
  z-index: 1;
}

.platform-access-points {
  justify-content: flex-start;
  padding-inline: clamp(10px, 3vw, 42px);
}

.platform-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  gap: clamp(16px, 2.8vw, 28px);
}

.platform-access .store {
  min-height: clamp(68px, 7vw, 86px);
  justify-content: center;
  padding: clamp(16px, 2.4vw, 22px) clamp(16px, 2.6vw, 26px);
}

.platform-access .store i {
  font-size: clamp(26px, 3vw, 36px);
}

.platform-access .store .store-text {
  font-size: clamp(15px, 1.65vw, 18px);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-slider-section {
  width: 100vw;
  padding: 0;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, calc(-100% + var(--hero-reveal-peek)), 0);
  opacity: var(--hero-reveal-opacity);
  transition: transform 0.16s linear, opacity 0.16s linear;
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 760px;
  min-height: min(760px, 100vh);
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

/* sticky navbar styles */
.topbar.sticky {
  background:
    linear-gradient(180deg, #000 0%, #000 20%, rgba(0, 0, 0, 0.7) 65%, rgba(0, 0, 0, 0) 100%);
  box-shadow: none;
  border-radius: 0;
}



.topbar.sticky .topbar-inner {
  background: transparent;
  box-shadow: none;
  padding-top: clamp(10px, 1.2vw, 14px);
  padding-bottom: clamp(16px, 2vw, 24px);
}

.hero-slider.visual-card {
  padding: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  overflow: hidden;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-community-card {
  position: relative;
  align-self: stretch;
  min-height: clamp(520px, 52vw, 690px);
  padding: clamp(28px, 4vw, 42px);
  display: grid;
  align-content: start;
  gap: clamp(14px, 1.8vw, 20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(46, 48, 48, 0.92), rgba(40, 42, 42, 0.74)),
    var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px) saturate(1.35);
}

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

.community-head h2 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-head p {
  max-width: 440px;
  margin: clamp(10px, 1.6vw, 16px) 0 0;
  color: var(--fg-subtle);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 650;
  line-height: 1.45;
}

.community-icon-btn,
.community-close {
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 232, 244, 0.14);
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.community-icon-btn {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  font-size: 20px;
}

.community-icon-btn:hover,
.community-close:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.09);
}

.community-status {
  min-height: 22px;
  color: var(--fg-muted);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 800;
  line-height: 1.45;
}

.community-status[data-tone="error"] {
  color: #ffb4c1;
}

.community-status[data-tone="success"] {
  color: #a9f0c3;
}

.community-rating-list {
  display: grid;
  gap: clamp(10px, 1.4vw, 15px);
}

.community-rating-row {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) minmax(92px, 0.9fr) minmax(72px, auto);
  align-items: center;
  gap: clamp(12px, 1.8vw, 22px);
}

.community-platform-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  font-size: clamp(15px, 1.55vw, 20px);
  font-weight: 880;
  line-height: 1.2;
}

.community-platform-name span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.community-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: var(--platform-color);
}

.community-score-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.community-score-track span {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: var(--platform-color);
}

.community-score-value {
  display: inline-flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 16px;
  white-space: nowrap;
}

.community-score-value strong {
  min-width: 34px;
  color: var(--fg);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 900;
  text-align: right;
}

.community-score-value span {
  min-width: 28px;
  color: var(--fg-subtle);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 850;
  text-align: right;
}

.community-income {
  display: grid;
  gap: 8px;
}

.community-income-title,
.community-income-empty {
  color: var(--fg-subtle);
  font-size: clamp(13px, 1.24vw, 17px);
  font-weight: 780;
  line-height: 1.45;
}

.community-income-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 760;
}

.community-income-row > div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.community-income-row i {
  display: block;
  width: var(--income-score);
  height: 100%;
  border-radius: inherit;
  background: #72d99a;
}

.community-income-row strong {
  color: var(--fg);
  font-size: 12px;
  text-align: right;
}

.community-rate-btn {
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  border: 0;
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 850;
}

.community-rate-btn:disabled,
.community-dialog-actions .btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.community-rate-btn:disabled:hover,
.community-dialog-actions .btn:disabled:hover {
  transform: none;
}

.community-modal {
  position: fixed;
  inset: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vh, 64px);
}

.community-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.community-dialog {
  position: relative;
  width: min(720px, 94vw);
  max-height: min(820px, 90vh);
  overflow: auto;
  padding: clamp(22px, 4vh, 34px);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(18, 25, 37, 0.94), rgba(21, 25, 26, 0.92)),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.community-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.community-dialog-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-right: 38px;
  margin-bottom: 22px;
}

.community-dialog-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #f2b94c;
  background: rgba(242, 185, 76, 0.12);
}

.community-dialog h2 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(20px, 2.8vw, 27px);
  font-weight: 860;
  letter-spacing: 0;
  text-transform: none;
}

.community-dialog p {
  margin: 5px 0 0;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
}

.community-score-grid {
  display: grid;
  gap: 10px;
}

.community-score-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.community-score-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fg);
  font-size: 14px;
  font-weight: 800;
}

.community-star-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.community-star-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--fg-subtle);
  background: transparent;
  cursor: pointer;
}

.community-star-btn.active,
.community-star-btn:hover {
  color: #f2b94c;
  background: rgba(242, 185, 76, 0.1);
}

.community-star-btn:disabled {
  cursor: default;
}

.community-income-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.community-income-field span {
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 820;
}

.community-income-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  background: rgba(5, 9, 14, 0.94);
  padding: 0 12px;
  font: inherit;
}

.community-form-message {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 720;
}

.community-form-message.error {
  color: #ffb4c1;
  background: rgba(255, 99, 132, 0.12);
}

.community-form-message.success {
  color: #a9f0c3;
  background: rgba(69, 214, 118, 0.12);
}

.community-form-message.info {
  color: var(--fg-muted);
  background: var(--surface-soft);
}

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

.scene-slide::before,
.scene-slide::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  mix-blend-mode: screen;
  z-index: 2;
  transform-origin: center;
}

.scene-slide::before {
  right: 1.2%;
  top: 11.8%;
  width: 18.6%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 54%,
      rgba(255, 194, 103, 0.42) 0%,
      rgba(255, 149, 45, 0.24) 34%,
      rgba(211, 138, 89, 0.08) 58%,
      rgba(211, 138, 89, 0) 76%);
  filter: blur(4px);
  animation: lampGlowBreath 4.4s ease-in-out infinite;
}

.scene-slide::after {
  right: 7.2%;
  top: 17.7%;
  width: 6.2%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle,
      rgba(255, 230, 153, 0.72) 0%,
      rgba(255, 172, 65, 0.36) 42%,
      rgba(211, 138, 89, 0) 72%);
  filter: blur(2px);
  animation: lampGlowCore 3.2s ease-in-out infinite;
}

.lamp-glow,
.hero-dust,
.dust-particle,
.coffee-steam,
.steam-wisp {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.lamp-glow-left {
  left: 4.6%;
  top: -1.7%;
  width: 10.6%;
  aspect-ratio: 1.28 / 1;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 54% 56%,
      rgba(255, 226, 151, 0.52) 0%,
      rgba(255, 181, 88, 0.3) 34%,
      rgba(255, 140, 55, 0.11) 62%,
      rgba(255, 140, 55, 0) 78%);
  filter: blur(3px);
  mix-blend-mode: screen;
  transform-origin: 50% 55%;
  animation: leftLampGlow 4.8s ease-in-out infinite;
}

.hero-dust {
  left: 5%;
  top: 7%;
  width: 25%;
  height: 32%;
  overflow: visible;
}

.dust-particle {
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 999px;
  background:
    radial-gradient(circle,
      rgba(255, 238, 190, 0.72) 0%,
      rgba(255, 194, 103, 0.32) 42%,
      rgba(255, 194, 103, 0) 72%);
  box-shadow: 0 0 calc(var(--s) * 1.8) rgba(255, 181, 88, 0.32);
  filter: blur(0.3px);
  mix-blend-mode: screen;
  opacity: 0;
  animation: dustFloat var(--duration) cubic-bezier(0.34, 0, 0.24, 1) var(--delay) infinite;
  will-change: opacity, transform;
}

.coffee-steam {
  left: 1.9%;
  top: 61.8%;
  width: 9.4%;
  height: 20.5%;
  z-index: 3;
  overflow: visible;
  mix-blend-mode: screen;
}

.steam-wisp {
  left: var(--steam-x);
  bottom: 0;
  width: var(--steam-w);
  height: var(--steam-h);
  border-radius: 999px 999px 46% 46%;
  background:
    radial-gradient(ellipse at 50% 18%,
      rgba(255, 255, 255, 0.36) 0%,
      rgba(223, 235, 240, 0.22) 36%,
      rgba(223, 235, 240, 0) 72%);
  filter: blur(var(--steam-blur));
  opacity: 0;
  transform-origin: 50% 100%;
  animation: coffeeSteamRise var(--steam-duration) ease-in-out var(--steam-delay) infinite;
  will-change: opacity, transform, filter;
}

.steam-wisp::before {
  content: "";
  position: absolute;
  inset: 6% 28% 10%;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  filter: blur(0.8px);
}

.steam-wisp:nth-child(1) {
  --steam-x: 20%;
  --steam-w: 15%;
  --steam-h: 64%;
  --steam-blur: 5px;
  --steam-duration: 8.8s;
  --steam-delay: -1.6s;
  --steam-opacity: 0.26;
  --steam-mid-opacity: 0.2;
  --steam-late-opacity: 0.1;
  --steam-x-1: -10px;
  --steam-y-1: -26px;
  --steam-x-2: 8px;
  --steam-y-2: -58px;
  --steam-x-3: -4px;
  --steam-y-3: -92px;
  --steam-rotate-1: -7deg;
  --steam-rotate-2: 10deg;
  --steam-rotate-3: -4deg;
}

.steam-wisp:nth-child(2) {
  --steam-x: 36%;
  --steam-w: 18%;
  --steam-h: 78%;
  --steam-blur: 6px;
  --steam-duration: 10.4s;
  --steam-delay: -4.2s;
  --steam-opacity: 0.3;
  --steam-mid-opacity: 0.23;
  --steam-late-opacity: 0.12;
  --steam-x-1: 9px;
  --steam-y-1: -32px;
  --steam-x-2: -11px;
  --steam-y-2: -70px;
  --steam-x-3: 7px;
  --steam-y-3: -108px;
  --steam-rotate-1: 8deg;
  --steam-rotate-2: -12deg;
  --steam-rotate-3: 5deg;
}

.steam-wisp:nth-child(3) {
  --steam-x: 49%;
  --steam-w: 13%;
  --steam-h: 58%;
  --steam-blur: 4.5px;
  --steam-duration: 7.6s;
  --steam-delay: -2.8s;
  --steam-opacity: 0.22;
  --steam-mid-opacity: 0.17;
  --steam-late-opacity: 0.08;
  --steam-x-1: -6px;
  --steam-y-1: -24px;
  --steam-x-2: 12px;
  --steam-y-2: -52px;
  --steam-x-3: 2px;
  --steam-y-3: -84px;
  --steam-rotate-1: -6deg;
  --steam-rotate-2: 11deg;
  --steam-rotate-3: 3deg;
}

.steam-wisp:nth-child(4) {
  --steam-x: 60%;
  --steam-w: 20%;
  --steam-h: 72%;
  --steam-blur: 7px;
  --steam-duration: 11.2s;
  --steam-delay: -6.5s;
  --steam-opacity: 0.2;
  --steam-mid-opacity: 0.15;
  --steam-late-opacity: 0.07;
  --steam-x-1: 12px;
  --steam-y-1: -30px;
  --steam-x-2: -8px;
  --steam-y-2: -64px;
  --steam-x-3: 14px;
  --steam-y-3: -102px;
  --steam-rotate-1: 9deg;
  --steam-rotate-2: -8deg;
  --steam-rotate-3: 6deg;
}

.steam-wisp:nth-child(5) {
  --steam-x: 29%;
  --steam-w: 12%;
  --steam-h: 54%;
  --steam-blur: 4px;
  --steam-duration: 9.4s;
  --steam-delay: -7.8s;
  --steam-opacity: 0.18;
  --steam-mid-opacity: 0.14;
  --steam-late-opacity: 0.07;
  --steam-x-1: 7px;
  --steam-y-1: -22px;
  --steam-x-2: -6px;
  --steam-y-2: -48px;
  --steam-x-3: 9px;
  --steam-y-3: -78px;
  --steam-rotate-1: 6deg;
  --steam-rotate-2: -9deg;
  --steam-rotate-3: 4deg;
}

.steam-wisp:nth-child(6) {
  --steam-x: 68%;
  --steam-w: 11%;
  --steam-h: 50%;
  --steam-blur: 4.5px;
  --steam-duration: 8.2s;
  --steam-delay: -5.1s;
  --steam-opacity: 0.16;
  --steam-mid-opacity: 0.12;
  --steam-late-opacity: 0.06;
  --steam-x-1: -7px;
  --steam-y-1: -20px;
  --steam-x-2: 6px;
  --steam-y-2: -44px;
  --steam-x-3: -3px;
  --steam-y-3: -72px;
  --steam-rotate-1: -5deg;
  --steam-rotate-2: 8deg;
  --steam-rotate-3: -3deg;
}

@keyframes lampGlowBreath {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.84;
    transform: scale(1.05);
  }
}

@keyframes lampGlowCore {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.78;
    transform: scale(1.08);
  }
}

@keyframes leftLampGlow {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.95);
  }

  50% {
    opacity: 0.66;
    transform: scale(1.04);
  }
}

@keyframes dustFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(var(--start-scale));
  }

  18% {
    opacity: var(--peak-opacity);
    transform: translate3d(var(--curve-x-1), calc(var(--curve-y-1) * -1), 0) scale(1);
  }

  46% {
    opacity: var(--mid-opacity);
    transform: translate3d(var(--curve-x-2), calc(var(--curve-y-2) * -1), 0) scale(0.78);
  }

  72% {
    opacity: var(--late-opacity);
    transform: translate3d(var(--curve-x-3), calc(var(--curve-y-3) * -1), 0) scale(0.54);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift), calc(var(--rise) * -1), 0) scale(var(--end-scale));
  }
}

@keyframes coffeeSteamRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) rotate(0deg) scale(0.38, 0.34);
  }

  16% {
    opacity: var(--steam-opacity);
    transform: translate3d(var(--steam-x-1), var(--steam-y-1), 0) rotate(var(--steam-rotate-1)) scale(0.7, 0.78);
  }

  45% {
    opacity: var(--steam-mid-opacity, 0.18);
    transform: translate3d(var(--steam-x-2), var(--steam-y-2), 0) rotate(var(--steam-rotate-2)) scale(0.92, 1.18);
  }

  72% {
    opacity: var(--steam-late-opacity, 0.08);
    filter: blur(calc(var(--steam-blur) + 2px));
    transform: translate3d(var(--steam-x-3), var(--steam-y-3), 0) rotate(var(--steam-rotate-3)) scale(1.1, 1.38);
  }

  100% {
    opacity: 0;
    filter: blur(calc(var(--steam-blur) + 4px));
    transform: translate3d(var(--steam-x-3), calc(var(--steam-y-3) - 34px), 0) rotate(0deg) scale(1.25, 1.58);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-slide::before,
  .scene-slide::after,
  .lamp-glow-left,
  .dust-particle,
  .steam-wisp {
    animation: none;
  }

  .dust-particle,
  .coffee-steam {
    display: none;
  }
}

/* Keep the top hero in the layout while the nav is sticky to avoid scroll jumps. */
.hero-slider-section.hidden-when-sticky {
  display: flex;
}

.visual-card {
  width: min(880px, 60vw);
  padding: clamp(18px, 3vw, 28px);
  border-radius: 12px;
  position: relative;
}

.visual-slider {
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
}

.visual-slide {
  position: absolute;
  inset: clamp(18px, 3vw, 28px);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.visual-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.visual-card > img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.visual-slide > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.visual-slide > img.site-ad-shot {
  width: min(100%, 600px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.visual-slide > img.site-ad-shot[height="1299"] {
  width: auto;
  max-width: min(100%, 600px);
  height: 100%;
}

.visual-slide > .visual-card-secondary {
  position: absolute;
  bottom: clamp(20px, 3vw, 30px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(160px, 30vw, 280px);
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.section {
  width: var(--home-content-width);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 36px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
  max-width: clamp(520px, 70vw, 640px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 32vw, 320px), 1fr));
  gap: var(--card-gap);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}

.feature-card {
  padding: clamp(20px, 3.6vw, 30px);
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-2);
  font-size: 21px;
}

.feature-card img {
  width: clamp(48px, 8vw, 72px);
  height: clamp(48px, 8vw, 72px);
}

.exposure-list {
  margin-top: clamp(2px, 0.8vw, 8px);
}

.growth-panel {
  align-items: flex-end;
}

.workspace-panel img.site-ad-shot,
.growth-panel img.site-ad-shot {
  width: min(100%, 600px);
  max-width: 600px;
  margin-left: auto;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
}

.workspace-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 22px);
}

.workspace-panel img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.workspace-actions .btn {
  flex: 1 1 220px;
}

.plus-card {
  padding: clamp(22px, 4vw, 36px);
  border-radius: 12px;
  background:
    linear-gradient(140deg, var(--brand-soft), rgba(211, 138, 89, 0.08)),
    var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(150px, 0.48fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
}

.plus-meter {
  min-height: 168px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(8, 11, 17, 0.5);
  border: 1px solid var(--line);
}

.plus-meter strong {
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1;
}

.plus-meter span {
  max-width: 150px;
  color: var(--fg-muted);
  font-size: var(--font-small);
  line-height: 1.35;
}

.check-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--fg-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 26px);
  min-height: 100%;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  background:
    linear-gradient(145deg, var(--brand-soft), rgba(211, 138, 89, 0.08)),
    var(--surface-soft);
  border-color: var(--line-strong);
}

.pricing-card.free-plan {
  border-color: rgba(211, 138, 89, 0.28);
  background:
    linear-gradient(145deg, rgba(211, 138, 89, 0.1), rgba(40, 42, 42, 0.1)),
    var(--surface-soft);
}

.pricing-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(211, 138, 89, 0.78);
  color: #0b0f14;
  font-size: 25px;
  box-shadow: var(--shadow-sm);
}

.pricing-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pricing-card-head h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.pricing-card-head p {
  margin-top: 8px;
  max-width: 420px;
}

.price-pill {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 14px 20px;
  border-radius: 18px;
  background: #c3cbc3;
  color: #090b0d;
  text-align: center;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
}

.pricing-list {
  flex: 0 0 auto;
  gap: 11px;
  padding-top: 4px;
}

.pricing-list li {
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 650;
}

.pricing-cta {
  width: 100%;
  margin-top: auto;
}

.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);
}

.platform-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 16px);
}

.platform-strip span {
  min-height: 72px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--fg);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}

.trust-card {
  padding: clamp(20px, 3.4vw, 30px);
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 16px);
  box-shadow: var(--shadow-sm);
}

.trust-actions {
  display: flex;
  justify-content: flex-end;
}

.resource-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--card-gap);
}

.resource-title-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(10px, 1.6vw, 16px);
}

.resource-card,
.guide-card {
  padding: clamp(22px, 3.4vw, 32px);
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vw, 16px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.resource-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.resource-title-card {
  min-height: 116px;
  justify-content: center;
}

.resource-title-card h3 {
  font-size: clamp(18px, 2vw, 24px);
}

.resource-actions {
  display: flex;
  justify-content: flex-end;
}

.resource-card span,
.guide-card span {
  color: var(--accent);
  font-size: var(--font-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card ul,
.guide-card ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--fg-muted);
}

.guide-card li {
  margin: 6px 0;
}

.guide-article {
  display: grid;
  gap: clamp(22px, 4vw, 36px);
}

.guide-content {
  display: grid;
  gap: clamp(16px, 2.6vw, 24px);
}

.guide-content h2 {
  margin-top: clamp(8px, 1.6vw, 14px);
}

.guide-content h3 {
  font-size: clamp(18px, 2vw, 22px);
}

.guide-content ul,
.guide-content ol {
  margin: 0;
  padding-left: 1.3em;
  color: var(--fg-muted);
}

.guide-content li {
  margin: 7px 0;
}

.example-box {
  padding: clamp(18px, 2.8vw, 26px);
  border-radius: 12px;
  background: rgba(8, 11, 17, 0.46);
  border: 1px solid var(--line);
}

.example-box strong {
  color: var(--fg);
}

.blog-index {
  width: min(1100px, 94vw);
  display: grid;
  gap: var(--section-gap);
}

.blog-list {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.blog-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.blog-row:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-row-content {
  display: grid;
  gap: clamp(8px, 1.4vw, 12px);
}

.blog-row-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(8, 11, 17, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blog-row-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(0deg, rgba(5, 8, 13, 0.28), transparent 54%);
  pointer-events: none;
}

.blog-row-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

.blog-row:hover .blog-row-media img {
  transform: scale(1.055);
}

.blog-row h2 {
  font-size: clamp(21px, 2.5vw, 30px);
}

.blog-row p {
  max-width: 760px;
}

.blog-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-row-meta span,
.blog-page-note span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--fg-muted);
  font-size: var(--font-small);
}

.blog-row-icon {
  width: clamp(38px, 5vw, 52px);
  height: clamp(38px, 5vw, 52px);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--warm);
  color: var(--accent);
  border: 1px solid rgba(211, 138, 89, 0.22);
}

.blog-page-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.csv-slideshow {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

.csv-home-section {
  background:
    linear-gradient(140deg, rgba(211, 138, 89, 0.08), rgba(211, 138, 89, 0.04)),
    var(--surface);
}

.csv-home-section .section-head {
  max-width: clamp(620px, 72vw, 760px);
}

.csv-home-section .csv-stage {
  min-height: clamp(380px, 48vw, 560px);
}

.csv-home-section .csv-slide-head h2 {
  font-size: clamp(22px, 2.8vw, 34px);
}

.csv-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.csv-home-actions .btn {
  flex: 1 1 190px;
}

.csv-stage {
  position: relative;
  min-height: clamp(420px, 58vw, 640px);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 17, 0.5);
  box-shadow: var(--shadow-md);
}

.csv-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(14px, 2vw, 20px);
  padding: clamp(18px, 3vw, 28px);
  opacity: 0;
  transform: translateX(22px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.csv-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.csv-slide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.csv-slide-head h2 {
  font-size: clamp(24px, 3.2vw, 38px);
}

.csv-step-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0b0f14;
  background: var(--accent);
  font-size: var(--font-small);
  font-weight: 800;
}

.csv-shot {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.csv-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.csv-marker {
  position: absolute;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(211, 138, 89, 0.18), 0 0 28px rgba(211, 138, 89, 0.55);
  animation: csvPulse 1.6s ease-in-out infinite;
}

.csv-info {
  display: grid;
  gap: clamp(14px, 2.4vw, 22px);
}

.csv-info-card {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
}

.csv-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.csv-tab {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--fg-muted);
  font: inherit;
  font-size: var(--font-small);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.csv-tab:hover,
.csv-tab.is-active {
  color: var(--fg);
  border-color: rgba(211, 138, 89, 0.5);
  background: rgba(211, 138, 89, 0.15);
  transform: translateY(-1px);
}

@keyframes csvPulse {
  0%,
  100% {
    opacity: 0.78;
    transform: scaleX(1);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .csv-slide,
  .csv-tab {
    transition: none;
  }

  .csv-marker {
    animation: none;
  }
}

#apps {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
  grid-template-areas:
    "copy preview"
    "cards preview";
  align-items: center;
  column-gap: clamp(32px, 6vw, 72px);
  row-gap: clamp(22px, 3.4vw, 34px);
}

#apps .section-head {
  grid-area: copy;
  max-width: 700px;
}

.store-grid {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  align-items: stretch;
}

.store-card {
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  display: flex;
  gap: clamp(14px, 2.4vw, 20px);
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-width: 0;
}

.store-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-card i {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--accent);
}

/* smaller text for store cards */
.store-card h3 {
  font-size: clamp(16px, 1.6vw, 20px);
  margin: 0;
}

.store-card p {
  font-size: clamp(13px, 1.1vw, 14px);
  margin: 0;
  color: var(--fg-muted);
}

.app-ad-preview {
  grid-area: preview;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-self: center;
}

.app-ad-preview img {
  width: auto;
  max-width: min(100%, 360px);
  max-height: min(72vh, 740px);
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.tool-gateway {
  width: var(--home-content-width);
  margin-top: var(--hero-reveal-peek);
  padding: clamp(20px, 2.6vw, 34px);
  display: grid;
  gap: clamp(28px, 3.2vw, 46px);
  background:
    linear-gradient(145deg, rgba(46, 48, 48, 0.92), rgba(40, 42, 42, 0.78)),
    var(--surface);
  transition: margin-top 0.16s linear;
}

.tool-gateway-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.9fr);
  gap: clamp(34px, 4.8vw, 72px);
  align-items: center;
}

.tool-gateway-head {
  display: grid;
  gap: 16px;
}

.tool-gateway-head h1 {
  max-width: 780px;
  margin: 0;
  color: var(--fg);
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.06;
  letter-spacing: 0;
}

.tool-gateway-head p {
  max-width: 760px;
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
}

.tool-gateway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.tool-gateway-actions .btn {
  min-width: 176px;
  min-height: 52px;
  padding-inline: 22px;
}

.tool-gateway-proof {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3.8vw, 48px);
  margin-top: 34px;
}

.tool-gateway-proof span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.25;
}

.tool-gateway-proof i {
  width: 22px;
  height: 22px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #e3b681;
  font-size: 16px;
}

.tool-preview-carousel {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.tool-preview-card {
  width: min(100%, 620px);
  aspect-ratio: 1.2 / 1;
  padding: 12px;
  border: 1px solid rgba(211, 138, 89, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(20, 24, 23, 0.74), rgba(46, 48, 48, 0.66)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    var(--shadow-md);
}

.tool-preview-slide {
  inset: 12px;
  margin: 0;
  align-content: center;
  gap: 12px;
}

.tool-preview-slide > img {
  width: 94%;
  height: auto;
  max-height: calc(100% - 46px);
  object-fit: contain;
  border-radius: 10px;
}

.tool-preview-slide figcaption {
  min-height: 21px;
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
}

.tool-showcase-intro {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.tool-showcase-intro h2 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.tool-showcase-intro p {
  max-width: 780px;
  margin: 0;
  color: var(--fg-muted);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 720;
  line-height: 1.45;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 38px);
}

.tool-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(211, 138, 89, 0.2);
  border-radius: 12px;
  color: var(--fg);
  background:
    linear-gradient(145deg, rgba(46, 48, 48, 0.88), rgba(40, 42, 42, 0.74)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 44px rgba(0, 0, 0, 0.24);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card > * {
  position: relative;
  z-index: 1;
}

.tool-card.featured {
  background:
    linear-gradient(145deg, rgba(46, 48, 48, 0.9), rgba(40, 42, 42, 0.76)),
    var(--surface);
}

.tool-card:hover {
  border-color: rgba(227, 182, 129, 0.56);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 28px 78px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(211, 138, 89, 0.16);
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211, 138, 89, 0.42);
  border-radius: 12px;
  color: #e3b681;
  background: rgba(211, 138, 89, 0.12);
  font-size: 20px;
}

.tool-card-copy {
  display: grid;
  gap: 9px;
}

.tool-card-kicker {
  color: #e3b681;
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-card-copy strong {
  color: var(--fg);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.04;
}

.tool-card-desc {
  max-width: 620px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.5;
}

.tool-card-trust {
  max-width: 620px;
  color: #f3dfcc;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.45;
}

.tool-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-card-tags em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.risk-detector {
  min-width: 0;
  display: grid;
  gap: clamp(18px, 2vw, 24px);
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(211, 138, 89, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(46, 48, 48, 0.9), rgba(40, 42, 42, 0.76)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 24px 68px rgba(0, 0, 0, 0.26);
}

.risk-detector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.risk-detector-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.risk-detector-icon {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211, 138, 89, 0.48);
  border-radius: 16px;
  color: #e3b681;
  background: rgba(211, 138, 89, 0.14);
  font-size: 30px;
}

.risk-detector-kicker {
  display: block;
  color: #f3dfcc;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.3;
}

.risk-detector h2 {
  margin: 2px 0 5px;
  color: var(--fg);
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

.risk-detector p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.45;
}

.risk-detector-actions {
  display: flex;
  gap: 12px;
}

.risk-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  border: 1px dashed rgba(211, 138, 89, 0.7);
  border-radius: 13px;
  color: #e3b681;
  background: rgba(211, 138, 89, 0.08);
  font: inherit;
  font-size: 15px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.risk-action:hover {
  border-color: rgba(227, 182, 129, 0.92);
  background: rgba(211, 138, 89, 0.14);
  transform: translateY(-1px);
}

.risk-action.ghost {
  background: rgba(255, 255, 255, 0.025);
}

.risk-tool-input {
  display: none;
}

.risk-file-card,
.risk-score-card,
.risk-signal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(29, 31, 31, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.risk-file-card {
  min-height: 190px;
  display: grid;
  align-items: center;
  padding: 18px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.risk-file-card.is-dragging {
  border-color: rgba(211, 138, 89, 0.72);
  background: rgba(211, 138, 89, 0.1);
  transform: translateY(-1px);
}

.risk-file-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.risk-file-empty strong {
  color: var(--fg);
  font-size: 18px;
}

.risk-file-empty span,
.risk-file-empty small {
  max-width: 520px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.5;
}

.risk-file-preview {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr) 36px;
  gap: clamp(16px, 2.5vw, 30px);
  align-items: center;
}

.risk-file-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.risk-file-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.risk-file-copy strong {
  overflow: hidden;
  color: var(--fg);
  font-size: 18px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-file-copy span {
  color: var(--fg-muted);
  font-size: 14px;
}

.risk-file-copy em {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  color: #79dfa2;
  background: rgba(63, 193, 119, 0.14);
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
}

.risk-file-clear {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--fg-muted);
  background: transparent;
  cursor: pointer;
}

.risk-file-clear:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
}

.risk-detector-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(14px, 2vw, 22px);
}

.risk-score-card {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 260px;
  padding: clamp(18px, 2.2vw, 26px);
}

.risk-card-label {
  color: var(--fg-muted);
  font-size: 16px;
  font-weight: 700;
}

.risk-score-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.risk-score-row strong {
  color: #ff6f7d;
  font-size: clamp(56px, 6.5vw, 84px);
  line-height: 0.9;
  letter-spacing: 0;
}

.risk-verdict {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 10px;
  color: #f3dfcc;
  background: rgba(211, 138, 89, 0.16);
  font-weight: 800;
}

.risk-verdict[data-tone="high"] {
  color: #ff967f;
  background: rgba(211, 138, 89, 0.14);
}

.risk-verdict[data-tone="medium"] {
  color: #ffd892;
  background: rgba(245, 195, 95, 0.14);
}

.risk-verdict[data-tone="low"] {
  color: #80e4a6;
  background: rgba(63, 193, 119, 0.14);
}

.risk-verdict[data-tone="idle"] {
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.055);
}

.risk-score-track,
.risk-signal-bar {
  overflow: hidden;
  display: block;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.risk-score-track span,
.risk-signal-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d38a59, #ff6f7d);
  transition: width 0.42s ease;
}

.risk-score-track span[data-tone="low"] {
  background: linear-gradient(90deg, #5fd18c, #89e6ad);
}

.risk-score-track span[data-tone="medium"] {
  background: linear-gradient(90deg, #d38a59, #ffd26f);
}

.risk-score-track span[data-tone="high"] {
  background: linear-gradient(90deg, #ff7c85, #ff4f69);
}

.risk-score-card p {
  max-width: 560px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
}

.risk-signal-grid {
  display: grid;
  gap: 12px;
}

.risk-signal {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon main score"
    "icon main status";
  gap: 4px 14px;
  align-items: center;
  padding: 15px 16px;
}

.risk-signal > i {
  grid-area: icon;
  color: #e3b681;
  font-size: 28px;
}

.risk-signal-main {
  grid-area: main;
  min-width: 0;
  display: grid;
  gap: 9px;
}

.risk-signal-title {
  overflow: hidden;
  color: var(--fg);
  font-size: 15px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-signal-score {
  grid-area: score;
  color: var(--fg);
  font-size: 17px;
  font-weight: 820;
  text-align: right;
}

.risk-signal-status {
  grid-area: status;
  color: var(--fg-muted);
  font-size: 13px;
  text-align: right;
}

.risk-signal[data-tone="good"] .risk-signal-bar b {
  background: linear-gradient(90deg, #61d890, #73dfa5);
}

.risk-signal[data-tone="high"] .risk-signal-bar b {
  background: linear-gradient(90deg, #ff7b86, #ff5d43);
}

.risk-signal[data-tone="neutral"] .risk-signal-bar b,
.risk-signal[data-tone="idle"] .risk-signal-bar b {
  background: linear-gradient(90deg, #d38a59, #c8744e);
}

.risk-analysis-log {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 13px;
}

.risk-loader {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e3b681;
  box-shadow: 0 0 0 0 rgba(227, 182, 129, 0.42);
}

.risk-detector.is-analyzing .risk-loader {
  animation: risk-pulse 1.05s ease-in-out infinite;
}

@keyframes risk-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 182, 129, 0.42);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(227, 182, 129, 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(227, 182, 129, 0);
    transform: scale(0.95);
  }
}

.tool-card.risk-detector {
  aspect-ratio: 1 / 1;
  align-content: stretch;
  grid-template-rows: auto minmax(0, 0.76fr) minmax(0, 1.18fr);
  gap: 7px;
  padding: clamp(12px, 1.25vw, 16px);
  border-radius: 12px;
  overflow: hidden;
}

.tool-card.risk-detector > * {
  position: relative;
  z-index: 1;
}

.tool-card.risk-detector .risk-detector-head {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.tool-card.risk-detector .risk-detector-title {
  flex-direction: row;
  gap: 9px;
}

.tool-card.risk-detector .risk-detector-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
}

.tool-card.risk-detector .risk-detector-kicker {
  font-size: 9px;
  line-height: 1.2;
}

.tool-card.risk-detector h2 {
  margin: 0;
  font-size: clamp(22px, 1.85vw, 27px);
}

.tool-card.risk-detector p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.tool-card.risk-detector .risk-detector-actions {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.tool-card.risk-detector .risk-action {
  width: auto;
  min-height: 32px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 11px;
}

.tool-card.risk-detector .risk-action.ghost,
.tool-card.risk-detector.has-file .risk-action:not(.ghost) {
  display: none;
}

.tool-card.risk-detector.has-file .risk-action.ghost {
  display: inline-flex;
}

.tool-card.risk-detector .risk-action .fa-chevron-down {
  display: none;
}

.tool-card.risk-detector .risk-file-card {
  min-height: 0;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}

.tool-card.risk-detector.has-file .risk-file-card {
  cursor: default;
}

.tool-card.risk-detector .risk-file-empty {
  gap: 5px;
}

.tool-card.risk-detector .risk-file-empty strong {
  font-size: 13px;
}

.tool-card.risk-detector .risk-file-empty span,
.tool-card.risk-detector .risk-file-empty small {
  max-width: 260px;
  font-size: 10px;
  line-height: 1.35;
}

.tool-card.risk-detector .risk-file-preview {
  grid-template-columns: minmax(118px, 0.95fr) minmax(0, 1.05fr) 22px;
  gap: 8px;
  height: 100%;
}

.tool-card.risk-detector .risk-file-preview img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
}

.tool-card.risk-detector .risk-file-copy {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "name"
    "meta"
    "summary";
  align-items: center;
  gap: 3px;
}

.tool-card.risk-detector .risk-file-copy strong {
  grid-area: name;
  font-size: 12px;
}

.tool-card.risk-detector .risk-file-copy > span {
  grid-area: meta;
  font-size: 9px;
  line-height: 1.35;
}

.tool-card.risk-detector .risk-file-copy p {
  grid-area: summary;
  display: -webkit-box;
  overflow: hidden;
  color: var(--fg-muted);
  font-size: 9px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-card.risk-detector .risk-file-clear {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 11px;
}

.tool-card.risk-detector .risk-detector-body {
  min-height: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 7px;
}

.tool-card.risk-detector .risk-score-card {
  min-height: 0;
  align-content: center;
  gap: 9px;
  padding: 11px;
  border-radius: 10px;
}

.tool-card.risk-detector .risk-card-label {
  font-size: 9px;
}

.tool-card.risk-detector .risk-score-row {
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.tool-card.risk-detector .risk-score-row strong {
  font-size: clamp(44px, 4.4vw, 60px);
}

.tool-card.risk-detector .risk-verdict {
  min-height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 8px;
  white-space: nowrap;
}

.tool-card.risk-detector .risk-score-track,
.tool-card.risk-detector .risk-signal-bar {
  height: 5px;
}

.tool-card.risk-detector .risk-signal-grid {
  gap: 4px;
}

.tool-card.risk-detector .risk-signal {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 2px 6px;
  padding: 5px 6px;
  border-radius: 9px;
}

.tool-card.risk-detector .risk-signal > i {
  font-size: 13px;
}

.tool-card.risk-detector .risk-signal-main {
  gap: 4px;
}

.tool-card.risk-detector .risk-signal-title,
.tool-card.risk-detector .risk-signal-score {
  font-size: 8px;
}

.tool-card.risk-detector .risk-signal-status {
  font-size: 7px;
}

.tool-card.risk-detector .risk-analysis-log {
  display: none;
}

.tool-card.risk-detector .risk-loader {
  width: 5px;
  height: 5px;
}

.metadata-tool {
  width: min(100%, 1680px);
  margin-top: var(--hero-reveal-peek);
  padding: clamp(12px, 1.3vw, 18px);
  display: grid;
  gap: clamp(14px, 1.7vw, 20px);
  background:
    radial-gradient(circle at 12% 0%, rgba(211, 138, 89, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(46, 48, 48, 0.86), rgba(21, 25, 26, 0.92));
  transition: margin-top 0.16s linear;
}

.metadata-tool-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.metadata-tool-head h1 {
  max-width: 760px;
  margin: 5px 0 6px;
  color: var(--fg);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.08;
  letter-spacing: 0;
}

.metadata-tool-head p {
  max-width: 760px;
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.5;
}

.metadata-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.metadata-trust-row span,
.metadata-status-pill,
.metadata-progress,
.metadata-risk-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.metadata-trust-row i,
.metadata-info-head i,
.metadata-status-pill i {
  color: var(--brand-2);
}

.metadata-workbench {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
}

.metadata-assets-panel,
.metadata-editor-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(21, 25, 26, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.metadata-assets-panel {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "dropzone clear"
    "gallery gallery";
  align-content: start;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.metadata-assets-actions {
  grid-area: clear;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: stretch;
  gap: 9px;
}

.metadata-assets-actions .btn,
.metadata-assets-actions .metadata-check,
.metadata-assets-actions .metadata-progress {
  display: none;
}

.metadata-assets-actions #mtClearMediaBtn,
.metadata-assets-actions #mcCleanMediaBtn {
  width: 100%;
  min-width: clamp(180px, 18vw, 280px);
  min-height: clamp(54px, 4.6vw, 70px);
  display: inline-flex;
  border-radius: 12px;
  font-size: clamp(17px, 1.7vw, 23px);
  background: rgba(255, 255, 255, 0.045);
}

.metadata-assets-actions .btn,
.metadata-editor-panel .btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.metadata-assets-actions .btn.primary,
.metadata-editor-panel .btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #c8744e, #d38a59);
  box-shadow: 0 16px 36px rgba(211, 138, 89, 0.22);
}

.metadata-assets-actions .btn.ghost,
.metadata-editor-panel .btn.ghost {
  color: var(--fg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.metadata-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 800;
}

.metadata-check input,
.metadata-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-2);
}

.metadata-progress {
  min-height: 30px;
  color: var(--fg-subtle);
}

.metadata-assets-meta {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 800;
}

.metadata-view-toggle {
  display: inline-flex;
  gap: 8px;
}

.metadata-view-toggle span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg-subtle);
  background: rgba(255, 255, 255, 0.035);
}

.metadata-view-toggle .active {
  color: #fff;
  background: linear-gradient(135deg, #c8744e, #d38a59);
}

.metadata-dropzone {
  grid-area: dropzone;
  min-height: clamp(54px, 4.6vw, 70px);
  display: grid;
  place-items: center;
  border: 1px dashed rgba(211, 138, 89, 0.34);
  border-radius: 10px;
  color: var(--fg-muted);
  background: rgba(211, 138, 89, 0.055);
  cursor: pointer;
  text-align: center;
  font-size: clamp(17px, 1.65vw, 23px);
  font-weight: 760;
}

.metadata-dropzone.is-dragging {
  border-color: rgba(211, 138, 89, 0.88);
  background: rgba(211, 138, 89, 0.13);
}

.metadata-gallery {
  grid-area: gallery;
  --metadata-thumb: clamp(108px, 7.1vw, 148px);
  --metadata-card-width: clamp(132px, 8.7vw, 176px);
  --metadata-card-extra: 28px;
  --metadata-gap: clamp(12px, 1.45vw, 22px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--metadata-card-width);
  grid-template-columns: none;
  grid-auto-rows: calc(var(--metadata-thumb) + var(--metadata-card-extra));
  gap: var(--metadata-gap);
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(21, 25, 26, 0.74);
  scrollbar-width: thin;
}

.metadata-asset-card {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-rows: var(--metadata-thumb) 24px;
  gap: 5px;
  border-radius: 10px;
  color: var(--fg-muted);
}

.metadata-asset-card button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.metadata-thumb {
  width: 100%;
  height: var(--metadata-thumb);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.metadata-asset-card.selected .metadata-thumb {
  border-color: rgba(211, 138, 89, 0.94);
  box-shadow: 0 0 0 2px rgba(211, 138, 89, 0.36);
}

.metadata-asset-check {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #15191a;
  background: rgba(255, 255, 255, 0.88);
}

.metadata-asset-card.selected .metadata-asset-check {
  color: #15191a;
  background: #e3b681;
}

.metadata-asset-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 790;
}

.metadata-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #39d581;
}

.metadata-dot.warn {
  background: #ffcf66;
}

.metadata-dot.bad {
  background: #ff5a49;
}

.metadata-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metadata-remove {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--fg-subtle);
}

.metadata-empty-gallery {
  min-height: var(--metadata-thumb);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg-subtle);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  font-weight: 760;
}

.metadata-empty-gallery span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.metadata-info-card {
  display: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.metadata-info-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--fg-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metadata-info-head span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211, 138, 89, 0.42);
  border-radius: 6px;
  background: rgba(211, 138, 89, 0.08);
}

.metadata-info-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.metadata-info-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 8px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.metadata-info-item:first-child {
  border-left: 0;
}

.metadata-info-item i {
  color: var(--brand-2);
  font-size: 14px;
}

.metadata-clean-workbench {
  grid-template-columns: 1fr;
}

.metadata-clean-panel {
  min-height: clamp(260px, 22vw, 360px);
  display: grid;
  place-items: center;
  padding: clamp(24px, 3vw, 42px);
}

.metadata-clean-actions {
  width: min(100%, 1180px);
  display: grid;
  justify-items: center;
  gap: clamp(42px, 4.2vw, 72px);
  text-align: center;
}

.metadata-clean-circle {
  width: clamp(144px, 14vw, 208px);
  height: clamp(144px, 14vw, 208px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 182, 129, 0.44);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #c8744e, #d38a59);
  box-shadow:
    0 18px 42px rgba(211, 138, 89, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: clamp(52px, 5.6vw, 76px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.metadata-clean-circle:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 24px 56px rgba(211, 138, 89, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metadata-clean-actions .btn {
  min-width: clamp(180px, 18vw, 260px);
  min-height: clamp(52px, 4vw, 66px);
  border-radius: 12px;
  font-size: clamp(16px, 1.35vw, 22px);
}

.metadata-clean-actions p {
  max-width: 780px;
  margin: 0;
  color: var(--fg-muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.45;
}

.metadata-resize-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}

.metadata-resize-group {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: clamp(12px, 1.4vw, 16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.metadata-resize-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 840;
  white-space: nowrap;
}

.metadata-resize-label i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211, 138, 89, 0.36);
  border-radius: 9px;
  color: var(--brand-2);
  background: rgba(211, 138, 89, 0.1);
}

.metadata-resize-options {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.metadata-resize-options button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}

.metadata-resize-options button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #c8744e, #d38a59);
  box-shadow: 0 12px 28px rgba(211, 138, 89, 0.22);
}

.metadata-resize-options button.is-upscale:not(.active) {
  color: rgba(241, 243, 246, 0.38);
  border-color: rgba(220, 232, 244, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.metadata-resize-options button.active.is-upscale {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(227, 182, 129, 0.24);
  background: linear-gradient(135deg, rgba(211, 138, 89, 0.58), rgba(227, 182, 129, 0.58));
}

.metadata-info-label {
  color: var(--fg-subtle);
  font-size: 10px;
  font-weight: 760;
}

.metadata-info-value {
  max-width: 100%;
  color: var(--fg);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metadata-editor-panel {
  display: grid;
  grid-template-rows: auto;
  overflow: visible;
}

.metadata-stepbar,
.metadata-editor-toolbar,
.metadata-preset-row,
.metadata-editor-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}

.metadata-stepbar {
  justify-content: flex-start;
}

.metadata-stepbar button,
.metadata-tabs button,
.metadata-preset-row button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--fg-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
}

.metadata-stepbar button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.metadata-stepbar span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-subtle);
  font-size: 12px;
}

.metadata-stepbar button.active,
.metadata-tabs button.active,
.metadata-preset-row button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #c8744e, #d38a59);
}

.metadata-stepbar button.active span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.metadata-editor-toolbar {
  justify-content: space-between;
  min-height: clamp(72px, 7vw, 118px);
  border-bottom: 0;
}

.metadata-tabs {
  display: inline-flex;
  gap: clamp(22px, 5vw, 78px);
}

.metadata-tabs button {
  min-width: clamp(120px, 11vw, 200px);
  min-height: clamp(54px, 6vw, 92px);
  padding: 0 clamp(18px, 2.4vw, 34px);
  border-radius: 12px;
  font-size: clamp(18px, 2vw, 30px);
}

.metadata-editor-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.metadata-editor-actions .btn {
  min-width: clamp(118px, 10vw, 180px);
  min-height: clamp(48px, 5vw, 76px);
  border-radius: 12px;
  font-size: clamp(16px, 1.6vw, 24px);
}

.metadata-editor-actions .btn.primary {
  min-width: clamp(112px, 8vw, 150px);
}

.metadata-apply {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 780;
}

.metadata-apply select,
.metadata-field-section input,
.metadata-field-section textarea,
.metadata-field-section select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 13px;
}

.metadata-apply select {
  min-width: 190px;
  min-height: 34px;
  padding: 0 12px;
}

.metadata-preset-row {
  flex-wrap: wrap;
  gap: 8px;
}

.metadata-preset-row button {
  padding: 0 12px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.metadata-edit-form,
.metadata-preview-panel,
.metadata-export-panel {
  min-height: 0;
  overflow: visible;
}

.metadata-tab-panel {
  display: none;
}

.metadata-tab-panel.active {
  display: grid;
}

.edit-page .metadata-tab-panel.active {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.metadata-field-section {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 0;
  border-bottom: 0;
}

.metadata-field-section h2 {
  margin: 0 0 10px;
  color: #e3b681;
  font-size: 13px;
  font-weight: 860;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metadata-field-grid {
  display: grid;
  gap: 10px 16px;
}

.metadata-field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edit-page .metadata-field-grid.two {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metadata-field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metadata-field-section label,
.metadata-toggle {
  display: grid;
  gap: 5px;
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 780;
}

.metadata-field-section input,
.metadata-field-section select {
  min-height: 34px;
  padding: 0 11px;
}

.metadata-field-section textarea {
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
}

.metadata-unit-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
}

.metadata-unit-input input {
  border-radius: 8px 0 0 8px;
}

.metadata-unit-input span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: var(--fg-subtle);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 780;
}

.metadata-toggle {
  display: inline-flex;
  align-items: center;
  margin: 12px 0;
}

.metadata-field-section .metadata-toggle input[type="checkbox"] {
  position: relative;
  width: 34px;
  min-height: 20px;
  height: 20px;
  flex: 0 0 34px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.metadata-field-section .metadata-toggle input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform .2s ease, background .2s ease;
}

.metadata-field-section .metadata-toggle input[type="checkbox"]:checked {
  border-color: rgba(211, 138, 89, 0.76);
  background: linear-gradient(135deg, #c8744e, #d38a59);
}

.metadata-field-section .metadata-toggle input[type="checkbox"]:checked::before {
  transform: translateX(14px);
  background: #fff;
}

.metadata-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg-muted);
  background: rgba(211, 138, 89, 0.06);
  font-size: 12px;
  line-height: 1.45;
}

.metadata-preview-panel,
.metadata-export-panel {
  padding: 18px;
}

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

.metadata-preview-card,
.metadata-export-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.metadata-preview-card strong,
.metadata-export-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--fg);
  font-size: 13px;
}

.metadata-preview-card span,
.metadata-export-card span {
  color: var(--fg-muted);
  font-size: 12px;
}

.metadata-editor-footer {
  justify-content: flex-end;
  padding-block: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(0, 0, 0, 0.12);
}

.metadata-editor-footer .btn:first-child {
  margin-right: auto;
}

.metadata-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  background: rgba(46, 48, 48, 0.96);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 760;
}




























@media (max-width: 960px) {
  #apps {
    display: flex;
    flex-direction: column;
  }

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

  .store-card {
    min-width: 0;
  }

  .app-ad-preview {
    max-width: min(100%, 360px);
  }

  .app-ad-preview img {
    max-width: min(100%, 360px);
    max-height: none;
  }

  .blog-row {
    grid-template-columns: 1fr;
  }

  .blog-row-media {
    width: 100%;
  }

  .blog-row-icon {
    justify-self: start;
  }

  .pain-grid,
  .resource-grid,
  .resource-title-grid,
  .trust-grid,
  .guide-grid,
  .csv-slideshow,
  .section-split,
  .plus-card,
  .pricing-grid,
  .platform-strip {
    grid-template-columns: 1fr;
  }

  .pricing-card-head {
    flex-direction: column;
  }

  .price-pill {
    width: 100%;
  }
}

.steps {
  margin: 0;
  padding-left: clamp(18px, 3vw, 24px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 32vw, 320px), 1fr));
  gap: var(--card-gap);
  counter-reset: step;
}

.steps li {
  list-style: none;
  padding: clamp(20px, 3.6vw, 30px);
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: clamp(16px, 2.4vw, 20px);
  left: clamp(16px, 2.4vw, 20px);
  width: clamp(32px, 4vw, 42px);
  height: clamp(32px, 4vw, 42px);
  border-radius: 12px;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  color: #ffffff;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(211, 138, 89, 0.28);
}

.steps li h3 {
  padding-top: clamp(24px, 4vw, 36px);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 32vw, 360px), 1fr));
  gap: var(--card-gap);
}

.faq-item {
  padding: clamp(20px, 3.6vw, 30px);
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 16px);
}

.legal-page {
  padding-top: clamp(18px, 3vw, 34px);
}

.legal-topbar {
  width: calc(100% + (var(--page-padding) * 2));
  margin-top: 0;
}

.legal-topbar .topbar-inner {
  width: 100%;
}

.legal-main {
  width: min(980px, 94vw);
}

.legal-hero {
  padding: clamp(34px, 5vw, 62px);
  text-align: center;
}

.legal-hero h1 {
  margin-top: 10px;
}

.legal-section {
  width: 100%;
  padding: clamp(28px, 4vw, 44px);
}

.legal-content {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.legal-block {
  display: grid;
  gap: 10px;
}

.legal-block h2 {
  font-size: clamp(19px, 2.4vw, 24px);
}

.legal-block ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--fg-muted);
}

.legal-block li {
  margin: 4px 0;
}

.legal-block ul ul {
  margin-top: 4px;
  list-style: "- ";
}

.footer {
  width: var(--home-content-width);
  padding: clamp(20px, 3.2vw, 28px) clamp(24px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
  border-radius: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 18px);
  font-size: var(--font-small);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--font-small);
  color: var(--fg-subtle);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-community-section {
    grid-template-columns: 1fr;
  }

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

  .landing-community-card {
    min-height: 0;
  }

  .hero-visual {
    order: -1;
  }

  .topbar {
    justify-content: flex-start;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    flex: 1;
  }

  .site-user-info {
    max-width: min(42vw, 180px);
  }
}

@media (max-width: 720px) {
  .platform-access {
    padding: 20px;
  }

  .platform-access::before {
    inset: 64px 14px 16px;
  }

  .platform-access-points {
    padding-inline: 0;
  }

  .platform-access-grid {
    grid-template-columns: 1fr;
  }

  .platform-access .store {
    justify-content: flex-start;
  }

  .landing-community-card {
    padding: 24px 20px 28px;
  }

  .community-head {
    gap: 12px;
  }

  .community-icon-btn {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 17px;
  }

  .community-rating-row {
    grid-template-columns: minmax(116px, 1fr) minmax(70px, 0.8fr) minmax(58px, auto);
    gap: 10px;
  }

  .community-score-value {
    gap: 8px;
  }

  .community-dialog {
    padding: 24px 18px;
  }

  .community-dialog-head,
  .community-score-row {
    grid-template-columns: 1fr;
  }

  .community-dialog-head {
    padding-right: 42px;
  }

  .community-star-group {
    justify-content: space-between;
    width: 100%;
  }

  .community-star-btn {
    width: 38px;
    height: 38px;
  }

  .community-dialog-actions {
    flex-direction: column-reverse;
  }

  .topbar {
    padding: 0;
  }

  .topbar-right {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: clamp(10px, 4vw, 16px);
  }

  .site-user-info {
    max-width: calc(100vw - 150px);
  }

  .auth-panel {
    width: min(520px, 96vw);
    padding: 22px;
  }

  .auth-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-social {
    grid-template-columns: 1fr;
  }

  .auth-divider::before,
  .auth-divider::after {
    width: 26%;
  }

  html {
    scroll-padding-top: 132px;
  }

  .topbar-inner {
    width: 100%;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px 16px;
  }

  .topbar-right {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .topbar-right::-webkit-scrollbar {
    display: none;
  }

  .topbar-right > nav.nav {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .topbar-right > nav.nav a {
    flex: 0 0 auto;
    padding: 7px 9px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-tool,
  .nav-tool-trigger {
    flex: 0 0 auto;
  }

  .nav-tool-trigger {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-tool-menu {
    position: fixed;
    top: 96px;
    left: 14px;
    right: 14px;
    width: auto;
  }

  .topbar-right > .btn.nav {
    width: auto;
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .site-login-btn,
  .lang-trigger {
    flex: 0 0 auto;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 1120px) {
  .tool-gateway-hero,
  .tool-card-grid,
  .risk-detector-body,
  .metadata-tool-head,
  .metadata-workbench,
  .metadata-resize-row {
    grid-template-columns: 1fr;
  }

  .tool-preview-carousel {
    justify-content: flex-start;
  }

  .metadata-trust-row {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .tool-gateway {
    padding: 14px;
    gap: 26px;
  }

  .tool-gateway-hero {
    gap: 22px;
  }

  .tool-showcase-intro {
    gap: 8px;
    justify-items: start;
    text-align: left;
  }

  .tool-showcase-intro h2 {
    font-size: 27px;
  }

  .tool-showcase-intro p {
    font-size: 15px;
    font-weight: 680;
  }

  .tool-preview-card {
    width: 100%;
    aspect-ratio: 1.16 / 1;
    padding: 8px;
  }

  .tool-preview-slide {
    inset: 8px;
  }

  .tool-gateway-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-gateway-actions .btn {
    width: 100%;
  }

  .risk-detector {
    padding: 14px;
    border-radius: 14px;
  }

  .risk-detector-head,
  .risk-detector-title,
  .risk-detector-actions,
  .risk-score-row {
    align-items: stretch;
    flex-direction: column;
  }

  .risk-detector-title {
    gap: 12px;
  }

  .risk-detector-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .risk-action {
    width: 100%;
    min-height: 46px;
  }

  .risk-file-preview {
    grid-template-columns: 96px minmax(0, 1fr) 32px;
    gap: 12px;
  }

  .risk-signal {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 13px;
  }

  .risk-signal > i {
    font-size: 22px;
  }

  .tool-card.risk-detector {
    grid-template-rows: auto minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 6px;
    padding: 10px;
  }

  .tool-card.risk-detector .risk-detector-head {
    gap: 6px;
  }

  .tool-card.risk-detector .risk-detector-title {
    gap: 7px;
  }

  .tool-card.risk-detector .risk-detector-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 15px;
  }

  .tool-card.risk-detector h2 {
    font-size: 20px;
  }

  .tool-card.risk-detector .risk-action {
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  .tool-card.risk-detector .risk-file-card {
    padding: 7px;
  }

  .tool-card.risk-detector .risk-file-preview {
    grid-template-columns: minmax(80px, 0.82fr) minmax(0, 1fr) 20px;
    gap: 7px;
  }

  .tool-card.risk-detector .risk-file-copy {
    gap: 2px 5px;
  }

  .tool-card.risk-detector .risk-file-copy p {
    font-size: 7px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

  .tool-card.risk-detector .risk-file-clear {
    width: 20px;
    height: 20px;
  }

  .tool-card.risk-detector .risk-detector-body {
    gap: 5px;
  }

  .tool-card.risk-detector .risk-score-card {
    gap: 4px;
    padding: 7px;
  }

  .tool-card.risk-detector .risk-score-row strong {
    font-size: 38px;
  }

  .tool-card.risk-detector .risk-verdict {
    min-height: 18px;
    padding: 0 6px;
    font-size: 7px;
  }

  .tool-card.risk-detector .risk-signal-grid {
    gap: 3px;
  }

  .tool-card.risk-detector .risk-signal {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 1px 4px;
    padding: 4px 5px;
  }

  .tool-card.risk-detector .risk-signal > i {
    font-size: 10px;
  }

  .tool-card.risk-detector .risk-signal-title,
  .tool-card.risk-detector .risk-signal-score {
    font-size: 7px;
  }

  .tool-card.risk-detector .risk-signal-status {
    font-size: 6px;
  }

  .tool-card.risk-detector .risk-score-track,
  .tool-card.risk-detector .risk-signal-bar {
    height: 4px;
  }

  .tool-card.risk-detector .risk-analysis-log {
    display: none;
  }

  .tool-card {
    min-height: 0;
  }

  .tool-card-copy strong {
    font-size: 25px;
  }

  .metadata-tool {
    padding: 14px;
    scroll-margin-top: 132px;
  }

  .metadata-assets-actions,
  .metadata-stepbar,
  .metadata-editor-toolbar,
  .metadata-preset-row,
  .metadata-editor-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .metadata-assets-actions .btn,
  .metadata-editor-panel .btn,
  .metadata-editor-actions,
  .metadata-editor-actions .btn,
  .metadata-check,
  .metadata-progress,
  .metadata-apply,
  .metadata-apply select {
    width: 100%;
  }

  .metadata-resize-group {
    grid-template-columns: 1fr;
  }

  .metadata-resize-options {
    justify-content: flex-start;
  }

  .metadata-gallery {
    --metadata-thumb: clamp(90px, 28vw, 122px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metadata-info-grid,
  .metadata-field-grid.two,
  .metadata-field-grid.three,
  .metadata-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metadata-tabs {
    width: 100%;
    gap: 8px;
  }

  .metadata-tabs button {
    flex: 1 1 0;
    padding-inline: 8px;
    min-width: 0;
    min-height: 46px;
    font-size: 16px;
  }

  .metadata-editor-footer .btn:first-child {
    margin-right: 0;
  }
}
