/* =================================================================
   DUCK · DARKWING PASTEL theme (B53)
   Önceden Duck/Editorial. Tüm `--c-*` token'ları artık
   ui-dd'nin `--ui-*` token'larına köprüleniyor — paletini
   `duck-uikit.css` belirler. Tek satır değişiklik tüm public
   sayfaları Darkwing kimliğine alır.
   ================================================================= */

/* B88a follow-up: Kaligrafi fontları self-host (CDN'siz, Edge tracking-prevention'a tabi değil).
   - Tangerine 700: dramatic ornamental script — büyük D harfi flourish'lı, brand mark için.
   - Allura 400:    klasik italic script — alt yazı / footer için yedek.
   Sadece latin range (~25-50KB toplam). */
@font-face {
    font-family: 'Tangerine';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/lib/fonts/tangerine/tangerine-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Allura';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/lib/fonts/allura/allura-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter Black 900 — modern logo wordmark için (D + uck birleşik) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/lib/fonts/inter/inter-900-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Global emniyet ağı: HTML [hidden] attribute'u, browser UA stylesheet'inde
   `display: none` ile gelir ama bizim author CSS'imizdeki herhangi bir
   `.x { display: flex/block/grid }` kuralı (eşit spesifite + sonra yazıldığı için)
   onu ezerse element gizliyken görünür kalır. Bu satır o tuzağı kapatır.
   Wizard'daki ms-panel, stack-bar, search-clear gibi tüm [hidden] toggle eden
   bileşenler artık güvenli — JS panel.hidden = true/false ile çalışır,
   CSS karışmaz. */
[hidden] { display: none !important; }


:root {
    --c-bg:         var(--ui-bg-soft);
    --c-ink:        var(--ui-fg);
    --c-ink-muted:  var(--ui-fg-muted);
    --c-line:       var(--ui-line);
    --c-line-soft:  var(--ui-bg-soft);
    --c-paper:      var(--ui-bg-card);
    --c-accent:     var(--ui-accent);
    --c-accent-soft: var(--ui-accent-bg);
    --c-accent-ink: var(--ui-accent-d);
    --c-success:    var(--ui-success-d);
    --c-danger:     var(--ui-error);

    /* Font stack ui-dd'den geliyor (Fraunces display, Inter body).
       JetBrains Mono yine `var(--ui-f-mono)` ile mono ihtiyacında. */
    --f-display:    var(--ui-f-display);
    --f-body:       var(--ui-f-body);

    --tr: 220ms cubic-bezier(.2, .8, .2, 1);
}

html.theme-duck, body.theme-duck {
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--f-body);
    font-size: 14.5px;
    line-height: 1.55;
    /* Mobile safety: prevent horizontal scroll bugs from rogue overflow.
       Decorations like .dw-skyline-bg or wide tables can briefly produce
       a stray horizontal scroll on narrow viewports — clip it. */
    overflow-x: hidden;
    /* Better text-rendering on retina */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ----- Mobile-first global safety nets ----- */
.theme-duck img,
.theme-duck svg:not(.dw-skyline-bg svg) {
    max-width: 100%;
    height: auto;
}
/* Long unbreakable strings (tech slugs, URLs) shouldn't push the layout */
.theme-duck .stack-card,
.theme-duck .alt-item,
.theme-duck .card-tech-name,
.theme-duck .alt-name {
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* Tables: scroll horizontally instead of pushing the page wider */
.theme-duck main table,
.theme-duck .table-wrap {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.theme-duck h1, .theme-duck h2, .theme-duck h3,
.theme-duck h4, .theme-duck h5, .theme-duck h6,
.theme-duck .display {
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    line-height: 1.05;
    margin: 0;
}

.theme-duck .eyebrow {
    font-family: var(--f-body);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--c-ink-muted);
    font-weight: 500;
}

.theme-duck .display-xl { font-size: clamp(36px, 4.2vw, 64px); letter-spacing: -0.025em; line-height: 1.02; }
.theme-duck .display-lg { font-size: clamp(30px, 3.6vw, 54px); letter-spacing: -0.02em; }
.theme-duck .display-md { font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.015em; }
.theme-duck .display-sm { font-size: 22px; letter-spacing: -0.01em; }

.theme-duck a { color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-line); transition: border-color var(--tr); }
.theme-duck a:hover { border-color: var(--c-accent); color: var(--c-accent-ink); }
.theme-duck a.btn-duck, .theme-duck nav a, .theme-duck a.no-underline { border-bottom: none; }

/* Navbar */
.theme-duck .duck-nav {
    border-bottom: 1px solid var(--c-line);
    padding: 18px 32px;
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: saturate(140%) blur(6px);
    background: rgba(250, 250, 247, .92);
    display: flex; align-items: center; gap: 36px;
}
.theme-duck .duck-brand {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    border-bottom: none;
    display: flex; align-items: center; gap: 10px;
}
.theme-duck .duck-brand .dot {
    width: 10px; height: 10px;
    background: var(--c-accent);
    display: inline-block;
}
.theme-duck .duck-brand {
    padding-left: 138px;
    transition: padding-left 0.25s ease;
}
.theme-duck .duck-brand .duck-mark {
    position: fixed;
    top: 6px;
    left: 10px;
    width: 128px;
    height: 128px;
    z-index: 1000;
    pointer-events: none;
    filter: drop-shadow(0 6px 18px rgba(124, 58, 237, 0.25));
    transition: width 0.25s ease, height 0.25s ease, top 0.25s ease, filter 0.25s ease;
}
body.is-scrolled .duck-brand {
    padding-left: 72px;
}
body.is-scrolled .duck-brand .duck-mark {
    width: 64px;
    height: 64px;
    top: 11px;
    filter: drop-shadow(0 3px 8px rgba(124, 58, 237, 0.20));
}
@media (prefers-reduced-motion: reduce) {
    .theme-duck .duck-brand,
    .theme-duck .duck-brand .duck-mark { transition: none; }
}
.theme-duck .duck-nav .nav-link {
    font-family: var(--f-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    color: var(--c-ink);
    transition: border-color var(--tr), color var(--tr);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.theme-duck .duck-nav .nav-link i {
    font-size: 12px;
    opacity: 0.7;
    transition: opacity var(--tr);
}
.theme-duck .duck-nav .nav-link:hover i,
.theme-duck .duck-nav .nav-link.is-active i { opacity: 1; }
.theme-duck .duck-nav .nav-link:hover, .theme-duck .duck-nav .nav-link.is-active {
    border-bottom: 1px solid var(--c-accent);
    color: var(--c-accent-ink);
}
.theme-duck .duck-nav-spacer { flex: 1; }
.theme-duck .duck-nav-group { display: flex; gap: 28px; align-items: center; }

/* ----- Mobile hamburger nav (off-canvas drawer) ----- */
/* Desktop default: drawer is "transparent" — children render as direct nav siblings.
   Toggle button hidden, backdrop hidden. */
.theme-duck .duck-nav-drawer { display: contents; }
.theme-duck .duck-nav-toggle { display: none; }
.theme-duck .duck-nav-backdrop { display: none; }

/* Hamburger lines */
.theme-duck .duck-nav-toggle {
    background: none; border: 0; padding: 0;
    width: 40px; height: 40px; cursor: pointer;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 5px;
    margin-left: auto; /* push to far right next to brand on mobile */
    color: var(--c-ink);
}
.theme-duck .duck-nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: currentColor;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .15s;
    transform-origin: center;
}
body.nav-open .duck-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .duck-nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .duck-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    /* Brand still visible; hamburger appears at right of brand. */
    .theme-duck .duck-nav { flex-wrap: nowrap; }
    .theme-duck .duck-nav-toggle { display: inline-flex; }

    /* Hide the desktop spacer; drawer takes care of its own layout. */
    .theme-duck .duck-nav-spacer { display: none; }

    /* Drawer: turn off display:contents, become a fixed off-canvas panel. */
    .theme-duck .duck-nav-drawer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: fixed;
        top: 0; right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        background: var(--c-paper);
        padding: 70px 18px 24px;
        box-shadow: -4px 0 32px rgba(0,0,0,.18);
        transform: translateX(100%);
        transition: transform .3s cubic-bezier(.2,.8,.2,1);
        z-index: 200;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    body.nav-open .duck-nav-drawer { transform: translateX(0); }

    /* Each group becomes a stacked column inside the drawer. */
    .theme-duck .duck-nav-drawer .duck-nav-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    /* Visual separator between the two original nav groups */
    .theme-duck .duck-nav-drawer .duck-nav-group + .duck-nav-group {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--c-line);
    }
    .theme-duck .duck-nav-drawer .nav-link {
        padding: 12px 14px;
        border-bottom: 1px solid var(--c-line-soft);
        font-size: 14px;
    }
    .theme-duck .duck-nav-drawer .nav-link:last-child { border-bottom: 0; }
    .theme-duck .duck-nav-drawer .btn-duck,
    .theme-duck .duck-nav-drawer .btn-duck.is-sm {
        width: 100%; justify-content: center;
        margin-top: 8px;
    }
    /* Bootstrap dropdown inside drawer should fall under the trigger, not float */
    .theme-duck .duck-nav-drawer .dropdown { width: 100%; }
    .theme-duck .duck-nav-drawer .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin: 4px 0 8px;
        border: 1px solid var(--c-line);
        box-shadow: none;
    }

    /* Backdrop overlay */
    .theme-duck .duck-nav-backdrop {
        display: block;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.45);
        opacity: 0; pointer-events: none;
        transition: opacity .25s;
        z-index: 199;
    }
    body.nav-open .duck-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    body.nav-open { overflow: hidden; }
}

/* Buttons — Darkwing flat: comic-panel border + chunky shadow + kontrast garantili
   Mor/koyu zeminlerde yazı her zaman beyaz; ghost variant koyu yazı kullanır. */
.theme-duck .btn-duck {
    font-family: var(--f-body);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 14px 22px;
    border: 1.5px solid var(--c-ink);
    background: var(--c-ink);
    color: var(--c-bg);
    cursor: pointer;
    transition: all var(--tr);
    display: inline-flex; align-items: center; gap: 10px;
    border-radius: 0;
    font-weight: 500;
    text-decoration: none;
}
.theme-duck .btn-duck:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;                              /* sabit beyaz: dark mode'da bile mor zeminde okunur */
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ui-space, #1a0844);   /* uzay moru drama */
}
.theme-duck .btn-duck.is-ghost {
    background: transparent; color: var(--c-ink);
    box-shadow: none;
}
.theme-duck .btn-duck.is-ghost:hover {
    background: var(--c-ink); color: #fff; box-shadow: none;   /* gece-mavisi zemin + beyaz */
}
.theme-duck .btn-duck.is-sm { padding: 9px 14px; font-size: 10px; }
.theme-duck .btn-duck.is-block { width: 100%; justify-content: center; }
.theme-duck .btn-duck.is-accent {
    background: var(--c-accent); border-color: var(--c-accent); color: #fff;   /* mor + beyaz, sabit */
}
.theme-duck .btn-duck.is-accent:hover {
    color: #fff;                              /* link a:hover override'ını öldür */
}
/* Mor/koyu butonlarda link `<a>` rengi ihlali olmasın */
.theme-duck a.btn-duck.is-accent,
.theme-duck a.btn-duck.is-accent:hover,
.theme-duck a.btn-duck.is-ghost:hover {
    color: #fff;
    border-bottom: none;
}

/* Cards */
.theme-duck .card-ctr {
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: 0;
    padding: 24px;
    transition: border-color var(--tr);
}
.theme-duck .card-ctr:hover { border-color: var(--c-ink); }

/* Forms */
.theme-duck .field { display: block; margin-bottom: 22px; }
.theme-duck .field label, .theme-duck .field-label {
    display: block;
    font-family: var(--f-body);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-ink-muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.theme-duck .field-input {
    border: 0;
    border-bottom: 1.5px solid var(--c-ink);
    border-radius: 0;
    padding: 8px 0;
    background: transparent;
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--c-ink);
    width: 100%;
    transition: border-color var(--tr);
    outline: none;
}
.theme-duck .field-input:focus { border-bottom-color: var(--c-accent); }
.theme-duck .field-input::placeholder { color: var(--ui-line-strong); }
.theme-duck .field-error {
    color: var(--c-danger); font-size: 11px; margin-top: 6px;
}

/* Hero */
.theme-duck .hero { padding: 40px 32px 48px; border-bottom: 1px solid var(--c-line); max-width: 1280px; margin: 0 auto; }
.theme-duck .hero .accent-bar {
    width: 64px; height: 5px; background: var(--c-accent);
    margin-bottom: 20px;
}
.theme-duck .hero p.hero-lead { font-size: 14px; max-width: 56ch; margin-bottom: 24px; color: var(--c-ink-muted); }

/* Section + grid */
.theme-duck .duck-section { padding: 64px 32px; max-width: 1280px; margin: 0 auto; }
.theme-duck .duck-row {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 36px;
}

/* Numbered phase rows */
.theme-duck .num-row {
    display: flex; align-items: baseline; gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--c-line);
}
.theme-duck .num-row .num {
    font-family: var(--f-display);
    font-weight: 700; font-size: 64px; line-height: 1;
    color: var(--c-ink); width: 96px; flex-shrink: 0;
    letter-spacing: -0.04em;
}
.theme-duck .num-row.is-accent .num { color: var(--c-accent); }
.theme-duck .num-row h3 { font-size: 28px; margin-bottom: 6px; }
.theme-duck .num-row p { color: var(--c-ink-muted); margin: 0; max-width: 60ch; }

/* Stats strip — comic panel framing, ortalı (B55 fix: sağa yaslı sorun + 5 cell). */
.theme-duck .stat-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    background: var(--ui-fg);
    border: 3px solid var(--ui-fg);
    box-shadow: 6px 6px 0 var(--ui-accent);
    margin: 48px auto;
    width: min(1100px, calc(100% - 48px));
    box-sizing: border-box;
}
@media (max-width: 760px) {
    .theme-duck .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
.theme-duck .stat-cell {
    background: var(--ui-bg-card);
    padding: 28px 18px;
    border: none;
    text-align: center;
}
.theme-duck .stat-cell + .stat-cell { border-left: 2px solid var(--ui-fg); }
@media (max-width: 760px) {
    .theme-duck .stat-cell + .stat-cell { border-left: none; border-top: 2px solid var(--ui-fg); }
    .theme-duck .stat-cell:nth-child(odd) + .stat-cell { border-left: 2px solid var(--ui-fg); }
}
.theme-duck .stat-cell .v {
    font-family: var(--f-display); font-weight: 700;
    font-size: 48px; line-height: 1; letter-spacing: -0.02em;
    color: var(--c-accent);
}
.theme-duck .stat-cell .l {
    font-family: var(--ui-f-mono);
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--c-ink-muted); margin-top: 8px;
}

/* Footer */
.theme-duck .duck-footer {
    border-top: 1px solid var(--c-line);
    padding: 32px;
    margin-top: 64px;
    font-size: 11px;
    color: var(--c-ink-muted);
    display: flex; justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.theme-duck .duck-footer-left { display: flex; flex-direction: column; gap: 4px; }
.theme-duck .duck-footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.theme-duck .duck-footer-link {
    color: var(--c-ink-muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--c-line);
    padding-bottom: 1px;
    transition: color var(--tr), border-color var(--tr);
}
.theme-duck .duck-footer-link i { margin-right: 6px; }
.theme-duck .duck-footer-link:hover {
    color: var(--c-accent);
    border-color: var(--c-accent);
}
@media (max-width: 720px) {
    .theme-duck .duck-footer { flex-direction: column; text-align: center; }
}

/* ===== AUTH PAGES ===== */
.theme-duck.auth-screen {
    background: var(--c-bg);
    overflow: hidden;
    margin-bottom: 0 !important;        /* override site.css 60px bottom */
}
/* The site _Layout wraps RenderBody in <main role="main">, so the flex split
   has to live on <main>, not on <body> — children of body are nav + main + footer. */
.theme-duck.auth-screen > main {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}
.theme-duck .auth-graphic {
    flex: 1; min-width: 0;
    background: var(--c-ink); color: var(--c-bg);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 56px;
    position: relative;
    overflow: hidden;
}
.theme-duck .auth-graphic::before {
    content: ""; position: absolute;
    top: -20%; right: -20%;
    width: 700px; height: 700px;
    background: var(--c-accent);
    border-radius: 50%;
}
.theme-duck .auth-graphic::after {
    content: ""; position: absolute;
    bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    border: 2px solid var(--c-accent);
    border-radius: 50%;
    opacity: 0.6;
}
.theme-duck .auth-graphic .auth-graphic-inner { position: relative; z-index: 2; }
.theme-duck .auth-graphic-title {
    font-family: var(--f-display); font-weight: 700;
    font-size: clamp(48px, 6vw, 96px); line-height: .95; letter-spacing: -0.03em;
    color: var(--c-bg);
}
.theme-duck .auth-graphic-meta {
    font-family: var(--f-body); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    opacity: .6;
    position: relative; z-index: 2;
}
.theme-duck .auth-form-wrap {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 48px 56px;
    min-width: 0;
}
.theme-duck .auth-form { width: 100%; max-width: 380px; }
.theme-duck .auth-form .auth-eyebrow {
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--c-accent); font-weight: 600; margin-bottom: 12px;
}
.theme-duck .auth-form h1 { font-size: 44px; margin-bottom: 8px; }
.theme-duck .auth-form .auth-sub {
    color: var(--c-ink-muted); font-size: 12px; margin-bottom: 32px;
}
.theme-duck .auth-alt {
    margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--c-line);
    font-size: 12px; color: var(--c-ink-muted);
}
.theme-duck .auth-alt a { font-weight: 600; color: var(--c-accent-ink); border-bottom-color: var(--c-accent); }
.theme-duck .auth-error {
    background: var(--ui-error-bg); border-left: 3px solid var(--c-danger);
    color: var(--c-danger); padding: 10px 14px; font-size: 12px;
    margin-bottom: 16px;
}
/* Login submit — guard against opacity:0 stuck on GSAP fail + ensure visibility */
.theme-duck .auth-form button[type="submit"] {
    display: flex !important;
    width: 100%;
    justify-content: center;
    padding: 18px 22px;
    font-size: 12px;
    margin-top: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}
@media (max-width: 768px) {
    .theme-duck.auth-screen > main { flex-direction: column; }
    .theme-duck .auth-graphic { min-height: 220px; padding: 32px; }
    .theme-duck .auth-form-wrap { padding: 32px 24px; }
}

/* ===== WIZARD progressive ===== */
.theme-duck.wiz-screen { background: var(--c-bg); min-height: 100vh; }
.wiz-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 48px;
    padding: 32px 48px;
    align-items: start;
    max-width: 1480px;
    margin: 0 auto;
}
.wiz-flow { position: relative; min-height: 70vh; }
.wiz-step {
    display: none;
    padding: 40px 0;
}
.wiz-step.is-active { display: block; }
.wiz-step-num {
    font-family: var(--f-body); font-size: 11px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--c-ink-muted); margin-bottom: 18px;
}
.wiz-step-num strong { color: var(--c-accent); font-weight: 600; }
.wiz-step-num .phase {
    margin-left: 12px; padding-left: 12px;
    border-left: 1px solid var(--c-line);
}
.wiz-step h2 {
    font-family: var(--f-display); font-weight: 600;
    font-size: clamp(34px, 4vw, 56px);
    letter-spacing: -0.02em; line-height: 1.05;
    margin-bottom: 12px;
    color: var(--c-ink);
}
.wiz-step .help {
    font-size: 13px; color: var(--c-ink-muted);
    max-width: 60ch; margin-bottom: 14px; line-height: 1.6;
}

.wiz-importance {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 16px; margin-bottom: 28px;
    background: var(--c-line-soft); border-left: 3px solid var(--c-line);
    font-size: 12.5px; color: var(--c-ink-muted); line-height: 1.6;
    max-width: 96ch;
}
.wiz-importance i { font-size: 14px; padding-top: 2px; flex-shrink: 0; color: var(--c-ink-muted); }
.wiz-importance.is-must-have {
    background: var(--ui-error-bg); border-left-color: var(--c-danger);
    color: var(--c-ink);
}
.wiz-importance.is-must-have i { color: var(--c-danger); }

/* Sprint 4 — Idea suggestion banner + option pulse */
.idea-suggestion-banner {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; margin: 0 0 18px;
    background: var(--c-accent-soft);
    border-left: 3px solid var(--c-accent);
    border-radius: 0 4px 4px 0;
    font-size: 12.5px; color: var(--c-ink);
    max-width: 720px;
    animation: idea-banner-in .35s cubic-bezier(.2,.8,.2,1);
}
.idea-suggestion-banner i.fa-lightbulb { color: var(--c-accent); flex-shrink: 0; }
.idea-suggestion-banner span { flex: 1; line-height: 1.5; }
.idea-suggestion-banner strong { color: var(--c-accent-ink); }
.idea-sugg-dismiss {
    background: transparent; border: 0; padding: 4px 6px;
    color: var(--c-ink-muted); cursor: pointer; font-size: 12px;
    border-radius: 3px; flex-shrink: 0;
}
.idea-sugg-dismiss:hover { color: var(--c-ink); background: rgba(0,0,0,.05); }
@keyframes idea-banner-in {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}
.idea-sugg-pulse {
    position: relative;
    box-shadow: 0 0 0 2px var(--c-accent-soft);
    animation: idea-sugg-pulse-anim 2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes idea-sugg-pulse-anim {
    0%, 100% { box-shadow: 0 0 0 2px var(--c-accent-soft); }
    50% { box-shadow: 0 0 0 4px var(--c-accent-soft); }
}
.idea-sugg-pulse::after {
    content: "💡";
    position: absolute;
    top: -8px; right: -8px;
    font-size: 14px;
    background: var(--c-paper);
    border: 1px solid var(--c-accent);
    border-radius: 999px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
}

/* ===== MultiSelect (select with checkboxes) ===== */
.ms-wrap { position: relative; max-width: 720px; margin-bottom: 24px; }
.ms-trigger {
    display: flex; align-items: center; gap: 12px;
    width: 100%; min-height: 56px;
    padding: 12px 16px;
    background: var(--c-paper); border: 1.5px solid var(--c-ink);
    cursor: pointer; text-align: left;
    font-family: var(--f-body); color: var(--c-ink);
    transition: border-color var(--tr);
    border-radius: 0;
}
.ms-trigger:hover { border-color: var(--c-accent); }
.ms-wrap.is-open .ms-trigger { border-color: var(--c-accent); }
.ms-chips {
    flex: 1; min-width: 0;
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.ms-placeholder {
    color: var(--c-ink-muted); font-size: 14px;
}
.ms-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px; font-size: 12px;
    background: var(--c-accent-soft); color: var(--c-accent-ink);
    border: 1px solid var(--c-accent);
    font-weight: 500;
}
.ms-chip i {
    cursor: pointer; opacity: .7; transition: opacity .15s;
    padding: 2px 4px; margin: -2px -6px -2px 0;
}
.ms-chip i:hover { opacity: 1; color: var(--c-danger); }
.ms-caret { transition: transform var(--tr); color: var(--c-ink-muted); }
.ms-wrap.is-open .ms-caret { transform: rotate(180deg); color: var(--c-accent); }

.ms-panel {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--c-paper); border: 1.5px solid var(--c-ink);
    box-shadow: 4px 4px 0 var(--c-ink);
    z-index: 50;
    max-height: 380px;
    display: flex; flex-direction: column;
}
/* [hidden] davranışı dosya başındaki global kural ile sağlanıyor — burada özel kural yok. */
.ms-search {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid var(--c-line);
}
.ms-search i { color: var(--c-ink-muted); font-size: 12px; }
.ms-search-input {
    flex: 1; border: 0; background: transparent; outline: none;
    font-family: var(--f-body); font-size: 13px; color: var(--c-ink);
}
.ms-options {
    list-style: none; margin: 0; padding: 4px 0;
    overflow-y: auto; flex: 1;
}
.ms-option {
    display: flex; gap: 12px; padding: 10px 16px;
    cursor: pointer; transition: background var(--tr);
    border-left: 3px solid transparent;
}
.ms-option:hover { background: var(--c-line-soft); border-left-color: var(--c-line); }
.ms-option.is-selected { background: var(--c-accent-soft); border-left-color: var(--c-accent); }
.ms-check {
    width: 18px; height: 18px;
    border: 1.5px solid var(--c-line);
    flex-shrink: 0; margin-top: 2px;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-paper); font-size: 11px;
    transition: all var(--tr);
    border-radius: 3px;
}
.ms-option.is-selected .ms-check {
    background: var(--c-accent); border-color: var(--c-accent);
}
.ms-option-text { flex: 1; min-width: 0; }
.ms-option-label { display: block; font-weight: 500; font-size: 13px; color: var(--c-ink); }
.ms-option-desc { display: block; font-size: 11px; color: var(--c-ink-muted); margin-top: 2px; line-height: 1.45; }

.ms-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; border-top: 1px solid var(--c-line);
    background: var(--c-line-soft);
}
.ms-count {
    font-family: var(--f-body); font-size: 11px;
    color: var(--c-ink-muted); text-transform: uppercase; letter-spacing: 0.12em;
}

.btn-show-more {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 12px; padding: 8px 14px;
    background: transparent; border: 1px dashed var(--c-line);
    border-radius: 8px; color: var(--c-ink-muted);
    font: inherit; font-size: 13px; cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-show-more:hover {
    border-color: var(--c-accent, currentColor);
    color: var(--c-ink);
    background: rgba(0,0,0,0.02);
}
.btn-show-more.is-ms { margin: 8px 12px 4px; width: calc(100% - 24px); justify-content: center; }

/* ----- Wizard filter bar (search + tag chips) — for dense option grids ----- */
.wiz-filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--c-line);
    border-radius: 6px;
    background: var(--c-paper);
    max-width: 720px;
    transition: border-color .15s, background .15s;
}
.wiz-filter-bar.is-active {
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
}
.wiz-search {
    position: relative;
    flex: 1 1 240px; min-width: 0;
    display: flex; align-items: center;
}
.wiz-search > i.fa-magnifying-glass {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    color: var(--c-ink-muted); pointer-events: none; font-size: 12px;
}
.wiz-search-input {
    width: 100%;
    padding: 8px 28px 8px 30px;
    border: 1px solid var(--c-line);
    border-radius: 4px;
    background: var(--c-bg);
    color: var(--c-ink);
    font: inherit; font-size: 13px;
    outline: none;
    transition: border-color .15s, background .15s;
}
.wiz-search-input:focus {
    border-color: var(--c-accent);
    background: var(--c-paper);
}
.wiz-search-clear {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; padding: 4px 6px;
    color: var(--c-ink-muted); cursor: pointer; font-size: 11px;
    border-radius: 3px;
}
.wiz-search-clear:hover { color: var(--c-ink); background: rgba(0,0,0,.04); }
.wiz-tag-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    flex: 2 1 auto; min-width: 0;
}
.wiz-tag-chip {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    color: var(--c-ink-muted);
    font: inherit; font-size: 11px;
    text-transform: lowercase;
    cursor: pointer;
    transition: all .15s;
}
.wiz-tag-chip:hover {
    color: var(--c-ink);
    border-color: var(--c-ink);
}
.wiz-tag-chip.is-active {
    background: var(--c-ink);
    color: var(--c-paper);
    border-color: var(--c-ink);
}
.wiz-filter-count {
    flex: 0 0 auto;
    font-size: 11px;
    color: var(--c-ink-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 2px 8px;
    border-left: 1px solid var(--c-line);
}

.opt-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    max-width: 720px;
}
.opt-grid.opt-grid-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    max-width: none;
}
.opt-card {
    border: 1.5px solid var(--c-line);
    background: var(--c-paper);
    padding: 16px 22px;
    cursor: pointer;
    text-align: left;
    transition: all var(--tr);
    display: flex; align-items: flex-start; gap: 16px; width: 100%;
    font-family: var(--f-body); font-size: 13px;
    color: var(--c-ink);
    position: relative;
    border-radius: 0;
}
.opt-card::before {
    content: "";
    width: 18px; height: 18px;
    border: 1.5px solid var(--c-line);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    transition: all var(--tr);
}
.opt-card:hover {
    border-color: var(--c-ink);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--c-ink);
}
.opt-card:hover::before { border-color: var(--c-ink); }
.opt-card.is-selected {
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
}
.opt-card.is-selected::before {
    background: var(--c-accent);
    border-color: var(--c-accent);
    box-shadow: inset 0 0 0 4px var(--c-accent-soft);
}
.opt-card .opt-body { flex: 1; min-width: 0; }
.opt-card .opt-label { font-weight: 600; font-size: 15px; margin-bottom: 4px; line-height: 1.35; }
.opt-card .opt-desc { font-size: 12px; color: var(--c-ink-muted); line-height: 1.5; }
.opt-card.opt-thumb { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.opt-card.opt-thumb::before { display: none; }
.opt-card.is-multi::before { border-radius: 3px; }
.opt-card.is-multi.is-selected::before {
    background: var(--c-accent);
    border-color: var(--c-accent);
    box-shadow: inset 0 0 0 2px var(--c-accent-soft);
}
.opt-card .opt-num {
    flex-shrink: 0;
    font-family: var(--f-display); font-weight: 600;
    font-size: 11px; color: var(--c-ink-muted);
    padding: 2px 6px; border: 1px solid var(--c-line);
    align-self: center;
    min-width: 20px; text-align: center;
}
.opt-card:hover .opt-num { color: var(--c-ink); border-color: var(--c-ink); }
.opt-card.is-selected .opt-num { color: var(--c-accent-ink); border-color: var(--c-accent); }
.wiz-keyboard-hint {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 10px; color: var(--c-ink-muted);
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-left: auto;
}
.wiz-keyboard-hint kbd, .wiz-kbd-hint kbd {
    font-family: var(--f-body); font-size: 10px;
    padding: 2px 6px; background: var(--c-paper);
    border: 1px solid var(--c-line); border-bottom-width: 2px;
    color: var(--c-ink); border-radius: 2px;
}
.wiz-kbd-hint {
    position: fixed; bottom: 16px; left: 16px; z-index: 50;
    display: inline-flex; gap: 14px; align-items: center;
    background: rgba(15,15,15,.92); color: rgba(255,255,255,.7);
    padding: 8px 14px;
    font-family: var(--f-body); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.12em;
    backdrop-filter: blur(4px);
    transition: opacity .25s;
}
.wiz-kbd-hint kbd {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    color: var(--c-bg);
}
.wiz-kbd-hint span { display: inline-flex; gap: 4px; align-items: center; }
@media (max-width: 768px) {
    .wiz-kbd-hint { display: none; }
}
.opt-card.opt-thumb .opt-thumb-svg {
    aspect-ratio: 16/10; background: linear-gradient(180deg, var(--ui-bg-soft), var(--ui-line));
    transition: transform var(--tr); width: 100%;
}
.opt-card.opt-thumb:hover .opt-thumb-svg { transform: scale(1.04); }
.opt-card.opt-thumb .opt-thumb-svg svg { width: 100%; height: 100%; display: block; }
.opt-card.opt-thumb .opt-thumb-body { padding: 12px 14px; border-top: 1px solid var(--c-line); width: 100%; }

.opt-text {
    border: 0; border-bottom: 1.5px solid var(--c-ink);
    background: transparent;
    font-family: var(--f-body); font-size: 18px; padding: 12px 0;
    width: 100%; outline: none;
    margin-bottom: 16px;
    color: var(--c-ink);
}
.opt-text:focus { border-bottom-color: var(--c-accent); }

.bool-pair { display: flex; gap: 12px; margin-bottom: 24px; }
.bool-btn {
    border: 1.5px solid var(--c-line); background: var(--c-paper);
    padding: 18px 28px; cursor: pointer;
    font-family: var(--f-body); font-size: 14px;
    color: var(--c-ink); display: inline-flex; align-items: center; gap: 10px;
    transition: all var(--tr);
}
.bool-btn:hover { border-color: var(--c-ink); }
.bool-btn.is-selected { background: var(--c-accent-soft); border-color: var(--c-accent); }

.wiz-actions {
    margin-top: 36px;
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.wiz-actions .spacer { flex: 1; }

/* Compatibility tier badges (shown next to option labels) */
.opt-fit {
    display: inline-flex; align-items: center; gap: 4px;
    margin-left: 8px; padding: 2px 8px;
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    border-radius: 999px; vertical-align: middle;
    letter-spacing: 0.04em;
}
.opt-fit-high {
    background: rgba(34, 197, 94, 0.14); color: var(--ui-success);
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.opt-fit-med {
    background: rgba(234, 179, 8, 0.12); color: var(--ui-warning-d);
    border: 1px solid rgba(234, 179, 8, 0.30);
}
.opt-card.is-tier-high { border-color: rgba(34, 197, 94, 0.45); }
.opt-card.is-tier-high.is-selected { border-color: var(--c-accent); }

/* Finish step — full-width sticky-bottom CTA */
.wiz-finish-form {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px dashed var(--c-line);
    width: 100%;
}
.wiz-finish-cta {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    justify-content: center;
}

.wiz-progress-bar {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; background: var(--c-line); z-index: 200;
}
.wiz-progress-bar .fill {
    height: 100%; background: var(--c-accent);
    transition: width 400ms cubic-bezier(.2, .8, .2, 1);
}

.wiz-help-box {
    margin-top: 16px; padding: 14px 16px;
    background: var(--c-accent-soft); border-left: 3px solid var(--c-accent);
    font-size: 12px; color: var(--c-ink); line-height: 1.6;
    display: none;
}
.wiz-help-box.is-open { display: block; }

/* Right side panel */
.wiz-side {
    position: sticky; top: 32px;
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    padding: 28px 26px;
}
.wiz-side-head { margin-bottom: 24px; }
.wiz-side h3 {
    font-family: var(--f-display); font-weight: 600;
    font-size: 22px; letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.wiz-side .side-sub {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--c-ink-muted); margin-bottom: 0;
}
.phase-block { margin-bottom: 22px; }
.phase-block .phase-head {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 6px; margin-bottom: 6px;
}
.phase-block.is-active .phase-head { border-bottom-color: var(--c-accent); }
.phase-block .phase-name {
    font-family: var(--f-display); font-weight: 600; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.phase-block .phase-count {
    font-size: 10px; color: var(--c-ink-muted);
    font-family: var(--f-body);
}
.phase-block .ans-list { list-style: none; padding: 0; margin: 0; min-height: 4px; }
.ans-item {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 10px; padding: 10px 0;
    border-bottom: 1px dashed var(--c-line-soft);
    font-size: 12px;
}
.ans-item:last-child { border-bottom: 0; }
.ans-item .ans-text { flex: 1; min-width: 0; }
.ans-item .ans-q {
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--c-ink-muted); margin-bottom: 3px;
    font-weight: 500;
}
.ans-item .ans-v {
    color: var(--c-ink); font-weight: 500; word-break: break-word;
    font-size: 12px; line-height: 1.4;
}
.ans-item button.ans-remove {
    background: none; border: 1px solid transparent;
    padding: 2px 8px; cursor: pointer;
    color: var(--c-ink-muted);
    transition: all 150ms;
    font-size: 11px;
    flex-shrink: 0;
}
.ans-item button.ans-remove:hover {
    border-color: var(--c-danger); color: var(--c-danger);
}

.phase-empty {
    font-size: 11px; color: var(--ui-line-strong);
    padding: 8px 0; font-style: italic;
}

/* Flying clone for animations */
.fly-clone {
    position: fixed; pointer-events: none; z-index: 999;
    background: var(--c-accent); color: var(--c-paper);
    padding: 10px 14px; font-size: 12px;
    border: 1.5px solid var(--c-ink);
    box-shadow: 4px 4px 0 var(--c-ink);
    white-space: nowrap;
    font-family: var(--f-body); font-weight: 600;
    max-width: 260px; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 991px) {
    .wiz-shell {
        grid-template-columns: 1fr;
        padding: 16px 16px 96px;
        gap: 0;
    }
    .wiz-side {
        position: fixed; left: 0; right: 0; bottom: 0;
        max-height: 70vh;
        border: none; border-top: 1.5px solid var(--c-ink);
        box-shadow: 0 -4px 12px rgba(0,0,0,.08);
        transform: translateY(calc(100% - 56px));
        transition: transform .3s cubic-bezier(.2,.8,.2,1);
        padding: 0;
        z-index: 90;
        overflow: hidden;
        background: var(--c-paper);
    }
    .wiz-side.is-open {
        transform: translateY(0);
        overflow-y: auto;
    }
    .wiz-side-toggle {
        display: flex; align-items: center; justify-content: space-between;
        gap: 12px;
        padding: 14px 18px;
        background: var(--c-ink); color: var(--c-bg);
        cursor: pointer;
        font-family: var(--f-body); font-size: 12px;
        text-transform: uppercase; letter-spacing: 0.16em;
        border: 0; width: 100%;
    }
    .wiz-side-toggle .ws-progress { font-weight: 600; color: var(--c-accent); }
    .wiz-side-toggle .ws-caret { transition: transform .25s; }
    .wiz-side.is-open .wiz-side-toggle .ws-caret { transform: rotate(180deg); }
    .wiz-side-content { padding: 24px 20px 80px; }
    .wiz-side-head { display: none; }
    .wiz-shell .wiz-flow { padding-top: 12px; }
    .wiz-step { padding: 24px 0; }
    .wiz-step h2 { font-size: 28px; }
    .opt-grid { max-width: none; }
    .opt-card { padding: 14px 16px; }
    .opt-card .opt-num { display: none; }
    .wiz-step .help, .wiz-importance { font-size: 13px; max-width: none; }
}
@media (min-width: 992px) {
    .wiz-side-toggle { display: none; }
    .wiz-side-content { display: contents; }
}

.theme-duck .text-uppercase-mono {
    text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px;
}

/* ===== Page shell + head ===== */
.theme-duck .duck-page {
    max-width: 100%; margin: 0 auto; padding: 32px 40px 64px; 
}
.theme-duck .duck-page-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
    padding-bottom: 20px; margin-bottom: 28px;
    border-bottom: 1px solid var(--c-line);
    flex-wrap: wrap;
}
.theme-duck .duck-page-head .ph-title h1 { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 4px; }
.theme-duck .duck-page-head .ph-sub { font-size: 13px; color: var(--c-ink-muted); max-width: 60ch; }

/* ===== Filters (pill row) ===== */
.theme-duck .duck-pills {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 24px;
}
.theme-duck .duck-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    font-family: var(--f-body); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.1em;
    border: 1px solid var(--c-line); background: var(--c-paper);
    color: var(--c-ink-muted); cursor: pointer;
    transition: all var(--tr); text-decoration: none;
}
.theme-duck .duck-pill:hover { border-color: var(--c-ink); color: var(--c-ink); }
.theme-duck .duck-pill.is-active {
    background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg);
}
.theme-duck .duck-pill .ct { font-size: 10px; opacity: .7; }

.theme-duck .duck-tags-row {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 0 0 14px;
    margin-bottom: 18px;
    border-bottom: 1px dashed var(--c-line);
}
.theme-duck .duck-tag-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    font-family: var(--f-body); font-size: 11px;
    color: var(--c-ink-muted);
    background: transparent; border: 1px dashed var(--c-line);
    text-decoration: none; transition: all var(--tr);
}
.theme-duck .duck-tag-pill:hover {
    color: var(--c-ink); border-color: var(--c-ink);
    background: var(--c-paper);
}
.theme-duck .duck-tag-pill.is-active {
    background: var(--c-accent); color: var(--c-paper);
    border-color: var(--c-accent); border-style: solid;
}
.theme-duck .duck-tag-pill.is-active i { font-size: 10px; }
.theme-duck .duck-tag-pill .ct { font-size: 9px; opacity: .6; }

/* ===== Search ===== */
.theme-duck .duck-search {
    display: flex; align-items: center; gap: 0;
    border-bottom: 1.5px solid var(--c-ink);
    padding: 6px 0; max-width: 320px;
}
.theme-duck .duck-search input {
    border: 0; background: transparent;
    font-family: var(--f-body); font-size: 13px;
    color: var(--c-ink); padding: 6px 0; outline: none; width: 100%;
}
.theme-duck .duck-search i { color: var(--c-ink-muted); }

/* ===== Card grid ===== */
.theme-duck .duck-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.theme-duck .duck-grid.is-wide {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}
.theme-duck .duck-grid.is-narrow {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ===== Tech catalog card ===== */
.theme-duck .tech-card {
    background: var(--c-paper); border: 1px solid var(--c-line);
    display: flex; flex-direction: column; transition: all var(--tr);
    position: relative;
}
.theme-duck .tech-card:hover {
    border-color: var(--c-ink);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--c-ink);
}

/* "Seç" pick button — sağ üst köşe, kart üzerinde sabit */
.theme-duck .tech-card-pick {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    background: var(--c-paper);
    border: 2px solid var(--c-ink);
    color: var(--c-ink);
    font-family: var(--ui-f-mono, monospace);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--c-ink);
    transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, color .15s ease;
}
.theme-duck .tech-card-pick:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--c-ink);
}
.theme-duck .tech-card-pick .on { display: none; }
.theme-duck .tech-card-pick.is-on {
    background: var(--c-accent, #7c5cff);
    color: #fff;
    border-color: var(--c-accent, #7c5cff);
    box-shadow: 2px 2px 0 var(--c-ink);
}
.theme-duck .tech-card-pick.is-on .off { display: none; }
.theme-duck .tech-card-pick.is-on .on { display: inline; }
.theme-duck .tech-card-pick i { margin-right: 3px; }

/* Sticky bottom cart bar */
.theme-duck .catalog-cart {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    background: var(--c-paper, #fff);
    border: 3px solid var(--c-ink, #1a0844);
    box-shadow: 6px 6px 0 var(--c-accent, #7c5cff);
    padding: 14px 18px;
}
.theme-duck .catalog-cart[hidden] { display: none; }
.theme-duck .catalog-cart-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.theme-duck .catalog-cart-summary {
    font-family: var(--ui-f-display);
    font-size: 14px;
    color: var(--c-ink);
    white-space: nowrap;
}
.theme-duck .catalog-cart-summary strong {
    color: var(--c-accent, #7c5cff);
    font-size: 22px;
    margin-right: 6px;
}
.theme-duck .catalog-cart-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 200px;
    max-height: 80px;
    overflow-y: auto;
}
.theme-duck .catalog-cart-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ui-bg-soft, #f5f3ee);
    border: 1px solid var(--c-line);
    padding: 3px 4px 3px 8px;
    font-size: 12px;
    line-height: 1.3;
}
.theme-duck .catalog-cart-chip-kind {
    font-family: var(--ui-f-mono, monospace);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ui-fg-muted);
    border-right: 1px dotted var(--c-line);
    padding-right: 6px;
}
.theme-duck .catalog-cart-chip-name { color: var(--c-ink); font-weight: 600; }
.theme-duck .catalog-cart-chip-x {
    background: transparent;
    border: 0;
    color: var(--ui-fg-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 0 4px;
    line-height: 1;
}
.theme-duck .catalog-cart-chip-x:hover { color: var(--c-error, #e11d48); }
.theme-duck .catalog-cart-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.theme-duck .catalog-banner {
    margin: 14px 0;
    padding: 10px 14px;
    border: 2px solid;
    font-family: var(--ui-f-mono, monospace);
    font-size: 12px;
}
.theme-duck .catalog-banner.is-error {
    border-color: var(--c-error, #e11d48);
    color: var(--c-error, #e11d48);
    background: #ffeef2;
}

@media (max-width: 720px) {
    .theme-duck .catalog-cart-chips { display: none; }
    .theme-duck .catalog-cart { padding: 10px 14px; }
}
.theme-duck .tech-card-thumb { aspect-ratio: 16/10; background: linear-gradient(180deg, var(--ui-bg-soft), var(--ui-line)); }
.theme-duck .tech-card-thumb svg { width: 100%; height: 100%; display: block; }
.theme-duck .tech-card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.theme-duck .tech-card-body .kind {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--c-accent); margin-bottom: 6px; font-weight: 600;
}
.theme-duck .tech-card-body h3 { font-size: 22px; margin-bottom: 8px; }
.theme-duck .tech-card-body .short { font-size: 12px; color: var(--c-ink-muted); line-height: 1.5; margin-bottom: 14px; }
.theme-duck .tech-card-meta {
    display: flex; gap: 14px; font-size: 11px; color: var(--c-ink-muted);
    padding-top: 12px; border-top: 1px dashed var(--c-line); margin-top: auto;
    flex-wrap: wrap;
}
.theme-duck .tech-card-meta .m { display: inline-flex; align-items: center; gap: 4px; }
.theme-duck .tech-card-meta .m strong { color: var(--c-ink); font-weight: 600; }

/* ===== Practice list card ===== */
.theme-duck .pl-card {
    background: var(--c-paper); border: 1px solid var(--c-line);
    padding: 24px; transition: all var(--tr);
    text-decoration: none; color: var(--c-ink); display: block;
}
.theme-duck .pl-card:hover {
    border-color: var(--c-ink);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--c-ink);
}
.theme-duck .pl-card .pl-num {
    font-family: var(--f-display); font-weight: 700;
    font-size: 48px; line-height: 1; letter-spacing: -0.03em;
    color: var(--c-accent); margin-bottom: 12px;
}
.theme-duck .pl-card h3 { font-size: 24px; margin-bottom: 6px; }
.theme-duck .pl-card .pl-sub { font-size: 12px; color: var(--c-ink-muted); margin-bottom: 14px; line-height: 1.55; }
.theme-duck .pl-card .pl-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; }
.theme-duck .pl-card .pl-meta span {
    padding: 3px 8px; background: var(--c-line-soft); color: var(--c-ink-muted);
}
.theme-duck .pl-card .pl-meta span.is-critical { background: var(--ui-error-bg); color: var(--ui-error-d); }

/* ===== Practice detail (accordion-like) ===== */
.theme-duck .pr-item {
    border-left: 3px solid var(--c-line);
    padding: 20px 24px; margin-bottom: 14px;
    background: var(--c-paper); transition: border-color var(--tr);
}
.theme-duck .pr-item.sev-critical { border-left-color: var(--c-danger); }
.theme-duck .pr-item.sev-high { border-left-color: var(--ui-warning-d); }
.theme-duck .pr-item.sev-medium { border-left-color: var(--c-accent); }
.theme-duck .pr-item.sev-low { border-left-color: var(--c-ink-muted); }
.theme-duck .pr-item:hover { background: var(--c-line-soft); }
.theme-duck .pr-item-head {
    display: flex; gap: 14px; align-items: baseline; cursor: pointer;
}
.theme-duck .pr-item-head .sev {
    font-family: var(--f-body); font-size: 10px;
    padding: 3px 8px; letter-spacing: 0.14em; text-transform: uppercase;
    background: var(--c-line-soft); color: var(--c-ink-muted);
    flex-shrink: 0; font-weight: 600;
}
.theme-duck .pr-item.sev-critical .sev { background: var(--ui-error-bg); color: var(--c-danger); }
.theme-duck .pr-item.sev-high .sev { background: var(--ui-warning-bg); color: var(--ui-warning-d); }
.theme-duck .pr-item.sev-medium .sev { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.theme-duck .pr-item-head h4 { font-size: 18px; flex: 1; font-weight: 500; }
.theme-duck .pr-item-head i { color: var(--c-ink-muted); transition: transform var(--tr); }
.theme-duck .pr-item.is-open .pr-item-head i { transform: rotate(90deg); }
.theme-duck .pr-item-body {
    max-height: 0; overflow: hidden;
    transition: max-height 400ms ease, padding 200ms ease;
    font-size: 13px; color: var(--c-ink);
}
.theme-duck .pr-item.is-open .pr-item-body { max-height: 1500px; padding-top: 16px; }
.theme-duck .pr-item-body .field-label {
    color: var(--c-accent); margin-top: 14px; margin-bottom: 4px;
}
.theme-duck .pr-item-body pre {
    background: var(--c-ink); color: var(--ui-bg-soft);
    padding: 12px 14px; font-size: 12px; line-height: 1.55;
    margin-top: 4px; white-space: pre-wrap;
    border-radius: 0;
}

/* ===== Project list card ===== */
.theme-duck .pj-card {
    background: var(--c-paper); border: 1px solid var(--c-line);
    padding: 24px; display: block;
    text-decoration: none; color: var(--c-ink);
    transition: all var(--tr); position: relative;
}
.theme-duck .pj-card:hover {
    border-color: var(--c-ink);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--c-ink);
}
.theme-duck .pj-card .pj-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; margin-bottom: 10px;
}
.theme-duck .pj-card h3 { font-size: 22px; margin-bottom: 2px; }
.theme-duck .pj-card .pj-idea { font-size: 12px; color: var(--c-ink-muted); margin-bottom: 18px; line-height: 1.55; }
.theme-duck .pj-card .pj-status {
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.16em;
    padding: 3px 8px; font-weight: 600;
}
.theme-duck .pj-status.s-draft { background: var(--c-line-soft); color: var(--c-ink-muted); }
.theme-duck .pj-status.s-progress { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.theme-duck .pj-status.s-completed { background: var(--ui-success-bg); color: var(--c-success); }
.theme-duck .pj-status.s-archived { background: var(--c-line); color: var(--c-ink-muted); }
.theme-duck .pj-card .pj-progress {
    height: 3px; background: var(--c-line); position: relative; margin-bottom: 10px;
}
.theme-duck .pj-card .pj-progress .fill { height: 100%; background: var(--c-accent); transition: width .3s; }
.theme-duck .pj-card .pj-meta {
    display: flex; justify-content: space-between; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.14em; color: var(--c-ink-muted);
    flex-wrap: wrap; gap: 8px;
}

.theme-duck .pj-card-wrap { position: relative; }
.theme-duck .pj-actions {
    position: absolute; top: 16px; right: 16px;
    z-index: 5;
}
.theme-duck .pj-actions-btn {
    background: var(--c-paper); border: 1px solid var(--c-line);
    width: 32px; height: 32px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-ink-muted); transition: all var(--tr);
}
.theme-duck .pj-actions-btn:hover {
    border-color: var(--c-ink); color: var(--c-ink); background: var(--c-bg);
}
.theme-duck .pj-actions-menu {
    position: absolute; right: 0; top: calc(100% + 4px);
    list-style: none; margin: 0; padding: 4px;
    background: var(--c-paper); border: 1px solid var(--c-ink);
    box-shadow: 4px 4px 0 var(--c-ink);
    min-width: 200px;
    z-index: 50;
}
.theme-duck .pj-actions-menu li form { margin: 0; }
.theme-duck .pj-actions-menu button {
    width: 100%; text-align: left; padding: 8px 12px;
    background: transparent; border: 0; cursor: pointer;
    font-family: var(--f-body); font-size: 12px; color: var(--c-ink);
    display: flex; align-items: center; gap: 10px;
    transition: background var(--tr);
}
.theme-duck .pj-actions-menu button:hover { background: var(--c-line-soft); }
.theme-duck .pj-actions-menu button.is-danger { color: var(--c-danger); }
.theme-duck .pj-actions-menu button.is-danger:hover { background: var(--ui-error-bg); }
.theme-duck .pj-actions-menu i { width: 14px; }

/* Empty state */
.theme-duck .duck-empty {
    border: 1px dashed var(--c-line); padding: 56px 32px;
    text-align: center; color: var(--c-ink-muted);
}
.theme-duck .duck-empty .big-num {
    font-family: var(--f-display); font-weight: 700; font-size: 64px;
    color: var(--c-line); letter-spacing: -0.03em; margin-bottom: 12px;
}
.theme-duck .duck-empty h3 { color: var(--c-ink); margin-bottom: 6px; font-size: 24px; }

/* Summary sections */
.theme-duck .sm-section { margin-bottom: 40px; }
.theme-duck .sm-section > h2 {
    font-size: clamp(22px, 2vw, 28px); margin-bottom: 18px;
    padding-bottom: 8px; border-bottom: 1px solid var(--c-line);
}
.theme-duck .sm-rec-card {
    background: var(--c-paper); border: 1px solid var(--c-line);
    padding: 20px 22px;
}
.theme-duck .sm-rec-card h4 {
    font-size: 20px; margin-bottom: 2px;
}
.theme-duck .sm-rec-card .sm-kind {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--c-accent); margin-bottom: 10px; font-weight: 600;
}
.theme-duck .sm-rec-card .sm-reasons {
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--c-line);
    list-style: none; padding-left: 0; font-size: 12px; color: var(--c-ink);
}
.theme-duck .sm-rec-card .sm-reasons li { padding: 3px 0; }
.theme-duck .sm-rec-card .sm-reasons li::before {
    content: "→ "; color: var(--c-accent); font-weight: 600;
}
.theme-duck .sm-rec-card .sm-alt {
    font-size: 11px; color: var(--c-ink-muted); margin-top: 10px;
    text-transform: uppercase; letter-spacing: 0.12em;
}
.theme-duck .sm-diagram {
    border: 1px solid var(--c-line); padding: 32px; background: var(--c-paper);
    overflow-x: auto;
}

/* Profile ===== */
.theme-duck .pf-head {
    display: flex; align-items: center; gap: 28px;
    padding: 40px 0; border-bottom: 1px solid var(--c-line); margin-bottom: 32px;
}
.theme-duck .pf-avatar {
    width: 96px; height: 96px; background: var(--c-ink); color: var(--c-bg);
    font-family: var(--f-display); font-weight: 700; font-size: 48px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; letter-spacing: -0.02em;
}
.theme-duck .pf-info h1 { font-size: 40px; margin-bottom: 4px; }
.theme-duck .pf-info .pf-email { font-size: 13px; color: var(--c-ink-muted); }
.theme-duck .pf-info .pf-meta {
    display: flex; gap: 18px; font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--c-ink-muted); margin-top: 14px;
}
.theme-duck .pf-columns {
    display: grid; grid-template-columns: 1fr 320px; gap: 48px;
}
.theme-duck .pf-stat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
    margin-bottom: 32px;
}
.theme-duck .pf-stat-cell {
    padding: 20px; border-right: 1px solid var(--c-line);
}
.theme-duck .pf-stat-cell:last-child { border-right: 0; }
.theme-duck .pf-stat-cell .v {
    font-family: var(--f-display); font-weight: 700; font-size: 36px;
    line-height: 1; letter-spacing: -0.02em;
}
.theme-duck .pf-stat-cell .l {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--c-ink-muted); margin-top: 4px;
}

@media (max-width: 768px) {
    .theme-duck .pf-columns { grid-template-columns: 1fr; }
    .theme-duck .duck-page { padding: 24px 20px 40px; }
    .theme-duck .duck-page-head { flex-direction: column; align-items: stretch; }
}

/* ===== Catalog detail modal ===== */
.tech-card { cursor: pointer; }
.theme-duck .duck-modal-back {
    position: fixed; inset: 0; background: rgba(15, 15, 15, 0.7);
    z-index: 1050; display: none;
    backdrop-filter: blur(4px);
    opacity: 0;
}
.theme-duck .duck-modal-back.is-open { display: flex; align-items: flex-start; justify-content: center; padding: 5vh 24px; overflow-y: auto; }
.theme-duck .duck-modal {
    background: var(--c-bg);
    width: 100%; max-width: 880px;
    border: 1px solid var(--c-line);
    box-shadow: 8px 8px 0 var(--c-ink);
    position: relative;
    transform: translateY(30px); opacity: 0;
}
.theme-duck .duck-modal-thumb {
    aspect-ratio: 16/9; background: linear-gradient(180deg, var(--ui-bg-soft), var(--ui-line));
    border-bottom: 1px solid var(--c-line);
    overflow: hidden;
}
.theme-duck .duck-modal-thumb svg { width: 100%; height: 100%; display: block; }
.theme-duck .duck-modal-body { padding: 32px 40px 40px; }
.theme-duck .duck-modal-body .kind {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--c-accent); font-weight: 600; margin-bottom: 8px;
}
.theme-duck .duck-modal-body h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.theme-duck .duck-modal-body .short {
    font-size: 14px; color: var(--c-ink); line-height: 1.55; margin-bottom: 8px;
}
.theme-duck .duck-modal-body .long {
    font-size: 13px; color: var(--c-ink-muted); line-height: 1.65; margin-bottom: 24px;
}
.theme-duck .duck-modal-pc {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px;
}
.theme-duck .duck-modal-pc .h {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
    margin-bottom: 8px; font-weight: 600;
}
.theme-duck .duck-modal-pc .pros .h { color: var(--c-success); }
.theme-duck .duck-modal-pc .cons .h { color: var(--c-danger); }
.theme-duck .duck-modal-pc .body {
    font-size: 13px; color: var(--c-ink); line-height: 1.55;
    padding: 14px 16px; background: var(--c-paper); border: 1px solid var(--c-line);
}
.theme-duck .duck-modal-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
    margin-bottom: 24px;
}
.theme-duck .duck-modal-stats .cell {
    padding: 16px 18px; border-right: 1px solid var(--c-line);
}
.theme-duck .duck-modal-stats .cell:last-child { border-right: 0; }
.theme-duck .duck-modal-stats .v {
    font-family: var(--f-display); font-weight: 700; font-size: 22px;
    line-height: 1; letter-spacing: -0.02em;
}
.theme-duck .duck-modal-stats .l {
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--c-ink-muted); margin-top: 4px;
}
.theme-duck .duck-modal-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px;
}
.theme-duck .duck-modal-tag {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
    padding: 3px 9px; background: var(--c-line-soft); color: var(--c-ink-muted);
}
.theme-duck .duck-modal-actions {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid var(--c-line);
}
.theme-duck .duck-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px;
    background: var(--c-paper); border: 1px solid var(--c-ink);
    cursor: pointer; font-family: var(--f-body); font-size: 14px;
    z-index: 2; transition: all var(--tr);
}
.theme-duck .duck-modal-close:hover { background: var(--c-ink); color: var(--c-bg); }

@media (max-width: 768px) {
    .theme-duck .duck-modal-pc { grid-template-columns: 1fr; }
    .theme-duck .duck-modal-stats { grid-template-columns: repeat(2, 1fr); }
    .theme-duck .duck-modal-stats .cell:nth-child(2n) { border-right: 0; }
    .theme-duck .duck-modal-stats .cell:nth-child(3),
    .theme-duck .duck-modal-stats .cell:nth-child(4) { border-top: 1px solid var(--c-line); }
    .theme-duck .duck-modal-body { padding: 24px 20px; }
}

/* =================================================================
   STACK PAGE (Faz 2 — auto-composed stack proposal)
   ================================================================= */
.stack-shell {
    max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px;
    position: relative; /* anchor for SVG hover-link overlay */
}

/* F2.1 — SVG overlay for compat hover-link arcs */
.stack-edges-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}
.stack-card { position: relative; z-index: 2; transition: border-color .15s, box-shadow .15s; }
.stack-card.is-edge-source {
    border-color: var(--c-ink) !important;
    box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}
.stack-card.is-edge-target {
    border-color: var(--c-accent) !important;
    box-shadow: 0 0 0 2px var(--c-accent-soft);
}
.edge-line { transition: opacity .15s; }
@media (max-width: 768px) {
    /* Hover-link disabled on touch — saves perf, hover doesn't exist meaningfully */
    .stack-edges-overlay { display: none; }
}

/* ----- F2.7 Stack Health bar ----- */
.stack-health {
    margin: 0 0 24px;
    padding: 18px 22px;
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--c-line);
    border-radius: 6px;
}
.stack-health.is-healthy { border-left-color: var(--c-success); }
.stack-health.is-mediocre { border-left-color: #d97706; }
.stack-health.is-weak { border-left-color: var(--c-danger); }

.stack-health .health-summary {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 12px;
}
.stack-health .health-score {
    display: flex; align-items: baseline; gap: 4px;
    font-family: var(--f-display);
}
.stack-health .score-num { font-size: 44px; line-height: 1; color: var(--c-ink); }
.stack-health.is-healthy .score-num { color: var(--c-success); }
.stack-health.is-mediocre .score-num { color: #d97706; }
.stack-health.is-weak .score-num { color: var(--c-danger); }
.stack-health .score-suffix { font-size: 16px; color: var(--c-ink-muted); }

.stack-health .health-meta { flex: 1; }
.stack-health .health-label {
    font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--c-ink);
}
.stack-health .health-detail {
    font-size: 12px; color: var(--c-ink-muted); margin-top: 2px;
}

.stack-health .health-bar {
    height: 6px; background: var(--c-line-soft); border-radius: 3px;
    overflow: hidden;
}
.stack-health .health-fill {
    height: 100%;
    background: var(--c-line); transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.stack-health.is-healthy .health-fill { background: var(--c-success); }
.stack-health.is-mediocre .health-fill { background: #d97706; }
.stack-health.is-weak .health-fill { background: var(--c-danger); }

.stack-health .health-edges {
    margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--c-line);
}
.stack-health .health-edges summary {
    cursor: pointer; font-size: 11px; text-transform: uppercase;
    letter-spacing: .12em; color: var(--c-ink-muted);
    list-style: none;
}
.stack-health .health-edges summary::-webkit-details-marker { display: none; }
.stack-health .edges-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px;
}
.stack-health .edges-col { font-size: 12px; }
.stack-health .edges-title {
    font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
    color: var(--c-ink-muted); margin-bottom: 6px;
}
.stack-health .edges-col ul { margin: 0; padding: 0; list-style: none; }
.stack-health .edges-col li { padding: 3px 0; line-height: 1.4; }
.stack-health .edge-score {
    font-family: var(--f-body); color: var(--c-ink-muted); font-size: 11px;
    margin-left: 6px;
}

/* ----- F2.4 Grouped sections ----- */
.stack-group {
    margin-bottom: 36px;
}
.stack-group-head {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--c-line);
}
.stack-group-head > i {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-line-soft); color: var(--c-ink);
    border-radius: 6px; font-size: 18px;
    flex-shrink: 0;
}
.stack-group-head h2 {
    margin: 0; font-size: 22px; line-height: 1.2;
}
.stack-group-head .group-subtitle {
    margin: 2px 0 0; font-size: 12px; color: var(--c-ink-muted);
}
.stack-group[data-family="data"] .stack-group-head > i { background: #e0f2fe; color: #075985; }
.stack-group[data-family="backend"] .stack-group-head > i { background: #fef3c7; color: #92400e; }
.stack-group[data-family="frontend"] .stack-group-head > i { background: #fce7f3; color: #9f1239; }
.stack-group[data-family="ops"] .stack-group-head > i { background: #ddd6fe; color: #5b21b6; }
.stack-group[data-family="integration"] .stack-group-head > i { background: #dcfce7; color: #166534; }
.stack-group[data-family="philosophy"] .stack-group-head > i { background: #f3f4f6; color: #374151; }

/* Card kind icon + asset fallback (Sprint 1) */
.stack-card .card-kind i {
    margin-right: 4px; opacity: .65;
}
.stack-card .card-desc-fallback {
    color: var(--c-ink-muted); font-style: italic;
    display: flex; gap: 6px; align-items: start;
}
.stack-card .card-desc-fallback i { margin-top: 3px; flex-shrink: 0; }

@media (max-width: 768px) {
    .stack-shell { padding: 18px 14px 60px; }
    .stack-title h1 { font-size: 24px; }
    .stack-title .lead { font-size: 13px; }
    .stack-health { padding: 14px 16px; }
    .stack-health .health-summary { flex-wrap: wrap; gap: 12px; }
    .stack-health .score-num { font-size: 36px; }
    .stack-health .edges-grid { grid-template-columns: 1fr; }
    .stack-rationale { padding: 12px 14px; }
    .stack-group { margin-bottom: 24px; }
    .stack-group-head { gap: 12px; }
    .stack-group-head h2 { font-size: 18px; }
    .stack-group-head .group-subtitle { font-size: 11px; }
    .stack-group-head > i { width: 32px; height: 32px; font-size: 14px; }
    .stack-card { padding: 14px; }
    .stack-card .card-tech-name { font-size: 16px; }
    .stack-card > footer { gap: 6px; }
    .stack-card > footer .btn-duck { flex: 1 1 auto; min-width: 0; }
    .stack-finish-form .btn-duck { font-size: 13px; padding: 12px 18px; width: 100%; }
}
@media (max-width: 480px) {
    .stack-shell { padding: 14px 10px 50px; }
    .stack-title h1 { font-size: 20px; }
    .stack-card .card-reasons summary { font-size: 10px; }
    .stack-card .card-reasons ul { padding-left: 14px; }
}

.stack-head { margin-bottom: 32px; }
.stack-head .back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--c-ink-muted); text-decoration: none;
    font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
    margin-bottom: 18px;
    transition: color .15s;
}
.stack-head .back-link:hover { color: var(--c-ink); }
.stack-title .eyebrow { display: block; margin-bottom: 6px; }
.stack-title h1 { font-size: 36px; margin: 0 0 8px; }
.stack-title .lead { color: var(--c-ink-muted); max-width: 64ch; }

.stack-rationale {
    margin: 0 0 28px; padding: 16px 20px;
    background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 6px;
}
.stack-rationale h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .15em; color: var(--c-ink-muted); margin: 0 0 10px; }
.stack-rationale .rationale-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.stack-rationale .rationale-list li {
    display: flex; align-items: start; gap: 8px;
    font-size: 13px; line-height: 1.5;
}
.stack-rationale .rationale-list i { color: var(--c-success); margin-top: 3px; flex-shrink: 0; }

.stack-grid {
    display: grid; gap: 14px;
    /* min(300px, 100%) → grid never demands more width than the container,
       so a 360px phone with 24px padding shows 1 column instead of overflowing. */
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    margin-bottom: 32px;
}
.stack-card {
    display: flex; flex-direction: column;
    padding: 16px; gap: 10px;
    background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 6px;
    transition: border-color .15s, background .3s;
}
.stack-card:hover { border-color: var(--c-ink-muted); }
.stack-card.is-locked { border-color: var(--c-accent); }
.stack-card.is-skipped { opacity: .55; }
/* Menemen modeli: user pressed "Kapat" — distinct from auto-skipped (dashed border,
   not just opacity) so the user knows this is *their* decision and reversible. */
.stack-card.is-user-disabled {
    opacity: 1;
    border-style: dashed;
    border-color: var(--c-ink-muted);
    background: repeating-linear-gradient(
        135deg,
        var(--c-paper) 0 14px,
        var(--c-line-soft) 14px 15px
    );
}
.stack-card.is-just-updated {
    background: var(--c-accent-soft);
    animation: stack-pulse 1.4s ease-out;
}
@keyframes stack-pulse {
    0% { background: var(--c-accent-soft); border-color: var(--c-accent); }
    100% { background: var(--c-paper); border-color: var(--c-line); }
}
.stack-card > header {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.stack-card .card-kind {
    font-size: 11px; text-transform: uppercase; letter-spacing: .15em;
    color: var(--c-ink-muted);
}
.stack-card .card-state {
    font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
    padding: 2px 8px; border-radius: 999px;
    background: var(--c-line-soft); color: var(--c-ink-muted);
}
.stack-card .card-state.is-locked {
    background: var(--c-accent); color: var(--c-paper);
}
/* "Otomatik" rozet — soft accent, signals "we inferred this for you" without
   shouting like the locked badge does. */
.stack-card .card-state.is-auto {
    background: var(--c-accent-soft);
    color: var(--c-accent);
    border: 1px solid var(--c-accent);
}
.stack-card .card-state.is-auto i { margin-right: 4px; }
/* User-disabled badge — neutral red-tinted, mirrors the dashed border. */
.stack-card .card-state.is-user-disabled {
    background: transparent;
    color: var(--c-ink);
    border: 1px dashed var(--c-ink-muted);
}
.stack-card .card-state.is-user-disabled i { margin-right: 4px; }
/* "Kapat" button — destructive-ish but ghost so it doesn't compete with "Değiştir". */
.stack-card .card-disable-btn {
    margin-left: auto;     /* push to far right of footer */
    color: var(--c-ink-muted);
}
.stack-card .card-disable-btn:hover {
    color: var(--c-paper);
    background: var(--c-ink);
    border-color: var(--c-ink);
}
.stack-card .card-tech-name { font-size: 18px; margin: 4px 0; }
.stack-card .card-desc { font-size: 12px; color: var(--c-ink-muted); margin: 0; line-height: 1.5; }
.stack-card .skip-reason { font-size: 12px; color: var(--c-ink-muted); margin: 0; font-style: italic; }
.stack-card .card-reasons {
    border-top: 1px dashed var(--c-line); padding-top: 8px; margin-top: 4px;
}
.stack-card .card-reasons summary {
    cursor: pointer; font-size: 11px; color: var(--c-ink-muted);
    text-transform: uppercase; letter-spacing: .1em;
    list-style: none;
}
.stack-card .card-reasons summary::-webkit-details-marker { display: none; }
.stack-card .card-reasons summary i { margin-right: 4px; }
.stack-card .card-reasons ul {
    margin: 8px 0 0; padding: 0 0 0 16px;
    font-size: 12px; line-height: 1.55;
}
/* F2.2 trace lines: "🎯 'X cevabın' bu seçimi tetikledi" — distinct softer color
   so non-trace lines (matches, compat) read as primary. */
.stack-card .card-reasons li.reason-trace {
    list-style: none;
    margin-left: -16px;
    padding: 4px 8px;
    background: var(--c-accent-soft);
    border-left: 2px solid var(--c-accent);
    color: var(--c-ink);
    font-size: 11.5px;
    margin-top: 4px;
    border-radius: 0 3px 3px 0;
}
.stack-card > footer {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto;
    padding-top: 8px; border-top: 1px solid var(--c-line-soft);
}

.stack-foot {
    display: flex; justify-content: center; padding: 24px 0;
    border-top: 1px solid var(--c-line); margin-top: 24px;
}
.stack-finish-form .btn-duck { font-size: 15px; padding: 14px 28px; }

/* ----- Alternatives sheet (Faz 3) ----- */
.alt-sheet {
    position: fixed; inset: 0; z-index: 100;
    display: flex; justify-content: flex-end;
}
.alt-sheet[hidden] { display: none; }
.alt-sheet-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.4);
    animation: fade-in .2s ease-out;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.alt-sheet-panel {
    position: relative; width: min(560px, 92vw); height: 100%;
    background: var(--c-paper); border-left: 1px solid var(--c-line);
    display: flex; flex-direction: column;
    animation: slide-in .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.alt-sheet-panel > header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--c-line);
}
.alt-sheet-panel > header h2 { font-size: 18px; margin: 0; }
.alt-sheet-panel .btn-icon {
    background: transparent; border: 0; padding: 6px 8px;
    color: var(--c-ink-muted); cursor: pointer; border-radius: 4px;
}
.alt-sheet-panel .btn-icon:hover { background: var(--c-line-soft); color: var(--c-ink); }
/* F3.3 — sheet filter bar (search + tag chips) */
.alt-filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--c-line);
    background: var(--c-bg);
    transition: background .15s, border-color .15s;
}
.alt-filter-bar.is-active {
    background: var(--c-accent-soft);
    border-bottom-color: var(--c-accent);
}
.alt-search {
    position: relative;
    flex: 1 1 100%; min-width: 0;
    display: flex; align-items: center;
}
.alt-search > i.fa-magnifying-glass {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    color: var(--c-ink-muted); pointer-events: none; font-size: 12px;
}
.alt-search-input {
    width: 100%;
    padding: 8px 28px 8px 30px;
    border: 1px solid var(--c-line);
    border-radius: 4px;
    background: var(--c-paper);
    color: var(--c-ink);
    font: inherit; font-size: 13px;
    outline: none;
    transition: border-color .15s;
}
.alt-search-input:focus { border-color: var(--c-accent); }
.alt-search-clear {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; padding: 4px 6px;
    color: var(--c-ink-muted); cursor: pointer; font-size: 11px; border-radius: 3px;
}
.alt-search-clear:hover { color: var(--c-ink); background: rgba(0,0,0,.05); }
.alt-tag-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    flex: 1 1 100%;
}
.alt-tag-chip {
    display: inline-flex; align-items: center;
    padding: 3px 9px;
    background: transparent;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    color: var(--c-ink-muted);
    font: inherit; font-size: 11px;
    text-transform: lowercase;
    cursor: pointer;
    transition: all .15s;
}
.alt-tag-chip:hover { color: var(--c-ink); border-color: var(--c-ink); }
.alt-tag-chip.is-active {
    background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink);
}
.alt-filter-count {
    flex: 0 0 auto;
    font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
    color: var(--c-ink-muted);
    margin-left: auto;
}

.alt-sheet-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.alt-sheet-loading { color: var(--c-ink-muted); font-size: 12px; }
.alt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.alt-item {
    padding: 14px; border: 1px solid var(--c-line); border-radius: 6px;
    background: var(--c-paper); transition: border-color .15s;
}
.alt-item:hover { border-color: var(--c-ink-muted); }
.alt-item.is-current { border-color: var(--c-accent); background: var(--c-accent-soft); }
.alt-item-head {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 6px;
}
.alt-name { font-weight: 600; font-size: 14px; }
.alt-tier {
    font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
    padding: 2px 6px; border-radius: 3px;
}
.alt-tier-1 { background: var(--ui-success-bg); color: var(--ui-success-d); }
.alt-tier-2 { background: var(--c-line-soft); color: var(--c-ink-muted); }
.alt-tier-3 { background: var(--ui-accent-bg); color: var(--ui-accent-d); }
.alt-current-badge {
    font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
    color: var(--c-accent-ink);
}

/* F3.1 — Delta + best alternative badges */
.alt-best-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
    background: #fef3c7; color: #92400e;
    padding: 2px 8px; border-radius: 999px;
    font-weight: 600;
}
.alt-delta {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: 4px;
    margin-left: auto; /* push to right */
    font-variant-numeric: tabular-nums;
}
.alt-delta.is-up { background: #dcfce7; color: #166534; }
.alt-delta.is-down { background: #fee2e2; color: #991b1b; }
.alt-delta.is-zero { background: var(--c-line-soft); color: var(--c-ink-muted); }
.alt-delta i { font-size: 10px; }

.alt-item.is-best {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.12);
}
.alt-item.is-warn {
    background: #fef9f3;
    border-color: #fed7aa;
}
.alt-warn-note {
    display: flex; align-items: start; gap: 6px;
    margin: 8px 0;
    padding: 8px 10px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    color: #78350f;
    font-size: 11px; line-height: 1.4;
}
.alt-warn-note i { margin-top: 2px; flex-shrink: 0; }
.alt-desc { font-size: 12px; color: var(--c-ink-muted); margin: 0 0 8px; line-height: 1.5; }
.alt-reasons { margin: 0 0 10px; padding: 0 0 0 16px; font-size: 11px; line-height: 1.5; color: var(--c-ink-muted); }
.alt-actions { margin-top: 8px; }
.alt-current-note { font-size: 11px; color: var(--c-ink-muted); font-style: italic; }
.alt-error, .alt-empty { color: var(--c-ink-muted); font-size: 13px; padding: 12px; }

/* Cascade-update toast */
.stack-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    padding: 10px 18px;
    background: var(--c-ink); color: var(--c-bg);
    border-radius: 6px;
    font-size: 13px;
    display: flex; align-items: center; gap: 10px;
    opacity: 0;
    transition: all .35s cubic-bezier(.2,.8,.2,1);
    z-index: 200;
    pointer-events: none;
}
.stack-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 768px) {
    .stack-shell { padding: 20px 16px 60px; }
    .stack-title h1 { font-size: 26px; }
    .stack-grid { grid-template-columns: 1fr; }
    .alt-sheet-panel { width: 100%; }
}



/* ============================================================
   DUCK-ONLY MOD — Bootstrap kapalı. Layout'ta hâlâ Bootstrap
   markup'u (.dropdown-menu, .dropdown-item) kullanan yerlere
   minimal native stiller. site-layout.js'deki dropdown shim
   ile birlikte çalışır. JS .show class'ı ekler/çıkarır.
   ============================================================ */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 12rem;
    padding: 6px 0;
    margin: 4px 0 0;
    list-style: none;
    background: var(--c-paper, #fff);
    color: var(--c-ink, #1a0844);
    border: 1px solid var(--c-line, #1a0844);
    border-radius: 6px;
    box-shadow: 4px 4px 0 var(--c-line-soft, #1a084422);
}
.dropdown-menu.show { display: block; }
.dropdown-menu-end { left: auto; right: 0; }
.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    color: var(--c-ink, #1a0844);
    text-decoration: none;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--c-line-soft, rgba(26,8,68,.06));
    color: var(--c-accent, #7c5cff);
}
.dropdown-item.active {
    background: var(--c-accent, #7c5cff);
    color: var(--c-paper, #fff);
}
