/* =====================================================================
   Aurora arayüz katmanı — app.css'ten SONRA yüklenir.
   Yalnız görünüm ve gezinme deneyimini değiştirir; işlevler app.js'tedir.
   Bileşenler: tasarım belirteçleri, giriş ekranı, uygulama kabuğu,
   ikon rayı, komut paleti, mobil alt gezinme ve alttan açılan diyaloglar.
   ===================================================================== */

:root {
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e5e9f2;
    --surface: #ffffff;
    --canvas: #f5f7fb;
    --accent: #4f46e5;
    --accent-2: #0891b2;
    --accent-soft: #eef0ff;
    --accent-grad: linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #0891b2 100%);
    --forest: #4f46e5;
    --forest-2: #4338ca;
    --primary: #4f46e5;
    --success: #059669;
    --warn: #d97706;
    --danger: #e11d48;
    --radius: 16px;
    --radius-sm: 10px;
    --ring: 0 0 0 4px rgba(79, 70, 229, .14);
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .05);
    --shadow: 0 2px 6px rgba(15, 23, 42, .04), 0 18px 40px rgba(15, 23, 42, .08);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, .22);
    --sidebar-w: 268px;
    --rail-w: 78px;
    --topbar-h: 72px;
    --bottombar-h: 66px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body { color: var(--ink); }
.app-body h1, .app-body h2, .app-body h3 { letter-spacing: -.025em; }
::selection { background: rgba(79, 70, 229, .18); }

/* ---------------------------------------------------------------- Ortak kontroller */
input, select, textarea {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: #fff;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
input:hover, select:hover, textarea:hover { border-color: #c7cede; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { color: var(--ink-2); }

.btn { border-radius: 12px; font-weight: 650; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s, filter .15s; }
.btn-primary { color: #fff; background: var(--accent-grad); background-color: var(--accent); border: 0; box-shadow: 0 8px 20px rgba(79, 70, 229, .28); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 12px 26px rgba(79, 70, 229, .34); background-color: var(--accent); }
.btn-primary:active { transform: translateY(0) scale(.99); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-2); background: #fff; box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: #c7cede; background: #fbfcff; }
.mini-btn { border-radius: 9px; transition: background .15s, border-color .15s, color .15s; }
.text-btn { color: var(--accent); }
.eyebrow { color: var(--accent); letter-spacing: .14em; }
.badge { border-radius: 999px; font-weight: 700; }
code { background: var(--accent-soft); color: #3730a3; }

/* ================================================================ GİRİŞ EKRANI */
.auth-body:has(.aurora) { background: #0b1020; }

.auth-body .auth-shell.aurora {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr);
    background: #0b1020;
}
/* Hareketli aurora arka planı */
.auth-body .auth-shell.aurora::before,
.auth-body .auth-shell.aurora::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .75;
    pointer-events: none;
}
.auth-body .auth-shell.aurora::before {
    width: 62vmax; height: 62vmax; left: -18vmax; top: -24vmax;
    background: radial-gradient(circle at 30% 30%, #6366f1, transparent 60%), radial-gradient(circle at 70% 60%, #0891b2, transparent 55%);
    animation: aurora-a 22s var(--ease) infinite alternate;
}
.auth-body .auth-shell.aurora::after {
    width: 54vmax; height: 54vmax; right: -16vmax; bottom: -26vmax;
    background: radial-gradient(circle at 40% 40%, #a855f7, transparent 58%), radial-gradient(circle at 70% 30%, #22d3ee, transparent 50%);
    opacity: .55;
    animation: aurora-b 26s var(--ease) infinite alternate;
}
@keyframes aurora-a { to { transform: translate(8vmax, 6vmax) rotate(25deg) scale(1.08); } }
@keyframes aurora-b { to { transform: translate(-6vmax, -8vmax) rotate(-20deg) scale(1.12); } }

.auth-body .auth-shell.aurora .auth-story {
    position: relative;
    z-index: 1;
    padding: clamp(2.5rem, 6vw, 6rem);
    color: #e2e8f0;
    background: transparent;
}
.auth-body .auth-shell.aurora .auth-story::after {
    /* ince ızgara dokusu */
    content: "";
    position: absolute;
    inset: 0;
    width: auto; height: auto; right: 0; bottom: 0;
    border: 0; border-radius: 0; box-shadow: none;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
    z-index: -1;
}
.auth-body .auth-shell.aurora .brand-logo-surface-hero {
    width: auto;
    display: inline-flex;
    padding: .6rem 1rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
}
.auth-body .auth-shell.aurora .brand-logo-hero { max-height: 54px; width: auto; }
.auth-body .auth-shell.aurora .auth-story .eyebrow,
.auth-body .auth-shell.aurora .auth-story-content > .eyebrow {
    display: inline-flex; margin-top: 2rem; padding: .4rem .8rem;
    border: 1px solid rgba(165, 180, 252, .3); border-radius: 999px;
    color: #c7d2fe; background: rgba(99, 102, 241, .12); font-size: .68rem;
}
.auth-body .auth-shell.aurora .auth-story h1 {
    max-width: 16ch;
    margin: 1.3rem 0 1.2rem;
    font-size: clamp(2.4rem, 4.6vw, 4.6rem);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -.04em;
    color: #fff;
    background: linear-gradient(180deg, #ffffff 30%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-body .auth-shell.aurora .auth-lead { max-width: 62ch; color: #a5b4c8; font-size: clamp(.98rem, 1.2vw, 1.1rem); line-height: 1.7; }
.auth-body .auth-shell.aurora .auth-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
    max-width: 860px;
    margin-top: 2.5rem;
    background: transparent;
}
.auth-body .auth-shell.aurora .auth-points div {
    position: relative;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    backdrop-filter: blur(12px);
    transition: transform .25s var(--ease), border-color .25s;
}
.auth-body .auth-shell.aurora .auth-points div:hover { transform: translateY(-3px); border-color: rgba(165, 180, 252, .45); }
.auth-body .auth-shell.aurora .auth-points strong { color: #fff; font-size: 1rem; }
.auth-body .auth-shell.aurora .auth-points span { color: #94a3b8; font-size: .78rem; line-height: 1.45; }

.auth-body .auth-shell.aurora .login-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    background: transparent;
}
.auth-body .auth-shell.aurora .login-card-inner {
    width: 100%;
    max-width: 440px;
    padding: clamp(1.75rem, 3vw, 2.6rem);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 28px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 40px 100px rgba(2, 6, 23, .45), inset 0 1px 0 #fff;
    backdrop-filter: blur(24px);
    animation: card-in .6s var(--ease) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.login-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.auth-body .login-card-top .language-switch { position: static; margin: 0 0 0 auto; }
.auth-body .login-card-top .mobile-brand { display: none; margin: 0; }
.auth-body .auth-shell.aurora .login-card h2 { margin: .35rem 0 .4rem; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 750; letter-spacing: -.03em; }
.auth-body .auth-shell.aurora .login-card .muted { color: var(--muted); }
.auth-body .auth-shell.aurora .login-card-inner > .form-stack { gap: 1rem; margin-top: 1.6rem; }
.auth-body .auth-shell.aurora .login-card input:not([type="checkbox"]) { height: 3rem; padding: 0 .95rem; border-radius: 12px; background: #f8fafc; font-size: .95rem; }
.auth-body .auth-shell.aurora .login-card input:focus { background: #fff; }
.auth-body .auth-shell.aurora .login-card .btn-block { height: 3.1rem; margin-top: .3rem; border-radius: 12px; font-size: .95rem; }
.auth-body .auth-shell.aurora .login-card .btn-block span:last-child { transition: transform .2s var(--ease); }
.auth-body .auth-shell.aurora .login-card .btn-block:hover span:last-child { transform: translateX(4px); }

.password-field { position: relative; display: block; margin-top: .4rem; }
.password-field input { width: 100%; padding-right: 3rem !important; margin: 0; }
.password-toggle {
    position: absolute; top: 50%; right: .4rem; transform: translateY(-50%);
    display: grid; width: 2.3rem; height: 2.3rem; place-items: center;
    border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: .75rem; font-weight: 700;
}
.password-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.password-toggle svg { width: 18px; height: 18px; }
.caps-warning { margin: -.4rem 0 0; color: var(--warn); font-size: .75rem; font-weight: 650; }
.caps-warning::before { content: "⇪ "; }

.auth-body .auth-shell.aurora .security-note { margin-top: 1.1rem; color: var(--muted); font-size: .78rem; }
.auth-body .auth-shell.aurora .sso-note { padding: .8rem 1rem; border: 1px dashed var(--line); border-radius: 12px; background: #f8fafc; }
.auth-body .auth-shell.aurora .sso-note summary { cursor: pointer; color: var(--ink-2); font-weight: 650; }
.auth-body .auth-shell.aurora .sso-note .form-stack { margin-top: .8rem; }
.login-links { display: grid; gap: .35rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.auth-body .login-links .platform-login-link { margin: 0; color: var(--accent); font-size: .82rem; font-weight: 650; text-decoration: none; }
.auth-body .login-links .platform-login-link:hover { text-decoration: underline; }

@media (max-width: 960px) {
    .auth-body .auth-shell.aurora { display: flex; flex-direction: column; overflow-y: auto; height: auto; }
    .auth-body .auth-shell.aurora .auth-story { padding: 1.5rem 1.25rem .5rem; min-height: 0; }
    .auth-body .auth-shell.aurora .auth-story-content { max-width: 640px; margin: 0 auto; }
    .auth-body .auth-shell.aurora .brand-logo-surface-hero { display: none; }
    .auth-body .auth-shell.aurora .auth-story .eyebrow { margin-top: .5rem; }
    .auth-body .auth-shell.aurora .auth-story h1 { max-width: none; margin: .9rem 0 .6rem; font-size: clamp(1.75rem, 7vw, 2.6rem); }
    .auth-body .auth-shell.aurora.company-auth .auth-lead { display: none; }
    .auth-body .auth-shell.aurora .auth-points {
        display: flex; gap: .5rem; margin: 1rem -1.25rem 0; padding: 0 1.25rem .5rem;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    }
    .auth-body .auth-shell.aurora .auth-points::-webkit-scrollbar { display: none; }
    .auth-body .auth-shell.aurora .auth-points div { flex: 0 0 auto; padding: .55rem .85rem; border-radius: 999px; scroll-snap-align: start; }
    .auth-body .auth-shell.aurora .auth-points span { display: none; }
    .auth-body .auth-shell.aurora .auth-points strong { font-size: .82rem; }
    .auth-body .auth-shell.aurora .login-card { min-height: 0; padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); align-items: flex-start; }
    .auth-body .auth-shell.aurora .login-card-inner { max-width: 640px; border-radius: 24px; }
    .auth-body .login-card-top .mobile-brand { display: block; }
    .auth-body .login-card-top .brand-logo-mobile { max-height: 34px; width: auto; }
}
@media (max-width: 420px) {
    .auth-body .auth-shell.aurora .login-card-inner { padding: 1.4rem 1.15rem; border-radius: 22px; }
}

/* ================================================================ UYGULAMA KABUĞU */
.app-body {
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(99, 102, 241, .07), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(8, 145, 178, .06), transparent 60%),
        var(--canvas);
    background-attachment: fixed;
}

/* Kenar çubuğu: açık cam yüzey */
.app-body .sidebar {
    width: var(--sidebar-w);
    border-right: 1px solid rgba(226, 232, 240, .9);
    color: var(--ink-2);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(18px);
    transition: width .25s var(--ease), transform .25s var(--ease), box-shadow .25s;
}
.app-body .brand {
    position: relative;
    min-height: var(--topbar-h);
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.app-body .brand-logo-sidebar { max-height: 44px; width: auto; max-width: 170px; object-fit: contain; }
.rail-toggle {
    position: absolute; top: 50%; right: -13px; transform: translateY(-50%);
    display: grid; width: 26px; height: 26px; place-items: center;
    border: 1px solid var(--line); border-radius: 50%;
    color: var(--muted); background: #fff; box-shadow: var(--shadow-sm);
    font-size: .8rem; line-height: 1; z-index: 3;
    transition: transform .25s var(--ease), color .15s;
}
.rail-toggle:hover { color: var(--accent); }
.nav-rail .rail-toggle { transform: translateY(-50%) rotate(180deg); }

.app-body .nav-list { padding: .9rem .7rem 1.2rem; scrollbar-width: thin; scrollbar-color: #d6dbe6 transparent; }
.app-body .nav-label {
    display: flex; align-items: center; justify-content: space-between;
    margin: 1rem .55rem .3rem; padding: .3rem .25rem;
    border-radius: 7px;
    color: #94a3b8; font-size: .62rem; font-weight: 800; letter-spacing: .12em;
    cursor: pointer; user-select: none;
}
.app-body .nav-label:hover { color: var(--ink-2); }
.app-body .nav-label::after { content: "▾"; font-size: .7rem; transition: transform .2s var(--ease); }
.app-body .nav-label[aria-expanded="false"]::after { transform: rotate(-90deg); }
.nav-group { display: grid; gap: 2px; overflow: hidden; }
.nav-group[data-collapsed="true"] { display: none; }

.app-body .nav-item {
    position: relative;
    gap: .7rem;
    min-height: 40px;
    padding: .55rem .7rem;
    border-radius: 11px;
    color: #475569;
    font-size: .82rem;
    font-weight: 550;
    transition: background .15s, color .15s;
}
.app-body .nav-item:hover { color: var(--ink); background: rgba(79, 70, 229, .06); }
.app-body .nav-item.active { color: #312e81; background: var(--accent-soft); box-shadow: none; font-weight: 700; }
.app-body .nav-item.active::before {
    content: ""; position: absolute; left: -.7rem; top: 22%; bottom: 22%; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--accent-grad);
}
.app-body .nav-icon {
    width: 28px; height: 28px; flex: 0 0 28px;
    border-radius: 8px;
    color: var(--accent);
    background: rgba(79, 70, 229, .08);
    font-size: .85rem;
}
.app-body .nav-item.active .nav-icon { color: #fff; background: var(--accent-grad); }
.app-body .nav-item > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-body .sidebar-footer { border-top: 1px solid var(--line); padding: .8rem; }
.app-body .sidebar-account { border-radius: 12px; }
.app-body .sidebar-account:hover { background: rgba(79, 70, 229, .06); }
.app-body .user-avatar { border-radius: 11px; color: #fff; background: var(--accent-grad); }
.app-body .user-meta strong { color: var(--ink); }
.app-body .user-meta span { color: var(--muted); }

/* Ana içerik ve üst çubuk */
.app-body .main-content { margin-left: var(--sidebar-w); transition: margin-left .25s var(--ease); }
.app-body .topbar {
    min-height: var(--topbar-h);
    padding: .75rem clamp(1rem, 2.6vw, 2.5rem);
    border-bottom: 1px solid rgba(226, 232, 240, .7);
    background: rgba(245, 247, 251, .78);
    backdrop-filter: saturate(170%) blur(16px);
}
.app-body .topbar h1 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 750; }
.app-body .breadcrumb { color: #94a3b8; font-size: .68rem; font-weight: 600; }
.app-body .topbar-actions { gap: .75rem; }
.app-body .language-switch { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.app-body .language-switch button.active { color: #fff; background: var(--accent); }
.app-body .system-status { padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; }
.app-body .menu-toggle { width: 40px; height: 40px; border-radius: 11px; color: var(--accent); background: var(--accent-soft); font-size: 1.1rem; }

/* Komut paleti tetikleyicisi */
.cmdk-trigger {
    display: inline-flex; align-items: center; gap: .55rem;
    min-width: 230px; height: 40px; padding: 0 .55rem 0 .8rem;
    border: 1px solid var(--line); border-radius: 12px;
    color: var(--muted); background: #fff; box-shadow: var(--shadow-xs);
    font-size: .82rem; text-align: left;
    transition: border-color .15s, box-shadow .15s;
}
.cmdk-trigger:hover { border-color: #c7cede; box-shadow: var(--shadow-sm); }
.cmdk-trigger .cmdk-trigger-text { flex: 1; }
.cmdk-trigger kbd, .cmdk-hint kbd {
    padding: .12rem .4rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
    color: var(--muted); background: #f8fafc; font: 600 .66rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cmdk-trigger svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* Görünümler, kartlar, metrikler */
.app-body .view { padding: clamp(1rem, 2.6vw, 2.5rem); animation: view-in-modern .35s var(--ease); }
@keyframes view-in-modern { from { opacity: 0; transform: translateY(8px); } }
.app-body .card,
.app-body .metric-card,
.app-body .scope-grid article,
.app-body .risk-scale,
.app-body .plan-card {
    border: 1px solid rgba(226, 232, 240, .85);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.app-body .metric-card {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    padding: 1.1rem 1.2rem;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.app-body .metric-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent-grad); }
.app-body .metric-card:nth-child(4n+2)::before { background: linear-gradient(90deg, #059669, #34d399); }
.app-body .metric-card:nth-child(4n+3)::before { background: linear-gradient(90deg, #e11d48, #fb7185); }
.app-body .metric-card:nth-child(4n+4)::before { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.app-body .metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.app-body .metric-card strong { color: var(--ink); font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 750; letter-spacing: -.03em; }
.app-body .metric-label { color: var(--muted); font-size: .72rem; font-weight: 650; }
.app-body .metric-card small { color: var(--muted); }

.app-body .hero-card {
    border-radius: 22px;
    background:
        radial-gradient(600px 300px at 90% -20%, rgba(255,255,255,.22), transparent 60%),
        radial-gradient(500px 260px at 0% 120%, rgba(34, 211, 238, .35), transparent 60%),
        linear-gradient(120deg, #312e81, #4f46e5 50%, #0e7490);
    box-shadow: 0 20px 50px rgba(79, 70, 229, .25);
}
.app-body .hero-card h2 { font-weight: 750; letter-spacing: -.03em; color: #fff; }
.app-body .readiness { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }

.app-body .card-header, .app-body .table-toolbar { border-color: #eef1f6; }
.app-body .card-header h3 { font-weight: 700; }
.app-body .section-heading h2 { font-weight: 750; letter-spacing: -.03em; }

/* Tablolar */
.app-body th {
    position: sticky; top: 0; z-index: 1;
    color: #64748b; background: #f8fafc;
    font-size: .66rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
}
.app-body td { border-color: #f1f4f9; color: var(--ink-2); }
.app-body tbody tr { transition: background .12s; }
.app-body tbody tr:hover { background: #f8faff; }
.app-body .table-wrap { scrollbar-width: thin; }

/* Diyaloglar ve bildirimler */
.app-body dialog.modal:not(.satellite-dialog) { border-radius: 22px; box-shadow: var(--shadow-lg); }
.app-body dialog.modal::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(6px); }
.app-body .toast { border: 0; border-radius: 14px; background: #0f172a; box-shadow: 0 18px 40px rgba(15, 23, 42, .3); }
.app-body .password-alert { border-radius: 14px; }

/* ================================================================ İKON RAYI (masaüstü daraltılmış) */
@media (min-width: 821px) {
    .nav-rail .app-body .sidebar { width: var(--rail-w); }
    .nav-rail .app-body .main-content { margin-left: var(--rail-w); }
    .nav-rail .app-body .sidebar .nav-item { justify-content: center; padding: .55rem; }
    .nav-rail .app-body .sidebar .nav-item > span:last-child,
    .nav-rail .app-body .sidebar .user-meta,
    .nav-rail .app-body .sidebar .sidebar-footer form { display: none; }
    .nav-rail .app-body .sidebar .nav-label { justify-content: center; margin: .8rem .2rem .3rem; padding: 0; font-size: 0; height: 1px; background: var(--line); pointer-events: none; }
    .nav-rail .app-body .sidebar .nav-label::after { display: none; }
    .nav-rail .app-body .sidebar .nav-group[data-collapsed="true"] { display: grid; }
    .nav-rail .app-body .sidebar .brand { justify-content: center; padding: .9rem .4rem; }
    .nav-rail .app-body .sidebar .brand-logo-sidebar { max-width: 56px; max-height: 34px; }
    .nav-rail .app-body .sidebar .sidebar-account { justify-content: center; }
    .nav-rail .app-body .sidebar .nav-item.active::before { left: -.7rem; }
    /* Fareyle üzerine gelince geçici olarak genişler */
    .nav-rail .app-body .sidebar:hover { width: var(--sidebar-w); box-shadow: 24px 0 60px rgba(15, 23, 42, .12); }
    .nav-rail .app-body .sidebar:hover .nav-item { justify-content: flex-start; padding: .55rem .7rem; }
    .nav-rail .app-body .sidebar:hover .nav-item > span:last-child,
    .nav-rail .app-body .sidebar:hover .user-meta { display: block; }
    .nav-rail .app-body .sidebar:hover .sidebar-footer form { display: block; }
    .nav-rail .app-body .sidebar:hover .nav-label { justify-content: space-between; margin: 1rem .55rem .3rem; padding: .3rem .25rem; height: auto; font-size: .62rem; background: transparent; pointer-events: auto; }
    .nav-rail .app-body .sidebar:hover .nav-label::after { display: inline; }
    .nav-rail .app-body .sidebar:hover .nav-group[data-collapsed="true"] { display: none; }
    .nav-rail .app-body .sidebar:hover .brand-logo-sidebar { max-width: 170px; max-height: 44px; }
}

/* ================================================================ KOMUT PALETİ */
.cmdk {
    width: min(640px, calc(100vw - 1.5rem));
    max-height: min(560px, calc(100dvh - 4rem));
    margin: 10vh auto auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 20px;
    color: var(--ink);
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow-lg);
}
.cmdk[open] { display: flex; flex-direction: column; animation: cmdk-in .18s var(--ease); }
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.cmdk::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(5px); }
.cmdk-search { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.cmdk-search svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 20px; }
.cmdk-search input { flex: 1; height: 2.4rem; border: 0; padding: 0; background: transparent; box-shadow: none; font-size: 1.02rem; }
.cmdk-search input:focus { box-shadow: none; }
.cmdk-list { flex: 1; overflow-y: auto; padding: .5rem; overscroll-behavior: contain; }
.cmdk-section { margin: .6rem .7rem .3rem; color: #94a3b8; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cmdk-item {
    display: flex; width: 100%; align-items: center; gap: .75rem;
    padding: .6rem .7rem; border: 0; border-radius: 12px;
    color: var(--ink-2); background: transparent; font-size: .88rem; text-align: left;
}
.cmdk-item .cmdk-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-size: .85rem; }
.cmdk-item .cmdk-meta { margin-left: auto; color: #94a3b8; font-size: .72rem; }
.cmdk-item mark { color: var(--accent); background: transparent; font-weight: 800; }
.cmdk-item[aria-selected="true"] { color: var(--ink); background: var(--accent-soft); }
.cmdk-item[aria-selected="true"] .cmdk-icon { color: #fff; background: var(--accent-grad); }
.cmdk-empty { padding: 2rem 1rem; color: var(--muted); text-align: center; font-size: .88rem; }
.cmdk-hint { display: flex; flex-wrap: wrap; gap: 1rem; padding: .65rem 1.1rem; border-top: 1px solid var(--line); color: var(--muted); background: #f8fafc; font-size: .72rem; }

/* ================================================================ MOBİL */
.bottom-bar, .drawer-backdrop { display: none; }

@media (max-width: 820px) {
    .app-body .main-content { margin-left: 0; padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom)); }
    .app-body .sidebar { width: min(86vw, 320px); box-shadow: none; background: rgba(255,255,255,.98); }
    .app-body .sidebar.open { box-shadow: 30px 0 80px rgba(15, 23, 42, .25); }
    .rail-toggle { display: none; }
    .drawer-backdrop {
        display: block; position: fixed; inset: 0; z-index: 19;
        background: rgba(15, 23, 42, .4); backdrop-filter: blur(3px);
        opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
    }
    .drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
    .drawer-open { overflow: hidden; }

    .app-body .topbar { min-height: 60px; gap: .6rem; padding: .55rem .9rem; }
    .app-body .topbar > div:nth-child(2) { min-width: 0; flex: 1; }
    .app-body .topbar h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; }
    .app-body .breadcrumb, .app-body .system-status, .app-body .topbar-actions > .btn { display: none; }
    .app-body .menu-toggle { display: none; }
    .cmdk-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
    .cmdk-trigger .cmdk-trigger-text, .cmdk-trigger kbd { display: none; }

    .app-body .view { padding: 1rem .85rem 1.5rem; }
    .app-body .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .app-body .metric-card { min-height: 98px; padding: .85rem .9rem; }
    .app-body .metric-card strong { font-size: 1.45rem; }
    .app-body .hero-card { flex-direction: column; align-items: flex-start; gap: 1rem; min-height: 0; padding: 1.3rem; border-radius: 18px; }
    .app-body .readiness { width: 96px; min-width: 96px; height: 96px; }
    .app-body .section-heading { flex-direction: column; align-items: stretch; gap: .75rem; }
    .app-body .section-heading .row-actions { flex-wrap: wrap; }
    .app-body .card, .app-body .metric-card { border-radius: 14px; }

    /* Tablolar yatay kaydırılır; ilk sütun sabit kalır */
    .app-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
    .app-body .table-wrap td:first-child, .app-body .table-wrap th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 #eef1f6; }
    .app-body .table-wrap th:first-child { z-index: 2; background: #f8fafc; }

    /* Diyaloglar alttan açılan sayfa olur */
    html body.app-body dialog.modal:not(.satellite-dialog),
    html body.app-body dialog.modal {
        width: 100vw; max-width: 100vw;
        max-height: 92dvh;
        margin: auto 0 0 0;
        border-radius: 22px 22px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
        animation: sheet-up .28s var(--ease);
    }
    html body.app-body dialog.modal::before {
        content: ""; display: block; width: 42px; height: 5px; margin: .55rem auto 0;
        border-radius: 99px; background: #cbd5e1;
    }
    @keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
    .app-body .form-grid { grid-template-columns: 1fr; }
    .app-body .form-grid > .span-2 { grid-column: 1; }

    /* Alt sekme çubuğu */
    .bottom-bar {
        position: fixed; z-index: 18; left: .6rem; right: .6rem;
        bottom: calc(.6rem + env(safe-area-inset-bottom));
        display: grid; grid-template-columns: repeat(4, 1fr);
        height: var(--bottombar-h);
        padding: .35rem;
        border: 1px solid rgba(226, 232, 240, .9);
        border-radius: 22px;
        background: rgba(255, 255, 255, .9);
        backdrop-filter: saturate(170%) blur(18px);
        box-shadow: 0 14px 40px rgba(15, 23, 42, .16);
    }
    .bottom-bar button {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
        border: 0; border-radius: 16px; color: #64748b; background: transparent;
        font-size: .64rem; font-weight: 700;
    }
    .bottom-bar button svg { width: 22px; height: 22px; }
    .bottom-bar button[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
    .app-body .toast-region { bottom: calc(var(--bottombar-h) + 1.4rem + env(safe-area-inset-bottom)); }

    .cmdk { width: 100vw; max-width: 100vw; max-height: 88dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
    .cmdk-hint { display: none; }
}

@media (max-width: 380px) {
    .app-body .metric-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-body .auth-shell::before, .auth-body .auth-shell::after { animation: none !important; }
    .app-body .metric-card:hover, .auth-body .auth-points div:hover { transform: none; }
}

/* Giriş: son güncellemeler (IATF 16949:2016 ve diğerleri) */
.auth-updates {
    max-width: 860px;
    margin-top: 1.75rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(165, 180, 252, .22);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(99, 102, 241, .16), rgba(8, 145, 178, .08));
    backdrop-filter: blur(14px);
}
.auth-updates-title { display: flex; align-items: center; gap: .55rem; margin: 0 0 .85rem; color: #fff; font-size: .92rem; font-weight: 750; }
.auth-updates-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse-dot 2.2s infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.auth-updates ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.auth-updates li { position: relative; display: grid; gap: .15rem; padding-left: 1.05rem; }
.auth-updates li::before { content: ""; position: absolute; left: 0; top: .42rem; width: 6px; height: 6px; border-radius: 2px; background: linear-gradient(135deg, #a5b4fc, #22d3ee); }
.auth-updates li strong { color: #e0e7ff; font-size: .8rem; }
.auth-updates li span { color: #94a3b8; font-size: .74rem; line-height: 1.45; }
@media (min-width: 961px) and (max-height: 860px) {
    .auth-body .auth-shell.aurora .auth-story { padding-top: 2rem; padding-bottom: 2rem; }
    .auth-body .auth-shell.aurora .auth-story h1 { font-size: clamp(2rem, 3.6vw, 3.4rem); margin: 1rem 0 .8rem; }
    .auth-body .auth-shell.aurora.company-auth .auth-lead { display: none; }
    .auth-body .auth-shell.aurora .auth-points { margin-top: 1.25rem; }
    .auth-body .auth-shell.aurora .auth-points span { display: none; }
    .auth-updates { margin-top: 1rem; }
}
@media (max-width: 1180px) { .auth-updates ul { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
    .auth-updates { margin-top: .9rem; padding: .9rem 1rem; border-radius: 16px; }
    .auth-updates-title { margin-bottom: .55rem; font-size: .82rem; }
    .auth-updates li span { display: none; }
    .auth-updates ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .8rem; }
}
@media (prefers-reduced-motion: reduce) { .auth-updates-dot { animation: none; } }
/* Düzeltmeler: palet arama alanı ve zemin, grafik renkleri */
.cmdk { background: #fff; }
.cmdk .cmdk-search input,
.cmdk .cmdk-search input:hover,
.cmdk .cmdk-search input:focus { border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important; min-height: 0; }
.app-body .bar { background: #6366f1; border-radius: 6px 6px 2px 2px; }
.app-body .bar.scope-2 { background: #22d3ee; }
.app-body .bar.scope-3 { background: #a78bfa; }
@media (min-width: 821px) { .nav-rail .app-body .sidebar:not(:hover) .brand-logo-sidebar { width: 44px; height: auto; max-width: 44px; object-fit: contain; } .nav-rail .app-body .sidebar:not(:hover) .brand { overflow: visible; } }

/* Mobil ince ayarlar */
.app-body .readiness span { font-family: inherit; font-weight: 750; letter-spacing: -.03em; }
html body.app-body dialog.modal { background: #fff; }
@media (max-width: 820px) {
    .app-body .password-alert { flex-direction: column; align-items: flex-start; gap: .25rem; }
    .app-body .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-body .metric-card::after { display: none; }
}
@media (max-width: 380px) { .app-body .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 330px) { .app-body .metric-grid { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .auth-body .auth-shell.aurora .auth-story { display: block !important; flex: 0 0 auto; } .auth-body .auth-shell.aurora .login-card { flex: 1 0 auto; } .auth-body .login-card-top .mobile-brand { padding: .35rem .6rem; border-radius: 12px; background: #0f172a; } }

@media (max-width: 960px) { .auth-body .login-card-top .mobile-brand { display: inline-flex !important; width: auto; flex: 0 0 auto; } .auth-body .login-card-top .brand-logo-mobile { width: auto; max-width: 120px; max-height: 30px; } }

/* Giriş: masaüstünde içerik kesilmesin, kart opak olsun */
.auth-body:has(.aurora) { height: auto; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; }
.auth-body .auth-shell.aurora { height: auto !important; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.auth-body .auth-shell.aurora .auth-story { justify-content: center; }
.auth-body .auth-shell.aurora .login-card { overflow: visible; align-self: stretch; }
.auth-body .auth-shell.aurora .login-card-inner { background: #fff; backdrop-filter: none; }
@media (min-width: 961px) {
    .auth-body .auth-shell.aurora .auth-story { padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 5vw, 5rem); }
    .auth-body .auth-shell.aurora .auth-story h1 { max-width: 18ch; font-size: clamp(2.2rem, 3.6vw, 3.6rem); margin: 1rem 0 .9rem; }
    .auth-body .auth-shell.aurora .auth-lead { font-size: .98rem; line-height: 1.6; }
    .auth-body .auth-shell.aurora .auth-points { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .6rem; margin-top: 1.5rem; }
    .auth-body .auth-shell.aurora .auth-points div { padding: .8rem .85rem; }
    .auth-body .auth-shell.aurora .auth-points strong { font-size: .9rem; }
    .auth-body .auth-shell.aurora .auth-points span { font-size: .72rem; }
    .auth-body .auth-shell.aurora .auth-story .eyebrow { margin-top: 1.4rem; }
}
@media (min-width: 961px) and (max-width: 1280px) {
    .auth-body .auth-shell.aurora .auth-points { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 961px) and (max-height: 980px) { .auth-body .auth-shell.aurora.company-auth .auth-lead { display: none; } }

/* =====================================================================
   Giriş: masaüstünde tek ekrana sığar, kaydırma çubuğu yok.
   Boşluk ve yazı boyutları ekran yüksekliğiyle (vh) ölçeklenir; kısa
   ekranlarda ikincil açıklamalar kademeli olarak gizlenir.
   ===================================================================== */
@media (min-width: 961px) {
    html:has(.auth-fit), .auth-body:has(.auth-fit) { height: 100vh; height: 100dvh; overflow: hidden; }
    .auth-body .auth-shell.aurora.auth-fit { height: 100vh !important; height: 100dvh !important; min-height: 0; overflow: hidden; }
    .auth-body .auth-shell.aurora.auth-fit .auth-story { min-height: 0; padding: clamp(1rem, 4vh, 3.5rem) clamp(2rem, 4.5vw, 5rem); overflow: hidden; }
    .auth-body .auth-shell.aurora.auth-fit .brand-logo-hero { max-height: clamp(34px, 5.5vh, 54px); }
    .auth-body .auth-shell.aurora.auth-fit .brand-logo-surface-hero { padding: clamp(.35rem, .9vh, .6rem) .9rem; }
    .auth-body .auth-shell.aurora.auth-fit .auth-story .eyebrow { margin-top: clamp(.6rem, 2vh, 1.4rem); }
    .auth-body .auth-shell.aurora.auth-fit .auth-story h1 { margin: clamp(.5rem, 1.8vh, 1rem) 0 clamp(.4rem, 1.4vh, .9rem); font-size: clamp(1.8rem, min(3.4vw, 6vh), 3.6rem); }
    .auth-body .auth-shell.aurora.auth-fit .auth-points { margin-top: clamp(.6rem, 2vh, 1.5rem); }
    .auth-body .auth-shell.aurora.auth-fit .auth-points div { padding: clamp(.5rem, 1.3vh, .85rem) .8rem; }
    .auth-body .auth-shell.aurora.auth-fit .auth-updates { margin-top: clamp(.6rem, 2vh, 1.5rem); padding: clamp(.65rem, 1.7vh, 1.15rem) 1.1rem; }
    .auth-body .auth-shell.aurora.auth-fit .auth-updates-title { margin-bottom: clamp(.4rem, 1.2vh, .85rem); }
    .auth-body .auth-shell.aurora.auth-fit .auth-updates ul { gap: clamp(.35rem, 1vh, .65rem) 1.2rem; }

    .auth-body .auth-shell.aurora.auth-fit .login-card { min-height: 0; padding: clamp(.75rem, 3vh, 3rem) clamp(1.25rem, 3vw, 3.5rem); overflow: hidden; }
    .auth-body .auth-shell.aurora.auth-fit .login-card-inner { padding: clamp(1rem, 3.2vh, 2.5rem) clamp(1.25rem, 2.4vw, 2.5rem); }
    .auth-body .auth-shell.aurora.auth-fit .login-card-top { margin-bottom: clamp(.6rem, 2.2vh, 1.6rem); }
    .auth-body .auth-shell.aurora.auth-fit .login-card h2 { margin: .2rem 0 .3rem; font-size: clamp(1.35rem, 3.4vh, 2rem); }
    .auth-body .auth-shell.aurora.auth-fit .login-card-inner > .form-stack { gap: clamp(.55rem, 1.6vh, 1rem); margin-top: clamp(.7rem, 2.2vh, 1.6rem); }
    .auth-body .auth-shell.aurora.auth-fit .login-card input:not([type="checkbox"]) { height: clamp(2.4rem, 5.2vh, 3rem); }
    .auth-body .auth-shell.aurora.auth-fit .login-card .btn-block { height: clamp(2.5rem, 5.4vh, 3.1rem); }
    .auth-body .auth-shell.aurora.auth-fit .security-note { margin-top: clamp(.5rem, 1.6vh, 1.1rem); }
    .auth-body .auth-shell.aurora.auth-fit .login-links { margin-top: clamp(.5rem, 1.6vh, 1.1rem); padding-top: clamp(.5rem, 1.6vh, 1.1rem); }
}
/* Kısa ekranlar: önce modül açıklamaları, sonra güncelleme ayrıntıları gizlenir */
@media (min-width: 961px) and (max-height: 860px) {
    .auth-body .auth-shell.aurora.auth-fit .auth-points span { display: none; }
}
@media (min-width: 961px) and (max-height: 780px) {
    .auth-body .auth-shell.aurora.auth-fit .auth-updates li span { display: none; }
    .auth-body .auth-shell.aurora.auth-fit .auth-updates ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .auth-body .auth-shell.aurora.auth-fit .login-card .muted { display: none; }
}
@media (min-width: 961px) and (max-height: 660px) {
    .auth-body .auth-shell.aurora.auth-fit .security-note:not(.sso-note) { display: none; }
    .auth-body .auth-shell.aurora.auth-fit .auth-points { display: none; }
}
@media (min-width: 961px) and (max-width: 1180px) and (max-height: 780px) {
    .auth-body .auth-shell.aurora.auth-fit .auth-updates ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 961px) { .auth-body .auth-shell.aurora.auth-fit .sso-note[open] ~ .security-note { display: none; } }
@media (min-width: 961px) and (max-height: 700px) { .auth-body .auth-shell.aurora.auth-fit .sso-note[open] ~ .login-links { display: none; } }

/* =====================================================================
   BİLGİ MERKEZİ (aurora, uzun sayfa): sol bölüm sabit, sağda form kartı
   ===================================================================== */
.auth-body .auth-shell.aurora.knowledge-center-shell { overflow: clip; height: auto !important; align-items: start; }
@media (min-width: 961px) {
    .auth-body:has(.knowledge-center-shell) { height: auto; overflow-y: auto; }
    .auth-body .auth-shell.aurora.knowledge-center-shell { grid-template-columns: minmax(0, 1fr) minmax(500px, 1fr); }
    .auth-body .auth-shell.aurora.knowledge-center-shell > .auth-story {
        position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 0;
        overflow-y: auto; scrollbar-width: none;
        padding: clamp(1.5rem, 4vh, 3.5rem) clamp(2rem, 4.5vw, 4.5rem);
        /* İçerik ekrandan uzunsa ortalama üstü (logoyu) keser; auto kenar boşluğu yer varken yine ortalar */
        justify-content: flex-start;
    }
    .auth-body .auth-shell.aurora.knowledge-center-shell > .auth-story > .auth-story-content { margin-top: auto; margin-bottom: auto; }
    .auth-body .auth-shell.aurora.knowledge-center-shell > .auth-story::-webkit-scrollbar { display: none; }
    .auth-body .auth-shell.aurora.knowledge-center-shell > .login-card { min-height: 100vh; padding: clamp(1.5rem, 4vh, 3rem) clamp(1.25rem, 3vw, 3rem); align-items: flex-start; }
    .auth-body .auth-shell.aurora.knowledge-center-shell .login-card-inner { max-width: 620px; }
    .auth-body .auth-shell.aurora.knowledge-center-shell .auth-story h1 { font-size: clamp(2rem, 3.4vw, 3.4rem); }
}
.auth-body .auth-shell.aurora .auth-story .activity-list { display: grid; gap: .6rem; min-height: 0; margin-top: 1.4rem; padding: 0; border: 0; background: transparent; }
.auth-body .auth-shell.aurora .auth-story .activity-item {
    display: grid; gap: .2rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
    background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.auth-body .auth-shell.aurora .auth-story .activity-item strong { color: #fff; font-size: .88rem; }
.auth-body .auth-shell.aurora .auth-story .activity-item small { color: #94a3b8; font-size: .78rem; line-height: 1.5; }
.auth-body .auth-shell.aurora .auth-story .glossary { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; color: #cbd5e1; background: rgba(255,255,255,.04); }
.auth-body .auth-shell.aurora .auth-story .glossary summary { cursor: pointer; color: #fff; }
.auth-body .auth-shell.aurora .auth-story .glossary dt { color: #c7d2fe; font-weight: 700; }
.auth-body .auth-shell.aurora .auth-story .glossary dd { margin: 0 0 .4rem; color: #94a3b8; }
.auth-body .auth-shell.aurora .auth-story .legal-notice { margin-top: 1rem; color: #7c8aa5; font-size: .72rem; line-height: 1.55; }
.auth-body .auth-shell.aurora .auth-story .btn-ghost { margin-top: .8rem; border-color: rgba(255,255,255,.2); color: #e2e8f0; background: rgba(255,255,255,.06); }
.auth-body .auth-shell.aurora .auth-story .btn-ghost:hover { background: rgba(255,255,255,.12); }
.auth-body .auth-shell.aurora .auth-story .auth-lead + .auth-lead { margin-top: .6rem; font-size: .88rem; }
.auth-body .auth-shell.aurora .login-card-inner > .form-stack select { height: 2.75rem; padding: 0 .8rem; border-radius: 12px; background-color: #f8fafc; }
.auth-body .auth-shell.aurora .login-card-inner > .form-stack label { font-size: .84rem; font-weight: 600; line-height: 1.4; }
.auth-body .auth-shell.aurora .login-card-inner #knowledge-assessment-result { margin-top: 1rem; }
.auth-body .auth-shell.aurora .login-card-inner .info-banner { margin-top: 1rem; }
@media (max-width: 960px) {
    .auth-body .auth-shell.aurora .auth-story .activity-list, .auth-body .auth-shell.aurora .auth-story .glossary { display: none; }
    .auth-body .auth-shell.aurora .auth-story .legal-notice { display: none; }
    .auth-body .auth-shell.aurora .auth-story .btn-ghost { display: none; }
}

/* =====================================================================
   PLATFORM PANELİ: firma uygulamasıyla aynı kabuk
   ===================================================================== */
.app-body .platform-view { padding: clamp(1rem, 2.6vw, 2.5rem); animation: view-in-modern .35s var(--ease); }
.app-body .platform-hero {
    border-radius: 22px; color: #fff;
    background:
        radial-gradient(600px 300px at 90% -20%, rgba(255,255,255,.22), transparent 60%),
        radial-gradient(500px 260px at 0% 120%, rgba(34, 211, 238, .35), transparent 60%),
        linear-gradient(120deg, #312e81, #4f46e5 50%, #0e7490);
    box-shadow: 0 20px 50px rgba(79, 70, 229, .25);
}
.app-body .platform-hero h2 { color: #fff; font-weight: 750; letter-spacing: -.03em; font-family: inherit; }
.app-body .platform-pulse { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); }
.app-body .btn-platform { color: #fff; border: 0; background: var(--accent-grad); box-shadow: 0 8px 20px rgba(79, 70, 229, .28); }
.app-body .plan-card { border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.app-body .plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
@media (max-width: 820px) {
    .app-body .platform-view { padding: 1rem .85rem 1.5rem; }
    .app-body .platform-main { margin-left: 0; }
}

/* =====================================================================
   İÇ SAYFA BİLEŞENLERİ
   ===================================================================== */
/* Sayfa başlığı: ikonlu, kart görünümlü başlık alanı */
.app-body .view > .section-heading:first-child,
.app-body .view [data-kalite-root] > .section-heading:first-child,
.app-body .platform-view > .section-heading:first-child {
    position: relative;
    overflow: hidden;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.1rem, 2.2vw, 1.8rem);
    border: 1px solid rgba(226, 232, 240, .85);
    border-radius: 20px;
    background:
        radial-gradient(520px 200px at 100% 0%, rgba(99, 102, 241, .09), transparent 70%),
        radial-gradient(380px 160px at 0% 120%, rgba(8, 145, 178, .07), transparent 70%),
        #fff;
    box-shadow: var(--shadow-sm);
}
.app-body .section-heading > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.app-body .section-heading h2 { margin: .15rem 0 .3rem; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 760; letter-spacing: -.03em; color: var(--ink); }
.app-body .section-heading p:not(.eyebrow) { max-width: 78ch; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.app-body .section-heading .eyebrow { margin: 0; font-size: .64rem; font-weight: 800; }
.app-body .section-heading > .row-actions,
.app-body .section-heading > .btn,
.app-body .section-heading > div:last-child:not(:first-child):not(.page-title-block) { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; align-items: center; }
.page-icon {
    display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center;
    border-radius: 16px; color: #fff; background: var(--accent-grad);
    box-shadow: 0 10px 24px rgba(79, 70, 229, .28); font-size: 1.25rem;
}
.app-body .section-heading:has(> .page-icon) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
/* Üst çubuk: sayfa kendi başlığını gösteriyorsa üstte yalnız iz yolu kalır */
.app-body:has(.view.active > .section-heading:first-child, .view.active [data-kalite-root] > .section-heading:first-child, .platform-view.active > .section-heading:first-child) .topbar h1 { font-size: 1rem; color: var(--ink-2); }

/* Düğmeler */
.app-body .mini-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    min-height: 32px; padding: .35rem .75rem;
    border: 1px solid var(--line); border-radius: 10px;
    color: var(--ink-2); background: #fff; box-shadow: var(--shadow-xs);
    font-size: .76rem; font-weight: 650; white-space: nowrap;
}
.app-body .mini-btn:hover { border-color: rgba(79, 70, 229, .45); color: var(--accent); background: var(--accent-soft); }
.app-body .mini-btn.danger, .app-body .mini-btn[data-danger] { color: var(--danger); }
.app-body .mini-btn.danger:hover { border-color: rgba(225, 29, 72, .4); background: #fff1f2; }
.app-body .btn { min-height: 40px; }
.app-body .row-actions { gap: .4rem; }

/* Rozetler: yumuşak renk + durum noktası */
.app-body .badge { display: inline-flex; align-items: center; gap: .35rem; padding: .26rem .6rem; border: 0; font-size: .66rem; font-weight: 750; letter-spacing: .01em; }
.app-body .badge::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.app-body .badge.low { color: #047857; background: #ecfdf5; }
.app-body .badge.medium { color: #b45309; background: #fffbeb; }
.app-body .badge.high { color: #be123c; background: #fff1f2; }

/* Tablo kartı ve araç çubuğu */
.app-body .table-card { overflow: hidden; }
.app-body .table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid #eef1f6; background: linear-gradient(180deg, #fff, #fbfcff); }
.app-body .table-toolbar h3 { margin: 0; font-size: 1rem; }
.app-body .table-search { flex: 1 1 260px; max-width: 420px; height: 38px; padding: 0 .9rem 0 2.2rem; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.app-body .table-search:focus { background: #fff; }
.app-body .table-toolbar .muted { margin-left: auto; padding: .25rem .65rem; border-radius: 999px; color: var(--muted); background: #f1f5f9; font-size: .72rem; font-weight: 650; }
.app-body .table-wrap table { border-collapse: separate; border-spacing: 0; }
.app-body .table-wrap td, .app-body .table-wrap th { padding-top: .8rem; padding-bottom: .8rem; }
.app-body td strong { color: var(--ink); }
.app-body td small { color: var(--muted); }
.app-body td.empty-state, .app-body .empty-state { padding: 2.5rem 1rem; color: var(--muted); text-align: center; font-size: .85rem; }
.app-body td.empty-state::before, .app-body p.empty-state::before { content: "◌"; display: block; margin-bottom: .35rem; color: #c7cede; font-size: 1.6rem; line-height: 1; }

/* Kart başlığı, liste, bilgi bandı */
.app-body .card-header { padding: 1.1rem 1.3rem; }
.app-body .card-header .eyebrow { margin: 0 0 .2rem; font-size: .62rem; }
.app-body .card-header h3 { color: var(--ink); font-size: 1rem; }
.app-body .activity-item { padding: .85rem 1.3rem; transition: background .12s; }
.app-body .activity-item:hover { background: #f8faff; }
.app-body .info-banner {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .5rem;
    padding: .85rem 1rem .85rem 1.1rem;
    border: 1px solid #e0e7ff; border-left: 4px solid var(--accent); border-radius: 14px;
    color: var(--ink-2); background: linear-gradient(90deg, #eef2ff, #f8faff);
    font-size: .84rem; line-height: 1.55;
}
.app-body .info-banner strong { color: #3730a3; }
.app-body .password-alert { border: 1px solid #fde68a; color: #92400e; background: linear-gradient(90deg, #fffbeb, #fff); box-shadow: var(--shadow-xs); }
.app-body .password-alert strong { color: #78350f; }

/* Formlar (sayfa içi ve diyaloglar) */
.app-body .form-grid label, .app-body .form-stack label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.app-body .form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.app-body .form-grid select,
.app-body .form-stack input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.app-body .form-stack select { min-height: 2.6rem; border-radius: 10px; }
.app-body .form-grid textarea, .app-body .form-stack textarea { border-radius: 10px; }
.app-body dialog.modal .form-actions {
    position: sticky; bottom: 0; z-index: 2;
    margin: .5rem -1.6rem 0; padding: .9rem 1.6rem;
    border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
}
.app-body dialog.modal:not(.satellite-dialog) > .modal-header { background: radial-gradient(500px 160px at 100% 0%, rgba(99, 102, 241, .1), transparent 70%), #fff; }
.app-body .form-message.show { border-radius: 10px; }

/* Yasal not (sayfa altı) */
.app-body .legal-notice {
    margin: 0 clamp(1rem, 2.6vw, 2.5rem) 1.5rem; padding: .9rem 1.1rem;
    border: 1px dashed #d8deea; border-radius: 14px;
    color: #94a3b8; background: rgba(255,255,255,.6); font-size: .72rem; line-height: 1.55;
}

/* Gösterge paneli ızgaraları */
.app-body .dashboard-grid { gap: 1.1rem; }
.app-body .metric-grid { gap: .9rem; }

@media (max-width: 820px) {
    .app-body .view > .section-heading:first-child,
    .app-body .view [data-kalite-root] > .section-heading:first-child,
    .app-body .platform-view > .section-heading:first-child { display: flex; flex-direction: column; align-items: stretch; padding: 1rem; border-radius: 16px; }
    .app-body .section-heading:has(> .page-icon) { grid-template-columns: 1fr; }
    .page-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; font-size: 1.05rem; }
    .app-body .section-heading > .row-actions, .app-body .section-heading > div:last-child:not(:first-child):not(.page-title-block) { justify-content: flex-start; }
    .app-body .table-toolbar .muted { margin-left: 0; }
    .app-body .legal-notice { margin: 0 .85rem 1rem; }
    .app-body dialog.modal .form-actions { margin: .5rem -1rem 0; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); }
}
.auth-body .auth-shell.aurora .auth-story .activity-item { grid-template-columns: 1fr; }
.auth-body .auth-shell.aurora .auth-story .legal-notice { padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.1); }

/* =====================================================================
   AURORA v2 — belirgin iç sayfa görünümü
   Koyu kenar çubuğu, eski dekorların temizliği, gösterge paneli bileşenleri
   ===================================================================== */

/* ---- Koyu kenar çubuğu (firma ve platform) ---- */
.app-body .sidebar,
.app-body .platform-sidebar {
    border-right: 1px solid rgba(255,255,255,.06);
    color: #cbd5e1;
    background:
        radial-gradient(420px 260px at 0% 0%, rgba(99, 102, 241, .28), transparent 70%),
        radial-gradient(360px 300px at 100% 100%, rgba(8, 145, 178, .18), transparent 70%),
        linear-gradient(180deg, #0b1020 0%, #10183a 100%);
    backdrop-filter: none;
}
.app-body .sidebar .brand,
.app-body .platform-sidebar .brand,
.app-body .platform-brand { border-bottom: 1px solid rgba(255,255,255,.08); background: transparent; }
.app-body .company-brand.has-company-logo .company-brand-logo {
    padding: .45rem .75rem; border-radius: 14px; background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.app-body .sidebar .nav-list { scrollbar-color: rgba(255,255,255,.15) transparent; }
.app-body .sidebar .nav-label { color: #64748b; }
.app-body .sidebar .nav-label:hover { color: #e2e8f0; }
.app-body .sidebar .nav-item { color: #cbd5e1; font-weight: 550; }
.app-body .sidebar .nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.app-body .sidebar .nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(99, 102, 241, .42), rgba(99, 102, 241, .1));
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .35), 0 10px 24px rgba(79, 70, 229, .25);
}
.app-body .sidebar .nav-item.active::before { background: linear-gradient(180deg, #a5b4fc, #22d3ee); }
.app-body .sidebar .nav-icon { color: #a5b4fc; background: rgba(255,255,255,.06); }
.app-body .sidebar .nav-item.active .nav-icon { color: #fff; background: var(--accent-grad); box-shadow: 0 6px 16px rgba(79, 70, 229, .45); }
.app-body .sidebar .sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); }
.app-body .sidebar .sidebar-account:hover { background: rgba(255,255,255,.06); }
.app-body .sidebar .user-meta strong { color: #fff; }
.app-body .sidebar .user-meta span { color: #94a3b8; }
.app-body .sidebar .icon-btn { color: #94a3b8; }
.app-body .sidebar .icon-btn:hover { color: #fff; }
@media (max-width: 820px) {
    .app-body .sidebar { background: linear-gradient(180deg, #0b1020 0%, #10183a 100%); }
}

/* ---- İçerik zemini: ince nokta dokusu ---- */
.app-body .main-content {
    background-image: radial-gradient(rgba(15, 23, 42, .055) 1px, transparent 1px);
    background-size: 22px 22px;
}

/* ---- Eski dekorların temizliği ---- */
.app-body .metric-card::after,
.app-body .hero-card::after,
.app-body .platform-hero::after { display: none; }

/* ---- Ana (hero) kart: selamlama + aurora dokusu ---- */
.app-body .hero-card,
.app-body .platform-hero {
    isolation: isolate;
    overflow: hidden;
    min-height: 0;
    padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3.4vw, 2.8rem);
    background:
        radial-gradient(600px 320px at 85% -10%, rgba(168, 85, 247, .55), transparent 60%),
        radial-gradient(520px 300px at 10% 130%, rgba(34, 211, 238, .45), transparent 60%),
        linear-gradient(120deg, #1e1b4b 0%, #312e81 40%, #4338ca 75%, #0e7490 100%);
}
.app-body .hero-card::before,
.app-body .platform-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent);
}
.hero-greeting { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .9rem; color: #e0e7ff; font-size: .85rem; font-weight: 600; }
.hero-greeting strong { color: #fff; font-size: 1.05rem; }
.hero-greeting time { padding: .2rem .6rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #c7d2fe; background: rgba(255,255,255,.08); font-size: .72rem; }
.app-body .hero-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }

/* Hazırlık halkası: değer --p (0–100) ui.js tarafından ayarlanır */
.app-body .readiness {
    --p: 0;
    position: relative;
    width: 150px; min-width: 150px; height: 150px;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(6px);
}
.app-body .readiness::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from -90deg, #a5f3fc 0, #c4b5fd calc(var(--p) * 1%), rgba(255,255,255,.14) calc(var(--p) * 1%) 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
    transition: background .6s var(--ease);
}
.app-body .readiness span { position: relative; font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; color: #fff; }
.app-body .readiness small { position: relative; color: #c7d2fe; }

/* ---- Metrik kartları: ikon karosu ---- */
.app-body .metric-card { --tone: #4f46e5; --tone-soft: #eef2ff; padding-right: 4.2rem; }
.app-body .metric-card:nth-child(4n+2) { --tone: #059669; --tone-soft: #ecfdf5; }
.app-body .metric-card:nth-child(4n+3) { --tone: #e11d48; --tone-soft: #fff1f2; }
.app-body .metric-card:nth-child(4n+4) { --tone: #0891b2; --tone-soft: #ecfeff; }
.app-body .metric-card::after {
    display: grid; place-items: center;
    content: "◆";
    position: absolute; top: 1rem; right: 1rem;
    width: 42px; height: 42px; border-radius: 13px;
    color: var(--tone); background: var(--tone-soft);
    font-size: 1rem; font-weight: 800;
}
.app-body .metric-card:has([data-metric="tedarikci_sayisi"])::after { content: "◇"; }
.app-body .metric-card:has([data-metric="parsel_sayisi"])::after { content: "⌖"; }
.app-body .metric-card:has([data-metric="yuksek_risk"])::after { content: "△"; }
.app-body .metric-card:has([data-metric="hazir_beyan"])::after { content: "✓"; }
.app-body .metric-card:has([data-platform-metric="toplam_firma"])::after { content: "▦"; }
.app-body .metric-card:has([data-platform-metric="aktif_abonelik"])::after { content: "↻"; }
.app-body .metric-card:has([data-platform-metric="toplam_kullanici"])::after { content: "◉"; }
.app-body .metric-card:has([data-platform-metric="aylik_potansiyel_gelir"])::after { content: "€"; }
.app-body .metric-card strong { color: var(--ink); }
.app-body .metric-card.risk strong { color: var(--danger); }
.app-body .metric-card.revenue strong { color: var(--ink); }
.app-body .metric-card small { display: inline-flex; align-items: center; gap: .3rem; }

/* ---- Grafik kartı ---- */
.app-body .chart-card .bar-chart { gap: 10px; padding: 1.5rem 1.4rem 1rem; }
.app-body .bar { border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #818cf8, #4f46e5); }
.app-body .bar.scope-2 { background: linear-gradient(180deg, #67e8f9, #0891b2); }
.app-body .bar.scope-3 { background: linear-gradient(180deg, #d8b4fe, #8b5cf6); }
.app-body .bar-group { transition: transform .2s var(--ease); }
.app-body .bar-group:hover { transform: translateY(-3px); }
.app-body .bar-label { color: var(--muted); font-weight: 600; }

/* ---- Öncelik listesi: önem şeridi ---- */
.app-body #recent-risks .activity-item,
.app-body .activity-list .activity-item:has(.activity-dot) { position: relative; padding-left: 1.6rem; }
.app-body .activity-item:has(.activity-dot)::before {
    content: ""; position: absolute; left: .7rem; top: .9rem; bottom: .9rem; width: 3px; border-radius: 3px; background: #cbd5e1;
}
.app-body .activity-item:has(.activity-dot.yuksek)::before, .app-body .activity-item:has(.activity-dot.kritik)::before { background: linear-gradient(180deg, #fb7185, #e11d48); }
.app-body .activity-item:has(.activity-dot.orta)::before { background: linear-gradient(180deg, #fcd34d, #f59e0b); }
.app-body .activity-item:has(.activity-dot.dusuk)::before { background: linear-gradient(180deg, #6ee7b7, #10b981); }
.app-body .activity-item .activity-dot { display: none; }
.app-body .activity-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; line-height: 1.4; }
.app-body .text-btn { padding: .35rem .7rem; border-radius: 9px; color: var(--accent); }
.app-body .text-btn:hover { background: var(--accent-soft); }

/* ---- Platform: son çalışma alanları ---- */
.app-body .workspace-code {
    display: inline-flex; width: auto; padding: .18rem .55rem;
    border: 1px solid #e0e7ff; border-radius: 999px;
    color: #4338ca; background: #eef2ff;
    font: 700 .7rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.app-body #platform-recent-companies { gap: 1rem; padding: 1rem; }
.app-body #platform-recent-companies > * {
    border: 1px solid var(--line); border-radius: 16px; background: #fff;
    box-shadow: var(--shadow-xs); transition: transform .2s var(--ease), box-shadow .2s;
}
.app-body #platform-recent-companies > *:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.app-body .platform-pulse i { background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse-dot 2.2s infinite; }

@media (max-width: 820px) {
    .app-body .readiness { width: 112px; min-width: 112px; height: 112px; }
    .app-body .readiness span { font-size: 1.7rem; }
    .app-body .metric-card { padding-right: .9rem; }
    .app-body .metric-card::after { width: 32px; height: 32px; top: .7rem; right: .7rem; border-radius: 10px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .app-body .platform-pulse i { animation: none; } }
/* v2 düzeltmeleri: liste rozeti sıkışması, koyu çubuk alt alanı */
.app-body .activity-item > div { flex: 1 1 auto; min-width: 0; }
.app-body .activity-item > .badge { flex: 0 0 auto; }
.app-body .sidebar .sidebar-footer { background: rgba(255,255,255,.03); }
.app-body .activity-item:has(> .activity-dot) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.app-body .activity-item > .badge { max-width: none; overflow: visible; }

/* =====================================================================
   DİYALOGLAR (açılır pencereler) — 46 PHP diyaloğu + kalite/JS diyalogları
   Koyu gradyan başlık bandı, sabit başlık ve alt çubuk, ferah form gövdesi.
   ===================================================================== */
.app-body dialog.modal:not(.satellite-dialog) {
    width: min(680px, calc(100vw - 2rem));
    max-height: min(88vh, 920px);
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 24px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 40px 120px rgba(2, 6, 23, .45), 0 0 0 1px rgba(15, 23, 42, .04);
    scrollbar-width: thin;
}
.app-body dialog.modal.modal-wide:not(.satellite-dialog) { width: min(980px, calc(100vw - 2rem)); }
.app-body dialog.modal[open]:not(.satellite-dialog) { animation: modal-pop .32s var(--ease); }
@keyframes modal-pop { from { opacity: 0; transform: translateY(12px) scale(.975); } }
.app-body dialog.modal::backdrop { background: rgba(8, 12, 28, .55); backdrop-filter: blur(8px) saturate(120%); animation: backdrop-in .25s ease; }
@keyframes backdrop-in { from { opacity: 0; } }

/* Başlık bandı */
.app-body dialog.modal:not(.satellite-dialog) > .modal-header {
    position: sticky; top: 0; z-index: 5;
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: center;
    margin: 0; padding: 1.35rem 4.5rem 1.35rem 1.6rem;
    border: 0;
    color: #e0e7ff;
    background:
        radial-gradient(420px 180px at 100% -30%, rgba(168, 85, 247, .55), transparent 65%),
        radial-gradient(380px 200px at 0% 140%, rgba(34, 211, 238, .4), transparent 65%),
        linear-gradient(120deg, #1e1b4b 0%, #312e81 45%, #4338ca 80%, #0e7490 100%);
}
.app-body dialog.modal:not(.satellite-dialog) > .modal-header > * { grid-column: 2; }
.app-body dialog.modal:not(.satellite-dialog) > .modal-header > .modal-icon { grid-column: 1; grid-row: 1 / span 4; }
.modal-icon {
    display: grid; width: 48px; height: 48px; place-items: center;
    border: 1px solid rgba(255,255,255,.22); border-radius: 15px;
    color: #fff; background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
    font-size: 1.2rem;
}
.app-body dialog.modal:not(.satellite-dialog) > .modal-header .eyebrow {
    justify-self: start;
    margin: 0 0 .35rem; padding: .2rem .6rem;
    border: 1px solid rgba(199, 210, 254, .35); border-radius: 999px;
    color: #c7d2fe; background: rgba(99, 102, 241, .2);
    font-size: .6rem; letter-spacing: .14em;
}
.app-body dialog.modal:not(.satellite-dialog) > .modal-header h2 { margin: 0; color: #fff; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 760; letter-spacing: -.025em; }
.app-body dialog.modal:not(.satellite-dialog) > .modal-header p:not(.eyebrow),
.app-body dialog.modal:not(.satellite-dialog) > .modal-header .muted,
.app-body dialog.modal:not(.satellite-dialog) > .modal-header .kalite-intro { margin: .45rem 0 0; color: #c7d2fe; font-size: .82rem; line-height: 1.55; }

/* Kapatma düğmesi */
.app-body dialog.modal:not(.satellite-dialog) > .modal-close { position: sticky; top: 0; z-index: 6; height: 0; margin: 0; }
.app-body dialog.modal:not(.satellite-dialog) > .modal-close button {
    position: absolute; top: 1rem; right: 1rem;
    display: grid; width: 38px; height: 38px; place-items: center;
    border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
    color: #fff; background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
    font-size: 1.25rem; line-height: 1;
    transition: background .15s, transform .2s var(--ease);
}
.app-body dialog.modal:not(.satellite-dialog) > .modal-close button:hover { background: rgba(255,255,255,.24); transform: rotate(90deg); }

/* Gövde */
.app-body dialog.modal:not(.satellite-dialog) > .form-grid,
.app-body dialog.modal:not(.satellite-dialog) > form > .form-grid,
.app-body dialog.modal:not(.satellite-dialog) > .form-stack { gap: 1.05rem 1.15rem; padding: 1.5rem 1.6rem 0; }
.app-body dialog.modal:not(.satellite-dialog) > .modal-section,
.app-body dialog.modal:not(.satellite-dialog) > div:not(.modal-header):not(.form-actions) { padding-left: 1.6rem; padding-right: 1.6rem; }
.app-body dialog.modal:not(.satellite-dialog) > .modal-section { padding-top: 1.4rem; padding-bottom: 1.4rem; }
.app-body dialog.modal label { gap: .4rem; color: var(--ink-2); font-size: .78rem; font-weight: 650; }
.app-body dialog.modal label > small { color: var(--muted); font-weight: 500; }
.app-body dialog.modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.app-body dialog.modal select {
    min-height: 2.75rem; padding: 0 .85rem;
    border: 1px solid #e2e8f0; border-radius: 12px;
    background-color: #f8fafc; font-size: .88rem;
}
.app-body dialog.modal textarea { padding: .7rem .85rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; font-size: .88rem; line-height: 1.5; }
.app-body dialog.modal input:focus, .app-body dialog.modal select:focus, .app-body dialog.modal textarea:focus { background: #fff; border-color: var(--accent); box-shadow: var(--ring); }
.app-body dialog.modal input[type="file"] {
    padding: .7rem; border: 1.5px dashed #c7d2fe; border-radius: 12px; background: #f8faff; font-size: .82rem;
}
.app-body dialog.modal input[type="file"]::file-selector-button {
    margin-right: .8rem; padding: .45rem .9rem; border: 0; border-radius: 9px; color: #fff; background: var(--accent-grad); font-weight: 650; cursor: pointer;
}
.app-body dialog.modal .checkbox-label {
    display: flex; align-items: center; gap: .65rem;
    padding: .75rem .9rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff;
    cursor: pointer; transition: border-color .15s, background .15s;
}
.app-body dialog.modal .checkbox-label:hover { border-color: #c7d2fe; background: #f8faff; }
.app-body dialog.modal .checkbox-label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.app-body dialog.modal input[type="checkbox"], .app-body dialog.modal input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); }
.app-body dialog.modal fieldset, .app-body dialog.modal .form-subsection {
    padding: 1rem 1.1rem; border: 1px solid #eef1f6; border-radius: 14px; background: #fbfcff;
}
.app-body dialog.modal legend, .app-body dialog.modal .form-subsection > strong, .app-body dialog.modal .form-subsection > h3 { color: var(--ink); font-size: .82rem; font-weight: 750; }
.app-body dialog.modal .info-banner { margin: 0; }
.app-body dialog.modal .form-message.show { margin: 0 0 1rem; }

/* Alt çubuk: sabit, bulanık */
.app-body dialog.modal:not(.satellite-dialog) .form-actions {
    position: sticky; bottom: 0; z-index: 4;
    display: flex; justify-content: flex-end; gap: .6rem;
    margin: 1.25rem -1.6rem 0; padding: 1rem 1.6rem;
    border-top: 1px solid #eef1f6;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
}
.app-body dialog.modal .form-actions .btn { min-width: 120px; justify-content: center; }
.app-body dialog.modal:not(.satellite-dialog) > .form-grid > .form-message:last-child,
.app-body dialog.modal:not(.satellite-dialog) > .form-stack > .form-message:last-child { margin-bottom: 1rem; }
.app-body dialog.modal:not(.satellite-dialog) > .form-grid:last-child,
.app-body dialog.modal:not(.satellite-dialog) > .form-stack:last-child { padding-bottom: 0; }
.app-body dialog.modal:not(.satellite-dialog) > :last-child:not(.form-grid):not(.form-stack):not(.modal-header) { padding-bottom: 1.5rem; }

/* Mobil: alttan açılan sayfa */
@media (max-width: 820px) {
    html body.app-body dialog.modal:not(.satellite-dialog) { border-radius: 24px 24px 0 0; }
    html body.app-body dialog.modal::before { position: absolute; top: 0; left: 50%; z-index: 7; margin: .5rem 0 0 -21px; background: rgba(255,255,255,.55); }
    .app-body dialog.modal:not(.satellite-dialog) > .modal-header { padding: 1.5rem 4rem 1.15rem 1.1rem; column-gap: .8rem; }
    .modal-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
    .app-body dialog.modal:not(.satellite-dialog) > .modal-close button { top: 1.1rem; right: .8rem; width: 34px; height: 34px; }
    .app-body dialog.modal:not(.satellite-dialog) > .form-grid,
    .app-body dialog.modal:not(.satellite-dialog) > form > .form-grid,
    .app-body dialog.modal:not(.satellite-dialog) > .form-stack { padding: 1.1rem 1.1rem 0; }
    .app-body dialog.modal:not(.satellite-dialog) > .modal-section,
    .app-body dialog.modal:not(.satellite-dialog) > div:not(.modal-header):not(.form-actions) { padding-left: 1.1rem; padding-right: 1.1rem; }
    .app-body dialog.modal:not(.satellite-dialog) .form-actions { margin: 1rem -1.1rem 0; padding: .85rem 1.1rem calc(.85rem + env(safe-area-inset-bottom)); }
    .app-body dialog.modal .form-actions .btn { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .app-body dialog.modal[open], .app-body dialog.modal::backdrop { animation: none !important; }
    .app-body dialog.modal > .modal-close button:hover { transform: none; }
}
/* =====================================================================
   YÜZEN ÇALIŞMA ALANI: koyu zemin üzerinde yuvarlatılmış içerik paneli
   ===================================================================== */
@media (min-width: 821px) {
    body.app-body {
        background:
            radial-gradient(700px 500px at 0% 0%, rgba(99, 102, 241, .28), transparent 70%),
            radial-gradient(700px 600px at 100% 100%, rgba(8, 145, 178, .2), transparent 70%),
            #0b1020;
        background-attachment: fixed;
    }
    /* Gövde belge sonuna kadar uzanmayınca kökün açık zemini alt bantta görünüyor ve şeffaf menünün altını kapatıyordu */
    html:has(> body.app-body) { background: #0b1020; }
    .app-body .sidebar, .app-body .platform-sidebar { background: transparent; border-right: 0; }
    .app-body .main-content {
        position: relative;
        min-height: calc(100vh - 20px);
        margin: 10px 10px 10px calc(var(--sidebar-w) + 2px);
        border-radius: 28px;
        background-color: #f4f6fb;
        background-image: radial-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px);
        background-size: 22px 22px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255,255,255,.6);
    }
    .nav-rail .app-body .main-content { margin-left: calc(var(--rail-w) + 2px); }
    /* Daraltılmış menü üzerine gelince içeriğin üstüne açılır: şeffaf kalırsa alttaki beyaz panel görünür */
    .nav-rail .app-body .sidebar:hover {
        background: linear-gradient(180deg, #0b1020 0%, #10183a 100%);
        box-shadow: 24px 0 60px rgba(0, 0, 0, .45);
    }
    .app-body .topbar {
        top: 0;
        border-radius: 28px 28px 0 0;
        background: rgba(244, 246, 251, .82);
        border-bottom: 1px solid rgba(226, 232, 240, .8);
    }
    .app-body .legal-notice { margin-bottom: 1.5rem; }
}

/* =====================================================================
   TABLOLAR: başlık bandı yok, ferah satırlar, vurgulu satır
   ===================================================================== */
.app-body .table-card { border-radius: 20px; border: 1px solid rgba(226, 232, 240, .9); box-shadow: var(--shadow-sm); }
.app-body .table-wrap th {
    padding-top: .9rem; padding-bottom: .7rem;
    border-bottom: 1px solid #e8ecf4;
    color: #94a3b8; background: #fff;
    font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: none;
}
.app-body .table-wrap td { padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #f1f4f9; vertical-align: middle; font-size: .83rem; }
.app-body .table-wrap tbody tr:last-child td { border-bottom: 0; }
.app-body .table-wrap tbody tr { position: relative; }
.app-body .table-wrap tbody tr:hover { background: linear-gradient(90deg, #f3f4ff, #fafbff 60%); }
.app-body .table-wrap tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.app-body .table-wrap td:first-child strong, .app-body .table-wrap td:first-child > div > strong { color: var(--ink); font-weight: 700; }

/* Kartlar: daha yuvarlak, başlıkları belirgin */
.app-body .card { border-radius: 20px; }
.app-body .card-header { border-bottom: 1px solid #f1f4f9; background: transparent; }
.app-body .card-header h3 { font-size: 1.02rem; font-weight: 750; letter-spacing: -.02em; }
@media (max-width: 820px) { html body.app-body dialog.modal.modal-wide:not(.satellite-dialog), html body.app-body dialog.modal:not(.satellite-dialog) { width: 100vw; max-width: 100vw; margin: auto 0 0 0; } }

/* ================================================================ FİRMA BAŞVURUSU */
.company-application-form .honeypot-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.company-application-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; margin: 0; padding: 0 !important; border: 0; background: transparent; }
.company-application-form .interest-areas { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; border: 0; }
.company-application-form .interest-areas legend { width: 100%; margin-bottom: .45rem; padding: 0; color: var(--ink-2, #334155); font-size: .82rem; font-weight: 650; }
.company-application-form .interest-areas .checkbox-label { min-height: 38px; padding: .4rem .8rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #f8fafc; font-size: .84rem; font-weight: 600; cursor: pointer; }
.company-application-form .interest-areas .checkbox-label:has(input:checked) { border-color: #6366f1; background: #eef2ff; color: #3730a3; }
.company-application-form .consent-label { align-items: flex-start; min-height: 0; font-size: .82rem; font-weight: 500; color: #475569; }
.company-application-form .consent-label input { margin-top: .15rem; }
@media (max-width: 560px) { .company-application-form .form-grid { grid-template-columns: 1fr; } }
.nav-item .nav-count { display: inline-grid; min-width: 1.35rem; height: 1.35rem; margin-left: .45rem; padding: 0 .35rem; place-items: center; border-radius: 999px; background: #f43f5e; color: #fff; font-size: .68rem; font-style: normal; font-weight: 800; line-height: 1; vertical-align: middle; }
.nav-item .nav-count[hidden] { display: none; }
.application-detail { display: grid; gap: .15rem; }
.application-detail small { color: #64748b; }
.application-message { max-width: 360px; margin-top: .3rem; color: #475569; font-size: .78rem; white-space: pre-line; }
.application-term { display: block; margin-top: .35rem; color: #3730a3; font-size: .76rem; font-weight: 700; }

/* ================================================================ MODÜLER PAKET VE FİYAT */
.company-application-form .subscription-term .checkbox-label input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: #6366f1; }
.company-application-form .term-badge { margin-left: .35rem; padding: .1rem .45rem; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .7rem; font-style: normal; font-weight: 800; }
.price-summary { display: grid; gap: .3rem; padding: .9rem 1rem; border: 1px solid #c7d2fe; border-radius: 14px; background: linear-gradient(135deg, #eef2ff, #f8fafc); }
.price-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.price-summary span { color: #475569; font-size: .8rem; font-weight: 650; }
.price-summary strong { color: #1e1b4b; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.price-summary small { color: #475569; font-size: .76rem; }
.module-picker { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: .75rem .85rem; border: 1px solid #e2e8f0; border-radius: 14px; }
.module-picker[hidden] { display: none; }
.module-picker legend { padding: 0 .3rem; color: #334155; font-size: .78rem; font-weight: 700; }
.module-picker .checkbox-label { min-height: 34px; padding: .3rem .7rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #f8fafc; font-size: .82rem; font-weight: 600; }
.module-picker .checkbox-label:has(input:checked) { border-color: #6366f1; background: #eef2ff; color: #3730a3; }
.module-picker-status { width: 100%; color: #475569; font-size: .76rem; }
.module-picker-status.error { color: #b91c1c; font-weight: 700; }
.plan-price-secondary { display: flex; flex-basis: 100%; align-items: baseline; gap: .35rem; margin-top: .25rem; }
.plan-price-secondary strong { font-size: 1rem; }
.plan-price-secondary span { color: #15803d; font-size: .74rem; font-weight: 700; }
.plan-card.plan-inactive { opacity: .62; }
.subscription-modules { display: block; color: #3730a3; font-weight: 600; }

/* ================================================================ DEMO UYARISI */
.trial-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; margin: 1rem clamp(1rem, 2.4vw, 2rem) 0; padding: .8rem 1.1rem; border: 1px solid; border-radius: 14px; font-size: .86rem; line-height: 1.45; }
.trial-banner strong { font-weight: 800; }
.trial-banner .trial-contact { margin-left: auto; font-size: .78rem; font-weight: 600; opacity: .85; }
.trial-banner.trial-bilgi { border-color: #c7d2fe; background: #eef2ff; color: #312e81; }
.trial-banner.trial-uyari { border-color: #fdba74; background: #fff7ed; color: #9a3412; }
.trial-banner.trial-kritik { border-color: #fca5a5; background: #fef2f2; color: #991b1b; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.company-application-form .subscription-term .term-free { background: #e0e7ff; color: #3730a3; }

/* ================================================================ İNDİRİM KODU VE PAKET TALEBİ */
.code-input { text-transform: uppercase; letter-spacing: .04em; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.sales-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
/* Diğer platform kartlarındaki form iç boşluğuyla aynı (Bilgi & İş Ortakları) */
.sales-grid .card > .form-stack { margin: 0; padding: 1.4rem 1.45rem 1.55rem; }
.sales-grid .form-grid { padding: 0; align-items: start; }
.sales-grid .form-grid .span-2 { grid-column: 1 / -1; }
.sales-grid .discount-company-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; }
.sales-grid .discount-company-field[hidden] { display: none; }
.discount-code-tag { display: inline-block; padding: .15rem .5rem; border-radius: 8px; background: #0f172a; color: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.price-strike { color: #94a3b8; text-decoration: line-through; }
.price-net { color: #166534; font-weight: 800; }
.discount-field { display: flex; gap: .5rem; align-items: flex-end; }
.discount-field[hidden] { display: none; }
.discount-field label { flex: 1; }
.trial-banner .trial-action { margin-left: auto; padding: .4rem .9rem; font-size: .8rem; }
.discount-field .btn { white-space: nowrap; }
.discount-result { font-size: .8rem; font-weight: 600; }
.discount-result.ok { color: #166534; }
.discount-result.error { color: #b91c1c; }
.subscription-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: start; }
.subscription-current dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; font-size: .86rem; }
.subscription-current dt { color: #64748b; }
.subscription-current dd { margin: 0; font-weight: 650; }
@media (max-width: 1100px) { .sales-grid, .subscription-panel { grid-template-columns: 1fr; } }

/* Parsel listesi sayfalama ve arama */
.app-body .table-pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .75rem; }
.app-body .table-pager input[type="search"] { flex: 1 1 240px; min-width: 0; max-width: 360px; padding: .5rem .75rem; border: 1px solid rgba(203, 213, 225, .9); border-radius: 10px; font: inherit; background: #fff; }
.app-body .table-pager .pager-info { font-size: .875rem; color: #475569; font-variant-numeric: tabular-nums; min-width: 9rem; text-align: center; }
.app-body .table-pager .mini-btn:disabled { opacity: .4; cursor: not-allowed; }
.app-body .guard-eudr-note { margin: 0 0 .75rem; padding: .6rem .9rem; border-radius: 10px; background: rgba(79, 70, 229, .06); color: #3730a3; font-size: .9rem; }

/* Kart içerik boşlukları: kart gövdesi iç boşluk almayan içerikler (Abonelik, açıklama paragrafları) */
.app-body .subscription-panel .card > #subscription-current { padding: 1.15rem 1.3rem 1.35rem; }
.app-body .subscription-panel .card > form.form-stack { margin-top: 0; padding: 1.2rem 1.3rem 1.4rem; gap: 1.1rem; }
.app-body .subscription-panel .card > form.form-stack > .btn-primary { justify-self: stretch; }
.app-body .subscription-current dl { grid-template-columns: minmax(6.5rem, max-content) minmax(0, 1fr); gap: 0 1.5rem; font-size: .9rem; }
.app-body .subscription-current dt,
.app-body .subscription-current dd { padding: .6rem 0; border-bottom: 1px solid #f1f5f9; }
.app-body .subscription-current dt:nth-last-of-type(1),
.app-body .subscription-current dd:last-of-type { border-bottom: 0; }
.app-body .card > p.muted { margin: 0; padding: .9rem 1.3rem 0; }
.app-body .card > p.muted:last-child { padding-bottom: 1.1rem; }

/* Kanıt inceleme penceresi: bilgi bandı ve düğme satırı */
.app-body dialog.modal:not(.satellite-dialog) > .info-banner { margin: 1.25rem 1.6rem 0; border-radius: 12px; }
.app-body dialog.modal:not(.satellite-dialog) > .row-actions { padding-top: .9rem; padding-bottom: .2rem; }
.app-body dialog.modal:not(.satellite-dialog) > .row-actions:not(:has(> :not([hidden]))) { display: none; }
.app-body .discount-field input,
.app-body .discount-field .btn { height: 2.75rem; min-height: 2.75rem; box-sizing: border-box; }
.app-body .discount-field .btn { padding-block: 0; align-self: flex-end; }
.app-body .discount-result:empty { display: none; }
.app-body .code-input::placeholder { text-transform: none; letter-spacing: normal; font-family: inherit; }

/* Varsayılan kart formu boşluğu: kendine özel kuralı olmayan kart formları kenara yapışmasın.
   :where(.card) özgüllüğü düşük tutar; ekrana özel mevcut kurallar (ör. .sales-grid, kurumsal-araclar) geçerli kalır. */
:where(.card) > form.form-stack { margin-top: 0; padding: 1.2rem 1.3rem 1.35rem; }
:where(.card) > form.form-stack + form.form-stack { border-top: 1px solid #eef1f6; }
:where(.card) > form.form-stack > .form-grid { padding: 0; }

/* PPWR yaşam döngüsü penceresi: boş yükseklikler ve kenara yapışık içerik */
#ppwr-operations-dialog .card > .activity-list { min-height: 0; padding: .9rem 1.25rem; }
#ppwr-operations-dialog .card > .activity-list + .activity-list { border-top: 1px solid #eef1f6; }
#ppwr-operations-dialog .card > .activity-list > strong { display: block; margin-bottom: .45rem; }
#ppwr-operations-dialog .card > .activity-list > small { display: block; color: var(--muted, #64748b); }
#ppwr-operations-dialog .card > .activity-list > .activity-item { padding-left: 0; padding-right: 0; }
#ppwr-operations-dialog form.form-stack.card { margin-top: 1rem; padding: 1.2rem 1.25rem 1.35rem; gap: .9rem; }
