:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --text: #17202a;
  --muted: #687586;
  --line: #dce5ec;
  --primary: #1769e0;
  --primary-2: #0f54b8;
  --green: #16a36a;
  --cyan: #0e9fb6;
  --warning: #aa6a05;
  --danger: #d33c3c;
  --soft-purple: #6c5bd4;
  --shadow: 0 18px 40px rgba(23, 32, 42, 0.08);
  --radius: 8px;
  --primary-soft-bg: #e9f2ff;
  --primary-soft-border: #cfe3ff;
  --primary-soft-bg-hover: #dbeaff;
  --success-soft-bg: #e6f7ef;
  --success-soft-text: #087849;
  --success-border: #bfe9d4;
  --info-soft-bg: #e6f2ff;
  --info-soft-text: #0f54b8;
  --info-border: #b8d5f4;
  --warning-soft-bg: #fff5df;
  --warning-soft-text: #8a5300;
  --danger-soft-bg: #fff0f0;
  --danger-border: #f1b8b8;
  --purple-soft-bg: #f0edff;
  --neutral-soft-bg: #edf0f4;
  --neutral-soft-text: #52606e;
  --notice-bg: #fff7e6;
  --notice-border: #f0d5a3;
  --result-bg: #f8fbfd;
  --focus-ring: rgba(23, 105, 224, 0.16);
  --ad-border: #d7edf2;
  --ad-bg: #f5fcfd;
  --code-bg: #111925;
  --code-text: #e8f2ff;
  --footer-bg: #edf2f6;
  --input-bg: #ffffff;
  --button-shadow: 0 8px 20px rgba(23, 105, 224, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10151d;
  --surface: #161d27;
  --surface-2: #202a36;
  --text: #edf4fb;
  --muted: #a9b7c5;
  --line: #2e3b49;
  --primary: #6ba6ff;
  --primary-2: #9dc4ff;
  --green: #46d18d;
  --cyan: #5cd4e8;
  --warning: #e5ad44;
  --danger: #ff7474;
  --soft-purple: #b2a6ff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  --primary-soft-bg: #1c3151;
  --primary-soft-border: #2c4a78;
  --primary-soft-bg-hover: #234168;
  --success-soft-bg: #15301f;
  --success-soft-text: #5fe3a8;
  --success-border: #1f5a3d;
  --info-soft-bg: #1c3151;
  --info-soft-text: #9dc4ff;
  --info-border: #2c4a78;
  --warning-soft-bg: #3a2a0c;
  --warning-soft-text: #f0c674;
  --danger-soft-bg: #3a1717;
  --danger-border: #6e2c2c;
  --purple-soft-bg: #2a2350;
  --neutral-soft-bg: #232e3a;
  --neutral-soft-text: #b7c4d1;
  --notice-bg: #33280d;
  --notice-border: #6e5518;
  --result-bg: #1a2330;
  --focus-ring: rgba(107, 166, 255, 0.28);
  --ad-border: #234a52;
  --ad-bg: #142028;
  --code-bg: #0c1118;
  --code-text: #cfe6ff;
  --footer-bg: #0c1118;
  --input-bg: #18212c;
  --button-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-2);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

[data-theme="dark"] .site-header {
  background: rgba(16, 21, 29, 0.92);
}

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

.brand small,
.muted {
  color: var(--muted);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 650;
}

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

.nav-cta {
  padding: 9px 14px;
  border-radius: var(--radius);
  background: var(--text);
  color: white !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 9px 12px;
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  min-height: 36px;
  padding: 7px 10px;
  cursor: pointer;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--primary);
  background: none;
  cursor: pointer;
  font-weight: 650;
}

.link-button.danger {
  color: var(--danger);
}

main {
  min-height: 68vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(40px, 8vw, 88px) clamp(18px, 4vw, 56px) 34px;
}

.hero-wide {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 500px);
}

.hero-copy h1,
.page-hero h1,
.tool-title h1,
.dashboard-head h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p,
.tool-title p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.form-actions,
.dashboard-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-proof,
.category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-proof span,
.category-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  font-weight: 750;
  cursor: pointer;
  box-shadow: var(--button-shadow);
}

.button:hover {
  color: white;
  background: var(--primary-2);
}

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

.button-ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}

.button-ghost:hover {
  color: var(--primary-2);
  background: var(--primary-soft-bg);
}

.button-soft {
  border-color: var(--primary-soft-border);
  background: var(--primary-soft-bg);
  color: var(--primary);
  box-shadow: none;
}

.button-soft:hover {
  background: var(--primary-soft-bg-hover);
  color: var(--primary-2);
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: none;
}

.button-small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.88rem;
}

.span-2 {
  grid-column: 1 / -1;
}

.full-width {
  width: 100%;
}

.hero-panel,
.auth-card,
.result-card,
.table-panel,
.info-panel,
.ad-card,
.price-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 650;
}

.field input,
.field select,
.ad-edit input,
.ad-edit select,
.plan-form select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: var(--text);
  padding: 9px 11px;
}

.field input:focus,
.field select:focus {
  outline: 3px solid var(--focus-ring);
  border-color: var(--primary);
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 158px;
  margin: 16px 0 12px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone label {
  display: grid;
  gap: 6px;
  pointer-events: none;
}

.dropzone strong {
  color: var(--primary);
  font-size: 1.15rem;
}

.dropzone span,
.file-list {
  color: var(--muted);
}

.dropzone.is-dragging {
  border-color: var(--primary);
  background: var(--primary-soft-bg);
}

.file-list {
  min-height: 24px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

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

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

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: var(--muted);
  font-weight: 650;
}

.notice {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--warning);
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.job-result {
  margin-top: 14px;
}

.job-result:empty {
  display: none;
}

.result-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--result-bg);
  padding: 14px;
}

.result-box.error {
  border-color: var(--danger-border);
  background: var(--danger-soft-bg);
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress span {
  display: block;
  height: 100%;
  width: 10%;
  background: var(--green);
}

.trust-band,
.pricing-teaser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 4vw, 56px) 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.trust-band div,
.pricing-teaser {
  background: var(--surface);
}

.trust-band div {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.trust-band span,
.section-heading p,
.tool-card p,
.price-card li,
.ad-card p,
.info-panel p,
.content-page p {
  color: var(--muted);
}

.section,
.section-grid,
.tools-layout,
.tool-shell,
.result-layout,
.dashboard-layout,
.admin-grid,
.stats-grid,
.pricing-grid,
.content-page {
  padding: 0 clamp(18px, 4vw, 56px) 48px;
}

.section-grid,
.tools-layout,
.tool-shell,
.result-layout,
.dashboard-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.page-hero,
.dashboard-head {
  padding: 48px clamp(18px, 4vw, 56px) 28px;
}

.page-hero h1,
.tool-title h1,
.dashboard-head h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.section-heading {
  margin-bottom: 16px;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  margin-bottom: 18px;
}

.sticky-panel {
  position: sticky;
  top: 78px;
  z-index: 9;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
}

.category-pills,
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(18px, 4vw, 56px) 28px;
}

.category-pills a,
.subnav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  font-weight: 750;
}

.category-grid,
.feature-grid,
.dependency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.feature-grid article,
.category-card,
.dependency-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.feature-grid article {
  display: grid;
  gap: 6px;
}

.feature-grid article span,
.category-card p,
.dependency-card p,
.dependency-card small,
.settings-list span {
  color: var(--muted);
}

.category-card {
  display: grid;
  gap: 8px;
  color: var(--text);
  min-height: 210px;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-soft-border);
}

.category-token,
.tool-token {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--primary-soft-bg);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.section-heading h2 {
  margin: 6px 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.section-heading.small h2 {
  font-size: 1.35rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.tool-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.tool-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 170px;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-soft-border);
  box-shadow: var(--shadow);
}

.tool-card h3 {
  margin: 0;
  padding-right: 44px;
}

.tool-card .tool-token {
  margin-bottom: 4px;
}

.status,
.badge-pro {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-available,
.status-completed {
  background: var(--success-soft-bg);
  color: var(--success-soft-text);
}

.status-beta,
.status-processing,
.status-pending,
.status-queued {
  background: var(--info-soft-bg);
  color: var(--info-soft-text);
}

.status-planned {
  background: var(--neutral-soft-bg);
  color: var(--neutral-soft-text);
}

.status-dependency_required,
.status-expired {
  background: var(--warning-soft-bg);
  color: var(--warning-soft-text);
}

.status-pro,
.status-premium {
  background: var(--purple-soft-bg);
  color: var(--soft-purple);
}

.status-failed,
.status-cancelled,
.status-canceled {
  background: var(--danger-soft-bg);
  color: var(--danger);
}

.badge-pro {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--purple-soft-bg);
  color: var(--soft-purple);
}

.badge-inline {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--purple-soft-bg);
  color: var(--soft-purple);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.ad-card,
.info-panel,
.result-card,
.table-panel,
.auth-card,
.price-card,
.modal-card {
  padding: 20px;
}

.ad-card {
  border-color: var(--ad-border);
  background: var(--ad-bg);
}

.ad-card h3,
.info-panel h3,
.info-panel h2,
.price-card h2,
.result-card h1 {
  margin-top: 8px;
}

.tool-main {
  min-width: 0;
}

.tool-title {
  margin-bottom: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
}

.tool-facts,
.settings-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.tool-facts div,
.settings-list div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.tool-facts span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.empty-state {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.pricing-teaser {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 24px;
}

.pricing-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.price-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.price-card.active {
  border-color: var(--primary);
}

.price-card h2 {
  font-size: 2.35rem;
  margin-bottom: 0;
}

.price-card small {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  margin-right: 8px;
}

.auth-shell {
  display: grid;
  place-items: center;
  padding: 58px 18px;
}

.auth-card {
  width: min(100%, 440px);
}

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

.dashboard-actions {
  justify-content: flex-end;
}

.metrics,
.stats-grid {
  margin: 18px 0;
}

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

.metrics div,
.stat-card {
  display: grid;
  gap: 4px;
  background: var(--surface-2);
  padding: 14px;
}

.metrics span,
.stat-card span {
  color: var(--muted);
}

.metrics strong,
.stat-card strong {
  font-size: 1.45rem;
}

.retention-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.preview-box {
  margin: 18px 0;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.preview-box img {
  max-width: 100%;
  max-height: 420px;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.preview-embed {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: 6px;
}

.preview-video {
  width: 100%;
  max-height: 420px;
  border-radius: 6px;
}

.preview-box audio {
  width: 100%;
}

.preview-text {
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
  margin: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.admin-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
}

.ad-edit {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.2fr 120px 80px auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mini-list {
  display: grid;
  gap: 8px;
}

.code-block {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-text);
  padding: 16px;
}

.rich-copy,
.faq-list {
  display: grid;
  gap: 18px;
}

.hidden {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 18, 25, 0.48);
}

.modal-card {
  position: relative;
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 6px 8px;
  cursor: pointer;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
}

.toast {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.progress-large {
  height: 14px;
}

.content-page {
  max-width: 860px;
}

.flash-wrap {
  position: fixed;
  top: 78px;
  right: 18px;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
}

.flash {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.flash-success {
  border-color: var(--success-border);
}

.flash-error {
  border-color: var(--danger-border);
}

.flash-info {
  border-color: var(--info-border);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(150px, 0.4fr));
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.footer-links {
  display: grid;
  gap: 8px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 67px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .hero,
  .section-grid,
  .tools-layout,
  .tool-shell,
  .result-layout,
  .dashboard-layout,
  .admin-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .trust-band,
  .pricing-teaser {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    display: grid;
    align-items: start;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

  .ad-edit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 14px;
  }

  .hero,
  .section,
  .section-grid,
  .tools-layout,
  .tool-shell,
  .result-layout,
  .dashboard-layout,
  .admin-grid,
  .stats-grid,
  .pricing-grid,
  .content-page,
  .page-hero,
  .dashboard-head {
    padding-inline: 14px;
  }

  .hero-copy h1,
  .page-hero h1,
  .tool-title h1,
  .dashboard-head h1 {
    font-size: 2.15rem;
  }

  .settings-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .form-actions,
  .dashboard-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .split-heading {
    display: grid;
    align-items: start;
  }

  .retention-box {
    display: grid;
  }
}
