/*
 * Lanetti Tools app shell + design system.
 * Loaded after main.css: re-maps legacy tokens to the Lanetti / OMA palette
 * and owns the new chrome (.lt-*). Tool internals keep their main.css rules.
 */

:root {
  --lt-brand-50: #f4eefb;
  --lt-brand-100: #e9ddf7;
  --lt-brand-200: #d6c2f0;
  --lt-brand-300: #bd9ce7;
  --lt-brand-400: #a274dd;
  --lt-brand-500: #8552d7;
  --lt-brand-600: #7541c6;
  --lt-brand-700: #6233a6;
  --lt-brand-800: #512c86;
  --lt-brand-900: #43276c;
  --lt-navy: #0b0a1d;

  --lt-bg: #f7f8fb;
  --lt-surface: #ffffff;
  --lt-surface-2: #f1f3f7;
  --lt-line: #e7e9ef;
  --lt-line-strong: #d9dce5;
  --lt-text: #17191c;
  --lt-muted: #5e636e;
  --lt-primary: var(--lt-brand-500);
  --lt-primary-ink: var(--lt-brand-700);
  --lt-primary-soft: var(--lt-brand-50);
  --lt-ok: #15803d;
  --lt-ok-soft: #e8f6ee;
  --lt-warn: #b45309;
  --lt-warn-soft: #fdf3e3;
  --lt-bad: #c0262d;
  --lt-bad-soft: #fdecec;
  --lt-radius: 16px;
  --lt-radius-sm: 10px;
  --lt-shadow-1: 0 1px 2px rgba(23, 25, 28, 0.04), 0 2px 8px rgba(23, 25, 28, 0.04);
  --lt-shadow-2: 0 2px 6px rgba(23, 25, 28, 0.05), 0 12px 32px rgba(23, 25, 28, 0.07);
  --lt-shadow-brand: 0 10px 30px rgba(133, 82, 215, 0.25);
  --lt-top-h: 60px;
  --lt-side-w: 268px;
  --lt-tab-h: 64px;
  --lt-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lt-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Legacy tokens used by main.css and page scripts */
  --bg: var(--lt-bg);
  --bg-card: var(--lt-surface);
  --bg-elevated: var(--lt-surface-2);
  --border: var(--lt-line);
  --text: var(--lt-text);
  --text-muted: var(--lt-muted);
  --accent: var(--lt-brand-500);
  --accent-dim: var(--lt-brand-700);
  --accent-alt: #c06bd8;
  --brand-teal: var(--lt-brand-500);
  --btn-grad-dark: var(--lt-brand-600);
  --btn-grad-mid: var(--lt-brand-500);
  --btn-grad-orange: var(--lt-brand-500);
  --ok: var(--lt-ok);
  --warn: var(--lt-warn);
  --danger: var(--lt-bad);
  --radius: 14px;
  --font: var(--lt-font);
  --mono: var(--lt-mono);
  --shadow-sm: var(--lt-shadow-1);
  --shadow-md: var(--lt-shadow-2);
  --layout-max: 1180px;
  --tool-page-min-w: 0px;
  --header-sticky-offset: var(--lt-top-h);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --lt-bg: #0d0b1a;
  --lt-surface: #15132a;
  --lt-surface-2: #1d1a36;
  --lt-line: rgba(255, 255, 255, 0.08);
  --lt-line-strong: rgba(255, 255, 255, 0.14);
  --lt-text: #ecebf5;
  --lt-muted: #a3a0bb;
  --lt-primary: var(--lt-brand-400);
  --lt-primary-ink: var(--lt-brand-300);
  --lt-primary-soft: rgba(162, 116, 221, 0.14);
  --lt-ok: #4ade80;
  --lt-ok-soft: rgba(74, 222, 128, 0.12);
  --lt-warn: #fbbf24;
  --lt-warn-soft: rgba(251, 191, 36, 0.12);
  --lt-bad: #f87171;
  --lt-bad-soft: rgba(248, 113, 113, 0.12);
  --lt-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --lt-shadow-2: 0 12px 32px rgba(0, 0, 0, 0.45);
  --accent: var(--lt-brand-400);
  --accent-dim: var(--lt-brand-300);
  --bg: var(--lt-bg);
  --bg-card: var(--lt-surface);
  --bg-elevated: var(--lt-surface-2);
  --border: var(--lt-line);
  --text: var(--lt-text);
  --text-muted: var(--lt-muted);
}

/* ---------- Base ---------- */
html {
  height: auto;
  scroll-padding-top: calc(var(--lt-top-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body.lt {
  display: block;
  font-family: var(--lt-font);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--lt-text);
  background: var(--lt-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: 0;
}
html[data-theme="dark"] body.lt {
  background: var(--lt-bg);
}
.lt a {
  color: var(--lt-primary);
}
.lt h1, .lt h2, .lt h3 {
  letter-spacing: -0.02em;
}
.lt code, .lt pre, .lt kbd {
  font-family: var(--lt-mono);
}
.lt-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 1000;
  background: var(--lt-primary);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
}
.lt-skip:focus {
  left: 12px;
}
.lt :focus-visible {
  outline: 2px solid var(--lt-brand-400);
  outline-offset: 2px;
}

/* Retire old chrome if any page still prints it */
.lt .site-header,
.lt .floating-quick-rail,
.lt .site-footer,
.lt .ad-slot--top {
  display: none !important;
}

/* ---------- Buttons ---------- */
.lt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font: 600 14px/1 var(--lt-font);
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lt-btn--primary {
  background: var(--lt-brand-500);
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 6px 16px rgba(133, 82, 215, 0.28);
}
.lt-btn--primary:hover {
  background: var(--lt-brand-600);
  transform: translateY(-1px);
}
.lt-btn--light {
  background: #fff;
  color: var(--lt-brand-700) !important;
}
.lt-btn--ghost {
  background: var(--lt-surface);
  border-color: var(--lt-line-strong);
  color: var(--lt-text) !important;
}
.lt-btn--sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
}
.lt-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--lt-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lt-iconbtn:hover {
  background: var(--lt-surface-2);
  color: var(--lt-text);
}
.lt-chipbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--lt-line-strong);
  background: var(--lt-surface);
  color: var(--lt-text);
  font: 500 13px/1 var(--lt-font);
  cursor: pointer;
}
.lt-chipbtn:hover {
  border-color: var(--lt-brand-300);
  color: var(--lt-primary-ink);
}
.lt-chipbtn[aria-pressed="true"] {
  background: var(--lt-primary-soft);
  border-color: var(--lt-brand-300);
  color: var(--lt-primary-ink);
}
.lt-chipbtn[aria-pressed="true"] svg {
  fill: currentColor;
}
.lt-kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--lt-line-strong);
  background: var(--lt-surface);
  color: var(--lt-muted);
  font: 500 11px/1.3 var(--lt-font);
}
.lt-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--lt-primary-soft);
  color: var(--lt-primary-ink);
  font: 700 10px/1.4 var(--lt-font);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lt-chip {
  display: inline-block;
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  background: var(--lt-surface-2);
  font-size: 12px;
}

/* Category tones for icon tiles */
.lt-tone--violet { --tone: #8552d7; --tone-soft: #f1e9fb; }
.lt-tone--pink { --tone: #c2418f; --tone-soft: #fbe9f3; }
.lt-tone--blue { --tone: #2f6fd6; --tone-soft: #e8f0fc; }
.lt-tone--teal { --tone: #0f8b7e; --tone-soft: #e3f5f2; }
.lt-tone--amber { --tone: #b8650b; --tone-soft: #fcf0df; }
html[data-theme="dark"] .lt-tone--violet { --tone: #bd9ce7; --tone-soft: rgba(162, 116, 221, 0.16); }
html[data-theme="dark"] .lt-tone--pink { --tone: #f08cc6; --tone-soft: rgba(240, 140, 198, 0.14); }
html[data-theme="dark"] .lt-tone--blue { --tone: #8db6f5; --tone-soft: rgba(141, 182, 245, 0.14); }
html[data-theme="dark"] .lt-tone--teal { --tone: #5ed1c2; --tone-soft: rgba(94, 209, 194, 0.13); }
html[data-theme="dark"] .lt-tone--amber { --tone: #f5b660; --tone-soft: rgba(245, 182, 96, 0.13); }
.lt-tone--rose { --tone: #c2415b; --tone-soft: #fde8ec; }
html[data-theme="dark"] .lt-tone--rose { --tone: #f0a0ae; --tone-soft: rgba(240, 160, 174, 0.14); }

/* ---------- Top bar ---------- */
.lt-top {
  position: sticky;
  top: 0;
  z-index: 300;
  height: calc(var(--lt-top-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--lt-surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--lt-line);
}
.lt-top__inner {
  height: var(--lt-top-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
}
.lt-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex: 0 0 auto;
}
.lt-brand__logo {
  height: 22px;
  width: auto;
  display: block;
}
.lt-brand__logo--dark {
  display: none;
}
html[data-theme="dark"] .lt-brand__logo--light {
  display: none;
}
html[data-theme="dark"] .lt-brand__logo--dark {
  display: block;
}
.lt-brand__product {
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--lt-primary-soft);
  color: var(--lt-primary-ink);
  font: 700 13px/1 var(--lt-font);
  letter-spacing: 0.01em;
}
.lt-searchpill {
  flex: 1 1 auto;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--lt-line-strong);
  background: var(--lt-surface-2);
  color: var(--lt-muted);
  font: 400 14px/1 var(--lt-font);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.lt-searchpill:hover {
  border-color: var(--lt-brand-300);
  background: var(--lt-surface);
}
.lt-searchpill__text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt-top__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.lt-ipchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
  color: var(--lt-muted) !important;
  font-size: 12.5px;
  text-decoration: none !important;
  max-width: 260px;
}
.lt-ipchip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.lt-ipchip__value {
  color: var(--lt-text);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lt-theme-ico--moon,
html[data-theme="dark"] .lt-theme-ico--sun {
  display: none;
}
html[data-theme="dark"] .lt-theme-ico--moon {
  display: inline;
}
.lt-top__sidetoggle {
  display: none;
}

/* ---------- Shell ---------- */
.lt-shell {
  display: grid;
  grid-template-columns: var(--lt-side-w) minmax(0, 1fr);
  min-height: calc(100dvh - var(--lt-top-h));
}
html[data-side="mini"] .lt-shell {
  grid-template-columns: 76px minmax(0, 1fr);
}
.lt-side {
  position: sticky;
  top: var(--lt-top-h);
  height: calc(100dvh - var(--lt-top-h));
  border-right: 1px solid var(--lt-line);
  background: var(--lt-surface);
  display: flex;
  flex-direction: column;
  min-width: 0;
  z-index: 50;
}
.lt-side__grab,
.lt-side__head {
  display: none;
}
.lt-side__scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 12px 24px;
  scrollbar-width: thin;
}
.lt-side__group {
  margin-top: 16px;
}
.lt-side__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--lt-muted);
  font: 600 11px/1.4 var(--lt-font);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.lt-navlink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 5px 10px 5px 6px;
  border-radius: 10px;
  color: var(--lt-text) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.12s;
}
.lt-navlink:hover {
  background: var(--lt-surface-2);
}
.lt-navlink.is-active {
  background: var(--lt-primary-soft);
  color: var(--lt-primary-ink) !important;
  font-weight: 600;
}
.lt-navlink__ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--tone-soft);
  color: var(--tone);
}
.lt-navlink__text {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.lt-navlink__ext {
  color: var(--lt-muted);
  display: inline-flex;
}
.lt-side__promo {
  display: block;
  margin: 22px 4px 0;
  padding: 16px;
  border-radius: 14px;
  background: radial-gradient(120% 120% at 100% 0%, #a274dd 0%, #6233a6 55%, #2a1650 100%);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1.45;
}
.lt-side__promo strong {
  display: block;
  font-size: 15px;
  margin: 2px 0 4px;
}
.lt-side__promo span:last-child {
  opacity: 0.85;
}
.lt-side__promo-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
html[data-side="mini"] .lt-side__label,
html[data-side="mini"] .lt-navlink__text,
html[data-side="mini"] .lt-navlink__ext,
html[data-side="mini"] .lt-badge,
html[data-side="mini"] .lt-side__promo {
  display: none;
}
html[data-side="mini"] .lt-navlink {
  justify-content: center;
  padding: 5px;
}
html[data-side="mini"] .lt-side__group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--lt-line);
}
.lt-scrim {
  display: none;
}

.lt-main {
  min-width: 0;
  padding: 24px clamp(16px, 3vw, 40px) 0;
  display: flex;
  flex-direction: column;
}
.lt-main > * {
  width: 100%;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
}
.lt-page {
  flex: 1 0 auto;
  min-width: 0;
}
/* Neutralise the old single "page sheet" */
.lt .main-layout__primary.wrap,
.lt .main-layout__primary {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* Breadcrumb + actions above tools */
.lt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lt-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--lt-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
.lt-crumbs a {
  color: var(--lt-muted) !important;
}
.lt-crumbs a:hover {
  color: var(--lt-primary) !important;
}
.lt-crumbs [aria-current] {
  color: var(--lt-text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt-toolbar__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

/* ---------- Tool hero + forms (legacy markup, new look) ---------- */
.lt .tool-page-inner > .tool-card--intro:not(.speed-lab) {
  text-align: left;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(162, 116, 221, 0.16) 0%, transparent 60%),
    var(--lt-surface);
  border: 1px solid var(--lt-line);
  border-radius: 20px;
  box-shadow: var(--lt-shadow-1);
  padding: clamp(20px, 3.5vw, 36px);
}
html[data-theme="dark"] .lt .tool-page-inner > .tool-card--intro:not(.speed-lab) {
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(162, 116, 221, 0.22) 0%, transparent 60%),
    var(--lt-surface);
}
.lt .tool-page-inner > .tool-card--intro:not(.speed-lab) h1,
.lt .page-tool.page-tool--carded .tool-page-inner > .tool-card--intro:not(.speed-lab) > h1,
.lt .tool-page-inner > .tool-card--intro:not(.speed-lab) .tool-card__h1 {
  text-align: left;
  font: 800 clamp(26px, 4vw, 36px)/1.15 var(--lt-font);
  letter-spacing: -0.03em;
  color: var(--lt-text);
  margin: 0 0 8px;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.lt .tool-page-inner > .tool-card--intro:not(.speed-lab) .lead,
.lt .page-tool.page-tool--carded .tool-page-inner > .tool-card--intro:not(.speed-lab) > .lead,
.lt .tool-page-inner > .tool-card--intro:not(.speed-lab) > p[class*="__lead"],
.lt .tool-page-inner > .tool-card--intro:not(.speed-lab) .ip-location__lead {
  text-align: left;
  max-width: 62ch;
  margin: 0 0 22px;
  color: var(--lt-muted);
  font-size: 16px;
}
.lt .tool-page-inner > .tool-card--intro:not(.speed-lab) .search-bar,
.lt .tool-page-inner > .tool-card--intro:not(.speed-lab) .form-inline {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}
.lt .search-bar,
.lt .form-inline {
  border-radius: 14px;
  border: 1px solid var(--lt-line-strong);
  background: var(--lt-surface);
  box-shadow: var(--lt-shadow-1);
  overflow: hidden;
}
.lt .search-bar:focus-within,
.lt .form-inline:focus-within {
  border-color: var(--lt-brand-400);
  box-shadow: 0 0 0 4px rgba(133, 82, 215, 0.14);
}
.lt .search-bar__input,
.lt .search-bar .input-lg,
.lt .form-inline .input-lg {
  background: transparent;
  color: var(--lt-text);
  font-family: var(--lt-mono);
  font-size: 15px;
  min-height: 52px;
}
.lt .search-bar__input:focus,
.lt .search-bar .input-lg:focus,
.lt .form-inline .input-lg:focus {
  box-shadow: none !important;
}
.lt .search-bar__type {
  background: var(--lt-surface-2);
  color: var(--lt-text);
  border-right: 1px solid var(--lt-line);
  font-family: var(--lt-font);
  font-weight: 600;
}
.lt .btn-submit-bar,
.lt .search-bar__submit,
.lt .form-inline .btn {
  background: var(--lt-brand-500);
  color: #fff;
  font: 600 15px/1 var(--lt-font);
  min-height: 44px;
  margin: 4px;
  border-radius: 10px;
  min-width: 110px;
}
.lt .btn-submit-bar:hover,
.lt .search-bar__submit:hover {
  background: var(--lt-brand-600);
  filter: none;
}
.lt .btn-submit-bar:disabled,
.lt .search-bar__submit:disabled {
  opacity: 0.7;
  cursor: progress;
}
.lt .btn:not(.lt-btn) {
  border-radius: 10px;
  font-family: var(--lt-font);
}
.lt .btn--ghost {
  border-color: var(--lt-line-strong);
}
.lt input[type="text"]:not(.search-bar__input):not(.input-lg),
.lt input[type="number"],
.lt input[type="url"],
.lt input[type="datetime-local"],
.lt select:not(.search-bar__type),
.lt textarea,
.lt .dev-tool__input,
.lt .dev-tool__textarea,
.lt .dev-tool__select {
  border: 1px solid var(--lt-line-strong);
  border-radius: 10px;
  background: var(--lt-surface);
  color: var(--lt-text);
  font-size: 15px;
}
.lt textarea:focus,
.lt .dev-tool__input:focus,
.lt .dev-tool__textarea:focus,
.lt input[type="text"]:focus,
.lt select:focus {
  outline: none;
  border-color: var(--lt-brand-400);
  box-shadow: 0 0 0 3px rgba(133, 82, 215, 0.14);
}

/* Results */
.lt .results-panel,
.lt .diag-panel {
  border-radius: 16px;
  border-color: var(--lt-line);
  background: var(--lt-surface);
}
.lt .diag-pre,
.lt .dev-tool__pre,
.lt .page-tool pre {
  background: var(--lt-surface-2);
  border: 1px solid var(--lt-line);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
}
.lt table {
  font-variant-numeric: tabular-nums;
}
.lt-callout {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--lt-primary-soft);
  border: 1px solid var(--lt-brand-200);
}
.lt-callout--ok {
  background: var(--lt-ok-soft);
  border-color: rgba(21, 128, 61, 0.25);
}
.lt-callout--warn {
  background: var(--lt-warn-soft);
  border-color: rgba(180, 83, 9, 0.25);
}
.lt-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.lt-facts > div {
  padding: 12px 14px;
  border: 1px solid var(--lt-line);
  border-radius: 12px;
  background: var(--lt-surface-2);
  min-width: 0;
}
.lt-facts dt {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lt-muted);
}
.lt-facts dd {
  margin: 4px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.lt-raw summary {
  cursor: pointer;
  color: var(--lt-primary);
  font-weight: 600;
  margin: 8px 0;
}

/* ---------- Tiles (home, related) ---------- */
.lt-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.lt-tile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--lt-radius);
  background: var(--lt-surface);
  border: 1px solid var(--lt-line);
  box-shadow: var(--lt-shadow-1);
  color: var(--lt-text) !important;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-width: 0;
}
.lt-tile:hover {
  transform: translateY(-2px);
  border-color: var(--lt-brand-200);
  box-shadow: var(--lt-shadow-2);
}
.lt-tile__ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tone-soft);
  color: var(--tone);
}
.lt-tile__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lt-tile__title {
  font-weight: 650;
  font-size: 15px;
  line-height: 1.3;
}
.lt-tile__desc {
  color: var(--lt-muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.lt-tile__open {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
  color: inherit !important;
  text-decoration: none !important;
}
.lt-tile__star {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lt-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.lt-tile:hover .lt-tile__star,
.lt-tile__star[aria-pressed="true"],
.lt-tile__star:focus-visible {
  opacity: 1;
}
.lt-tile__star[aria-pressed="true"] {
  color: #e8a317;
}
.lt-tile__star[aria-pressed="true"] svg {
  fill: currentColor;
}
.lt-side.is-saved .lt-side__scroll > .lt-navlink,
.lt-side.is-saved .lt-side__group:not(.lt-side__group--saved),
.lt-side.is-saved .lt-side__promo {
  display: none;
}
.lt-side__empty {
  margin: 4px 8px 14px;
  color: var(--lt-muted);
  font-size: 14px;
  line-height: 1.45;
}
.lt-tile__new {
  position: absolute;
  top: 12px;
  right: 44px;
}

/* ---------- After tool: related + offer ---------- */
.lt-after {
  margin-top: 36px;
}
.lt-after__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.lt-after__head h2 {
  margin: 0;
  font-size: 18px;
}
.lt-after__head a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
.lt-offer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 20px;
  color: #fff !important;
  text-decoration: none !important;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(214, 166, 240, 0.45) 0%, transparent 60%),
    linear-gradient(135deg, #7541c6 0%, #43276c 60%, #1d1230 100%);
  box-shadow: var(--lt-shadow-brand);
}
.lt-offer__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 640px;
}
.lt-offer__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.lt-offer__title {
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: -0.02em;
}
.lt-offer__text {
  opacity: 0.85;
  font-size: 14.5px;
}

/* ---------- Ads: invisible until filled ---------- */
.lt-ad {
  margin-top: 28px;
  text-align: center;
}
.lt-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
}
.lt .ad-rail--right {
  left: auto;
  right: 12px;
  top: calc(var(--lt-top-h) + 24px);
}
@media (max-width: 1799px) {
  .lt .ad-rail--right {
    display: none !important;
  }
}
@media (min-width: 1800px) {
  .lt .ad-rail--right {
    display: flex;
  }
  .lt .ad-rail--right:has(ins[data-ad-status="unfilled"]) {
    display: none;
  }
}

/* ---------- Footer ---------- */
.lt-footer {
  margin-top: 48px;
  margin-bottom: 0;
  padding: 36px clamp(20px, 3vw, 36px) 24px;
  border-radius: 24px 24px 0 0;
  background: var(--lt-navy);
  color: #c9c6dd;
  font-size: 14px;
  max-width: none !important;
  width: calc(100% + 2 * clamp(16px, 3vw, 40px)) !important;
  margin-left: calc(-1 * clamp(16px, 3vw, 40px)) !important;
}
.lt-footer a {
  color: #c9c6dd !important;
}
.lt-footer a:hover {
  color: #fff !important;
}
.lt-footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 22px;
  max-width: var(--layout-max);
  margin: 0 auto;
}
.lt-footer__brand {
  grid-column: 1 / -1;
}
.lt-footer__brand p {
  margin: 12px 0 16px;
  line-height: 1.55;
}
.lt-footer__logo img {
  height: 24px;
  width: auto;
}
.lt-footer__brand .lt-btn {
  color: #fff !important;
}
.lt-footer h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lt-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lt-footer li {
  margin: 0 0 7px;
}
.lt-footer__bottom {
  max-width: var(--layout-max);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.lt-footer__bottom p {
  margin: 0;
}
.lt-footer__bottom nav {
  display: flex;
  gap: 18px;
}

/* ---------- Tab bar (mobile) ---------- */
.lt-tabbar {
  display: none;
}

/* ---------- Command palette ---------- */
.lt-palette[hidden] {
  display: none;
}
.lt-palette {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10vh 16px 16px;
}
.lt-palette__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 10, 29, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: lt-fade 0.15s ease;
}
.lt-palette__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  background: var(--lt-surface);
  border: 1px solid var(--lt-line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(11, 10, 29, 0.35);
  overflow: hidden;
  animation: lt-pop 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.lt-palette__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--lt-line);
  color: var(--lt-muted);
}
.lt-palette__bar input {
  flex: 1;
  min-width: 0;
  height: 58px;
  border: 0 !important;
  outline: none;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--lt-text);
  font: 400 17px/1 var(--lt-font) !important;
}
.lt-palette__bar input::-webkit-search-cancel-button {
  display: none;
}
.lt-palette__esc {
  border: 1px solid var(--lt-line-strong);
  background: var(--lt-surface-2);
  color: var(--lt-muted);
  border-radius: 8px;
  padding: 4px 8px;
  font: 500 12px/1 var(--lt-font);
  cursor: pointer;
}
.lt-palette__list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}
.lt-palette__group {
  padding: 10px 10px 4px;
  color: var(--lt-muted);
  font: 600 11px/1 var(--lt-font);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.lt-palette__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--lt-text) !important;
  text-decoration: none !important;
  cursor: pointer;
}
.lt-palette__item[aria-selected="true"] {
  background: var(--lt-primary-soft);
}
.lt-palette__item .lt-tile__ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.lt-palette__item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.lt-palette__item-title {
  font-weight: 600;
  font-size: 14.5px;
}
.lt-palette__item-desc {
  color: var(--lt-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt-palette__empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--lt-muted);
}
.lt-palette__foot {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--lt-line);
  color: var(--lt-muted);
  font-size: 12px;
}
.lt-palette__foot kbd {
  margin-right: 3px;
}

/* Toast */
.lt-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 950;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 12px;
  background: #1d1a36;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--lt-shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.lt-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes lt-fade {
  from { opacity: 0; }
}
@keyframes lt-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
}
@keyframes lt-up {
  from { transform: translateY(100%); }
}

/* ---------- Home ---------- */
.lt-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 44px);
  color: #fff;
  background:
    radial-gradient(50% 80% at 85% 10%, rgba(162, 116, 221, 0.55) 0%, transparent 60%),
    radial-gradient(40% 60% at 10% 100%, rgba(194, 65, 143, 0.28) 0%, transparent 70%),
    linear-gradient(160deg, #1a1440 0%, #0b0a1d 70%);
  box-shadow: 0 30px 60px rgba(11, 10, 29, 0.18);
  isolation: isolate;
}
.lt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
}
.lt-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 500;
  color: #e3dcf5;
}
.lt-hero__eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}
.lt-hero h1 {
  margin: 0;
  max-width: 16ch;
  font: 800 clamp(34px, 6vw, 60px)/1.04 var(--lt-font);
  letter-spacing: -0.04em;
  color: #fff;
}
.lt-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #d6c2f0, #bd9ce7 50%, #f0a6d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lt-hero__sub {
  margin: 16px 0 26px;
  max-width: 56ch;
  color: #cdc8e3;
  font-size: clamp(15px, 1.8vw, 18px);
}
.lt-smart {
  max-width: 760px;
}
.lt-smart__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.lt-smart__bar svg {
  color: #8a86a3;
  flex: 0 0 auto;
}
.lt-smart__bar input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 0;
  outline: none;
  background: transparent;
  color: #17191c;
  font: 500 17px/1 var(--lt-font);
}
.lt-smart__bar input::placeholder {
  color: #8a86a3;
}
.lt-smart__bar .lt-btn {
  height: 46px;
  padding: 0 20px;
  font-size: 15px;
}
.lt-smart__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  min-height: 36px;
}
.lt-smart__hint {
  color: #a9a3c6;
  font-size: 13.5px;
  align-self: center;
}
.lt-smart__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s;
  animation: lt-fade 0.2s ease;
}
.lt-smart__chip:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lt-smart__chip--main {
  background: #fff;
  color: #43276c !important;
  border-color: #fff;
  font-weight: 650;
}
.lt-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cdc8e3;
  font-size: 14px;
}
.lt-hero__stats strong {
  color: #fff;
  font-size: 15px;
}

.lt-section {
  margin-top: 36px;
}
.lt-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lt-section__head h2 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lt-section__head p {
  margin: 0;
  color: var(--lt-muted);
  font-size: 14px;
}
.lt-section__count {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lt-surface-2);
  color: var(--lt-muted);
  font-size: 12px;
  font-weight: 600;
}
.lt-catnav {
  position: sticky;
  top: var(--lt-top-h);
  z-index: 20;
  display: flex;
  gap: 8px;
  margin: 28px 0 0;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(var(--lt-bg) 75%, transparent);
}
.lt-catnav::-webkit-scrollbar {
  display: none;
}
.lt-catnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
  color: var(--lt-text) !important;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none !important;
}
.lt-catnav a span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tone-soft);
  color: var(--tone);
}
.lt-catnav a:hover {
  border-color: var(--lt-brand-300);
}
.lt-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
  color: var(--lt-muted);
  flex: 0 0 auto;
}
.lt-filter input {
  border: 0 !important;
  outline: none;
  background: transparent !important;
  color: var(--lt-text);
  width: 150px;
  font: 400 14px/1 var(--lt-font) !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.lt-empty {
  padding: 28px;
  border: 1px dashed var(--lt-line-strong);
  border-radius: var(--lt-radius);
  color: var(--lt-muted);
  text-align: center;
}

.lt-why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.lt-why > div {
  padding: 18px;
  border-radius: var(--lt-radius);
  background: var(--lt-surface);
  border: 1px solid var(--lt-line);
}
.lt-why strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 15px;
}
.lt-why p {
  margin: 0;
  color: var(--lt-muted);
  font-size: 13.5px;
}
.lt-why .lt-tile__ico {
  width: 38px;
  height: 38px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) and (min-width: 1024px) {
  .lt-ipchip__label {
    display: none;
  }
}
@media (min-width: 1024px) {
  .lt-top__sidetoggle {
    display: inline-grid;
  }
}
@media (max-width: 1100px) {
  .lt-footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lt-footer__brand {
    grid-column: 1 / -1;
  }
  .lt-why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet + phone: app mode */
@media (max-width: 1023px) {
  :root {
    --lt-top-h: 56px;
  }
  .lt-shell,
  html[data-side="mini"] .lt-shell {
    display: block;
  }
  .lt-searchpill,
  .lt-top__cta,
  .lt-ipchip__label {
    display: none;
  }
  .lt-top__inner {
    justify-content: space-between;
  }
  .lt-main {
    padding: 16px 16px 0;
    min-height: calc(100dvh - var(--lt-top-h));
  }
  .lt-footer {
    width: calc(100% + 32px) !important;
    margin-left: -16px !important;
    padding-bottom: calc(var(--lt-tab-h) + 28px + env(safe-area-inset-bottom, 0px));
  }

  /* Side menu becomes a bottom sheet */
  .lt-side {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    max-height: 86dvh;
    border: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 60px rgba(11, 10, 29, 0.25);
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1);
    z-index: 820;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    visibility: hidden;
  }
  .lt-side.is-open {
    transform: translateY(0);
    visibility: visible;
  }
  .has-admin-strip .lt-side {
    top: auto;
  }
  .lt-side__grab {
    display: block;
    width: 40px;
    height: 5px;
    margin: 10px auto 2px;
    border-radius: 999px;
    background: var(--lt-line-strong);
  }
  .lt-side__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px 4px 20px;
  }
  .lt-side__title {
    margin: 0;
    font-size: 18px;
    font-weight: 750;
  }
  .lt-side__scroll {
    padding: 0 12px calc(var(--lt-tab-h) + 16px);
  }
  html[data-side="mini"] .lt-side__label,
  html[data-side="mini"] .lt-navlink__text,
  html[data-side="mini"] .lt-badge,
  html[data-side="mini"] .lt-side__promo {
    display: revert;
  }
  html[data-side="mini"] .lt-navlink {
    justify-content: flex-start;
    padding: 5px 10px 5px 6px;
  }
  html[data-side="mini"] .lt-side__group {
    border: 0;
  }
  .lt-navlink {
    min-height: 46px;
    font-size: 15px;
  }
  .lt-navlink__ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .lt-scrim {
    position: fixed;
    inset: 0;
    z-index: 810;
    background: rgba(11, 10, 29, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .lt-scrim.is-on {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  body.lt-lock {
    overflow: hidden;
  }

  /* Bottom tab bar */
  .lt-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 850;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--lt-tab-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--lt-surface) 90%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
    border-top: 1px solid var(--lt-line);
  }
  .lt-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: none;
    color: var(--lt-muted) !important;
    font: 600 11px/1 var(--lt-font);
    text-decoration: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .lt-tab.is-active {
    color: var(--lt-primary) !important;
  }
  .lt-tab:active {
    transform: scale(0.94);
  }
  .lt-tab__fab {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-top: -20px;
    border-radius: 16px;
    background: linear-gradient(145deg, #9b6be6, #6233a6);
    color: #fff;
    box-shadow: 0 10px 24px rgba(133, 82, 215, 0.45);
  }
  .lt-tab--main span:last-child {
    margin-top: 1px;
  }
  .lt-toast {
    bottom: calc(var(--lt-tab-h) + 16px + env(safe-area-inset-bottom, 0px));
  }

  /* Palette fills the screen like a native search view */
  .lt-palette {
    padding: 0;
    align-items: stretch;
  }
  .lt-palette__panel {
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
    border: 0;
    padding-top: env(safe-area-inset-top, 0px);
    animation: lt-fade 0.15s ease;
  }
  .lt-palette__foot {
    display: none;
  }
  .lt-palette__item {
    padding: 11px 10px;
  }
}

@media (max-width: 720px) {
  .lt-toolbar {
    margin-bottom: 10px;
  }
  .lt-crumbs > a:first-child,
  .lt-crumbs > span[aria-hidden]:first-of-type {
    display: none;
  }
  .lt-toolbar .lt-chipbtn span {
    display: none;
  }
  .lt-toolbar .lt-chipbtn {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .lt-ipchip {
    max-width: 170px;
  }
  .lt-hero {
    border-radius: 22px;
    margin: 0 -4px;
  }
  .lt-smart__bar {
    flex-wrap: wrap;
    padding: 6px;
  }
  .lt-smart__bar > svg {
    display: none;
  }
  .lt-smart__bar input {
    padding: 0 10px;
    height: 48px;
    flex-basis: 100%;
  }
  .lt-smart__bar .lt-btn {
    width: 100%;
  }
  .lt-hero__stats {
    gap: 8px 18px;
    font-size: 13px;
  }
  /* App-launcher grid: icon tiles in two columns */
  .lt-tiles--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .lt-tiles--home .lt-tile {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
  .lt-tiles--home .lt-tile__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
  }
  .lt-tiles--home .lt-tile__title {
    font-size: 14.5px;
  }
  .lt-tile__star {
    opacity: 1;
  }
  .lt-tiles--related {
    grid-template-columns: 1fr;
  }
  .lt-filter {
    display: none;
  }
  .lt-offer {
    flex-direction: column;
    align-items: flex-start;
  }
  .lt-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .lt-why {
    grid-template-columns: 1fr;
  }
  .lt-why > div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: start;
  }
  .lt-why > div strong {
    margin-top: 0;
  }
  .lt-why > div .lt-tile__ico {
    grid-row: span 2;
  }

  /* Legacy tool forms: stack cleanly on phones */
  .lt .tool-page-inner > .tool-card--intro:not(.speed-lab) {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .lt .search-bar,
  .lt .form-inline {
    flex-wrap: wrap;
  }
  .lt .search-bar__type {
    flex: 1 1 100%;
    max-width: none;
    border-right: 0;
    border-bottom: 1px solid var(--lt-line);
    min-height: 46px;
  }
  .lt .search-bar__input,
  .lt .search-bar .input-lg,
  .lt .form-inline .input-lg {
    flex: 1 1 100%;
    width: 100%;
    font-size: 16px; /* stops iOS zoom */
  }
  .lt .btn-submit-bar,
  .lt .search-bar__submit,
  .lt .form-inline .btn {
    flex: 1 1 100%;
    width: calc(100% - 8px);
    border-radius: 10px !important;
  }
  .lt input, .lt select, .lt textarea {
    font-size: 16px;
  }
  .lt .results-panel,
  .lt .diag-panel {
    padding-left: 12px;
    padding-right: 12px;
  }
  .lt table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lt *,
  .lt *::before,
  .lt *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Score rings, reports, checklists (new tools) ---------- */
.lt-ring__track { stroke: var(--lt-surface-2); }
.lt-ring--ok .lt-ring__bar { stroke: #22a55b; }
.lt-ring--warn .lt-ring__bar { stroke: #e39b1b; }
.lt-ring--bad .lt-ring__bar { stroke: #e0454b; }
.lt-ring__bar { transition: stroke-dasharray 0.8s cubic-bezier(0.2, 0.9, 0.3, 1); }

.lt-report { margin-top: 22px; }
.lt-report__head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-radius: 18px;
  background: var(--lt-surface-2);
  border: 1px solid var(--lt-line);
}
.lt-report__ring { position: relative; width: 104px; height: 104px; }
.lt-report__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font: 800 30px/1 var(--lt-font);
  letter-spacing: -0.03em;
}
.lt-report__num small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lt-muted);
  letter-spacing: 0.04em;
}
.lt-report__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lt-primary);
}
.lt-report__domain {
  margin: 2px 0 4px;
  font-size: clamp(20px, 3vw, 26px);
  overflow-wrap: anywhere;
}
.lt-report__status { margin: 0; color: var(--lt-muted); font-size: 14px; }
.lt-report__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.lt-check {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
  color: var(--lt-text) !important;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  border-top: 3px solid var(--lt-line-strong);
}
.lt-check:hover { transform: translateY(-2px); box-shadow: var(--lt-shadow-2); }
.lt-check--ok { border-top-color: #22a55b; }
.lt-check--warn { border-top-color: #e39b1b; }
.lt-check--bad { border-top-color: #e0454b; }
.lt-check__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lt-check__title { font-weight: 700; }
.lt-check__grade { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--lt-muted); }
.lt-check__grade b { color: var(--lt-text); font-size: 16px; }
.lt-check__facts { display: flex; flex-direction: column; gap: 3px; color: var(--lt-muted); font-size: 13.5px; min-height: 42px; }
.lt-check__facts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-check__more { margin-top: auto; color: var(--lt-primary); font-size: 13px; font-weight: 600; }
.lt-skel {
  display: block;
  height: 12px;
  width: 80%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--lt-surface-2) 0%, var(--lt-line) 50%, var(--lt-surface-2) 100%);
  background-size: 200% 100%;
  animation: lt-shimmer 1.2s linear infinite;
}
.lt-skel--short { width: 50%; }
@keyframes lt-shimmer { to { background-position: -200% 0; } }
.lt-report__todo { margin-top: 18px; }
.lt-report__todo h3 { margin: 0 0 10px; font-size: 17px; }
.lt-report__todo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lt-todo {
  position: relative;
  padding: 11px 14px 11px 38px;
  border-radius: 12px;
  background: var(--lt-surface);
  border: 1px solid var(--lt-line);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.lt-todo::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.lt-todo--bad::before { background: #e0454b; box-shadow: 0 0 0 4px rgba(224, 69, 75, 0.15); }
.lt-todo--warn::before { background: #e39b1b; box-shadow: 0 0 0 4px rgba(227, 155, 27, 0.15); }
.lt-todo--info::before { background: var(--lt-brand-400); box-shadow: 0 0 0 4px rgba(162, 116, 221, 0.15); }

.lt-hh__head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.lt-hh__title { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.lt-grade {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font: 800 26px/1 var(--lt-font);
  color: #fff;
}
.lt-grade--ok { background: linear-gradient(145deg, #2fbf6d, #15803d); }
.lt-grade--warn { background: linear-gradient(145deg, #f2b136, #c27a06); }
.lt-grade--bad { background: linear-gradient(145deg, #f06a6f, #c0262d); }
.lt-checklist { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.lt-checklist__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
}
.lt-checklist__badge {
  flex: 0 0 auto;
  min-width: 70px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.lt-checklist__item--pass .lt-checklist__badge { background: var(--lt-ok-soft); color: var(--lt-ok); }
.lt-checklist__item--warn .lt-checklist__badge { background: var(--lt-warn-soft); color: var(--lt-warn); }
.lt-checklist__item--bad .lt-checklist__badge { background: var(--lt-bad-soft); color: var(--lt-bad); }
.lt-checklist__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lt-checklist__body code {
  font-size: 12.5px;
  color: var(--lt-muted);
  overflow-wrap: anywhere;
  background: none;
  padding: 0;
}
.lt-checklist__advice { margin: 2px 0 0; font-size: 13.5px; }
.lt-hh__rawhead { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
.lt-hh__rawhead h3 { margin: 0; font-size: 16px; }
.lt-kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.lt-kv th, .lt-kv td { padding: 8px 10px; border-bottom: 1px solid var(--lt-line); text-align: left; vertical-align: top; }
.lt-kv th { width: 30%; font-family: var(--lt-mono); font-weight: 500; color: var(--lt-primary-ink); white-space: nowrap; }
.lt-kv td code { overflow-wrap: anywhere; background: none; padding: 0; }

.lt-now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface-2);
  font-size: 13px;
  color: var(--lt-muted);
}
.lt-now code { font-size: 15px; color: var(--lt-text); font-weight: 600; }

.lt-pw { max-width: 720px; }
.lt-pw__out {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 18px;
  border-radius: 16px;
  border: 1px solid var(--lt-line-strong);
  background: var(--lt-surface);
  box-shadow: var(--lt-shadow-1);
}
.lt-pw__value {
  flex: 1;
  min-width: 0;
  font: 500 clamp(16px, 2.6vw, 21px)/1.35 var(--lt-mono);
  overflow-wrap: anywhere;
  user-select: all;
}
.lt-pw__btns { display: flex; gap: 6px; flex: 0 0 auto; }
.lt-pw__meter { height: 6px; margin: 12px 0 6px; border-radius: 99px; background: var(--lt-surface-2); overflow: hidden; }
.lt-pw__meter span { display: block; height: 100%; border-radius: 99px; transition: width 0.25s, background 0.25s; }
.lt-pw__meter .is-ok { background: #22a55b; }
.lt-pw__meter .is-warn { background: #e39b1b; }
.lt-pw__meter .is-bad { background: #e0454b; }
.lt-seg {
  display: inline-flex;
  gap: 4px;
  margin: 10px 0 14px;
  padding: 4px;
  border-radius: 12px;
  background: var(--lt-surface-2);
}
.lt-seg button {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--lt-muted);
  font: 600 13.5px/1 var(--lt-font);
  cursor: pointer;
}
.lt-seg button[aria-selected="true"] { background: var(--lt-surface); color: var(--lt-text); box-shadow: var(--lt-shadow-1); }
.lt-range { width: 100%; accent-color: var(--lt-brand-500); }
.lt-pw__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-pw__opts[hidden] { display: none; }
.lt-pw__opts label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
  font-size: 14px;
  cursor: pointer;
}
.lt-pw__opts input { accent-color: var(--lt-brand-500); width: 16px; height: 16px; }
@media (max-width: 720px) {
  .lt-report__head { flex-direction: column; align-items: flex-start; }
  .lt-report__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lt-check { padding: 12px; }
  .lt-check__facts span:nth-child(n+3) { display: none; }
  .lt-kv th { width: auto; white-space: normal; }
  .lt-checklist__item { flex-direction: column; gap: 6px; }
}

/* Hero input must not inherit the generic form field look */
.lt .lt-smart__bar input,
html[data-theme="dark"] .lt .lt-smart__bar input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #17191c !important;
  border-radius: 0;
  padding: 0 4px;
}
.lt-tile__title .lt-badge {
  margin-left: 6px;
  vertical-align: 2px;
}

/* Admin bar (15px) scrolls away; keep top bar + sidebar pinned at the viewport edge */
.lt .admin-front-bar {
  position: relative;
  z-index: 310;
}
.lt-side {
  align-self: start;
}

/* ---------- Universal loader: top progress bar + busy buttons ---------- */
.lt-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow: hidden;
}
.lt-progress::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -40%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, transparent, var(--lt-brand-400), #d6a6f0, var(--lt-brand-500));
  box-shadow: 0 0 10px rgba(162, 116, 221, 0.7);
}
body.lt-busy .lt-progress {
  opacity: 1;
}
body.lt-busy .lt-progress::before {
  animation: lt-progress 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes lt-progress {
  0% { left: -40%; width: 40%; }
  60% { width: 55%; }
  100% { left: 100%; width: 30%; }
}
.lt .is-busy,
.lt button[type="submit"]:disabled {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.lt .is-busy::after,
.lt button[type="submit"]:disabled::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2.2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: lt-spin 0.7s linear infinite;
}
.lt .btn--ghost.is-busy::after,
.lt .lt-chipbtn.is-busy::after {
  border-color: rgba(133, 82, 215, 0.25);
  border-top-color: var(--lt-brand-500);
}
@keyframes lt-spin {
  to { transform: rotate(360deg); }
}
/* Legacy "Looking up…" text placeholders become a calm loading card */
.lt .loader,
.lt .tool-card__results-inline .form-hint:only-child,
.lt .tool-card__results-inline .results-panel > .form-hint:only-child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--lt-line);
  background:
    linear-gradient(90deg, transparent 0%, rgba(162, 116, 221, 0.08) 50%, transparent 100%) var(--lt-surface);
  background-size: 200% 100%;
  animation: lt-shimmer 1.4s linear infinite;
  color: var(--lt-muted);
  font-weight: 500;
}
.lt .loader::before,
.lt .tool-card__results-inline .form-hint:only-child::before,
.lt .tool-card__results-inline .results-panel > .form-hint:only-child::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.2px solid rgba(133, 82, 215, 0.2);
  border-top-color: var(--lt-brand-500);
  animation: lt-spin 0.7s linear infinite;
}
.lt .tool-card__results-inline .results-panel > .form-hint:only-child {
  margin: 0;
  border: 0;
  padding: 4px 0;
  background: none;
  animation: none;
}

/* Sticky needs no scroll container above it: main.css set overflow-x:hidden on html/body,
   which turned body into the scroller and made the top bar + sidebar scroll away. */
html,
body.lt {
  overflow-x: clip;
  overflow-y: visible;
  height: auto;
}

/* ---------- Tools batch 2: blocklist, DKIM, header analyzer, Arx Site Check ---------- */
html[data-theme="dark"] img[src*="arx-icon.svg"] { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.55)); }

.lt .lt-bar-split .lt-bar-split__small {
  flex: 0 1 220px;
  border-left: 1px solid var(--lt-line) !important;
}
.lt-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.lt-pill--pass { background: var(--lt-ok-soft); color: var(--lt-ok); }
.lt-pill--warn { background: var(--lt-warn-soft); color: var(--lt-warn); }
.lt-pill--bad { background: var(--lt-bad-soft); color: var(--lt-bad); }

.lt-bl { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lt-line); }
.lt-bl__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.lt-bl__head h3 { margin: 0; font-size: 16px; }
.lt-bl__head > span:not(.lt-chip) { color: var(--lt-muted); font-size: 13.5px; }
.lt-bl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.lt-bl__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
  font-size: 14px;
}
.lt-bl__item.is-listed { border-color: rgba(224, 69, 75, 0.4); background: var(--lt-bad-soft); }
.lt-bl__dot { width: 9px; height: 9px; border-radius: 50%; background: #22a55b; flex: 0 0 auto; }
.lt-bl__item.is-listed .lt-bl__dot { background: #e0454b; box-shadow: 0 0 0 4px rgba(224, 69, 75, 0.18); }
.lt-bl__name { flex: 1; min-width: 0; font-weight: 600; }
.lt-bl__name small { color: var(--lt-muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.lt-bl__ok { color: var(--lt-muted); font-size: 12.5px; }
.lt-bl__item a { font-size: 13px; font-weight: 600; white-space: nowrap; }

.lt-dkim { padding: 14px 0; border-bottom: 1px solid var(--lt-line); }
.lt-dkim:last-child { border-bottom: 0; }
.lt-dkim__head { display: flex; align-items: center; gap: 10px; }
.lt-dkim__head h3 { margin: 0; font-size: 16px; }

.lt-howto { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.lt-authrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.lt-authchip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
  border-left: 4px solid var(--lt-line-strong);
}
.lt-authchip span { font-size: 12px; font-weight: 700; color: var(--lt-muted); letter-spacing: 0.06em; }
.lt-authchip strong { font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; }
.lt-authchip--pass { border-left-color: #22a55b; }
.lt-authchip--pass strong { color: var(--lt-ok); }
.lt-authchip--warn { border-left-color: #e39b1b; }
.lt-authchip--bad { border-left-color: #e0454b; }
.lt-authchip--bad strong { color: var(--lt-bad); }
.lt-hops { list-style: none; margin: 10px 0 0; padding: 0; position: relative; }
.lt-hops::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--lt-line-strong); }
.lt-hop {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 10px 12px 10px 34px;
  border-radius: 12px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
}
.lt-hop::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lt-brand-500);
  box-shadow: 0 0 0 3px var(--lt-surface);
}
.lt-hop.is-slow::before { background: #e39b1b; }
.lt-hop__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.lt-hop__main span { color: var(--lt-muted); font-size: 13px; overflow-wrap: anywhere; }
.lt-hop__meta { display: flex; align-items: flex-start; gap: 6px; flex: 0 0 auto; }
.lt-hop__delay { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--lt-text); }
.lt-hop.is-slow .lt-hop__delay { color: var(--lt-warn); }

/* Arx */
.lt-arx__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--lt-surface-2);
  border: 1px solid var(--lt-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--lt-muted);
}
.lt-arx__logo { width: 22px; height: 28px; }
.lt-arx-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px dashed var(--lt-line-strong);
  background: var(--lt-surface);
}
.lt-arx-note > div {
  flex: 1 1 280px;
  min-width: 0;
}
.lt-arx-note h2 { margin: 0 0 4px; font-size: 16px; }
.lt-arx-note p { margin: 0; color: var(--lt-muted); font-size: 14px; max-width: 70ch; }
.lt-arx-note .lt-btn {
  flex: 0 1 auto;
  max-width: 100%;
  height: auto;
  min-height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  white-space: normal;
  text-align: center;
}
.lt-scan {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 22px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
}
.lt-scan__radar {
  position: relative;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, var(--lt-primary-soft) 0%, transparent 70%);
}
.lt-scan__radar::before,
.lt-scan__radar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--lt-brand-400);
  opacity: 0;
  animation: lt-ping 2s ease-out infinite;
}
.lt-scan__radar::after { animation-delay: 1s; }
.lt-scan__radar img { width: 40px; height: 50px; position: relative; }
@keyframes lt-ping {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}
.lt-scan__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lt-scan__steps li {
  position: relative;
  padding-left: 28px;
  color: var(--lt-muted);
  font-size: 14.5px;
  transition: color 0.2s;
}
.lt-scan__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--lt-line-strong);
}
.lt-scan__steps li.is-now { color: var(--lt-text); font-weight: 600; }
.lt-scan__steps li.is-now::before { border-color: rgba(133, 82, 215, 0.25); border-top-color: var(--lt-brand-500); animation: lt-spin 0.8s linear infinite; }
.lt-scan__steps li.is-done { color: var(--lt-text); }
.lt-scan__steps li.is-done::before { border-color: #22a55b; background: #22a55b; box-shadow: inset 0 0 0 3px var(--lt-surface); }
.lt-arxres { margin-top: 22px; }
.lt-arxres__banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 20px;
  color: #fff;
}
.lt-arxres__banner--ok { background: linear-gradient(135deg, #16a34a, #0f6b35); }
.lt-arxres__banner--warn { background: linear-gradient(135deg, #d98a0b, #9a5a04); }
.lt-arxres__banner--bad { background: linear-gradient(135deg, #e0454b, #8f1d22); }
.lt-arxres__banner h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); color: #fff; }
.lt-arxres__banner p { margin: 4px 0 0; opacity: 0.92; }
.lt-arxres__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85 !important; margin: 0 !important; }
.lt-arxres__meta { font-size: 13px; opacity: 0.8 !important; overflow-wrap: anywhere; }
.lt-arxres__shield {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
}
.lt-arxres__shield img { width: 38px; height: 48px; filter: none !important; }
.lt-arxres__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-top: 14px; }
.lt-arxsec {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
  border-top: 3px solid #22a55b;
}
.lt-arxsec--warn { border-top-color: #e39b1b; }
.lt-arxsec--bad { border-top-color: #e0454b; }
.lt-arxsec h3 { margin: 0 0 4px; font-size: 16px; }
.lt-arxsec .lt-checklist { margin: 8px 0 0; }
.lt-arxsec__fix { margin: 4px 0 0; font-size: 13px; color: var(--lt-primary-ink); }
@media (max-width: 720px) {
  .lt .lt-bar-split .lt-bar-split__small { flex: 1 1 100%; border-left: 0 !important; border-top: 1px solid var(--lt-line) !important; }
  .lt-authrow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lt-authchip { padding: 10px; }
  .lt-authchip strong { font-size: 15px; }
  .lt-hop { flex-direction: column; }
  .lt-arx-note { flex-direction: column; align-items: stretch; padding: 16px; }
  .lt-arx-note .lt-btn { width: 100%; }
  .lt-scan { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lt-arxres__banner { flex-direction: column; align-items: flex-start; }
  .lt-arxres__grid { grid-template-columns: 1fr; }
}
.lt .lt-arxres__banner,
.lt .lt-arxres__banner h2,
.lt .lt-arxres__banner p {
  color: #fff !important;
}
.lt .tool-page-inner > .tool-card--intro .lt-arx__brand {
  display: flex;
  width: fit-content;
  margin: 0 auto 12px;
}

/* .tool-card is height:100% for equal home-grid cards. On a tool page that
   percentage sizes the intro to the parent and drops the next sibling
   (the Arx note) on top of "More tools". Size the intro to its content. */
.lt .tool-page-inner > .tool-card {
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
}

/* PDF & image tools */
.lt-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 28px 16px;
  border-radius: 16px;
  border: 1.5px dashed var(--lt-line-strong);
  background: var(--lt-surface-2);
  color: var(--lt-text);
  text-align: center;
  cursor: pointer;
}
.lt-drop strong { font-size: 15px; }
.lt-drop span { color: var(--lt-muted); font-size: 13.5px; }
.lt-drop.is-over {
  border-color: var(--lt-brand-400);
  background: var(--lt-primary-soft);
}
.lt-drop input { display: none; }
.lt-pdf__files { display: grid; gap: 8px; margin-top: 12px; }
.lt-pdf__file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 8px 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
}
.lt-pdf__file b {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lt-pdf__file small { color: var(--lt-muted); font-size: 12px; flex: 0 0 auto; }
.lt-pdf__file .lt-btn { height: 32px; padding: 0 10px; font-size: 13px; }
.lt-pdf__move { display: flex; gap: 4px; }
.lt-pdf__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 16px;
}
.lt-pdf__opts label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(100%, 220px);
  flex: 1 1 220px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lt-muted);
}
.lt-pdf__opts input,
.lt-pdf__opts select,
.lt-pdf__opts textarea {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--lt-line-strong);
  background: var(--lt-surface);
  color: var(--lt-text);
  font: 500 15px/1 var(--lt-font);
}
.lt-pdf__opts label.is-wide { flex-basis: 100%; }
.lt-pdf__opts textarea {
  height: auto;
  min-height: 160px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.45;
}
.lt-pdf__opts input[type="color"] { padding: 6px; }
.lt-pdf__page.is-off { opacity: 0.45; }
.lt-pdf__script {
  margin-top: 14px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.45 ui-monospace, monospace;
}
.lt-pdf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.lt .lt-pdf__result {
  display: none;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--lt-line);
  border-radius: 16px;
  background: var(--lt-surface-2);
}
.lt .lt-pdf__result:has(#pdf-status:not(:empty)),
.lt .lt-pdf__result:has(#pdf-extra:not(:empty)) {
  display: grid;
  gap: 14px;
}
.lt .tool-page-inner .lt-pdf__status {
  display: block;
  margin: 0;
  min-height: 0;
  overflow: visible;
  -webkit-line-clamp: unset;
  color: var(--lt-text);
  font-size: 15px;
  line-height: 1.5;
}
.lt .tool-page-inner .lt-pdf__status:empty { display: none; }
.lt .lt-pdf__result:has(.lt-pdf__status.is-error) {
  border-color: color-mix(in srgb, var(--lt-bad) 28%, var(--lt-line));
  background: var(--lt-bad-soft);
}
.lt .tool-page-inner .lt-pdf__status.is-error { color: var(--lt-bad); font-weight: 600; }
.lt .lt-pdf__result .lt-pdf__pages,
.lt .lt-pdf__result .lt-pdf__view,
.lt .lt-pdf__result .lt-pdf__info,
.lt .lt-pdf__result .lt-pdf__script { margin-top: 0; }
.lt .tool-page-inner > .tool-card .tool-card__results-inline:not(:empty):not(:has(> div:empty)) {
  margin-top: 20px;
}
.lt-pdf__pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.lt-pdf__page {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--lt-line);
  background: var(--lt-surface);
}
.lt-pdf__page img,
.lt-pdf__view canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 8px;
}
.lt-pdf__page .lt-pdf__move { flex-wrap: wrap; }
.lt-pdf__page .lt-btn { height: 30px; padding: 0 8px; font-size: 12px; }
.lt-pdf__view { display: grid; gap: 12px; margin-top: 14px; }
.lt-pdf__info {
  display: grid;
  grid-template-columns: minmax(88px, auto) 1fr;
  gap: 8px 14px;
  margin-top: 14px;
}
.lt-pdf__info dt { margin: 0; color: var(--lt-muted); font-size: 13px; }
.lt-pdf__info dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .lt-pdf__file { flex-wrap: wrap; }
  .lt-pdf__file b { flex-basis: 100%; }
  .lt-pdf__actions .lt-btn { width: 100%; }
}

/* Legal pages */
.lt-legal { max-width: 860px; margin: 0 auto; }
.lt-legal__head { padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: radial-gradient(80% 140% at 100% 0%, rgba(162, 116, 221, 0.16) 0%, transparent 60%), var(--lt-surface); border: 1px solid var(--lt-line); }
.lt-legal__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lt-primary); }
.lt-legal__head h1 { margin: 4px 0 8px; font-size: clamp(28px, 4vw, 38px); }
.lt-legal__lead { margin: 0; font-size: 17px; color: var(--lt-muted); }
.lt-legal__meta { margin: 10px 0 0; font-size: 13px; color: var(--lt-muted); }
.lt-legal section { margin-top: 26px; }
.lt-legal h2 { font-size: 20px; margin: 0 0 8px; }
.lt-legal p, .lt-legal li { line-height: 1.65; }
.lt-legal__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 12px 0; }
.lt-legal__card { padding: 16px; border-radius: 14px; border: 1px solid var(--lt-line); background: var(--lt-surface); }
.lt-legal__card h3 { margin: 0 0 6px; font-size: 15px; }
.lt-legal__card p { margin: 0; font-size: 14px; color: var(--lt-muted); }

/* ---------- Image Compressor ---------- */
.lt-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; padding: 40px 20px; text-align: center; cursor: pointer;
  border: 2px dashed var(--lt-line-strong); border-radius: var(--lt-radius);
  background: var(--lt-surface-2); color: var(--lt-muted);
  transition: border-color .15s, background .15s;
}
.lt-drop strong { color: var(--lt-text); font-size: 16px; }
.lt-drop:hover, .lt-drop.is-over { border-color: var(--lt-primary); background: var(--lt-primary-soft); color: var(--lt-primary-ink); }
.lt-drop:focus-within { outline: 2px solid var(--lt-primary); outline-offset: 2px; }
.lt-ic { margin-top: 18px; display: grid; gap: 16px; }
.lt-ic__controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.lt-ic__quality { flex: 1 1 240px; margin: 0; }
.lt-ic__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--lt-muted); min-height: 22px; }
.lt-ic__stats b { color: var(--lt-text); }
.lt-ic__saved { color: var(--lt-ok); font-weight: 700; }
.lt-ic__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lt-compare {
  position: relative; overflow: hidden; border-radius: var(--lt-radius-sm);
  background: repeating-conic-gradient(var(--lt-surface-2) 0 25%, var(--lt-surface) 0 50%) 0 0 / 20px 20px;
  border: 1px solid var(--lt-line); line-height: 0; user-select: none;
}
.lt-compare img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.lt-compare__after { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 50%); }
.lt-compare__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.lt-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.lt-compare__tag {
  position: absolute; top: 10px; padding: 3px 9px; border-radius: 999px; line-height: 1.4;
  background: rgba(11, 10, 29, .65); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none;
}
.lt-compare__tag--left { left: 10px; }
.lt-compare__tag--right { right: 10px; }
.lt-compare__busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.35); }
.lt-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--lt-brand-200); border-top-color: var(--lt-primary); animation: lt-spin .8s linear infinite; }
@keyframes lt-spin { to { transform: rotate(360deg); } }
#ic-error { color: var(--lt-bad); margin: 12px 0 0; }
.lt-drop[hidden], .lt-ic[hidden], .lt-compare__busy[hidden] { display: none; }
.lt-seg button:disabled { opacity: .45; cursor: not-allowed; }
