/* Wagenadler üye paneli ve demo. Harici font/CDN yok (CSP + gizlilik); sistem yazı tipi yığını.
   Renk sistemi: marka (derin orman yeşili) + kartal sarısı vurgu; anlam renkleri good/warn/bad/info; açık ve koyu tema
   aynı belirteç adlarıyla. Bileşen sınıf adları app.js/admin.js ve testlerle paylaşılır; değiştirme. */
:root {
  color-scheme: light dark;
  --bg: #f3f4f1;
  --bg-deep: #e9ece6;
  --surface: #ffffff;
  --surface-2: #eff1ec;
  --surface-3: #e4e8e1;
  --text: #15201c;
  --text-soft: #30403a;
  --muted: #5b6963;
  --line: #dde2dc;
  --line-strong: #c2cbc4;
  --brand: #0f3d3a;
  --brand-strong: #0a2d2b;
  --brand-soft: #dfeee9;
  --brand-tint: #f0f6f3;
  --on-brand: #ffffff;
  --accent: #c98a0a;
  --accent-soft: #fbf0d4;
  --good: #11704b;
  --good-soft: #dff3e8;
  --warn: #8a5800;
  --warn-soft: #fbeed2;
  --bad: #b3261e;
  --bad-soft: #fde7e4;
  --bad-line: #efb5ad;
  --info: #255a86;
  --info-soft: #e3edf7;
  --focus: #1d63d8;
  --shadow-sm: 0 1px 2px rgb(20 32 26 / 6%);
  --shadow: 0 1px 2px rgb(20 32 26 / 5%), 0 6px 20px rgb(20 32 26 / 7%);
  --shadow-lg: 0 24px 60px rgb(20 32 26 / 18%);
  --scroll-shade: rgb(16 24 20 / 22%);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1211;
    --bg-deep: #090d0c;
    --surface: #151b19;
    --surface-2: #1c2422;
    --surface-3: #242e2b;
    --text: #e6ece8;
    --text-soft: #c3ccc7;
    --muted: #97a39d;
    --line: #27312d;
    --line-strong: #3a4641;
    --brand: #4fc3a1;
    --brand-strong: #78d6ba;
    --brand-soft: #163a33;
    --brand-tint: #11231f;
    --on-brand: #06231b;
    --accent: #f0b940;
    --accent-soft: #3a2d10;
    --good: #5fd3a0;
    --good-soft: #15382a;
    --warn: #efbb5b;
    --warn-soft: #3a2c11;
    --bad: #ff8b7c;
    --bad-soft: #3e1d1a;
    --bad-line: #6b2c25;
    --info: #92bce8;
    --info-soft: #1a2a3a;
    --focus: #7fb0ff;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 6px 20px rgb(0 0 0 / 35%);
    --shadow-lg: 0 24px 60px rgb(0 0 0 / 55%);
    --scroll-shade: rgb(0 0 0 / 60%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); font-feature-settings: "tnum" 0; }
body.drawer-open { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 1.7rem; font-weight: 750; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; margin: 22px 0 8px; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 2px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }

.muted { color: var(--muted); }
.fineprint { color: var(--muted); font-size: .8rem; }
.eyebrow { color: var(--brand); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.field-hint { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.form-error { color: var(--bad); font-size: .875rem; min-height: 0; }
.form-error:empty { display: none; }

/* Düğmeler */
.primary, .secondary, .text-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.primary { background: var(--brand); color: var(--on-brand); border: 1px solid var(--brand); padding: 10px 18px; box-shadow: var(--shadow-sm); }
.primary:hover:not(:disabled) { background: var(--brand-strong); border-color: var(--brand-strong); }
.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); padding: 9px 14px; }
.secondary:hover:not(:disabled) { border-color: var(--text); }
.text-button { background: none; border: 0; padding: 6px 4px; color: var(--muted); }
.text-button:hover { color: var(--text); text-decoration: underline; }
.icon-button { width: 40px; height: 40px; padding: 0; background: var(--surface); border: 1px solid var(--line); font-size: 1.4rem; line-height: 1; color: var(--text); }
.primary.small { padding: 7px 12px; font-size: .875rem; }
.wide { width: 100%; }
.text-link { display: inline-block; margin-top: 14px; font-weight: 600; }
.text-link.small { margin: 0; padding: 0; border: 0; background: none; font-size: .8rem; font-weight: 600; color: var(--brand); cursor: pointer; }
.text-link.small:hover { text-decoration: underline; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.boot-status { padding: 40px 16px; text-align: center; color: var(--muted); }

/* Bildirim: açık dialogun içine taşındığında da en üstte görünür. */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; width: max-content; max-width: calc(100vw - 32px);
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: .9rem; overflow-wrap: anywhere; }

/* Marka: kartal işareti (inline SVG) + yazı. */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.025em; }
.brand-logo { width: 30px; height: 30px; flex: none; color: var(--brand); fill: currentColor; }
.brand-beak { fill: var(--accent); }
.brand-name { line-height: 1; }
.brand-hero { font-size: 1.35rem; }
.brand-hero .brand-logo { width: 38px; height: 38px; }

/* Giriş ekranı */
.welcome { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.intro { display: flex; flex-direction: column; gap: 32px; padding: 36px clamp(20px, 5vw, 72px); color: var(--text);
  background: radial-gradient(900px 500px at 10% -10%, var(--brand-soft), transparent 70%), radial-gradient(600px 400px at 100% 110%, var(--accent-soft), transparent 70%), var(--brand-tint); }
.intro-copy { margin: auto 0; max-width: 600px; display: grid; gap: 18px; }
.intro-copy h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing: -0.035em; line-height: 1.05; }
.intro-lead { color: var(--text-soft); font-size: 1.08rem; line-height: 1.55; max-width: 540px; }
.intro-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.intro-points li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.intro-points li > div { display: grid; gap: 2px; min-width: 0; }
.intro-points span { color: var(--muted); font-size: .88rem; }
.point-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 1rem; }
.intro-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; font-size: .92rem; }
.auth-wrap { display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.auth-card h2 { font-size: 1.4rem; }
.auth-card form { display: grid; gap: 10px; margin-top: 6px; }
.auth-field { display: grid; gap: 6px; }
.auth-card label { font-size: .85rem; font-weight: 650; color: var(--text-soft); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.auth-card input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.auth-card input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.auth-card .primary { margin-top: 8px; min-height: 46px; }
.auth-note { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.auth-notice { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); font-size: .875rem; line-height: 1.45; }
.auth-notice[data-kind="ok"] { background: var(--good-soft); color: var(--good); }
.auth-notice[data-kind="error"] { background: var(--bad-soft); color: var(--bad); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 6px; }
.tabs button { border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 650; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Demo şeridi */
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 10px 16px; background: var(--info-soft); color: var(--info); font-size: .875rem; text-align: center; }
.demo-banner-link { font-weight: 700; color: inherit; }

/* Uygulama iskeleti */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; min-height: var(--header-h); padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.view-nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.view-nav::-webkit-scrollbar { display: none; }
.nav-item { border: 0; background: none; padding: 8px 13px; border-radius: 999px; color: var(--muted); font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item.active { color: var(--brand); background: var(--brand-soft); }
/* Kaydırma kabında dış halka kırpılır; odak halkası içe çizilir. */
.view-nav .nav-item:focus-visible { outline-offset: -2px; }
.account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.plan { display: grid; text-align: right; line-height: 1.25; }
.plan-caption { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.plan strong { font-size: .85rem; }
.plan-until { font-size: .75rem; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 750; flex: none; }
.account-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .85rem; }
.content { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px; min-width: 0; }
/* Datenschutz/Impressum bağlantıları: giriş ekranı ve alt bilgi (küçük, metin rengi). */
.legal-links a { color: inherit; }
.legal-links a:hover { color: var(--text); }
.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-brand { font-weight: 750; color: var(--text); letter-spacing: -0.02em; }

/* Bekleme ekranı: kayıt başvurusu (doğrulama → onay), süresiz ya da süresi dolmuş hesap. */
.gate { max-width: 560px; margin: 48px auto; text-align: center; display: grid; gap: 12px; justify-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 28px; box-shadow: var(--shadow); }
.gate p:not(.eyebrow) { color: var(--muted); }
.gate-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 1.5rem; }
.gate-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; counter-reset: step; }
.gate-steps li { counter-increment: step; display: grid; gap: 6px; justify-items: center; padding: 12px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .8rem; color: var(--muted); background: var(--surface-2); }
.gate-steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); color: var(--muted); font-weight: 700; border: 1px solid var(--line-strong); }
.gate-steps li[data-state="done"] { color: var(--good); border-color: var(--good); background: var(--good-soft); }
.gate-steps li[data-state="done"]::before { content: "✓"; background: var(--good); color: var(--surface); border-color: var(--good); }
.gate-steps li[data-state="current"] { color: var(--text); border-color: var(--brand); background: var(--brand-tint); }
.gate-steps li[data-state="current"]::before { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }

/* Liste görünümü: masaüstünde sol filtre çubuğu, mobilde alttan açılan sayfa */
.listing-view { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.listing-view:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.filter-panel { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 80px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.sheet-grip { display: none; }
.filter-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 4px; }
.filter-head h2 { font-size: 1.05rem; }
.filter-close { display: none; }
.filter-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 8px 18px 18px; min-height: 0; flex: 1; }
.group-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 8px; }
.goals { display: grid; gap: 8px; margin-bottom: 6px; }
.goals .group-title { grid-column: 1 / -1; margin-bottom: 0; }
.goal { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); transition: border-color .15s, background .15s; }
.goal strong { font-size: .92rem; }
.goal span { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.goal:hover { border-color: var(--brand); }
.goal[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.goal[aria-pressed="true"] strong::after { content: " ✓"; color: var(--brand); }
.filters { display: grid; }
.filter-group { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 14px 0 0; min-width: 0; display: grid; gap: 8px; }
.filter-group legend { padding: 0; font-weight: 700; font-size: .92rem; float: left; width: 100%; }
.filter-group legend + * { clear: both; }
.group-hint { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.field-inline { grid-template-columns: 1fr 96px; align-items: center; gap: 10px; }
.filters input, .filters select, .sort-label select, .inline-form input, .admin-box select {
  width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.filters input:focus, .filters select:focus, .sort-label select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pill { min-height: 38px; padding: 6px 2px; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 650; font-size: .8rem; }
.pill[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.toggle-list { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { position: relative; display: inline-flex; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .85rem; background: var(--surface); }
.toggle input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 650; }
.toggle input:checked + span::before { content: "✓"; margin-right: 6px; }
.toggle input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.segmented label { position: relative; display: flex; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.segmented span { flex: 1; display: grid; place-items: center; min-height: 36px; padding: 4px 6px; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--muted); text-align: center; }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.more-filters { margin-top: 14px; border-top: 1px solid var(--line); }
.more-filters > summary { display: flex; align-items: center; gap: 8px; padding: 14px 0 2px; cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--brand); list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters > summary::after { content: "▾"; margin-left: auto; transition: transform .15s; }
.more-filters[open] > summary::after { transform: rotate(180deg); }
.filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.filter-footer .primary { flex: 1; min-width: 0; }
.sheet-only { display: none !important; }
[data-save-filters].is-dirty { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.filter-backdrop { display: none; }

.results { min-width: 0; }
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.results-title { min-width: 0; }
.results-title p { margin-top: 4px; }
.results-tools { display: flex; align-items: center; gap: 8px; }
.sort-label { display: block; }
.sort-label select { min-width: 200px; color: var(--text); font-size: .9rem; font-weight: 600; }
.filter-toggle { display: none; }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: .72rem; font-weight: 700; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 4px 6px 4px 12px; border: 0; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .82rem; font-weight: 650; }
.active-chip span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-chip span:last-child { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-size: 1rem; line-height: 1; }
.active-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.results-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 16px 0 12px; color: var(--muted); font-size: .875rem; }
#result-count { color: var(--text); font-weight: 650; }
.sync-status { display: inline-flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.sync-status[data-state="checking"] .status-dot, .sync-status[data-state="waiting"] .status-dot { background: var(--muted); }
.sync-status[data-state="error"] .status-dot, .sync-status[data-state="warning"] .status-dot { background: var(--warn); }
.listing-error { display: grid; gap: 8px; justify-items: start; padding: 16px; margin-bottom: 16px; background: var(--bad-soft); color: var(--bad); border-radius: var(--radius); }
.empty-state { text-align: center; padding: 56px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; gap: 6px; }
.empty-state h2 { color: var(--text); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0 8px; color: var(--muted); font-size: .9rem; }
.bottom-note { text-align: center; margin-top: 16px; }

/* İlan kartı */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.listing-grid[aria-busy="true"] { opacity: .6; transition: opacity .2s; }
.car-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s, border-color .18s; }
.car-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.car-card.is-risky { border-color: var(--bad-line); }
/* Görsel alanı sabit orandadır: görsel ve yer tutucu mutlak konumlu olduğu için fotoğrafın kendi
   boyutu (dikey, panorama, küçük) kutuyu büyütemez; yükleme sırasında düzen kaymaz. */
.car-media { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.car-media img, .car-media .image-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.car-media img { object-fit: cover; }
.image-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: .8rem; letter-spacing: .04em; background: linear-gradient(135deg, var(--surface-2), var(--brand-soft)); }
.save-button { z-index: 1; position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 92%); color: #1b2420; font-size: 1.2rem; display: grid; place-items: center; box-shadow: var(--shadow); }
.save-button.saved { background: var(--brand); color: #fff; }
.car-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; min-width: 0; }
.car-title { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.car-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
/* Fiyat değişimi: düşüş olumlu (yeşil), artış nötr; uzun metin dar ekranda alt satıra kayar. */
.price-change { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; max-width: 100%; }
.pc-down .badge-price { background: var(--good-soft); color: var(--good); }
.pc-up .badge-price { background: var(--surface-2); color: var(--muted); }
.price-was { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.car-price { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.car-price.missing-price { font-size: 1rem; color: var(--muted); font-weight: 600; }
.vb { font-size: .75rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; }
.deal { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.deal-main { font-weight: 700; }
.deal-sub { font-size: .8rem; color: var(--muted); }
.deal-below { background: var(--good-soft); }
.deal-below .deal-main { color: var(--good); font-size: 1.15rem; letter-spacing: -0.01em; }
.deal-above .deal-main { color: var(--muted); }
/* Fiyat çapraz kontrolü indirimi çürüttüğünde (U2): yeşil değil, nötr çerçeveli sönük kutu. */
.deal-doubt { background: var(--surface-2); border: 1px dashed var(--line-strong); }
.deal-doubt .deal-main { color: var(--muted); font-weight: 600; }
.deal-none { padding: 8px 12px; }
/* Otomatik yenileme şeridi (H4): yeni ilan var, liste yalnız tıklamayla yenilenir. */
.new-listings { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 12px; padding: 8px 12px;
  border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); font-weight: 600; }
.new-listings .text-button { color: var(--info); font-weight: 700; }
.deal-none .deal-main { font-weight: 500; font-size: .85rem; color: var(--muted); }
.car-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .85rem; color: var(--muted); }
.car-facts li { white-space: nowrap; }
.car-facts li:not(:last-child)::after { content: "·"; margin: 0 7px; color: var(--line-strong); }
.badges, .chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.badge, .tag { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--surface-2); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge.pending, .tag-warn { background: var(--warn-soft); color: var(--warn); }
.badge.rejected { background: var(--bad-soft); color: var(--bad); }
.acc-claimed_free { background: var(--good-soft); color: var(--good); }
.acc-unknown { background: var(--surface-2); color: var(--muted); }
.acc-damaged { background: var(--bad-soft); color: var(--bad); }
.acc-repaired { background: var(--warn-soft); color: var(--warn); }
.badge-risk { background: var(--bad); color: #fff; }
.badge-known { background: var(--info-soft); color: var(--info); }
.known-issue { cursor: help; }
.known-issue-more { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--info); color: var(--surface); font-size: .7rem; }
.chip { display: inline-block; max-width: 100%; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: .76rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-maengel, .chip-unfall { border-color: var(--bad-line); }
.chip-betrug { border-color: var(--bad); color: var(--bad); }
/* Fiyat gerekçesi uyarı tonunda; ikiz ve açıklama yokluğu kusur değil, sönük gösterilir. */
.chip-preis { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.chip-doppel, .chip-text { border-color: var(--line); background: var(--surface-2); color: var(--muted); }
.chip-model { border-style: dashed; border-color: var(--info); color: var(--info); }
.chip-prefix { font-weight: 700; }
.chip-more { color: var(--muted); }
.card-note { font-size: .8rem; color: var(--warn); }
/* Aynı aracın diğer ilanları */
.dup-note { font-size: .8rem; color: var(--info); overflow-wrap: anywhere; }

.dup-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; }
.dup-list a { color: var(--info); overflow-wrap: anywhere; }
.card-actions { margin-top: auto; padding-top: 4px; }
.card-link { width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: none; font-weight: 600; transition: border-color .15s, color .15s, background .15s; }
.card-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }

/* Detay dialogu */
dialog { border: 0; padding: 0; color: var(--text); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgb(10 16 13 / 55%); }
.detail-dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.small-dialog { width: min(520px, calc(100vw - 32px)); }
.dialog-close { position: sticky; top: 10px; z-index: 3; display: flex; margin: 10px 10px -50px auto; border-radius: 50%; box-shadow: var(--shadow); }
/* Detayda fotoğraf kırpılmaz (contain); alan sabit oranlı ve yüksekliği sınırlıdır. */
.detail-hero { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: min(420px, 60vh); overflow: hidden; background: var(--surface-2); }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.detail-body { display: grid; gap: 16px; padding: 24px; min-width: 0; }
.detail-body h1 { font-size: 1.45rem; overflow-wrap: anywhere; padding-right: 40px; }
.detail-price { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.detail-price .car-price { font-size: 1.75rem; }
.detail-price .price-change { display: flex; margin-top: 4px; }
.detail-section { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(136px, 100%), 1fr)); gap: 8px; margin: 0; }
.facts div { padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); min-width: 0; }
.facts dt { font-size: .75rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.reason-list, .feature-list, .evidence-list, .known-issue-list, .dup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reason { display: grid; gap: 2px; padding: 10px 12px; border-left: 3px solid var(--bad); background: var(--bad-soft); border-radius: 0 8px 8px 0; }
.reason span { font-size: .8rem; color: var(--muted); }
.reason-model { border-left-color: var(--info); background: var(--info-soft); }
.feature-list { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-list li { padding: 4px 10px; background: var(--surface-2); border-radius: 6px; font-size: .85rem; overflow-wrap: anywhere; }
.evidence-list li { padding: 8px 12px; border-left: 3px solid var(--line-strong); color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.known-issues .known-issue-item { padding: 12px; background: var(--info-soft); border-radius: var(--radius-sm); display: grid; gap: 8px; }
.known-issue-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.known-issue-sources { margin: 0; padding-left: 18px; font-size: .85rem; }
.known-issue-sources a { color: var(--info); overflow-wrap: anywhere; }
.description { border-top: 1px solid var(--line); padding-top: 14px; }
.description summary { cursor: pointer; font-weight: 650; }
.description p { margin-top: 10px; white-space: pre-line; color: var(--muted); overflow-wrap: anywhere; }
.external { justify-self: start; }
.note-form { display: grid; gap: 8px; padding: 16px; background: var(--surface-2); border-radius: var(--radius-sm); }
.note-form label { font-weight: 650; }
.note-form textarea { width: 100%; min-height: 90px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); resize: vertical; }
.note-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* Yönetim (işletmeci) */
.admin-view { display: grid; gap: 20px; }
.page-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.admin-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; display: grid; gap: 12px; }
.admin-box h3 { margin: 10px 0 0; }
.box-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.metric { display: grid; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0; overflow-wrap: anywhere; }
.metric span, .metric small { color: var(--muted); font-size: .8rem; }
.metric strong { font-size: 1.35rem; }
.monitor-badge { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: .85rem; background: var(--surface-2); color: var(--muted); }
.monitor-badge[data-state="ok"] { background: var(--good-soft); color: var(--good); }
.monitor-badge[data-state="error"], .monitor-badge[data-state="warning"] { background: var(--warn-soft); color: var(--warn); }
/* Canlı sağlık paneli (Yönetim üstü): 3×2 ızgara, orta ekranda 2, dar ekranda tek sütun. Işık rengi yanında metin
   etiketi de vardır (yalnız renge dayanılmaz); renkler tema belirteçlerinden. */
.monitor-badge[data-state="stale"] { background: var(--surface-2); color: var(--muted); outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.health-note:empty { display: none; }
.health-legend { font-size: .8rem; }
.health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.health-grid[data-stale="true"] .health-card { border-style: dashed; }
.health-grid > p { margin: 0; }
.health-card { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; }
.health-card[data-status="green"] { border-left-color: var(--good); }
.health-card[data-status="yellow"] { border-left-color: var(--warn); }
.health-card[data-status="red"] { border-left-color: var(--bad); }
.health-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; min-width: 0; }
.health-heading { margin: 0; font-size: 1rem; min-width: 0; }
.health-toggle { display: grid; gap: 2px; padding: 2px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.health-toggle .health-title { font-weight: 700; }
.health-toggle .health-title::after { content: " ▸"; color: var(--muted); font-weight: 400; }
.health-toggle[aria-expanded="true"] .health-title::after { content: " ▾"; }
.health-toggle:hover .health-title { text-decoration: underline; }
.health-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.health-sub { font-size: .75rem; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.health-light { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.health-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.health-light[data-status="green"] { background: var(--good-soft); color: var(--good); }
.health-light[data-status="green"] .health-dot { background: var(--good); }
.health-light[data-status="yellow"] { background: var(--warn-soft); color: var(--warn); }
.health-light[data-status="yellow"] .health-dot { background: var(--warn); }
.health-light[data-status="red"] { background: var(--bad-soft); color: var(--bad); }
.health-light[data-status="red"] .health-dot { background: var(--bad); }
.health-reason { margin: 0; font-size: .875rem; overflow-wrap: anywhere; }
.health-blocks { display: grid; gap: 8px; }
.health-block h4 { margin: 0 0 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.health-block dl { display: grid; gap: 2px; margin: 0; }
.health-block dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--line); font-size: .8rem; min-width: 0; }
.health-block dl > div:last-child { border-bottom: 0; }
.health-block dt { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.health-block dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.health-block dd.health-none { font-weight: 400; color: var(--muted); font-style: italic; }
.health-detail table { font-size: .75rem; }
.health-detail th[scope="row"] { background: transparent; text-transform: none; letter-spacing: 0; font-size: .75rem; color: inherit; font-weight: 500; }
.health-detail th, .health-detail td { padding: 5px 6px; overflow-wrap: anywhere; }
.health-detail code { font-size: .72rem; overflow-wrap: anywhere; }
.health-detail .health-group th { background: var(--surface-2); color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 1100px) { .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .health-grid { grid-template-columns: minmax(0, 1fr); } }
.health-change { margin: 0; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.health-change-label { font-weight: 650; }
.health-change[data-status="iyi"] .health-change-status { color: var(--good); }
.health-change[data-status="kotu"] .health-change-status { color: var(--bad); }
.ops-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ops-list:empty { display: none; }
.ops-item { display: grid; gap: 6px; min-width: 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; }
.ops-item[data-status="iyi"] { border-left-color: var(--good); }
.ops-item[data-status="kotu"] { border-left-color: var(--bad); }
.ops-item[data-status="geri_alindi"] { border-left-style: dashed; border-left-color: var(--muted); }
.ops-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; font-size: .8rem; }
.ops-module, .ops-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 650; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.ops-status { color: var(--muted); }
.ops-status[data-status="iyi"] { background: var(--good-soft); color: var(--good); }
.ops-status[data-status="kotu"] { background: var(--bad-soft); color: var(--bad); }
.ops-status[data-status="geri_alindi"] { outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.ops-time { color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ops-body { display: grid; gap: 2px; margin: 0; font-size: .85rem; }
.ops-body > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 8px; min-width: 0; }
.ops-body dt { color: var(--muted); }
.ops-body dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ops-body dd.ops-none { color: var(--muted); font-style: italic; }
.ops-more { justify-self: start; }
@media (max-width: 520px) { .ops-body > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
/* Raporlar ve kararlar (Yönetim): liste + güvenli Markdown alt kümesi; renkler tema belirteçlerinden. */
.rpt-filters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.rpt-filters select { max-width: 100%; }
.rpt-tabs { display: inline-grid; grid-auto-flow: column; justify-self: start; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; max-width: 100%; }
.rpt-tab { border: 0; background: none; padding: 7px 14px; border-radius: 7px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.rpt-tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.rpt-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rpt-list:empty { display: none; }
.rpt-item { display: grid; gap: 6px; min-width: 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; }
.rpt-item[data-kind="rapor"] { border-left-color: var(--info); }
.rpt-item[data-kind="karar"][data-status="gecerli"] { border-left-color: var(--good); }
.rpt-item[data-status="degisti"] { border-left-color: var(--warn); }
.rpt-item[data-status="iptal"] { border-left-style: dashed; border-left-color: var(--muted); }
.rpt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; font-size: .8rem; }
.rpt-status, .rpt-by { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.rpt-status[data-status="gecerli"] { background: var(--good-soft); color: var(--good); }
.rpt-status[data-status="degisti"] { background: var(--warn-soft); color: var(--warn); }
.rpt-status[data-status="iptal"] { outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.rpt-item .rpt-heading { margin: 0; font-size: .95rem; min-width: 0; }
.rpt-toggle { display: block; width: 100%; padding: 2px 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.rpt-toggle::after { content: " ▸"; color: var(--muted); font-weight: 400; }
.rpt-toggle[aria-expanded="true"]::after { content: " ▾"; }
.rpt-toggle:hover { text-decoration: underline; }
.rpt-summary, .rpt-meta { margin: 0; font-size: .85rem; overflow-wrap: anywhere; }
.rpt-meta { color: var(--muted); }
.rpt-meta strong { color: var(--text); font-weight: 650; }
.rpt-body { display: grid; gap: 8px; min-width: 0; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.rpt-body > * { margin: 0; min-width: 0; }
.rpt-body .rpt-h { font-size: .95rem; }
.rpt-body h4.rpt-h { font-size: 1rem; }
.rpt-body ul, .rpt-body ol { padding-left: 1.3rem; }
.rpt-body li > ul, .rpt-body li > ol { margin: 2px 0; }
.rpt-body code { padding: 1px 4px; border-radius: 4px; background: var(--surface); font-size: .82em; overflow-wrap: anywhere; }
.rpt-body pre { margin: 0; padding: 10px; border-radius: 6px; background: var(--surface); overflow-x: auto; max-width: 100%; }
.rpt-body pre code { padding: 0; background: none; white-space: pre; overflow-wrap: normal; }
.rpt-body blockquote { margin: 0; padding-left: 10px; border-left: 3px solid var(--line-strong); color: var(--muted); display: grid; gap: 6px; }
.rpt-body hr { width: 100%; border: 0; border-top: 1px solid var(--line-strong); }
.rpt-body table { font-size: .8rem; background: var(--surface); }
.rpt-body th, .rpt-body td { padding: 5px 8px; overflow-wrap: normal; }
.rpt-body .rpt-empty { color: var(--muted); font-style: italic; }
@media (max-width: 520px) { .rpt-tabs { justify-self: stretch; grid-auto-columns: 1fr; } .rpt-tab { padding: 7px 8px; } }
.queue-summary, .runtime-stamp { display: grid; gap: 6px; padding: 14px; background: var(--surface-2); border-radius: 10px; font-size: .875rem; overflow-wrap: anywhere; }
.runtime-stamp span { color: var(--muted); }
.runtime-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.runtime-stats > div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.runtime-stats dt { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.runtime-stats dd { font-size: 1.1rem; font-weight: 650; margin: 0; }
.service-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .875rem; min-width: 0; }
.service-line > span { min-width: 0; overflow-wrap: anywhere; }
.service-line > span:last-child { text-align: right; color: var(--muted); }
.service-line small { display: block; margin-top: 2px; font-size: .75rem; color: var(--muted); }
.table-scroll { overflow-x: auto; max-width: 100%; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.visit-place { overflow-wrap: anywhere; }
.geo-credit { margin-top: 8px; }
.activity-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.activity-funnel .activity-step { grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 2.5em; }
.activity-funnel > p { margin-top: 6px; font-size: .8rem; overflow-wrap: anywhere; }
.activity-timeline { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.activity-timeline ol { display: grid; gap: 6px; margin: 0; padding-left: 1.2em; font-size: .85rem; overflow-wrap: anywhere; }
.activity-timeline time { color: var(--muted); white-space: nowrap; }
.activity-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px 20px; }
.activity-tops ol, .activity-rank { margin: 0; padding-left: 1.2em; font-size: .85rem; display: grid; gap: 4px; overflow-wrap: anywhere; }
.activity-tops small { color: var(--muted); }
.visit-starts small { display: block; color: var(--muted); white-space: nowrap; }
.visit-daily { display: grid; gap: 4px; }
.visit-day { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 2.5em; column-gap: 10px; align-items: center; font-size: .8rem; min-width: 0; }
.visit-day-label { color: var(--muted); white-space: nowrap; }
.visit-day strong { text-align: right; }
.visit-day small { grid-column: 2 / -1; color: var(--muted); overflow-wrap: anywhere; }
.visit-track { display: block; height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.visit-bar { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 5px; }
.visit-bar[data-level="0"] { width: 0%; } .visit-bar[data-level="1"] { width: 10%; } .visit-bar[data-level="2"] { width: 20%; } .visit-bar[data-level="3"] { width: 30%; } .visit-bar[data-level="4"] { width: 40%; } .visit-bar[data-level="5"] { width: 50%; } .visit-bar[data-level="6"] { width: 60%; } .visit-bar[data-level="7"] { width: 70%; } .visit-bar[data-level="8"] { width: 80%; } .visit-bar[data-level="9"] { width: 90%; } .visit-bar[data-level="10"] { width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
td input { width: 90px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.member-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.approvals-box .count-pill { vertical-align: middle; margin-left: 4px; }
.member-create-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; align-items: end; }
.member-create-form label, .member-password-form label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.member-create-form input, .member-password-form input { padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); }
.member-create-form .form-error { grid-column: 1 / -1; }
.member-password-form { display: grid; gap: 12px; }
.inline-form { display: flex; gap: 8px; }
.pool-item { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .875rem; overflow-wrap: anywhere; }
.pool-item span { color: var(--muted); font-size: .8rem; }
.event-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.economics-runway { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.economics-runway > div { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .875rem; min-width: 0; overflow-wrap: anywhere; }
.economics-runway strong { font-size: 1.15rem; }
.economics-runway small { color: var(--muted); }
.economics-runway [data-state="before_month_end"], .economics-runway [data-state="exhausted"] { color: var(--warn); }
.economics table th[scope="row"] { background: transparent; font-size: .875rem; color: inherit; font-weight: 500; text-transform: none; letter-spacing: 0; }
.economics table th[scope="row"].economics-sub { padding-left: 26px; color: var(--muted); }
.economics td { white-space: nowrap; }
.economics-note { font-size: .8rem; }
@media(max-width:800px) { .economics-runway { grid-template-columns:1fr; } }

/* Tablet ve mobil: filtre paneli alttan açılan sayfa (bottom sheet) olur */
@media (max-width: 1000px) {
  .listing-view { grid-template-columns: minmax(0, 1fr); }
  .filter-toggle { display: inline-flex; }
  .filter-panel { display: none; }
  .filter-panel.open { display: flex; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; width: 100%; max-width: 640px; margin: 0 auto;
    max-height: 90vh; max-height: 90dvh; border-radius: 20px 20px 0 0; border: 0; box-shadow: 0 -10px 40px rgb(0 0 0 / 25%); }
  .sheet-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
  .filter-head { padding-top: 8px; }
  .filter-close { display: inline-flex; }
  .filter-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgb(0 0 0 / 6%); }
  .sheet-only { display: inline-flex !important; }
  .desktop-only { display: none !important; }
  .filter-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgb(10 16 13 / 50%); }
  .plan { display: none; }
  /* Başparmakla erişim: dokunma hedefleri en az 44 px. */
  .filters input, .filters select, .sort-label select, .pill, .goal, .toggle span, .segmented span, .primary, .secondary, .icon-button, .card-link, .active-chip, .nav-item, .text-button { min-height: 44px; }
  .icon-button { min-width: 44px; }
  .filter-footer .text-button { font-size: .85rem; padding: 6px 2px; }
  .filter-footer .primary { white-space: normal; line-height: 1.2; text-align: center; }
  .save-button { width: 44px; height: 44px; }
  .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal { align-content: start; padding: 10px; }
  .goal span { font-size: .74rem; }
}
@media (max-width: 760px) {
  .welcome { grid-template-columns: minmax(0, 1fr); }
  .intro { gap: 20px; padding: 24px 16px; }
  .intro-copy h1 { font-size: 2rem; }
  .auth-wrap { padding: 24px 16px 40px; align-items: start; }
  .auth-card { padding: 22px 18px; }
  .gate { margin: 20px auto; padding: 28px 18px; }
  .gate-steps { grid-template-columns: minmax(0, 1fr); }
  .gate-steps li { grid-template-columns: 26px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; }
  .app-header { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px 0; }
  .view-nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 12px 6px; }
  .account { margin-left: auto; }
  .account-email { display: none; }
  .content { padding: 16px; }
  .app-footer { padding: 16px; }
  .results-tools { width: 100%; }
  .filter-toggle { flex: 1; }
  .sort-label { flex: 1; min-width: 0; }
  .sort-label select { min-width: 0; }
  .active-actions { width: 100%; justify-content: space-between; margin-left: 0; }
  .active-filters { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; }
  .active-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .active-chips::-webkit-scrollbar { display: none; }
  .active-chip { flex: none; min-height: 40px; }
  .active-actions .secondary, .active-actions .text-button { min-height: 40px; min-width: 0; white-space: normal; font-size: .875rem; }
  /* Kaydırılabilir sekmeler: kenar gölgesi yalnız o yönde gizli sekme varken görünür (background-attachment: local
     örtüleri kenara gelince gölgeyi kapatır). Eski maske son sekmeyi uçta da soldururdu. */
  .view-nav { background:
    linear-gradient(90deg, var(--surface) 40%, transparent) left / 28px 100% no-repeat local,
    linear-gradient(270deg, var(--surface) 40%, transparent) right / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--scroll-shade), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--scroll-shade), transparent) right / 14px 100% no-repeat scroll; }
  .nav-item { padding: 8px 10px; }
  .runtime-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .banner-long { display: none; }
  .demo-banner { padding: 8px 16px; }
  .detail-dialog { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .detail-body { padding: 18px 16px 24px; }
  .detail-price { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .note-actions > * { flex: 1 1 auto; }
  .admin-box { padding: 16px; }
  .runtime-stats { grid-template-columns: minmax(0, 1fr); }
  .economics table { font-size: .8rem; }
  .economics td { white-space: normal; overflow-wrap: anywhere; }
  #refresh { display: none; }
}
@media (max-width: 420px) {
  /* Dar telefonda sekmeler iki satıra sarar: Gemerkt/Ausgeblendet kaydırmadan görünür ve dokunulabilir (U4). */
  .view-nav { flex-wrap: wrap; overflow: visible; background: none; row-gap: 2px; }
  .view-nav .nav-item { flex: 1 1 auto; padding: 8px 6px; }
}
@media (max-width: 360px) {
  h1 { font-size: 1.35rem; }
  .quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pagination { gap: 6px; }
  .pagination .secondary { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
