/* ==========================================================================
   HB Portal — tasarim sistemi
   Stil: Minimalism / Swiss  ·  Yogunluk: dashboard  ·  Hareket: sinirli
   Tek dosya, derleme adimi yok. Tokenlar :root uzerinde, bilesenler altta.
   ========================================================================== */

/* --- 0. Yazi tipi --------------------------------------------------------- */
/*
 * Inter — SIL Open Font License 1.1 (lisans metni: assets/fonts/inter-OFL.txt).
 * Kendi sunucumuzdan servis edilir; calisma zamaninda hicbir dis istek yoktur.
 * unicode-range sayesinde latin-ext dosyasi yalnizca Turkce'ye ozgu harfler
 * (I, G, S ve esleri) ekranda gerektiginde indirilir.
 */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2?v=1") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2?v=1") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- 1. Tokenlar ---------------------------------------------------------- */
:root {
    color-scheme: light;   /* varsayilan acik; koyu yalnizca kullanici secerse */

    /* Yuzeyler ve metin */
    --bg:            #f4f7fb;
    --surface:       #ffffff;
    --surface-2:     #f8fafc;
    --surface-3:     #eef2f8;
    --text:          #0f172a;
    --text-muted:    #56637a;
    --text-faint:    #667085;
    --border:        #e2e8f0;
    --border-strong: #cbd5e1;

    /* Marka */
    --primary:       #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft:  #eff4ff;
    --on-primary:    #ffffff;
    --accent:        #ea580c;
    --accent-soft:   #fff2e8;

    /* Anlam renkleri */
    --success:       #146c34;
    --success-soft:  #e8f6ec;
    --warning:       #b45309;
    --warning-soft:  #fdf3e3;
    --danger:        #c81e1e;
    --danger-soft:   #fef2f2;
    --info:          #0369a1;
    --info-soft:     #e9f4fb;
    --neutral:       #475569;
    --neutral-soft:  #eef1f5;

    --ring:          #2563eb;

    /* Tipografi */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                 "Liberation Mono", monospace;
    --fs-xs:  0.75rem;   /* 12px — yalnizca etiket/rozet */
    --fs-sm:  0.875rem;  /* 14px — tablo, form */
    --fs-md:  1rem;      /* 16px — govde */
    --fs-lg:  1.125rem;
    --fs-xl:  1.375rem;
    --fs-2xl: 1.75rem;
    --fs-stat: 1.875rem;

    /* Aralik — yogun panel olceginde (8/10) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;

    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 12px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow:    0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-lg: 0 10px 24px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .06);

    --topbar-h: 56px;
    --dur: 180ms;
    --ease: cubic-bezier(.2, .6, .3, 1);
}

/* Koyu tema: yalnizca kullanicinin ust cubuktan yaptigi secimle acilir */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg:            #0b1220;
    --surface:       #131c2e;
    --surface-2:     #18233a;
    --surface-3:     #1e2a44;
    --text:          #e8edf7;
    --text-muted:    #a3b0c7;
    --text-faint:    #8593ad;
    --border:        #263351;
    --border-strong: #35456a;

    --primary:       #3b82f6;
    --primary-hover: #60a5fa;
    --primary-soft:  #101829;
    --accent:        #fb923c;
    --accent-soft:   #2c1d12;

    --success:       #4ade80;
    --success-soft:  #12281c;
    --warning:       #fbbf24;
    --warning-soft:  #2b2110;
    --danger:        #f87171;
    --danger-soft:   #2d1618;
    --info:          #60a5fa;
    --info-soft:     #142132;
    --neutral:       #b6c2d6;
    --neutral-soft:  #1d2841;

    --ring:          #60a5fa;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow:    0 1px 3px rgba(0, 0, 0, .45);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, .5);
}

/* --- 2. Temel ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p  { margin: 0 0 var(--space-3); }

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

code, kbd, samp, .mono { font-family: var(--font-mono); font-size: .9em; }

:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute; left: var(--space-3); top: -60px;
    background: var(--surface); color: var(--text);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    z-index: 100; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-3); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon {
    width: 18px; height: 18px; flex: none;
    stroke: currentColor; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round; fill: none;
}
.icon--sm { width: 15px; height: 15px; }

/* --- 3. Uygulama kabugu --------------------------------------------------- */
.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: var(--space-4);
    height: var(--topbar-h);
    padding: 0 var(--space-4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.brand {
    display: inline-flex; align-items: center; gap: var(--space-2);
    min-width: 0;
    color: var(--text);
    white-space: nowrap;
}
.brand:hover { text-decoration: none; }

/*
 * Logo maske olarak basilir: tek SVG dosyasi hem acik hem koyu temada
 * metin rengini alir, ayrica dosya tarayici onbelleginde kalir.
 */
.brand__logo {
    display: block; flex: none;
    width: 54px; height: 22px;
    background-color: currentColor;
    -webkit-mask: url("../img/hb-logo.svg?v=1") no-repeat center / contain;
            mask: url("../img/hb-logo.svg?v=1") no-repeat center / contain;
}
.brand__logo--lg { width: 93px; height: 38px; }

.brand__sub {
    overflow: hidden; text-overflow: ellipsis;
    font-weight: 500; font-size: var(--fs-sm); color: var(--text-muted);
    padding-left: var(--space-2); margin-left: var(--space-1);
    border-left: 1px solid var(--border);
}

.nav { display: flex; align-items: center; gap: var(--space-1); }

.nav__link {
    display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: 36px; padding: 0 var(--space-3);
    border-radius: var(--radius);
    color: var(--text-muted); font-size: var(--fs-sm); font-weight: 550;
    white-space: nowrap;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.nav__link[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }

.topbar__end {
    margin-left: auto; display: flex; align-items: center; gap: var(--space-2);
    min-width: 0; flex: none;
}

.userchip {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1);
    border-radius: var(--radius-pill);
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: var(--fs-sm); color: var(--text); max-width: 220px;
}
.userchip__avatar {
    display: grid; place-items: center;
    width: 24px; height: 24px; flex: none;
    border-radius: 50%; background: var(--primary); color: var(--on-primary);
    font-size: var(--fs-xs); font-weight: 700;
}
.userchip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userchip__role { color: var(--text-muted); font-size: var(--fs-xs); }

.iconbtn {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px; flex: none;
    border: 1px solid transparent; border-radius: var(--radius);
    background: transparent; color: var(--text-muted); cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.iconbtn:hover { background: var(--surface-3); color: var(--text); }

.navtoggle { display: none; }

.page {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-5) var(--space-4) var(--space-6);
}

.page-head {
    display: flex; align-items: flex-start; gap: var(--space-4);
    flex-wrap: wrap; margin-bottom: var(--space-4);
}
.page-head__text { min-width: 0; }
.page-head__desc { margin: var(--space-1) 0 0; color: var(--text-muted); font-size: var(--fs-sm); }
.page-head__actions { margin-left: auto; display: flex; gap: var(--space-2); flex-wrap: wrap; }

.backlink {
    display: inline-flex; align-items: center; gap: var(--space-1);
    margin-bottom: var(--space-3);
    color: var(--text-muted); font-size: var(--fs-sm);
}
.backlink:hover { color: var(--primary); }

/* --- 4. Kart / bolum ------------------------------------------------------ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-4);
    overflow: hidden;
}
.card__head {
    display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.card__title { font-size: var(--fs-md); font-weight: 650; }
.card__meta { color: var(--text-muted); font-size: var(--fs-sm); }
.card__actions { margin-left: auto; display: flex; gap: var(--space-2); flex-wrap: wrap; }
.card__body { padding: var(--space-4); }
.card__body--flush { padding: 0; }

.grid { display: grid; gap: var(--space-4); }
@media (min-width: 1024px) {
    .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

/* --- 5. Butonlar ---------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--space-2);
    min-height: 40px; padding: 0 var(--space-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: var(--surface); color: var(--text);
    font: inherit; font-size: var(--fs-sm); font-weight: 600;
    cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
                color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(.5px); }

.btn--primary {
    background: var(--primary); border-color: var(--primary); color: var(--on-primary);
}
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn--accent {
    background: var(--accent-soft); border-color: var(--accent); color: var(--accent);
}
.btn--accent:hover { background: var(--accent); color: #fff; }

.btn--danger {
    background: var(--surface); border-color: var(--danger); color: var(--danger);
}
.btn--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.btn--ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn--ghost:hover { background: var(--surface-3); color: var(--text); }

.btn--sm { min-height: 32px; padding: 0 var(--space-3); font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.btnrow { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }

/* --- 6. Form ------------------------------------------------------------- */
.field { display: grid; gap: var(--space-1); min-width: 0; }
.field--grow { flex: 1 1 220px; }

.label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.label__opt { font-weight: 400; color: var(--text-faint); }

.input, .select, .textarea {
    width: 100%; min-height: 40px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: var(--surface); color: var(--text);
    font: inherit; font-size: var(--fs-sm);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:hover, .select:hover { border-color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}
.input::placeholder { color: var(--text-faint); }
.input[readonly] { background: var(--surface-2); }

.select {
    appearance: none;
    padding-right: var(--space-6);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356637a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 16px;
}

.input--code {
    font-family: var(--font-mono);
    font-size: var(--fs-xl);
    letter-spacing: .45em;
    text-align: center;
    padding-left: .45em;
}

.hint { font-size: var(--fs-xs); color: var(--text-muted); }

/* Filtre cubugu */
.filters {
    display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: flex-end;
}
.filters .field { flex: 0 1 180px; }
.filters .field--search { flex: 1 1 260px; }
.filters__actions { display: flex; gap: var(--space-2); margin-left: auto; }

.search-field { position: relative; }
.search-field .icon {
    position: absolute; left: var(--space-3); top: 50%;
    transform: translateY(-50%); color: var(--text-faint); pointer-events: none;
}
.search-field .input { padding-left: 38px; }

/* --- 7. Tablo ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table {
    width: 100%; border-collapse: collapse;
    font-size: var(--fs-sm);
}
.table th, .table td {
    padding: var(--space-2) var(--space-3);
    text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--border);
}
.table thead th {
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: var(--fs-xs); font-weight: 650; letter-spacing: .02em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-strong);
}
.table tbody tr { transition: background var(--dur) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.mono { font-family: var(--font-mono); font-size: var(--fs-xs); white-space: nowrap; }
.table td.nowrap, .table th.nowrap { white-space: nowrap; }
.table .cell-strong { font-weight: 600; color: var(--text); }
.table .cell-muted { color: var(--text-muted); }
.table .cell-clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table td.actions { text-align: right; white-space: nowrap; }

/* Anahtar-deger listesi */
.dl { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); }
.dl > dt, .dl > dd {
    margin: 0; padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--border); font-size: var(--fs-sm);
}
.dl > dt { color: var(--text-muted); font-weight: 550; background: var(--surface-2); }
.dl > dd { word-break: break-word; }
.dl > dt:last-of-type, .dl > dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) {
    .dl { grid-template-columns: 1fr; }
    .dl > dt { border-bottom: 0; padding-bottom: 0; background: transparent; }
}

/* --- 8. Rozet ------------------------------------------------------------ */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px var(--space-2);
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: var(--neutral-soft); color: var(--neutral);
    font-size: var(--fs-xs); font-weight: 600; line-height: 1.6;
    white-space: nowrap;
}
.badge::before {
    content: ""; width: 6px; height: 6px; flex: none;
    border-radius: 50%; background: currentColor;
}
.badge--info    { background: var(--info-soft);    color: var(--info); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--danger  { background: var(--danger-soft);  color: var(--danger); }
.badge--neutral { background: var(--neutral-soft); color: var(--neutral); }
.badge--primary { background: var(--primary-soft); color: var(--primary); }
.badge--plain::before { display: none; }

/* --- 9. Uyari kutulari --------------------------------------------------- */
.alert {
    display: flex; gap: var(--space-3); align-items: flex-start;
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    border: 1px solid var(--border); border-left-width: 3px;
    border-radius: var(--radius);
    background: var(--surface); color: var(--text);
    font-size: var(--fs-sm);
}
.alert .icon { margin-top: 2px; }
.alert__body { min-width: 0; }
.alert__title { font-weight: 650; margin-bottom: 2px; }
.alert--success { background: var(--success-soft); border-color: var(--border); border-left-color: var(--success); color: var(--text); }
.alert--success .icon { color: var(--success); }
.alert--error   { background: var(--danger-soft);  border-color: var(--border); border-left-color: var(--danger); }
.alert--error .icon { color: var(--danger); }
.alert--info    { background: var(--info-soft);    border-color: var(--border); border-left-color: var(--info); }
.alert--info .icon { color: var(--info); }
.alert--warning { background: var(--warning-soft); border-color: var(--border); border-left-color: var(--warning); }
.alert--warning .icon { color: var(--warning); }

/* --- 10. KPI kartlari ---------------------------------------------------- */
.stats {
    display: grid; gap: var(--space-3);
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: var(--space-4);
}
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    box-shadow: var(--shadow-sm);
}
.stat__label {
    display: flex; align-items: center; gap: 6px;
    font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
}
.stat__value {
    margin-top: var(--space-1);
    font-size: var(--fs-stat); font-weight: 680; line-height: 1.1;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.stat__meta { margin-top: 2px; font-size: var(--fs-xs); color: var(--text-faint); }
.stat--alert { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.stat--alert .stat__value { color: var(--danger); }

/* --- 11. Yatay cubuk grafik ---------------------------------------------- */
.meter { display: grid; gap: var(--space-3); }
.meter__row { display: grid; gap: 5px; }
.meter__head {
    display: flex; align-items: baseline; gap: var(--space-2);
    font-size: var(--fs-sm);
}
.meter__label { color: var(--text); font-weight: 550; }
.meter__value {
    margin-left: auto; color: var(--text-muted);
    font-variant-numeric: tabular-nums; font-weight: 600;
}
.meter__track {
    height: 8px; border-radius: var(--radius-pill);
    background: var(--surface-3); overflow: hidden;
}
.meter__fill {
    display: block; height: 100%;
    border-radius: var(--radius-pill);
    background: var(--primary);
    transition: width 320ms var(--ease);
}
.meter__fill--info    { background: var(--info); }
.meter__fill--warning { background: var(--warning); }
.meter__fill--success { background: var(--success); }
.meter__fill--danger  { background: var(--danger); }
.meter__fill--neutral { background: var(--neutral); }
.meter__fill--accent  { background: var(--accent); }

/* --- 11b. Dikey sutun grafik (gunluk hacim) ------------------------------- */
.bars {
    display: flex; align-items: flex-end; gap: 3px;
    height: 132px; padding-top: var(--space-2);
}
.bars__col {
    flex: 1 1 0; min-width: 5px; max-width: 40px; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.bars__bar {
    display: block; width: 100%; min-height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--primary);
    transition: background var(--dur) var(--ease);
}
.bars__col:hover .bars__bar { background: var(--accent); }
.bars__col--bos .bars__bar { background: var(--surface-3); }
.bars__axis {
    display: flex; justify-content: space-between;
    margin-top: var(--space-2); padding-top: var(--space-2);
    border-top: 1px solid var(--border);
    color: var(--text-faint); font-size: var(--fs-xs);
}

/* --- 12. Zaman cizelgesi ------------------------------------------------- */
.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline__item {
    position: relative;
    padding: 0 0 var(--space-4) var(--space-5);
    border-left: 2px solid var(--border);
}
.timeline__item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline__item::before {
    content: ""; position: absolute; left: -6px; top: 5px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--border-strong);
}
.timeline__item--current::before { background: var(--primary); border-color: var(--primary); }
.timeline__head {
    display: flex; align-items: center; gap: var(--space-2);
    flex-wrap: wrap; font-size: var(--fs-sm);
}
.timeline__time {
    font-size: var(--fs-xs); color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}
.timeline__note { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.timeline__arrow { display: inline-flex; align-items: center; color: var(--text-faint); }

/* --- 13. Bos durum ------------------------------------------------------- */
.empty {
    display: grid; justify-items: center; gap: var(--space-2);
    padding: var(--space-6) var(--space-4);
    text-align: center; color: var(--text-muted);
}
.empty .icon { width: 28px; height: 28px; color: var(--text-faint); }
.empty__title { font-weight: 650; color: var(--text); font-size: var(--fs-md); }
.empty__desc { font-size: var(--fs-sm); max-width: 42ch; margin: 0; }

/* --- 14. Gizli deger / kopyalama ----------------------------------------- */
.secret {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px dashed var(--border-strong); border-radius: var(--radius);
    background: var(--surface);
}
.secret__value {
    flex: 1 1 auto; min-width: 0;
    font-family: var(--font-mono); font-size: var(--fs-sm);
    word-break: break-all;
}
.copy-ok { color: var(--success); font-size: var(--fs-xs); font-weight: 600; }

/* --- 15. Giris ekrani ---------------------------------------------------- */
.auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid; place-items: center;
    padding: var(--space-5) var(--space-4);
    background:
        radial-gradient(900px 480px at 50% -12%, var(--primary-soft), transparent 70%),
        var(--bg);
}
.auth__card {
    width: 100%; max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6) var(--space-5) var(--space-5);
}
.auth__brand {
    display: flex; align-items: center;
    margin-bottom: var(--space-5);
    color: var(--text);
}
.auth__title { font-size: var(--fs-lg); }
.auth__desc { margin: var(--space-1) 0 var(--space-5); color: var(--text-muted); font-size: var(--fs-sm); }
.auth__form { display: grid; gap: var(--space-4); }
.auth__foot {
    margin: var(--space-5) 0 0; padding-top: var(--space-3);
    border-top: 1px solid var(--border);
    color: var(--text-faint); font-size: var(--fs-xs); text-align: center;
}

/* --- 16. Duyuru bolgesi -------------------------------------------------- */
.prose { max-width: 68ch; }
.prose li { margin-bottom: var(--space-1); }

.metaline {
    display: flex; gap: var(--space-3); flex-wrap: wrap;
    color: var(--text-muted); font-size: var(--fs-sm);
}
.metaline > * { display: inline-flex; align-items: center; gap: 6px; }

/* --- 17. Duyarli davranis ------------------------------------------------ */
@media (max-width: 860px) {
    .navtoggle { display: inline-grid; }
    .nav {
        position: absolute; top: var(--topbar-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        gap: 2px; padding: var(--space-2);
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav[hidden] { display: none; }
    .nav__link { min-height: 44px; }
    .userchip__role { display: none; }
    .page { padding: var(--space-4) var(--space-3) var(--space-5); }
    .filters__actions { margin-left: 0; width: 100%; }
    .filters__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
    .topbar { gap: var(--space-2); padding: 0 var(--space-3); }
    .brand__sub { display: none; }
    .userchip { padding-right: var(--space-1); }
    .userchip__name { max-width: 72px; }
    .page-head__actions { margin-left: 0; width: 100%; }
}

@media (max-width: 400px) {
    .userchip__name { display: none; }
    .userchip { padding: 2px; }
    .brand__logo {
        width: 26px;
        -webkit-mask-image: url("../img/hb-mark.svg?v=1");
                mask-image: url("../img/hb-mark.svg?v=1");
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .topbar, .page-head__actions, .filters, .btn, .backlink { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}
