:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8f9fd;
  --text: #151826;
  --muted: #687188;
  --subtle: #969eb0;
  --border: #e1e5ee;
  --accent: #635bff;
  --accent-dark: #4f47e8;
  --accent-soft: #eeefff;
  --shadow: 0 16px 44px rgba(31, 42, 76, 0.08);
  --shadow-hover: 0 20px 50px rgba(61, 72, 133, 0.13);
  --radius: 18px;
  --header-height: 56px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

button {
  cursor: pointer;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(99, 91, 255, 0.52);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), 1160px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, background 180ms ease;
}

.header.is-hidden {
  transform: translateY(calc(var(--header-height) * -1));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #7a91ff);
  box-shadow: 0 6px 14px rgba(99, 91, 255, 0.2);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

.brand b,
.label {
  color: var(--accent);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.navlinks a {
  padding: 7px 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  transition: color 160ms ease, background 160ms ease;
}

.navlinks a:hover,
.navlinks a[aria-current="page"] {
  color: var(--accent);
}

/* Buttons */

.iconbtn,
.smallbtn {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.iconbtn:hover,
.smallbtn:hover,
.secondary:hover {
  border-color: #b8b8ff;
  background: var(--accent-soft);
}

.cta,
.primary {
  padding: 10px 15px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 6px 13px rgba(99, 91, 255, 0.16);
  color: #fff;
  font-weight: 750;
  transition: background 160ms ease, transform 160ms ease;
}

.cta:hover,
.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.primary:active,
.cta:active,
.smallbtn:active,
.chip:active,
.toolcard:active,
.secondary:active {
  transform: scale(0.97);
}

/* Shared labels, headings and homepage hero */

.label {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.hero {
  padding: 30px 0 34px;
  background:
    radial-gradient(circle at 85% 15%, #e7eaff 0, transparent 26%),
    radial-gradient(circle at 15% 82%, #eeeaff 0, transparent 22%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: 28px;
}

.hero h1 {
  max-width: 700px;
  margin: 8px 0 14px;
  font-size: clamp(42px, 5.3vw, 64px);
  line-height: 1.01;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.secondary {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.hero-visual {
  position: relative;
  height: 290px;
}

.orb {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(99, 91, 255, 0.13);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(99, 91, 255, 0.34), transparent 65%);
}

.float {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.float:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) rotate(0) !important;
}

.float small {
  color: var(--subtle);
  font-size: 10px;
}

.float strong {
  font-size: 21px;
}

.f1 {
  top: 34px;
  left: 5%;
  transform: rotate(-5deg);
}

.f2 {
  right: 5%;
  bottom: 28px;
  transform: rotate(5deg);
}

/* Shared sections */

.section {
  padding: 42px 0;
}

.sectionhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.sectionhead h2 {
  margin: 6px 0 0;
  font-size: clamp(29px, 4vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.sectionhead p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.center {
  display: block;
  text-align: center;
}

.center p {
  margin: 10px auto 0;
}

/* Advertisement areas */

.ad-wrap {
  padding: 10px 0;
}

.ad-slot {
  display: grid;
  min-height: 88px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #cfd5e0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surface-soft), #eef1ff);
  color: var(--subtle);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Homepage workspace */

.workspace,
.toolbox {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace,
.toolbox {
  overflow: visible;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  background: var(--surface-soft);
}

.barleft,
.barright {
  display: flex;
  align-items: center;
  gap: 7px;
}

.barright {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editor {
  display: block;
  width: 100%;
  height: clamp(215px, 31vh, 290px);
  min-height: 215px;
  max-height: 290px;
  padding: 21px 25px;
  resize: vertical;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.editor:focus {
  box-shadow: inset 0 0 0 2px rgba(99, 91, 255, 0.16);
}

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--border);
  transition: background 160ms ease;
}

.stat:hover {
  background: var(--accent-soft);
}

.stat:last-child {
  border-right: 0;
}

.stat small {
  display: block;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  overflow: hidden;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick,
.toolcontrols {
  position: sticky;
  bottom: 9px;
  z-index: 8;
  border: 1px solid var(--border);
  border-top: 0;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.07);
  backdrop-filter: blur(14px);
}

.quick {
  margin: 0;
  padding: 12px 18px;
  border-radius: 0 0 18px 18px;
}

.quickhead {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}

.quickhead span {
  font-size: 12px;
  font-weight: 800;
}

.quickhead small {
  color: var(--subtle);
  font-size: 10px;
}

.chips,
.toolcontrols {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.chip:hover {
  border-color: #b8b8ff;
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.history {
  padding: 14px 18px;
}

.historyhead {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
}

.historyhead button {
  border: 0;
  background: none;
  color: var(--subtle);
  font-size: 10px;
}

.historylist {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

/* Tool cards and discovery */

.toolcats {
  display: grid;
  gap: 30px;
  margin-top: 28px;
}

.cathead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.caticon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #dfe1ff;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.cathead h2,
.cathead h3 {
  margin: 0;
  font-size: 16px;
}

.cathead p {
  margin: 2px 0 0;
  color: var(--subtle);
  font-size: 10px;
}

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

.toolcard {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 126px;
  flex-direction: column;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.toolcard::after {
  position: absolute;
  right: 17px;
  bottom: 13px;
  color: var(--accent);
  content: "→";
  font-size: 16px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toolcard:hover {
  border-color: #b9b7ff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.toolcard:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.toolcard span,
.toolcard small {
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.55;
}

.toolcard strong {
  margin-top: auto;
  padding-right: 20px;
  font-size: 14px;
}

/* Tool-page introduction */

.toolhero {
  padding: 23px 0 10px;
}

.toolhero .label {
  display: none;
}

.toolhero h1 {
  margin: 4px 0 7px;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.toolhero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.breadcrumbs {
  margin: 0 0 4px;
  color: var(--subtle);
  font-size: 10px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.toollayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: start;
  gap: 20px;
}

.toolbox .editor {
  height: clamp(215px, 31vh, 290px);
  min-height: 215px;
  max-height: 290px;
}

.toolcontrols {
  margin: 0;
  padding: 10px;
  border-radius: 0 0 18px 18px;
}

.result {
  padding: 17px;
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.result pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.side {
  display: grid;
  gap: 12px;
}

.sidecard {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.sidecard h2,
.sidecard h3 {
  margin: 0 0 7px;
  font-size: 13px;
}

.sidecard p,
.sidecard li {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.sidecard ul {
  margin: 0;
  padding-left: 16px;
}

.sidecard a {
  color: var(--accent);
  font-weight: 700;
}

/* Content and examples */

.seo-content {
  padding: 16px 0 40px;
}

.content-card {
  margin-top: 13px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}

.content-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.content-card h3 {
  margin: 22px 0 7px;
  font-size: 16px;
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.content-card p {
  margin: 0 0 12px;
}

.content-card ul,
.content-card ol {
  margin: 8px 0;
  padding-left: 20px;
}

.content-card a {
  color: var(--accent);
  font-weight: 700;
}

.content-card code,
.example-code {
  padding: 2px 5px;
  border: 1px solid #dedfff;
  border-radius: 5px;
  background: var(--accent-soft);
  color: #4d47c7;
  font: 0.92em ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

.info-callout,
.example-block,
.tip-box {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #dedfff;
  border-radius: 13px;
  background: linear-gradient(135deg, #fbfbff, var(--accent-soft));
}

.info-callout strong,
.example-block strong,
.tip-box strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 12px;
}

.example-block pre {
  margin: 8px 0 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.related-grid a {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 11px;
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.related-grid a:hover {
  border-color: #b9b7ff;
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.related-grid span {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 500;
}

/* FAQ */

.faq {
  margin-top: 32px;
}

.faq > h2 {
  margin: 0 0 6px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.faq details,
details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-of-type {
  border-top: 1px solid var(--border);
}

.faq summary,
details summary {
  position: relative;
  padding: 15px 34px 15px 0;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

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

.faq summary::after,
details summary::after {
  position: absolute;
  top: 12px;
  right: 3px;
  color: var(--accent);
  content: "+";
  font-size: 20px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.faq details[open] summary::after,
details[open] summary::after {
  transform: rotate(45deg);
}

.faq p,
details p {
  max-width: 820px;
  margin: -1px 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

/* Privacy / trust card */

.privacy {
  padding: 30px 0 40px;
}

.privacycard {
  display: flex;
  gap: 18px;
  padding: 25px;
  border: 1px solid #dfe1ff;
  border-radius: 19px;
  background: linear-gradient(135deg, #fff, #f1f2ff);
  box-shadow: 0 12px 32px rgba(62, 79, 139, 0.05);
}

.privacyicon {
  flex: 0 0 auto;
  padding: 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
}

.privacycard h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.privacycard p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Shared compact footer */

.footer {
  width: 100%;
  margin-top: 8px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.38);
}

.footer .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bottom-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bottom-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.bottom-brand .mark {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  font-size: 12px;
}

.bottom-brand b {
  color: var(--accent);
}

.bottom-copy {
  color: var(--subtle);
  font-size: 10px;
  white-space: nowrap;
}

.bottom-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 15px;
  min-width: 0;
  flex-wrap: wrap;
}

.bottom-right a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.bottom-right a:hover {
  color: var(--accent);
}

/* Compatibility styling for older footer HTML until app.js updates it */

.footgrid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
}

.footlinks div {
  display: contents;
}

.footlinks strong {
  display: none;
}

.footer .brand {
  font-size: 15px;
}

.footer .brand .mark {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  font-size: 12px;
}

.footer p,
.footlinks a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.footer p {
  margin: 0;
}

.footlinks a:hover {
  color: var(--accent);
}

/* Toast */

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: calc(100% - 36px);
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */

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

  .hero-visual {
    display: none;
  }

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

  .stat:nth-child(3) {
    border-right: 0;
  }

  .stat:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }

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

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

  .privacycard {
    display: block;
  }

  .privacyicon {
    display: inline-block;
    margin-bottom: 12px;
  }

  .footer .bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .bottom-right {
    justify-content: flex-start;
  }
}

/* Mobile */

@media (max-width: 600px) {
  :root {
    --header-height: 52px;
  }

  .container {
    width: min(calc(100% - 36px), 1160px);
  }

  .brand {
    font-size: 18px;
  }

  .mark {
    width: 29px;
    height: 29px;
  }

  .navlinks a {
    padding-right: 0;
    font-size: 14px;
  }

  .hero {
    padding: 23px 0 28px;
  }

  .hero h1 {
    margin-top: 6px;
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.03;
  }

  .hero p {
    font-size: 14px;
  }

  .actions {
    flex-direction: column;
    margin-top: 19px;
  }

  .primary,
  .secondary {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 34px 0;
  }

  .sectionhead {
    display: block;
    margin-bottom: 18px;
  }

  .sectionhead h2 {
    font-size: 28px;
  }

  .sectionhead p {
    margin-top: 9px;
  }

  .toolhero {
    padding: 18px 0 7px;
  }

  .toolhero h1 {
    margin-top: 3px;
    font-size: 36px;
  }

  .toolhero p {
    font-size: 14px;
    line-height: 1.65;
  }

  .breadcrumbs {
    margin-bottom: 3px;
  }

  .ad-wrap {
    padding: 8px 0;
  }

  .ad-slot {
    min-height: 76px;
  }

  .bar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .barleft {
    min-height: 34px;
  }

  .barright {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .smallbtn {
    min-height: 34px;
    padding: 0 10px;
  }

  .editor,
  .toolbox .editor {
    height: 210px;
    min-height: 210px;
    max-height: 210px;
    padding: 17px;
    font-size: 13px;
  }

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

  .stat {
    padding: 12px;
  }

  .stat:nth-child(3) {
    border-right: 1px solid var(--border);
  }

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-child(-n + 4) {
    border-bottom: 1px solid var(--border);
  }

  .quick,
  .toolcontrols {
    bottom: max(7px, env(safe-area-inset-bottom));
  }

  .toolcontrols,
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .toolcontrols {
    padding: 9px;
  }

  .chip {
    min-height: 37px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .toolgrid,
  .side,
  .related-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 19px;
  }

  .content-card h2 {
    font-size: 22px;
  }

  .content-card h3 {
    margin-top: 19px;
  }

  .privacy {
    padding: 25px 0 34px;
  }

  .privacycard {
    padding: 20px;
  }

  .footer {
    padding: 16px 0;
  }

  .footer .bottom {
    align-items: center;
    gap: 13px;
    text-align: center;
  }

  .bottom-left {
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 11px;
  }

  .bottom-copy {
    white-space: normal;
  }

  .bottom-right {
    justify-content: center;
    gap: 8px 13px;
  }

  .bottom-right a {
    font-size: 10px;
  }

  .footgrid {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .footlinks {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
