:root {
  color-scheme: light;
  --tf-tool-navy: #071d32;
  --tf-tool-navy-2: #0b2947;
  --tf-tool-navy-3: #123b61;
  --tf-tool-emerald: #128064;
  --tf-tool-emerald-dark: #0e725a;
  --tf-tool-emerald-soft: #e7f5f0;
  --tf-tool-mint: #72dfbd;
  --tf-tool-ink: #142231;
  --tf-tool-text: #314251;
  --tf-tool-muted: #64747f;
  --tf-tool-line: #dbe5e1;
  --tf-tool-line-strong: #bdcbc6;
  --tf-tool-canvas: #f3f6f5;
  --tf-tool-surface: #ffffff;
  --tf-tool-warning: #9a6811;
  --tf-tool-danger: #b33d3d;
  --tf-tool-radius: 24px;
  --tf-tool-radius-sm: 14px;
  --tf-tool-shadow: 0 18px 54px rgb(7 29 50 / 9%);
  --tf-tool-focus: 0 0 0 4px rgb(18 128 100 / 14%);
  --primary: var(--tf-tool-emerald);
  --primary-2: #27a885;
  --ink: var(--tf-tool-ink);
  --muted: var(--tf-tool-muted);
  --line: var(--tf-tool-line);
  --panel-soft: var(--tf-tool-canvas);
}

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

html {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: clip;
  background: transparent;
  scroll-behavior: smooth;
}

html body[data-tf-tool-slug] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow-x: clip;
  overflow-wrap: anywhere;
  background: transparent;
  color: var(--tf-tool-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html body[data-tf-tool-slug]::before,
html body[data-tf-tool-slug]::after {
  content: none;
}

html body[data-tf-tool-slug] :is(.wrap, .main, .page, .tf-page) {
  width: 100%;
  max-width: 1240px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 30px);
}

html body[data-tf-tool-slug] :is(.main-grid, .grid, .layout, .fields, .two, .result-grid, .summary, .compare, .market, .kpis, .filters) {
  min-width: 0;
}

html body[data-tf-tool-slug] :is(
  .card,
  .panel,
  .form-card,
  .result-card,
  .table-card,
  .tax-card,
  .tf-card,
  .tf-result-card
) {
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--tf-tool-line);
  border-radius: var(--tf-tool-radius);
  background: var(--tf-tool-surface);
  box-shadow: var(--tf-tool-shadow);
}

html body[data-tf-tool-slug] :is(.card-head, .head, .tf-card-head) {
  min-height: 70px;
  border-bottom: 1px solid var(--tf-tool-line);
  background: linear-gradient(180deg, #fff, #fbfdfc);
}

html body[data-tf-tool-slug] :is(.card-title, .head, .section-title, .tf-card-title) {
  color: var(--tf-tool-navy);
  font-weight: 850;
  letter-spacing: -0.025em;
}

html body[data-tf-tool-slug] :is(.card-title, .section-title, .tf-card-title) {
  position: relative;
}

html body[data-tf-tool-slug] :is(.card-title, .section-title, .tf-card-title)::before {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--tf-tool-emerald);
  box-shadow: 0 0 0 5px rgb(18 128 100 / 9%);
  content: "";
  display: inline-block;
  vertical-align: 0.08em;
}

html body[data-tf-tool-slug] :is(h1, h2, h3, h4, strong, b) {
  color: var(--tf-tool-navy);
}

html body[data-tf-tool-slug] :is(h1, h2, h3, h4) {
  letter-spacing: -0.035em;
  line-height: 1.2;
}

html body[data-tf-tool-slug] :is(label, .field-label, .label-row label) {
  color: #304555;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.005em;
}

html body[data-tf-tool-slug] :is(.field, .tf-field) {
  min-width: 0;
}

html body[data-tf-tool-slug] :is(input, select, textarea, button) {
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
  border-radius: var(--tf-tool-radius-sm);
  font: inherit;
}

html body[data-tf-tool-slug] :is(input, select, textarea) {
  border: 1px solid #c8d5d0;
  background: #fff;
  color: var(--tf-tool-navy);
  font-weight: 650;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

html body[data-tf-tool-slug] :is(input, select, textarea):hover:not(:disabled) {
  border-color: #9eb5ad;
}

html body[data-tf-tool-slug] :is(input, select, textarea):focus {
  border-color: var(--tf-tool-emerald);
  box-shadow: var(--tf-tool-focus);
  outline: 0;
}

html body[data-tf-tool-slug] :is(input, select, textarea):disabled {
  border-style: dashed;
  background: #eef2f0;
  color: #66766f;
  opacity: 1;
}

html body[data-tf-tool-slug] :is(input[type="checkbox"], input[type="radio"]) {
  min-height: 1.1rem;
  accent-color: var(--tf-tool-emerald);
}

html body[data-tf-tool-slug] :is(.suffix, .hint, small) {
  color: var(--tf-tool-muted);
}

html body[data-tf-tool-slug] :is(
  button,
  .btn,
  .smallBtn,
  .small-btn,
  .mini-btn,
  .mini-action,
  .btn-soft,
  .btn-ghost,
  .ghost-btn,
  .tf-btn
) {
  cursor: pointer;
  font-weight: 820;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

html body[data-tf-tool-slug] :is(
  #calcBtn,
  #calculateBtn,
  button[type="submit"],
  .btn.primary,
  .primary-btn,
  .btn-primary,
  .tf-btn-primary,
  .tf-ral-save-button
) {
  border: 1px solid var(--tf-tool-emerald);
  background: linear-gradient(135deg, var(--tf-tool-emerald), #1d9877);
  color: #fff;
  box-shadow: 0 10px 24px rgb(18 128 100 / 19%);
}

html body[data-tf-tool-slug] :is(
  #calcBtn,
  #calculateBtn,
  button[type="submit"],
  .btn.primary,
  .primary-btn,
  .btn-primary,
  .tf-btn-primary,
  .tf-ral-save-button
):hover:not(:disabled) {
  border-color: var(--tf-tool-emerald-dark);
  background: linear-gradient(135deg, var(--tf-tool-emerald-dark), #198b6d);
  box-shadow: 0 13px 28px rgb(18 128 100 / 24%);
  transform: translateY(-1px);
}

html body[data-tf-tool-slug] :is(
  #resetBtn,
  #defaultsBtn,
  #sampleBtn,
  #scheduleBtn,
  #refreshBtn,
  #swapBtn,
  #printBtn,
  .btn.secondary,
  .btn-soft,
  .btn-ghost,
  .ghost-btn,
  .mini-btn,
  .mini-action,
  .smallBtn,
  .small-btn
) {
  border: 1px solid var(--tf-tool-line-strong);
  background: #fff;
  color: var(--tf-tool-navy-2);
  box-shadow: none;
}

html body[data-tf-tool-slug] :is(
  #resetBtn,
  #defaultsBtn,
  #sampleBtn,
  #scheduleBtn,
  #refreshBtn,
  #swapBtn,
  #printBtn,
  .btn.secondary,
  .btn-soft,
  .btn-ghost,
  .ghost-btn,
  .mini-btn,
  .mini-action,
  .smallBtn,
  .small-btn
):hover:not(:disabled) {
  border-color: var(--tf-tool-emerald);
  background: var(--tf-tool-emerald-soft);
  color: var(--tf-tool-emerald-dark);
}

html body[data-tf-tool-slug] :is(button, .btn):not(:disabled):active {
  transform: translateY(1px);
}

html body[data-tf-tool-slug] :is(button, .btn, input, select, textarea, a):focus-visible {
  outline: 3px solid rgb(18 128 100 / 25%);
  outline-offset: 3px;
}

html body[data-tf-tool-slug] :is(
  .result,
  .kpi,
  .metric,
  .mini,
  .mini-card,
  .tf-mini-card,
  .tf-side-kpi,
  .scenario
) {
  min-width: 0;
  border-color: var(--tf-tool-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbfa, #fff);
  box-shadow: none;
}

html body[data-tf-tool-slug] :is(
  .result-grid > :first-child,
  .results > :first-child,
  .summary > :first-child,
  .kpis > :first-child,
  .kpi.primary,
  .hero-kpi
) {
  border-color: var(--tf-tool-navy-2);
  background:
    radial-gradient(circle at 90% 0, rgb(114 223 189 / 20%), transparent 130px),
    linear-gradient(145deg, var(--tf-tool-navy), var(--tf-tool-navy-2));
  color: #fff;
}

html body[data-tf-tool-slug] :is(
  .result-grid > :first-child,
  .results > :first-child,
  .summary > :first-child,
  .kpis > :first-child,
  .kpi.primary,
  .hero-kpi
) :is(.label, .t, span, small) {
  color: #b6c9d2;
}

html body[data-tf-tool-slug] :is(
  .result-grid > :first-child,
  .results > :first-child,
  .summary > :first-child,
  .kpis > :first-child,
  .kpi.primary,
  .hero-kpi
) :is(.value, .v, strong, b) {
  color: #fff;
}

html body[data-tf-tool-slug] :is(.value, .v, .result-value, .amount) {
  color: var(--tf-tool-navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
}

html body[data-tf-tool-slug] :is(.badge, .chip, .pill, .status-chip, .badge-change) {
  border-color: #cce8df;
  background: var(--tf-tool-emerald-soft);
  color: var(--tf-tool-emerald-dark);
}

html body[data-tf-tool-slug] :is(.info, .detail, .helper, .message, .notice, .inline-note, .result-note, .status-box, .tf-alert, .tf-lead) {
  border-color: #cfe2dc;
  border-radius: 16px;
  background: #f2f8f6;
  color: #425952;
  line-height: 1.6;
}

html body[data-tf-tool-slug] :is(.table-wrap, .tf-table-wrap, .overflow-x-auto) {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

html body[data-tf-tool-slug] table {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--tf-tool-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

html body[data-tf-tool-slug] th {
  border-color: var(--tf-tool-line);
  background: var(--tf-tool-navy);
  color: #e9f1f3;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

html body[data-tf-tool-slug] td {
  border-color: var(--tf-tool-line);
  color: #354957;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

html body[data-tf-tool-slug] tbody tr:nth-child(even) td {
  background: #f8faf9;
}

html body[data-tf-tool-slug] tbody tr:hover td {
  background: var(--tf-tool-emerald-soft);
}

html body[data-tf-tool-slug] .tf-generated-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html body[data-tf-tool-slug] .tf-table-scroll-hint {
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--tf-tool-muted);
  font-size: 11px;
  font-weight: 700;
}

html body[data-tf-tool-slug] .tf-table-scroll-hint::before {
  color: var(--tf-tool-emerald);
  content: "↔";
  font-size: 14px;
}

/* Credit and limit calculators share the same two-panel vocabulary. */
html body[data-tf-tool-slug="kredi-hesaplama"] .grid,
html body[data-tf-tool-slug="kredi-faizi-hesaplama"] .grid,
html body[data-tf-tool-slug="faiz-maliyeti-taksitten-hesaplama"] .grid,
html body[data-tf-tool-slug="kredi-erken-kapama-ara-odeme-hesaplama"] .grid,
html body[data-tf-tool-slug="kredi-limit"] .grid {
  align-items: start;
  gap: 18px;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
}

html body[data-tf-tool-slug="kredi-hesaplama"] .grid > .card:first-child,
html body[data-tf-tool-slug="kredi-faizi-hesaplama"] .grid > .card:first-child,
html body[data-tf-tool-slug="faiz-maliyeti-taksitten-hesaplama"] .grid > .card:first-child,
html body[data-tf-tool-slug="kredi-erken-kapama-ara-odeme-hesaplama"] .grid > .card:first-child,
html body[data-tf-tool-slug="kredi-limit"] .grid > .card:first-child {
  position: sticky;
  top: 18px;
}

html body[data-tf-tool-slug="kredi-hesaplama"] .result-grid,
html body[data-tf-tool-slug="kredi-faizi-hesaplama"] .result-grid,
html body[data-tf-tool-slug="faiz-maliyeti-taksitten-hesaplama"] .result-grid,
html body[data-tf-tool-slug="kredi-erken-kapama-ara-odeme-hesaplama"] .result-grid,
html body[data-tf-tool-slug="kredi-limit"] .result-grid {
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html body[data-tf-tool-slug="kredi-hesaplama"] .result-grid > .result,
html body[data-tf-tool-slug="kredi-faizi-hesaplama"] .result-grid > .result,
html body[data-tf-tool-slug="faiz-maliyeti-taksitten-hesaplama"] .result-grid > .result,
html body[data-tf-tool-slug="kredi-erken-kapama-ara-odeme-hesaplama"] .result-grid > .result,
html body[data-tf-tool-slug="kredi-limit"] .result-grid > .result {
  min-height: 112px;
  padding: 17px;
}

html body[data-tf-tool-slug="kredi-hesaplama"] .result-grid > .result:not(:first-child) :is(.label, .value),
html body[data-tf-tool-slug="kredi-faizi-hesaplama"] .result-grid > .result:not(:first-child) :is(.label, .value),
html body[data-tf-tool-slug="faiz-maliyeti-taksitten-hesaplama"] .result-grid > .result:not(:first-child) :is(.label, .value),
html body[data-tf-tool-slug="kredi-erken-kapama-ara-odeme-hesaplama"] .result-grid > .result:not(:first-child) :is(.label, .value),
html body[data-tf-tool-slug="kredi-limit"] .result-grid > .result:not(:first-child) :is(.label, .value) {
  color: var(--tf-tool-navy);
}

html body[data-tf-tool-slug="kredi-hesaplama"] .result-grid > .result:not(:first-child) .label,
html body[data-tf-tool-slug="kredi-faizi-hesaplama"] .result-grid > .result:not(:first-child) .label,
html body[data-tf-tool-slug="faiz-maliyeti-taksitten-hesaplama"] .result-grid > .result:not(:first-child) .label,
html body[data-tf-tool-slug="kredi-erken-kapama-ara-odeme-hesaplama"] .result-grid > .result:not(:first-child) .label,
html body[data-tf-tool-slug="kredi-limit"] .result-grid > .result:not(:first-child) .label {
  color: var(--tf-tool-muted);
}

html body[data-tf-tool-slug="kredi-hesaplama"] .result-grid .value,
html body[data-tf-tool-slug="kredi-faizi-hesaplama"] .result-grid .value,
html body[data-tf-tool-slug="faiz-maliyeti-taksitten-hesaplama"] .result-grid .value,
html body[data-tf-tool-slug="kredi-erken-kapama-ara-odeme-hesaplama"] .result-grid .value,
html body[data-tf-tool-slug="kredi-limit"] .result-grid .value {
  font-size: clamp(20px, 2.25vw, 28px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

html body[data-tf-tool-slug] :is(.card-body, .body, .section) {
  min-width: 0;
}

html body[data-tf-tool-slug="kredi-hesaplama"] :is(.card-head, .card-body),
html body[data-tf-tool-slug="kredi-faizi-hesaplama"] :is(.card-head, .card-body),
html body[data-tf-tool-slug="faiz-maliyeti-taksitten-hesaplama"] :is(.card-head, .card-body),
html body[data-tf-tool-slug="kredi-erken-kapama-ara-odeme-hesaplama"] :is(.card-head, .card-body),
html body[data-tf-tool-slug="kredi-limit"] :is(.card-head, .card-body) {
  padding: clamp(18px, 2.2vw, 26px);
}

/* Deposit calculator: a compact input rail and a spacious result board. */
html body[data-tf-tool-slug="mevduat-hesaplama"] .layout {
  align-items: start;
  gap: 18px;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
}

html body[data-tf-tool-slug="mevduat-hesaplama"] .layout > .card {
  position: sticky;
  top: 18px;
}

html body[data-tf-tool-slug="mevduat-hesaplama"] .head {
  align-items: center;
  display: flex;
  padding: 18px 22px;
}

html body[data-tf-tool-slug="mevduat-hesaplama"] .body {
  padding: 22px;
}

html body[data-tf-tool-slug="mevduat-hesaplama"] .results {
  gap: 12px;
}

html body[data-tf-tool-slug="mevduat-hesaplama"] .kpi {
  min-height: 112px;
  padding: 18px;
}

/* Savings-finance and comparison tools retain their math DOM, with a clearer shell. */
html body[data-tf-tool-slug="tasarruf-finansman-hesaplama"] .layout,
html body[data-tf-tool-slug="cekilisli-kredi-karsilastir"] .layout {
  align-items: start;
  gap: 18px;
  grid-template-columns: minmax(350px, 0.8fr) minmax(0, 1.2fr);
}

html body[data-tf-tool-slug="tasarruf-finansman-hesaplama"] .layout > .card:first-child,
html body[data-tf-tool-slug="cekilisli-kredi-karsilastir"] .layout > .card:first-child {
  position: sticky;
  top: 18px;
}

html body[data-tf-tool-slug="tasarruf-finansman-hesaplama"] .card-title,
html body[data-tf-tool-slug="cekilisli-kredi-karsilastir"] .card-title {
  border-bottom-color: var(--tf-tool-line);
  background: linear-gradient(180deg, #fff, #fbfdfc);
}

html body[data-tf-tool-slug="tasarruf-finansman-hesaplama"] :is(.subhead, .toolbar),
html body[data-tf-tool-slug="cekilisli-kredi-karsilastir"] :is(.subhead, .toolbar) {
  border-color: var(--tf-tool-line);
  background: var(--tf-tool-canvas);
  color: var(--tf-tool-navy);
}

html body[data-tf-tool-slug="teklifleri-karsilastir"] .grid {
  gap: 16px;
}

html body[data-tf-tool-slug="teklifleri-karsilastir"] :is(#cardA, #cardB) {
  overflow: hidden;
}

html body[data-tf-tool-slug="teklifleri-karsilastir"] .summary {
  gap: 12px;
  margin-block: 18px;
}

html body[data-tf-tool-slug="teklifleri-karsilastir"] .results {
  gap: 16px;
}

/* BES has its own rich chart/result vocabulary. */
html body[data-tf-tool-slug="bes-hesaplama"] .main-grid {
  align-items: start;
  gap: 18px;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
}

html body[data-tf-tool-slug="bes-hesaplama"] .form-card {
  position: sticky;
  top: 18px;
}

html body[data-tf-tool-slug="bes-hesaplama"] :is(.sub-panel, .optional-panel, .switch-row, .chart-box) {
  border-color: var(--tf-tool-line);
  background: var(--tf-tool-canvas);
}

html body[data-tf-tool-slug="bes-hesaplama"] .primary-btn {
  width: 100%;
}

html body[data-tf-tool-slug="bes-hesaplama"] .gauge-fill {
  stroke: var(--tf-tool-emerald);
}

html body[data-tf-tool-slug="bes-hesaplama"] .mini-card {
  padding: 16px;
}

/* Partial BES tool already has semantic tf-* hooks. */
html body[data-tf-tool-slug="bes-kismi-odeme-hesaplama"] .tf-hero {
  padding: 0 0 18px;
  background: transparent;
  color: var(--tf-tool-ink);
}

html body[data-tf-tool-slug="bes-kismi-odeme-hesaplama"] .tf-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

html body[data-tf-tool-slug="bes-kismi-odeme-hesaplama"] :is(.tf-calculator-grid, .tf-calculator-grid > *, .tf-data-card, .tf-table-wrap) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html body[data-tf-tool-slug="bes-kismi-odeme-hesaplama"] .tf-calculator-grid {
  align-items: start;
}

html body[data-tf-tool-slug="bes-kismi-odeme-hesaplama"] .tf-calculator-grid > :first-child {
  position: sticky;
  top: 18px;
}

/* Inflation's former oversized internal hero becomes a concise data badge. */
html body[data-tf-tool-slug="enflasyon-hesaplama"] .hero {
  min-height: 0;
  margin: 0;
  padding: 0 0 16px;
  overflow: visible;
  background: transparent;
  color: var(--tf-tool-ink);
}

html body[data-tf-tool-slug="enflasyon-hesaplama"] .hero::before,
html body[data-tf-tool-slug="enflasyon-hesaplama"] .hero::after {
  content: none;
}

html body[data-tf-tool-slug="enflasyon-hesaplama"] .hero-inner {
  display: block;
}

html body[data-tf-tool-slug="enflasyon-hesaplama"] .hero-card {
  width: 100%;
  max-width: none;
  min-height: 0;
  border: 1px solid #cfe4dc;
  border-radius: 16px;
  background: var(--tf-tool-emerald-soft);
  color: var(--tf-tool-navy);
  box-shadow: none;
}

html body[data-tf-tool-slug="enflasyon-hesaplama"] .hero-card .small {
  color: var(--tf-tool-muted);
}

html body[data-tf-tool-slug="enflasyon-hesaplama"] .grid {
  align-items: start;
  gap: 18px;
}

html body[data-tf-tool-slug="enflasyon-hesaplama"] .grid > .card:first-child {
  position: sticky;
  top: 18px;
}

html body[data-tf-tool-slug="enflasyon-hesaplama"] .result-top {
  border-color: #cfe5dd;
  background:
    radial-gradient(circle at 90% 0, rgb(114 223 189 / 21%), transparent 130px),
    linear-gradient(145deg, var(--tf-tool-navy), var(--tf-tool-navy-2));
}

html body[data-tf-tool-slug="enflasyon-hesaplama"] .result-top :is(.result-title, .result-sub) {
  color: #b7cad3;
}

html body[data-tf-tool-slug="enflasyon-hesaplama"] .result-top .result-value {
  color: #fff;
}

/* Kasko keeps its large local dataset; the visible shell is normalized. */
html body[data-tf-tool-slug="kasko-deger-analizi"] .main {
  margin: 0 auto;
}

html body[data-tf-tool-slug="kasko-deger-analizi"] :is(.panel, .card, .mini, .typeFilters) {
  border-color: var(--tf-tool-line);
  background: #fff;
}

html body[data-tf-tool-slug="kasko-deger-analizi"] :is(.badge, .toggleRow) {
  border-color: #cfe5dd;
  background: var(--tf-tool-emerald-soft);
  color: var(--tf-tool-emerald-dark);
}

html body[data-tf-tool-slug="kasko-deger-analizi"] :is(.checkchip, .smallBtn) {
  border-color: var(--tf-tool-line);
}

html body[data-tf-tool-slug="kasko-deger-analizi"] :is(.checkchip input, .toggleRow input) {
  accent-color: var(--tf-tool-emerald);
}

@media (max-width: 980px) {
  html body[data-tf-tool-slug="kredi-hesaplama"] .grid,
  html body[data-tf-tool-slug="kredi-faizi-hesaplama"] .grid,
  html body[data-tf-tool-slug="faiz-maliyeti-taksitten-hesaplama"] .grid,
  html body[data-tf-tool-slug="kredi-erken-kapama-ara-odeme-hesaplama"] .grid,
  html body[data-tf-tool-slug="kredi-limit"] .grid,
  html body[data-tf-tool-slug="mevduat-hesaplama"] .layout,
  html body[data-tf-tool-slug="tasarruf-finansman-hesaplama"] .layout,
  html body[data-tf-tool-slug="cekilisli-kredi-karsilastir"] .layout,
  html body[data-tf-tool-slug="bes-hesaplama"] .main-grid,
  html body[data-tf-tool-slug="bes-kismi-odeme-hesaplama"] .tf-calculator-grid,
  html body[data-tf-tool-slug="enflasyon-hesaplama"] .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html body[data-tf-tool-slug] :is(
    .grid > .card:first-child,
    .layout > .card:first-child,
    .form-card,
    .tf-calculator-grid > :first-child
  ) {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  html body[data-tf-tool-slug] {
    font-size: 15px;
  }

  html body[data-tf-tool-slug] :is(.wrap, .main, .page, .tf-page) {
    padding: 12px;
  }

  html body[data-tf-tool-slug] :is(.card, .panel, .form-card, .result-card, .table-card, .tax-card, .tf-card, .tf-result-card) {
    border-radius: 19px;
  }

  html body[data-tf-tool-slug] :is(input, select, textarea, button) {
    min-height: 50px;
    font-size: 16px;
  }

  html body[data-tf-tool-slug] :is(.card-head, .head, .tf-card-head) {
    min-height: 62px;
  }

  html body[data-tf-tool-slug] .tf-table-scroll-hint {
    display: flex;
  }

  html body[data-tf-tool-slug] table {
    min-width: 680px;
  }

  html body[data-tf-tool-slug="mevduat-hesaplama"] .tax-card table,
  html body[data-tf-tool-slug="kasko-deger-analizi"] .miniTable {
    min-width: 560px;
  }
}

@media (min-width: 761px) {
  html body[data-tf-tool-slug] .tf-table-scroll-hint {
    display: none;
  }
}

@media (max-width: 560px) {
  html body[data-tf-tool-slug] :is(
    .grid,
    .layout,
    .main-grid,
    .fields,
    .two,
    .two-col,
    .result-grid,
    .summary,
    .summary-grid,
    .compare,
    .results,
    .market,
    .kpis,
    .filters,
    .metrics,
    .tf-hero-grid,
    .tf-mini-grid,
    .checkgrid,
    .type-panel.active,
    .form-sentence .row
  ) {
    grid-template-columns: minmax(0, 1fr);
  }

  html body[data-tf-tool-slug] :is(.card-body, .body, .section) {
    padding: 16px;
  }

  html body[data-tf-tool-slug="kasko-deger-analizi"] .checkgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

@media print {
  html body[data-tf-tool-slug] {
    background: #fff;
  }

  html body[data-tf-tool-slug] :is(.wrap, .main, .page, .tf-page) {
    max-width: none;
    padding: 0;
  }

  html body[data-tf-tool-slug] :is(.card, .panel, .form-card, .result-card, .table-card, .tax-card, .tf-card) {
    break-inside: avoid;
    box-shadow: none;
  }

  html body[data-tf-tool-slug] :is(button, .btn, .tf-btn) {
    display: none;
  }
}
