/* =====================================================================
   SahaPro arayüz stili 2.0 — saf CSS, harici kütüphane yok.

   Yön: "çelik ve beton". Sakin, katmanlı yüzeyler (beton), derin çelik
   menü ve birincil eylemler, ikaz sarısı yalnızca "dikkat / buradasınız /
   bugün" için. Cesaret tek yerde: büyük göstergelerde şantiye tabelası
   gibi dar rakam yüzü (SahaPro Rakam) ve özet ekranındaki "Bugün" panosu.
   Yazı: Inter 4 (Türkçe alt küme, cv05 ayırt edilebilir l, cv08 serifli I).
   Sözleşme: 1.0/1.1 sınıfları ve değişken adları aynen geçerli (GELISTIRICI.md).
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. Yazı tipleri (yerel, OFL — public/assets/fonts/BENIOKU.txt)
   --------------------------------------------------------------------- */
@font-face { font-family: "SahaPro Inter"; font-style: normal; font-weight: 300 450; font-display: swap; src: url("fonts/inter-tr-400.woff2") format("woff2"); }
@font-face { font-family: "SahaPro Inter"; font-style: normal; font-weight: 451 550; font-display: swap; src: url("fonts/inter-tr-500.woff2") format("woff2"); }
@font-face { font-family: "SahaPro Inter"; font-style: normal; font-weight: 551 900; font-display: swap; src: url("fonts/inter-tr-600.woff2") format("woff2"); }
@font-face { font-family: "SahaPro Rakam"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/bigshoulders-rakam-700.woff2") format("woff2"); }

/* ---------------------------------------------------------------------
   1. Tasarım belirteçleri (tokens)
   Eski adlar (--zemin, --yuzey, --celik, --r, --golge ...) korunur; 2.0 ekleri
   --r-xs…--r-xl, --golge-0, --hiz-*, --egri, --fs-4xl, --font-rakam.
   --------------------------------------------------------------------- */
:root {
    color-scheme: light;

    /* Yüzeyler — beton (3.0: beyaz tuval, soğuk beton grileri) */
    --zemin: #ffffff;              /* 3.0: beyaz sayfa tuvali */
    --yuzey: #ffffff;
    --yuzey-2: #f6f7f7;            /* panel, tablo altı, ikincil alan — soğuk beton */
    --yuzey-3: #eef0f0;            /* üzerine gelme */
    --yuzey-girdi: #ffffff;
    --cizgi: #e3e6e6;
    --cizgi-ince: #eceeee;
    --cizgi-koyu: #cdd3d3;

    /* Metin */
    --murekkep: #14202a;
    --murekkep-2: #46525b;
    --soluk: #65717a;              /* beyaz ve --yuzey-2 üzerinde AA */

    /* Çelik (marka) */
    --celik: #1c3d55;
    --celik-2: #285876;
    --celik-metin: #1c3d55;
    --menu-zemin: #10202b;         /* 3.0: ikon rayı */
    --menu-zemin-2: #1a2f3e;
    --menu-metin: #c3d0d9;
    --menu-soluk: #7f97a7;
    --menu-cizgi: rgba(255, 255, 255, .07);
    --panel-zemin: #f6f7f7;        /* 3.0: ikincil menü paneli */
    --baglanti: #1d5a85;

    /* İkaz sarısı */
    --ikaz: #f5b800;
    --ikaz-2: #e3a900;
    --ikaz-metin: #241c00;
    --ikaz-koyu: #855f00;

    /* Durum — her ekranda aynı anlam */
    --onay: #17734a;  --onay-zemin: #e8f5ee;  --onay-cizgi: #c5e3d1;
    --hata: #b42318;  --hata-zemin: #fdeeec;  --hata-cizgi: #f3cbc5;
    --uyari: #8a5300; --uyari-zemin: #fff5dc; --uyari-cizgi: #f1da9f;
    --bilgi: #1d5d8f; --bilgi-zemin: #eaf2fa; --bilgi-cizgi: #c9dcee;
    --odak: #1d6fb8;
    --odak-halka: rgba(29, 111, 184, .22);

    /* Tipografi */
    --font-govde: "SahaPro Inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-baslik: var(--font-govde);
    --font-rakam: "SahaPro Rakam", "Bahnschrift", "DIN Alternate", "Arial Narrow", var(--font-govde);
    --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    --fs-xs: .75rem;      /* 12 */
    --fs-sm: .8125rem;    /* 13 */
    --fs-md: .875rem;     /* 14 — gövde */
    --fs-lg: 1rem;        /* 16 */
    --fs-xl: 1.125rem;    /* 18 */
    --fs-2xl: 1.375rem;   /* 22 */
    --fs-3xl: 1.625rem;   /* 26 — sayfa başlığı */
    --fs-4xl: 2.5rem;     /* 40 — gösterge rakamı */

    /* Aralık ölçeği (4px tabanlı) */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;

    /* Köşe — hiyerarşiye göre: rozet < kontrol < menü öğesi < kart < pencere */
    --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-tam: 999px;
    --r-kucuk: var(--r-xs);
    --r: var(--r-md);
    --r-buyuk: var(--r-lg);

    /* Yükselti — 3.0: çerçeve yerine katmanlı gölge (halka + yumuşak düşen gölge) */
    --golge-0: 0 1px 0 rgba(16, 32, 44, .03);
    --golge: 0 0 0 1px rgba(16, 32, 44, .06), 0 1px 2px rgba(16, 32, 44, .04);
    --golge-2: 0 0 0 1px rgba(16, 32, 44, .06), 0 2px 4px rgba(16, 32, 44, .04), 0 10px 24px -6px rgba(16, 32, 44, .12);
    --golge-3: 0 0 0 1px rgba(16, 32, 44, .07), 0 4px 10px rgba(16, 32, 44, .06), 0 24px 56px -8px rgba(16, 32, 44, .22);
    --kart-golge: 0 0 0 1px rgba(16, 32, 44, .065), 0 1px 2px rgba(16, 32, 44, .04);

    /* Hareket */
    --hiz-1: .12s; --hiz-2: .18s; --hiz-3: .28s;
    --egri: cubic-bezier(.2, .8, .2, 1);
    --gecis: var(--hiz-2) var(--egri);

    /* Ölçüler */
    --ray-genislik: 76px;
    --panel-genislik: 236px;
    --menu-genislik: calc(var(--ray-genislik) + var(--panel-genislik));
    --menu-dar: var(--ray-genislik);
    --ust-yukseklik: 56px;
    --kontrol-h: 38px;
    --alt-menu-h: 0px;

    --select-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2346525b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --tik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Koyu tema — iki kez yazılır: sistem tercihi (kullanıcı açık seçmediyse) ve elle seçim */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --zemin: #0c1216; --yuzey: #11181d; --yuzey-2: #151d23; --yuzey-3: #1b252c; --yuzey-girdi: #0e1519;
        --cizgi: #243039; --cizgi-ince: #1c272e; --cizgi-koyu: #36444e;
        --murekkep: #e3eaee; --murekkep-2: #b0bec7; --soluk: #8b9aa5;
        --celik: #2c6188; --celik-2: #3a77a3; --celik-metin: #a3cbea;
        --menu-zemin: #080d11; --menu-zemin-2: #131d25; --menu-metin: #c3d0d9; --menu-soluk: #7a8e9b; --menu-cizgi: rgba(255, 255, 255, .06);
        --panel-zemin: #0f161b;
        --baglanti: #8cc2ea;
        --ikaz: #f5b800; --ikaz-2: #ffc933; --ikaz-metin: #231b00; --ikaz-koyu: #f2c14e;
        --onay: #5ec88f; --onay-zemin: rgba(94, 200, 143, .12); --onay-cizgi: rgba(94, 200, 143, .3);
        --hata: #ff8d7f; --hata-zemin: rgba(255, 141, 127, .11); --hata-cizgi: rgba(255, 141, 127, .3);
        --uyari: #f3c062; --uyari-zemin: rgba(243, 192, 98, .11); --uyari-cizgi: rgba(243, 192, 98, .3);
        --bilgi: #8cbfe9; --bilgi-zemin: rgba(140, 191, 233, .11); --bilgi-cizgi: rgba(140, 191, 233, .28);
        --odak: #6ab2f2; --odak-halka: rgba(106, 178, 242, .28);
        --golge-0: 0 1px 0 rgba(0, 0, 0, .2);
        --golge: 0 0 0 1px var(--cizgi-ince), 0 1px 2px rgba(0, 0, 0, .3);
        --golge-2: 0 0 0 1px var(--cizgi), 0 2px 4px rgba(0, 0, 0, .25), 0 10px 24px -6px rgba(0, 0, 0, .45);
        --golge-3: 0 0 0 1px var(--cizgi), 0 4px 10px rgba(0, 0, 0, .35), 0 24px 56px -8px rgba(0, 0, 0, .6);
        --kart-golge: 0 0 0 1px var(--cizgi-ince), 0 1px 2px rgba(0, 0, 0, .25);
        --select-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b0bec7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        --tik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1216' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --zemin: #0c1216; --yuzey: #11181d; --yuzey-2: #151d23; --yuzey-3: #1b252c; --yuzey-girdi: #0e1519;
    --cizgi: #243039; --cizgi-ince: #1c272e; --cizgi-koyu: #36444e;
    --murekkep: #e3eaee; --murekkep-2: #b0bec7; --soluk: #8b9aa5;
    --celik: #2c6188; --celik-2: #3a77a3; --celik-metin: #a3cbea;
    --menu-zemin: #080d11; --menu-zemin-2: #131d25; --menu-metin: #c3d0d9; --menu-soluk: #7a8e9b; --menu-cizgi: rgba(255, 255, 255, .06);
    --panel-zemin: #0f161b;
    --baglanti: #8cc2ea;
    --ikaz: #f5b800; --ikaz-2: #ffc933; --ikaz-metin: #231b00; --ikaz-koyu: #f2c14e;
    --onay: #5ec88f; --onay-zemin: rgba(94, 200, 143, .12); --onay-cizgi: rgba(94, 200, 143, .3);
    --hata: #ff8d7f; --hata-zemin: rgba(255, 141, 127, .11); --hata-cizgi: rgba(255, 141, 127, .3);
    --uyari: #f3c062; --uyari-zemin: rgba(243, 192, 98, .11); --uyari-cizgi: rgba(243, 192, 98, .3);
    --bilgi: #8cbfe9; --bilgi-zemin: rgba(140, 191, 233, .11); --bilgi-cizgi: rgba(140, 191, 233, .28);
    --odak: #6ab2f2; --odak-halka: rgba(106, 178, 242, .28);
    --golge-0: 0 1px 0 rgba(0, 0, 0, .2);
    --golge: 0 0 0 1px var(--cizgi-ince), 0 1px 2px rgba(0, 0, 0, .3);
    --golge-2: 0 0 0 1px var(--cizgi), 0 2px 4px rgba(0, 0, 0, .25), 0 10px 24px -6px rgba(0, 0, 0, .45);
    --golge-3: 0 0 0 1px var(--cizgi), 0 4px 10px rgba(0, 0, 0, .35), 0 24px 56px -8px rgba(0, 0, 0, .6);
    --kart-golge: 0 0 0 1px var(--cizgi-ince), 0 1px 2px rgba(0, 0, 0, .25);
    --select-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b0bec7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --tik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1216' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------
   2. Temel
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ust-yukseklik) + 12px); }
body {
    margin: 0; background: var(--zemin); color: var(--murekkep);
    font: 400 var(--fs-md)/1.5 var(--font-govde);
    font-feature-settings: "cv05", "cv08", "calt";
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
a { color: var(--baglanti); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--celik-2); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-baslik); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.011em; color: var(--murekkep); }
h1 { font-size: var(--fs-2xl); letter-spacing: -.019em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 75ch; }
strong, b { font-weight: 600; }
code, kbd { font-family: var(--font-mono); font-size: .88em; }
code { background: var(--yuzey-2); border: 1px solid var(--cizgi-ince); padding: 0 4px; border-radius: var(--r-xs); }
kbd {
    display: inline-block; min-width: 1.6em; padding: 0 5px; border: 1px solid var(--cizgi); border-bottom-width: 2px;
    border-radius: var(--r-xs); background: var(--yuzey); color: var(--murekkep-2); font: 500 .7rem/1.55 var(--font-govde); text-align: center;
}
hr { border: 0; border-top: 1px solid var(--cizgi); margin: var(--s-4) 0; }
::selection { background: color-mix(in srgb, var(--ikaz) 42%, transparent); color: var(--murekkep); }
:focus-visible { outline: 2px solid var(--odak); outline-offset: 2px; }
.muted { color: var(--soluk); }
.num, .table td.num, .table th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
table.sr-only { left: -10000px; top: auto; }
.spacer { flex: 1; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -.2em; }
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: var(--r-md);
    background: var(--ikaz); color: var(--ikaz-metin); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 10px; }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--s-4) !important; }
.mb-1 { margin-bottom: var(--s-1) !important; }
.mb-4 { margin-bottom: var(--s-4) !important; }
.mr-auto { margin-right: auto !important; }
.fw-normal { font-weight: 400 !important; }
.h-sm { font-size: var(--fs-sm); }
.pre-line { white-space: pre-line; }
.sub-line { display: block; font-weight: 400; color: var(--soluk); font-size: var(--fs-xs); }
.row-wrap { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-start; }
.row-wrap.gap-lg { gap: var(--s-6); align-items: center; }
.row.is-end { justify-content: flex-end; }
.w-110 { width: 110px !important; }
.mw-220 { max-width: 220px; }
.col-w-xs { width: 44px; } .col-w-sm { width: 70px; } .col-w-md { width: 200px; }
.w-8mm { width: 8mm; } .w-26mm { width: 26mm; } .w-35mm { width: 35mm; } .w-40mm { width: 40mm; }
.code-block { white-space: pre-wrap; word-break: break-all; background: var(--yuzey-2); border: 1px solid var(--cizgi); padding: 10px 12px; border-radius: var(--r-md); font: .82rem/1.5 var(--font-mono); }
.card.is-narrow { max-width: 560px; }
.card.is-medium { max-width: 820px; }
.field.align-end { align-self: end; }
.check.align-field { margin-top: 26px; }
@media (max-width: 640px) { .check.align-field { margin-top: 0; } }
.mt-3 { margin-top: var(--s-3) !important; }
.mt-5 { margin-top: var(--s-5) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: var(--s-3) !important; }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-right { text-align: right; }
.w-auto { width: auto !important; }
.stack-sm > * + * { margin-top: var(--s-2); }
.row { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   3. İskelet 3.0: ikon rayı (modül grupları) + ikincil panel + üst çubuk
   <aside.sidebar> = .rail (koyu çelik, gruplar) + .panel (açık, etkin grubun sayfaları)
   --------------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh; z-index: 40; display: flex; align-items: stretch;
    view-transition-name: sp-menu;
}
/* Ray */
.rail {
    width: var(--ray-genislik); flex: none; display: flex; flex-direction: column; align-items: center;
    background: var(--menu-zemin); color: var(--menu-metin); padding: 12px 0 12px; position: relative; z-index: 2;
}
.rail-brand { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; text-decoration: none; }
.rail-brand:hover { background: rgba(255, 255, 255, .05); }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px; background: var(--ikaz); flex: none;
    display: grid; place-items: center; color: #10202b; font: 650 16px/1 var(--font-govde); letter-spacing: -.02em;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .25);
}
.brand-tile {
    width: 36px; height: 36px; border-radius: 10px; background: #fff; flex: none; display: grid; place-items: center;
    padding: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.brand-tile img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-text { min-width: 0; display: block; flex: 1; }
.brand-name { display: block; font: 600 .9rem/1.25 var(--font-govde); color: var(--murekkep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.brand-tenant { display: block; font: 500 .72rem/1.3 var(--font-govde); color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-logo { display: none; }

.rail-nav {
    flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 8px;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.rail-nav::-webkit-scrollbar { display: none; }
.rail-item {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; padding: 7px 2px 6px;
    border-radius: 10px; color: var(--menu-soluk); text-decoration: none; -webkit-tap-highlight-color: transparent;
    transition: color var(--hiz-1), background-color var(--hiz-1);
}
.rail-ic { position: relative; display: grid; place-items: center; width: 36px; height: 28px; border-radius: 8px; transition: background-color var(--hiz-1), color var(--hiz-1); }
.rail-ic svg { width: 20px; height: 20px; stroke-width: 1.7; }
.rail-label { font: 500 .655rem/1.15 var(--font-govde); letter-spacing: .005em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-item:hover { color: #fff; }
.rail-item:hover .rail-ic { background: rgba(255, 255, 255, .07); }
.rail-item.is-open { color: #fff; }
.rail-item.is-open .rail-ic { background: rgba(255, 255, 255, .1); }
.rail-item.is-active { color: #fff; }
.rail-item.is-active .rail-ic { background: var(--ikaz); color: #10202b; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.rail-item.is-active .rail-label { font-weight: 600; }
.rail-item:focus-visible { outline: 2px solid var(--ikaz); outline-offset: -2px; }
.rail-dot { position: absolute; top: 2px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ikaz); box-shadow: 0 0 0 2px var(--menu-zemin); }
.rail-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; width: 100%; border-top: 1px solid var(--menu-cizgi); margin-top: 8px; }
.rail .user-menu > button { padding: 3px; border-radius: 50%; min-height: 0; border: 0; }
.rail .user-menu > button:hover, .rail .user-menu > button[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
.rail .user-menu .avatar { width: 34px; height: 34px; font-size: .74rem; box-shadow: 0 0 0 2px var(--menu-zemin), 0 0 0 3px rgba(255, 255, 255, .14); }
.rail .dropdown { left: calc(100% + 6px); right: auto; top: auto; bottom: 0; transform-origin: bottom left; color: var(--murekkep); }

/* İkincil panel */
.panel {
    width: var(--panel-genislik); flex: none; display: flex; flex-direction: column; min-height: 0;
    background: var(--panel-zemin); border-right: 1px solid var(--cizgi-ince);
}
.panel-head { display: flex; align-items: center; gap: 6px; padding: 16px 10px 10px 20px; min-height: 68px; }
.panel-tenant { min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.panel-tenant:hover .brand-name { color: var(--baglanti); }
.sidebar-collapse, .sidebar-close {
    display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px;
    background: transparent; border: 0; color: var(--soluk); cursor: pointer; transition: background-color var(--hiz-1), color var(--hiz-1);
}
.sidebar-collapse:hover, .sidebar-close:hover { background: var(--yuzey-3); color: var(--murekkep); }
.sidebar-collapse svg, .sidebar-close svg { width: 18px; height: 18px; }
.sidebar-close { display: none; }
.nav { padding: 2px 10px 20px; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--cizgi-koyu) transparent; }
.nav-group { display: none; }
.nav-group.is-shown { display: block; animation: sp-panel var(--hiz-2) var(--egri); }
.nav-group-title { display: block; padding: 10px 10px 8px; margin: 0; font: 600 .78rem/1.3 var(--font-govde); color: var(--soluk); letter-spacing: 0; }
.nav-group-items { display: flex; flex-direction: column; gap: 1px; }
.nav a {
    position: relative; display: flex; align-items: center; gap: 10px; padding: 0 10px; min-height: 34px;
    color: var(--murekkep-2); text-decoration: none; border-radius: 8px; font-size: .845rem; font-weight: 450;
    transition: background-color var(--hiz-1), color var(--hiz-1);
}
.nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a:hover { background: color-mix(in srgb, var(--murekkep) 5%, transparent); color: var(--murekkep); }
.nav a.active { background: var(--yuzey); color: var(--murekkep); font-weight: 550; box-shadow: 0 0 0 1px rgba(16, 32, 44, .06), 0 1px 2px rgba(16, 32, 44, .06); }
.nav svg { width: 17px; height: 17px; flex: none; color: var(--soluk); }
.nav a:hover svg, .nav a.active svg { color: var(--murekkep); }
.nav .nav-count { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: var(--r-tam); background: var(--ikaz); color: var(--ikaz-metin); font: 600 .68rem/18px var(--font-govde); text-align: center; }
.nav a:focus-visible { outline-offset: -2px; }
@keyframes sp-panel { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a.active { background: var(--yuzey-3); box-shadow: inset 0 0 0 1px var(--cizgi); } }
:root[data-theme="dark"] .nav a.active { background: var(--yuzey-3); box-shadow: inset 0 0 0 1px var(--cizgi); }

.nav-tip, .chart-tip {
    position: fixed; z-index: 130; pointer-events: none; background: #14202a; color: #f2f5f7; padding: 5px 9px; border-radius: 7px;
    font: 500 .78rem/1.3 var(--font-govde); white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.nav-tip { transform: translateY(-50%); }
.nav-tip[hidden], .chart-tip[hidden] { display: none; }
.chart-tip { transform: translate(0, -100%); display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.chart-tip span { color: #a9b8c2; font-size: .72rem; }
.chart-tip b { font-weight: 600; }

/* Panel gizli (tercih) — masaüstünde yalnız ray; ray öğesi paneli açılır pencere olarak gösterir */
@media (min-width: 961px) {
    html[data-sidebar="dar"] .panel { display: none; }
    html[data-sidebar="dar"] .sidebar.is-flyout .panel {
        display: flex; position: absolute; left: var(--ray-genislik); top: 0; bottom: 0; z-index: 1;
        box-shadow: var(--golge-3); border-right: 0; animation: sp-panel var(--hiz-2) var(--egri);
    }
    html[data-sidebar="dar"] .sidebar-collapse svg { transform: scaleX(-1); }
    .sidebar-backdrop { display: none; }
}

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: var(--ust-yukseklik); display: flex; align-items: center; gap: 8px; padding: 0 20px 0 40px;
    background: color-mix(in srgb, var(--zemin) 86%, transparent); border-bottom: 1px solid var(--cizgi-ince);
    position: sticky; top: 0; z-index: 30; view-transition-name: sp-ust;
    -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
}
.topbar .spacer { flex: 1; }
.topbar-crumbs { min-width: 0; margin: 0; font-size: var(--fs-sm); flex: 0 1 auto; }
.topbar-crumbs .crumb-current { color: var(--murekkep); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title { display: none; font: 600 1rem var(--font-baslik); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn, .menu-toggle {
    position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0;
    background: none; border: 1px solid transparent; border-radius: var(--r-md); color: var(--murekkep-2); cursor: pointer;
    transition: background-color var(--hiz-1), color var(--hiz-1);
}
.icon-btn:hover, .menu-toggle:hover, .icon-btn[aria-expanded="true"] { background: var(--yuzey-3); color: var(--murekkep); }
.icon-btn svg, .menu-toggle svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }
.topbar-brand { display: none; align-items: center; gap: 8px; text-decoration: none; color: var(--murekkep); min-width: 0; }
.topbar-brand .brand-mark, .topbar-brand .brand-tile { width: 30px; height: 30px; font-size: 15px; }
.topbar-brand b { font: 600 .95rem var(--font-baslik); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-sep { width: 1px; height: 22px; background: var(--cizgi); margin: 0 4px; flex: none; }

/* Kullanıcı menüsü */
.user-menu { position: relative; }
.user-menu > button {
    display: flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent;
    border-radius: var(--r-tam); padding: 3px 10px 3px 3px; cursor: pointer; color: var(--murekkep); font: inherit; min-height: 38px;
}
.user-menu > button:hover, .user-menu > button[aria-expanded="true"] { background: var(--yuzey-3); }
.user-menu .user-name { font-weight: 550; font-size: var(--fs-sm); max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu .user-chev { width: 14px; height: 14px; color: var(--soluk); }
.avatar {
    width: 30px; height: 30px; border-radius: 50%; background: var(--celik); color: #fff; flex: none;
    display: grid; place-items: center; font: 600 .74rem/1 var(--font-govde); letter-spacing: .02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 248px; background: var(--yuzey);
    border: 1px solid var(--cizgi); border-radius: var(--r-lg); box-shadow: var(--golge-3);
    padding: 6px; display: none; z-index: 60;
}
.dropdown.open { display: block; animation: sp-pop var(--hiz-1) var(--egri); transform-origin: top right; }
.dropdown a, .dropdown button {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 10px; border-radius: var(--r-sm);
    color: var(--murekkep); text-decoration: none; background: none; border: 0; font: inherit; font-size: var(--fs-md); cursor: pointer; min-height: 34px;
}
.dropdown a svg, .dropdown button svg { width: 17px; height: 17px; color: var(--murekkep-2); }
.dropdown a:hover, .dropdown button:hover, .dropdown a:focus-visible, .dropdown button:focus-visible { background: var(--yuzey-3); outline-offset: -2px; }
.dropdown hr { border: 0; border-top: 1px solid var(--cizgi-ince); margin: 6px -6px; }
.dropdown-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; border-bottom: 1px solid var(--cizgi-ince); margin: -6px -6px 6px; padding: 14px 16px; }
.dropdown-head .avatar { width: 36px; height: 36px; }
.dropdown-head strong { display: block; font-size: var(--fs-md); }
.dropdown-head span { display: block; font-size: var(--fs-xs); color: var(--soluk); overflow: hidden; text-overflow: ellipsis; }
.dropdown-label { padding: 6px 10px 4px; font-size: var(--fs-xs); color: var(--soluk); font-weight: 500; }

/* Segment (tema seçici ve genel) */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; margin: 0 4px 4px; background: var(--yuzey-2); border: 1px solid var(--cizgi); border-radius: var(--r-md); }
.segmented button { justify-content: center; padding: 6px 4px; font-size: var(--fs-xs); font-weight: 550; color: var(--murekkep-2); border-radius: var(--r-sm); gap: 5px; min-height: 28px; }
.segmented button svg { width: 15px; height: 15px; }
.segmented button[aria-pressed="true"] { background: var(--yuzey); color: var(--murekkep); box-shadow: var(--golge-2); }

.seg {
    display: inline-flex; gap: 2px; padding: 3px; background: var(--yuzey-3); border-radius: var(--r-md);
    box-shadow: inset 0 0 0 1px var(--cizgi-ince); max-width: 100%; overflow-x: auto; scrollbar-width: none; vertical-align: middle;
}
.seg::-webkit-scrollbar { display: none; }
.seg > a, .seg > button, .seg > label {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; min-height: 28px; border-radius: var(--r-sm);
    font: 500 var(--fs-sm)/1.2 var(--font-govde); color: var(--murekkep-2); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.seg > a:hover, .seg > button:hover, .seg > label:hover { color: var(--murekkep); }
.seg > [aria-current="page"], .seg > [aria-pressed="true"], .seg > .active, .seg > label:has(input:checked) {
    background: var(--yuzey); color: var(--murekkep); box-shadow: 0 1px 2px rgba(16, 32, 44, .1), 0 0 0 1px var(--cizgi-ince);
}
.seg > label input { position: absolute; opacity: 0; pointer-events: none; }
.seg > label:has(input:focus-visible) { outline: 2px solid var(--odak); outline-offset: 1px; }
.seg .badge { padding: 0 6px; font-size: .68rem; }

.content { padding: var(--s-6) var(--s-8) var(--s-10); max-width: 1480px; width: 100%; view-transition-name: sp-icerik; }
.content > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   4. Genel arama + komut paleti (Ctrl+K)
   --------------------------------------------------------------------- */
.search { position: relative; width: min(440px, 36vw); margin-left: var(--s-3); }
.search-field { position: relative; display: flex; align-items: center; }
.search-field > svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--soluk); pointer-events: none; }
.search input[type=search] {
    padding-left: 34px; padding-right: 70px; min-height: 36px; background: var(--yuzey); border-color: var(--cizgi);
    border-radius: var(--r-md); box-shadow: var(--golge-0);
}
.search input[type=search]:hover { border-color: var(--cizgi-koyu); }
.search input[type=search]::-webkit-search-cancel-button { display: none; }
.search-kbd { position: absolute; right: 8px; display: flex; gap: 3px; pointer-events: none; }
.search input:focus ~ .search-kbd { display: none; }
.search-pop {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--yuzey); border: 1px solid var(--cizgi);
    border-radius: var(--r-lg); box-shadow: var(--golge-3); max-height: min(72vh, 560px); overflow-y: auto; z-index: 70;
    padding: 6px; min-width: 380px; animation: sp-pop var(--hiz-1) var(--egri);
}
.search-pop[hidden] { display: none; }
.search-group { padding: 10px 10px 4px; font-size: var(--fs-xs); font-weight: 500; color: var(--soluk); display: flex; align-items: center; gap: 6px; }
.search-group svg { width: 14px; height: 14px; }
.search-opt {
    display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-md); color: var(--murekkep);
    text-decoration: none; cursor: pointer; min-height: 38px;
}
.search-opt > svg, .search-opt .so-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--yuzey-2); color: var(--murekkep-2); box-shadow: inset 0 0 0 1px var(--cizgi-ince); }
.search-opt .so-ic svg { width: 15px; height: 15px; }
.search-opt .so-main { min-width: 0; flex: 1; }
.search-opt .so-title { display: block; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-opt .so-sub { display: block; font-size: var(--fs-xs); color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-opt .so-tag { font: 500 .72rem var(--font-mono); color: var(--murekkep-2); background: var(--yuzey-2); border: 1px solid var(--cizgi-ince); padding: 1px 6px; border-radius: var(--r-xs); }
.search-opt .so-enter { opacity: 0; color: var(--soluk); font-size: var(--fs-xs); }
.search-opt[aria-selected="true"], .search-opt:hover { background: var(--yuzey-3); color: var(--murekkep); }
.search-opt[aria-selected="true"] .so-enter { opacity: 1; }
.search-opt[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--ikaz); }
.search-opt mark { background: color-mix(in srgb, var(--ikaz) 38%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-empty, .search-foot { padding: 12px 10px; color: var(--soluk); font-size: var(--fs-sm); }
.search-foot { border-top: 1px solid var(--cizgi-ince); margin: 6px -6px -6px; padding: 8px 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; background: var(--yuzey-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.search-foot a { font-weight: 550; }
.search-foot span { margin-left: auto; }
.search-open { display: none; }
.search-close { display: none !important; }

/* ---------------------------------------------------------------------
   5. Sayfa başlığı
   --------------------------------------------------------------------- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); }
.page-header > div:first-child { min-width: 0; }
.page-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.page-header h1 { margin: 0; font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.022em; line-height: 1.15; overflow-wrap: anywhere; }
.page-header .page-sub { margin: 6px 0 0; color: var(--soluk); font-size: var(--fs-md); max-width: 80ch; }
.help-btn {
    display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; padding: 0;
    border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--soluk); cursor: pointer; transform: translateY(1px);
    font: 600 .8rem/1 var(--font-govde); transition: color var(--hiz-1), border-color var(--hiz-1), background-color var(--hiz-1);
}
.help-btn:hover { color: var(--murekkep); border-color: var(--cizgi-koyu); background: var(--yuzey-3); }
.help-btn svg { width: 15px; height: 15px; }
.breadcrumbs { font-size: var(--fs-sm); color: var(--soluk); margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.breadcrumbs a { color: var(--soluk); text-decoration: none; }
.breadcrumbs a:hover { color: var(--murekkep); text-decoration: underline; }
.breadcrumbs > * + *::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 9px 2px 8px; border-right: 1.5px solid var(--cizgi-koyu); border-top: 1.5px solid var(--cizgi-koyu); transform: rotate(45deg); }
.page-header .breadcrumbs { display: none; }
.page-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }

/* Detay sayfası özeti: <div class="summary"> … </div> — başlık altında kayıt künyesi */
.summary {
    display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-8); align-items: center; padding: var(--s-4) var(--s-5);
    background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r-lg); margin-bottom: var(--s-5); box-shadow: var(--golge);
}
.summary-item { min-width: 0; }
.summary-item dt, .summary-label { font-size: var(--fs-xs); color: var(--soluk); margin: 0 0 3px; }
.summary-item dd, .summary-value { margin: 0; font-weight: 550; font-variant-numeric: tabular-nums; }
.summary-lead { display: flex; align-items: center; gap: var(--s-3); margin-right: auto; min-width: 0; }

/* Detay düzeni: ana sütun + yan panel */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: var(--s-5); align-items: start; }
.detail-layout > * > .card:last-child { margin-bottom: 0; }
.side-panel { display: grid; gap: var(--s-5); position: sticky; top: calc(var(--ust-yukseklik) + 16px); }
.side-panel > .card { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   6. Kart / panel / göstergeler
   --------------------------------------------------------------------- */
.card { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r-lg); box-shadow: var(--golge); margin-bottom: var(--s-5); min-width: 0; }
.card-header {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); flex-wrap: wrap;
    padding: 12px var(--s-5); min-height: 52px; border-bottom: 1px solid var(--cizgi-ince);
}
.card-header h2, .card-header h3 { margin: 0; font-size: .96rem; font-weight: 600; letter-spacing: -.006em; }
.card-header .muted { font-size: var(--fs-sm); }
.card-header > .card-desc, .card-desc { flex-basis: 100%; margin: -2px 0 0; font-size: var(--fs-sm); color: var(--soluk); }
.card-body { padding: var(--s-5); }
.card-body.flush { padding: 0; }
.card-body > :last-child { margin-bottom: 0; }
.card-footer { padding: 12px var(--s-5); border-top: 1px solid var(--cizgi-ince); background: var(--yuzey-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-footer > :last-child { margin-bottom: 0; }
.card.is-flat { box-shadow: none; }
.card.is-accent { border-top: 3px solid var(--ikaz); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.grid-2 > .card, .grid-3 > .card { margin-bottom: 0; }
.grid-2.stretch, .grid-3.stretch { align-items: stretch; }
.grid-2 + .card, .grid-3 + .card, .grid-2 + .grid-2, .grid-2 + .grid-3, .grid-3 + .grid-2, .grid-3 + .grid-3, .grid-2 + .stat-row, .grid-2 + section { margin-top: var(--s-5); }

/* Özet rakamlar (1.0 sözleşmesi) — 2.0'da gösterge kartı görünümü */
.stat-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0;
    background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r-lg); margin-bottom: var(--s-5);
    box-shadow: var(--golge); overflow: hidden;
}
.stat { position: relative; padding: 16px 20px 16px; border-right: 1px solid var(--cizgi-ince); text-decoration: none; color: inherit; display: block; min-width: 0; }
.stat:last-child { border-right: 0; }
a.stat { transition: background var(--gecis); }
a.stat:hover { background: var(--yuzey-2); color: inherit; }
a.stat:focus-visible { outline-offset: -3px; }
a.stat::after {
    content: ""; position: absolute; right: 14px; top: 16px; width: 6px; height: 6px; border-right: 1.5px solid var(--cizgi-koyu); border-top: 1.5px solid var(--cizgi-koyu);
    transform: rotate(45deg); opacity: 0; transition: opacity var(--hiz-1), transform var(--hiz-1);
}
a.stat:hover::after { opacity: 1; transform: translateX(2px) rotate(45deg); }
.stat-value { font: 700 2.375rem/1 var(--font-rakam); font-variant-numeric: tabular-nums; letter-spacing: .005em; color: var(--murekkep); overflow-wrap: anywhere; }
.stat-label { color: var(--murekkep-2); font-size: var(--fs-sm); margin-top: 8px; line-height: 1.35; }
.stat.warn .stat-value { color: var(--uyari); }
.stat.danger .stat-value { color: var(--hata); }
.stat.ok .stat-value { color: var(--onay); }
.stat.warn::before, .stat.danger::before, .stat.ok::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: currentColor; opacity: 0; }
.stat.warn::before { color: var(--ikaz); opacity: 1; }
.stat.danger::before { color: var(--hata); opacity: 1; }
.stat-meta { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--soluk); }
.stat-row .badge { margin-bottom: 4px; }

/* Gösterge kartları 2.0: <div class="kpi-grid"><a class="kpi">… */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s-4); margin-bottom: var(--s-5); }
.kpi {
    position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; min-width: 0;
    background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r-lg); box-shadow: var(--golge);
    color: inherit; text-decoration: none; transition: border-color var(--hiz-1), box-shadow var(--hiz-1);
}
a.kpi:hover { border-color: var(--cizgi-koyu); box-shadow: var(--golge-2); color: inherit; }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--murekkep-2); font-weight: 500; }
.kpi-label svg { width: 16px; height: 16px; color: var(--soluk); }
.kpi-value { display: flex; align-items: baseline; gap: 6px; font: 700 var(--fs-4xl)/1 var(--font-rakam); letter-spacing: .005em; color: var(--murekkep); font-variant-numeric: tabular-nums; }
.kpi-value small { font: 500 var(--fs-sm)/1 var(--font-govde); color: var(--soluk); letter-spacing: 0; }
.kpi.is-warn .kpi-value { color: var(--uyari); }
.kpi.is-danger .kpi-value { color: var(--hata); }
.kpi.is-ok .kpi-value { color: var(--onay); }
.kpi-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; min-height: 28px; }
.kpi-meta { font-size: var(--fs-xs); color: var(--soluk); line-height: 1.35; }
.kpi .spark { width: 96px; height: 28px; flex: none; }
.delta {
    display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 5px; border-radius: var(--r-tam);
    font: 600 .72rem/1.5 var(--font-govde); font-variant-numeric: tabular-nums; white-space: nowrap;
    background: var(--yuzey-3); color: var(--murekkep-2);
}
.delta svg { width: 12px; height: 12px; }
.delta.is-up { background: var(--onay-zemin); color: var(--onay); }
.delta.is-down { background: var(--hata-zemin); color: var(--hata); }
.delta.is-up.is-bad { background: var(--hata-zemin); color: var(--hata); }
.delta.is-down.is-good { background: var(--onay-zemin); color: var(--onay); }

/* Satır içi çizgi grafik (sparkline()) */
.spark { display: block; overflow: visible; }
.spark .sp-line { fill: none; stroke: var(--celik-2); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark .sp-area { fill: color-mix(in srgb, var(--celik-2) 12%, transparent); stroke: none; }
.spark .sp-dot { fill: var(--ikaz); stroke: var(--yuzey); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark .sp-bar { fill: color-mix(in srgb, var(--celik-2) 55%, transparent); }
.spark .sp-bar.is-son { fill: var(--ikaz); }

/* İlerleme halkası (progress_ring()) */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--ring-size, 64px); height: var(--ring-size, 64px); }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .ring-track { stroke: var(--yuzey-3); }
.ring .ring-fill { stroke: var(--celik-2); stroke-linecap: round; transition: stroke-dashoffset .6s var(--egri); }
.ring.is-tam .ring-fill { stroke: var(--onay); }
.ring-val { position: absolute; font: 700 1.2rem/1 var(--font-rakam); font-variant-numeric: tabular-nums; color: var(--murekkep); }
.ring-lg { --ring-size: 104px; }
.ring-lg .ring-val { font-size: 1.9rem; }
.ring-lg circle { stroke-width: 7; }

/* ---------------------------------------------------------------------
   7. Tablo
   --------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap.fits { overflow: visible; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8438rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--cizgi-ince); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: var(--s-5); }
.table th:last-child, .table td:last-child { padding-right: var(--s-5); }
.table thead th {
    font-weight: 550; color: var(--murekkep-2); background: var(--yuzey-2); font-size: .75rem; white-space: nowrap;
    border-bottom: 1px solid var(--cizgi); letter-spacing: .005em; padding-top: 9px; padding-bottom: 9px;
}
.table-wrap.fits .table thead th { position: sticky; top: var(--ust-yukseklik); z-index: 2; }
.table thead th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.table thead th a:hover { color: var(--murekkep); }
.table thead th[aria-sort] a::after, .table thead th a.is-sorted::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.table thead th[aria-sort="ascending"] a::after, .table thead th a.is-asc::after { border-top: 0; border-bottom: 5px solid currentColor; }
.card > .table-wrap:first-child .table thead th:first-child,
.card-body.flush:first-child > .table-wrap:first-child .table thead th:first-child { border-top-left-radius: var(--r-lg); }
.card > .table-wrap:first-child .table thead th:last-child,
.card-body.flush:first-child > .table-wrap:first-child .table thead th:last-child { border-top-right-radius: var(--r-lg); }
.card > .table-wrap:last-child .table > :last-child > tr:last-child > :first-child,
.card > .card-body.flush:last-child > .table-wrap:last-child .table > :last-child > tr:last-child > :first-child,
.card > .card-body.flush:last-child > .table:last-child > :last-child > tr:last-child > :first-child { border-bottom-left-radius: var(--r-lg); }
.card > .table-wrap:last-child .table > :last-child > tr:last-child > :last-child,
.card > .card-body.flush:last-child > .table-wrap:last-child .table > :last-child > tr:last-child > :last-child,
.card > .card-body.flush:last-child > .table:last-child > :last-child > tr:last-child > :last-child { border-bottom-right-radius: var(--r-lg); }
.table tbody tr { transition: background-color var(--hiz-1); }
.table tbody tr:hover > td, .table tbody tr:hover > th { background: color-mix(in srgb, var(--yuzey-3) 55%, transparent); }
.table tbody tr.is-selected > td, .table tbody tr:has(> td > input[type=checkbox]:checked) > td { background: color-mix(in srgb, var(--bilgi) 7%, var(--yuzey)); }
.table tbody tr:last-child > td, .table tbody tr:last-child > th { border-bottom: 0; }
.table tfoot th, .table tfoot td { background: var(--yuzey-2); border-top: 1px solid var(--cizgi); border-bottom: 0; font-weight: 600; }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.table .actions > * + * { margin-left: 4px; }
.table .actions .btn { min-height: 28px; padding: 3px 9px; }
.table .actions .btn-icon, .table .actions .btn.btn-icon { width: 28px; padding: 0; }
.table a.row-link { color: var(--murekkep); font-weight: 550; text-decoration: none; }
.table a.row-link:hover { color: var(--baglanti); text-decoration: underline; }
.table .sub { display: block; font-size: .75rem; color: var(--soluk); font-weight: 400; margin-top: 1px; }
.table input[type=checkbox] { vertical-align: middle; }
.table .col-check { width: 1%; padding-right: 0; }
.table td.muted, .table .dim { color: var(--soluk); }
.table-compact th, .table-compact td { padding-top: 6px; padding-bottom: 6px; }
.table-zebra tbody tr:nth-child(even) > td { background: color-mix(in srgb, var(--yuzey-2) 70%, transparent); }
.table .row-actions { display: inline-flex; gap: 2px; justify-content: flex-end; }
@media (hover: hover) {
    .table .row-actions .btn-ghost { opacity: .6; }
    .table tr:hover .row-actions .btn-ghost, .table .row-actions .btn-ghost:focus-visible { opacity: 1; }
}
/* Toplu işlem çubuğu (seçim varken) */
.bulk-bar {
    display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding: 8px var(--s-5); min-height: 48px;
    background: color-mix(in srgb, var(--bilgi) 7%, var(--yuzey)); border-bottom: 1px solid var(--bilgi-cizgi); font-size: var(--fs-sm);
}
.bulk-bar strong { margin-right: auto; }

/* ---------------------------------------------------------------------
   8. Boş durum (illüstrasyonlu)
   --------------------------------------------------------------------- */
.empty-state { padding: 40px 20px 40px; text-align: center; color: var(--murekkep-2); }
.empty-state::before {
    content: ""; display: block; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: var(--r-lg);
    background: var(--soluk); opacity: .9;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='1' width='50' height='50' rx='11' stroke-opacity='.35'/%3E%3Cpath d='M14 23l12-7 12 7v13H14z'/%3E%3Cpath d='M14 29h7l1.5 3h7l1.5-3h7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='1' width='50' height='50' rx='11' stroke-opacity='.35'/%3E%3Cpath d='M14 23l12-7 12 7v13H14z'/%3E%3Cpath d='M14 29h7l1.5 3h7l1.5-3h7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.empty-state:has(> .empty-icon)::before, .empty-state:has(> .empty-illus)::before { display: none; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; border-radius: var(--r-lg); background: var(--yuzey-2); border: 1px solid var(--cizgi); color: var(--soluk); }
.empty-icon svg { width: 24px; height: 24px; }
.empty-illus { display: block; width: 168px; height: 104px; margin: 0 auto 14px; color: var(--soluk); }
.empty-illus .ei-zemin { fill: var(--yuzey-2); }
.empty-illus .ei-cizgi { stroke: var(--cizgi-koyu); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.empty-illus .ei-kesik { stroke: var(--cizgi-koyu); fill: none; stroke-width: 1.5; stroke-dasharray: 3 5; stroke-linecap: round; }
.empty-illus .ei-bariyer { fill: var(--yuzey); stroke: var(--cizgi-koyu); stroke-width: 1.5; }
.empty-illus .ei-serit { fill: var(--ikaz); }
.empty-illus .ei-koni { fill: var(--ikaz); }
.empty-illus .ei-koni-b { fill: var(--yuzey); }
.empty-illus .ei-kart { fill: var(--yuzey); stroke: var(--cizgi-koyu); stroke-width: 1.5; }
.empty-illus .ei-ikon { color: var(--celik-metin); }
.empty-state.is-ok .empty-illus .ei-ikon { color: var(--onay); }
.empty-state.is-ok .empty-illus .ei-kart { stroke: var(--onay-cizgi); }
.empty-state.is-ok .empty-icon { color: var(--onay); background: var(--onay-zemin); border-color: var(--onay-cizgi); }
.empty-state h3 { margin-bottom: 6px; font-size: var(--fs-lg); color: var(--murekkep); }
.empty-state p { margin: 0 auto 16px; color: var(--soluk); max-width: 54ch; }
.empty-state p:last-child { margin-bottom: 0; }
.empty-state .btn + .btn { margin-left: 6px; }
.empty-state.is-compact { padding: 24px 16px; }
.empty-state.is-compact .empty-illus { width: 120px; height: 74px; margin-bottom: 10px; }

/* İskelet yükleme (JS veri yüklerken) */
.skeleton, .sk-line {
    display: block; border-radius: var(--r-sm); background: var(--yuzey-3);
    background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--yuzey) 60%, transparent), transparent);
    background-size: 200% 100%; background-repeat: no-repeat; animation: sp-shimmer 1.3s linear infinite;
}
.sk-line { height: 10px; margin: 6px 0; }
.sk-line.w-40 { width: 40%; } .sk-line.w-60 { width: 60%; } .sk-line.w-80 { width: 80%; }
.sk-row { display: flex; gap: 10px; align-items: center; padding: 10px; }
.sk-row .sk-dot { width: 28px; height: 28px; border-radius: var(--r-sm); flex: none; }
.sk-row > div { flex: 1; }
@keyframes sp-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ---------------------------------------------------------------------
   9. Butonlar
   --------------------------------------------------------------------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 7px 14px; min-height: var(--kontrol-h); border-radius: var(--r-md); border: 1px solid var(--cizgi-koyu);
    background: var(--yuzey); color: var(--murekkep); font: 500 .8438rem/1.2 var(--font-govde);
    text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 1px rgba(16, 32, 44, .05);
    transition: background-color var(--hiz-1), border-color var(--hiz-1), color var(--hiz-1), box-shadow var(--hiz-1);
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--yuzey-3); color: var(--murekkep); border-color: var(--cizgi-koyu); }
.btn:active { transform: translateY(.5px); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--odak); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--celik); border-color: var(--celik); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 2px rgba(16, 32, 44, .16); }
.btn-primary:hover { background: var(--celik-2); border-color: var(--celik-2); color: #fff; }
.btn-accent { background: var(--ikaz); border-color: var(--ikaz-2); color: var(--ikaz-metin); font-weight: 600; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1), 0 1px 2px rgba(16, 32, 44, .12); }
.btn-accent:hover { background: var(--ikaz-2); border-color: var(--ikaz-2); color: var(--ikaz-metin); }
.btn-success { background: #17734a; border-color: #17734a; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.btn-success:hover { background: #125e3c; border-color: #125e3c; color: #fff; }
.btn-danger { background: var(--yuzey); border-color: var(--hata-cizgi); color: var(--hata); }
.btn-danger:hover { background: var(--hata-zemin); border-color: var(--hata); color: var(--hata); }
.btn-danger-solid { background: #b42318; border-color: #b42318; color: #fff; }
.btn-danger-solid:hover { background: #941c13; border-color: #941c13; color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--yuzey-3); border-color: transparent; }
.btn-link { border: 0; background: none; box-shadow: none; padding: 0; min-height: 0; color: var(--baglanti); }
.btn-link:hover { background: none; text-decoration: underline; color: var(--celik-2); }
.btn-sm { padding: 4px 10px; min-height: 30px; font-size: .8125rem; gap: 5px; border-radius: var(--r-sm); }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { padding: 10px 20px; min-height: 44px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: var(--kontrol-h); }
.btn-icon.btn-sm { width: 30px; }
.btn[disabled], .btn.disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-color: var(--sp-renk, var(--murekkep)) transparent var(--sp-renk, var(--murekkep)) transparent;
    animation: sp-spin .7s linear infinite; visibility: visible;
}
.btn-primary.is-loading, .btn-success.is-loading, .btn-danger-solid.is-loading { --sp-renk: #fff; }
.btn-accent.is-loading { --sp-renk: var(--ikaz-metin); }
.btn-danger.is-loading { --sp-renk: var(--hata); }
.inline-form { display: inline; }
.btn-group { display: inline-flex; }
.btn-group > .btn { border-radius: 0; margin-left: -1px; }
.btn-group > .btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); margin-left: 0; }
.btn-group > .btn:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.btn .kbd-hint { margin-left: 4px; opacity: .7; font-size: .72rem; }
@keyframes sp-spin { to { transform: rotate(360deg); } }
@keyframes sp-pop { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes sp-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------------
   10. Formlar
   --------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-section {
    grid-column: 1 / -1; margin: var(--s-3) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--cizgi-ince);
    font: 600 .96rem/1.3 var(--font-baslik); color: var(--murekkep); letter-spacing: -.006em;
}
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section small, .form-section .form-section-desc { display: block; margin-top: 3px; font: 400 var(--fs-sm)/1.45 var(--font-govde); color: var(--soluk); letter-spacing: 0; }
/* İki sütunlu bölüm: solda başlık+açıklama, sağda alanlar  <div class="form-block"><div class="form-block-head"><h3>..</h3><p>..</p></div><div class="form-block-body">…</div></div> */
.form-block { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: var(--s-6); padding: var(--s-6) 0; border-top: 1px solid var(--cizgi-ince); }
.form-block:first-child { border-top: 0; padding-top: 0; }
.form-block-head h3 { font-size: .96rem; margin: 0 0 4px; }
.form-block-head p { font-size: var(--fs-sm); color: var(--soluk); margin: 0; }
.field { min-width: 0; }
.field label, .label { display: block; font-weight: 550; font-size: .8125rem; margin-bottom: 6px; color: var(--murekkep); }
.field .req { color: var(--hata); }
.field .opt { font-weight: 400; color: var(--soluk); font-size: var(--fs-xs); margin-left: 4px; }
.field .hint { font-size: .78rem; color: var(--soluk); margin-top: 5px; line-height: 1.45; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month],
input[type=tel], input[type=search], input[type=url], input[type=time], input[type=datetime-local], input[type=week], input[type=file], select, textarea {
    width: 100%; padding: 7px 11px; min-height: var(--kontrol-h); border: 1px solid var(--cizgi-koyu); border-radius: var(--r-md);
    background-color: var(--yuzey-girdi); color: var(--murekkep); font: inherit; font-size: .875rem; line-height: 1.4;
    box-shadow: 0 1px 1px rgba(16, 32, 44, .03);
    transition: border-color var(--hiz-1), box-shadow var(--hiz-1);
}
input::placeholder, textarea::placeholder { color: var(--soluk); opacity: .8; }
input:hover:not(:focus):not([disabled]):not([readonly]), select:hover:not(:focus):not([disabled]), textarea:hover:not(:focus):not([disabled]) { border-color: color-mix(in srgb, var(--cizgi-koyu) 55%, var(--murekkep)); }
select {
    -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer;
    background-image: var(--select-ok); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}
select[multiple] { background-image: none; padding-right: 10px; min-height: 120px; }
select option { background: var(--yuzey); color: var(--murekkep); }
input[type=date], input[type=month], input[type=time], input[type=number], input[type=datetime-local] { font-variant-numeric: tabular-nums; }
input[type=file] { padding: 5px; cursor: pointer; }
input[type=file]::file-selector-button {
    margin-right: 10px; padding: 5px 12px; border: 1px solid var(--cizgi-koyu); border-radius: var(--r-sm);
    background: var(--yuzey-2); color: var(--murekkep); font: 500 .8125rem var(--font-govde); cursor: pointer;
}
input[type=color] { min-height: var(--kontrol-h); border: 1px solid var(--cizgi-koyu); border-radius: var(--r-md); background: var(--yuzey-girdi); cursor: pointer; }
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--odak); box-shadow: 0 0 0 3px var(--odak-halka); }
input[disabled], select[disabled], textarea[disabled], input[readonly] { background-color: var(--yuzey-2); color: var(--murekkep-2); cursor: not-allowed; box-shadow: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--celik-2); width: 16px; height: 16px; margin: 0; cursor: pointer; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--hata); }
.has-error input:focus, .has-error select:focus, .has-error textarea:focus { box-shadow: 0 0 0 3px var(--hata-zemin); }
.has-error label { color: var(--hata); }
.field-error { display: flex; align-items: flex-start; gap: 6px; color: var(--hata); font-size: .78rem; margin-top: 6px; font-weight: 500; }
.field-error::before {
    content: "!"; flex: none; display: inline-grid; place-items: center; width: 14px; height: 14px; margin-top: 1px; border-radius: 50%;
    background: var(--hata); color: var(--yuzey); font: 700 10px/1 var(--font-govde);
}
.check { display: flex; align-items: center; gap: 9px; font-weight: 400 !important; cursor: pointer; min-height: 28px; }
.check input { width: 18px; height: 18px; flex: none; }
.form-actions { display: flex; gap: var(--s-2); justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; }
.form-actions.is-start { justify-content: flex-start; }
.form-actions.is-between { justify-content: space-between; }
.form-actions .form-actions-left { margin-right: auto; display: flex; gap: var(--s-2); }
.card-footer.form-actions { padding-top: 12px; }
.input-group { display: flex; }
.input-group > input, .input-group > select { border-radius: 0; flex: 1; min-width: 0; }
.input-group > :first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.input-group > :last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.input-group > * + * { margin-left: -1px; }
/* Ön/son ek: <div class="input-affix"><span class="affix">₺</span><input …><span class="affix">/gün</span></div> */
.input-affix {
    display: flex; align-items: stretch; border: 1px solid var(--cizgi-koyu); border-radius: var(--r-md); background: var(--yuzey-girdi);
    transition: border-color var(--hiz-1), box-shadow var(--hiz-1); overflow: hidden; box-shadow: 0 1px 1px rgba(16, 32, 44, .03);
}
.input-affix:focus-within { border-color: var(--odak); box-shadow: 0 0 0 3px var(--odak-halka); }
.input-affix > input, .input-affix > select { border: 0 !important; box-shadow: none !important; border-radius: 0; flex: 1; min-width: 0; background-color: transparent; }
.input-affix > .affix { display: inline-flex; align-items: center; padding: 0 10px; color: var(--soluk); font-size: var(--fs-sm); background: var(--yuzey-2); white-space: nowrap; }
.input-affix > .affix:first-child { border-right: 1px solid var(--cizgi-ince); }
.input-affix > .affix:last-child { border-left: 1px solid var(--cizgi-ince); }
.has-error .input-affix { border-color: var(--hata); }
/* Anahtar (switch): <label class="switch"><input type="checkbox" role="switch" name="x"><span class="switch-track"></span>Metin</label> */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 400 !important; min-height: 28px; position: relative; }
.switch input { position: absolute; opacity: 0; width: 36px; height: 20px; margin: 0; cursor: pointer; }
.switch-track { position: relative; width: 36px; height: 20px; flex: none; border-radius: var(--r-tam); background: var(--cizgi-koyu); transition: background-color var(--hiz-2) var(--egri); }
.switch-track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform var(--hiz-2) var(--egri); }
.switch input:checked + .switch-track { background: var(--onay); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--odak); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .5; }
/* Seçim kartları (radyo): <label class="choice"><input type="radio"><span><b>Başlık</b><small>açıklama</small></span></label> */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-2); }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--cizgi); border-radius: var(--r-md); cursor: pointer; background: var(--yuzey); font-weight: 400 !important; }
.choice:hover { border-color: var(--cizgi-koyu); }
.choice:has(input:checked) { border-color: var(--celik-2); box-shadow: inset 0 0 0 1px var(--celik-2); background: color-mix(in srgb, var(--celik-2) 5%, var(--yuzey)); }
.choice input { margin-top: 2px; }
.choice b { display: block; font-weight: 550; }
.choice small { display: block; color: var(--soluk); font-size: var(--fs-xs); margin-top: 2px; }
fieldset { border: 1px solid var(--cizgi); border-radius: var(--r-md); padding: 10px 14px 12px; margin: 0; min-width: 0; }
legend { font-weight: 550; font-size: var(--fs-sm); padding: 0 4px; }
details > summary { cursor: pointer; }

/* Liste üstü filtre çubuğu */
.filters {
    display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; padding: 14px var(--s-5);
    border-bottom: 1px solid var(--cizgi-ince); background: var(--yuzey-2); border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.filters .field { min-width: 160px; }
.filters .field.grow { flex: 1; min-width: 220px; }
.filters label { font-size: .75rem; color: var(--murekkep-2); margin-bottom: 5px; font-weight: 500; }
.filters .btn { min-height: var(--kontrol-h); }
.filters input, .filters select { background-color: var(--yuzey); }
.filters .filters-reset { align-self: center; margin-top: 18px; font-size: var(--fs-sm); }
.card > .filters:only-child, .filters.is-standalone { border-radius: var(--r-lg); border-bottom: 0; }

/* ---------------------------------------------------------------------
   11. Rozet, durum çipi, uyarılar, bildirim balonu, pencereler
   --------------------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--r-tam);
    font-size: .72rem; font-weight: 550; line-height: 1.45; white-space: nowrap; border: 0; letter-spacing: .005em;
    vertical-align: middle; box-shadow: inset 0 0 0 1px var(--b-cizgi, transparent);
}
.badge-gray { background: var(--yuzey-3); color: var(--murekkep-2); --b-cizgi: var(--cizgi); }
.badge-green { background: var(--onay-zemin); color: var(--onay); --b-cizgi: var(--onay-cizgi); }
.badge-red { background: var(--hata-zemin); color: var(--hata); --b-cizgi: var(--hata-cizgi); }
.badge-yellow { background: var(--uyari-zemin); color: var(--uyari); --b-cizgi: var(--uyari-cizgi); }
.badge-blue { background: var(--bilgi-zemin); color: var(--bilgi); --b-cizgi: var(--bilgi-cizgi); }
.badge-dark { background: color-mix(in srgb, var(--murekkep) 9%, var(--yuzey)); color: var(--murekkep); --b-cizgi: var(--cizgi-koyu); } /* son/kapanmış durum: kilitli, ödendi, iptal */
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* Durum çipi: status('Onaylandı','ok|warn|danger|info|neutral') — rozetin noktalı, hafif hâli */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--murekkep); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st, var(--cizgi-koyu)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st, var(--cizgi-koyu)) 18%, transparent); flex: none; }
.status-ok { --st: var(--onay); }
.status-warn { --st: var(--ikaz); }
.status-danger { --st: var(--hata); }
.status-info { --st: var(--bilgi); }
.status-neutral { --st: var(--cizgi-koyu); }

.alert {
    position: relative; padding: 11px 14px 11px 42px; border-radius: var(--r-md); margin-bottom: var(--s-4);
    border: 1px solid transparent; font-size: var(--fs-md); color: var(--murekkep); line-height: 1.5;
}
.alert::before {
    content: ""; position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 50%;
    background: currentColor; -webkit-mask: var(--alert-ikon) center / 18px no-repeat; mask: var(--alert-ikon) center / 18px no-repeat;
    color: var(--alert-renk);
}
.alert-success { background: var(--onay-zemin); border-color: var(--onay-cizgi); --alert-renk: var(--onay);
    --alert-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2l-4-4 1.4-1.4 2.6 2.6 5.4-5.4 1.4 1.4z'/%3E%3C/svg%3E"); }
.alert-error { background: var(--hata-zemin); border-color: var(--hata-cizgi); --alert-renk: var(--hata);
    --alert-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1 5h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E"); }
.alert-warning { background: var(--uyari-zemin); border-color: var(--uyari-cizgi); --alert-renk: var(--uyari);
    --alert-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2L1 21h22zm-1 7h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E"); }
.alert-info { background: var(--bilgi-zemin); border-color: var(--bilgi-cizgi); --alert-renk: var(--bilgi);
    --alert-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1 5h2v2h-2zm0 4h2v6h-2z'/%3E%3C/svg%3E"); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert > :last-child { margin-bottom: 0; }
.alert a { color: inherit; font-weight: 600; }
p.alert { max-width: none; }

.toast-region {
    position: fixed; z-index: 120; right: 20px; top: calc(var(--ust-yukseklik) + 12px); width: min(400px, calc(100vw - 32px));
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast-region .alert {
    pointer-events: auto; margin: 0; padding-right: 40px; background: var(--yuzey); box-shadow: var(--golge-3);
    border-color: var(--cizgi); border-radius: var(--r-lg); animation: sp-toast var(--hiz-3) var(--egri); overflow: hidden;
}
.toast-region .alert::before { left: 14px; }
.toast-region .alert.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity .2s, transform .2s; }
.toast-close {
    position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; display: grid; place-items: center;
    border: 0; background: none; border-radius: var(--r-sm); color: var(--soluk); cursor: pointer;
}
.toast-close:hover { background: var(--yuzey-3); color: var(--murekkep); }
.toast-close svg { width: 16px; height: 16px; }
.toast-progress { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--alert-renk); opacity: .55; animation: sp-toast-bar linear forwards; }
@keyframes sp-toast { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sp-toast-bar { from { width: 100%; } to { width: 0; } }

/* Onay penceresi (native <dialog>) */
.sp-dialog {
    border: 1px solid var(--cizgi); border-radius: var(--r-xl); padding: 0; width: min(440px, calc(100vw - 32px));
    background: var(--yuzey); color: var(--murekkep); box-shadow: var(--golge-3);
}
.sp-dialog::backdrop { background: rgba(8, 16, 22, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: sp-fade var(--hiz-2); }
.sp-dialog[open] { animation: sp-pop var(--hiz-2) var(--egri); }
.sp-dialog-body { display: flex; gap: 14px; padding: 22px 22px 18px; }
.sp-dialog-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--uyari-zemin); color: var(--uyari); }
.sp-dialog.is-danger .sp-dialog-icon { background: var(--hata-zemin); color: var(--hata); }
.sp-dialog-icon svg { width: 20px; height: 20px; }
.sp-dialog h2 { font-size: var(--fs-lg); margin: 8px 0 6px; }
.sp-dialog p { margin: 0; color: var(--murekkep-2); }
.sp-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px; background: var(--yuzey-2); border-top: 1px solid var(--cizgi-ince); border-radius: 0 0 var(--r-xl) var(--r-xl); }

/* Yan çekmece (<dialog class="drawer">) — yardım paneli ve hızlı ayrıntılar */
.drawer {
    margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); padding: 0; border: 0;
    border-left: 1px solid var(--cizgi); background: var(--yuzey); color: var(--murekkep); box-shadow: var(--golge-3);
    display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: sp-drawer var(--hiz-3) var(--egri); }
.drawer::backdrop { background: rgba(8, 16, 22, .32); animation: sp-fade var(--hiz-2); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--cizgi-ince); }
.drawer-head h2 { margin: 0; font-size: var(--fs-lg); flex: 1; }
.drawer-body { padding: 18px 20px 24px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 12px 20px; border-top: 1px solid var(--cizgi-ince); background: var(--yuzey-2); font-size: var(--fs-sm); color: var(--soluk); }
@keyframes sp-drawer { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Yardım metni (yardım paneli ve /baslangic) */
.prose { font-size: .9rem; line-height: 1.6; color: var(--murekkep-2); }
.prose h3 { font-size: .92rem; color: var(--murekkep); margin: 18px 0 6px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 10px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin: 3px 0; }
.prose li::marker { color: var(--soluk); }
.prose strong { color: var(--murekkep); }
.prose .tip { padding: 10px 12px; border-radius: var(--r-md); background: var(--yuzey-2); border: 1px solid var(--cizgi-ince); font-size: var(--fs-sm); margin: 12px 0; }

/* ---------------------------------------------------------------------
   12. Sekmeler, tanım listesi, sayfalama
   --------------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cizgi); margin-bottom: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
    position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px 11px; text-decoration: none; color: var(--murekkep-2);
    white-space: nowrap; font-weight: 500; font-size: var(--fs-md); border-radius: var(--r-md) var(--r-md) 0 0;
}
.tabs a svg { width: 16px; height: 16px; color: var(--soluk); }
.tabs a:hover { color: var(--murekkep); background: color-mix(in srgb, var(--yuzey-3) 70%, transparent); }
.tabs a.active, .tabs a[aria-current="page"] { color: var(--murekkep); font-weight: 600; }
.tabs a.active::after, .tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--ikaz); }
.tabs a.active svg, .tabs a[aria-current="page"] svg { color: var(--murekkep); }
.tabs .badge { font-size: .68rem; padding: 0 6px; }
/* Hap sekmeler: <nav class="tabs tabs-pill"> */
.tabs.tabs-pill { border-bottom: 0; gap: 6px; flex-wrap: wrap; overflow: visible; }
.tabs.tabs-pill a { border-radius: var(--r-tam); padding: 5px 12px; border: 1px solid var(--cizgi); background: var(--yuzey); font-size: var(--fs-sm); }
.tabs.tabs-pill a:hover { border-color: var(--cizgi-koyu); }
.tabs.tabs-pill a.active, .tabs.tabs-pill a[aria-current="page"] { background: var(--celik); border-color: var(--celik); color: #fff; }
.tabs.tabs-pill a.active::after, .tabs.tabs-pill a[aria-current="page"]::after { display: none; }
.tabs.tabs-pill a.active svg, .tabs.tabs-pill a[aria-current="page"] svg { color: #fff; }
.card > .tabs { margin: 0; padding: 0 var(--s-4); }

.dl { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 0; margin: 0; }
.dl dt, .dl dd { padding: 10px 0; border-bottom: 1px solid var(--cizgi-ince); margin: 0; min-width: 0; }
.dl dt { color: var(--soluk); font-size: .8125rem; padding-right: 12px; }
.dl dd { overflow-wrap: anywhere; }
.dl dt:nth-last-of-type(1), .dl dd:last-child { border-bottom: 0; }
.dl dt:first-child, .dl dt:first-child + dd { padding-top: 0; }

.pagination { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 12px var(--s-5); border-top: 1px solid var(--cizgi-ince); }
.card-footer > .pagination { padding: 0; border: 0; }
.pagination a, .pagination span.current {
    display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px;
    border-radius: var(--r-md); border: 1px solid var(--cizgi); text-decoration: none; color: var(--murekkep); font-size: .8125rem;
    font-variant-numeric: tabular-nums; background: var(--yuzey);
}
.pagination a:hover { background: var(--yuzey-3); border-color: var(--cizgi-koyu); }
.pagination span.current { background: var(--celik); color: #fff; border-color: var(--celik); font-weight: 600; }
.pagination .muted { margin-left: auto; font-size: .8125rem; }

/* Zaman çizelgesi (durum geçmişi): <ol class="timeline"><li class="is-done">…</li></ol> */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cizgi-koyu); background: var(--yuzey); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 19px; bottom: 2px; width: 2px; background: var(--cizgi-ince); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--onay); border-color: var(--onay); }
.timeline li.is-current::before { background: var(--ikaz); border-color: var(--ikaz); }
.timeline .sub, .timeline time { display: block; font-size: var(--fs-xs); color: var(--soluk); }

/* ---------------------------------------------------------------------
   13. Giriş ve hesap ekranları (views/auth — kimlik doğrulama ekibi kullanır)
   --------------------------------------------------------------------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(440px, 1fr); background: var(--zemin); }
.auth-side {
    position: relative; overflow: hidden; color: #dbe6ee; padding: 44px 56px 40px;
    display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
    background: radial-gradient(120% 80% at 0% 0%, #19364a 0%, transparent 60%), linear-gradient(160deg, #10202b 0%, #0b1720 100%);
}
.auth-side::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
    background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 100%);
}
.auth-side::after { content: ""; position: absolute; left: 56px; bottom: 0; width: 120px; height: 5px; border-radius: 3px 3px 0 0; background: repeating-linear-gradient(-45deg, var(--ikaz) 0 8px, #10202b 8px 16px); }
.auth-side h1 { font-size: clamp(2.2rem, 3.4vw, 3.1rem); line-height: 1.05; color: #fff; max-width: 13ch; margin: 64px 0 18px; letter-spacing: -.035em; font-weight: 600; }
.auth-side p { color: #9fb4c3; max-width: 42ch; font-size: 1rem; line-height: 1.55; }
.auth-side .brand { padding: 0; background: none; box-shadow: none; gap: 12px; }
.auth-side .brand-name { font-size: 1.05rem; color: #fff; }
.auth-side .brand-tenant { color: #8ea6b6; }
.auth-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; max-width: 44ch; }
.auth-points li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; color: #c9d7e1; font-size: .9rem; line-height: 1.5; }
.auth-points svg { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--ikaz); margin-top: -3px; }
.auth-side .auth-foot { color: #7890a0; font-size: .8rem; margin: 0; position: relative; z-index: 1; }
.auth-crane { position: absolute; right: -24px; bottom: 0; width: 420px; max-width: 62%; color: #cfe0ec; opacity: .5; pointer-events: none; z-index: -1; }
.auth-crane .ac-pencere { fill: color-mix(in srgb, var(--ikaz) 70%, transparent); opacity: .5; }
.auth-crane .ac-yuk rect { fill: var(--ikaz); }
.auth-crane .ac-yuk path { stroke: #fff; }
.auth-form-wrap { position: relative; display: grid; place-items: center; padding: 40px 24px; background: var(--zemin); }
@media (max-height: 820px) { .auth-crane { opacity: .22; } }
.auth-card {
    width: 100%; max-width: 384px; background: transparent; border: 0; border-radius: 0;
    padding: 0; box-shadow: none;
}
.auth-card h2 { font-size: 1.75rem; margin-bottom: 8px; letter-spacing: -.03em; }
.auth-card .auth-lead { color: var(--soluk); margin: 0 0 22px; }
.auth-card .field { margin-bottom: 16px; }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=text], .auth-card input[type=tel] { min-height: 44px; font-size: 1rem; }
.auth-card .btn { width: 100%; min-height: 46px; font-size: .95rem; margin-top: 8px; border-radius: 10px; }
.auth-card .btn-link, .auth-card .btn-ghost { width: auto; min-height: 0; margin: 0; }
.auth-card .alert { font-size: .85rem; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 14px; font-size: var(--fs-sm); }
.auth-row a { font-weight: 500; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--soluk); font-size: var(--fs-xs); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--cizgi); }
.auth-icon { width: 48px; height: 48px; border-radius: var(--r-lg); display: grid; place-items: center; margin-bottom: 16px; background: var(--yuzey-2); border: 1px solid var(--cizgi); color: var(--celik-metin); }
.auth-icon svg { width: 24px; height: 24px; }
.auth-icon.is-ok { background: var(--onay-zemin); border-color: var(--onay-cizgi); color: var(--onay); }
.auth-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: var(--fs-sm); color: var(--soluk); text-decoration: none; }
.auth-back:hover { color: var(--murekkep); }
.auth-back svg { width: 15px; height: 15px; }
/* Doğrulama kodu (2FA): <div class="otp"><input inputmode="numeric" maxlength="1">×6</div> ya da tek alan .otp-single */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.otp input, .auth-card .otp input { text-align: center; font: 600 1.4rem/1 var(--font-govde); font-variant-numeric: tabular-nums; min-height: 52px; padding: 0; }
.otp-single, .auth-card input.otp-single { text-align: center; font: 600 1.5rem/1 var(--font-govde); letter-spacing: .5em; font-variant-numeric: tabular-nums; min-height: 52px; padding-left: .5em; }
.auth-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.auth-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--cizgi); }
.auth-steps span.is-done { background: var(--celik-2); }
.auth-steps span.is-current { background: var(--ikaz); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pw-meter span { height: 4px; border-radius: 2px; background: var(--cizgi); }
.pw-meter[data-guc="1"] span:nth-child(-n+1) { background: var(--hata); }
.pw-meter[data-guc="2"] span:nth-child(-n+2) { background: var(--ikaz); }
.pw-meter[data-guc="3"] span:nth-child(-n+3) { background: var(--celik-2); }
.pw-meter[data-guc="4"] span { background: var(--onay); }
.qr-box { display: grid; place-items: center; padding: 14px; background: #fff; border: 1px solid var(--cizgi); border-radius: var(--r-lg); margin: 0 auto 16px; width: max-content; }
.code-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; padding: 12px 16px; background: var(--yuzey-2); border: 1px dashed var(--cizgi-koyu); border-radius: var(--r-md); font: 500 .9rem/1.6 var(--font-mono); margin-bottom: 16px; }
.pw-field { position: relative; }
.pw-field input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.auth-help { margin: 18px 0 0; font-size: .8rem; color: var(--soluk); text-align: center; }
.auth-theme { position: absolute; right: 16px; top: 16px; }

/* ---------------------------------------------------------------------
   14. Hata sayfası
   --------------------------------------------------------------------- */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--zemin); }
.error-box { width: min(560px, 100%); text-align: left; }
.error-plate {
    display: inline-flex; align-items: stretch; border: 1px solid var(--cizgi-koyu); border-radius: var(--r-md); overflow: hidden; margin-bottom: 28px;
    background: var(--yuzey); box-shadow: var(--golge);
}
.error-plate b { background: var(--ikaz); color: #0e2232; padding: 4px 11px; font: 700 1.05rem var(--font-rakam); display: grid; place-items: center; }
.error-plate span { padding: 5px 12px; font-size: .9rem; font-weight: 600; color: var(--murekkep); }
.error-code { font: 700 clamp(5rem, 16vw, 8.5rem)/.85 var(--font-rakam); color: var(--murekkep); letter-spacing: .01em; font-variant-numeric: tabular-nums; display: flex; align-items: flex-end; gap: 18px; }
.error-code::after { content: ""; width: 72px; height: 12px; margin-bottom: 10px; border-radius: 2px; background: repeating-linear-gradient(-45deg, var(--ikaz) 0 8px, var(--murekkep) 8px 16px); }
.error-title { font-size: var(--fs-2xl); margin: 18px 0 8px; letter-spacing: -.02em; }
.error-box p { color: var(--murekkep-2); font-size: 1rem; }
.error-box p.error-hint { font-size: .92rem; color: var(--soluk); }
.error-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.error-meta { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--cizgi); font-size: .8rem; color: var(--soluk); }

/* ---------------------------------------------------------------------
   15. Özet ekranı (dashboard) bileşenleri
   --------------------------------------------------------------------- */
.dash-greet { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: -10px 0 var(--s-5); color: var(--soluk); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.dash-grid > .card, .dash-col > .card { margin-bottom: 0; }
.dash-col { display: grid; gap: var(--s-5); min-width: 0; }
.dash-grid + .dash-grid, .dash-grid + .card, .stat-row + .dash-grid, .kpi-grid + .dash-grid { margin-top: var(--s-5); }

/* Kurulum ilerleme kartı (özet ekranında, yönetici) */
.setup-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-4) var(--s-5); }
.setup-card h2 { font-size: .98rem; margin: 0 0 4px; }
.setup-card p { margin: 0; font-size: var(--fs-sm); color: var(--soluk); }
.setup-next { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.setup-next a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-tam); border: 1px solid var(--cizgi); background: var(--yuzey-2); font-size: var(--fs-xs); font-weight: 500; color: var(--murekkep); text-decoration: none; }
.setup-next a:hover { border-color: var(--cizgi-koyu); background: var(--yuzey-3); }
.setup-next a svg { width: 13px; height: 13px; color: var(--soluk); }

/* Kurulum adımları sayfası */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist > li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px var(--s-5); border-bottom: 1px solid var(--cizgi-ince); }
.checklist > li:last-child { border-bottom: 0; }
.checklist .cl-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--cizgi-koyu); color: var(--soluk); font: 600 .75rem/1 var(--font-govde); margin-top: 1px; }
.checklist .is-done .cl-mark { border: 0; background: var(--onay); color: #fff; }
.checklist .cl-mark svg { width: 15px; height: 15px; }
.checklist .cl-title { font-weight: 600; color: var(--murekkep); }
.checklist .is-done .cl-title { color: var(--murekkep-2); }
.checklist .opt { font-weight: 400; color: var(--soluk); font-size: var(--fs-xs); margin-left: 4px; }
.checklist .cl-desc { font-size: var(--fs-sm); color: var(--soluk); margin-top: 2px; max-width: 70ch; }
.checklist .cl-meta { font-size: var(--fs-xs); color: var(--onay); margin-top: 4px; font-weight: 500; }
.checklist .cl-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.setup-hero { display: flex; gap: var(--s-6); align-items: center; padding: var(--s-5); }
.setup-hero h2 { margin: 0 0 6px; font-size: var(--fs-xl); }
.setup-hero p { margin: 0; color: var(--soluk); }

/* Proje kapsama çubuğu */
.cover { display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: center; gap: 10px; min-width: 140px; }
.cover-track { height: 6px; border-radius: 3px; background: var(--yuzey-3); overflow: hidden; }
.cover-fill { display: block; height: 100%; width: var(--w, 0%); border-radius: 3px; background: var(--celik-2); }
.cover-fill.is-tam { background: var(--onay); }
.cover-fill.is-dusuk { background: var(--ikaz); }
.cover-pct { font: 550 .8rem var(--font-govde); font-variant-numeric: tabular-nums; text-align: right; color: var(--murekkep-2); }

/* SVG grafik */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 500 11px var(--font-govde); fill: var(--soluk); font-variant-numeric: tabular-nums; }
.chart .c-grid { stroke: var(--cizgi-ince); stroke-width: 1; }
.chart .c-base { stroke: var(--cizgi-koyu); stroke-width: 1; }
.chart .c-bar { fill: var(--celik-2); }
.chart .c-bar.is-tatil { fill: var(--cizgi-koyu); }
.chart .c-bar.is-bugun { fill: var(--ikaz); }
.chart .c-hafta { fill: var(--yuzey-2); }
.chart .c-val { font: 600 10.5px var(--font-govde); fill: var(--murekkep-2); }
.chart .c-bugun-lbl { fill: var(--murekkep); font-weight: 700; }
.chart .c-avg { stroke: var(--murekkep-2); stroke-width: 1; stroke-dasharray: 4 4; opacity: .6; }
.chart .c-col:hover .c-bar:not(.is-bugun) { fill: var(--celik); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-xs); color: var(--soluk); margin-top: 12px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Sütun grafiği (HTML/CSS) */
.colchart { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: 200px auto; column-gap: 8px; margin: 6px 0 0; }
.cc-y { position: relative; }
.cc-y span { position: absolute; right: 0; bottom: var(--y, 0); transform: translateY(50%); font: 500 .7rem var(--font-govde); color: var(--soluk); font-variant-numeric: tabular-nums; }
.cc-plot {
    position: relative; display: grid; grid-template-columns: repeat(var(--n, 14), minmax(0, 1fr)); gap: 0; align-items: end;
    border-bottom: 1px solid var(--cizgi-koyu);
    background-image: linear-gradient(to top, var(--cizgi-ince) 1px, transparent 1px);
    background-size: 100% 25%; background-position: bottom;
}
.cc-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.cc-col.is-tatil { background: color-mix(in srgb, var(--yuzey-3) 70%, transparent); }
.cc-bar { position: relative; display: block; width: 62%; max-width: 28px; min-height: 0; height: var(--h, 0%); background: var(--celik-2); border-radius: 4px 4px 1px 1px; transition: background var(--gecis); }
.cc-col.is-tatil .cc-bar { background: var(--cizgi-koyu); }
.cc-col.is-bugun .cc-bar { background: var(--ikaz); }
.cc-col:hover .cc-bar { background: var(--celik); }
.cc-col.is-bugun:hover .cc-bar { background: var(--ikaz-2); }
.cc-val { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); font: 600 .66rem var(--font-govde); color: var(--murekkep-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.colchart.is-dense .cc-val { display: none; }
.colchart.is-dense .cc-col:hover .cc-val, .colchart.is-dense .cc-col.is-bugun .cc-val { display: block; }
.colchart.is-dense .cc-bar { width: 70%; border-radius: 2px 2px 0 0; }
.cc-avg { position: absolute; left: 0; right: 0; bottom: var(--y, 0); height: 0; border-top: 1px dashed color-mix(in srgb, var(--murekkep-2) 55%, transparent); z-index: 1; pointer-events: none; }
.cc-avg span { position: absolute; right: 0; bottom: 2px; font: 600 .66rem var(--font-govde); color: var(--murekkep-2); background: var(--yuzey); padding: 0 4px; border-radius: 2px; }
.cc-x { display: grid; grid-template-columns: repeat(var(--n, 14), minmax(0, 1fr)); padding-top: 6px; }
.cc-x span { text-align: center; font-size: .66rem; color: var(--soluk); line-height: 1.25; }
.cc-x b { display: block; font: 600 .76rem var(--font-govde); color: var(--murekkep-2); font-variant-numeric: tabular-nums; }
.cc-x .is-bugun b { color: var(--murekkep); }
.cc-x .is-bugun { color: var(--murekkep); font-weight: 600; }
.colchart.is-dense .cc-x span { font-size: 0; }
.colchart.is-dense .cc-x span:nth-child(5n+1) b, .colchart.is-dense .cc-x span.is-bugun b { font-size: .7rem; }
.colchart.is-dense .cc-x b { font-size: 0; }

.cc-y-0 { --y: 0%; } .cc-y-1 { --y: 25%; } .cc-y-2 { --y: 50%; } .cc-y-3 { --y: 75%; } .cc-y-4 { --y: 100%; }
.cc-n-7 { --n: 7; } .cc-n-14 { --n: 14; } .cc-n-30 { --n: 30; }
.table th.col-cover { width: 30%; }

/* Halka grafik (SVG) */
.donut-wrap { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 22px; align-items: center; }
.donut { width: 124px; height: 124px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 11; }
.donut .donut-track { stroke: var(--yuzey-3); }
.donut .donut-seg { stroke-linecap: butt; stroke: var(--seg, var(--celik-2)); }
.donut .tone-green-seg { --seg: var(--onay); } .donut .tone-yellow-seg { --seg: var(--ikaz); } .donut .tone-red-seg { --seg: var(--hata); } .donut .tone-blue-seg { --seg: var(--celik-2); } .donut .tone-gray-seg { --seg: var(--cizgi-koyu); }
.donut text { transform: rotate(90deg); transform-origin: 50px 50px; text-anchor: middle; fill: var(--murekkep); }
.donut .donut-val { font: 700 21px var(--font-rakam); font-variant-numeric: tabular-nums; }
.donut .donut-lbl { font: 500 8.5px var(--font-govde); fill: var(--soluk); }
.donut-wrap .stack-legend { margin-top: 0; }

/* Yatay çubuk listesi */
.hbar { display: grid; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: minmax(70px, 120px) minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.hbar-label { font-weight: 550; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 8px; background: var(--yuzey-3); border-radius: 4px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; width: var(--w, 0%); background: var(--celik-2); border-radius: 4px; }
.hbar-val { font: 600 .84rem var(--font-govde); font-variant-numeric: tabular-nums; color: var(--murekkep); text-align: right; min-width: 56px; }
.hbar-val small { font: 400 .75rem var(--font-govde); color: var(--soluk); }

/* Yığılmış durum çubuğu */
.stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--yuzey-3); gap: 2px; }
.stack > span { display: block; height: 100%; min-width: 3px; flex: var(--f, 1); }
.stack > span.is-soft, .stack-legend i.is-soft { opacity: .55; }
.tone-green { background: var(--onay); }
.tone-yellow { background: var(--ikaz); }
.tone-red { background: var(--hata); }
.tone-blue { background: var(--celik-2); }
.tone-gray { background: var(--cizgi-koyu); }
.stack-legend { display: grid; gap: 4px; margin-top: 14px; }
.stack-legend a, .stack-legend div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; color: var(--murekkep); text-decoration: none; padding: 5px 8px; margin: 0 -8px; border-radius: var(--r-sm); }
.stack-legend a:hover { background: var(--yuzey-3); }
.stack-legend i { width: 10px; height: 10px; border-radius: 3px; }
.stack-legend b { font: 600 .9rem var(--font-govde); font-variant-numeric: tabular-nums; }

/* Etkinlik akışı */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 11px var(--s-5); border-bottom: 1px solid var(--cizgi-ince); align-items: start; }
.feed li:last-child { border-bottom: 0; }
.feed .feed-ic { width: 28px; height: 28px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--yuzey-2); color: var(--murekkep-2); box-shadow: inset 0 0 0 1px var(--cizgi-ince); }
.feed .feed-ic svg { width: 14px; height: 14px; }
.feed .feed-ic.is-ok { color: var(--onay); background: var(--onay-zemin); }
.feed .feed-ic.is-danger { color: var(--hata); background: var(--hata-zemin); }
.feed .feed-t { font-size: .84rem; line-height: 1.4; min-width: 0; }
.feed .feed-t b { font-weight: 600; }
.feed .feed-s { display: block; font-size: .75rem; color: var(--soluk); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed time { font-size: .75rem; color: var(--soluk); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Kısayol kartları */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
.quick a {
    display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-lg); text-decoration: none;
    color: var(--murekkep); background: var(--yuzey); border: 1px solid var(--cizgi); box-shadow: var(--golge);
    transition: border-color var(--hiz-1), box-shadow var(--hiz-1);
}
.quick a:hover { border-color: var(--cizgi-koyu); box-shadow: var(--golge-2); color: var(--murekkep); }
.quick .q-ic { width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--yuzey-2); color: var(--celik-metin); box-shadow: inset 0 0 0 1px var(--cizgi-ince); flex: none; }
.quick .q-ic svg { width: 18px; height: 18px; }
.quick strong { display: block; font-size: .875rem; font-weight: 600; }
.quick small { display: block; color: var(--soluk); font-size: .75rem; }

/* Eski özet grafikleri (geri uyumluluk) */
.bar-row { display: grid; grid-template-columns: 90px 1fr 70px; gap: 10px; align-items: center; padding: 6px 0; }
.bar-label { font-weight: 600; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; background: var(--yuzey-3); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--celik-2); }
.bar-value { font-size: .82rem; color: var(--murekkep-2); text-align: right; font-variant-numeric: tabular-nums; }
.spark-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.spark-bar { width: 100%; max-width: 34px; background: var(--celik-2); border-radius: 2px 2px 0 0; min-height: 2px; }
.spark-col:last-child .spark-bar { background: var(--ikaz); }
.spark-col.is-sunday .spark-bar { background: var(--cizgi-koyu); }
.spark-val { font-size: .72rem; color: var(--murekkep-2); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.spark-day { font-size: .75rem; color: var(--soluk); margin-top: 4px; font-variant-numeric: tabular-nums; }
div.spark { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 170px; align-items: end; }

/* Arama sonuç sayfası */
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list li { border-bottom: 1px solid var(--cizgi-ince); }
.result-list li:last-child { border-bottom: 0; }
.result-list a { display: flex; gap: 12px; align-items: center; padding: 11px var(--s-5); text-decoration: none; color: var(--murekkep); }
.result-list a:hover { background: var(--yuzey-2); }
.result-list .so-title { font-weight: 600; display: block; }
.result-list .so-sub { font-size: .78rem; color: var(--soluk); display: block; }
.result-list .so-main { flex: 1; min-width: 0; }

/* Logo yükleme önizlemesi */
.logo-preview {
    display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 14px;
    border: 1px dashed var(--cizgi-koyu); border-radius: var(--r-md); background: #fff; margin-bottom: 12px;
}
.logo-preview img { max-height: 72px; max-width: 100%; object-fit: contain; }
.logo-preview.is-empty { background: var(--yuzey-2); color: var(--soluk); font-size: .85rem; }

/* Mobil alt gezinme */
.bottom-nav { display: none; --bn: 5; }
.bottom-nav.is-4 { --bn: 4; }

/* =====================================================================
   Arayüz 3.0 katmanı — yüzeyler, göstergeler, tablo, form, sekmeler.
   İlke: daha az kutu. Beyaz tuval; bölümler boşluk ve ince çizgiyle ayrılır;
   kartlar yalnızca gruplama gerektiğinde, çerçeve yerine halka + yumuşak gölge.
   ===================================================================== */
/* Sayfa */
.content { padding: 28px 40px 56px; max-width: 1440px; }
.page-header { align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.page-header h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -.028em; line-height: 1.15; }
.page-header .page-sub { margin-top: 6px; font-size: .9rem; color: var(--soluk); }
.help-btn { width: 24px; height: 24px; border: 0; background: transparent; color: var(--soluk); }
.help-btn:hover { background: var(--yuzey-3); border: 0; }
.page-actions { gap: 8px; }

/* Kartlar: çerçevesiz, halka gölge */
.card { border: 0; border-radius: 14px; box-shadow: var(--kart-golge); margin-bottom: 24px; }
.card-header { padding: 16px 20px 12px; min-height: 0; border-bottom: 0; }
.card-header h2, .card-header h3 { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.card-header + .card-body { padding-top: 4px; }
.card-header + .card-body.flush { padding-top: 0; }
.card-body { padding: 20px; }
.card-footer { background: transparent; border-top: 1px solid var(--cizgi-ince); padding: 12px 20px; border-radius: 0 0 14px 14px; }
.card.is-accent { border-top: 0; box-shadow: inset 0 3px 0 var(--ikaz), var(--kart-golge); }
.card.is-flat { box-shadow: 0 0 0 1px var(--cizgi-ince); }
.grid-2, .grid-3 { gap: 24px; }
.grid-2 + .card, .grid-3 + .card, .grid-2 + .grid-2, .grid-2 + .grid-3, .grid-3 + .grid-2, .grid-3 + .grid-3, .grid-2 + .stat-row, .grid-2 + section { margin-top: 24px; }
.card > .table-wrap:first-child .table thead th:first-child, .card-body.flush:first-child > .table-wrap:first-child .table thead th:first-child { border-top-left-radius: 14px; }
.card > .table-wrap:first-child .table thead th:last-child, .card-body.flush:first-child > .table-wrap:first-child .table thead th:last-child { border-top-right-radius: 14px; }

/* Liste sayfaları: sayfa düzeyindeki tablo kartı kutusuz (tablo tuvalde, başlık + araç çubuğu üstte) */
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) {
    background: transparent; box-shadow: none; border-radius: 0; margin-left: -12px; margin-right: -12px;
}
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) > .card-header { padding: 4px 12px 12px; }
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) > .card-body:not(.flush) { padding-left: 12px; padding-right: 12px; }
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) > .card-footer { background: transparent; padding-left: 12px; padding-right: 12px; }
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) .table th:first-child,
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) .table td:first-child { padding-left: 12px; }
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) .table th:last-child,
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) .table td:last-child { padding-right: 12px; }
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) .table thead th { border-radius: 0 !important; }
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) .pagination { padding-left: 12px; padding-right: 12px; }
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) .bulk-bar { border-radius: 10px; margin: 0 0 8px; border: 0; }
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) > .tabs { padding: 0 12px; }

/* Araç çubuğu (filtreler): ayrı kutu değil, içerik üstünde satır */
.filters { background: transparent; border-bottom: 0; border-radius: 0; padding: 0 20px 16px; gap: 10px 12px; }
.card-header + .filters { padding-top: 0; }
.card > .filters:first-child { padding-top: 16px; }
.content > .card > .filters:first-child { padding: 0 12px 18px; }
.filters .field { flex: 1 1 150px; min-width: 130px; max-width: 240px; }
.filters .field.grow { flex: 2 1 240px; max-width: 380px; }
.filters label { font-size: .72rem; color: var(--soluk); margin-bottom: 4px; font-weight: 500; }
.filters input, .filters select { background-color: var(--yuzey-girdi); }
.filters .btn { min-height: var(--kontrol-h); }
.card > .filters:only-child, .filters.is-standalone { border-radius: 0; padding-bottom: 0; }

/* Göstergeler: kutusuz şerit, ince ayraçlar, düzenli ağırlıkta tablo rakamları */
.kpi-grid {
    gap: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 28px; overflow: hidden;
    border-top: 1px solid var(--cizgi-ince); border-bottom: 1px solid var(--cizgi-ince);
}
.kpi {
    background: transparent; border: 0; border-radius: 0; box-shadow: -1px 0 0 var(--cizgi-ince), 0 -1px 0 var(--cizgi-ince);
    padding: 18px 22px 16px; gap: 8px; transition: background-color var(--hiz-1);
}
a.kpi:hover { background: var(--yuzey-2); box-shadow: -1px 0 0 var(--cizgi-ince), 0 -1px 0 var(--cizgi-ince); border-color: transparent; }
.kpi-label { font-size: .8rem; color: var(--soluk); font-weight: 500; gap: 7px; }
.kpi-label svg { width: 15px; height: 15px; }
.kpi-value { font: 400 2rem/1.05 var(--font-govde); letter-spacing: -.035em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "cv05"; color: var(--murekkep); }
.kpi-value small { font: 450 .8rem/1 var(--font-govde); letter-spacing: 0; }
.kpi.is-warn .kpi-value { color: var(--uyari); }
.kpi.is-danger .kpi-value { color: var(--hata); }
.kpi.is-ok .kpi-value { color: var(--onay); }
.kpi-foot { min-height: 26px; align-items: center; }
.kpi .spark { width: 88px; height: 26px; }
.delta { padding: 1px 6px 1px 4px; font-weight: 550; font-size: .7rem; }

.stat-row {
    background: transparent; border: 0; border-radius: 0; box-shadow: none; margin-bottom: 28px;
    border-top: 1px solid var(--cizgi-ince); border-bottom: 1px solid var(--cizgi-ince);
}
.stat { padding: 16px 22px; border-right: 1px solid var(--cizgi-ince); }
.stat-value { font: 400 1.85rem/1.05 var(--font-govde); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .8rem; color: var(--soluk); margin-top: 6px; }
a.stat:hover { background: var(--yuzey-2); }
.stat.warn::before, .stat.danger::before { top: 18px; bottom: 18px; width: 2px; }
.ring-val { font: 500 1.05rem/1 var(--font-govde); letter-spacing: -.03em; }
.ring-lg .ring-val { font-size: 1.6rem; }
.ring circle { stroke-width: 5; }
.summary { border: 0; box-shadow: none; background: var(--yuzey-2); border-radius: 14px; }

/* Tablo: dikey çizgi yok, hafif satırlar, yapışkan bulanık başlık */
.table { font-size: .845rem; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--cizgi-ince); }
.table thead th {
    background: var(--yuzey); color: var(--soluk); font-size: .74rem; font-weight: 500; letter-spacing: .005em;
    border-bottom: 1px solid var(--cizgi); padding-top: 10px; padding-bottom: 10px;
}
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) .table thead th { background: color-mix(in srgb, var(--zemin) 88%, transparent); }
.table-wrap.fits .table thead th { -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
.table tbody tr:hover > td, .table tbody tr:hover > th { background: color-mix(in srgb, var(--yuzey-3) 60%, transparent); }
.table tfoot th, .table tfoot td { background: transparent; border-top: 1px solid var(--cizgi); }
.table a.row-link { font-weight: 550; }
.table-zebra tbody tr:nth-child(even) > td { background: color-mix(in srgb, var(--yuzey-2) 80%, transparent); }
.person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.person > span:last-child { min-width: 0; }

/* Avatar: addan kararlı ton (kisi_avatar() / av-t0…7) */
.avatar { width: 28px; height: 28px; font: 600 .7rem/1 var(--font-govde); letter-spacing: .01em; box-shadow: none; }
.avatar.avatar-sm { width: 24px; height: 24px; font-size: .62rem; }
.avatar.avatar-lg { width: 40px; height: 40px; font-size: .85rem; }
.av-t0 { --av: #285876; } .av-t1 { --av: #2f6f5a; } .av-t2 { --av: #8a5a1c; } .av-t3 { --av: #6a4f8b; }
.av-t4 { --av: #a1453a; } .av-t5 { --av: #3d6b8f; } .av-t6 { --av: #5b6b2f; } .av-t7 { --av: #7a4a62; }
.avatar[class*="av-t"], .ik-avatar-harf[class*="av-t"] { background: color-mix(in srgb, var(--av) 14%, var(--yuzey)); color: var(--av); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--av) 18%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar[class*="av-t"], :root:not([data-theme="light"]) .ik-avatar-harf[class*="av-t"] { background: color-mix(in srgb, var(--av) 30%, var(--yuzey)); color: color-mix(in srgb, var(--av) 35%, #fff); } }
:root[data-theme="dark"] .avatar[class*="av-t"], :root[data-theme="dark"] .ik-avatar-harf[class*="av-t"] { background: color-mix(in srgb, var(--av) 30%, var(--yuzey)); color: color-mix(in srgb, var(--av) 35%, #fff); }
.rail .avatar[class*="av-t"] { background: color-mix(in srgb, var(--av) 55%, #fff); color: #fff; background: var(--av); }

/* Rozet ve durum çipi: daha sakin */
.badge { padding: 2px 8px; font-weight: 550; box-shadow: none; }
.badge-gray { background: var(--yuzey-3); }
.badge-dark { box-shadow: inset 0 0 0 1px var(--cizgi-koyu); }
.status { font-size: .82rem; }
.status::before { width: 7px; height: 7px; box-shadow: none; }

/* Butonlar */
.btn { border-color: var(--cizgi); box-shadow: 0 1px 2px rgba(16, 32, 44, .05); font-weight: 500; transition: background-color var(--hiz-1), border-color var(--hiz-1), color var(--hiz-1), box-shadow var(--hiz-1), transform var(--hiz-1); }
.btn:hover { border-color: var(--cizgi-koyu); background: var(--yuzey-2); }
.btn:active { transform: scale(.98); }
.btn-primary { box-shadow: 0 1px 2px rgba(16, 32, 44, .18), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn-primary:hover { background: var(--celik-2); border-color: var(--celik-2); }
.btn-accent { border-color: var(--ikaz); box-shadow: 0 1px 2px rgba(120, 90, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost, .btn-ghost:hover { box-shadow: none; border-color: transparent; }
.btn-ghost:hover { background: var(--yuzey-3); }
.btn-link, .btn-link:hover { box-shadow: none; }
.icon-btn { border-radius: 9px; }

/* Form kontrolleri */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month],
input[type=tel], input[type=search], input[type=url], input[type=time], input[type=datetime-local], input[type=week], select, textarea {
    border-color: var(--cizgi-koyu); border-radius: 9px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(16, 32, 44, .04);
}
select { padding-right: 34px; background-position: right 12px center; }
input:focus, select:focus, textarea:focus { border-color: var(--odak); box-shadow: 0 0 0 4px var(--odak-halka); }
input[type=date], input[type=month], input[type=time], input[type=datetime-local], input[type=week] { position: relative; }
::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .5; padding: 2px; border-radius: 4px; transition: opacity var(--hiz-1), background-color var(--hiz-1); }
::-webkit-calendar-picker-indicator:hover { opacity: .9; background-color: var(--yuzey-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) ::-webkit-calendar-picker-indicator { filter: invert(.85); } }
:root[data-theme="dark"] ::-webkit-calendar-picker-indicator { filter: invert(.85); }
input[type=file] { padding: 4px; border-style: dashed; background: var(--yuzey-2); color: var(--soluk); font-size: .82rem; }
input[type=file]:hover { border-color: var(--cizgi-koyu); background: var(--yuzey-3); }
input[type=file]::file-selector-button { border: 0; background: var(--yuzey); color: var(--murekkep); border-radius: 6px; padding: 6px 12px; box-shadow: 0 0 0 1px var(--cizgi), 0 1px 2px rgba(16, 32, 44, .06); }
input[type=checkbox], input[type=radio] {
    -webkit-appearance: none; appearance: none; width: 17px; height: 17px; flex: none; margin: 0; display: inline-grid; place-items: center;
    border: 1.5px solid var(--cizgi-koyu); background: var(--yuzey-girdi); border-radius: 5px; cursor: pointer; vertical-align: -3px;
    transition: background-color var(--hiz-1), border-color var(--hiz-1), box-shadow var(--hiz-1);
}
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:hover, input[type=radio]:hover { border-color: color-mix(in srgb, var(--cizgi-koyu) 50%, var(--murekkep)); }
input[type=checkbox]:checked, input[type=checkbox]:indeterminate { background: var(--celik-2) var(--tik) center / 13px no-repeat; border-color: var(--celik-2); }
input[type=checkbox]:indeterminate { background-image: none; }
input[type=checkbox]:indeterminate::after { content: ""; width: 8px; height: 2px; border-radius: 1px; background: #fff; }
input[type=radio]:checked { border: 5px solid var(--celik-2); background: var(--yuzey-girdi); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--odak-halka); border-color: var(--odak); }
input[type=checkbox]:disabled, input[type=radio]:disabled { opacity: .5; cursor: not-allowed; }
.check input { width: 17px; height: 17px; }
.switch input { -webkit-appearance: none; appearance: none; border: 0; background: none; width: 36px; height: 20px; }
.switch input:checked { background: none; }
.switch-track { width: 36px; height: 20px; background: var(--cizgi-koyu); }
.switch input:checked + .switch-track { background: var(--celik-2); }
.input-affix { border-radius: 9px; }
fieldset { border-color: var(--cizgi-ince); border-radius: 12px; }
.choice { border-radius: 12px; border-color: var(--cizgi); }
.form-block { border-top-color: var(--cizgi-ince); padding: 28px 0; }

/* Sekmeler: alt çizgi; etkin sekme mürekkep çizgisi */
.tabs { gap: 2px; border-bottom-color: var(--cizgi-ince); margin-bottom: 24px; }
.tabs a { padding: 10px 12px 12px; border-radius: 8px 8px 0 0; font-size: .875rem; color: var(--soluk); }
.tabs a:hover { background: transparent; color: var(--murekkep); }
.tabs a.active::after, .tabs a[aria-current="page"]::after { left: 12px; right: 12px; height: 2px; background: var(--murekkep); }
.tabs.tabs-pill { gap: 4px; padding: 3px; background: var(--yuzey-3); border-radius: 10px; display: inline-flex; max-width: 100%; }
.tabs.tabs-pill a { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; color: var(--murekkep-2); }
.tabs.tabs-pill a.active, .tabs.tabs-pill a[aria-current="page"] { background: var(--yuzey); color: var(--murekkep); box-shadow: 0 1px 2px rgba(16, 32, 44, .1), 0 0 0 1px rgba(16, 32, 44, .04); }
.tabs.tabs-pill a.active svg, .tabs.tabs-pill a[aria-current="page"] svg { color: var(--murekkep); }
.seg { background: var(--yuzey-3); box-shadow: none; border-radius: 10px; }
.seg > a, .seg > button, .seg > label { border-radius: 7px; }
.segmented { background: var(--yuzey-3); border: 0; border-radius: 10px; }

/* Sayfalama, dl, uyarı */
.pagination { border-top: 0; padding: 16px 20px; }
.pagination a, .pagination span.current { border-color: transparent; background: transparent; border-radius: 8px; }
.pagination a:hover { background: var(--yuzey-3); border-color: transparent; }
.pagination span.current { background: var(--murekkep); border-color: var(--murekkep); color: var(--zemin); }
.alert { border-radius: 12px; }
.empty-state { padding: 48px 20px; }
.dropdown { border: 0; border-radius: 14px; box-shadow: var(--golge-3); }
.search-pop { border: 0; border-radius: 14px; box-shadow: var(--golge-3); }
.search input[type=search] { background: var(--yuzey-2); border-color: transparent; box-shadow: none; border-radius: 10px; }
.search input[type=search]:hover { border-color: var(--cizgi); }
.search input[type=search]:focus { background: var(--yuzey); }
.sp-dialog { border: 0; }
.drawer { border-left: 0; }
.toast-region .alert { border: 0; box-shadow: var(--golge-3); border-radius: 14px; }

/* Özet ekranı */
.dash-grid { gap: 24px; }
.dash-col { gap: 24px; }
.dash-grid + .dash-grid, .dash-grid + .card, .stat-row + .dash-grid, .kpi-grid + .dash-grid { margin-top: 24px; }
.setup-card { box-shadow: none; background: var(--yuzey-2); }

/* "Bugün" dikkat listesi — sakin, taranabilir satırlar */
.today-list { margin-bottom: 28px; }
.tl-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tl-head h2 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.tl-head h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ikaz); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ikaz) 25%, transparent); }
.tl-head span { color: var(--soluk); font-size: .82rem; }
.tl-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); column-gap: 32px; border-top: 1px solid var(--cizgi-ince); }
.tl-row {
    display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 11px 8px;
    margin: 0 -8px; border-bottom: 1px solid var(--cizgi-ince); border-radius: 0; color: var(--murekkep); text-decoration: none;
    transition: background-color var(--hiz-1);
}
.tl-row:hover { background: var(--yuzey-2); color: var(--murekkep); border-radius: 10px; border-bottom-color: transparent; }
.tl-row:focus-visible { outline-offset: -2px; border-radius: 10px; }
.tl-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--uyari-zemin); color: var(--uyari); }
.tl-ic svg { width: 17px; height: 17px; }
.tl-row.is-danger .tl-ic { background: var(--hata-zemin); color: var(--hata); }
.tl-row.is-calm .tl-ic, .tl-row.is-zero .tl-ic { background: var(--yuzey-3); color: var(--soluk); }
.tl-count { font: 500 1.35rem/1 var(--font-govde); letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: right; }
.tl-row.is-danger .tl-count { color: var(--hata); }
.tl-row.is-zero .tl-count { color: var(--soluk); }
.tl-main { min-width: 0; }
.tl-main b { display: block; font-weight: 550; font-size: .875rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-main small { display: block; color: var(--soluk); font-size: .76rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-go { width: 16px; height: 16px; color: var(--cizgi-koyu); transition: transform var(--hiz-1), color var(--hiz-1); }
.tl-row:hover .tl-go { color: var(--murekkep-2); transform: translateX(2px); }
.tl-clear { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--cizgi-ince); border-bottom: 1px solid var(--cizgi-ince); color: var(--murekkep-2); }
.tl-clear svg { width: 20px; height: 20px; color: var(--onay); flex: none; }

/* Grafikler: soluk ızgara, yuvarlak sütunlar, üzerine gelince ipucu */
.cc-plot { border-bottom-color: var(--cizgi); background-image: linear-gradient(to top, color-mix(in srgb, var(--cizgi-ince) 80%, transparent) 1px, transparent 1px); }
.cc-col { cursor: default; }
.cc-col.is-tatil { background: transparent; }
.cc-bar { width: 56%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--celik-2) 78%, var(--yuzey)); transition: background-color var(--hiz-1), transform var(--hiz-2) var(--egri); }
.cc-col:hover .cc-bar { background: var(--celik-2); }
.cc-col.is-tatil .cc-bar { background: var(--cizgi); }
.cc-val { display: none; }
.cc-col.is-bugun .cc-val { display: block; color: var(--murekkep); }
.cc-y span, .cc-x span { color: var(--soluk); }
.cc-avg { border-top-color: color-mix(in srgb, var(--murekkep-2) 35%, transparent); }
.cc-avg span { background: var(--yuzey); color: var(--soluk); font-weight: 500; }
.chart .c-grid { stroke: var(--cizgi-ince); }
.chart .c-bar { rx: 3px; }
.hbar-track, .cover-track { background: var(--yuzey-3); }
.hbar-track { height: 6px; }
.hbar-fill { background: color-mix(in srgb, var(--celik-2) 85%, var(--yuzey)); }
.donut circle { stroke-width: 9; }
.donut .donut-val { font: 500 19px var(--font-govde); letter-spacing: -.5px; }
.feed .feed-ic { box-shadow: none; border-radius: 9px; }
.quick a { border: 0; box-shadow: var(--kart-golge); border-radius: 14px; }
.quick a:hover { box-shadow: var(--golge-2); }
.quick .q-ic { box-shadow: none; border-radius: 10px; }

/* İskelet (yükleme) ve geri bildirim */
.skeleton, .sk-line { border-radius: 6px; }

@media (max-width: 640px) {
    .filters .field, .filters .field.grow { max-width: none; }
    .content > .card > .filters:first-child { padding: 0 12px 14px; }
    .kpi { padding: 14px 14px 12px; }
    .kpi-value { font-size: 1.6rem; }
    .tl-items { grid-template-columns: 1fr; }
    .tl-row { grid-template-columns: 32px 44px minmax(0, 1fr) 14px; gap: 10px; }
    .page-header h1 { font-size: 1.45rem; }
}
@media (max-width: 1180px) {
    .content { padding-left: 28px; padding-right: 28px; }
    .topbar { padding-left: 28px; }
}

/* ---------------------------------------------------------------------
   16. Duyarlı düzen
   --------------------------------------------------------------------- */
@media (max-width: 1280px) {
    .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1180px) {
    .dash-grid { grid-template-columns: 1fr; }
    .search { width: min(320px, 32vw); }
    .content { padding-left: var(--s-6); padding-right: var(--s-6); }
}
@media (max-width: 1080px) {
    .detail-layout { grid-template-columns: 1fr; }
    .side-panel { position: static; }
    .form-block { grid-template-columns: 1fr; gap: var(--s-3); }
}
@media (max-width: 960px) {
    .shell { grid-template-columns: 1fr; }
    /* Mobil: ray + panel tam ekran sayfa (sheet) olarak aşağıdan açılır */
    .sidebar {
        position: fixed; inset: 0; z-index: 90; height: 100dvh; width: 100vw; visibility: hidden;
        transform: translateY(16px); opacity: 0; transition: transform var(--hiz-3) var(--egri), opacity var(--hiz-2), visibility 0s linear var(--hiz-3);
    }
    .sidebar.open { transform: none; opacity: 1; visibility: visible; transition: transform var(--hiz-3) var(--egri), opacity var(--hiz-2), visibility 0s; }
    .rail { padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
    .panel { flex: 1; width: auto; border-right: 0; background: var(--zemin); }
    .panel-head { padding-top: calc(16px + env(safe-area-inset-top)); }
    .sidebar-backdrop { display: none; }
    .sidebar-collapse { display: none; }
    .sidebar-close { display: inline-grid; }
    .rail .dropdown { position: fixed; left: calc(var(--ray-genislik) + 8px); right: 12px; bottom: 12px; min-width: 0; }
    .nav a { min-height: 44px; font-size: .95rem; }
    .nav-group-title { font-size: .85rem; padding-top: 4px; }
    .menu-toggle { display: inline-grid; }
    .topbar-crumbs { display: none; }
    .topbar-brand { display: flex; }
    .page-header .breadcrumbs { display: flex; }
    .content { padding: var(--s-4) var(--s-4) var(--s-8); }
    .topbar { padding: 0 8px; gap: 4px; }
    .content { padding: 20px 16px 40px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-side { padding: 22px 20px 26px; }
    .auth-side h1 { font-size: 1.7rem; margin: 22px 0 8px; }
    .auth-side p { font-size: .9rem; margin-bottom: 0; }
    .auth-side::after { left: 20px; }
    .auth-points, .auth-crane, .auth-foot { display: none; }
    .auth-form-wrap { padding: 32px 20px 40px; place-items: start center; }
    .auth-theme { top: 10px; right: 12px; }
    .toast-region { right: 16px; }
    .topbar-sep { display: none; }
}
@media (min-width: 961px) {
    .sidebar-backdrop { display: none; }
}
@media (max-width: 720px) {
    .search { display: none; position: fixed; left: 0; right: 0; top: 0; width: auto; margin: 0; padding: 10px; height: var(--ust-yukseklik); background: var(--yuzey); border-bottom: 1px solid var(--cizgi); z-index: 95; align-items: center; gap: 6px; }
    .search.is-open { display: flex; }
    .search .search-field { flex: 1; }
    .search-pop { position: fixed; left: 8px; right: 8px; top: calc(var(--ust-yukseklik) + 4px); min-width: 0; max-height: calc(100dvh - 140px); }
    .search-open { display: inline-grid; }
    .search-kbd { display: none; }
    .search-close { display: inline-grid !important; }
    .search-foot span { display: none; }
    .setup-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--s-4); }
    .setup-card .ring { --ring-size: 52px; }
    .setup-card .ring-val { font-size: 1rem; }
    .setup-card > .btn, .setup-card > a.btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    :root { --alt-menu-h: 62px; }
    body { font-size: .9rem; padding-bottom: calc(var(--alt-menu-h) + env(safe-area-inset-bottom)); }
    .bottom-nav {
        display: grid; grid-template-columns: repeat(var(--bn, 5), 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        height: calc(var(--alt-menu-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--yuzey) 92%, transparent); border-top: 1px solid var(--cizgi);
        -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); view-transition-name: sp-alt;
    }
    .bottom-nav a, .bottom-nav button {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
        background: none; border: 0; padding: 6px 2px; color: var(--murekkep-2); text-decoration: none; font: 500 .68rem/1.1 var(--font-govde); cursor: pointer;
    }
    .bottom-nav svg { width: 22px; height: 22px; }
    .bottom-nav [aria-current="page"] { color: var(--murekkep); font-weight: 600; }
    .bottom-nav [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--ikaz); }
    .bottom-nav .bn-main svg { width: 24px; height: 24px; padding: 0; }
    .bottom-nav .bn-main .bn-ic { display: grid; place-items: center; width: 40px; height: 30px; border-radius: var(--r-tam); background: var(--ikaz); color: var(--ikaz-metin); }
    .bottom-nav .bn-main .bn-ic svg { width: 20px; height: 20px; }
    .bottom-nav .bn-dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--hata); color: #fff; font: 700 10px/16px var(--font-govde); box-shadow: 0 0 0 2px var(--yuzey); }
    .toast-region { top: auto; bottom: calc(var(--alt-menu-h) + 12px + env(safe-area-inset-bottom)); }
    .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { border-right: 1px solid var(--cizgi-ince); border-bottom: 1px solid var(--cizgi-ince); padding: 14px 14px; }
    .stat:nth-child(2n) { border-right: 0; }
    .stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
    .stat:nth-last-child(-n+2):nth-child(even), .stat:last-child { border-bottom: 0; }
    .stat-value { font-size: 2rem; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
    .kpi { padding: 12px 14px; }
    .kpi-value { font-size: 2rem; }
    .kpi .spark { width: 64px; }
    .kpi-foot { flex-wrap: wrap; }
    .hide-sm { display: none !important; }
    .dl { grid-template-columns: 1fr; }
    .dl dt { border-bottom: 0; padding-bottom: 0; }
    .dl dt:first-child + dd { padding-top: 2px; }
    .page-header { align-items: flex-start; margin-bottom: var(--s-4); }
    .page-header h1 { font-size: 1.45rem; }
    .page-actions { width: 100%; }
    .page-actions > .btn { flex: 1 1 auto; }
    .user-name, .user-menu .user-chev { display: none; }
    .user-menu > button { padding: 3px; }
    .card-header, .card-body, .card-footer, .filters { padding-left: var(--s-4); padding-right: var(--s-4); }
    .table th:first-child, .table td:first-child { padding-left: var(--s-4); }
    .table th:last-child, .table td:last-child { padding-right: var(--s-4); }
    .filters .field, .filters .field.grow { min-width: 0; flex: 1 1 100%; }
    .filters > .btn { flex: 1 1 auto; }
    input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month],
    input[type=tel], input[type=search], input[type=url], select, textarea { font-size: 16px; min-height: 42px; }
    .btn { min-height: 40px; }
    .btn-sm { min-height: 32px; }
    .hbar-row { grid-template-columns: 80px minmax(0, 1fr) auto; }
    .table td, .table th { white-space: nowrap; }
    .table td.wrap, .table td .wrap { white-space: normal; }
    .cover { min-width: 84px; grid-template-columns: minmax(0, 1fr) 36px; gap: 6px; }
    .cc-val { display: none; }
    .cc-col.is-bugun .cc-val { display: block; }
    .cc-x span { font-size: 0; }
    .cc-x b { font-size: .68rem; }
    .colchart { grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: 170px auto; column-gap: 4px; }
    .donut-wrap { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
    .donut { width: 104px; height: 104px; }
    .pagination .muted { margin-left: 0; width: 100%; }
    .auth-card { padding: 0; }
    .feed li { padding-left: var(--s-4); padding-right: var(--s-4); }
    .result-list a { padding-left: var(--s-4); padding-right: var(--s-4); }
    .checklist > li { grid-template-columns: 28px minmax(0, 1fr); padding-left: var(--s-4); padding-right: var(--s-4); }
    .checklist .cl-act { grid-column: 2; justify-content: flex-start; }
    .setup-hero { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
    .summary { gap: var(--s-3) var(--s-5); padding: var(--s-4); }
    .drawer { width: 100vw; }
    .sticky-actions, .pj-kaydet-bar, .mk-kaydet-bar { bottom: calc(var(--alt-menu-h) + env(safe-area-inset-bottom)) !important; }
}

/* Sayfa geçişi: aynı belge içi gezinmede yumuşak geçiş (destekleyen tarayıcılarda) */
@view-transition { navigation: auto; }
::view-transition-old(sp-icerik) { animation: sp-vt-out .12s ease-in both; }
::view-transition-new(sp-icerik) { animation: sp-vt-in .2s var(--egri) both; }
::view-transition-group(sp-menu), ::view-transition-group(sp-ust), ::view-transition-group(sp-alt) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
@keyframes sp-vt-out { to { opacity: 0; } }
@keyframes sp-vt-in { from { opacity: 0; transform: translateY(4px); } }

/* Hareket azaltma */
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .btn.is-loading::after { animation: sp-spin 1.6s linear infinite !important; }
}

/* Yüksek kontrast / zorlamalı renk */
@media (forced-colors: active) {
    .nav a.active, .tabs a.active, .tabs a[aria-current="page"] { outline: 2px solid CanvasText; }
    .btn, .seg > * { border: 1px solid ButtonText; }
    .badge, .alert, .status, .delta { border: 1px solid CanvasText; }
    .switch-track { border: 1px solid ButtonText; }
}

/* ---------------------------------------------------------------------
   17. Yazdırma (uygulama sayfaları). Ayrıntılı belge şablonu: print.css
   --------------------------------------------------------------------- */
@media print {
    :root, :root[data-theme="dark"] {
        color-scheme: light;
        --zemin: #fff; --yuzey: #fff; --yuzey-2: #f3f4f4; --yuzey-3: #eee; --cizgi: #c9cfd0; --cizgi-ince: #dde1e1; --cizgi-koyu: #9aa3a6;
        --murekkep: #000; --murekkep-2: #333; --soluk: #555; --celik: #1b3c55; --celik-2: #23506f; --celik-metin: #1b3c55; --baglanti: #000;
        --onay: #17734a; --onay-zemin: #e5f4ec; --hata: #b42318; --hata-zemin: #fcebe9; --uyari: #8a5300; --uyari-zemin: #fff3d6;
        --bilgi: #1d5d8f; --bilgi-zemin: #e6f0f9; --menu-zemin: #0e2232;
    }
    .sidebar, .sidebar-backdrop, .topbar, .page-actions, .filters, .no-print, .toast-region, .pagination, .skip-link, .btn, .bottom-nav, .help-btn, .drawer { display: none !important; }
    body { padding-bottom: 0; }
    .shell { display: block; }
    .content { padding: 0; max-width: none; }
    .card, .stat-row, .kpi, .summary { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
    .table-wrap { overflow: visible !important; }
    .table thead th { position: static !important; }
    body { background: #fff; font-size: 11px; }
    a { color: inherit; text-decoration: none; }
    .page-header .breadcrumbs { display: none; }
}

/* =====================================================================
   Arayüz 4.0 (1.5.0) — "kesin ölçü" katmanı.
   Önceki sözleşme aynen geçerli; bu katman ritmi sıkılaştırır ve tekrar eden
   kalıplara tek bir bileşen verir: kayıt başlığı (page_status/page_meta/page_more),
   iş akışı adımları (.steps), künye şeridi (.summary), yan panel künyesi (.meta-list),
   tek çip ailesi (.badge = .status), yapışkan form eylem çubuğu, dosya bırakma alanı,
   liste araç çubuğu (yoğunluk, etkin filtre), mobilde kart satırlı tablo (data-label).
   Ölçek: aralık 4/8 (4·8·12·16·24·32·40·48·64), başlık 28/18/15/14, rakam tnum.
   ===================================================================== */
:root {
    --s-12: 48px; --s-16: 64px;
    --h1: 1.75rem; --h2: 1.125rem; --h3: .9375rem; --h4: .875rem;
    --cip-h: 22px;
}

/* ---- Tipografi ritmi ---- */
.content :where(h2:not([class])) { font-size: var(--h2); letter-spacing: -.012em; }
.card-header h2, .card-header h3, .form-block-head h3, .side-panel .card-header h2 { font-size: var(--h3); }
.content :where(h3:not([class])) { font-size: var(--h3); }
.content :where(h4) { font-size: var(--h4); }
.table td, .summary dd, .meta-list dd, .kpi-value, .stat-value, .pagination, .steps { font-variant-numeric: tabular-nums; }
.content { padding: var(--s-8) var(--s-10) var(--s-16); }
.page-header { margin-bottom: var(--s-6); }
.card { margin-bottom: var(--s-6); }
.detail-layout { gap: var(--s-6); }
.side-panel { gap: var(--s-4); top: calc(var(--ust-yukseklik) + var(--s-6)); }
@media (max-width: 1180px) { .content { padding-left: var(--s-6); padding-right: var(--s-6); } }

/* ---- Kayıt başlığı (layout): başlık + durum çipi, satır içi künye, eylemler + taşma menüsü ---- */
.page-title { flex-wrap: wrap; row-gap: 6px; }
.page-title h1 { font-size: var(--h1); }
.page-status { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; transform: translateY(1px); }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 8px 0 0; color: var(--murekkep-2); font-size: var(--fs-sm); max-width: none; }
.page-meta .pm-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.page-meta .pm-item + .pm-item::before { content: ""; width: 1px; height: 12px; background: var(--cizgi-koyu); margin: 0 12px; }
.page-meta .pm-label { color: var(--soluk); }
.page-meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--cizgi-koyu); }
.page-meta a:hover { color: var(--baglanti); text-decoration-color: currentColor; }
.page-header:has(.page-meta) { align-items: flex-start; }
.page-header:has(.page-meta) .page-actions { padding-top: 2px; }
.more-menu { position: relative; }
.more-menu .dropdown { min-width: 220px; }
.page-actions .btn-accent .kbd-hint { margin-left: 2px; }
.kbd-hint { display: inline-flex; gap: 2px; }
.kbd-hint kbd { min-width: 18px; padding: 0 4px; font-size: .66rem; line-height: 1.5; background: color-mix(in srgb, var(--yuzey) 55%, transparent); border-color: color-mix(in srgb, currentColor 22%, transparent); color: inherit; opacity: .8; }
@media (hover: none), (max-width: 960px) { .page-actions .kbd-hint { display: none; } }

/* ---- Tek çip ailesi: .badge (renkli metin) ve .status (noktalı) aynı ölçüde ---- */
.badge, .status {
    display: inline-flex; align-items: center; gap: 6px; height: var(--cip-h); padding: 0 9px; border-radius: var(--r-tam);
    font: 550 .75rem/1 var(--font-govde); letter-spacing: 0; white-space: nowrap; vertical-align: middle;
}
.status { background: color-mix(in srgb, var(--st, var(--cizgi-koyu)) 11%, var(--yuzey)); color: var(--murekkep); padding-left: 8px; }
.status::before { width: 6px; height: 6px; box-shadow: none; }
.status-closed { --st: var(--murekkep-2); background: var(--yuzey-3); box-shadow: inset 0 0 0 1px var(--cizgi-koyu); }
.status-neutral { background: var(--yuzey-3); }
.status-neutral::before { background: var(--soluk); opacity: .7; }
.status-warn { --st: var(--ikaz-2); }
.table .status, .table .badge { height: 20px; font-size: .72rem; }
.tabs .badge, .seg .badge, .nav .badge { height: 18px; padding: 0 6px; font-size: .68rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status { background: color-mix(in srgb, var(--st, var(--cizgi-koyu)) 16%, var(--yuzey)); } }
:root[data-theme="dark"] .status { background: color-mix(in srgb, var(--st, var(--cizgi-koyu)) 16%, var(--yuzey)); }

/* ---- İş akışı adımları: status_steps([...], $aktif) → <ol class="steps"> ---- */
.steps {
    list-style: none; margin: 0 0 var(--s-6); padding: 0; display: flex; align-items: flex-start; gap: 0;
    counter-reset: none; min-width: 0;
}
.steps > li { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding-right: 12px; }
.steps > li:last-child { flex: 0 1 auto; padding-right: 0; }
.steps > li:not(:last-child)::after {
    content: ""; flex: 1; height: 2px; margin-top: 11px; min-width: 16px; border-radius: 1px; background: var(--cizgi); order: 3;
}
.steps > li.is-done:not(:last-child)::after { background: color-mix(in srgb, var(--onay) 55%, var(--cizgi)); }
.st-mark {
    order: 1; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    font: 600 .72rem/1 var(--font-govde); color: var(--soluk); background: var(--yuzey); box-shadow: inset 0 0 0 1.5px var(--cizgi-koyu);
}
.st-mark svg { width: 13px; height: 13px; stroke-width: 2.6; }
.st-text { order: 2; display: flex; flex-direction: column; min-width: 0; padding-top: 3px; }
.st-label { font-size: var(--fs-sm); font-weight: 500; color: var(--murekkep-2); white-space: nowrap; line-height: 1.3; }
.st-sub { font-size: .72rem; color: var(--soluk); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26ch; }
.steps > li.is-done .st-mark { background: var(--onay); color: #fff; box-shadow: none; }
.steps > li.is-current .st-mark { background: var(--ikaz); color: var(--ikaz-metin); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ikaz) 22%, transparent); }
.steps > li.is-current .st-label, .steps > li.is-danger .st-label { color: var(--murekkep); font-weight: 600; }
.steps > li.is-danger .st-mark { background: var(--hata); color: #fff; box-shadow: 0 0 0 4px var(--hata-zemin); }
.steps > li.is-todo .st-label { color: var(--soluk); }
.steps.is-stopped > li.is-todo { opacity: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps > li.is-done .st-mark { color: #0c1216; } }
:root[data-theme="dark"] .steps > li.is-done .st-mark { color: #0c1216; }
.card-body > .steps:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
    .steps { flex-direction: column; gap: 0; }
    .steps > li { flex: none; width: 100%; padding: 0 0 14px; }
    .steps > li:not(:last-child)::after { position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; height: auto; margin: 0; min-width: 0; }
    .st-sub { max-width: none; }
}

/* ---- Künye şeridi (.summary): kutusuz, ince ayraçlı, sayılar tnum ---- */
.summary {
    background: transparent; border-radius: 0; box-shadow: none; padding: var(--s-4) 0; gap: var(--s-3) 0;
    border-top: 1px solid var(--cizgi-ince); border-bottom: 1px solid var(--cizgi-ince); margin-bottom: var(--s-6); align-items: stretch;
}
.summary > .summary-item { padding: 0 var(--s-6); border-left: 1px solid var(--cizgi-ince); }
.summary > .summary-lead + .summary-item, .summary > .summary-item:first-child { border-left: 0; padding-left: 0; }
.summary-lead { padding-right: var(--s-6); align-self: center; }
.summary-lead:empty { display: none; }
.summary-item dt, .summary-label { font-size: .75rem; color: var(--soluk); margin-bottom: 4px; }
.summary-item dd, .summary-value { font-size: .9375rem; font-weight: 550; color: var(--murekkep); }
.summary-item dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--cizgi-koyu); }
.summary-item dd a:hover { color: var(--baglanti); }
.steps + .summary { margin-top: calc(-1 * var(--s-2)); }
@media (max-width: 640px) {
    .summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); padding: var(--s-3) 0; }
    .summary > .summary-item { padding: 0; border-left: 0; }
    .summary-lead { grid-column: 1 / -1; padding: 0; }
}

/* ---- Yan panel künyesi: meta_list([...]) ---- */
.meta-list { margin: 0; display: grid; gap: 0; font-size: var(--fs-sm); }
.meta-list > div { display: grid; grid-template-columns: minmax(96px, 40%) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--cizgi-ince); }
.meta-list > div:first-child { padding-top: 0; }
.meta-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-list dt { color: var(--soluk); }
.meta-list dd { margin: 0; color: var(--murekkep); font-weight: 500; overflow-wrap: anywhere; }
.side-panel > .card:has(> .card-body > .meta-list:only-child) { order: 9; }
.side-panel .card-header { padding-bottom: 8px; }
.side-panel .card-body { padding-top: 8px; }
.side-panel .card-header + .card-body { padding-top: 4px; }
.side-panel .timeline li { padding-bottom: 14px; font-size: var(--fs-sm); }
.side-panel .btn-block + .btn-block, .side-panel form + form { margin-top: var(--s-2); }
.side-panel hr { margin: var(--s-4) 0; border-top-color: var(--cizgi-ince); }

/* ---- Zaman çizelgesi: ince, kişi + zaman ikinci satırda ---- */
.timeline li::before { left: 4px; top: 6px; width: 9px; height: 9px; border-width: 2px; }
.timeline li::after { left: 8px; top: 20px; width: 1px; background: var(--cizgi); }
.timeline strong { font-weight: 550; }

/* ---- Formlar: zorunlu işaret, satır içi doğrulama, hizalı genişlikler ---- */
.field:has(> :is(input, select, textarea)[required]) > label:not(:has(.req))::after,
.field:has(> .input-affix > input[required]) > label:not(:has(.req))::after { content: " *"; color: var(--hata); font-weight: 500; }
.field .req { margin-left: 2px; }
.field label { margin-bottom: 6px; }
.field .hint { margin-top: 6px; }
:is(input, select, textarea):user-invalid { border-color: var(--hata); }
:is(input, select, textarea):user-invalid:focus { box-shadow: 0 0 0 4px var(--hata-zemin); }
.field:has(:user-invalid) > label { color: var(--hata); }
.form-grid { gap: var(--s-4) var(--s-6); }
.form-block { padding: var(--s-8) 0; gap: var(--s-8); grid-template-columns: minmax(200px, 264px) minmax(0, 1fr); }
.form-block-head h3 { margin-bottom: 6px; }
.form-block-head p { line-height: 1.5; max-width: 34ch; }
.form-block-body { max-width: 720px; }
.form-section { margin-top: var(--s-4); padding-top: var(--s-6); }
.card-body > form > .form-grid + .form-actions, .card-body > .form-grid + .form-actions { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--cizgi-ince); }
/* Uzun formlarda eylem çubuğu ekranın altına yapışır (app.js .is-sticky ekler) */
.form-actions.is-sticky {
    position: sticky; bottom: calc(var(--alt-menu-h) + env(safe-area-inset-bottom)); z-index: 20;
    margin-left: calc(-1 * var(--sticky-pad, 20px)); margin-right: calc(-1 * var(--sticky-pad, 20px)); padding: 12px var(--sticky-pad, 20px);
    background: color-mix(in srgb, var(--yuzey) 90%, transparent); border-top: 1px solid var(--cizgi);
    -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
    border-radius: 0 0 14px 14px; align-items: center;
}
.form-actions.is-sticky.is-stuck { box-shadow: 0 -8px 24px -12px rgba(16, 32, 44, .18); border-radius: 0; }
.form-actions .fa-hint { margin-right: auto; font-size: var(--fs-xs); color: var(--soluk); display: inline-flex; gap: 6px; align-items: center; }
@media (hover: none), (max-width: 640px) { .form-actions .fa-hint { display: none; } }

/* Bölümlü formlar (app.js .form-grid + .form-section → .form-blocks > .form-block) */
.form-blocks > .form-block:first-child { padding-top: var(--s-2); }
.form-blocks > .form-block:last-child { padding-bottom: var(--s-2); }
.form-block-body.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-block-body.form-grid.cols-1 { grid-template-columns: 1fr; }
.form-block-body .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-block-body.form-grid { grid-template-columns: 1fr; } .form-block-body .span-2 { grid-column: auto; } }

/* ---- Dosya bırakma alanı (app.js input[type=file] öğesini .dropzone içine alır) ---- */
.dropzone {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px;
    border: 1.5px dashed var(--cizgi-koyu); border-radius: 12px; background: var(--yuzey-2); color: var(--murekkep-2);
    transition: border-color var(--hiz-1), background-color var(--hiz-1);
}
.dropzone > input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; min-height: 0; padding: 0; border: 0; }
.dropzone:hover, .dropzone.is-over { border-color: var(--celik-2); background: color-mix(in srgb, var(--celik-2) 6%, var(--yuzey)); }
.dropzone:focus-within { border-color: var(--odak); box-shadow: 0 0 0 4px var(--odak-halka); }
.dz-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--yuzey); color: var(--celik-metin); box-shadow: 0 0 0 1px var(--cizgi), 0 1px 2px rgba(16, 32, 44, .06); }
.dz-ic svg { width: 18px; height: 18px; }
.dz-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.dz-text b { font-weight: 550; color: var(--murekkep); }
.dz-text b u { text-decoration-color: var(--cizgi-koyu); color: var(--baglanti); }
.dz-text small { color: var(--soluk); font-size: .75rem; }
.dropzone.has-file { border-style: solid; border-color: var(--onay-cizgi); background: color-mix(in srgb, var(--onay) 6%, var(--yuzey)); }
.dropzone.has-file .dz-ic { color: var(--onay); }
.dropzone.has-file .dz-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.has-error .dropzone, .dropzone:has(input:user-invalid) { border-color: var(--hata); }

/* ---- Liste araç çubuğu: etkin filtre, temizle, yoğunluk ---- */
.filters .field.is-set :is(select, input) { border-color: color-mix(in srgb, var(--celik-2) 55%, var(--cizgi-koyu)); background-color: color-mix(in srgb, var(--celik-2) 5%, var(--yuzey-girdi)); }
.filters .field.is-set > label { color: var(--celik-metin); }
.filters .tb-end { margin-left: auto; display: flex; gap: 6px; align-items: flex-end; align-self: flex-end; }
.filters .tb-clear { align-self: flex-end; min-height: var(--kontrol-h); display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--soluk); text-decoration: none; padding: 0 8px; border-radius: 8px; }
.filters .tb-clear:hover { color: var(--murekkep); background: var(--yuzey-3); }
.filters .tb-clear svg { width: 14px; height: 14px; }
.density-btn { width: var(--kontrol-h); height: var(--kontrol-h); border: 1px solid var(--cizgi); border-radius: 9px; background: var(--yuzey); color: var(--murekkep-2); }
.density-btn:hover { background: var(--yuzey-2); border-color: var(--cizgi-koyu); color: var(--murekkep); }
.density-btn[aria-pressed="true"] { background: var(--yuzey-3); color: var(--murekkep); }
html[data-density="compact"] .table:not(.table-compact) th, html[data-density="compact"] .table:not(.table-compact) td { padding-top: 6px; padding-bottom: 6px; }
html[data-density="compact"] .table .avatar { width: 24px; height: 24px; font-size: .62rem; }
html[data-density="compact"] .table .sub { display: inline; margin-left: 6px; }
.filters-toggle { display: none; }
@media (max-width: 640px) {
    .filters.is-collapsible { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
    .filters.is-collapsible > * { grid-column: 1 / -1; }
    .filters.is-collapsible > .field.keep { grid-column: 1; }
    .filters.is-collapsible > .filters-toggle { display: inline-flex; grid-column: 2; }
    .filters.is-collapsible:not(.is-open) > .field:not(.keep), .filters.is-collapsible:not(.is-open) > .tb-clear { display: none; }
    .filters.is-collapsible:not(:has(> .keep)) > .filters-toggle { grid-column: 1 / -1; justify-content: center; }
}
.list-count { font-size: var(--fs-sm); color: var(--soluk); }

/* ---- Tablo: yapışkan başlık zaten var; seçim + toplu işlem çubuğu ---- */
.bulk-bar { border-radius: 12px; background: var(--murekkep); color: var(--zemin); border: 0; box-shadow: var(--golge-2); }
.bulk-bar strong { color: inherit; }
.bulk-bar .btn { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--zemin) 30%, transparent); box-shadow: none; }
.bulk-bar .btn:hover { background: color-mix(in srgb, var(--zemin) 12%, transparent); color: inherit; }
.bulk-bar .btn-primary, .bulk-bar .btn-accent { background: var(--ikaz); border-color: var(--ikaz); color: var(--ikaz-metin); }
.content > .card:has(> .table-wrap, > .card-body.flush, > .filters) .bulk-bar { border-radius: 12px; }
.table tbody tr.is-selected > td:first-child { box-shadow: inset 2px 0 0 var(--celik-2); }

/* ---- Sayfalama ---- */
.pagination { gap: 2px; padding: var(--s-4) 12px; }
.pagination a, .pagination span.current { min-width: 32px; height: 32px; font-weight: 500; }
.pagination span.current { background: var(--yuzey-3); color: var(--murekkep); border-color: transparent; box-shadow: inset 0 0 0 1px var(--cizgi-koyu); }
.pagination .muted { font-size: var(--fs-xs); }

/* ---- Boş durum ---- */
.empty-state { padding: var(--s-12) var(--s-5); }
.empty-state h3 { font-size: var(--h3); font-weight: 600; letter-spacing: -.01em; }
.empty-state p { font-size: var(--fs-sm); line-height: 1.55; max-width: 48ch; }
.empty-state > div:last-child { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.empty-state .btn + .btn { margin-left: 0; }
td > .empty-state, .card-body > .empty-state:only-child { padding-top: var(--s-10); padding-bottom: var(--s-10); }

/* ---- Sekmeler: sayaçlı rozet hizası, ince alt çizgi ---- */
.tabs { margin-bottom: var(--s-6); }
.tabs a { padding: 10px 12px 12px; }
.tabs a .badge { margin-left: 2px; }

/* ---- Kart başlığında eylem ---- */
.card-header .btn-sm { margin: -4px 0; }
.card-header > .row, .card-header > div:last-child:not(:first-child) { gap: 6px; }

/* ---- Bildirim balonu ---- */
.toast-region .alert { padding: 13px 40px 13px 46px; font-weight: 500; }
.toast-region .alert::before { left: 16px; top: 14px; }
.toast-region .alert ul { font-weight: 400; }

/* ---- Odak: tutarlı çift halka ---- */
.btn:focus-visible, .icon-btn:focus-visible, .pagination a:focus-visible, .tabs a:focus-visible, .seg > :focus-visible { outline: 2px solid var(--odak); outline-offset: 2px; }
a.row-link:focus-visible, .table a:focus-visible { outline-offset: 1px; border-radius: 3px; }

/* ---- Sayfa girişi: tek, kısa; görünüm geçişi destekleyen tarayıcıda o yapar ---- */
@supports not (view-transition-name: none) {
    .content { animation: sp-enter .22s var(--egri) both; }
}
@keyframes sp-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---- İskelet tablo (JS yüklerken) ---- */
.sk-table { display: grid; gap: 0; }
.sk-table .sk-row { padding: 12px 0; border-bottom: 1px solid var(--cizgi-ince); }

/* ---- Mobil: tablolar kart satırına döner (app.js td[data-label] doldurur, .is-cards ekler) ---- */
@media (max-width: 640px) {
    .table.is-cards, .table.is-cards tbody, .table.is-cards tr, .table.is-cards td { display: block; width: 100%; }
    .table.is-cards thead { display: none; }
    .table.is-cards tfoot { display: block; }
    .table.is-cards tfoot tr { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 12px 16px; }
    .table.is-cards tfoot td, .table.is-cards tfoot th { display: inline; padding: 0 !important; border: 0; width: auto; }
    .table.is-cards tbody tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 14px 16px; border-bottom: 1px solid var(--cizgi-ince); }
    .table.is-cards tbody tr:last-child { border-bottom: 0; }
    .table.is-cards tbody tr:hover > td { background: transparent; }
    .table.is-cards td { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 !important; border: 0; text-align: left; white-space: normal !important; min-width: 0; width: auto; overflow-wrap: anywhere; }
    .table.is-cards td::before { content: attr(data-label); color: var(--soluk); font-size: .72rem; font-weight: 500; line-height: 1.3; }
    .table.is-cards td:not([data-label])::before, .table.is-cards td[data-label=""]::before { display: none; }
    .table.is-cards td.num { text-align: left; }
    .table.is-cards td.is-title { grid-column: 1 / -1; order: -1; font-size: .95rem; padding-right: 40px !important; }
    .table.is-cards td.is-title::before { display: none; }
    .table.is-cards td.is-title .sub { display: block; }
    .table.is-cards td.col-check { position: absolute; right: 16px; top: 14px; width: auto; }
    .table.is-cards td.col-check::before { display: none; }
    .table.is-cards td.actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; flex-wrap: wrap; width: auto; }
    .table.is-cards td.actions::before { display: none; }
    .table.is-cards td[colspan] { grid-column: 1 / -1; }
    .table.is-cards td[colspan]::before { display: none; }
    .table.is-cards td:empty { display: none; }
    .table-wrap:has(> .table.is-cards) { overflow: visible; }
    .content > .card:has(> .table-wrap, > .card-body.flush, > .filters) .table.is-cards tbody tr { padding-left: 12px; padding-right: 12px; }
}

/* ---- Sihirbaz adım başlığı (içe aktarma, kaldırma planı): .wizard-steps = .steps + kart üstü ---- */
.wizard-head { display: flex; flex-direction: column; gap: var(--s-4); margin-bottom: var(--s-6); }
.wizard-head .steps { margin: 0; }
.wizard-head.is-nav {
    position: sticky; top: var(--ust-yukseklik); z-index: 15; margin: calc(-1 * var(--s-2)) calc(-1 * var(--s-3)) var(--s-5); padding: 12px var(--s-3);
    background: color-mix(in srgb, var(--zemin) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--cizgi-ince);
}
.wizard-head.is-nav a.st-text { text-decoration: none; color: inherit; border-radius: 4px; }
.wizard-head.is-nav a.st-text:hover .st-label { color: var(--murekkep); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .wizard-head.is-nav { display: none; } }

/* ---- Koyu tema eşitliği ---- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .bulk-bar { background: var(--yuzey-3); color: var(--murekkep); box-shadow: 0 0 0 1px var(--cizgi); }
    :root:not([data-theme="light"]) .form-actions.is-sticky.is-stuck { box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .6); }
    :root:not([data-theme="light"]) .dz-ic { background: var(--yuzey-3); box-shadow: 0 0 0 1px var(--cizgi); }
}
:root[data-theme="dark"] .bulk-bar { background: var(--yuzey-3); color: var(--murekkep); box-shadow: 0 0 0 1px var(--cizgi); }
:root[data-theme="dark"] .form-actions.is-sticky.is-stuck { box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .dz-ic { background: var(--yuzey-3); box-shadow: 0 0 0 1px var(--cizgi); }

@media (prefers-reduced-motion: reduce) {
    .content { animation: none !important; }
}
@media print {
    .steps { margin-bottom: 4mm; }
    .steps > li.is-current .st-mark { box-shadow: none; }
    .more-menu, .density-btn, .tb-clear, .form-actions { display: none !important; }
    .dropzone { display: none !important; }
}
