/* ==========================================================================
   SetSigner Flow — premium iş uygulaması
   Gri uygulama zemini üstünde duran beyaz çalışma sayfası, safir marka rengi,
   katmanlı derinlik. Satır içi stil yok (CSP style-src 'self').
   ========================================================================== */

/* ---------- Yazı tipleri (self-hosted, OFL) ---------- */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/inter-latin-ext-var.woff2") format("woff2-variations");
    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;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/inter-latin-var.woff2") format("woff2-variations");
    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;
}

/* Belge önizlemesinin (.sheet) yazı tipleri: PDF ile aynı; arayüzde kullanılmaz */
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url("fonts/archivo-latin-ext-standard-normal.woff2") format("woff2-variations");
    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;
}

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2-variations");
    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: "EB Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url("fonts/eb-garamond-latin-ext-wght-normal.woff2") format("woff2-variations");
    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;
}

@font-face {
    font-family: "EB Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url("fonts/eb-garamond-latin-wght-normal.woff2") format("woff2-variations");
    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: "EB Garamond";
    font-style: italic;
    font-display: swap;
    font-weight: 400 800;
    src: url("fonts/eb-garamond-latin-ext-wght-italic.woff2") format("woff2-variations");
    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;
}

@font-face {
    font-family: "EB Garamond";
    font-style: italic;
    font-display: swap;
    font-weight: 400 800;
    src: url("fonts/eb-garamond-latin-wght-italic.woff2") format("woff2-variations");
    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: "Martian Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    font-stretch: 75% 112.5%;
    src: url("fonts/martian-mono-latin-ext-standard-normal.woff2") format("woff2-variations");
    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;
}

@font-face {
    font-family: "Martian Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    font-stretch: 75% 112.5%;
    src: url("fonts/martian-mono-latin-standard-normal.woff2") format("woff2-variations");
    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;
}

/* ---------- Belirteçler ---------- */
:root {
    /* Zemin ve yüzeyler: menü uygulama zemininde, içerik beyaz sayfada */
    --canvas: #F0F2F7;
    --bg: #F7F8FB;
    --surface: #FFFFFF;
    --surface-2: #F9FAFB;
    --surface-3: #F2F4F7;

    /* Metin (beyaz üstünde ≥4.5:1) */
    --text: #101828;
    --text-2: #344054;
    --text-3: #5D6679;
    --text-4: #98A2B3;

    /* Çizgiler */
    --line: #EAECF0;
    --line-strong: #D0D5DD;
    --line-faint: #F2F4F7;

    /* Marka: safir. Rampa 50–900; birincil eylem, seçili konum, odak ve bağlantı */
    --brand-50: #F1F3FE;
    --brand-100: #E3E7FD;
    --brand-200: #C9D0FB;
    --brand-300: #A3AEF6;
    --brand-400: #7B89EE;
    --brand-500: #5465E4;
    --brand-600: #4052D6;
    --brand-700: #3242B8;
    --brand-800: #293592;
    --brand-900: #1D2566;
    /* Marka anlarının ikinci rengi (yalnız karşılama, logo, giriş paneli) */
    --violet-500: #7A5AF8;
    --violet-50: #F4F1FE;

    --accent: var(--brand-600);
    --accent-hover: var(--brand-700);
    --accent-press: var(--brand-800);
    --accent-tint: var(--brand-50);
    --accent-tint-2: var(--brand-100);
    --accent-soft: var(--brand-400);
    --link: var(--brand-600);
    --focus-ring: 0 0 0 4px rgba(64, 82, 214, 0.18);

    /* Durum: mürekkep, zemin, çizgi ve nokta */
    --ok: #067647;
    --ok-tint: #ECFDF3;
    --ok-line: #ABEFC6;
    --ok-dot: #17B26A;
    --danger: #B42318;
    --danger-hover: #912018;
    --danger-tint: #FEF3F2;
    --danger-line: #FECDCA;
    --danger-dot: #F04438;
    --warn: #B54708;
    --warn-tint: #FFFAEB;
    --warn-line: #FEDF89;
    --warn-dot: #F79009;
    --info: #175CD3;
    --info-tint: #EFF8FF;
    --info-line: #B2DDFF;
    --neutral-tint: #F2F4F7;

    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-code: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
    /* Yalnızca belge önizlemesi (PDF'in yazı tipleri) */
    --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;
    --font-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    --fs-xs: 0.75rem;
    --fs-sm: 0.8125rem;
    --fs-base: 0.875rem;
    --fs-md: 0.9375rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;

    --r-1: 6px;
    --r-2: 8px;
    --r-3: 12px;
    --r-4: 16px;

    --nav-w: 248px;
    --topbar-h: 3.5rem;
    --sheet-gap: 0.5rem;

    /* Derinlik: ofsetli, yumuşak; renkli hale yok */
    --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-2: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px -1px rgba(16, 24, 40, 0.06);
    --shadow-3: 0 4px 8px -2px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.05);
    --shadow-pop: 0 16px 24px -6px rgba(16, 24, 40, 0.12), 0 6px 8px -4px rgba(16, 24, 40, 0.05);
    --ease: cubic-bezier(0.2, 0, 0, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --bs-body-font-family: var(--font-sans);
    --bs-body-font-size: var(--fs-base);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--surface);
    --bs-border-color: var(--line);
    --bs-border-radius: var(--r-2);
    --bs-border-radius-sm: var(--r-1);
    --bs-border-radius-lg: var(--r-3);
    --bs-secondary-color: var(--text-3);
    --bs-link-color: var(--link);
    --bs-link-color-rgb: 64, 82, 214;
    --bs-link-hover-color: var(--brand-700);
    --bs-emphasis-color: var(--text);
    --bs-heading-color: var(--text);
    --bs-focus-ring-color: rgba(64, 82, 214, 0.18);
}

/* ---------- Temel ---------- */
html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    scrollbar-color: #C6CCD6 transparent;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.5;
    color: var(--text);
    background: var(--canvas);
    font-optical-sizing: auto;
    /* cv05: kuyruklu l (I, l ve ı ayrışır). Hizalı rakam (tnum) yalnız sayı sütunlarında: Inter'de tnum tire ve
       noktayı da genişletir, "SAT-2026-00001" gibi kodlar açılır. */
    font-feature-settings: "cv05";
    caret-color: var(--accent);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--brand-100); color: var(--brand-900); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #CDD2DB; border: 3px solid transparent; background-clip: padding-box; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: #A8B0BD; }
::-webkit-scrollbar-track { background: transparent; }

a {
    color: var(--link);
    text-decoration: none;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

    a:hover { color: var(--brand-700); text-decoration: underline; }
    /* Cümle içindeki bağlantı yalnız renkle ayrılmasın (WCAG 1.4.1) */
    :where(p, .prose, .help, .form-text, .alert-body, .lede) a:not(.btn) { text-decoration: underline; text-decoration-color: var(--brand-300); }
    :where(p, .prose, .help, .form-text, .alert-body, .lede) a:not(.btn):hover { text-decoration-color: currentColor; }

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

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-sans);
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.011em;
    text-wrap: balance;
}

h1:focus, h1:focus-visible { outline: none; }

.h4 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; }
.h5 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.012em; }
.h6 { font-size: var(--fs-md); font-weight: 600; }

small, .small { font-size: var(--fs-sm); }
.text-secondary { color: var(--text-3) !important; }
.text-body { color: var(--text) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--ok) !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
hr { border-color: var(--line); opacity: 1; }

code, kbd, .mono { font-family: var(--font-code); }

code { color: var(--text); font-size: 0.86em; background: var(--surface-3); padding: 0.1em 0.35em; border-radius: 4px; }

kbd, .kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 1.35rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1;
    color: var(--text-3);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    box-shadow: 0 1px 0 var(--line-strong);
}

    kbd .ico { width: 0.75rem; height: 0.75rem; }

/* Küçük açıklayıcı metin: tarih, sayı, kaynak, üst bilgi */
.label {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0;
}

/* Numara, kod, tutar: bölünmez. Hizalı rakam yalnız sütun ve sayaçlarda (aşağıda). */
.num { white-space: nowrap; }

/* Hizalı rakam: tablo sayı sütunları, sayaçlar, grafik ekseni */
.table :is(.text-end, .num-col), .ov-value, .legend .num, .pager, .spec dd.money, .tabs .count, .segmented .count, .kpi-num { font-variant-numeric: tabular-nums; }

/* Kullanıcının yazdığı metin (açıklama, yorum, not) */
.prose {
    font-size: var(--fs-md);
    line-height: 1.65;
    max-width: 75ch;
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.prose-sm { font-size: var(--fs-base); line-height: 1.55; overflow-wrap: anywhere; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.min-w-0 { min-width: 0; }
.justify-self-start { justify-self: start; }

/* ---------- Simgeler ---------- */
.ico {
    width: 1.1em;
    height: 1.1em;
    flex: none;
    stroke-width: 1.75;
    vertical-align: -0.18em;
}

.ico-sm { width: 0.95em; height: 0.95em; }
.ico-lg { width: 1.4em; height: 1.4em; }
.ico-xl { width: 1.75rem; height: 1.75rem; stroke-width: 1.6; }

/* Ürün işareti: safirden menekşeye geçen kare, beyaz iz */
.logo-mark { width: 2rem; height: 2rem; flex: none; }
.logo-mark .logo-dot { fill: #FFFFFF; }
.logo-mark .logo-line { fill: none; stroke: #FFFFFF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Düğmeler ---------- */
.btn {
    --bs-btn-padding-x: 0.875rem;
    --bs-btn-padding-y: 0.4rem;
    --bs-btn-font-size: var(--fs-base);
    --bs-btn-font-weight: 600;
    --bs-btn-line-height: 1.25;
    --bs-btn-border-radius: var(--r-2);
    --bs-btn-focus-box-shadow: var(--focus-ring);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.375rem;
    letter-spacing: -0.003em;
    white-space: nowrap;
    transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease), box-shadow 140ms var(--ease), transform 140ms var(--ease);
}

    .btn:active:not(:disabled) { transform: translateY(1px); }
    .btn:disabled, .btn.disabled { opacity: 0.5; }
    .btn .ico { width: 1rem; height: 1rem; }

.btn-sm {
    --bs-btn-padding-x: 0.7rem;
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-font-size: var(--fs-sm);
    min-height: 2rem;
    gap: 0.35rem;
}

    .btn-sm .ico { width: 0.9rem; height: 0.9rem; }

/* Birincil: hafif ışık alan safir yüzey, iç parıltı ve yumuşak gölge */
.btn-primary {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: var(--brand-600);
    --bs-btn-border-color: var(--brand-700);
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: var(--brand-700);
    --bs-btn-hover-border-color: var(--brand-800);
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--brand-800);
    --bs-btn-active-border-color: var(--brand-800);
    --bs-btn-disabled-color: #FFFFFF;
    --bs-btn-disabled-bg: var(--brand-600);
    --bs-btn-disabled-border-color: var(--brand-700);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(16, 24, 40, 0.12), 0 2px 6px -2px rgba(64, 82, 214, 0.45);
}

    .btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(16, 24, 40, 0.14), 0 4px 10px -3px rgba(64, 82, 214, 0.5); }

.btn-outline-secondary, .btn-outline-primary, .btn-secondary, .btn-light {
    --bs-btn-color: var(--text-2);
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-color: var(--text);
    --bs-btn-hover-bg: var(--surface-2);
    --bs-btn-hover-border-color: #B8C0CC;
    --bs-btn-active-color: var(--text);
    --bs-btn-active-bg: var(--surface-3);
    --bs-btn-active-border-color: #B8C0CC;
    --bs-btn-disabled-color: var(--text-3);
    --bs-btn-disabled-bg: var(--surface);
    --bs-btn-disabled-border-color: var(--line);
    box-shadow: var(--shadow-1);
}

/* Yumuşak: kalıcı ama ikincil eylem (üst çubukta "Yeni talep"); dolu birincil sayfanın kendi eylemine kalır */
.btn-soft {
    --bs-btn-color: var(--brand-700);
    --bs-btn-bg: var(--brand-50);
    --bs-btn-border-color: var(--brand-100);
    --bs-btn-hover-color: var(--brand-800);
    --bs-btn-hover-bg: var(--brand-100);
    --bs-btn-hover-border-color: var(--brand-200);
    --bs-btn-active-color: var(--brand-800);
    --bs-btn-active-bg: var(--brand-200);
    --bs-btn-active-border-color: var(--brand-200);
}

.btn-outline-primary { --bs-btn-color: var(--brand-700); --bs-btn-hover-color: var(--brand-800); --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-border-color: var(--brand-200); --bs-btn-active-color: var(--brand-800); }

.btn-outline-danger {
    --bs-btn-color: var(--danger);
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-color: var(--danger-hover);
    --bs-btn-hover-bg: var(--danger-tint);
    --bs-btn-hover-border-color: var(--danger-line);
    --bs-btn-active-color: var(--danger-hover);
    --bs-btn-active-bg: #FEE4E2;
    --bs-btn-active-border-color: var(--danger-line);
    --bs-btn-disabled-color: var(--danger);
    --bs-btn-disabled-bg: var(--surface);
    --bs-btn-disabled-border-color: var(--line);
    box-shadow: var(--shadow-1);
}

.btn-danger {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: #D92D20;
    --bs-btn-border-color: #B42318;
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: #B42318;
    --bs-btn-hover-border-color: #912018;
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: #912018;
    --bs-btn-active-border-color: #7A271A;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(16, 24, 40, 0.12);
}

.btn-ghost, .btn-link {
    --bs-btn-color: var(--text-2);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--text);
    --bs-btn-hover-bg: var(--surface-3);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--text);
    --bs-btn-active-bg: #E9ECF1;
    --bs-btn-active-border-color: transparent;
    text-decoration: none;
}

.btn-link { --bs-btn-color: var(--link); --bs-btn-hover-color: var(--brand-700); }
.btn-group > .btn { min-height: 2rem; }
.btn-ghost:disabled, .btn-ghost.disabled { border-color: transparent; }

/* Segment seçici (filtre) */
.segmented {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    flex-shrink: 0;
    max-width: 100%;
    overflow: hidden;
    background: var(--surface-3);
}

    .segmented > button, .segmented > a {
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        min-height: 1.875rem;
        padding: 0.2rem 0.8rem;
        border: 0;
        border-radius: var(--r-1);
        background: transparent;
        color: var(--text-3);
        font-size: var(--fs-sm);
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        transition: background-color 140ms var(--ease), color 140ms var(--ease), box-shadow 140ms var(--ease);
    }

        .segmented > .on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-2); }
        .segmented > :not(.on):hover { color: var(--text); }
        .segmented .count { color: var(--text-3); font-weight: 500; }
        .segmented > .on .count { color: var(--brand-600); }

/* ---------- Form ---------- */
.form-label {
    margin-bottom: 0.375rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-2);
}

.form-label.small { font-size: var(--fs-sm) !important; }

.req { color: var(--danger); margin-left: 0.15em; }

.form-control, .form-select {
    min-height: 2.5rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-2);
    background-color: var(--surface);
    color: var(--text);
    font-size: var(--fs-base);
    box-shadow: var(--shadow-1);
    transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}

    .form-control::placeholder { color: #7B8496; opacity: 1; }
    .form-control:hover, .form-select:hover { border-color: #B8C0CC; }

    .form-control:focus, .form-select:focus {
        border-color: var(--brand-400);
        background-color: var(--surface);
        box-shadow: var(--shadow-1), var(--focus-ring);
        outline: none;
    }

    .form-control:disabled, .form-select:disabled, .form-control[readonly] { background: var(--surface-2); color: var(--text-2); box-shadow: none; }

textarea.form-control { min-height: 5.75rem; line-height: 1.55; }
textarea.form-control.prose-input { font-size: var(--fs-md); line-height: 1.6; }

.form-control-sm, .form-select-sm { min-height: 2rem; font-size: var(--fs-sm); padding-top: 0.2rem; padding-bottom: 0.2rem; }

.form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-size: 16px 16px;
    padding-right: 2.25rem;
}

.form-check-input {
    width: 1.05em;
    height: 1.05em;
    margin-top: 0.22em;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    box-shadow: var(--shadow-1);
}

    .form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
    .form-check-input:focus { border-color: var(--brand-400); box-shadow: var(--focus-ring); }
    .form-check-input[type=radio] { border-radius: 50%; }

.form-switch .form-check-input { width: 2.1em; border-radius: 2em; box-shadow: none; }
.form-check-label { cursor: pointer; }
.form-text, .help { font-size: var(--fs-sm); color: var(--text-3); margin-top: 0.35rem; line-height: 1.45; }

.input-group-text {
    background: var(--surface-2);
    border-color: var(--line-strong);
    color: var(--text-3);
    font-size: var(--fs-sm);
}

.validation-message { color: var(--danger); font-size: var(--fs-sm); margin-top: 0.3rem; }
.invalid { border-color: #FDA29B !important; box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.1) !important; }
.valid.modified:not([type=checkbox]) { outline: none; }

/* Dinamik form ızgarası */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
}

    .form-grid .wide { grid-column: 1 / -1; }

.range-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; align-items: center; }
.range-pair .sep { color: var(--text-3); }

.check-list { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; padding: 0.4rem 0; }

@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Tablolar ---------- */
.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--surface-2);
    --bs-table-border-color: var(--line);
    margin-bottom: 0;
    font-size: var(--fs-base);
    color: var(--text);
}

    .table > :not(caption) > * > * { padding: 0.8rem 1rem; border-bottom-color: var(--line); vertical-align: middle; }

    .table thead th {
        font-size: var(--fs-xs);
        font-weight: 500;
        color: var(--text-3);
        background: var(--surface-2);
        border-bottom: 1px solid var(--line);
        white-space: nowrap;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .table tbody tr:last-child > * { border-bottom: 0; }
    .table-sm > :not(caption) > * > * { padding: 0.5rem 0.75rem; }
    .table a:not(.btn) { font-weight: 600; color: var(--text); }
    .table a:not(.btn):hover { color: var(--link); }
    .table-hover > tbody > tr:hover > * { background: var(--surface-2); }

.table-wrap { overflow-x: auto; }
.card:has(> .table) { overflow-x: auto; }

/* ---------- Panel ---------- */
.card, .panel {
    --bs-card-border-color: var(--line);
    --bs-card-border-radius: var(--r-3);
    --bs-card-bg: var(--surface);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    box-shadow: var(--shadow-1);
}

.card:has(> .table), .panel:has(> .table) { overflow: hidden; }

.card-body, .panel-body { display: flex; flex-direction: column; padding: 1.25rem; }
.panel-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    min-height: 3.375rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

    .panel-head h2, .panel-head h3 { margin: 0; font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; }
    .panel-head > .ico { color: var(--text-4); }
    .panel-head > .small > a, .panel-head > a.small { font-weight: 500; }

.card .card, .panel .panel { box-shadow: none; border-color: var(--line); }
.provider-disabled { background: var(--surface-2); }

/* ---------- Durum ve önem etiketleri: noktalı hap (renk + simge + söz) ---------- */
.badge, .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 1.375rem;
    padding: 0 0.55rem 0 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: var(--fs-xs);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

    .tag .ico, .badge .ico { width: 0.8rem; height: 0.8rem; stroke-width: 2.2; }
    .tag:not(:has(.ico))::before, .badge:not(:has(.ico))::before { content: ""; width: 6px; height: 6px; margin: 0 0.1rem 0 0.05rem; border-radius: 50%; background: currentColor; flex: none; }

.tag-run, .text-bg-primary { color: var(--brand-700) !important; background: var(--brand-50) !important; border-color: var(--brand-200) !important; }
.tag-ok, .text-bg-success { color: var(--ok) !important; background: var(--ok-tint) !important; border-color: var(--ok-line) !important; }
.tag-no, .text-bg-danger { color: var(--danger) !important; background: var(--danger-tint) !important; border-color: var(--danger-line) !important; }
.tag-back, .text-bg-warning { color: var(--warn) !important; background: var(--warn-tint) !important; border-color: var(--warn-line) !important; }
.tag-stall { color: #FFFFFF !important; background: #D92D20 !important; border-color: #B42318 !important; }
.tag-off, .text-bg-secondary, .text-bg-light { color: var(--text-3) !important; background: var(--neutral-tint) !important; border-color: var(--line) !important; }
.tag-draft { color: var(--text-3) !important; background: var(--surface) !important; border-color: var(--line-strong) !important; border-style: dashed !important; }
.tag-info { color: var(--info) !important; background: var(--info-tint) !important; border-color: var(--info-line) !important; }
.tag-wait { color: var(--brand-700) !important; background: var(--brand-50) !important; border-color: var(--brand-200) !important; }
.tag-hi { color: var(--warn) !important; background: var(--warn-tint) !important; border-color: var(--warn-line) !important; }
.tag-urgent { color: #FFFFFF !important; background: #D92D20 !important; border-color: #B42318 !important; }
.tag-plain { color: var(--text-2) !important; background: var(--surface) !important; border-color: var(--line-strong) !important; }

/* ---------- Uyarılar ---------- */
.alert {
    --bs-alert-border-radius: var(--r-3);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: var(--fs-base);
    box-shadow: var(--shadow-1);
    animation: alert-in 320ms var(--ease-out) both;
}

    .alert > .ico { margin-top: 0.05rem; width: 1.25rem; height: 1.25rem; }
    .alert .alert-body { flex: 1; min-width: 0; }
    .alert .alert-title { display: block; margin-bottom: 0.1rem; font-weight: 600; }

.alert-danger { border-color: var(--danger-line); background: var(--danger-tint); color: #7A271A; }
    .alert-danger > .ico { color: var(--danger-dot); }
.alert-success { border-color: var(--ok-line); background: var(--ok-tint); color: #054F31; }
    .alert-success > .ico { color: var(--ok-dot); }
.alert-warning { border-color: var(--warn-line); background: var(--warn-tint); color: #7A2E0E; }
    .alert-warning > .ico { color: var(--warn-dot); }
.alert-info { border-color: var(--info-line); background: var(--info-tint); color: #194185; }
    .alert-info > .ico { color: var(--info); }

/* İmza an: başarı bildiriminin onay işareti çizilerek gelir (karar kaydedildi, ayar kaydedildi). */
.alert-success > .ico :is(path, circle, polyline, line) {
    stroke-dasharray: 72;
    stroke-dashoffset: 72;
    animation: draw-check 620ms var(--ease-out) 120ms forwards;
}

@keyframes draw-check { to { stroke-dashoffset: 0; } }

@keyframes alert-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.blazor-error-boundary { padding: 1rem; color: #FFFFFF; background: #D92D20; border-radius: var(--r-2); }
.blazor-error-boundary::after { content: "Beklenmeyen bir hata oluştu."; }

/* ==========================================================================
   Kabuk: menü uygulama zemininde; içerik, zeminden ayrılan beyaz sayfada
   ========================================================================== */
.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--nav-w) minmax(0, 1fr);
    background: var(--canvas);
}

.shell:not(:has(> .sidenav)) { grid-template-columns: minmax(0, 1fr); }

.sidenav {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.625rem 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

.side-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 2.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--r-2);
    color: var(--text);
    text-decoration: none;
}

    .side-brand:hover { color: var(--text); text-decoration: none; }

.brand-word {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}

/* Firma kartı: menünün tepesinde kimin masasında olduğunu söyler */
.side-tenant {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.25rem 0 0.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

    .side-tenant .tenant-badge { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none; border-radius: 6px; background: var(--brand-50); color: var(--brand-700); font-size: 0.6875rem; font-weight: 700; }
    .side-tenant .tenant-logo { height: 1.5rem; max-width: 4.5rem; }
    .side-tenant strong { display: -webkit-box; font-size: var(--fs-sm); font-weight: 600; line-height: 1.25; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
    .side-tenant .label { display: block; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.brand-tenant {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-3);
    line-height: 1.3;
}

.brand-tenant-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tenant-logo { height: 1.125rem; width: auto; max-width: 5.5rem; object-fit: contain; flex: none; }

.side-nav { padding: 0.25rem 0 1rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav > ul { display: grid; gap: 2px; }

.side-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.625rem;
    border: 1px solid transparent;
    border-radius: var(--r-2);
    color: var(--text-2);
    font-size: var(--fs-base);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 140ms var(--ease), color 140ms var(--ease), box-shadow 140ms var(--ease);
}

    .side-link .ico { width: 1.125rem; height: 1.125rem; color: var(--text-4); transition: color 140ms var(--ease); }
    .side-link:hover { background: rgba(16, 24, 40, 0.045); color: var(--text); text-decoration: none; }
    .side-link:hover .ico { color: var(--text-3); }
    .side-link.current { color: var(--text); font-weight: 600; }
    .side-link.current .ico { color: var(--brand-600); }
    /* Seçili: zeminden kalkan beyaz hap */
    .side-link.active { background: var(--surface); border-color: var(--line); color: var(--text); font-weight: 600; box-shadow: var(--shadow-2); }
    .side-link.active .ico { color: var(--brand-600); }
    .side-link .count { margin-left: auto; min-width: 1.375rem; padding: 0 0.4rem; border-radius: 999px; background: var(--brand-600); color: #FFFFFF; font-size: 0.6875rem; font-weight: 600; line-height: 1.25rem; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 1px 2px rgba(41, 53, 146, 0.3); }

/* Açık bölümün sayfaları: ince kılavuz çizgisine asılı */
.side-sub { position: relative; display: grid; gap: 1px; margin: 0.15rem 0 0.4rem 1.2rem; padding-left: 0.75rem !important; }
.side-sub::before { content: ""; position: absolute; left: 0; top: 0.25rem; bottom: 0.25rem; width: 1px; background: var(--line-strong); }

    .side-sub a {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 2rem;
        padding: 0.3rem 0.625rem;
        border-radius: var(--r-1);
        color: var(--text-3);
        font-size: var(--fs-sm);
        font-weight: 500;
        text-decoration: none;
        transition: background-color 140ms var(--ease), color 140ms var(--ease);
    }

        .side-sub a:hover { background: rgba(16, 24, 40, 0.045); color: var(--text); text-decoration: none; }
        .side-sub a.active { color: var(--brand-700); font-weight: 600; background: var(--brand-50); }

.side-foot { margin-top: auto; padding: 0.5rem 0.25rem 0; }

.side-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.5rem;
    border: 0;
    border-radius: var(--r-2);
    background: transparent;
    color: var(--text-3);
    font-size: var(--fs-sm);
    text-align: left;
    cursor: pointer;
}

    .side-help:hover { background: rgba(16, 24, 40, 0.045); color: var(--text); }
    .side-help kbd { margin-left: auto; }

/* Beyaz çalışma sayfası */
.main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 2 * var(--sheet-gap));
    margin: var(--sheet-gap) var(--sheet-gap) var(--sheet-gap) 0;
    background: var(--surface);
    border: 1px solid #E3E6EC;
    border-radius: var(--r-4);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 8px -2px rgba(16, 24, 40, 0.04);
}

.shell:not(:has(> .sidenav)) > .main { margin: 0; border: 0; border-radius: 0; box-shadow: none; }

/* Komut çubuğu */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--topbar-h);
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    border-radius: var(--r-4) var(--r-4) 0 0;
    backdrop-filter: saturate(1.4) blur(10px);
}

.top-brand { display: none; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; }
    .top-brand:hover { color: var(--text); text-decoration: none; }
    .top-brand .logo-mark { width: 1.75rem; height: 1.75rem; }

.crumbs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    margin-right: auto;
    color: var(--text-3);
    font-size: var(--fs-base);
    font-weight: 500;
    white-space: nowrap;
}

    .crumbs > span { overflow: hidden; text-overflow: ellipsis; }
    .crumbs [aria-current] { color: var(--text); font-weight: 600; }
    .crumbs .ico { color: var(--text-4); }

/* Ara (Ctrl K): hızlı geçiş penceresini açar */
.top-search {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: 17rem;
    height: 2.25rem;
    padding: 0 0.45rem 0 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    background: var(--surface-2);
    color: var(--text-3);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}

    .top-search:hover { border-color: var(--line-strong); background: var(--surface); color: var(--text-2); }
    .top-search .ico { width: 1rem; height: 1rem; color: var(--text-4); }
    .top-search kbd { margin-left: auto; }

.top-actions { display: flex; align-items: center; gap: 0.4rem; }

.icon-btn, .avatar-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    height: 2.25rem;
    min-width: 2.25rem;
    padding: 0 0.35rem;
    border: 1px solid transparent;
    border-radius: var(--r-2);
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    list-style: none;
    transition: background-color 140ms var(--ease), color 140ms var(--ease);
}

    .icon-btn::-webkit-details-marker, .avatar-btn::-webkit-details-marker { display: none; }
    .icon-btn:hover, .avatar-btn:hover { background: var(--surface-3); color: var(--text); }
    .icon-btn .ico { width: 1.15rem; height: 1.15rem; }
    .pop[open] > .icon-btn, .pop[open] > .avatar-btn { background: var(--surface-3); color: var(--text); }
    .avatar-btn .ico { color: var(--text-4); }
    .avatar-btn .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }

.pip {
    position: absolute;
    top: 0.2rem;
    left: calc(50% + 0.2rem);
    min-width: 0.5rem;
    height: 0.95rem;
    padding: 0 0.22rem;
    border-radius: 1rem;
    background: var(--danger-dot);
    color: #FFFFFF;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 0.95rem;
    text-align: center;
    border: 2px solid var(--surface);
    box-sizing: content-box;
}

/* Açılır menüler: betiksiz <details> */
.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }

.pop-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    width: 22rem;
    max-width: calc(100vw - 2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    box-shadow: var(--shadow-pop);
    animation: pop-open 180ms var(--ease-out) both;
    transform-origin: top right;
    overflow: hidden;
}

.pop-panel.narrow { width: 16rem; }

.pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
}

.menu-list { list-style: none; margin: 0; padding: 0.375rem; }
.menu-list a, .menu-list button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.45rem 0.65rem;
    border: 0;
    border-radius: var(--r-1);
    background: transparent;
    color: var(--text-2);
    font-size: var(--fs-base);
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

    .menu-list a:hover, .menu-list button:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
    .menu-list .sep { height: 1px; margin: 0.3rem 0.4rem; background: var(--line); }
    .menu-list .ico { color: var(--text-4); }

@keyframes pop-open {
    from { opacity: 0; transform: translateY(-4px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* Platform desteği oturumu: salt okunur erişim sürdükçe her sayfanın üstünde */
.support-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.9rem;
    padding: 0.55rem 1.5rem;
    background: var(--brand-900);
    color: #FFFFFF;
    font-size: var(--fs-sm);
    line-height: 1.4;
    border-radius: var(--r-4) var(--r-4) 0 0;
}

    .support-strip svg { flex: none; }
    .support-strip > span { flex: 1 1 14rem; min-width: 0; }
    .support-strip strong { font-weight: 600; }
    .support-strip .btn { color: #FFFFFF; background: transparent; border-color: rgba(255, 255, 255, 0.4); box-shadow: none; }
    .support-strip .btn:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
    .support-strip + .topbar { border-radius: 0; }

/* Bölüm alt sayfaları: yalnızca kenar menü gizliyken üstte sekme */
.subnav {
    display: none;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.75rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    overflow-x: auto;
    scrollbar-width: none;
}

    .subnav a {
        position: relative;
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
        padding: 0 0.75rem;
        color: var(--text-3);
        font-weight: 500;
        font-size: var(--fs-base);
        text-decoration: none;
        white-space: nowrap;
    }

        .subnav a:hover { color: var(--text); text-decoration: none; }
        .subnav a.active { color: var(--text); font-weight: 600; }
        .subnav a.active::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--brand-600); }

.content {
    flex: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.75rem 2rem 4rem;
    animation: page-in 260ms var(--ease-out) both;
}

.content.wide { max-width: none; }

@keyframes page-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

/* Mobil alt çubuk (yalnızca dar ekran) */
.bottombar { display: none; }

@media (max-width: 1280px) {
    :root { --nav-w: 228px; }
    .content { padding: 1.5rem 1.5rem 3.5rem; }
    .topbar { padding-left: 1.25rem; padding-right: 1.25rem; }
    .top-search { width: 13rem; }
}

@media (max-width: 1023px) {
    :root { --sheet-gap: 0px; }
    .shell { display: block; background: var(--surface); }
    .sidenav { display: none; }
    .main { margin: 0; border: 0; border-radius: 0; box-shadow: none; min-height: 100vh; }
    .topbar { border-radius: 0; }
    .support-strip { border-radius: 0; }
    .top-brand { display: inline-flex; margin-right: auto; }
    .crumbs { display: none; }
    .top-search { width: auto; padding: 0; border-color: transparent; background: transparent; min-width: 2.25rem; justify-content: center; }
    .top-search > span, .top-search kbd { display: none; }
    .top-search .ico { width: 1.15rem; height: 1.15rem; color: var(--text-3); }
    .subnav { display: flex; }
    .topbar { gap: 0.4rem; padding: 0.4rem 0.75rem 0.4rem 1rem; }
    .top-actions .hide-sm { display: none; }
    .content { padding: 1.25rem 1rem 3rem; }

    .bottombar {
        position: fixed;
        z-index: 40;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: saturate(1.4) blur(12px);
        box-shadow: 0 -4px 12px -6px rgba(16, 24, 40, 0.08);
        padding-bottom: env(safe-area-inset-bottom);
    }

        .bottombar a, .bottombar summary {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.2rem;
            min-height: 3.5rem;
            color: var(--text-3);
            text-decoration: none;
            font-size: 0.6875rem;
            font-weight: 500;
            cursor: pointer;
            list-style: none;
        }

            .bottombar a:hover, .bottombar summary:hover { color: var(--text); text-decoration: none; }
            .bottombar a.current, .bottombar summary.current { color: var(--brand-600); font-weight: 600; }
            .bottombar a.current .ico, .bottombar summary.current .ico { background: var(--brand-50); }
            .bottombar .ico { box-sizing: content-box; width: 1.25rem; height: 1.25rem; padding: 0.2rem 0.9rem; border-radius: 999px; transition: background-color 160ms var(--ease); }
            .bottombar .count { position: absolute; top: 0.2rem; left: calc(50% + 0.35rem); min-width: 1.125rem; padding: 0 0.28rem; border: 2px solid var(--surface); border-radius: 999px; background: var(--brand-600); color: #FFFFFF; font-size: 0.625rem; font-weight: 700; line-height: 0.95rem; text-align: center; font-variant-numeric: tabular-nums; }

        .bottombar .pop-panel { position: fixed; left: 0.75rem; right: 0.75rem; top: auto; bottom: 4.25rem; width: auto; }
}

@media (max-width: 560px) {
    .top-brand .brand-word { font-size: 0.9375rem; }
}

/* ---------- Hızlı geçiş (Ctrl K) ---------- */
.cmdk {
    width: min(40rem, calc(100vw - 2rem));
    max-height: min(34rem, calc(100vh - 6rem));
    margin: 12vh auto auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-4);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.24), 0 0 0 1px rgba(16, 24, 40, 0.03);
    overflow: hidden;
}

    .cmdk[open] { display: flex; flex-direction: column; animation: cmdk-in 200ms var(--ease-out) both; }
    .cmdk::backdrop { background: rgba(16, 24, 40, 0.32); backdrop-filter: blur(3px); }

.cmdk-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--line);
}

    .cmdk-search > .ico { width: 1.15rem; height: 1.15rem; color: var(--text-4); }
    .cmdk-search input {
        flex: 1;
        min-width: 0;
        height: 3.25rem;
        border: 0;
        background: transparent;
        color: var(--text);
        font: inherit;
        font-size: var(--fs-md);
        outline: none;
    }

        .cmdk-search input::placeholder { color: #7B8496; }

.cmdk-list { flex: 1; overflow-y: auto; padding: 0.4rem; scroll-padding: 0.4rem; }
.cmdk-group + .cmdk-group { margin-top: 0.3rem; }
.cmdk-heading { padding: 0.5rem 0.65rem 0.3rem; font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); }

.cmdk-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: var(--r-2);
    color: var(--text-2);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

    .cmdk-item .ico { width: 1.05rem; height: 1.05rem; color: var(--text-4); }
    .cmdk-item .where { margin-left: auto; font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; }
    .cmdk-item:hover { color: var(--text); text-decoration: none; }
    .cmdk-item.is-active { background: var(--brand-50); color: var(--brand-800); }
    .cmdk-item.is-active .ico { color: var(--brand-600); }
    .cmdk-item[hidden], .cmdk-group[hidden] { display: none; }

.cmdk-empty { margin: 0; padding: 2rem 1rem; text-align: center; color: var(--text-3); }
.cmdk-foot { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; padding: 0.6rem 1rem; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--text-3); font-size: var(--fs-xs); }
    .cmdk-foot span { display: inline-flex; align-items: center; gap: 0.3rem; }

@keyframes cmdk-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
    .cmdk { margin-top: 1rem; max-height: calc(100vh - 2rem); }
    .cmdk-foot { display: none; }
}

/* ---------- Sayfa başlığı ---------- */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

    .page-head h1 {
        margin: 0;
        font-size: var(--fs-2xl);
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.022em;
    }

    .page-head .lede {
        margin: 0.4rem 0 0;
        font-size: var(--fs-base);
        line-height: 1.55;
        color: var(--text-3);
        max-width: 80ch;
    }

    .page-head .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
    .page-head .back { display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 0.6rem; color: var(--text-3); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; }
    .page-head .back:hover { color: var(--brand-700); }

.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.75rem; }
.page-header .h4, .page-header h1 { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.022em; line-height: 1.2; margin: 0; }
.page-narrow { max-width: 760px; }

.display {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

    .display .hl { color: var(--brand-600); }

@media (max-width: 720px) {
    .page-head { flex-direction: column; align-items: stretch; gap: 1rem; }
    .page-head .actions { justify-content: flex-start; }
    .page-head h1, .page-header h1, .page-header .h4 { font-size: var(--fs-xl); }
}

/* Bölüm başlığı */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 2rem 0 0.8rem;
    font-size: var(--fs-md);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

    .section-label:first-child { margin-top: 0; }
    .section-label .aside { color: var(--text-3); font-weight: 500; font-size: var(--fs-sm); }
    .section-label a, .section-label a.aside { color: var(--link); font-size: var(--fs-sm); font-weight: 500; margin-left: auto; }

/* ---------- Satır listeleri (görev, talep) ---------- */
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-1); overflow: hidden; }
.panel > .rows { border: 0; border-radius: 0 0 var(--r-3) var(--r-3); box-shadow: none; }

.row-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.875rem 1.1rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 140ms var(--ease);
}

    .row-item:last-child, li:last-child > .row-item { border-bottom: 0; }
    .row-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
    .row-item.selected { background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-200); }
    .row-item.selected .proc { background: var(--surface); }

    .row-item .title { display: block; font-weight: 600; font-size: var(--fs-base); line-height: 1.4; letter-spacing: -0.005em; overflow-wrap: anywhere; }
    .row-item .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.8rem; margin-top: 0.3rem; color: var(--text-3); font-size: var(--fs-sm); }
    .row-item .meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }
    .row-item .side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; text-align: right; font-size: var(--fs-sm); color: var(--text-3); }
    .row-item .hl { color: var(--text); font-weight: 600; }
    .row-item .hl-plain { color: var(--text-2); }
    .row-item .overdue { color: var(--danger); font-weight: 600; }

.row-check { display: grid; place-items: center; width: 1.5rem; }
.row-item .meta .num { white-space: nowrap; }

@media (max-width: 640px) {
    .row-item { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0.5rem 0.8rem; padding: 0.875rem 0.9rem; }
    .row-item .side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; gap: 0.4rem 0.75rem; }
    .row-item.has-check { grid-template-columns: auto auto minmax(0, 1fr); }
    .row-item.has-check .side { grid-column: 3; }
    .row-item .proc { width: 2rem; height: 2rem; }
    .row-item .proc .ico { width: 1rem; height: 1rem; }
}
.row-item.static { cursor: default; }
.row-item.static:hover { background: transparent; }
.row-item.has-check { grid-template-columns: auto auto minmax(0, 1fr) auto; }

/* Süreç işaretleri: safir zeminde safir simge, ince iç halka; süreçleri simge ayırır */
.proc {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--r-2);
    background: linear-gradient(180deg, var(--brand-50) 0%, #E8EBFD 100%);
    color: var(--brand-600);
    box-shadow: inset 0 0 0 1px rgba(64, 82, 214, 0.12);
}

    .proc .ico { width: 1.125rem; height: 1.125rem; stroke-width: 1.85; }
    .proc.lg { width: 3rem; height: 3rem; border-radius: var(--r-3); }
    .proc.lg .ico { width: 1.5rem; height: 1.5rem; }
    .proc.sm { width: 1.75rem; height: 1.75rem; border-radius: var(--r-1); }
    .proc.sm .ico { width: 0.95rem; height: 0.95rem; }

    .proc.muted { background: var(--surface-3); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }

/* Kişi: baş harf plakası */
.person { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.person .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--brand-100) 0%, var(--brand-200) 100%);
    color: var(--brand-800);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

    .avatar.lg { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
    .avatar.sys { background: var(--surface-3); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }
    .avatar .ico { width: 0.875rem; height: 0.875rem; }

/* ---------- Onay yolu ---------- */
.route { list-style: none; margin: 0; padding: 0; }

.route-step {
    position: relative;
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.85rem;
    padding-bottom: 1.35rem;
}

    .route-step::before {
        content: "";
        position: absolute;
        left: calc(0.75rem - 1px);
        top: 1.85rem;
        bottom: 0.3rem;
        width: 2px;
        border-radius: 1px;
        background: var(--line);
    }

    .route-step:last-child { padding-bottom: 0; }
    .route-step:last-child::before { display: none; }
    .route-step.done::before { background: linear-gradient(180deg, #75E0A7, var(--ok-line)); }

.marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    background: var(--surface);
    color: var(--text-3);
    font-size: 0.6875rem;
    font-weight: 600;
    margin-top: 0.1rem;
    box-shadow: var(--shadow-1);
}

    .marker .ico { width: 0.8rem; height: 0.8rem; stroke-width: 2.8; }
    .route-step.done .marker { background: var(--ok-dot); border-color: var(--ok-dot); color: #FFFFFF; }
    .route-step.current .marker { background: var(--brand-600); border-color: var(--brand-600); color: #FFFFFF; box-shadow: 0 0 0 4px var(--brand-100); }
    .route-step.rejected .marker { background: var(--danger-dot); border-color: var(--danger-dot); color: #FFFFFF; }
    .route-step.returned .marker { background: var(--warn-tint); border-color: var(--warn-dot); color: var(--warn); }
    .route-step.stalled .marker { background: var(--danger-dot); border-color: var(--danger-dot); color: #FFFFFF; }
    .route-step.skipped .marker { border-style: dashed; color: var(--text-4); box-shadow: none; }
    .route-step.notify .marker { border-color: var(--info-line); color: var(--info); }
    .route-step.skipped .step-name { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-4); }

.step-name { display: block; font-weight: 600; line-height: 1.7rem; letter-spacing: -0.005em; }
.step-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.75rem; color: var(--text-3); font-size: var(--fs-sm); }
.step-tasks { display: grid; gap: 0.55rem; margin-top: 0.6rem; }
.step-task { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; font-size: var(--fs-sm); }
.step-task .quote { flex-basis: 100%; margin: 0.15rem 0 0 2.25rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- Zaman çizelgesi ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }

.tl-item {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

    .tl-item:last-child { border-bottom: 0; }
    .tl-time { font-size: var(--fs-xs); color: var(--text-3); padding-top: 0.15rem; line-height: 1.35; }
    .tl-body { font-size: var(--fs-base); min-width: 0; }
    .tl-body .quote { margin-top: 0.35rem; font-size: var(--fs-base); line-height: 1.55; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
    .tl-item.comment .tl-body .quote { padding: 0.6rem 0.85rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-2); color: var(--text); }
    .tl-item .ico { color: var(--text-4); }

/* ---------- Tanım listesi (form verisi) ---------- */
.spec { display: grid; grid-template-columns: minmax(9rem, 30%) minmax(0, 1fr); margin: 0; }
.spec dt, .spec dd { padding: 0.7rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.spec dt { font-size: var(--fs-sm); font-weight: 500; color: var(--text-3); padding-right: 1rem; }
.spec dd { font-size: var(--fs-base); font-weight: 500; overflow-wrap: anywhere; }
.spec dd.money { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; }
.spec > :nth-last-child(-n+2) { border-bottom: 0; }

@media (max-width: 560px) {
    .spec { grid-template-columns: 1fr; }
    .spec dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Ekler ---------- */
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.file {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

    .file .ext { display: grid; place-items: center; width: 2.25rem; height: 2.5rem; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--line); }
    .file .fname { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
    .file a.fname:hover { color: var(--brand-700); text-decoration: underline; }
    .file.generated .ext { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-100); }

.dropzone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-3);
    background: var(--surface-2);
    color: var(--text-2);
    transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}

    .dropzone:hover, .dropzone:focus-within { border-color: var(--brand-300); background: var(--brand-50); }
    .dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ---------- Karar paneli ---------- */
.decision {
    border: 1px solid var(--brand-200);
    border-radius: var(--r-3);
    background: var(--surface);
    box-shadow: var(--shadow-3), 0 0 0 4px rgba(64, 82, 214, 0.05);
    overflow: hidden;
}

    .decision-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.25rem; background: linear-gradient(180deg, var(--brand-50) 0%, #F7F8FE 100%); border-bottom: 1px solid var(--brand-100); }
    .decision-head h2, .decision-head h3 { margin: 0; font-size: var(--fs-md); font-weight: 600; line-height: 1.3; color: var(--brand-800); }
    .decision-head h2 .step, .decision-head h3 .small { display: block; font-weight: 500; font-size: var(--fs-sm); color: var(--text-3); }
    .due-chip { display: inline-flex; align-items: center; gap: 0.35rem; height: 1.5rem; padding: 0 0.55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-1); }
    .due-chip.overdue { color: var(--danger); border-color: var(--danger-line); background: var(--danger-tint); }
    .due-chip.overdue .ico { color: var(--danger-dot); }
    .decision-body { padding: 1.15rem 1.25rem 1.25rem; display: grid; gap: 0.9rem; }
    .decision-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .decision-actions .btn-primary { min-width: 8.5rem; }
    .hinge { animation: pop-open 180ms var(--ease-out) both; transform-origin: top center; }

@media (max-width: 576px) {
    .decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .decision-actions .btn { min-height: 2.75rem; min-width: 0; margin: 0 !important; white-space: normal; line-height: 1.25; text-align: center; }
    .decision-actions .btn-primary, .decision-actions .btn-ghost { grid-column: 1 / -1; }
    .decision-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ---------- Biyometrik imza ---------- */
.sign-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; }
.sign-frame { display: block; width: 100%; height: 360px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.sign-preview { display: block; width: 100%; height: min(78vh, 900px); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-2); }
.sign-steps { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; font-size: var(--fs-sm); color: var(--text-2); }
    .sign-steps li::marker { font-weight: 600; color: var(--brand-600); }
.sign-status { display: flex; align-items: center; gap: 0.6rem; padding: 1rem; border: 1px solid var(--info-line); border-radius: var(--r-2); background: var(--info-tint); color: #194185; font-weight: 600; }
.sign-note { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.7rem 0.85rem; border: 1px solid var(--info-line); border-radius: var(--r-2); background: var(--info-tint); color: #194185; font-size: var(--fs-sm); line-height: 1.5; }
    .sign-note > .ico { flex: none; margin-top: 0.1rem; color: var(--info); }

.sign-versions { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.5rem; }
    .sign-versions li::marker { font-size: var(--fs-sm); color: var(--text-3); }
    .sign-versions li.latest::marker { color: var(--brand-600); font-weight: 700; }
    .sign-versions .label { display: block; }
    .sign-versions a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
    .sign-versions a:hover { color: var(--brand-700); }
    .sign-versions a:hover > span, .sign-versions a:focus-visible > span { text-decoration: underline; }
    .sign-versions a > .ico:last-child { color: var(--text-4); }
.signed-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--fs-sm); font-weight: 600; color: var(--link); }

@media (max-width: 860px) {
    .sign-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    /* Telefonda gömülü PDF çoğu tarayıcıda görünmez; belge yeni sekmede açılır. */
    .sign-preview { display: none; }
    .sign-frame { height: 420px; }
}

/* Test imza hizmetinin çerçeve sayfası (yalnızca geliştirme). */
.fake-sign { margin: 0; background: var(--surface); }
.fake-sign-body { display: grid; gap: 0.75rem; padding: 1rem 1.1rem; }
.fake-sign-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.action-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0 -1rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(1.4) blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 12px -6px rgba(16, 24, 40, 0.08);
}

/* ---------- Boş durum ---------- */
.empty-state, .empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2.25rem 1.5rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-3);
    background:
        radial-gradient(60% 80% at 50% 0%, var(--brand-50) 0%, rgba(241, 243, 254, 0) 70%),
        var(--surface);
    color: var(--text-2);
    text-align: center;
}

    .empty .ico-xl {
        width: 3rem;
        height: 3rem;
        padding: 0.7rem;
        border-radius: var(--r-3);
        background: var(--surface);
        color: var(--brand-600);
        box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
    }
    .empty h2, .empty h3 { margin: 0.5rem 0 0; font-size: var(--fs-md); font-weight: 600; color: var(--text); }
    .empty p { margin: 0; font-size: var(--fs-base); line-height: 1.55; max-width: 48ch; color: var(--text-3); }
    .empty .btn { margin-top: 0.5rem; }

/* ---------- Yükleniyor ---------- */
.skeleton {
    display: block;
    height: 1rem;
    border-radius: var(--r-1);
    background: linear-gradient(90deg, #EEF0F4 0%, #F7F8FA 40%, #EEF0F4 80%);
    background-size: 300% 100%;
    animation: shimmer 1.4s linear infinite;
}

.skeleton.row { height: 4rem; margin-bottom: 1px; border-radius: 0; }
.skeleton.title { height: 2rem; width: 40%; margin-bottom: 1rem; }
.skeleton-list { border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--surface); }

@keyframes shimmer {
    from { background-position: 100% 0; }
    to { background-position: -200% 0; }
}

/* ---------- Araç şeridi (filtreler) ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.toolbar .grow { flex: 1; min-width: 12rem; }
.toolbar .search { position: relative; }
.toolbar .search .ico { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-4); pointer-events: none; }
.toolbar .search input { padding-left: 2.3rem; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: var(--text-3); font-size: var(--fs-sm); }

/* ---------- Ana sayfa (Masam) ---------- */
/* Karşılama: yumuşak safir-menekşe ışıkla aydınlanan bant; selam, gerçek durum cümlesi, eylemler */
.welcome {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 1.75rem 1.75rem;
    margin-bottom: 1rem;
    border: 1px solid #E4E7F6;
    border-radius: var(--r-4);
    background:
        radial-gradient(90% 160% at 0% 0%, rgba(84, 101, 228, 0.13) 0%, rgba(84, 101, 228, 0) 55%),
        radial-gradient(70% 140% at 100% 0%, rgba(122, 90, 248, 0.11) 0%, rgba(122, 90, 248, 0) 60%),
        linear-gradient(180deg, #FBFBFF 0%, #FFFFFF 100%);
    overflow: hidden;
}

    .welcome h1 { margin: 0; font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.028em; line-height: 1.15; }
    .welcome-lede { margin: 0.5rem 0 0; font-size: var(--fs-md); line-height: 1.55; color: var(--text-2); max-width: 62ch; }
    .welcome-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Özet şeridi: tek kutu, ince çizgilerle bölünmüş; her hücre süzülmüş listeye gider */
.overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 1px;
    margin-bottom: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    background: var(--line);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.ov-item {
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.25rem 1.05rem;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: background-color 140ms var(--ease);
}

    .ov-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
    .ov-label { display: inline-flex; align-items: flex-start; gap: 0.45rem; font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; color: var(--text-3); }
    .ov-label .ico { width: 1rem; height: 1rem; margin-top: 0.05rem; color: var(--brand-500); }
    .ov-value { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
    .ov-note { font-size: var(--fs-sm); color: var(--text-3); }
    .ov-item.is-alert .ov-label .ico { color: var(--danger-dot); }
    .ov-item.is-alert .ov-note { color: var(--danger); font-weight: 500; }

.desk { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.desk-main, .desk-side { display: grid; gap: 1.5rem; min-width: 0; }
.desk .panel-head .count-note { color: var(--text-3); font-size: var(--fs-sm); font-weight: 500; }
.desk .panel-head .count-note.bad { color: var(--danger); }
.desk .panel > .empty { border: 0; border-radius: 0 0 var(--r-3) var(--r-3); }
.desk .panel-foot { padding: 0.75rem 1.25rem; border-top: 1px solid var(--line); }

.feed { list-style: none; margin: 0; padding: 0.25rem 1.25rem 0.5rem; }
.feed li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; padding: 0.7rem 0; font-size: var(--fs-sm); }
/* Olaylar arası dikey iz: avatarların merkezinden geçen ince çizgi */
.feed li:not(:last-child)::before { content: ""; position: absolute; left: 0.875rem; top: 2.45rem; bottom: -0.1rem; width: 1px; background: var(--line); }
.feed .what { color: var(--text-2); }
.feed .when { display: block; margin-top: 0.15rem; font-size: var(--fs-xs); color: var(--text-3); }
.feed a { font-weight: 600; white-space: nowrap; }

.quick { list-style: none; margin: 0; padding: 0.375rem; display: grid; gap: 1px; }
.quick a { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.65rem; border-radius: var(--r-2); color: var(--text); text-decoration: none; font-weight: 500; transition: background-color 140ms var(--ease); }
.quick a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.quick a .ico.go { margin-left: auto; color: var(--text-4); transition: transform 160ms var(--ease-out), color 140ms var(--ease); }
.quick a:hover .ico.go { color: var(--brand-600); transform: translateX(2px); }

.banner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--warn-line);
    border-radius: var(--r-3);
    background: var(--warn-tint);
    color: #7A2E0E;
    box-shadow: var(--shadow-1);
}

    .banner > .ico { color: var(--warn-dot); }
    .banner .grow { flex: 1; }

@media (max-width: 1100px) {
    .desk { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .welcome { padding: 1.1rem 1.1rem 1.15rem; gap: 0.9rem; }
    .welcome h1 { font-size: var(--fs-xl); }
    .welcome-lede { margin-top: 0.3rem; font-size: var(--fs-base); }
    .welcome-actions { width: 100%; }
    .welcome-actions .btn { flex: 1 1 auto; }
    .welcome-actions .btn-outline-secondary { display: none; }
    .ov-label { min-height: calc(2 * 1.35em); }
    .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ov-item { padding: 0.85rem 0.9rem; }
    .ov-value { font-size: 1.5rem; }
}

/* ---------- Gelen kutusu: liste + önizleme ---------- */
.inbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.25rem; align-items: start; }
.inbox .preview { position: sticky; top: calc(var(--topbar-h) + 1rem); }
.inbox-list:focus { outline: none; }
.inbox-list:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--r-3); }
.kbd-hint { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 0.75rem; color: var(--text-3); font-size: var(--fs-xs); }
.bulk { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; margin-bottom: 0.75rem; border: 1px solid var(--brand-200); border-radius: var(--r-3); background: var(--brand-50); color: var(--brand-800); font-weight: 600; box-shadow: var(--shadow-1); }

@media (max-width: 1180px) {
    .inbox { grid-template-columns: 1fr; }
    .inbox .preview { display: none; }
}

/* ---------- Talep detayı ---------- */
.req-head { margin-bottom: 1.75rem; }
.req-head .title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.req-head .title-row .tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.req-head .by .num { font-weight: 600; color: var(--text-2); }
.req-head h1 { margin: 0; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.022em; line-height: 1.2; overflow-wrap: anywhere; }
.req-head .by { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; margin-top: 0.75rem; color: var(--text-3); font-size: var(--fs-sm); }

.req-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.req-side { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--topbar-h) + 1rem); }

@media (max-width: 1100px) {
    .req-grid { grid-template-columns: 1fr; }
    .req-side { position: static; }
}

/* ---------- Talep kataloğu ---------- */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 0.75rem; }
.proc-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--text);
    text-decoration: none;
    transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease-out);
}

    .proc-row:hover { border-color: var(--brand-200); box-shadow: var(--shadow-3); color: var(--text); text-decoration: none; transform: translateY(-1px); }
    .proc-row .name { display: block; font-size: var(--fs-md); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
    .proc-row .desc { display: block; margin-top: 0.2rem; font-size: var(--fs-sm); color: var(--text-3); line-height: 1.5; }
    .proc-row .facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 0.45rem; }
    .proc-row > .go { color: var(--text-4); transition: color 140ms var(--ease), transform 160ms var(--ease-out); }
    .proc-row:hover > .go { color: var(--brand-600); transform: translateX(2px); }

@media (max-width: 640px) {
    .catalog { grid-template-columns: 1fr; }
    .proc-row { grid-template-columns: auto minmax(0, 1fr); }
    .proc-row > .go { display: none; }
}

/* ---------- Süreç tasarımcısı ---------- */
.designer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.designer .map { position: sticky; top: calc(var(--topbar-h) + 1rem); }

.block {
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}

    .block + .block { margin-top: 0.625rem; }
    .block-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line); }
    .block-head .grow { flex: 1; min-width: 0; }
    .block-toggle { display: block; padding: 0.15rem 0; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
    .block-toggle:hover .fw-semibold { color: var(--brand-700); }
    .block-body { padding: 0.95rem; display: grid; gap: 0.85rem; }
    .block.open { border-color: var(--brand-200); box-shadow: var(--shadow-3); }
    .block .order { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: 0.6875rem; font-weight: 700; flex: none; box-shadow: inset 0 0 0 1px var(--brand-100); }
    .block .order.notify { background: var(--info-tint); color: var(--info); box-shadow: inset 0 0 0 1px var(--info-line); }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem 1rem; }
.cond { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; }

.icon-pick { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.icon-pick button { display: grid; place-items: center; width: 2.375rem; height: 2.375rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); color: var(--text-3); cursor: pointer; box-shadow: var(--shadow-1); transition: border-color 140ms var(--ease), color 140ms var(--ease), background-color 140ms var(--ease); }
.icon-pick button:hover { border-color: var(--line-strong); color: var(--text); }
.icon-pick button.on { border-color: var(--brand-400); background: var(--brand-50); color: var(--brand-700); box-shadow: 0 0 0 3px var(--brand-100); }

@media (max-width: 1100px) {
    .designer { grid-template-columns: 1fr; }
    .designer .map { position: static; }
    .cond { grid-template-columns: 1fr; }
}

/* ---------- Raporlar ---------- */
.ledger { display: grid; gap: 1.25rem; }
.split-bar { display: flex; height: 0.625rem; border-radius: 999px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.split-bar span { display: block; height: 100%; }
.split-bar .s-ok { background: var(--ok-dot); }
.split-bar .s-no { background: var(--danger-dot); }
.split-bar .s-open { background: var(--brand-500); }
.split-bar .s-off { background: #C3C9D3; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: var(--fs-sm); color: var(--text-3); }
.legend .key { display: inline-block; width: 0.625rem; height: 0.625rem; margin-right: 0.4rem; border-radius: 3px; vertical-align: -0.02em; }
.legend .num { color: var(--text); font-weight: 600; margin-left: 0.3rem; }
.legend .key.s-ok { background: var(--ok-dot); }
.legend .key.s-no { background: var(--danger-dot); }
.legend .key.s-open { background: var(--brand-500); }
.legend .key.s-off { background: #C3C9D3; }
.legend .key.key-sub { background: var(--brand-300); }
.legend .key.key-done { background: var(--brand-600); }
.summary-sentence { font-size: var(--fs-lg); line-height: 1.55; max-width: 75ch; margin: 0; color: var(--text-2); letter-spacing: -0.01em; }
.summary-sentence strong { font-weight: 600; color: var(--text); }

.chart { margin: 0; }
.chart-cap { margin-bottom: 0.5rem; font-size: var(--fs-xs); color: var(--text-3); }
.chart-plot { display: block; width: 100%; height: 12.5rem; }
.chart .bar-sub { fill: var(--brand-300); }
.chart .bar-done { fill: var(--brand-600); }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart-x { display: flex; margin-top: 0.5rem; font-size: var(--fs-xs); color: var(--text-3); }
.chart-x > span { flex: 1 1 0; min-width: 0; white-space: nowrap; }

.meter { display: block; height: 0.4rem; background: var(--surface-3); border-radius: 999px; overflow: hidden; min-width: 5rem; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); }
.meter.hot > span { background: linear-gradient(90deg, #FDB022, var(--warn-dot)); }

/* Genişlik adımları (satır içi stil yerine sınıf) */
.w-0 { width: 0%; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }

/* ---------- Sekmeler (sayfa içi) ---------- */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { position: relative; display: inline-flex; align-items: center; min-height: 2.625rem; padding: 0 0.85rem; border: 0; background: transparent; color: var(--text-3); font-weight: 500; font-size: var(--fs-base); cursor: pointer; white-space: nowrap; text-decoration: none; transition: color 140ms var(--ease); }
.tabs button:hover, .tabs a:hover { color: var(--text); text-decoration: none; }
.tabs .on { color: var(--text); font-weight: 600; }
.tabs .on::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--brand-600); }
.tabs .count { margin-left: 0.45rem; padding: 0 0.45rem; border-radius: 999px; background: var(--surface-3); font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); line-height: 1.35rem; }
.tabs .on .count { background: var(--brand-50); color: var(--brand-700); }

/* Bootstrap nav-tabs/pills uyumu (yönetim sayfaları) */
.nav-tabs { border-bottom: 1px solid var(--line); }
.nav-tabs .nav-link { border: 0; color: var(--text-3); font-weight: 500; border-radius: 0; }
.nav-tabs .nav-link:hover { color: var(--text); }
.nav-tabs .nav-link.active { color: var(--text); font-weight: 600; background: transparent; box-shadow: inset 0 -2px 0 var(--brand-600); }

/* ---------- Bildirimler ---------- */
.notes { list-style: none; margin: 0; padding: 0; }
.note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background-color 140ms var(--ease); }
.note:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.note.unread { background: #F8F9FF; }
.note .n-title { display: block; font-weight: 600; font-size: var(--fs-base); line-height: 1.35; }
.note .n-body { display: block; margin-top: 0.15rem; color: var(--text-3); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.note .n-time { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.note .n-ico { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface-3); color: var(--text-3); }
.note.unread .n-ico { background: var(--brand-50); color: var(--brand-600); box-shadow: inset 0 0 0 1px var(--brand-100); }
.note.unread .n-title::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 0.4rem; border-radius: 50%; background: var(--brand-500); vertical-align: 0.15em; }
.pop-panel .notes { max-height: 24rem; overflow-y: auto; }

/* ---------- Yönetim yardımcıları ---------- */
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
.recovery-codes code { display: block; padding: 0.45rem 0.5rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-1); text-align: center; font-size: 0.9rem; }
.qr svg { width: 180px; height: 180px; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.member-list { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-2); padding: 0.5rem 0.75rem; background: var(--surface); }
.session-line { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.session-line:last-child { border-bottom: 0; }
.audit-table { font-size: var(--fs-sm); }
.plan-list { margin: 0.25rem 0 0; padding-left: 1.1rem; max-height: 220px; overflow-y: auto; }
.step-list { padding-left: 1.2rem; margin: 0; }
.step-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.step-list li:last-child { border-bottom: 0; }

.mw-120 { max-width: 120px; }
.mw-170 { max-width: 170px; }
.mw-260 { max-width: 260px; }
.mw-280 { max-width: 280px; }
.mw-360 { max-width: 360px; }
.mw-380 { max-width: 380px; }
.mw-420 { max-width: 420px; }

/* ==========================================================================
   Hesap sayfaları: solda marka paneli, sağda giriş kartı
   ========================================================================== */
.cover {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    background: var(--surface);
}

/* Marka paneli: derin safirden menekşeye ışık, gerçek ürün cümleleri */
.cover-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    color: #FFFFFF;
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(122, 90, 248, 0.55) 0%, rgba(122, 90, 248, 0) 60%),
        radial-gradient(90% 70% at 0% 100%, rgba(84, 101, 228, 0.6) 0%, rgba(84, 101, 228, 0) 65%),
        linear-gradient(160deg, #202A7A 0%, #2B389F 45%, #3242B8 100%);
    overflow: hidden;
}

    .cover-aside > * { position: relative; }
    .cover-aside .cover-brand { justify-content: flex-start; }
    .cover-aside .brand-word { color: #FFFFFF; }
    .cover-aside .cover-scope { color: rgba(255, 255, 255, 0.72); border-left-color: rgba(255, 255, 255, 0.28); }
    .cover-aside p { margin: 0.9rem 0 0; max-width: 44ch; font-size: var(--fs-md); line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
    .cover-aside .cover-title { margin: 0; max-width: 18ch; font-size: 2rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; color: #FFFFFF; text-wrap: balance; }
    .cover-aside .cover-legal { margin: 0; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.62); }

.cover-points { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
    .cover-points li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: var(--fs-base); line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
    .cover-points .ico { flex: none; width: 1.375rem; height: 1.375rem; padding: 0.25rem; margin-top: -0.05rem; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }


.cover-main { display: grid; place-items: center; padding: 2.5rem 1.5rem; background: var(--surface); }
.cover-form { width: 100%; max-width: 25rem; display: grid; gap: 1.5rem; }

.cover-brand { display: flex; align-items: center; gap: 0.65rem; justify-content: center; }
    .cover-brand .logo-mark { width: 2.25rem; height: 2.25rem; }
    .cover-brand .brand-word { font-size: 1.1875rem; }
    .cover-scope { padding-left: 0.65rem; margin-left: 0.1rem; border-left: 1px solid var(--line-strong); color: var(--text-3); font-size: var(--fs-base); font-weight: 500; }
.cover-main > .cover-form > .cover-brand { display: none; }

.account-card {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
}

    .account-card h1, .account-card .h4, .account-card .h5 { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.025em; margin-bottom: 0.4rem; }
    .account-card h1 + p.small, .account-card h1 + p.text-secondary, .account-card .lede { font-size: var(--fs-base) !important; line-height: 1.55; color: var(--text-3) !important; margin-bottom: 1.5rem; }
    .account-card .form-control { min-height: 2.75rem; }
    .account-card .btn-primary.w-100 { min-height: 2.75rem; font-size: var(--fs-md); }

.account-tenant {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.75rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    background: var(--surface-2);
    box-shadow: var(--shadow-1);
}

    .account-tenant .tenant-badge { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: var(--r-2); background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-sm); font-weight: 700; box-shadow: inset 0 0 0 1px var(--brand-100); }
    .account-tenant .tenant-logo { height: 1.75rem; max-width: 6.5rem; }
    .account-tenant strong { font-size: var(--fs-base); }
    .account-tenant .tenant-switch { margin-left: auto; flex: none; font-size: var(--fs-sm); }

.cover-foot { margin: 0; text-align: center; color: var(--text-3); font-size: var(--fs-sm); }
.account-brand { display: none; }
.login-tabs .nav-link { font-size: var(--fs-sm); padding: 0.4rem 0.75rem; }

.sso-list { display: grid; gap: 0.5rem; }
.divider { display: flex; align-items: center; gap: 0.9rem; margin: 1.25rem 0; color: var(--text-3); font-size: var(--fs-sm); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

@media (max-width: 1023px) {
    .cover { grid-template-columns: 1fr; background: var(--bg); }
    .cover-aside { display: none; }
    .cover-main { place-items: start center; padding: 2.5rem 1.25rem 2rem; background: transparent; }
    .cover-main > .cover-form > .cover-brand { display: flex; }
    .account-card { padding: 1.75rem 1.5rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--shadow-3); }
}

@media (max-width: 560px) {
    .cover-main { padding: 1.5rem 1rem 2rem; }
    .account-card { padding: 1.5rem 1.25rem 1.25rem; }
}

/* ---------- Hata çubuğu ve yeniden bağlanma ---------- */
#blazor-error-ui {
    color-scheme: light only;
    display: none;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--danger-line);
    border-radius: var(--r-3);
    background: var(--danger-tint);
    color: #7A271A;
    box-shadow: var(--shadow-pop);
}

    #blazor-error-ui .reload { margin-left: 0.75rem; font-weight: 700; color: #7A271A; }
    #blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.9rem; top: 0.6rem; }

/* ---------- Erişilebilirlik ve hareket ---------- */
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    z-index: 100;
    padding: 0.5rem 0.9rem;
    background: var(--brand-600);
    color: #FFFFFF;
    border-radius: var(--r-2);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .alert-success > .ico :is(path, circle, polyline, line) { stroke-dashoffset: 0; }
}

/* ---------- Kurum kimliği ---------- */
.tenant-plate {
    display: grid;
    width: fit-content;
    place-items: center;
    padding: 0.6rem 0.9rem;
    min-width: 7rem;
    min-height: 3.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2);
}
    .tenant-plate img { max-height: 2.5rem; max-width: 12rem; object-fit: contain; }
    .tenant-plate.lg { min-width: 11rem; min-height: 5rem; }
    .tenant-plate.lg img { max-height: 3.75rem; max-width: 14rem; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.upload-btn { position: relative; overflow: hidden; }
    .upload-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.svg-swatch { padding: 0; overflow: hidden; background: none; }
    .svg-swatch svg { display: block; width: 100%; height: 100%; }
.accent-chip { width: 1.5rem; height: 1.5rem; flex: none; border-radius: var(--r-1); }
.brand-chip-preview { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
fieldset.panel { min-width: 0; margin: 0; }
fieldset.panel:disabled { opacity: 0.55; }

/* Seçim çipleri ve sıralı seçim listesi (belge şablonu) */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.875rem;
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 120ms var(--ease), border-color 120ms var(--ease);
}
    .chip .ico { width: 0.9rem; height: 0.9rem; }
    .chip:hover { border-color: #B3BCC9; color: var(--text); }
    .chip.on { border-color: var(--accent-tint-2); background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.pick-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
    .pick-list li { display: flex; align-items: center; gap: 0.6rem; min-height: 2.5rem; padding: 0.3rem 0.5rem 0.3rem 0.75rem; border-top: 1px solid var(--line-faint); }
    .pick-list li:first-child { border-top: 0; }
    .pick-list li.off label { color: var(--text-3); }
    .pick-list label { cursor: pointer; }
    .pick-list .form-check-input { margin: 0; flex: none; }

/* ---------- Belge önizleme (A4): PDF'in birebir benzeri, PDF'in yazı tipleriyle ---------- */
.sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 210 / 297;
    padding: 7% 8.5% 5%;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: var(--shadow-pop);
    font-family: "Archivo", var(--font-sans);
    font-size: 0.5625rem;
    line-height: 1.35;
    color: #1B1E22;
    overflow: hidden;
}
    .sheet.landscape { aspect-ratio: 297 / 210; }
    .sheet.mini { aspect-ratio: auto; min-height: 11rem; font-size: 0.6875rem; }
    .sheet .num { font-family: var(--font-mono); font-stretch: 85%; font-size: 0.84em; }
.sheet-mast { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.sheet-logo { display: block; height: 2.4em; max-width: 60%; object-fit: contain; object-position: left bottom; }
.sheet-org { font-weight: 650; font-size: 1.25em; }
.sheet-number { font-family: var(--font-mono); font-stretch: 82%; font-weight: 600; font-size: 1.1em; }
.sheet-small { font-size: 0.85em; color: #5E656E; }
.sheet-band { display: block; width: 100%; height: 0.35em; margin: 0.9em 0 1.4em; }
.sheet-label { font-family: var(--font-mono); font-stretch: 82%; font-size: 0.72em; letter-spacing: 0.06em; text-transform: uppercase; color: #5E656E; }
.sheet-heading { margin: 0.3em 0 0.2em; font-size: 2em; font-weight: 750; font-stretch: 90%; line-height: 1.08; letter-spacing: -0.01em; }
.sheet-subtitle { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.2em; color: #5E656E; }
.sheet-notice { margin: 0.9em 0 0; padding: 0.45em 0.7em; background: #EFEFEA; font-size: 0.85em; color: #4A5058; }
.sheet-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.2em; }
    .sheet-info > div { padding: 0.45em 0.4em 0.5em 0; border-bottom: 1px solid #C9CBC6; min-width: 0; overflow-wrap: anywhere; }
.sheet-head { margin: 1.5em 0 0.45em; padding-bottom: 0.3em; border-bottom: 1px solid #1B1E22; font-family: var(--font-mono); font-stretch: 82%; font-size: 0.75em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.sheet-prose { font-family: var(--font-serif); font-size: 1.15em; line-height: 1.3; overflow-wrap: anywhere; }
p.sheet-prose { margin: 0; }
.sheet-fields { display: grid; grid-template-columns: 34% 1fr; margin: 0; }
    .sheet-fields dt, .sheet-fields dd { margin: 0; padding: 0.35em 0; border-bottom: 1px solid #C9CBC6; overflow-wrap: anywhere; }
    .sheet-fields dt { color: #5E656E; font-weight: 400; font-size: 0.9em; }
.sheet-table { width: 100%; border-collapse: collapse; }
    .sheet-table th { font-family: var(--font-mono); font-stretch: 82%; font-weight: 400; font-size: 0.72em; letter-spacing: 0.06em; text-transform: uppercase; color: #5E656E; text-align: left; padding-bottom: 0.3em; }
    .sheet-table td { padding: 0.35em 0.4em 0.35em 0; border-top: 1px solid #C9CBC6; vertical-align: top; }
    .sheet-table .num { font-size: 0.85em; }
    .sheet-comment td { border-top: 0; padding-left: 0.8em; font-family: var(--font-serif); font-style: italic; color: #4A5058; }
.sheet-signatures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sheet-signatures > div { min-height: 4.4em; padding: 0.45em 0.6em; border: 1px solid #1B1E22; margin: 0 -1px -1px 0; min-width: 0; }
    .sheet-signatures > div.unsigned { border-style: dotted; border-color: #9EA3A9; }
    .sheet-signatures strong { margin: 0.35em 0 0.1em; font-weight: 650; }
.sheet-qr { display: grid; place-items: center; width: 4.6em; height: 4.6em; border: 1px dashed #5E656E; color: #5E656E; flex: none; align-self: flex-end; }
    .sheet-qr .ico { width: 2.4em; height: 2.4em; }
.sheet-code { font-family: var(--font-mono); font-stretch: 82%; font-size: 0.8em; }
.sheet-verify-note { margin: 1.4em 0 0; padding-top: 0.45em; border-top: 1px solid #C9CBC6; }
.sheet-foot { display: flex; justify-content: space-between; gap: 1em; margin-top: auto; padding-top: 0.5em; border-top: 1px solid #C9CBC6; font-size: 0.8em; color: #5E656E; }
    .sheet-foot .sheet-label { white-space: nowrap; flex: none; }
.sheet-subhead { display: block; margin: 0.9em 0 0.3em; font-weight: 650; }
.sheet-table.lines td, .sheet-table.lines th { padding-right: 0.5em; }
.sheet-table.lines tfoot td { border-top: 1px solid #1B1E22; padding-top: 0.35em; }

/* Alan adı ekranında firmaya bağlı e-posta alan adları */
.mail-domains > li { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line-faint); }
    .mail-domains > li:last-child { border-bottom: 0; }

/* Talep ayrıntısındaki arşiv belgesi */
.doc-archive {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
    transition: border-color 120ms var(--ease), background-color 120ms var(--ease);
}
    .doc-archive > .ico:first-child { color: var(--ok); }
    .doc-archive:hover { border-color: var(--accent-tint-2); background: var(--accent-tint); color: var(--text); text-decoration: none; }
    .doc-archive > .ico:last-child { margin-left: auto; color: var(--text-3); }

/* Belge doğrulama */
.verify-ok { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.9rem 1rem; margin: 0.5rem 0 1.25rem; border: 1px solid var(--ok-line); border-radius: var(--r-2); background: var(--ok-tint); color: #0F4D2F; }
    .verify-ok > .ico { color: var(--ok); flex: none; }
.verify-facts { display: grid; grid-template-columns: 9rem minmax(0, 1fr); margin: 0 0 1rem; }
    .verify-facts dt, .verify-facts dd { margin: 0; padding: 0.5rem 0; border-bottom: 1px solid var(--line-faint); }
    .verify-facts dt { font-size: var(--fs-sm); color: var(--text-3); font-weight: 500; }
    .verify-facts .hash { font-family: var(--font-code); font-size: 0.75rem; overflow-wrap: anywhere; line-height: 1.6; }

/* ---------- Satır kalemleri ---------- */
.line-items { display: grid; gap: 0.5rem; justify-items: start; overflow-x: auto; }
.table-lines { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
    .table-lines th { font-weight: 600; font-size: var(--fs-xs); color: var(--text-2); text-align: left; padding: 0.4rem 0.45rem; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
    .table-lines td { padding: 0.3rem 0.45rem; border-bottom: 1px solid var(--line-faint); vertical-align: middle; }
    .table-lines .idx { width: 2rem; color: var(--text-3); text-align: right; }
    .table-lines .num-col { text-align: right; }
    .table-lines .act { width: 2.5rem; text-align: right; }
    .table-lines tfoot td, .table-lines tfoot th { border-top: 1px solid var(--line); border-bottom: 0; background: transparent; font-weight: 600; padding-top: 0.5rem; }
    .table-lines .form-control { min-width: 6rem; }
    .table-lines.readonly td { padding: 0.45rem; }

/* DNS kayıtları: uzun ad ve doğrulama değeri sayfayı taşırmaz, hücre içinde kırılır (kopyalanan değer bozulmaz) */
.table-lines.dns { table-layout: fixed; }
    .table-lines.dns th:first-child { width: 4.25rem; }
    .table-lines.dns td { overflow-wrap: anywhere; user-select: all; font-family: var(--font-code); font-size: 0.75rem; }
    .table-lines.dns td:first-child { user-select: auto; }
.spec-table { overflow-x: auto; }

/* Tasarımcı: tablo sütunları, paralel adım */
.col-list { display: grid; gap: 0.4rem; }
.col-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto auto; gap: 0.5rem; align-items: center; }
.block.parallel { margin-left: 1.25rem; position: relative; }
    .block.parallel::before { content: ""; position: absolute; left: -0.8rem; top: -0.6rem; bottom: 50%; width: 0.6rem; border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); border-bottom-left-radius: 4px; }
.route-step.parallel { margin-left: 1rem; }
.cond { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; }

/* İş takvimi */
.holiday-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; }
    .holiday-add .grow { flex: 1 1 12rem; }
.holidays .date { min-width: 8.5rem; }
.trial { padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-2); }
    .trial strong { font-size: var(--fs-lg); margin: 0.2rem 0; }

@media (max-width: 640px) {
    .col-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cond { grid-template-columns: minmax(0, 1fr) auto; }
    .block.parallel { margin-left: 0.75rem; }
}

/* ==========================================================================
   Telefon ve dokunmatik ekran
   Onaylar telefondan da verilir. Tablolar kayıt kartına döner, dokunma hedefleri 44px olur, form alanları
   16px yazıyla açılır (iOS odaklanınca sayfayı büyütmesin), yapışkan eylemler alt çubuğun üstünde durur.
   ========================================================================== */

:root { --bottombar-h: 0px; }

/* Yalnızca telefonda görünen yönlendirme satırları (talep detayı) */
.req-jump, .req-where { display: none; }

@media (max-width: 1023px) {
    :root { --bottombar-h: calc(3.5rem + 1px + env(safe-area-inset-bottom)); }
    .shell { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
    .main { padding-bottom: calc(var(--bottombar-h) + 0.5rem); }
    .bottombar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
    .bottombar .pop-panel { bottom: calc(var(--bottombar-h) + 0.5rem); }
    .top-actions .person .name { display: none; }
    .inbox .preview, .req-side, .designer .map { top: 1rem; }

    /* Gönder çubuğu alt gezinmenin altında kalmasın. */
    .action-bar { bottom: var(--bottombar-h); margin: 0 -1rem; padding: 0.75rem 1rem; }
    .action-bar > .btn { flex: 1 1 auto; }

    .segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .segmented > button, .segmented > a { flex: none; }
}

@media (max-width: 860px) {
    /* iOS 16px altındaki alanda odaklanınca sayfayı yakınlaştırır. */
    .form-control, .form-select, .form-control-sm, .form-select-sm, textarea.form-control.prose-input,
    .input-group-sm > .form-control, .input-group-sm > .form-select { font-size: 1rem; }
}

@media (max-width: 720px) {
    .toolbar > .form-select, .toolbar > .form-control { max-width: none; flex: 1 1 100%; }
    .subnav, .tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); padding-right: 2rem; }

    /* Talep detayı: karar, talep bilgileri ve eklerin altına; başa tek dokunuşla karara inen şerit. */
    .req-jump, .req-where {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-height: 3.25rem;
        margin: -0.5rem 0 1.25rem;
        padding: 0.7rem 0.9rem;
        border-radius: var(--r-3);
        color: var(--text);
        text-decoration: none;
        line-height: 1.3;
    }
    .req-jump { background: var(--accent); color: #FFFFFF; box-shadow: var(--shadow-2); }
    .req-jump:hover { color: #FFFFFF; text-decoration: none; }
    .req-jump .small { color: rgba(255, 255, 255, 0.82); font-size: var(--fs-sm); }
    .req-where { background: var(--surface); border: 1px solid var(--line); }
    .req-where:hover { color: var(--text); text-decoration: none; }
    .req-where .ico { color: var(--accent); }
    .req-jump .grow, .req-where .grow { flex: 1; min-width: 0; }
    .req-where .small { color: var(--text-3); font-size: var(--fs-sm); }
    .req-jump .go { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
    .req-grid .req-info { order: 1; }
    .req-grid .req-files { order: 2; }
    .req-grid .decision { order: 3; }
    .req-grid .req-talk { order: 4; }
    #decision, #route { scroll-margin-top: calc(var(--topbar-h) + 1rem); }

    /* Tablo → kayıt kartı: başlık hücresi başa, diğerleri etiket üstünde değer olarak iki sütuna, işlemler en alta. */
    .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .table-stack, .table-stack tbody { display: block; width: 100%; }
    .table-stack tr {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.3rem 0.9rem;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--line);
    }
    .table-stack tbody tr:last-child { border-bottom: 0; }
    .table.table-stack > tbody > tr > td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        font-size: var(--fs-base);
    }
    .table.table-stack > tbody > tr > td[data-label] { display: inline-flex; align-items: baseline; gap: 0.3rem; font-size: var(--fs-sm); color: var(--text-2); }
    .table-stack td[data-label]::before {
        content: attr(data-label);
        font-size: var(--fs-xs);
        font-weight: 500;
        color: var(--text-3);
    }
    .table.table-stack > tbody > tr > .cell-title { flex-basis: 100%; order: -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; font-size: var(--fs-md); font-weight: 600; color: var(--text); }
    .table.table-stack > tbody > tr > .cell-title::before { display: none; }
    /* Dokunmatikte hover yok: kayıt kartının tamamı başlık bağlantısına gider, başlık bağlantı renginde */
    .table-stack tr { position: relative; }
    .table-stack .cell-title a:not(.btn) { color: var(--link); }
    .table-stack .cell-title a:not(.btn)::after { content: ""; position: absolute; inset: 0; }
    .table-stack .cell-actions { position: relative; z-index: 1; }
    .table-stack .cell-wide, .table-stack .cell-empty { flex-basis: 100%; }
    .table.table-stack > tbody > tr > .cell-actions { flex-basis: 100%; order: 99; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; }
    .table-stack .cell-actions:not(:has(*)) { display: none !important; }
    .table.table-stack > tbody > tr > td[data-label]:empty { display: none; }
    .table-stack .cell-actions form { display: contents; }
    .table-stack .cell-actions > div { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-start !important; }
    .table-stack tr.table-warning { background: var(--warn-tint); }
    .table-stack tr.table-danger { background: var(--danger-tint); }
    .table-stack .meter { min-width: 0; flex: 1; }
}

/* Telefonda günlük akış kendi ölçeğinde çizilir (bkz. Reports.razor). */
.chart-compact { display: none; }
.chart-compact .chart-plot { height: 11rem; }

@media (max-width: 720px) {
    .chart-wide { display: none; }
    .chart-compact { display: block; }
}

@media (max-width: 560px) {
    /* Dar üst çubukta yazılı düğme simgeye iner; ad ekran okuyucuda kalır. */
    .topbar .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Dokunmatik: hedefler en az 44px. Görünüm fareyle aynı kalır, yalnızca ölçüler büyür. */
@media (pointer: coarse) {
    .btn, .btn-sm { min-height: 2.75rem; min-width: 2.75rem; }
    .btn-sm { --bs-btn-padding-x: 0.85rem; }
    .form-control, .form-select, .form-control-sm, .form-select-sm { min-height: 2.75rem; }
    .segmented > button, .segmented > a { min-height: 2.5rem; padding-left: 0.9rem; padding-right: 0.9rem; }
    .menu-list a, .menu-list button { min-height: 2.75rem; }
    .content details > summary { min-height: 2.75rem; display: flex; align-items: center; }
    .icon-btn, .avatar-btn { height: 2.75rem; min-width: 2.75rem; }
    .chip { min-height: 2.75rem; padding-left: 0.9rem; padding-right: 0.9rem; }
    .icon-pick button { width: 2.75rem; height: 2.75rem; }
    .tabs button, .tabs a { min-height: 2.75rem; }
    .side-link, .side-sub a { min-height: 2.75rem; }

    .form-check { padding-left: 2.1rem; min-height: 1.75rem; }
    .form-check .form-check-input { width: 1.375rem; height: 1.375rem; margin-top: 0; margin-left: -2.1rem; }
    .form-check-input { width: 1.375rem; height: 1.375rem; }
    .form-check-label { padding: 0.1rem 0; }
    .form-switch { padding-left: 3.35rem; }
    .form-switch .form-check-input { width: 2.6rem; height: 1.45rem; margin-left: -3.35rem; }

    .page-head .back { min-height: 2.75rem; margin-bottom: 0; }
    .top-brand { min-height: 2.75rem; }
    .section-label .aside, .section-label a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: -0.75rem; margin-bottom: -0.75rem; }
    .panel-head .label a, .small > a:only-child { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- İK: özlük dosyası ---------- */
.docs .label, .history .label { display: block; }
.pick-list { display: grid; gap: 0.35rem; max-height: 15rem; overflow: auto; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.doc-panel { display: grid; gap: 0.9rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-2); }

/* Klavye kısayolları dokunmatik cihazda anlamsız. */
@media (hover: none) {
    .kbd-hint { display: none; }
}

@media print {
    .sidenav, .topbar, .subnav, .bottombar, .action-bar, .no-print { display: none !important; }
    .shell { display: block; background: #FFFFFF; }
    .main { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
    .content { padding: 0; max-width: none; }
    body { background: #FFFFFF; }
    .panel, .card, .rows { box-shadow: none; }
}
