:root {
    --renk-ana: #0f3d5e;
    --renk-vurgu: #f0a500;
    --renk-zemin: #f4f6f8;
    --renk-kart: #ffffff;
    --renk-yazi: #1d2733;
    --renk-soluk: #5b6b7b;
    --renk-iyi: #1f8a4c;
    --renk-hata: #c0392b;
    --kenar: #dde3ea;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    color: var(--renk-yazi);
    background: var(--renk-zemin);
}

/* --- Yerleşim --- */
.ust-bant {
    background: var(--renk-ana);
    padding: 0.75rem 1rem;
}

.logo {
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-decoration: none;
}

    .logo span { color: var(--renk-vurgu); }

.icerik {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

h1 { margin: 0.5rem 0 0; }
.alt-baslik { margin: 0 0 1rem; color: var(--renk-soluk); }

.kart {
    background: var(--renk-kart);
    border: 1px solid var(--kenar);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

    .kart h2 { margin-top: 0; font-size: 1.1rem; }

.durum-listesi {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1rem;
}

    .durum-listesi dt { color: var(--renk-soluk); }
    .durum-listesi dd { margin: 0; }

.durum.iyi { color: var(--renk-iyi); font-weight: 600; }
.durum.hata { color: var(--renk-hata); font-weight: 600; }
.kucuk { font-size: 0.85rem; color: var(--renk-soluk); }

.dugme {
    margin-top: 1rem;
    background: var(--renk-ana);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
}

    .dugme:disabled { opacity: 0.6; cursor: default; }

/* --- Üst bant: kullanıcı bilgisi --- */
.ust-bant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ust-bilgi {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 0.9rem;
    min-width: 0;
}

.proje-adi {
    color: var(--renk-vurgu);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kisi { opacity: 0.85; white-space: nowrap; }

@media (max-width: 560px) {
    .kisi { display: none; }   /* telefonda yer açmak için */
}

.dugme-ince {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.bekleme {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--renk-soluk);
}

/* --- Giriş ve proje seçimi (BosLayout) --- */
.bos-sayfa {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(160deg, var(--renk-ana) 0%, #1c5a85 100%);
}

.bos-kutu {
    width: 100%;
    max-width: 380px;
    background: var(--renk-kart);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.bos-logo {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--renk-ana);
}

    .bos-logo span { color: var(--renk-vurgu); }

.bos-alt {
    text-align: center;
    color: var(--renk-soluk);
    margin-bottom: 1.5rem;
}

.bos-baslik { margin-top: 0; }

.form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .form label { font-weight: 600; font-size: 0.9rem; margin-top: 0.5rem; }

    .form input:not([type=checkbox]):not([type=radio]) {
        font-size: 1rem;
        padding: 0.65rem 0.75rem;
        border: 1px solid var(--kenar);
        border-radius: 8px;
    }

        .form input:focus { outline: 2px solid var(--renk-ana); outline-offset: 0; }

    .form .secim {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: normal;
    }

.form-hata {
    color: var(--renk-hata);
    background: #fdecea;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin: 0.5rem 0 0;
}

.dugme.genis { width: 100%; }

.dugme-bag {
    margin-top: 1rem;
    background: none;
    border: 0;
    color: var(--renk-soluk);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

/* --- Dil seçici --- */
.dil-secici {
    display: flex;
    justify-content: flex-end;
    gap: 0.15rem;
}

    .dil-secici button {
        background: none;
        border: 1px solid transparent;
        border-radius: 5px;
        padding: 0.15rem 0.4rem;
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--renk-soluk);
        cursor: pointer;
    }

        .dil-secici button.secili { border-color: var(--kenar); color: var(--renk-ana); }

    .durum-listesi .dil-secici { justify-content: flex-start; }
    .dil-secici.koyu button { color: rgba(255, 255, 255, 0.7); }
        .dil-secici.koyu button.secili { color: #fff; border-color: rgba(255, 255, 255, 0.5); }

/* --- Menü (üst bandın altı) --- */
.menu {
    display: flex;
    gap: 0.25rem;
    padding: 0 1rem;
    background: #fff;
    border-bottom: 1px solid var(--kenar);
    overflow-x: auto;           /* telefonda yana kaydırılır */
    white-space: nowrap;
}

    .menu a {
        padding: 0.7rem 0.8rem;
        color: var(--renk-soluk);
        text-decoration: none;
        border-bottom: 3px solid transparent;
    }

        .menu a.active { color: var(--renk-ana); border-bottom-color: var(--renk-vurgu); font-weight: 600; }
        .menu a.menu-sag { margin-left: auto; }   /* Profilim en sağda */

a.kisi { color: #fff; text-decoration: none; }

/* --- Sayfa düzeni --- */
.sayfa-basi {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

    .sayfa-basi .alt-baslik { margin-bottom: 0; }
    .sayfa-basi .dugmeler { margin-top: 0; margin-left: auto; }   /* alta kayarsa sağda kalsın */

.geri-bag { display: inline-block; margin: 0.25rem 0 0.25rem; color: var(--renk-soluk); text-decoration: none; }

.ara-baslik { font-size: 1rem; margin: 1.25rem 0 0.25rem; }

.bilgi-kutusu {
    background: #eaf5ee;
    color: #1d5e37;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}

/* --- Düğmeler --- */
a.dugme { display: inline-block; text-decoration: none; margin-top: 0; }
.dugme.ikincil { background: #fff; color: var(--renk-ana); border: 1px solid var(--kenar); }
.dugme.sag { margin-left: auto; }

.dugmeler {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

    .dugmeler .dugme { margin-top: 0; }

.dugme-kucuk {
    background: #fff;
    border: 1px solid var(--kenar);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
}

    .dugme-kucuk.tehlike, .dugme.tehlike { background: var(--renk-hata); border-color: var(--renk-hata); color: #fff; }

/* --- Form alanları --- */
.form select, .form textarea, .suzgec select, .suzgec input {
    font: inherit;
    font-size: 1rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--kenar);
    border-radius: 8px;
    background: #fff;
}

.form textarea { resize: vertical; }

.iki-sutun { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .iki-sutun > div { display: flex; flex-direction: column; gap: 0.4rem; }

@media (max-width: 560px) { .iki-sutun { grid-template-columns: 1fr; } }

.satir { display: flex; gap: 0.5rem; }
    .satir input { flex: 1; min-width: 0; }
    .satir .dugme { margin-top: 0; white-space: nowrap; }

.secenekler { display: grid; gap: 0.4rem; }

.secenek {
    display: flex !important;
    gap: 0.6rem;
    align-items: flex-start;
    border: 1px solid var(--kenar);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-weight: normal !important;
    margin-top: 0 !important;
    cursor: pointer;
}

    .secenek.secili { border-color: var(--renk-ana); background: #eef4f9; }
    .secenek small { color: var(--renk-soluk); }

.suzgec {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

    .suzgec input { flex: 1; min-width: 10rem; }
    .suzgec .dugme { margin-top: 0; }

/* --- Listeler --- */
.liste {
    background: var(--renk-kart);
    border: 1px solid var(--kenar);
    border-radius: 10px;
    overflow: hidden;
}

.liste-satiri {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--kenar);
    color: inherit;
    text-decoration: none;
}

    .liste-satiri:first-child { border-top: 0; }
    .liste-satiri.tiklanir:hover { background: #f7f9fb; }

.liste-ana { min-width: 0; }
.liste-baslik { font-weight: 600; color: var(--renk-yazi); text-decoration: none; }
a.liste-baslik:hover { text-decoration: underline; }

.liste-alt {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: var(--renk-soluk);
}

.liste-yan { text-align: right; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; }
.liste-islem { display: flex; gap: 0.35rem; align-items: center; flex-shrink: 0; }

.giris-var { color: var(--renk-iyi); }

@media (max-width: 560px) {
    .liste-satiri { flex-direction: column; align-items: flex-start; }
    .liste-yan { text-align: left; }
}

.etiket {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: #eef1f4;
    color: var(--renk-soluk);
    font-size: 0.78rem;
}

    .etiket.rol-1 { background: #e6f0fa; color: #1c5a85; }   /* denetçi */
    .etiket.rol-2 { background: #fff3d6; color: #8a5a00; }   /* yönetici */
    .etiket.durum-iyi { background: #e3f4ea; color: #1f8a4c; }
    .etiket.durum-kotu { background: #fbe5e2; color: #c0392b; }

/* --- Form doğrulama --- */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--renk-iyi); }
.invalid { outline: 1px solid var(--renk-hata); }
.validation-message { color: var(--renk-hata); }

/* --- Blazor hata çubuğu --- */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after { content: "⚠"; }

/* --- Açılış göstergesi --- */
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--renk-ana);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after { content: var(--blazor-load-percentage-text, ""); }

/* Giriş ekranındaki şifrele (kurtarma) sonucu */
textarea.hash { width: 100%; font-family: Consolas, monospace; font-size: 0.8rem; word-break: break-all; resize: none; }

/* --- Açılır pencere (Bilesenler/Pencere.razor): ekle / düzenle işleri --- */
.pencere-arka {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(8, 22, 38, 0.6);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 5vh 16px;
    overflow-y: auto;
}

.pencere {
    background: #fff;
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.pencere-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--kenar);
}

    .pencere-ust h2 { margin: 0; font-size: 1.15rem; }

.pencere-kapat {
    border: 0;
    background: none;
    font-size: 1.7rem;
    line-height: 1;
    padding: 0 0.25rem;
    color: var(--renk-soluk);
    cursor: pointer;
}

    .pencere-kapat:hover { color: var(--renk-yazi, #1d2733); }

.pencere-icerik { padding: 1rem 1.25rem 1.25rem; }

/* Pencere içindeki ikinci bölüm (ör. kişinin "Sisteme giriş" bölümü) */
.pencere-bolum { border-top: 1px solid var(--kenar); margin-top: 1.25rem; padding-top: 1rem; }
    .pencere-bolum h3 { margin: 0 0 0.5rem; font-size: 1rem; }

/* Pencere açıkken arkadaki sayfa kaymasın */
body:has(.pencere-arka) { overflow: hidden; }

@media (max-width: 560px) {
    .pencere-arka { padding: 0; }
    .pencere { border-radius: 0; min-height: 100%; box-shadow: none; }
}

/* --- Sekmeler (pencere içinde: GENEL / NOTLAR …) --- */
.sekmeler { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--kenar); margin: -0.25rem 0 1rem; }

.sekme {
    border: 0;
    background: none;
    padding: 0.6rem 1rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--renk-soluk);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
}

    .sekme:hover { color: var(--renk-yazi); }
    .sekme.secili { color: var(--renk-ana); border-bottom-color: var(--renk-vurgu); }

textarea.notlar { width: 100%; min-height: 18rem; font-family: inherit; line-height: 1.5; resize: vertical; }

/* --- Ağaç görünümü (Konumlar) --- */
.agac-satiri { padding-top: 0.45rem; padding-bottom: 0.45rem; }
.agac-ana { display: flex; align-items: center; gap: 0.4rem; flex-direction: row; }
.agac-ac {
    width: 1.6rem; height: 1.6rem; flex: none;
    border: 0; background: none; cursor: pointer;
    color: var(--renk-soluk); font-size: 1rem; line-height: 1;
}
    .agac-ac:hover { color: var(--renk-ana); }
    .agac-ac.bos { cursor: default; }

@media (max-width: 560px) {
    /* Telefonda ağaç satırı tek satırda kalsın; düğmeler sığmazsa sağa doğru alta kayar. */
    .liste-satiri.agac-satiri { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
    .agac-satiri .liste-islem { margin-left: auto; }
}

/* --- Konum sayfası --- */
.yol { font-size: 0.9rem; color: var(--renk-soluk); margin-bottom: 0.25rem; }
    .yol a { color: var(--renk-soluk); }
.konum-duzen { display: grid; grid-template-columns: 1fr 260px; gap: 1rem; align-items: start; }
.qr-kart { text-align: center; }
.qr-resim { width: 200px; height: 200px; display: block; margin: 0 auto 0.5rem; }
a.liste-baslik { color: inherit; text-decoration: none; }
    a.liste-baslik:hover { text-decoration: underline; }
@media (max-width: 700px) { .konum-duzen { grid-template-columns: 1fr; } }

/* --- QR etiketleri (yazdırma) --- */
.etiketler { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.75rem; }
.etiket-kart {
    display: flex; gap: 0.6rem; align-items: center;
    background: #fff; border: 1px dashed #b8c2cc; border-radius: 6px; padding: 0.5rem;
    break-inside: avoid;
}
    .etiket-kart img { width: 96px; height: 96px; flex: none; }
.etiket-yazi { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
    .etiket-yazi strong { font-size: 1rem; }
    .etiket-yazi span { font-size: 0.75rem; color: #444; }
    .etiket-yazi small { font-size: 0.7rem; color: #777; }

@media print {
    .yazdirma-yok { display: none !important; }
    html, body, .icerik { background: #fff !important; margin: 0; padding: 0; }
    .etiketler { grid-template-columns: repeat(3, 1fr); gap: 4mm; }
    .etiket-kart { border-color: #999; }
}

/* --- Tespitler --- */
.suzgec-sekmeler { margin: 0 0 0.75rem; overflow-x: auto; }
.suzgec-bilgi { font-size: 0.9rem; margin: -0.25rem 0 0.75rem; }
    .suzgec-bilgi a { margin-left: 0.4rem; text-decoration: none; }

.etiket.tdurum-1 { background: #fff1e0; color: #a35a00; }   /* açık */
.etiket.tdurum-2 { background: #e6f0fa; color: #1c5a85; }   /* incelemeye hazır */
.etiket.tdurum-3 { background: #fbe5e2; color: #c0392b; }   /* uyuşmazlık */
.etiket.tdurum-4 { background: #e3f4ea; color: #1f8a4c; }   /* kapalı */
.etiket.asama-1 { background: #e3f4ea; color: #1f8a4c; }
.etiket.asama-2 { background: #fff1e0; color: #a35a00; }
.etiket.asama-3 { background: #fbe5e2; color: #c0392b; }
.etiket.asama-4 { background: #c0392b; color: #fff; }
.etiket.sira-bende { background: var(--renk-vurgu); color: #fff; }

.tespit-satiri { align-items: center; }
.tespit-kapak { width: 56px; height: 56px; flex: none; border-radius: 6px; background: #eef1f4; overflow: hidden; }
    .tespit-kapak img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tespit-satiri .liste-ana { flex: 1; }
.tespit-yan { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; flex: none; }

.tespit-ust { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.75rem; }
.tespit-bilgi { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 0 0 1rem; font-size: 0.92rem; }
    .tespit-bilgi dt { color: var(--renk-soluk); }
    .tespit-bilgi dd { margin: 0; }
    .tespit-bilgi .gecikti { color: var(--renk-hata); font-weight: 600; }

.akis { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--kenar); }
.akis-adim { position: relative; padding: 0 0 1rem 0.75rem; }
    .akis-adim::before {
        content: ""; position: absolute; left: calc(-1rem - 6px); top: 0.3rem;
        width: 10px; height: 10px; border-radius: 50%; background: var(--renk-ana);
    }
    .akis-adim.akis-2::before { background: var(--renk-vurgu); }
    .akis-adim.akis-3::before { background: var(--renk-hata); }
    .akis-adim.akis-4::before { background: var(--renk-iyi); }
.akis-bas { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; align-items: baseline; }
.akis-etiketler { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.3rem; }
.akis-metin { margin: 0.35rem 0 0; white-space: pre-wrap; }
.akis-fotolar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
    .akis-fotolar img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; background: #eef1f4; display: block; }

.foto-ekle { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.foto-kucuk { position: relative; width: 72px; height: 72px; }
    .foto-kucuk img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
    .foto-kucuk button {
        position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
        border: 0; background: #333; color: #fff; cursor: pointer; line-height: 1;
    }
.foto-ekle-dugme {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    min-height: 72px; padding: 0 1rem; border: 1px dashed #9aa8b6; border-radius: 6px;
    cursor: pointer; font-weight: 600 !important; font-size: 0.9rem !important; margin: 0 !important; color: var(--renk-ana);
}
    .foto-ekle-dugme.pasif { opacity: 0.6; cursor: default; }
    .foto-ekle-dugme input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.sekme { white-space: nowrap; }

@media (max-width: 560px) {
    /* Telefonda: küçük resim + metin yan yana, durum etiketleri metnin altında tek satırda. */
    .tespit-satiri { flex-direction: row !important; flex-wrap: wrap; align-items: flex-start !important; }
    .tespit-satiri .liste-ana { flex: 1 1 calc(100% - 72px); }
    .tespit-yan { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; padding-left: calc(56px + 0.75rem); }
    .tespit-bilgi { grid-template-columns: 1fr; gap: 0 0; }
        .tespit-bilgi dd { margin-bottom: 0.4rem; }
}
