/* ==========================================================================
   Araç Kutusu — ortak katman (tools.fatihbas.com)
   Tüm araçlar renklerini, yazı tiplerini ve üst menüyü buradan alır.

   Yerleşim: üstte ince, yapışkan bir araç şeridi; altında her aracın kendi
   çalışma alanı. Yeni araçlar "tezgâh" düzeni kullanır: solda ayarlar,
   sağda çıktı.
   ========================================================================== */

/* ---------- Yazı tipleri (kendi sunucumuzdan; CSP font-src 'self') ---------- */
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"), url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url("fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Palet ----------
   Kobalt mürekkep + mavi eğilimli gri. Açık tema çıplak :root'ta;
   koyu tema hem sistem tercihiyle hem de data-theme="dark" ile gelir. */
:root {
  --tb-bg: #f3f5f8;
  --tb-surface: #ffffff;
  --tb-surface-2: #f7f8fb;
  --tb-surface-3: #eef1f6;
  --tb-border: #dfe3ea;
  --tb-border-strong: #c7cedb;
  --tb-text: #131824;
  --tb-text-soft: #3b4456;
  --tb-muted: #5f697c;
  --tb-accent: #2546b5;
  --tb-accent-strong: #1b3793;
  --tb-accent-soft: #e8edfb;
  --tb-btn: #2546b5;
  --tb-btn-hover: #1b3793;
  --tb-on-btn: #ffffff;
  --tb-danger: #bd3329;
  --tb-danger-soft: #fcecea;
  --tb-warn: #925500;
  --tb-warn-soft: #fdf2df;
  --tb-ok: #12714a;
  --tb-ok-soft: #e5f5ec;
  --tb-info-soft: #edf1fb;
  --tb-shadow: 0 1px 2px rgba(19, 24, 36, .04), 0 6px 18px rgba(19, 24, 36, .05);
  --tb-checker-a: #ffffff;
  --tb-checker-b: #eceff4;
  --tb-qr-shadow: drop-shadow(0 6px 18px rgba(19, 24, 36, .12));
  --tb-focus: 0 0 0 3px color-mix(in srgb, var(--tb-accent) 35%, transparent);

  --tb-sans: "Archivo Variable", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tb-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --tb-narrow: 82%;

  --tb-nav-h: 56px;
  --tb-radius: 12px;
  --tb-radius-sm: 8px;
  --tb-max: 1180px;
  --tb-gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --tb-gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tb-bg: #0e1118;
    --tb-surface: #151a24;
    --tb-surface-2: #1a2030;
    --tb-surface-3: #20283a;
    --tb-border: #262e40;
    --tb-border-strong: #343e55;
    --tb-text: #e6e9f1;
    --tb-text-soft: #bcc3d3;
    --tb-muted: #8f98ad;
    --tb-accent: #8aa6ff;
    --tb-accent-strong: #a8bdff;
    --tb-accent-soft: rgba(138, 166, 255, .13);
    --tb-btn: #3c62de;
    --tb-btn-hover: #5075ea;
    --tb-on-btn: #ffffff;
    --tb-danger: #ff8a7b;
    --tb-danger-soft: rgba(255, 138, 123, .12);
    --tb-warn: #f0b64e;
    --tb-warn-soft: rgba(240, 182, 78, .12);
    --tb-ok: #52c993;
    --tb-ok-soft: rgba(82, 201, 147, .12);
    --tb-info-soft: #141d33;
    --tb-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .2);
    --tb-checker-a: #1b2131;
    --tb-checker-b: #161b28;
    --tb-qr-shadow: drop-shadow(0 10px 28px rgba(0, 0, 0, .45));
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --tb-bg: #0e1118;
  --tb-surface: #151a24;
  --tb-surface-2: #1a2030;
  --tb-surface-3: #20283a;
  --tb-border: #262e40;
  --tb-border-strong: #343e55;
  --tb-text: #e6e9f1;
  --tb-text-soft: #bcc3d3;
  --tb-muted: #8f98ad;
  --tb-accent: #8aa6ff;
  --tb-accent-strong: #a8bdff;
  --tb-accent-soft: rgba(138, 166, 255, .13);
  --tb-btn: #3c62de;
  --tb-btn-hover: #5075ea;
  --tb-on-btn: #ffffff;
  --tb-danger: #ff8a7b;
  --tb-danger-soft: rgba(255, 138, 123, .12);
  --tb-warn: #f0b64e;
  --tb-warn-soft: rgba(240, 182, 78, .12);
  --tb-ok: #52c993;
  --tb-ok-soft: rgba(82, 201, 147, .12);
  --tb-info-soft: #141d33;
  --tb-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .2);
  --tb-checker-a: #1b2131;
  --tb-checker-b: #161b28;
  --tb-qr-shadow: drop-shadow(0 10px 28px rgba(0, 0, 0, .45));
  color-scheme: dark;
}

:root[data-theme="light"] { color-scheme: light; }

html { background: var(--tb-bg); }
[hidden] { display: none !important; }

/* Telefonda üst güvenli alan bandı, menünün rengiyle boyanır */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--tb-surface);
  pointer-events: none;
}

/* ==========================================================================
   Üst menü
   ========================================================================== */
.tb-nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--tb-surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--tb-border);
  font-family: var(--tb-sans);
  color: var(--tb-text);
}
.tb-nav__in {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: var(--tb-nav-h);
  max-width: var(--tb-max);
  margin: 0 auto;
  padding-left: var(--tb-gutter-l);
  padding-right: var(--tb-gutter-r);
  box-sizing: border-box;
}
.tb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tb-text);
  text-decoration: none;
  flex: none;
  margin-right: 8px;
}
.tb-brand:hover { text-decoration: none; color: var(--tb-text); }
.tb-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--tb-btn);
  color: var(--tb-on-btn);
  font: 600 13px/1 var(--tb-mono);
  letter-spacing: -.02em;
}
.tb-brand__name {
  font-weight: 650;
  font-stretch: var(--tb-narrow);
  font-size: 17px;
  letter-spacing: -.005em;
}
.tb-brand[aria-current="page"] .tb-brand__name { color: var(--tb-accent); }

.tb-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tb-tabs::-webkit-scrollbar { display: none; }
.tb-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--tb-muted);
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
}
.tb-tab:hover { color: var(--tb-text); text-decoration: none; }
.tb-tab[aria-current="page"] { color: var(--tb-accent); }
.tb-tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--tb-accent);
}
.tb-tab:focus-visible,
.tb-brand:focus-visible,
.tb-theme:focus-visible { outline: none; box-shadow: var(--tb-focus); border-radius: 6px; }

.tb-ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tb-theme {
  align-self: center;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--tb-border);
  background: var(--tb-surface);
  color: var(--tb-text-soft);
  cursor: pointer;
}
.tb-theme:hover { border-color: var(--tb-border-strong); color: var(--tb-text); }
.tb-theme svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tb-theme__moon { display: none; }
:root[data-tb-mode="dark"] .tb-theme__sun { display: none; }
:root[data-tb-mode="dark"] .tb-theme__moon { display: block; }

@media (max-width: 640px) {
  .tb-brand__name { display: none; }
  .tb-brand { margin-right: 0; }
  .tb-tab { padding: 0 9px; gap: 6px; font-size: 13.5px; }
  .tb-tab .tb-ico { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  .tb-nav__in { gap: 8px; }
  .tb-tab { padding: 0 8px; }
  .tb-tab .tb-ico { display: none; }
}

/* ==========================================================================
   Yeni araçlar ve giriş sayfası için ortak bileşenler
   ========================================================================== */
.tb-body {
  margin: 0;
  min-height: 100%;
  background: var(--tb-bg);
  color: var(--tb-text);
  font: 15px/1.55 var(--tb-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.tb-body *, .tb-body *::before, .tb-body *::after { box-sizing: border-box; }
/* Sıfır özgüllük: bileşen sınıfları (.tb-btn, .tb-input…) her zaman bunu ezer */
:where(.tb-body) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.tb-body) a { color: var(--tb-accent); }

.tb-main {
  max-width: var(--tb-max);
  margin: 0 auto;
  padding-left: var(--tb-gutter-l);
  padding-right: var(--tb-gutter-r);
  padding-block: 28px 56px;
}

/* Araç başlığı */
.tb-head { display: grid; gap: 6px; margin-bottom: 22px; max-width: 70ch; }
.tb-eyebrow {
  margin: 0;
  font: 500 12px/1.4 var(--tb-mono);
  letter-spacing: .02em;
  color: var(--tb-muted);
}
.tb-title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.05;
  font-weight: 720;
  font-stretch: var(--tb-narrow);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.tb-lead { margin: 4px 0 0; color: var(--tb-text-soft); font-size: 15.5px; text-wrap: pretty; }

/* Tezgâh: solda ayarlar, sağda çıktı */
.tb-bench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) { .tb-bench { grid-template-columns: minmax(0, 1fr); } }
.tb-stack { display: grid; gap: 16px; min-width: 0; }

.tb-panel {
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  padding: 20px;
  min-width: 0;
}
.tb-panel--flat { background: var(--tb-surface-2); box-shadow: none; }
.tb-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tb-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.005em;
}
.tb-panel__meta { font: 12px/1.4 var(--tb-mono); color: var(--tb-muted); }

/* Bölüm sekmeleri (sayfa içi) */
.tb-sections {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  background: var(--tb-surface-3);
  border-radius: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  width: fit-content;
  max-width: 100%;
}
.tb-sections::-webkit-scrollbar { display: none; }
.tb-sections a {
  padding: 7px 14px;
  border-radius: 7px;
  color: var(--tb-text-soft);
  text-decoration: none;
  font-weight: 560;
  font-size: 14px;
  white-space: nowrap;
}
.tb-sections a:hover { color: var(--tb-text); }
.tb-sections a[aria-current="true"] {
  background: var(--tb-surface);
  color: var(--tb-text);
  box-shadow: 0 1px 2px rgba(19, 24, 36, .08);
}
.tb-sections a:focus-visible { outline: none; box-shadow: var(--tb-focus); }

/* Alanlar */
.tb-fields { display: grid; gap: 16px; }
.tb-field { display: grid; gap: 7px; min-width: 0; }
.tb-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tb-text);
}
.tb-label small { font: 500 12px/1.3 var(--tb-mono); color: var(--tb-muted); }
.tb-hint { margin: 0; font-size: 13px; color: var(--tb-muted); }

.tb-input, .tb-select, .tb-textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--tb-border-strong);
  border-radius: var(--tb-radius-sm);
  background: var(--tb-surface);
  color: var(--tb-text);
  font-size: 15px;
}
.tb-body .tb-input--mono, .tb-body .tb-textarea { font-family: var(--tb-mono); font-size: 14px; }
.tb-textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.tb-input:focus, .tb-select:focus, .tb-textarea:focus {
  outline: none;
  border-color: var(--tb-accent);
  box-shadow: var(--tb-focus);
}
.tb-inputrow { display: flex; gap: 8px; min-width: 0; }
.tb-inputrow > .tb-input { flex: 1 1 auto; }

/* Kaydırıcı */
.tb-range { width: 100%; accent-color: var(--tb-btn); margin: 2px 0; }
.tb-ticks {
  display: flex;
  justify-content: space-between;
  font: 11.5px/1 var(--tb-mono);
  color: var(--tb-muted);
  font-variant-numeric: tabular-nums;
}

/* Bölümlü seçici (radyo düğmeleri) */
.tb-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  background: var(--tb-surface-2);
  max-width: 100%;
}
.tb-seg button {
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--tb-text-soft);
  font-size: 13.5px;
  font-weight: 560;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.tb-seg button:hover { color: var(--tb-text); }
.tb-seg button[aria-pressed="true"] {
  background: var(--tb-surface);
  color: var(--tb-accent);
  box-shadow: 0 1px 2px rgba(19, 24, 36, .1), 0 0 0 1px var(--tb-border);
}
.tb-seg button:focus-visible { outline: none; box-shadow: var(--tb-focus); }
.tb-seg--mono button { font-family: var(--tb-mono); font-size: 13px; }

/* Onay kutuları */
.tb-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.tb-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-sm);
  background: var(--tb-surface);
  cursor: pointer;
  font-size: 14px;
  min-width: 0;
}
.tb-check:hover { border-color: var(--tb-border-strong); }
.tb-check input { accent-color: var(--tb-btn); width: 16px; height: 16px; margin: 0; flex: none; }
.tb-check code { font: 12.5px/1 var(--tb-mono); color: var(--tb-muted); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-check:has(input:focus-visible) { box-shadow: var(--tb-focus); }

/* Düğmeler */
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--tb-border-strong);
  border-radius: var(--tb-radius-sm);
  background: var(--tb-surface);
  color: var(--tb-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.tb-btn:hover { border-color: var(--tb-accent); color: var(--tb-accent); text-decoration: none; }
.tb-btn:focus-visible { outline: none; box-shadow: var(--tb-focus); }
.tb-btn:disabled { opacity: .55; cursor: not-allowed; }
.tb-btn--primary { background: var(--tb-btn); border-color: var(--tb-btn); color: var(--tb-on-btn); }
.tb-btn--primary:hover { background: var(--tb-btn-hover); border-color: var(--tb-btn-hover); color: var(--tb-on-btn); }
.tb-btn--sm { padding: 6px 11px; font-size: 13px; }
.tb-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Çıktı kutusu */
.tb-out {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-sm);
  background: var(--tb-surface-2);
  font: 500 15px/1.6 var(--tb-mono);
  color: var(--tb-text);
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  min-height: 52px;
}
.tb-out--big { font-size: 17px; letter-spacing: .01em; }
.tb-out--masked { color: transparent; text-shadow: 0 0 9px color-mix(in srgb, var(--tb-text) 70%, transparent); user-select: none; }
.tb-out__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tb-out__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-sm);
  background: var(--tb-surface-2);
  font: 500 14.5px/1.45 var(--tb-mono);
  min-width: 0;
}
.tb-out__row span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; word-break: break-all; }

/* Karakter renkleri (parola ve anahtar okunurluğu) */
.c-d { color: var(--tb-accent); }
.c-s { color: var(--tb-warn); }

/* Anahtar/değer listesi */
.tb-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 0; font-size: 14px; }
.tb-kv dt { color: var(--tb-muted); }
.tb-kv dd { margin: 0; font-family: var(--tb-mono); font-size: 13.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Güç ölçer */
.tb-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tb-meter i { height: 6px; border-radius: 3px; background: var(--tb-surface-3); transition: background-color .2s; }
.tb-meter[data-level="1"] i:nth-child(-n+1) { background: var(--tb-danger); }
.tb-meter[data-level="2"] i:nth-child(-n+2) { background: var(--tb-warn); }
.tb-meter[data-level="3"] i:nth-child(-n+3) { background: var(--tb-warn); }
.tb-meter[data-level="4"] i:nth-child(-n+4) { background: var(--tb-ok); }
.tb-meter[data-level="5"] i:nth-child(-n+5) { background: var(--tb-ok); }
.tb-verdict { font-weight: 650; }
.tb-verdict[data-level="1"] { color: var(--tb-danger); }
.tb-verdict[data-level="2"], .tb-verdict[data-level="3"] { color: var(--tb-warn); }
.tb-verdict[data-level="4"], .tb-verdict[data-level="5"] { color: var(--tb-ok); }

/* Rozetler */
.tb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tb-surface-3);
  color: var(--tb-text-soft);
  font: 500 12px/1.4 var(--tb-mono);
  white-space: nowrap;
}
.tb-chip--ok { background: var(--tb-ok-soft); color: var(--tb-ok); }
.tb-chip--warn { background: var(--tb-warn-soft); color: var(--tb-warn); }
.tb-chip--danger { background: var(--tb-danger-soft); color: var(--tb-danger); }
.tb-chip--accent { background: var(--tb-accent-soft); color: var(--tb-accent); }

/* Bilgi kutusu */
.tb-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--tb-radius-sm);
  background: var(--tb-info-soft);
  color: var(--tb-text-soft);
  font-size: 13.5px;
}
.tb-note--warn { background: var(--tb-warn-soft); color: var(--tb-warn); }
.tb-note--danger { background: var(--tb-danger-soft); color: var(--tb-danger); }
.tb-note--ok { background: var(--tb-ok-soft); color: var(--tb-ok); }
.tb-note code, .tb-hint code, .tb-prose code {
  font: 12.5px/1.4 var(--tb-mono);
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--tb-surface) 70%, transparent);
}
.tb-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; color: var(--tb-text-soft); }

/* Bulgular listesi: durum hem renkte hem işarette */
.tb-finds { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tb-finds:empty { display: none; }
.tb-find {
  position: relative;
  padding: 8px 12px 8px 34px;
  border-radius: var(--tb-radius-sm);
  font-size: 14px;
  line-height: 1.45;
  background: var(--tb-surface-2);
  color: var(--tb-text-soft);
  overflow-wrap: anywhere;
}
.tb-find::before { position: absolute; left: 12px; top: 8px; width: 14px; text-align: center; font: 700 13px/1.45 var(--tb-mono); content: "i"; color: var(--tb-accent); }
.tb-find--bad { background: var(--tb-danger-soft); color: var(--tb-danger); }
.tb-find--bad::before { content: "×"; color: inherit; }
.tb-find--warn { background: var(--tb-warn-soft); color: var(--tb-warn); }
.tb-find--warn::before { content: "!"; color: inherit; }
.tb-find--ok { background: var(--tb-ok-soft); color: var(--tb-ok); }
.tb-find--ok::before { content: "✓"; color: inherit; }
.tb-find code { font: 12.5px/1.4 var(--tb-mono); }

/* Kod örneği */
.tb-code {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--tb-radius-sm);
  background: var(--tb-surface-3);
  font: 13px/1.6 var(--tb-mono);
  color: var(--tb-text);
  overflow-x: auto;
  white-space: pre;
}

/* Açıklama metni */
.tb-prose { max-width: 72ch; color: var(--tb-text-soft); font-size: 14.5px; }
.tb-prose h3 { margin: 0 0 6px; font-size: 15px; color: var(--tb-text); }
.tb-prose p { margin: 0 0 10px; }

.tb-table-wrap { overflow-x: auto; }
.tb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tb-table th, .tb-table td { padding: 8px 10px; border-bottom: 1px solid var(--tb-border); text-align: left; vertical-align: top; white-space: nowrap; }
.tb-table th { font-weight: 600; color: var(--tb-muted); font-size: 12.5px; }
.tb-table td code { font: 12.5px/1.4 var(--tb-mono); }
.tb-num { font-variant-numeric: tabular-nums; }

/* Bildirim */
.tb-toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--tb-text);
  color: var(--tb-bg);
  font: 600 13.5px/1.3 var(--tb-sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 70;
  max-width: calc(100% - 32px);
}
.tb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Alt bilgi */
.tb-footer { border-top: 1px solid var(--tb-border); color: var(--tb-muted); font: 13px/1.5 var(--tb-sans); }
.tb-footer__in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  max-width: var(--tb-max);
  margin: 0 auto;
  padding-left: var(--tb-gutter-l);
  padding-right: var(--tb-gutter-r);
  padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px));
}
.tb-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tb-footer a { color: var(--tb-muted); text-decoration: none; }
.tb-footer a:hover { color: var(--tb-accent); }

.tb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .tb-toast, .tb-meter i { transition: none; }
}
