/* Kimyasal Katkı Fizibilite — ortak stil (dış kaynak YOK, sistem fontları) */
:root {
  color-scheme: light;
  --c-bg: #f4f6fa;
  --c-surface: #fff;
  --c-surface-2: #f8f9fc;
  --c-border: #dfe4ee;
  --c-border-strong: #c5cddc;
  --c-text: #1b2333;
  --c-text-2: #4a5468;
  --c-muted: #6b7489;
  --c-primary: #1f3a68;
  --c-primary-hover: #17305a;
  --c-primary-soft: #e6ecf6;
  --c-accent: #e07a1f;
  --c-accent-soft: #fdf0e3;
  --c-ok: #1f8f4e;
  --c-ok-soft: #e3f3ea;
  --c-warn: #c99a06;
  --c-warn-soft: #fbf3d9;
  --c-bad: #c0392b;
  --c-bad-soft: #f9e5e2;
  --c-info: #2a78d6;
  --c-info-soft: #e5effb;
  --c-side: #0b1f45;
  --c-side-2: #132b5a;
  --c-side-text: #c9d3e6;
  --c-side-active: #ffffff;
  --c-shadow: 0 1px 2px rgba(16, 30, 60, .06), 0 2px 8px rgba(16, 30, 60, .05);
  /* grafik tokenları */
  --g-1: #2a78d6; --g-2: #eb6834; --g-3: #1baf7a; --g-4: #eda100;
  --g-5: #e87ba4; --g-6: #008300; --g-7: #6250d6; --g-8: #e34948;
  --g-pos: #1f8f4e; --g-neg: #c0392b; --g-top: #1f3a68; --g-bar: #2a78d6;
  --g-grid: #e6e9f0; --g-axis: #9aa3b5; --g-text: #4a5468; --g-text-strong: #1b2333;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --c-bg: #0f1522; --c-surface: #171f30; --c-surface-2: #1c2539;
    --c-border: #2a3550; --c-border-strong: #3a4766;
    --c-text: #e7ebf3; --c-text-2: #b8c1d4; --c-muted: #8d97ad;
    --c-primary: #4f7fc9; --c-primary-hover: #6a94d6; --c-primary-soft: #1d2b47;
    --c-accent: #ef8c33; --c-accent-soft: #3a2a18;
    --c-ok: #3cb371; --c-ok-soft: #173826; --c-warn: #e0b52c; --c-warn-soft: #3a3214;
    --c-bad: #e06656; --c-bad-soft: #3d1f1c; --c-info: #5598e7; --c-info-soft: #1a2b45;
    --c-side: #081633; --c-side-2: #10244a;
    --c-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --g-1: #3987e5; --g-2: #d95926; --g-3: #199e70; --g-4: #c98500;
    --g-5: #d55181; --g-6: #0ca30c; --g-7: #9085e9; --g-8: #e66767;
    --g-pos: #3cb371; --g-neg: #e06656; --g-top: #8fb0e3; --g-bar: #3987e5;
    --g-grid: #26304a; --g-axis: #56617c; --g-text: #b8c1d4; --g-text-strong: #e7ebf3;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg: #0f1522; --c-surface: #171f30; --c-surface-2: #1c2539;
  --c-border: #2a3550; --c-border-strong: #3a4766;
  --c-text: #e7ebf3; --c-text-2: #b8c1d4; --c-muted: #8d97ad;
  --c-primary: #4f7fc9; --c-primary-hover: #6a94d6; --c-primary-soft: #1d2b47;
  --c-accent: #ef8c33; --c-accent-soft: #3a2a18;
  --c-ok: #3cb371; --c-ok-soft: #173826; --c-warn: #e0b52c; --c-warn-soft: #3a3214;
  --c-bad: #e06656; --c-bad-soft: #3d1f1c; --c-info: #5598e7; --c-info-soft: #1a2b45;
  --c-side: #081633; --c-side-2: #10244a;
  --c-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --g-1: #3987e5; --g-2: #d95926; --g-3: #199e70; --g-4: #c98500;
  --g-5: #d55181; --g-6: #0ca30c; --g-7: #9085e9; --g-8: #e66767;
  --g-pos: #3cb371; --g-neg: #e06656; --g-top: #8fb0e3; --g-bar: #3987e5;
  --g-grid: #26304a; --g-axis: #56617c; --g-text: #b8c1d4; --g-text-strong: #e7ebf3;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.5;
  color: var(--c-text); background: var(--c-bg);
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; color: var(--c-text); }
h1 { font-size: 1.45rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 1.2rem 0; }
.gizli, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ---------- Yerleşim ---------- */
.yerlesim { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.yan-menu {
  background: var(--c-side); color: var(--c-side-text);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.yan-logo { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; color: #fff; }
.yan-logo img { height: 34px; width: auto; border-radius: 4px; display: block; }
.yan-logo .ad { font-weight: 600; font-size: .92rem; line-height: 1.2; color: #fff; }
.yan-logo .ad small { display: block; font-weight: 400; color: var(--c-side-text); font-size: .74rem; }
.yan-logo:hover { text-decoration: none; }
.menu { list-style: none; margin: 8px 0; padding: 0 10px; flex: 1; }
.menu-baslik { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #7f8db0; padding: 14px 10px 6px; }
.menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 2px 0;
  border-radius: 8px; color: var(--c-side-text); font-size: .93rem;
}
.menu a:hover { background: var(--c-side-2); color: #fff; text-decoration: none; }
.menu a.aktif { background: var(--c-side-2); color: var(--c-side-active); box-shadow: inset 3px 0 0 var(--c-accent); }
.menu svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu .sayi { margin-left: auto; background: var(--c-accent); color: #fff; border-radius: 10px; font-size: .72rem; padding: 0 7px; line-height: 18px; }
.yan-alt { padding: 14px 18px; font-size: .74rem; color: #7f8db0; border-top: 1px solid rgba(255,255,255,.07); }

.ana { min-width: 0; display: flex; flex-direction: column; }
.ust-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 10px 24px; min-height: 58px;
}
.ust-bar .sayfa-baslik { font-size: 1.08rem; font-weight: 600; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ust-arac { display: flex; align-items: center; gap: 8px; }
.ikon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid transparent; background: transparent;
  color: var(--c-text-2); cursor: pointer; padding: 0;
}
.ikon-btn:hover { background: var(--c-primary-soft); color: var(--c-primary); text-decoration: none; }
.ikon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zil-rozet {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--c-bad); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--c-surface);
}
.kullanici-kutu { display: flex; align-items: center; gap: 10px; padding-left: 10px; border-left: 1px solid var(--c-border); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; flex: none; }
.kullanici-bilgi { line-height: 1.2; }
.kullanici-bilgi .ad { font-weight: 600; font-size: .88rem; }
.kullanici-bilgi .rol { font-size: .74rem; color: var(--c-muted); }
.cikis-form { margin: 0; }
.menu-ac { display: none; }

.vekil-serit {
  background: var(--c-accent); color: #fff; padding: 8px 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem;
}
.vekil-serit form { margin: 0 0 0 auto; }
.vekil-serit button { background: #fff; color: #9a4c0b; border: 0; border-radius: 6px; padding: 5px 12px; font-weight: 600; cursor: pointer; font: inherit; font-weight: 600; }
.vekil-serit button:hover { background: #fff3e6; }

.icerik { padding: 22px 24px 40px; width: 100%; max-width: 1480px; }
.alt-bilgi { margin-top: auto; padding: 14px 24px; color: var(--c-muted); font-size: .78rem; border-top: 1px solid var(--c-border); }

.sayfa-ust { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sayfa-ust h1 { margin: 0; }
.sayfa-ust .aciklama { color: var(--c-muted); margin: 2px 0 0; }
.sayfa-ust .sag { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Kart / KPI ---------- */
.kart { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--c-shadow); padding: 18px 20px; margin-bottom: 18px; }
.kart > h2:first-child, .kart > h3:first-child { margin-top: 0; }
.kart-ust { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.kart-ust h2, .kart-ust h3 { margin: 0; }
.kart-ust .sag { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.izgara { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.izgara-2 { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.izgara-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.izgara > .kart, .izgara-2 > .kart, .izgara-3 > .kart { margin-bottom: 0; }
.kpi-satir { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 18px; }
.kpi { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--c-shadow); padding: 14px 16px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-primary); }
.kpi.kpi-ok::before { background: var(--c-ok); } .kpi.kpi-warn::before { background: var(--c-warn); }
.kpi.kpi-bad::before { background: var(--c-bad); } .kpi.kpi-accent::before { background: var(--c-accent); }
.kpi .etiket { font-size: .78rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi .deger { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .alt { font-size: .8rem; color: var(--c-text-2); margin-top: 2px; }
.kpi a { color: inherit; }

/* ---------- Tablo ---------- */
.tablo-sar { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-border); border-radius: 8px; }
.tablo { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--c-surface); }
.tablo-sar > .tablo { border: 0; }
.tablo th, .tablo td { padding: 9px 12px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.tablo thead th { background: var(--c-surface-2); color: var(--c-text-2); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; position: sticky; top: 0; }
.tablo tbody tr:hover { background: var(--c-primary-soft); }
.tablo tbody tr:last-child td { border-bottom: 0; }
.tablo td.sayi, .tablo th.sayi, .tablo .sag { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tablo td.orta, .tablo th.orta { text-align: center; }
.tablo tfoot td { font-weight: 600; background: var(--c-surface-2); }
.tablo tr.vurgu td { background: var(--c-ok-soft); }
.tablo.sik th, .tablo.sik td { padding: 6px 9px; }
.tablo th[data-sirala] { cursor: pointer; user-select: none; }
.tablo th[data-sirala]::after { content: "↕"; margin-left: 6px; opacity: .35; font-size: .85em; }
.tablo th[aria-sort="ascending"]::after { content: "▲"; opacity: .9; }
.tablo th[aria-sort="descending"]::after { content: "▼"; opacity: .9; }
.tablo .bos td, td.bos { text-align: center; color: var(--c-muted); padding: 22px; }
.pozitif { color: var(--c-ok); } .negatif { color: var(--c-bad); } .soluk { color: var(--c-muted); }

/* ---------- Rozet ---------- */
.rozet { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; line-height: 1.6; white-space: nowrap; background: var(--c-surface-2); color: var(--c-text-2); border: 1px solid var(--c-border); }
.rozet-ok { background: var(--c-ok-soft); color: var(--c-ok); border-color: transparent; }
.rozet-warn { background: var(--c-warn-soft); color: #8a6a00; border-color: transparent; }
.rozet-bad { background: var(--c-bad-soft); color: var(--c-bad); border-color: transparent; }
.rozet-info { background: var(--c-info-soft); color: var(--c-info); border-color: transparent; }
.rozet-accent { background: var(--c-accent-soft); color: #a3550f; border-color: transparent; }
:root[data-theme="dark"] .rozet-warn { color: var(--c-warn); }
:root[data-theme="dark"] .rozet-accent { color: var(--c-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rozet-warn { color: var(--c-warn); } :root:not([data-theme="light"]) .rozet-accent { color: var(--c-accent); } }

/* ---------- Düğme ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; min-height: 38px;
  border-radius: 8px; border: 1px solid var(--c-border-strong); background: var(--c-surface); color: var(--c-text);
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; background: var(--c-surface-2); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); }
.btn-accent { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn-accent:hover { filter: brightness(.94); background: var(--c-accent); }
.btn-ok { background: var(--c-ok); border-color: var(--c-ok); color: #fff; }
.btn-ok:hover { filter: brightness(.94); background: var(--c-ok); }
.btn-ghost, .btn-ikincil { background: var(--c-surface); border-color: var(--c-border-strong); color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-soft); }
.btn-danger { background: var(--c-bad); border-color: var(--c-bad); color: #fff; }
.btn-danger:hover { filter: brightness(.94); background: var(--c-bad); }
.btn-sm { padding: 4px 10px; min-height: 30px; font-size: .82rem; }
.btn-blok { width: 100%; }
.btn-grup { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.satir-ici { display: inline; margin: 0; }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 14px 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: start; }
.form-grid .tam { grid-column: 1 / -1; }
.alan { display: flex; flex-direction: column; gap: 5px; }
label, .etiket-yazi { font-size: .84rem; font-weight: 600; color: var(--c-text-2); }
.form-grid > label, .form-grid > div > label { display: flex; flex-direction: column; gap: 5px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], input[type=email], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--c-text); background: var(--c-surface);
  border: 1px solid var(--c-border-strong); border-radius: 8px; padding: 8px 10px; min-height: 38px; font-weight: 400;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
input[readonly], input:disabled, select:disabled, textarea:disabled { background: var(--c-surface-2); color: var(--c-muted); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--c-primary); vertical-align: middle; }
.ipucu { font-size: .78rem; color: var(--c-muted); font-weight: 400; }
.hata-yazi { font-size: .8rem; color: var(--c-bad); }
.form-alt { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.filtre-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filtre-bar > * { flex: 0 1 200px; }
.filtre-bar .btn { flex: none; }
input[data-filtre] { max-width: 320px; padding-left: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7489' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 10px center; }

/* ---------- Sekme ---------- */
.sekme { display: flex; gap: 2px; border-bottom: 1px solid var(--c-border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: thin; }
.sekme a, .sekme button {
  padding: 10px 14px; border: 0; background: transparent; color: var(--c-text-2); font: inherit; font-weight: 600; font-size: .9rem;
  border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; margin-bottom: -1px;
}
.sekme a:hover, .sekme button:hover { color: var(--c-primary); text-decoration: none; }
.sekme a.aktif, .sekme button.aktif, .sekme [aria-selected="true"] { color: var(--c-primary); border-bottom-color: var(--c-accent); }
.sekme .sayi { background: var(--c-surface-2); border-radius: 10px; padding: 0 7px; font-size: .75rem; margin-left: 4px; }

/* ---------- Uyarı ---------- */
.uyari { border-radius: 8px; padding: 11px 14px 11px 42px; margin-bottom: 14px; border: 1px solid transparent; position: relative; background: var(--c-info-soft); color: var(--c-text); }
.uyari::before { position: absolute; left: 14px; top: 10px; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .75rem; display: flex; align-items: center; justify-content: center; content: "i"; background: var(--c-info); }
.uyari-info { background: var(--c-info-soft); border-color: rgba(42, 120, 214, .25); }
.uyari-warn { background: var(--c-warn-soft); border-color: rgba(201, 154, 6, .35); }
.uyari-warn::before { content: "!"; background: var(--c-warn); }
.uyari-bad { background: var(--c-bad-soft); border-color: rgba(192, 57, 43, .35); }
.uyari-bad::before { content: "!"; background: var(--c-bad); }
.uyari-ok { background: var(--c-ok-soft); border-color: rgba(31, 143, 78, .3); }
.uyari-ok::before { content: "✓"; background: var(--c-ok); }
.uyari ul { margin: 4px 0 0; padding-left: 18px; }
.uyari .kapat { position: absolute; right: 8px; top: 6px; background: transparent; border: 0; font-size: 1.1rem; color: var(--c-muted); cursor: pointer; line-height: 1; padding: 4px; }

/* ---------- Grafik ---------- */
.grafik { width: 100%; min-height: 120px; position: relative; }
.grafik svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.grafik .g-bos { color: var(--c-muted); font-size: .9rem; padding: 30px 0; text-align: center; }
.g-grid { stroke: var(--g-grid); stroke-width: 1; }
.g-eksen { stroke: var(--g-axis); stroke-width: 1; }
.g-sifir { stroke: var(--g-axis); stroke-width: 1.5; }
.g-yazi { fill: var(--g-text); font-size: 12px; }
.g-yazi-k { fill: var(--g-text-strong); font-size: 12px; font-weight: 600; }
.g-yazi-ters { fill: #fff; font-size: 12px; font-weight: 600; }
.g-cubuk { fill: var(--g-bar); }
.g-pos { fill: var(--g-pos); } .g-neg { fill: var(--g-neg); } .g-top { fill: var(--g-top); }
.g-bag { stroke: var(--g-axis); stroke-width: 1; stroke-dasharray: 3 3; }
.g-isaret { transition: opacity .12s; }
.grafik:hover .g-isaret { opacity: .55; }
.grafik .g-isaret:hover, .grafik .g-isaret.odak { opacity: 1; }
.g-cizgi { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.g-nokta { stroke: var(--c-surface); stroke-width: 2; }
.g-hedef { fill: transparent; cursor: default; }
.g-taban { stroke: var(--g-text-strong); stroke-width: 1.5; stroke-dasharray: 4 3; }
.g-s1 { fill: var(--g-1); stroke: var(--g-1); } .g-s2 { fill: var(--g-2); stroke: var(--g-2); }
.g-s3 { fill: var(--g-3); stroke: var(--g-3); } .g-s4 { fill: var(--g-4); stroke: var(--g-4); }
.g-s5 { fill: var(--g-5); stroke: var(--g-5); } .g-s6 { fill: var(--g-6); stroke: var(--g-6); }
.g-s7 { fill: var(--g-7); stroke: var(--g-7); } .g-s8 { fill: var(--g-8); stroke: var(--g-8); }
.g-cizgi.g-s1, .g-cizgi.g-s2, .g-cizgi.g-s3, .g-cizgi.g-s4, .g-cizgi.g-s5, .g-cizgi.g-s6, .g-cizgi.g-s7, .g-cizgi.g-s8 { fill: none; }
.g-lejant { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--c-text-2); margin: 0 0 8px; padding: 0; list-style: none; }
.g-lejant li { display: inline-flex; align-items: center; gap: 6px; }
.g-lejant i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.g-lejant i.g-l1 { background: var(--g-1); } .g-lejant i.g-l2 { background: var(--g-2); } .g-lejant i.g-l3 { background: var(--g-3); }
.g-lejant i.g-l4 { background: var(--g-4); } .g-lejant i.g-l5 { background: var(--g-5); } .g-lejant i.g-l6 { background: var(--g-6); }
.g-lejant i.g-l7 { background: var(--g-7); } .g-lejant i.g-l8 { background: var(--g-8); }
.g-lejant i.g-lpos { background: var(--g-pos); } .g-lejant i.g-lneg { background: var(--g-neg); } .g-lejant i.g-ltop { background: var(--g-top); }
.g-ipucu {
  position: fixed; z-index: 1000; pointer-events: none; background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-border-strong); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.15);
  padding: 7px 10px; font-size: .82rem; max-width: 280px; line-height: 1.4;
}
.g-ipucu b { display: block; font-weight: 600; margin-bottom: 2px; }
.g-ipucu .s { display: flex; gap: 8px; justify-content: space-between; }
.g-ipucu .s span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Diyalog ---------- */
dialog.onay-diyalog { border: 1px solid var(--c-border); border-radius: 12px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--c-surface); color: var(--c-text); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
dialog.onay-diyalog::backdrop { background: rgba(10, 20, 40, .45); }
.onay-diyalog .govde { padding: 20px 22px 8px; }
.onay-diyalog h3 { margin: 0 0 8px; }
.onay-diyalog .dugmeler { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; }

/* ---------- Giriş / hata (menüsüz) ---------- */
.yalin { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(31,58,104,.18), transparent 60%), var(--c-bg); }
.giris-kart { width: 100%; max-width: 400px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; box-shadow: 0 10px 36px rgba(16,30,60,.12); overflow: hidden; }
.giris-ust { background: var(--c-side); color: #fff; padding: 22px 24px 18px; text-align: center; }
.giris-ust img { height: 46px; width: auto; border-radius: 4px; display: block; margin: 0 auto 10px; }
.giris-ust h1 { color: #fff; font-size: 1.25rem; margin: 0; }
.giris-ust .surum { color: var(--c-side-text); font-size: .78rem; margin-top: 2px; }
.giris-govde { padding: 22px 24px 24px; }
.giris-govde .alan { margin-bottom: 14px; }
.giris-not { font-size: .78rem; color: var(--c-muted); margin-top: 14px; text-align: center; }
.yalin-alt { margin-top: 18px; color: var(--c-muted); font-size: .76rem; text-align: center; }
.hata-kart { max-width: 520px; width: 100%; text-align: center; }
.hata-kod { font-size: 3.6rem; font-weight: 800; color: var(--c-primary); line-height: 1; margin-bottom: 8px; }

/* ---------- Kılavuz ---------- */
.kilavuz { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.kilavuz-icindekiler { position: sticky; top: 76px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px; font-size: .88rem; }
.kilavuz-icindekiler a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--c-text-2); }
.kilavuz-icindekiler a:hover { background: var(--c-primary-soft); text-decoration: none; color: var(--c-primary); }
.kilavuz section { scroll-margin-top: 76px; }
.adimlar { list-style: none; counter-reset: adim; padding: 0; margin: 0; }
.adimlar > li { counter-increment: adim; position: relative; padding: 0 0 18px 48px; }
.adimlar > li::before { content: counter(adim); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.adimlar > li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--c-border); }
.adimlar > li:last-child::after { display: none; }
.adimlar h4 { margin: 4px 0 4px; }
.adimlar p { margin: 0 0 4px; color: var(--c-text-2); }
.formul { font-family: var(--mono); background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: 8px; padding: 10px 14px; margin: 8px 0 12px; font-size: .88rem; overflow-x: auto; white-space: pre; }
details.sss { border: 1px solid var(--c-border); border-radius: 8px; padding: 0 14px; margin-bottom: 8px; background: var(--c-surface); }
details.sss summary { cursor: pointer; padding: 11px 0; font-weight: 600; }
details.sss[open] summary { border-bottom: 1px solid var(--c-border); margin-bottom: 10px; }
details.sss > *:last-child { margin-bottom: 12px; }
.rol-kart-izgara { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.rol-kart { border: 1px solid var(--c-border); border-radius: 8px; padding: 12px 14px; background: var(--c-surface-2); }
.rol-kart.sen { border-color: var(--c-accent); box-shadow: inset 3px 0 0 var(--c-accent); }
.rol-kart h4 { margin: 0 0 4px; }
.rol-kart p { margin: 0; font-size: .86rem; color: var(--c-text-2); }

/* ---------- Mobil ---------- */
.menu-perde { display: none; }
@media (max-width: 1100px) {
  .izgara-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .yerlesim { grid-template-columns: 1fr; }
  .yan-menu { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease, box-shadow .2s ease; box-shadow: none; }
  body.menu-acik .yan-menu { transform: none; box-shadow: 4px 0 24px rgba(0,0,0,.3); }
  body.menu-acik .menu-perde { display: block; position: fixed; inset: 0; background: rgba(10,20,40,.45); z-index: 40; }
  .menu-ac { display: inline-flex; }
  .ust-bar { padding: 8px 16px; gap: 6px; }
  .icerik { padding: 16px 16px 32px; }
  .vekil-serit { padding: 8px 16px; }
  .alt-bilgi { padding: 12px 16px; }
  .kullanici-bilgi { display: none; }
  .kullanici-kutu { padding-left: 6px; gap: 6px; }
  .izgara-2, .izgara-3 { grid-template-columns: 1fr; }
  .kilavuz { grid-template-columns: minmax(0, 1fr); }
  .kilavuz-icindekiler { position: static; }
}
@media (max-width: 520px) {
  .kpi-satir { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .deger { font-size: 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .kart { padding: 14px; }
  .sayfa-ust .sag { margin-left: 0; }
  input[data-filtre] { max-width: none; }
}
@media print {
  .yan-menu, .ust-bar, .vekil-serit, .alt-bilgi, .btn, form[data-onay] { display: none !important; }
  .yerlesim { display: block; }
  body { background: #fff; }
  .kart { box-shadow: none; break-inside: avoid; }
}
@media (forced-colors: active) {
  .g-cubuk, .g-pos, .g-neg, .g-top { fill: CanvasText; }
}

/* ---------- v1.1.0 düzeltmeleri (test bulguları) ---------- */
.kpi .etiket, .kpi .deger, .kpi .alt, .kpi-etiket, .kpi-deger, .kpi-alt { display: block; }
.kpi-etiket { font-size: .78rem; color: var(--c-muted); }
.kpi-deger { font-size: 1.2rem; font-weight: 700; line-height: 1.25; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-alt { font-size: .82rem; color: var(--c-text-2); margin-top: 2px; }
.btn-ikincil:hover { background: var(--c-primary-soft); }
.btn-kucuk { padding: 4px 10px; min-height: 30px; font-size: .82rem; }
td.tarih, th.tarih, .tarih { white-space: nowrap; }
.kol-kimyasal { min-width: 180px; }
.satir-soluk { opacity: .72; }
.kilavuz .formul, .kilavuz pre { max-width: 100%; overflow-x: auto; }
.form-tablo input[type="text"] { min-width: 84px; width: 100%; }
.form-tablo td { min-width: 96px; }
.kontrol-listesi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 6px 16px; margin: 8px 0; }
.kontrol-listesi label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.kart-liste { display: none; }
@media (max-width: 900px) {
  .sekme { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: 24px; }
}
@media (max-width: 600px) {
  /* Deneme formu: parametre satırı kart düzeni — etiket üstte, Blank | Alternatif yan yana, fark altta */
  .form-tablo thead { display: none; }
  .form-tablo, .form-tablo tbody { display: block; width: 100%; }
  .form-tablo tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--c-border); }
  .form-tablo tr > th { grid-column: 1 / -1; padding: 0; border: 0; }
  .form-tablo tr > td { display: block; padding: 0; border: 0; min-width: 0; }
  .form-tablo tr > td:nth-of-type(1)::before { content: "Blank"; display: block; font-size: .72rem; color: var(--c-muted); }
  .form-tablo tr > td:nth-of-type(2)::before { content: "Alternatif"; display: block; font-size: .72rem; color: var(--c-muted); }
  .form-tablo tr > td:nth-of-type(3) { grid-column: 1 / -1; text-align: left; }
  .form-tablo tr > td:nth-of-type(3):not(:empty)::before { content: "Fark (alt − blank): "; color: var(--c-muted); }
  .form-tablo input[type="text"] { min-width: 0; }
  .tablo-sar:has(> .form-tablo) { overflow-x: visible; }
  /* Aday kimyasallar: kart listesi */
  .kart-liste { display: block; }
  .kart-liste + .tablo-sar, .tablo-mobil-gizle { display: none; }
  .kart-liste .kl-oge { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; background: var(--c-surface); }
  .kart-liste .kl-oge details summary { cursor: pointer; color: var(--c-text-2); font-size: .85rem; }
}
