/* Kurumsal renkler: Orbis Blue #0049FF, Orbis Dark Blue #00112B, Orbis Grey #8E9CBA, Orbis Light Grey #E1E8F6 */
:root {
  color-scheme: light;
  --orbis-blue: #0049ff;
  --orbis-dark: #00112b;
  --orbis-grey: #8e9cba;
  --orbis-light: #e1e8f6;

  --page: #eef2fa;
  --surface: #ffffff;
  --sunken: #f3f6fc;
  --ink: var(--orbis-dark);
  --ink-2: #3a4866;
  --muted: #5f6d8c;
  --hairline: #e1e8f6;
  --border: rgba(0, 17, 43, 0.1);

  --accent: var(--orbis-blue);
  --accent-ink: #0040e0;
  --accent-track: var(--orbis-light);
  --accent-wash: rgba(0, 73, 255, 0.06);

  /* durum renkleri: her zaman ikon + metinle birlikte kullanılır */
  --good: #0ca30c;
  --good-ink: #006300;
  --good-wash: #e6f4e4;
  --warn: #fab219;
  --warn-ink: #7a5200;
  --warn-wash: #fdf2d6;
  --serious: #ec835a;
  --serious-ink: #9e4420;
  --serious-wash: #fcebe3;
  --crit: #d03b3b;
  --crit-ink: #b02a2a;
  --crit-wash: #fbe7e5;
  --crit-track: #f4d2cf;
  --skip: var(--orbis-grey);

  --brand: var(--orbis-blue);
  --brand-ink: #ffffff;
  /* grafik serileri: renk körlüğü ayrımı doğrulandı (kırmızı/amber/Orbis Grey) */
  --chart-risk: var(--crit);
  --chart-warn: var(--warn);
  --chart-other: var(--orbis-grey);
  --chart-accent: var(--orbis-blue);
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #000a1a;
    --surface: #071731;
    --sunken: #0b1e3d;
    --ink: var(--orbis-light);
    --ink-2: #b6c2db;
    --muted: var(--orbis-grey);
    --hairline: #17294a;
    --border: rgba(225, 232, 246, 0.1);

    --accent: #4d7fff;
    --accent-ink: #8fb0ff;
    --accent-track: #12284d;
    --accent-wash: rgba(77, 127, 255, 0.12);

    --good-ink: #3fc43f;
    --good-wash: rgba(12, 163, 12, 0.15);
    --warn-ink: #fab219;
    --warn-wash: rgba(250, 178, 25, 0.13);
    --serious-ink: #f0a07f;
    --serious-wash: rgba(236, 131, 90, 0.15);
    --crit-ink: #f07a7a;
    --crit-wash: rgba(208, 59, 59, 0.17);
    --crit-track: #4a2323;
    --chart-accent: #4d7fff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: 12px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

.icon { display: inline-flex; flex: none; }
.icon svg { display: block; }
.tone-risk { color: var(--crit); }
.tone-clean { color: var(--good); }
.tone-warn { color: var(--warn); }
.tone-serious { color: var(--serious); }
.tone-skip { color: var(--skip); }
.tone-pending, .tone-muted { color: var(--muted); }

.link {
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Üst çubuk ─────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--orbis-dark);
  color: #fff;
  border-bottom: 1px solid rgba(225, 232, 246, 0.08);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  background: var(--orbis-blue);
  color: #fff;
}
.brand h1 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.brand p { font-size: 12px; color: var(--orbis-grey); }

.nav { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(225, 232, 246, 0.08); }
.nav a {
  padding: 6px 14px;
  border-radius: 7px;
  color: #b6c2db;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { background: var(--orbis-blue); color: #fff; }

.services { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.service {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(225, 232, 246, 0.16);
  border-radius: 999px;
  color: var(--orbis-light);
  font-size: 12.5px;
  white-space: nowrap;
}
.service-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orbis-grey); }
.service.is-ready .service-dot { background: #3fc43f; }
.service.is-missing .service-dot { background: var(--warn); }
.service-state { color: var(--orbis-grey); }

.topbar-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.account { display: flex; align-items: center; gap: 10px; margin: 0; padding-left: 14px; border-left: 1px solid rgba(225, 232, 246, 0.14); }
.account-user { color: var(--orbis-light); font-size: 13px; font-weight: 500; }
.account-user:empty { display: none; }
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(225, 232, 246, 0.2);
  border-radius: 8px;
  background: transparent;
  color: var(--orbis-light);
  font-size: 13px;
  cursor: pointer;
}
.btn-logout:hover { background: rgba(225, 232, 246, 0.08); }
.btn-logout .icon svg { width: 14px; height: 14px; }

/* ── Giriş sayfası ─────────────────────────────────────── */

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(0, 73, 255, 0.45), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(0, 73, 255, 0.2), transparent 40%),
    var(--orbis-dark);
}
.login { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.login-card {
  width: min(400px, 100%);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-brand .brand-mark { width: 42px; height: 42px; border-radius: 11px; }
.login-product { font-size: 15px; font-weight: 600; }
.login-tagline { color: var(--muted); font-size: 12.5px; }
.login-card h1 { margin-bottom: 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.login-error { margin-bottom: 14px; padding: 9px 12px; border-radius: 8px; background: var(--crit-wash); color: var(--crit-ink); font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-submit { justify-content: center; margin-top: 4px; }
.login-note { margin-top: 18px; color: var(--muted); font-size: 12.5px; text-align: center; }

/* ── Ortak kutular ─────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--warn-wash);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
}
.notice .icon { color: var(--warn); margin-top: 2px; }
.notice strong { font-weight: 600; }
.notice p { margin-top: 2px; color: var(--ink-2); font-size: 13px; }

.input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}
.input::placeholder { color: var(--muted); opacity: 0.8; }
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.input--sm { padding: 7px 10px; font-size: 13px; background: var(--sunken); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover:not(:disabled) { background: var(--sunken); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-ghost { border-color: transparent; background: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 7px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.badge--risk { background: var(--crit-wash); color: var(--crit-ink); }
.badge--clean { background: var(--good-wash); color: var(--good-ink); }
.badge--warn { background: var(--warn-wash); color: var(--warn-ink); }
.badge--serious { background: var(--serious-wash); color: var(--serious-ink); }
.badge--pending, .badge--skip { background: var(--sunken); color: var(--muted); }
.badge--risk .icon { color: var(--crit); }
.badge--clean .icon { color: var(--good); }
.badge--warn .icon { color: var(--warn); }
.badge--serious .icon { color: var(--serious); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

.check-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; }
.check-cell .value { font-variant-numeric: tabular-nums; min-width: 34px; }
.check-cell .text { color: var(--ink-2); }
.dash { color: var(--muted); }

.meter {
  position: relative;
  width: 56px;
  height: 6px;
  flex: none;
  border-radius: 3px;
  background: var(--accent-track);
}
.meter-fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--accent); }
.meter.is-danger { background: var(--crit-track); }
.meter.is-danger .meter-fill { background: var(--crit); }
.meter-tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--ink-2);
}
.meter--lg { width: auto; flex: 1; height: 8px; border-radius: 4px; }
.meter--lg .meter-fill { border-radius: 4px; }

.spinner {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.file-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ── Yükleme sayfası ───────────────────────────────────── */

.upload-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.intake { padding: 24px; }
.intake-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.intake-head p { margin-top: 4px; color: var(--ink-2); }
.intake-head .quota {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-wash); color: var(--accent); font-size: 12.5px; font-weight: 600;
}
.intake-head .quota[hidden] { display: none; }
.intake-head .quota.is-empty { background: var(--warn-wash); color: var(--warn-ink); }

.fields { max-width: 420px; margin: 20px 0 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.field .req { color: var(--crit); }
.input--claim { font-family: var(--mono); letter-spacing: 0.02em; }
.field-help { min-height: 20px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.field.has-error .input { border-color: var(--crit); }
.field.has-error .input:focus { outline-color: var(--crit); }
.field.has-error .field-help { color: var(--crit-ink); }
.help-tag {
  display: inline-block;
  margin-right: 4px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent-track);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 600;
}
.help-tag--existing { background: var(--hairline); color: var(--ink-2); }

.upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 260px;
  padding: 32px 24px;
  border: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: var(--radius);
  background: var(--sunken);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, opacity 0.15s;
}
.upload:hover, .upload.is-dragging { border-color: var(--accent); background: var(--accent-wash); }
.upload:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.upload.is-disabled { cursor: not-allowed; }
.upload.is-disabled:hover { border-color: color-mix(in srgb, var(--ink) 18%, transparent); background: var(--sunken); }
.upload.is-disabled .upload-icon { background: var(--hairline); color: var(--muted); }
.upload.is-disabled .upload-title { color: var(--ink-2); }
.upload-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--accent-track);
  color: var(--accent-ink);
}
.upload-icon svg { width: 24px; height: 24px; }
.upload-title { font-size: 17px; font-weight: 600; }
.upload-hint { font-size: 14px; color: var(--ink-2); }
.upload-meta { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

.upload.is-compact { min-height: 120px; padding: 18px 20px; }
.upload.is-compact .upload-icon { width: 40px; height: 40px; margin-bottom: 4px; }
.upload.is-compact .upload-icon svg { width: 20px; height: 20px; }

/* Adım göstergesi */
.stepper { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stepper li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}
.stepper li span { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--sunken); font-size: 12px; }
.stepper li.is-current { border-color: var(--accent); color: var(--ink); }
.stepper li.is-current span { background: var(--accent); color: #fff; }
.stepper li.is-done span { background: var(--good-wash); color: var(--good-ink); }

/* 1 · Seçim */
.rejected { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: var(--warn-wash); color: var(--warn-ink); font-size: 13px; }
.staged { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.staged li { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--sunken); }
.staged-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.staged .file-name { max-width: 100%; padding: 6px 8px 0; font-size: 12.5px; }
.staged .file-meta { padding: 0 8px 8px; }
.staged-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 17, 43, 0.72);
  color: #fff;
  cursor: pointer;
}
.staged-remove svg { width: 14px; height: 14px; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.btn-lg { padding: 10px 18px; font-size: 14.5px; }

/* 2 · Tarama görünümü */
.scan-stage { padding: 24px; border-radius: 16px; background: var(--orbis-dark); color: var(--orbis-light); }
.scan-eyebrow { color: #8fb0ff; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.scan-stage h2 { margin-top: 4px; color: #fff; font-size: 20px; font-weight: 600; }
.scan-note { margin-top: 2px; color: var(--orbis-grey); font-size: 13px; }
.scan-viewer { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 18px; }
.scan-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #071731; }
.scan-frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6) contrast(1.1); }
.scan-frame::after { content: ''; position: absolute; inset: 0; background: rgba(0, 73, 255, 0.18); mix-blend-mode: screen; }
.scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 30%;
  border-bottom: 2px solid #c9d8ff;
  background: linear-gradient(to bottom, transparent, rgba(77, 127, 255, 0.45));
  animation: scan-sweep 1.6s ease-in-out infinite alternate;
}
.scan-stage.is-finished .scan-beam { display: none; }
.scan-corners { position: absolute; inset: 10px; z-index: 1; border: 1.5px solid rgba(201, 216, 255, 0.35); border-radius: 8px; }
@keyframes scan-sweep { from { top: -30%; } to { top: 100%; } }
.scan-readout { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.scan-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 15px; font-weight: 500; }
.scan-phase { color: #8fb0ff; font-size: 13px; }
.scan-progress { width: 100%; height: 6px; border-radius: 3px; background: rgba(225, 232, 246, 0.12); overflow: hidden; }
.scan-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--orbis-blue); transition: width 0.3s; }
.lights { display: flex; flex-wrap: wrap; gap: 6px; }
.light { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(225, 232, 246, 0.08); color: #b6c2db; font-size: 12px; }
.light .icon svg { width: 13px; height: 13px; }
.light .spinner { width: 12px; height: 12px; border-color: rgba(225, 232, 246, 0.2); border-top-color: #8fb0ff; }
.light-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orbis-grey); }
.light--risk { background: rgba(208, 59, 59, 0.25); color: #ff9b9b; }
.light--clean { background: rgba(12, 163, 12, 0.2); color: #7be07b; }
.light--warn { background: rgba(250, 178, 25, 0.18); color: #fbd27a; }
.light--skip { color: var(--orbis-grey); }
.scan-strip { display: flex; gap: 8px; margin: 20px 0 0; padding: 0; overflow-x: auto; list-style: none; }
.strip-chip { position: relative; flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; opacity: 0.55; }
.strip-chip.is-active { opacity: 1; outline: 2px solid #c9d8ff; outline-offset: -2px; }
.strip-img { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; color: var(--orbis-grey); }
.strip-dot { position: absolute; right: 4px; bottom: 4px; width: 10px; height: 10px; border: 2px solid var(--orbis-dark); border-radius: 50%; background: var(--orbis-grey); }
.strip-chip--risk .strip-dot { background: #ff6b6b; }
.strip-chip--clean .strip-dot { background: #3fc43f; }
.strip-chip--warn .strip-dot { background: var(--warn); }

/* 3 · Sonuç */
.result { display: flex; flex-direction: column; gap: 16px; }
.result-verdict { margin: 0; padding: 18px; }
.result-verdict .verdict-title { font-size: 18px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.result-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 0 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}
.result-tile:hover:not(:disabled) { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.result-tile:disabled { cursor: default; }
.result-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.result-tile > :not(.result-tile-img) { margin: 0 12px; }
.result-tile .file-name { max-width: calc(100% - 24px); }
.result-tile-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sunken); }
.result-tile-checks { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.result-tile-checks > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.result-tile-checks small { color: var(--muted); }
.result-tile-error { color: var(--ink-2); font-size: 13px; }
.result-tile-img.is-fallback, .staged-img.is-fallback, .stack-thumb.is-fallback, .tile-img.is-fallback { display: grid; place-items: center; color: var(--muted); }

/* ── Dashboard ─────────────────────────────────────────── */

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  transition: opacity 0.2s;
}
.dashboard.is-refreshing { opacity: 0.6; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 73, 255, 0.6), transparent 48%),
    radial-gradient(circle at 10% 110%, rgba(0, 73, 255, 0.25), transparent 40%),
    linear-gradient(135deg, #00112b 0%, #001a45 60%, #00225c 100%);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: rgba(225, 232, 246, 0.1);
  color: var(--orbis-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h2 { margin-top: 14px; font-size: 30px; font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; max-width: 20ch; }
.hero-lede { margin-top: 10px; max-width: 58ch; color: rgba(225, 232, 246, 0.8); font-size: 14.5px; }
.hero-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 24px; }
.hero-number { font-size: 56px; font-weight: 650; line-height: 1; letter-spacing: -0.03em; }
.hero-number-label { color: rgba(225, 232, 246, 0.85); font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn-hero { padding: 9px 16px; border: 0; background: var(--orbis-blue); color: #fff; font-size: 14px; }
.btn-hero:hover { background: #1a5cff; }
.btn-hero-ghost { padding: 9px 16px; border: 1px solid rgba(225, 232, 246, 0.35); background: transparent; color: var(--orbis-light); font-size: 14px; }
.btn-hero-ghost:hover { background: rgba(225, 232, 246, 0.08); }

/* Üst banttaki örnek tarama: fotoğraf → üç kontrol → karar */
.hero-art { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.detect { padding: 12px; border: 1px solid rgba(225, 232, 246, 0.12); border-radius: 14px; background: rgba(0, 17, 43, 0.55); }
.detect-photo { position: relative; border-radius: 10px; overflow: hidden; }
.detect-svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.detect-svg .dt-overlay { display: none; }
.detect-svg[data-scenario="ai"] .dt-ai,
.detect-svg[data-scenario="real"] .dt-real,
.detect-svg[data-scenario="edit"] .dt-edit { display: inline; }
.detect-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 17, 43, 0.78);
  color: var(--orbis-light);
  font-size: 11.5px;
  font-weight: 500;
}
.detect-checks { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.detect-checks li { display: grid; grid-template-columns: 82px minmax(0, 1fr) 118px; align-items: center; gap: 10px; color: #b6c2db; font-size: 12.5px; }
.detect-checks li[data-check="m"] { grid-template-columns: 82px minmax(0, 1fr); }
.dc-name { color: var(--orbis-light); font-weight: 500; }
.dc-meter { position: relative; height: 6px; border-radius: 0 3px 3px 0; background: rgba(225, 232, 246, 0.12); }
.dc-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 0 3px 3px 0; background: #4d7fff; transition: width 0.6s ease-out; }
.dc-tick { position: absolute; top: -3px; bottom: -3px; left: 50%; width: 2px; margin-left: -1px; border-radius: 1px; background: rgba(225, 232, 246, 0.6); }
.dc-value { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; white-space: nowrap; font-weight: 600; }
.dc-value .icon svg { width: 13px; height: 13px; }
.dc-value .spinner { width: 11px; height: 11px; border-color: rgba(225, 232, 246, 0.2); border-top-color: #8fb0ff; }
.detect-checks .is-pending .dc-value { color: var(--orbis-grey); font-weight: 400; }
.detect-checks .is-flagged .dc-value { color: #ff9b9b; }
.detect-checks .is-flagged .dc-fill { background: #ff6b6b; }
.detect-checks .is-clear .dc-value { color: #7be07b; }
.detect-verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(225, 232, 246, 0.06);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.detect-verdict.is-visible { opacity: 1; transform: none; }
.detect-verdict.is-risk { background: rgba(208, 59, 59, 0.22); }
.detect-verdict.is-clean { background: rgba(12, 163, 12, 0.18); }
.dv-icon .icon svg { width: 20px; height: 20px; }
.is-risk .dv-icon, .is-risk .dv-title { color: #ff9b9b; }
.is-clean .dv-icon, .is-clean .dv-title { color: #7be07b; }
.dv-title { font-size: 14px; font-weight: 600; }
.dv-sub { color: #b6c2db; font-size: 12px; }
.detect-caption { color: rgba(225, 232, 246, 0.7); font-size: 12px; text-align: center; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
}
.kpi-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; }
.kpi-icon svg { width: 20px; height: 20px; }
.kpi-icon--neutral { background: var(--accent-track); color: var(--accent); }
.kpi-icon--risk { background: var(--crit-wash); color: var(--crit); }
.kpi-icon--serious { background: var(--serious-wash); color: var(--serious); }
.kpi-icon--warn { background: var(--warn-wash); color: var(--warn-ink); }
.kpi-label { font-size: 13px; color: var(--ink-2); }
.kpi-value { margin: 4px 0 2px; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.kpi-note { font-size: 12px; color: var(--muted); }

.chart-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.chart-card { padding: 18px 20px 16px; border-radius: 12px; }
.chart-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.chart-head h3, .section-head h3 { font-size: 15px; font-weight: 600; }
.chart-head p, .section-head p { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.chart-subtitle { margin: 22px 0 12px; font-size: 13px; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; flex: none; border-radius: 2px; }

.activity-plot { display: grid; grid-template-columns: 28px minmax(0, 1fr); height: 200px; }
.y-axis { position: relative; }
.y-axis span {
  position: absolute;
  right: 8px;
  transform: translateY(50%);
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.plot-area { position: relative; }
.gridline { position: absolute; left: 0; right: 0; height: 1px; background: var(--hairline); }
.cols { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.col {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: none;
  cursor: default;
}
.col:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.col:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.col-stack { position: relative; display: flex; flex-direction: column-reverse; gap: 2px; width: min(20px, 60%); }
.col-seg { min-height: 3px; flex-basis: 0; }
.col-seg:last-child { border-radius: 4px 4px 0 0; }
.col-value {
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-bottom: 4px;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 600;
}
.x-axis { display: flex; margin: 6px 0 0 28px; }
.col-label { flex: 1; color: var(--muted); font-size: 11px; text-align: center; white-space: nowrap; }
.chart-empty { margin-top: 8px; color: var(--muted); font-size: 12.5px; text-align: center; }

.table-view { margin-top: 12px; font-size: 12.5px; }
.table-view summary { color: var(--muted); cursor: pointer; }
.mini-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mini-table th, .mini-table td { padding: 4px 6px; border-bottom: 1px solid var(--hairline); text-align: right; }
.mini-table th:first-child, .mini-table td:first-child { text-align: left; }
.mini-table th { color: var(--muted); font-weight: 500; }

.part-bar { display: flex; gap: 2px; height: 16px; }
.part-seg { min-width: 4px; flex-basis: 0; }
.part-seg:first-child { border-radius: 4px 0 0 4px; }
.part-seg:last-child { border-radius: 0 4px 4px 0; }
.part-seg:only-child { border-radius: 4px; }
.part-seg:hover, .part-seg:focus-visible { filter: brightness(1.08); outline: none; }
.part-empty { flex: 1; border-radius: 4px; background: var(--sunken); }
.part-legend { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; }
.part-legend li { display: grid; grid-template-columns: 10px 1fr auto 44px; align-items: center; gap: 10px; }
.part-label { color: var(--ink-2); }
.part-legend strong { font-variant-numeric: tabular-nums; }
.part-pct { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.hbars { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hbars li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; align-items: center; gap: 12px; font-size: 13px; }
.hbar-label { display: flex; flex-direction: column; font-weight: 500; }
.hbar-label small { color: var(--muted); font-size: 11.5px; font-weight: 400; }
.hbar-track { position: relative; height: 10px; border-radius: 0 5px 5px 0; background: var(--sunken); }
.hbar-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hbar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 0 4px 4px 0; background: var(--chart-accent); }
.hbar-value { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar-value strong { color: var(--ink); }

.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.count-pill { min-width: 28px; padding: 2px 10px; border-radius: 999px; background: var(--crit-wash); color: var(--crit-ink); font-weight: 600; text-align: center; }

.queue { border-radius: 12px; }
.queue-list { margin: 0; padding: 0; list-style: none; }
.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 120px auto;
  align-items: center;
  gap: 16px 20px;
  padding: 14px 20px;
  border-top: 1px solid var(--hairline);
}
.queue-item:first-child { border-top: 0; }
.queue-item.is-risk { box-shadow: inset 3px 0 0 var(--crit); }
.queue-item.is-serious { box-shadow: inset 3px 0 0 var(--serious); }
.queue-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.queue-title strong, .claim-no { font-family: var(--mono); font-weight: 600; letter-spacing: 0.01em; }
.queue-reasons { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 12.5px; }
.reason { display: inline-flex; align-items: center; gap: 5px; }
.reason .icon svg { width: 14px; height: 14px; }
.reason--risk { color: var(--crit-ink); }
.reason--serious { color: var(--serious-ink); }
.reason--muted { color: var(--muted); }
.queue-thumbs { display: flex; }
.queue-thumb { width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--surface); overflow: hidden; background: var(--sunken); }
.queue-thumb + .queue-thumb { margin-left: -10px; }
.queue-thumb.is-risk { border-color: var(--crit); }
.queue-img { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; color: var(--muted); }
.queue-meta { display: flex; flex-direction: column; font-size: 12.5px; color: var(--ink-2); }
.queue-meta span { color: var(--muted); font-size: 11.5px; }
.queue-more { margin: 4px 16px 12px; }
.queue-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 16px; text-align: center; }
.queue-empty .icon { color: var(--good); }
.queue-empty .icon svg { width: 32px; height: 32px; }
.queue-empty p { margin-top: 6px; font-weight: 600; }
.queue-empty span { color: var(--muted); font-size: 13px; }

.btn-primary { border-color: transparent; background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover:not(:disabled) { background: #1a5cff; }
.btn-primary .icon svg { width: 14px; height: 14px; }

.how h3 { margin: 4px 0 12px; font-size: 15px; font-weight: 600; }
.how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.how-steps li { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.how-steps strong { display: block; margin-top: 10px; font-size: 14px; }
.how-steps p { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.how-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
}
.how-num--serious { background: var(--serious-wash); color: var(--serious); }
.how-num--serious svg { width: 15px; height: 15px; }
.how-rule { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--ink-2); font-size: 13px; }
.how-rule .icon { color: var(--crit); margin-top: 1px; }

.tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  min-width: 150px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--page);
  font-size: 12.5px;
  box-shadow: 0 6px 20px rgba(11, 11, 11, 0.25);
  pointer-events: none;
}
.tip-title { opacity: 0.7; font-size: 11.5px; }
.tip-headline { margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.tip-row { display: flex; align-items: center; gap: 8px; }
.tip-key { width: 12px; height: 3px; flex: none; border-radius: 2px; }
.tip-row strong { min-width: 22px; font-variant-numeric: tabular-nums; }
.tip-row span:last-child { opacity: 0.8; }

.results { overflow-x: auto; border-radius: 12px; }
.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px;
  border-bottom: 1px solid var(--hairline);
}
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search .icon { position: absolute; top: 50%; left: 10px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding: 7px 10px 7px 32px; font-size: 13px; background: var(--sunken); }
.toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; flex-basis: 100%; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
}
.tab:hover { background: var(--sunken); }
.tab[aria-selected="true"] { background: var(--sunken); color: var(--ink); font-weight: 600; }
.tab-count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--hairline);
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.results-table { width: 100%; border-collapse: collapse; }
.results-table th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.results-table td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.results-table tbody tr:last-child td { border-bottom: 0; }
.row { cursor: pointer; }
.row:hover { background: var(--sunken); }
.row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.row.is-selected { background: var(--accent-wash); box-shadow: inset 3px 0 0 var(--accent); }

.claim-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.claim-cell strong { font-family: var(--mono); font-weight: 600; }
.thumb-stack { display: flex; align-items: center; }
.stack-thumb {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid var(--surface);
  background: var(--sunken);
}
.stack-thumb + .stack-thumb { margin-left: -12px; }
.stack-count { margin-left: 8px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.c-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-risk { color: var(--crit-ink); font-weight: 600; }
.num-serious { color: var(--serious-ink); font-weight: 600; }
.c-date { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }

/* ── Ayrıntı paneli ───────────────────────────────────── */

.detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}
.detail-title { flex: 1; min-width: 0; }
.detail-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; word-break: break-all; }
.detail-head p { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.detail-head .eyebrow { margin: 0 0 2px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.icon-btn {
  display: none;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}
.icon-btn.is-visible { display: grid; }

.preview {
  display: flex;
  justify-content: center;
  padding: 12px;
  background-color: var(--sunken);
  background-image:
    linear-gradient(45deg, var(--hairline) 25%, transparent 25%, transparent 75%, var(--hairline) 75%),
    linear-gradient(45deg, var(--hairline) 25%, transparent 25%, transparent 75%, var(--hairline) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  border-bottom: 1px solid var(--hairline);
}
.preview-img { display: block; max-width: 100%; max-height: 280px; border-radius: 4px; }
.preview-img.is-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.preview-img.is-fallback svg { width: 28px; height: 28px; }

.verdict { display: flex; gap: 12px; margin: 14px 16px 0; padding: 14px; border-radius: 8px; }
.verdict .icon svg { width: 22px; height: 22px; }
.verdict-title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.verdict-sub { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.verdict--risk { background: var(--crit-wash); }
.verdict--risk .verdict-title, .verdict--risk .icon { color: var(--crit-ink); }
.verdict--clean { background: var(--good-wash); }
.verdict--clean .verdict-title, .verdict--clean .icon { color: var(--good-ink); }
.verdict--warn { background: var(--warn-wash); }
.verdict--warn .verdict-title { color: var(--warn-ink); }
.verdict--warn .icon { color: var(--warn); }
.verdict--serious { background: var(--serious-wash); }
.verdict--serious .verdict-title { color: var(--serious-ink); }
.verdict--serious .icon { color: var(--serious); }
.verdict--pending { background: var(--sunken); align-items: center; }
.dup-list { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.dup-list a { color: var(--serious-ink); font-weight: 600; }

.detail-section { padding: 16px 16px 4px; }
.section-title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.facts { display: grid; grid-template-columns: 112px 1fr; gap: 7px 12px; margin: 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; word-break: break-word; }
.fact-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); font-size: 12.5px; font-weight: 500; }

.check-card { margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 8px; }
.check-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.check-head h3 { font-size: 14px; font-weight: 600; }
.check-desc { font-size: 12px; color: var(--muted); }
.check-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.check-message { font-size: 13px; color: var(--ink-2); }

.meter-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.meter-row + .meter-row { margin-top: 8px; }
.meter-label { width: 84px; flex: none; color: var(--ink-2); }
.meter-value { width: 40px; flex: none; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

.findings { display: flex; flex-direction: column; gap: 6px; }
.finding { padding: 8px 10px; border-left: 3px solid var(--crit); border-radius: 4px; background: var(--crit-wash); font-size: 13px; }
.finding strong { display: block; font-weight: 600; }
.finding code { color: var(--ink-2); }
.finding-value { margin-top: 2px; color: var(--ink-2); word-break: break-word; white-space: pre-wrap; font-size: 12.5px; }

.meta-explorer { margin: 6px 16px 16px; border: 1px solid var(--hairline); border-radius: 8px; }
.meta-explorer summary { padding: 10px 14px; cursor: pointer; font-weight: 500; font-size: 13.5px; }
.meta-explorer summary span { color: var(--muted); font-weight: 400; }
.meta-body { padding: 0 14px 12px; }
.meta-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.meta-table th[colspan] {
  padding: 10px 0 4px;
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.meta-table td { padding: 4px 0; border-top: 1px solid var(--hairline); vertical-align: top; word-break: break-word; }
.meta-table td:first-child { width: 42%; padding-right: 10px; color: var(--ink-2); font-family: var(--mono); font-size: 11.5px; }
.meta-table .is-hit td { background: var(--crit-wash); }
.meta-more { padding: 0; border: 0; background: none; color: var(--accent-ink); cursor: pointer; font-size: 12px; }

.detail-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 16px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 500;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.photo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}
.photo-tile:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.photo-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-tile--risk { border-color: color-mix(in srgb, var(--crit) 55%, transparent); }
.tile-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sunken); }
.tile-verdict { position: absolute; top: 6px; left: 6px; padding: 2px 8px 2px 5px; font-size: 11.5px; box-shadow: 0 1px 2px rgba(11, 11, 11, 0.15); }
.tile-dup {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--serious-wash);
  color: var(--serious);
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.15);
}
.tile-name { padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ink-2); }

.explainer { padding: 18px 18px 20px; }
.explainer h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.explainer > p { color: var(--ink-2); font-size: 13px; }
.steps { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 12px; }
.step-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--sunken);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}
.steps strong { display: block; font-size: 13.5px; }
.steps p { font-size: 12.5px; color: var(--muted); }
.rule { display: flex; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 8px; background: var(--crit-wash); font-size: 13px; }
.rule .icon { color: var(--crit); margin-top: 1px; }
.rule + .rule { margin-top: 8px; }
.rule--serious { background: var(--serious-wash); }
.rule--serious .icon { color: var(--serious); }

/* ── Yan çekmece (yükleme sayfasındaki ayrıntı) ───────── */

.drawer { position: fixed; inset: 0; z-index: 40; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(11, 11, 11, 0.35); opacity: 0; transition: opacity 0.2s; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  transform: translateX(24px);
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; opacity: 1; }
.drawer .detail { border: 0; border-radius: 0; min-height: 100%; }
.drawer .icon-btn { display: grid; }
body.has-drawer { overflow: hidden; }

.queue-empty-action { margin-top: 12px; }

/* ── Dar ekranlar ─────────────────────────────────────── */

@media (max-width: 1100px) {
  .topbar { flex-wrap: wrap; }
  .chart-row { grid-template-columns: minmax(0, 1fr); }
  .scan-viewer { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .hero-art { max-width: 420px; justify-self: center; width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: flex-start; padding: 12px 16px; position: static; }
  .services, .topbar-end { justify-content: flex-start; }
  .account { padding-left: 0; border-left: 0; }
  .dashboard { padding: 16px 16px 40px; gap: 16px; }
  .hero { padding: 22px 18px; border-radius: 12px; }
  .hero h2 { font-size: 23px; }
  .hero-number { font-size: 46px; }
  .kpi { padding: 14px; gap: 10px; }
  .kpi-icon { width: 34px; height: 34px; }
  .kpi-value { font-size: 26px; }
  .chart-card { padding: 16px 14px; }
  .col-label.is-minor { visibility: hidden; }
  .hbars li { grid-template-columns: minmax(0, 1fr) 64px; }
  .hbars .hbar-label { grid-column: 1 / -1; }
  .queue-item { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .queue-main { grid-column: 1 / -1; }
  .queue-meta { display: none; }
  .section-head { padding: 14px 16px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); }

  .upload-page { padding: 20px 16px 48px; gap: 20px; }
  .intake { padding: 18px 16px; }
  .fields { max-width: none; }
  .upload { min-height: 200px; padding: 24px 16px; }
  .stepper li { gap: 6px; padding: 8px; font-size: 12px; }
  .scan-stage { padding: 18px 16px; }

  .search { max-width: none; }
  .toolbar-actions { margin-left: 0; }
  .results-table thead { display: none; }
  .results-table, .results-table tbody { display: block; }
  .results-table tr.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 12px;
    border-bottom: 1px solid var(--hairline);
  }
  .results-table td { display: block; padding: 0; border: 0; }
  .results-table td.c-claim { flex: 1 1 auto; }
  .results-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    color: var(--muted);
  }
  .file-name { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .spinner { animation-duration: 1.6s; }
  .scan-beam { top: 35%; animation: none; }
}
