/* ==========================================================================
   usulesas.com — Back office tasarım sistemi
   Açık (light) tema. Harici kaynak yok (CSP: default-src 'self').
   ========================================================================== */

:root {
    /* Yüzeyler */
    --bg:            #f5f6f8;
    --surface:       #ffffff;
    --surface-2:     #fafbfc;
    --surface-3:     #f0f2f5;

    /* Metin */
    --text:          #1a1d23;
    --text-2:        #4a5260;
    --text-3:        #7a8494;
    --text-inv:      #ffffff;

    /* Çizgiler */
    --border:        #e3e6ea;
    --border-2:      #d3d8de;

    /* Marka — hukuk ürününde ciddiyet: derin lacivert */
    --brand:         #1e3a5f;
    --brand-600:     #17304f;
    --brand-700:     #122740;
    --brand-soft:    #eaeff5;
    --accent:        #b8863b;   /* mühür/altın vurgu */
    --accent-soft:   #fbf4e8;

    /* Anlamsal — süre aciliyeti */
    --critical:      #c0392b;
    --critical-soft: #fdedeb;
    --warning:       #b7791f;
    --warning-soft:  #fdf6e7;
    --ok:            #1e7e5a;
    --ok-soft:       #e9f6f1;
    --past:          #6b21a8;
    --past-soft:     #f5edfc;
    --info:          #2563a8;
    --info-soft:     #eaf1f9;

    /* Ölçü */
    --sidebar-w:     248px;
    --header-h:      60px;
    --radius:        8px;
    --radius-sm:     6px;

    --shadow-sm:     0 1px 2px rgba(16, 24, 40, .05);
    --shadow:        0 2px 8px rgba(16, 24, 40, .08);
    --shadow-lg:     0 8px 24px rgba(16, 24, 40, .12);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

/* --- Sıfırlama ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }

p { margin: 0 0 12px; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Satır içi ikonların TAMAMI stroke tabanlıdır (helpers.php → usul_icon).
   Bu global taban olmadan, boyut/dolgu kuralı unutulan her yeni ikon
   sayfada dev bir siyah blok olarak çıkar. Taban burada bir kez tanımlanır;
   bağlamlar yalnızca boyutu değiştirir. */
svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: -2px;
}

/* ==========================================================================
   YERLEŞİM: sol menü + üst header + içerik
   ========================================================================== */
.app {
    display: grid;
    /* minmax(0, 1fr) — düz `1fr` DEĞİL.
       Izgara sütunlarının örtük alt sınırı `min-content`tir; header'daki
       esnek olmayan öğeler (arama kutusu, kritik süre rozeti, butonlar)
       toplamı sütunu pencereden geniş yapıyor ve TÜM sayfalarda yatay
       kaydırma doğuruyordu. minmax(0, …) bu alt sınırı kaldırır. */
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    grid-template-rows: var(--header-h) 1fr;
    grid-template-areas:
        "sidebar header"
        "sidebar main";
    min-height: 100vh;
}

/* Izgara/flex çocuklarının içeriklerinden daha dar olabilmesi için gerekli:
   aksi hâlde uzun bir dosya adı veya geniş bir tablo yerleşimi taşırır. */
.header, .main { min-width: 0; }

/* ==========================================================================
   SOL MENÜ
   ========================================================================== */
.sidebar {
    grid-area: sidebar;
    background: var(--brand);
    color: #cdd7e3;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar__brand {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    flex-shrink: 0;
}

.sidebar__logo {
    width: 30px; height: 30px;
    border-radius: 7px;
    background: var(--accent);
    color: #1a1d23;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -.5px;
    flex-shrink: 0;
}

.sidebar__name {
    font-weight: 650;
    font-size: 14px;
    color: #fff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar__sub {
    font-size: 11px;
    color: #93a6bd;
    line-height: 1.2;
}

.sidebar__nav { padding: 10px 8px 20px; flex: 1; }

.nav-group { margin-bottom: 4px; }
.nav-group__title {
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #7c8fa8;
    padding: 14px 12px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: #cdd7e3;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 1px;
    transition: background .12s, color .12s;
}
.nav-item:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
}
.nav-item--active {
    background: rgba(255, 255, 255, .13);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--accent);
}
.nav-item__icon {
    width: 17px; height: 17px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .85;
}
.nav-item__badge {
    margin-left: auto;
    background: var(--critical);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}
.nav-item__badge--muted {
    background: rgba(255, 255, 255, .16);
    color: #cdd7e3;
}

.sidebar__footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: 11px;
    color: #7c8fa8;
    flex-shrink: 0;
}

/* ==========================================================================
   AKILLI HEADER
   ========================================================================== */
.header {
    grid-area: header;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Bağlam: nerede olduğunu söyler.
   Uzun dosya adları arama kutusunu ezmesin diye daralabilir ve kırpılır —
   başlık bilgilendiricidir, arama ise işlevseldir; çakışırsa arama kazanır. */
.header__context {
    min-width: 0;
    flex: 0 1 auto;
    max-width: 320px;
}
.header__crumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-3);
    line-height: 1.2;
}
.header__crumbs a { color: var(--text-3); }
.header__crumbs a:hover { color: var(--text-2); }
.header__title {
    font-size: 15px;
    font-weight: 650;
    color: var(--text);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Global arama */
.header__search {
    flex: 1;
    max-width: 460px;
    position: relative;
    margin-left: 8px;
}
.header__search input {
    width: 100%;
    height: 34px;
    padding: 0 76px 0 34px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 13px;
    outline: none;
    transition: border-color .12s, box-shadow .12s, background .12s;
}
.header__search input:focus {
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.header__search input::placeholder { color: var(--text-3); }
.header__search-icon {
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px;
    stroke: var(--text-3);
    fill: none; stroke-width: 2;
    pointer-events: none;
}
.header__kbd {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    display: flex; gap: 3px;
    pointer-events: none;
}
kbd {
    font-family: var(--font);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-3);
    background: var(--surface-3);
    border: 1px solid var(--border-2);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.4;
}

.header__spacer { flex: 1; }

/* Kritik süre sayacı — headerın "akıllı" kısmı */
.header__alert {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 11px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}
.header__alert--critical {
    background: var(--critical-soft);
    color: var(--critical);
    border-color: #f3cdc8;
}
.header__alert--warning {
    background: var(--warning-soft);
    color: var(--warning);
    border-color: #f0e0bd;
}
.header__alert--ok {
    background: var(--ok-soft);
    color: var(--ok);
    border-color: #c9e8dc;
}
.header__alert:hover { text-decoration: none; filter: brightness(.97); }
.header__alert svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.header__divider {
    width: 1px; height: 24px;
    background: var(--border);
    flex-shrink: 0;
}

.icon-btn {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.icon-btn__dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--critical);
    border: 1.5px solid var(--surface);
}

/* Kullanıcı menüsü */
.usermenu { position: relative; flex-shrink: 0; }
.usermenu__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 8px 0 4px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.usermenu__trigger:hover { background: var(--surface-3); }
.avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid; place-items: center;
    font-size: 11.5px;
    font-weight: 650;
    flex-shrink: 0;
}
.usermenu__info { text-align: left; line-height: 1.2; }
.usermenu__name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.usermenu__role { font-size: 11px; color: var(--text-3); }

.usermenu__panel {
    position: absolute;
    right: 0; top: calc(100% + 6px);
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: none;
    z-index: 50;
}
.usermenu__panel[data-open="1"] { display: block; }
.usermenu__header {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}
.usermenu__email { font-size: 12px; color: var(--text-3); word-break: break-all; }
.menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-2);
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}
.menu-item:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.menu-item--danger { color: var(--critical); }
.menu-item--danger:hover { background: var(--critical-soft); color: var(--critical); }
.menu-item svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ==========================================================================
   İÇERİK
   ========================================================================== */
.main {
    grid-area: main;
    padding: 20px;
    min-width: 0;
}
.container { max-width: 1400px; margin: 0 auto; }

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.page-head__title { font-size: 20px; font-weight: 650; }
.page-head__desc { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.page-head__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* --- Butonlar ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-2);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 550;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn--primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn--primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn--block { width: 100%; justify-content: center; height: 38px; }
.btn--sm { height: 28px; padding: 0 10px; font-size: 12px; }

/* --- Kartlar ------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
/* Tek sütunlu form kartı (parola değiştir gibi): geniş ekranda ortalanmaz,
   ama okunabilir bir genişlikte kalır. */
.card--narrow { max-width: 520px; }

/* Geçici parola — bir kez gösterilen, seçilip kopyalanacak değer. */
.invite-temp {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 14px;
    background: var(--surface-2);
    border: 1px dashed var(--border-2);
    border-radius: var(--radius-sm);
    user-select: all;
}
.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.card__title { font-size: 13.5px; font-weight: 650; }
.card__body { padding: 16px; }
.card__body--flush { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--main { grid-template-columns: 2fr 1fr; align-items: start; }

@media (max-width: 1180px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--main { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .app { grid-template-columns: 1fr; grid-template-areas: "header" "main"; }
    .sidebar { display: none; }
}

/* --- İstatistik kutusu --------------------------------------------------- */
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    display: block;
}
.stat:hover { text-decoration: none; border-color: var(--border-2); }
.stat__label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.stat__label svg { width: 14px; height: 14px; stroke-width: 2; }
.stat__value {
    font-size: 26px;
    font-weight: 680;
    line-height: 1.15;
    margin-top: 6px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.stat__meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.stat--critical .stat__value { color: var(--critical); }
.stat--warning  .stat__value { color: var(--warning); }
.stat--ok       .stat__value { color: var(--ok); }

/* --- Tablolar ------------------------------------------------------------ */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
    text-align: left;
    font-size: 11px;
    font-weight: 650;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 9px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }
/* Uyarı kutusu içindeki tablo: dar, çerçevesiz, arka planı kutuya uyar. */
.table--tight th,
.table--tight td { padding: 6px 10px; }
.table--tight th { background: transparent; }
.table--tight { background: rgba(255,255,255,.5); border-radius: var(--radius-sm); }

.table__num { text-align: right; font-variant-numeric: tabular-nums; }
.table__main { font-weight: 550; color: var(--text); }
.table__sub { font-size: 11.5px; color: var(--text-3); }

/* --- "İlgili yere link" ilkesi -------------------------------------------
   Ekranda görünen her kayıt, ayrıntısının bulunduğu yere bağlanır. Bir tarih,
   bir dosya adı ya da bir tutar gösterip kullanıcıyı menüden o kaydı aramaya
   zorlamak, en çok yapılan işi en pahalı yol hâline getirir.

   Bağlantı GÖRÜNÜR olmalı: altı çizili olmayan, rengi değişmeyen bir bağlantı
   varlığını ancak fare üstüne gelince belli eder — dokunmatik ekranda hiç. */
a.table__main {
    color: var(--brand);
    text-decoration: none;
}
a.table__main:hover { text-decoration: underline; }

/* Satırın tamamı tıklanabilir hissettirilir (asıl hedef yine <a>). */
.table tbody tr:hover a.table__main { text-decoration: underline; }

/* İkincil satırdaki bağlantı (dosya no, müvekkil adı...) */
a.table__sublink { color: var(--text-2); text-decoration: none; }
a.table__sublink:hover { color: var(--brand); text-decoration: underline; }

/* --- Rozetler ------------------------------------------------------------ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 21px;
    padding: 0 8px;
    border-radius: 11px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.badge--critical { background: var(--critical-soft); color: var(--critical); }
.badge--warning  { background: var(--warning-soft);  color: var(--warning); }
.badge--ok       { background: var(--ok-soft);       color: var(--ok); }
.badge--past     { background: var(--past-soft);     color: var(--past); }
.badge--info     { background: var(--info-soft);     color: var(--info); }
.badge--neutral  { background: var(--surface-3);     color: var(--text-2); }
.badge--accent   { background: var(--accent-soft);   color: #8a6229; }

.badge__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Doğrulama durumu — hukuki veride kritik */
.badge--dogrulanmali {
    background: var(--warning-soft);
    color: var(--warning);
    border: 1px dashed #e0c483;
}

/* --- Boş durum ----------------------------------------------------------- */
.empty {
    padding: 44px 24px;
    text-align: center;
    color: var(--text-3);
}
.empty__icon {
    width: 38px; height: 38px;
    margin: 0 auto 12px;
    stroke: var(--border-2);
    fill: none; stroke-width: 1.4;
}
.empty__title { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.empty__text { font-size: 12.5px; max-width: 420px; margin: 0 auto; }

/* --- Uyarı kutusu -------------------------------------------------------- */
.notice {
    display: flex;
    gap: 11px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    border: 1px solid;
    margin-bottom: 16px;
}
.notice svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.notice--warning  { background: var(--warning-soft);  color: #7a5410; border-color: #f0e0bd; }
.notice--critical { background: var(--critical-soft); color: #8f2a1e; border-color: #f3cdc8; }
.notice--info     { background: var(--info-soft);     color: #1a4d85; border-color: #cfe0f2; }
.notice__title { font-weight: 650; margin-bottom: 2px; }

/* --- Formlar ------------------------------------------------------------- */
.field { margin-bottom: 14px; }
.field__label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 5px;
}
.field__input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    background: var(--surface);
    outline: none;
    transition: border-color .12s, box-shadow .12s;
}
.field__input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.field__hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.field__hint--warn { color: #8f2a1e; font-weight: 600; }
.field__hint[hidden] { display: none; }

/* Alan içine gömülü düğme (parolayı göster/gizle) */
.field__wrap { position: relative; }
.field__input--adorned { padding-right: 40px; }
.field__adorn {
    position: absolute;
    top: 0; right: 0;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 0;
    background: none;
    color: var(--text-3);
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.field__adorn:hover { color: var(--text-2); }
.field__adorn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.field__adorn svg {
    width: 16px; height: 16px;
    stroke: currentColor; fill: none; stroke-width: 2;
}
/* Açıkken üstü çizili göz: durum ikonun kendisinden okunabilsin.
   Renk değişimi tek başına yetmez — renk körlüğü. */
.field__adorn[data-on="1"] { color: var(--brand); }
.field__adorn[data-on="1"]::after {
    content: "";
    position: absolute;
    width: 20px; height: 2px;
    background: currentColor;
    transform: rotate(-45deg);
    border-radius: 1px;
}

/* ==========================================================================
   GİRİŞ EKRANI
   ========================================================================== */
.auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(1100px 500px at 50% -10%, #e8edf4 0%, transparent 62%),
        var(--bg);
}
.auth__box {
    width: 100%;
    max-width: 392px;
}
.auth__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}
.auth__logo {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--brand);
    color: var(--accent);
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 17px;
}
.auth__wordmark { font-size: 19px; font-weight: 680; color: var(--brand); letter-spacing: -.2px; }

.auth__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 26px;
}
.auth__tenant {
    text-align: center;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.auth__tenant-name { font-size: 15px; font-weight: 650; }
.auth__tenant-key {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 3px;
}
.auth__error {
    background: var(--critical-soft);
    color: #8f2a1e;
    border: 1px solid #f3cdc8;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 12.5px;
    margin-bottom: 15px;
}
.auth__help {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-3);
    line-height: 1.6;
}
.auth__foot {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 18px;
    line-height: 1.6;
}

/* Gönderim sırasında: düğme tıklanabilir kalır (disabled bazı tarayıcılarda
   gönderimi iptal eder) ama görsel olarak kilitli görünür. */
.btn[data-busy="1"] {
    opacity: .6;
    pointer-events: none;
}

/* --- Geliştirme paneli (yalnızca APP_ENV=local) --------------------------- */
/* Kesikli kenarlık ve altın vurgu bilinçli: "bu üretimde olmayacak bir şey"
   mesajını görsel olarak da veriyor. */
.dev-panel {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-2);
}
.dev-panel__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-3);
    margin-bottom: 10px;
}
.dev-panel__accounts { display: grid; gap: 6px; }

.dev-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 12.5px;
    color: var(--text-2);
}
.dev-account:hover {
    text-decoration: none;
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--text);
}
.dev-account--current {
    background: var(--accent-soft);
    border-color: #ecdcc0;
    border-style: dashed;
    color: #7a5410;
    cursor: default;
}
.dev-account--current:hover {
    background: var(--accent-soft);
    border-color: #ecdcc0;
    color: #7a5410;
}
.dev-account__label { font-weight: 600; }
.dev-account__meta { font-size: 11px; color: var(--text-3); }
.dev-account--current .dev-account__meta { color: #9a7433; }

.dev-panel__note {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.5;
    margin-top: 10px;
}

/* ==========================================================================
   YARDIMCILAR
   ========================================================================== */
.mono { font-family: var(--font-mono); font-size: 12px; }
.muted { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.text-right { text-align: right; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.section-title {
    font-size: 11.5px;
    font-weight: 650;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 22px 0 10px;
}

/* ==========================================================================
   YARDIMCI SINIFLAR
   --------------------------------------------------------------------------
   Satır içi `style="..."` KULLANILMAZ. İçerik Güvenlik Politikası
   (style-src 'self') satır içi stilleri engeller — ve bunu bilinçli olarak
   gevşetmiyoruz: bu ürün AI tarafından üretilmiş ve kullanıcı tarafından
   yüklenmiş içerik render edecek, o yüzden CSP sıkı kalmalı.
   ========================================================================== */

/* Dikey yığın */
.stack     { display: grid; gap: 16px; }
.stack--sm { display: grid; gap: 8px; }

/* Filtre/sekme çubuğu */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

/* Satır içi arama formu (sayfa başlığının yanında) */
.inline-form { display: flex; gap: 8px; }
.inline-form .field__input { height: 34px; }
.field__input--search { width: 240px; }

/* Boşluklar */
.mb-8  { margin-bottom: 8px; }
.mb-14 { margin-bottom: 14px; }
.mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; }
.mt-2  { margin-top: 2px; }
.mt-3  { margin-top: 3px; }
.mt-4  { margin-top: 4px; }
.mt-10 { margin-top: 10px; }

/* Metin hizası ve boyutu */
.text-center { text-align: center; }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 12px; }

/* Sönük satır (mülga kanun, onaysız kural) */
.row-dim     { opacity: .62; }
.row-dim-soft{ opacity: .74; }

/* Boş durum varyantları */
.empty--compact { padding: 28px 20px; }
.empty--tall    { padding: 56px 24px; }

/* Küçük rozet (sekme sayacı) */
.badge--tiny { height: 17px; font-size: 10.5px; }

/* Taşmayı önleyen esnek hücre */
.min-w-0 { min-width: 0; }

/* Giriş kutusu geniş varyantı (kök sayfa) */
.auth__box--wide { max-width: 520px; }
.auth__box--error { max-width: 860px; }

/* Menü öğesi: uçlara yasla */
.btn--spread { justify-content: space-between; }

/* Hata sayfası kodu */
.error-code {
    font-size: 44px;
    font-weight: 700;
    color: var(--border-2);
    line-height: 1;
}

/* Askıya alınmış kiracı uyarısı (sol menü altı) */
.sidebar__warn { color: #e8a33d; margin-top: 4px; }

/* Yığın izi bloğu (hata sayfası) */
.trace {
    font-size: 11px;
    overflow: auto;
    background: var(--surface-3);
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
    white-space: pre-wrap;
    word-break: break-all;
}
.trace-summary { cursor: pointer; font-size: 12.5px; color: var(--text-2); }

/* Bildirim kutusu içinde blok yerleşim */
.notice--block { display: block; }

/* Üstte hizalı auth (uzun hata sayfası) */
.auth--top { align-items: start; padding-top: 60px; }

/* Dar sıra numarası sütunu */
.col-index { width: 34px; }

/* ==========================================================================
   DOSYA DETAY BİLEŞENLERİ
   ========================================================================== */

/* Künye ızgarası: etiket + değer çiftleri */
.kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px 24px;
}
.kv__label {
    font-size: 11px;
    font-weight: 650;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
}
.kv__value { font-size: 13.5px; color: var(--text); }

/* Olay akışı zaman çizelgesi */
.timeline { position: relative; padding-left: 4px; }
.timeline__item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding-bottom: 16px;
    position: relative;
}
.timeline__item:last-child { padding-bottom: 0; }
/* Dikey çizgi */
.timeline__item::before {
    content: "";
    position: absolute;
    left: 100px;
    top: 16px;
    bottom: -2px;
    width: 1px;
    background: var(--border);
}
.timeline__item:last-child::before { display: none; }
/* Nokta */
.timeline__item::after {
    content: "";
    position: absolute;
    left: 97px;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border-2);
}
.timeline__date {
    font-size: 12px;
    color: var(--text-3);
    text-align: right;
    padding-right: 14px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.timeline__body { padding-left: 14px; min-width: 0; }
.timeline__title { font-size: 13.5px; font-weight: 600; }
.timeline__meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: 11.5px; }

/* ==========================================================================
   SÜRE HESABI İZİ — "neden bu tarih?"
   ========================================================================== */
.calc { margin-top: 6px; }
.calc__summary {
    cursor: pointer;
    font-size: 11.5px;
    color: var(--brand);
    user-select: none;
}
.calc__summary:hover { text-decoration: underline; }
.calc__body {
    margin-top: 6px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    line-height: 1.5;
    max-width: 420px;
}
.calc__row { display: flex; gap: 8px; margin-bottom: 3px; }
.calc__k {
    color: var(--text-3);
    min-width: 76px;
    font-weight: 600;
}
.calc__step {
    display: flex;
    gap: 8px;
    padding: 5px 0;
    border-top: 1px solid var(--border);
    margin-top: 5px;
}
.calc__no {
    width: 17px; height: 17px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
}
.calc__warn {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px dashed var(--border-2);
    color: var(--warning);
    font-size: 11px;
}

/* Kaynak alıntısı — AI çıkarımlarının çapası */
.quote {
    margin-top: 6px;
    padding: 7px 11px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 12.5px;
    color: #7a5410;
    font-style: italic;
}

/* ===========================================================================
   Süre detay ekranı — teyit / tamamlama / delil paketi
   ---------------------------------------------------------------------------
   Bu ekran karar aldıran tek ekran: "uygulanmaz" butonu geri alınamayan bir
   işlem yapar ve diğerlerinden görsel olarak da ayrılmalıdır.
   =========================================================================== */
.notice--ok { background: var(--ok-soft); color: #1d6b46; border-color: #c6e6d5; }

.btn--danger {
    background: var(--critical-soft);
    border-color: #f0c9c3;
    color: var(--critical);
}
.btn--danger:hover { background: #f8ddd9; }

/* Kenar sütunundaki künye: dar alanda etiket/değer alt alta okunur */
.kv--stack { grid-template-columns: 1fr; gap: 12px; }

.card__foot {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

/* Çok satırlı alan: .field__input ölçüleri tek satıra göre; textarea kendi
   yüksekliğini yönetmeli ve yatay büyüyerek yerleşimi bozmamalı. */
textarea.field__input {
    height: auto;
    min-height: 72px;
    padding: 8px 10px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
}

.mb-12 { margin-bottom: 12px; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }

/* ===========================================================================
   Evrak yükleme ve detay
   =========================================================================== */

/* İki alanı yan yana; dar ekranda alt alta */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }

/* Zorunlu alan işareti — renk tek başına taşıyıcı değil, yıldız da var */
.req { color: var(--critical); font-weight: 700; }

select.field__input {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23667' stroke-width='1.6' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 11px;
    padding-right: 30px;
    cursor: pointer;
}

/* Dosya seçici: tarayıcı düğmesi yükseklikle uyuşmuyor, kendi kutusunu alsın */
.field__input--file {
    height: auto;
    padding: 8px 10px;
    line-height: 1.4;
    cursor: pointer;
}
.field__input--file::file-selector-button {
    margin-right: 10px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
}
.field__input--file::file-selector-button:hover { background: var(--surface-3); }

.field__input--num { max-width: 140px; }

/* Numaralı akış açıklaması */
.steps { margin: 0; padding-left: 20px; font-size: 13px; color: var(--text-2); }
.steps li { margin-bottom: 9px; line-height: 1.55; }
.steps li:last-child { margin-bottom: 0; }
.steps strong { color: var(--text); }

/* SHA-256 özeti dar sütunda satırı taşırmasın */
.sha { word-break: break-all; line-height: 1.5; color: var(--text-3); }

/* ===========================================================================
   Yapay zekâ önerileri
   ---------------------------------------------------------------------------
   Öneri kartı, alıntıyı görsel olarak öne çıkarır: avukatın yapacağı tek iş
   "belgede gerçekten böyle mi yazıyor" sorusunu cevaplamaktır. Tarih ve
   alıntı yan yana okunabilmeli.
   =========================================================================== */
.proposal {
    border: 1px solid var(--border);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-sm);
    padding: 13px 14px;
    margin-bottom: 14px;
    background: var(--surface);
}
.proposal:last-child { margin-bottom: 0; }

/* Düşük güvenli öneri görsel olarak da ayrılır — "kontrol et" sinyali */
.proposal--low { border-left-color: var(--warning); background: var(--warning-soft); }

.proposal__head { display: flex; justify-content: space-between; gap: 12px; }
.proposal__title { font-weight: 650; font-size: 13.5px; }
.proposal__meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.proposal__quote {
    margin: 10px 0 0;
    padding: 8px 11px;
    border-left: 2px solid var(--border-strong, var(--border));
    background: var(--surface-2);
    font-size: 12.5px;
    color: var(--text-2);
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.proposal__note { font-size: 12px; color: var(--text-3); margin-top: 8px; }

.proposal__actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.proposal__date { flex: 0 0 168px; margin: 0; }
.proposal__date .field__label { display: block; margin-bottom: 4px; }
.proposal__buttons { display: flex; gap: 8px; flex: 1 1 auto; }

/* Kaynak doğrulamasında elenen çıkarımlar — şeffaflık için gösterilir */
.rejected {
    font-size: 12px;
    padding: 6px 9px;
    margin-bottom: 6px;
    border-left: 2px solid var(--critical);
    background: var(--critical-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===========================================================================
   OCR dökümü ve görüntü karşılaştırma
   ---------------------------------------------------------------------------
   Yapay zekâ ile okunan metinde avukata "kontrol edin" demek, karşılaştırmayı
   mümkün kılmadan boş bir tavsiyedir. Metin ve görüntü YAN YANA durur.
   =========================================================================== */
.ocr-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 900px) { .ocr-compare { grid-template-columns: 1fr; } }

.ocr-text__page {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-3);
    margin: 12px 0 4px;
}
.ocr-text__page:first-child { margin-top: 0; }

.ocr-text__body {
    margin: 0;
    padding: 12px 13px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-2);
    /* Uzun satırlar yerleşimi taşırmasın; belge metni sarılabilir. */
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 520px;
    overflow-y: auto;
}

.ocr-image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    /* Tarama görüntüsünde detay kaybolmasın */
    image-rendering: auto;
}

/* ===========================================================================
   AI işleri ekranı
   =========================================================================== */
.stat__hint {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 4px;
    line-height: 1.4;
}

/* Onay bekleyen çıkarım — tıklanabilir liste öğesi.
   Bu listenin uzaması ürünün sessiz arızasıdır: onaylanmayan öneri süre
   üretmez, dolayısıyla göze batmalı. */
.pending-item {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--warning);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
}
.pending-item:last-child { margin-bottom: 0; }
.pending-item:hover { background: var(--surface-3); text-decoration: none; }
.pending-item__main { font-weight: 600; font-size: 13px; }
.pending-item__meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* Dilekçe metni — okunabilirlik için serif ve geniş satır aralığı.
   Avukat bu metni denetleyecek; ekranda göz yormamalı. */
.petition-body {
    margin: 0;
    padding: 20px 22px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}
.mt-18 { margin-top: 18px; }

/* ===========================================================================
   Kullanım / kapasite
   =========================================================================== */
/* `<progress>` elementi — satır içi stil gerektirmez (CSP: style-src self).
   Tarayıcılar farklı sözde-elemanlar kullandığı için üçü de tanımlanıyor. */
.capacity__bar {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
}
.capacity__bar::-webkit-progress-bar { background: var(--surface-3); border-radius: 999px; }
.capacity__bar::-webkit-progress-value { background: var(--info); border-radius: 999px; }
.capacity__bar::-moz-progress-bar { background: var(--info); border-radius: 999px; }

/* Kapasite dolmak üzereyse renk değişir: dolarsa süre hatırlatmaları da durur,
   bu yüzden göz ucuyla fark edilmeli. */
.capacity__bar--warn::-webkit-progress-value { background: var(--critical); }
.capacity__bar--warn::-moz-progress-bar { background: var(--critical); }
.capacity__label { font-size: 12px; color: var(--text-3); margin-top: 6px; }

.tier {
    padding: 9px 11px;
    margin-bottom: 7px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.tier:last-child { margin-bottom: 0; }
.tier--current { border-color: var(--info); background: var(--info-soft); }
.tier__name { font-weight: 650; font-size: 13px; }
.tier__meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* ===========================================================================
   Aksiyon kutusu - "ne yapilacak" surenin en gorunur parcasi
   ---------------------------------------------------------------------------
   Tarih tek basina yarim bilgidir. Bu kutu kunyeden ONCE gelir cunku avukatin
   ekrana bakinca ilk okumasi gereken sey yapacagi istir.
   =========================================================================== */
.action-box {
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
/* Karsi tarafin suresi: bir is degil, bir gozlem. Rengi de oyle olmali. */
.action-box--takip { border-left-color: var(--info); background: var(--info-soft); }

.action-box__head {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-3);
}
.action-box__label {
    font-size: 19px;
    font-weight: 680;
    line-height: 1.3;
    margin-top: 4px;
    color: var(--text);
}
.action-box__detail { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.6; }
.action-box__outcome {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    line-height: 1.6;
}
.action-box__outcome-label { font-weight: 650; color: var(--text); }

/* Listede aksiyon rozeti */
.action-chip {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.action-chip--takip { background: var(--surface-3); color: var(--text-2); font-weight: 500; }

/* ==========================================================================
   İŞLEM MERKEZİ — dosya bazlı sunum
   Düz evrak listesi yerine dosya (esas no + taraf + mahkeme) başlığı altında
   gruplanmış evraklar. "Sunum çorba" sorununun karşılığı.
   ========================================================================== */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 12px;
}
.section-head__title {
    font-size: 13px;
    font-weight: 650;
    color: var(--text-2);
    margin: 0;
}
.section-head__link { font-size: 12px; color: var(--brand); }

.card__desc { font-size: 12px; font-weight: 400; margin-top: 2px; }

/* Dosya grubu başlığı: çok satırlı olduğu için üstten hizalanır. */
.case-group__head { align-items: flex-start; }
.case-group__meta {
    font-size: 12.5px;
    color: var(--text-3);
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.case-group__parties {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12.5px;
}
.case-group__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.party {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    line-height: 1.5;
}
.party--ours   { background: var(--brand-soft); color: var(--brand); border-color: transparent; font-weight: 550; }
.party--other  { background: var(--surface-3);  color: var(--text-2); }

/* ==========================================================================
   cronos-admin paneli + kamuya açık kayıt formu
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

.auth__logo--sm { width: 26px; height: 26px; font-size: 15px; border-radius: 6px; }

/* Yönetici paneli düzeni (kiracı yerleşiminden ayrı, sade) */
.admin-body { background: var(--bg); }
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 22px;
    background: var(--brand);
    color: var(--text-inv);
}
.admin-topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    letter-spacing: .01em;
}
.admin-topbar__right { display: flex; align-items: center; gap: 12px; }
.admin-topbar__right .muted { color: rgba(255,255,255,.75); }
.admin-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 22px 60px;
}

/* Satır içi alan + düğme (ret gerekçesi) */
.field--inline { display: flex; gap: 8px; align-items: stretch; margin: 0; }
.field--inline .field__input { flex: 1; }

/* cronos-admin üst menü + sır gösterimi */
.admin-nav { display: inline-flex; gap: 4px; margin-left: 14px; }
.admin-nav__link {
    color: rgba(255,255,255,.8);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}
.admin-nav__link:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-nav__link--active { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.kv-secret {
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 14px;
    letter-spacing: .04em;
    user-select: all;
}
.kv-secret--wrap { word-break: break-all; font-size: 12px; letter-spacing: 0; }

/* Google ile giriş butonu + ayraç */
.auth__or { display:flex; align-items:center; gap:10px; margin:16px 0; color:var(--text-3); font-size:12px; }
.auth__or::before, .auth__or::after { content:""; flex:1; height:1px; background:var(--border); }
.btn--google {
    background:#fff; color:#3c4043; border:1px solid var(--border-2);
    display:inline-flex; align-items:center; justify-content:center; gap:10px; font-weight:600;
}
.btn--google:hover { background:#f7f8fa; }
.g-mark {
    display:inline-flex; align-items:center; justify-content:center;
    width:18px; height:18px; border-radius:50%;
    background:#fff; color:#4285F4; font-weight:800; font-size:14px;
    border:1px solid var(--border-2); line-height:1;
}
