:root {
  --bg-a: #f8fbff;
  --bg-b: #f2f6fb;
  --ink: #10243d;
  --muted: #556b84;
  --line: #d8e6f4;
  --panel: #ffffff;
  --panel-soft: #f7fbff;
  --brand-a: #0f766e;
  --brand-b: #0e7490;
  --ring: rgba(14, 116, 144, 0.2);
  --textinker-origin-mark: "txk-local-cleanup-suite-20260420";
  --ui-font: "Segoe UI", "Segoe UI Variable", "Aptos", "Noto Sans Hebrew", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root {
    font-size: 90%;
  }
}

.app-body {
  font-family: var(--ui-font);
  background: linear-gradient(180deg, var(--bg-a), var(--bg-b));
  color: var(--ink);
}

.app-body .text-xs {
  font-size: 0.875rem;
  line-height: 1.45;
}

.app-body .text-sm {
  font-size: 0.96rem;
  line-height: 1.5;
}

.app-body .text-base {
  font-size: 1.03rem;
  line-height: 1.5;
}

.app-body .soft-text,
.app-body .trust-copy {
  line-height: 1.55;
}

.app-body .tool-link,
.app-body button {
  font-size: 0.96rem;
}

.app-body .subtool-link {
  font-size: 0.9rem;
}

.app-body #sourceText,
.app-body #outputText {
  font-size: 1rem;
  line-height: 1.6;
}

.app-body .text-gray-500 {
  color: #5f7085;
}

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

code {
  font-family: inherit;
  font-size: 0.93em;
  font-weight: 600;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.ad-shell {
  margin-bottom: 1rem;
}

.ad-slot {
  width: 100%;
  min-height: 64px;
  border: 1px dashed #c7d8ea;
  background: #ffffff;
  color: #6b7f97;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .ad-slot {
    min-height: 90px;
  }
}

.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 240;
  border: 1px solid #cfe1f0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 48px -28px rgba(16, 36, 61, 0.32);
  backdrop-filter: blur(10px);
}

.consent-banner__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.05rem;
}

.consent-banner__eyebrow {
  margin: 0;
  color: #0e7490;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.consent-banner__text,
.consent-banner__note {
  margin: 0.5rem 0 0;
  color: #40566f;
  font-size: 0.92rem;
  line-height: 1.55;
}

.consent-banner__note {
  color: #5d7187;
  font-size: 0.84rem;
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.72rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.consent-btn-primary {
  background: linear-gradient(135deg, #0e7490, #0f766e);
  color: #ffffff;
  box-shadow: 0 10px 20px -16px rgba(14, 116, 144, 0.8);
}

.consent-btn-primary:hover {
  background: linear-gradient(135deg, #0c6a84, #0d6a63);
}

.consent-btn-secondary {
  border-color: #cbdceb;
  background: #f7fbff;
  color: #17314d;
}

.consent-btn-secondary:hover {
  border-color: #b6cce0;
  background: #eef7ff;
}

.consent-btn-link {
  border-color: #d8e6f4;
  background: #ffffff;
  color: #0f766e;
}

.consent-btn-link:hover {
  border-color: #bfd4e6;
  background: #f9fcff;
}

@media (min-width: 768px) {
  .consent-banner {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .consent-banner__body {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.15rem;
  }

  .consent-banner__copy {
    max-width: 48rem;
  }

  .consent-banner__actions {
    justify-content: flex-end;
    align-self: center;
  }
}

.hero {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 1.35rem 0 1.15rem;
}

.tool-hero {
  padding-bottom: 0.75rem;
}

.legal-shell {
  max-width: 52rem;
}

.legal-page {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(16, 36, 61, 0.08);
}

.legal-page h2 {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
}

.legal-page h2:first-child {
  margin-top: 0;
}

.legal-page h3 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.35rem;
}

.legal-page p,
.legal-page li {
  color: #40566f;
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-page p {
  margin-top: 0.8rem;
}

.legal-page ul {
  list-style: disc;
  margin-top: 0.85rem;
  padding-left: 1.35rem;
}

.legal-page li + li {
  margin-top: 0.45rem;
}

.legal-page a {
  color: #0f766e;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  background: #f7fbff;
  border: 1px solid #d8e6f4;
  border-radius: 8px;
  color: #40566f;
}

.tool-hero-subtitle {
  max-width: 68rem;
  margin-top: 2.15rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #465c74;
}

.tool-hero-subtitle + .tool-hero-subtitle {
  margin-top: 0.35rem;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2563eb, #0ea5b7);
  display: grid;
  place-items: center;
  box-shadow:
    0 8px 20px -12px rgba(37, 99, 235, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.logo-mark svg {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.logo-wordmark {
  margin-top: 0.2rem;
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #10243d;
}

.logo-wordmark-chat {
  font-weight: 700;
  color: #0e7490;
}

.logo-wordmark-sanitizer {
  font-weight: 900;
}

.logo-wordmark-domain {
  margin-left: 0.18em;
  font-size: 0.48em;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #10243d;
  vertical-align: baseline;
}

.logo-wordmark-home-brand {
  font-weight: 700;
  color: #0e7490;
}

.logo-wordmark-home-domain {
  margin-left: 0.12em;
  font-weight: 900;
  color: #10243d;
}

.tool-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
  margin-top: 1.1rem;
  margin-bottom: 2.9rem;
}

.tool-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  margin-right: 0.2rem;
  color: #10243d;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.tool-nav .tool-brand-link + .tool-link {
  margin-left: auto;
}

.tool-brand-mini-mark {
  width: 1.22rem;
  height: 1.22rem;
  flex: 0 0 auto;
  border-radius: 0.34rem;
  background: linear-gradient(145deg, #2563eb, #0ea5b7);
  display: grid;
  place-items: center;
}

.tool-brand-mini-mark svg {
  width: 0.78rem;
  height: 0.78rem;
  overflow: visible;
}

.tool-brand-word {
  font-size: 1.14rem;
  letter-spacing: -0.03em;
}

.tool-brand-word-main {
  color: #0e7490;
}

.tool-brand-word-domain {
  color: #10243d;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe8f4;
  background: rgba(255, 255, 255, 0.68);
  color: #4f6882;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.42rem 0.74rem;
  border-radius: 0.8rem;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

.tool-link:hover {
  background: #ffffff;
  border-color: #c6d9eb;
  box-shadow: 0 10px 18px -18px rgba(14, 36, 65, 0.28);
  color: #17314d;
}

.tool-link:focus-visible {
  outline: 3px solid rgba(14, 116, 144, 0.18);
  outline-offset: 3px;
}

.tool-link-active {
  color: #0f766e;
  background: #f2fbfd;
  border-color: #b9ddd8;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.tool-nav-group {
  position: relative;
}

.tool-nav-trigger {
  cursor: pointer;
}

.tool-nav-group.nav-open .tool-nav-trigger {
  color: #17314d;
}

.tool-subnav {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid #d6e5f3;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px -28px rgba(14, 36, 65, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  z-index: 50;
}

.tool-nav-group.nav-open .tool-subnav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.tool-subnav-link {
  display: block;
  border-radius: 0.95rem;
  padding: 0.8rem 0.95rem;
  color: #17314d;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

.tool-subnav-link:hover {
  background: #eef6fc;
}

.tool-subnav-link:focus-visible {
  outline: 3px solid rgba(14, 116, 144, 0.16);
  outline-offset: 3px;
}

.tool-subnav-link-active {
  background: #eef6fc;
  color: #0f766e;
}

@media (max-width: 640px) {
  .tool-nav .tool-brand-link + .tool-link {
    margin-left: 0;
  }
}

.sensitive-extra-options[open] summary {
  display: none;
}

.subtool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.subtool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.8rem;
  border: 1px solid #dce8f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #5a7188;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.subtool-link:hover {
  border-color: #bfd8ea;
  background: #f4fbfd;
  color: #17314d;
}

.subtool-link:focus-visible {
  outline: 3px solid rgba(14, 116, 144, 0.16);
  outline-offset: 3px;
}

.subtool-link-active {
  border-color: #7fd0c8;
  background: #eefaf9;
  color: #0f766e;
}

.panel,
.options-shell {
  border: 1px solid #e1ecf6 !important;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px -28px rgba(14, 36, 65, 0.24);
}

.panel {
  padding: 1rem;
}

.options-shell {
  padding: 1rem;
}

.panel .font-semibold,
.options-shell .font-semibold,
.copy-mode-card .font-semibold,
.trust-card .font-semibold {
  font-weight: 600;
}

.option-item .font-medium {
  font-weight: 550;
}

.editor-surface {
  border-color: #c8d9eb !important;
  background: var(--panel);
  box-shadow: inset 0 1px 2px rgba(16, 36, 61, 0.05);
}

.editor-surface-readonly {
  background: var(--panel-soft);
}

.editor-surface:focus {
  border-color: var(--brand-b) !important;
  box-shadow:
    inset 0 1px 2px rgba(16, 36, 61, 0.05),
    0 0 0 3px var(--ring);
}

.option-item {
  border-radius: 0.75rem;
  padding: 0.34rem 0.45rem;
  transition: background-color 150ms ease;
}

.option-item:hover {
  background: #f3f8ff;
}

.option-item:focus-within {
  background: #f3f8ff;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}

.advanced-shell {
  background: #f7fbff;
  border-color: #dce8f4 !important;
}

.advanced-shell > summary {
  border-radius: 0.75rem;
  margin: -0.25rem;
  padding: 0.25rem;
  transition:
    background-color 120ms ease-out,
    color 120ms ease-out,
    transform 120ms ease-out;
}

.advanced-shell > summary:hover {
  background: #eef6fc;
  transform: translateY(-1px);
}

.advanced-shell > summary:focus-visible {
  background: #eef6fc;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.16);
}

.details-chevron-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid #d8e5f2;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

details[open] > summary .details-chevron-box {
  transform: rotate(180deg);
}

.advanced-shell[open] > summary:hover {
  transform: none;
}

.sensitive-extra-options > summary:focus-visible {
  border-radius: 0.4rem;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.16);
}

.sensitive-details-shell .sensitive-group > p:first-child {
  letter-spacing: 0.08em;
}

.sensitive-details-shell .option-item {
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
}

.sensitive-details-shell .option-item .text-xs {
  line-height: 1.35;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand-a);
}

.action-btn {
  transform: translateY(0) scale(1);
  transition:
    filter 80ms ease-out,
    border-color 80ms ease-out,
    background-color 80ms ease-out,
    box-shadow 80ms ease-out,
    transform 80ms ease-out;
}

.copy-btn {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b)) !important;
  box-shadow: 0 10px 20px -14px rgba(14, 116, 144, 0.8);
}

.copy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.action-btn:active,
.action-btn.action-btn-pressed {
  transform: translateY(1px) scale(0.98);
}

.copy-btn:active,
.copy-btn.action-btn-pressed {
  box-shadow: 0 6px 14px -12px rgba(14, 116, 144, 0.9);
  filter: brightness(0.98);
}

.secondary-action-btn:active,
.secondary-action-btn.action-btn-pressed {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 6px 14px -12px rgba(37, 99, 235, 0.35);
  filter: brightness(0.99);
}

.copy-mode-card {
  border: 1px solid #dbe8f4;
  background: #fbfdff;
  border-radius: 1rem;
  padding: 0.72rem;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.copy-mode-card[data-active="true"] {
  border-color: #0e7490;
  background: #f2fbfd;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}

.copy-mode-card:focus-within {
  border-color: #0e7490;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}

.status-chip {
  border-radius: 999px;
  background: #eef5ff;
  padding: 0.3rem 0.6rem;
  transition:
    background-color 120ms ease-out,
    box-shadow 120ms ease-out;
}

.status-chip.status-chip-pulse {
  background: #e0f2fe;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}

.soft-text {
  color: var(--muted);
}

.trust-copy {
  color: #334a63;
  line-height: 1.7;
}

.trust-card {
  border: 1px solid #deebf6;
  background: #fbfdff;
  border-radius: 1rem;
  padding: 0.95rem;
}

.site-footer {
  border-top: 1px solid #d9e7f4;
  padding-top: 0.9rem;
}

.footer-link {
  color: #395879;
  font-weight: 600;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.animate-rise {
  animation: rise 420ms ease both;
}

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

@media (max-width: 767px) {
  .hero {
    padding: 1rem 0 0.9rem;
  }
}

#sourceText,
#outputText {
  direction: auto;
}

#sourceText ol,
#sourceText ul,
#outputText ol,
#outputText ul {
  margin: 0.25rem 0;
  padding-inline-start: 1.5rem;
}


#sourceText ol > li,
#outputText ol > li {
  display: list-item !important;
  list-style-type: decimal !important;
  margin: 0.1rem 0;
}

#sourceText ul > li,
#outputText ul > li {
  display: list-item !important;
  list-style-type: disc !important;
  margin: 0.1rem 0;
}

body[data-tool="ai-chat"] #sourceText ul,
body[data-tool="ai-chat"] #sourceText ol,
body[data-tool="ai-chat"] #outputText ul,
body[data-tool="ai-chat"] #outputText ol,
body[data-tool="ai-chat"] #outputText li {
  white-space: normal;
}

body[data-tool="ai-chat"] #sourceText li {
  white-space: normal;
}

body[data-tool="ai-chat"] #outputText[data-normalize-list-flow="false"] li {
  white-space: normal;
}

body[data-tool="ai-chat"] #sourceText li pre,
body[data-tool="ai-chat"] #outputText li pre {
  white-space: pre-wrap;
}

body[data-tool="ai-chat"] #sourceText p,
body[data-tool="ai-chat"] #sourceText div,
body[data-tool="ai-chat"] #sourceText blockquote,
body[data-tool="ai-chat"] #sourceText h1,
body[data-tool="ai-chat"] #sourceText h2,
body[data-tool="ai-chat"] #sourceText h3,
body[data-tool="ai-chat"] #sourceText h4,
body[data-tool="ai-chat"] #sourceText h5,
body[data-tool="ai-chat"] #sourceText h6,
body[data-tool="ai-chat"] #outputText p,
body[data-tool="ai-chat"] #outputText div,
body[data-tool="ai-chat"] #outputText blockquote,
body[data-tool="ai-chat"] #outputText h1,
body[data-tool="ai-chat"] #outputText h2,
body[data-tool="ai-chat"] #outputText h3,
body[data-tool="ai-chat"] #outputText h4,
body[data-tool="ai-chat"] #outputText h5,
body[data-tool="ai-chat"] #outputText h6 {
  margin-block: 0 !important;
  white-space: normal;
}

body[data-tool="ai-chat"] #sourceText table,
body[data-tool="ai-chat"] #outputText table {
  margin-block: 0 !important;
  white-space: normal;
}

body[data-tool="ai-chat"] #sourceText h1,
body[data-tool="ai-chat"] #outputText h1 {
  font-size: 1.35em;
  line-height: 1.35;
}

body[data-tool="ai-chat"] #sourceText h2,
body[data-tool="ai-chat"] #outputText h2 {
  font-size: 1.22em;
  line-height: 1.35;
}

body[data-tool="ai-chat"] #sourceText h3,
body[data-tool="ai-chat"] #sourceText h4,
body[data-tool="ai-chat"] #sourceText h5,
body[data-tool="ai-chat"] #sourceText h6,
body[data-tool="ai-chat"] #outputText h3,
body[data-tool="ai-chat"] #outputText h4,
body[data-tool="ai-chat"] #outputText h5,
body[data-tool="ai-chat"] #outputText h6 {
  font-size: 1.08em;
  line-height: 1.35;
}

body[data-tool="ai-chat"] #outputText[data-normalize-list-flow="true"] li > div,
body[data-tool="ai-chat"] #outputText[data-normalize-list-flow="true"] li > p {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

body[data-tool="ai-chat"] #outputText[data-normalize-list-flow="true"] ul,
body[data-tool="ai-chat"] #outputText[data-normalize-list-flow="true"] ol,
body[data-tool="ai-chat"] #outputText[data-normalize-list-flow="true"] li,
body[data-tool="ai-chat"] #outputText[data-normalize-list-flow="true"] li * {
  white-space: normal !important;
}

body[data-tool="ai-chat"] #outputText * {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: inherit !important;
  border-color: inherit !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body[data-tool="ai-chat"] #outputText pre {
  background: #f6f8fb !important;
  background-color: #f6f8fb !important;
  color: inherit !important;
  border: 1px solid #d8e6f4 !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem !important;
  white-space: pre-wrap !important;
}

body[data-tool="ai-chat"] #outputText code,
body[data-tool="ai-chat"] #outputText kbd,
body[data-tool="ai-chat"] #outputText samp {
  background: #eef5ff !important;
  background-color: #eef5ff !important;
  color: inherit !important;
  border-radius: 0.5rem !important;
  padding: 0.1rem 0.35rem !important;
}
