/* MAN AI Transfer — arayüz
   Renkler MAN AI marka paletinden (Ayrıntılı Renk Paleti, 29 Ekim 2026).
   Koyu tema (web) sahne için, açık tema (ERP) kartlar ve panel için. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Koyu tema / web */
  --night: #06111c;
  --night-surface: #0b1e2e;
  --night-raised: #143045;
  --night-text: #e6ecf2;
  --night-strong: #f4f7fa;
  --night-muted: #a7b5c3;
  --night-quiet: #7b8998;
  --champagne: #c2a47b;
  --champagne-hover: #dcc7a6;
  --champagne-pressed: #b89b73;

  /* Açık tema / ERP */
  --page: #f6f3ee;
  --cream: #f8f4ec;
  --panel: #ffffff;
  --subtle: #f0ebe3;
  --ink: #06182a;
  --muted: #616a73;
  --line: #ddd6cb;
  --action: #06182a;
  --action-hover: #10283d;
  --action-pressed: #040a11;
  --sand: #c9b28a;
  --brand-navy: #061f38;
  --focus: #365f7d;

  /* Durum */
  --info: #365f7d;
  --info-bg: #dce9ef;
  --ok: #6f8273;
  --ok-bg: #e4ebe3;
  --warn: #b99443;
  --warn-bg: #f1e7c8;
  --err: #b54145;
  --err-bg: #f0d8d8;

  --r-card: 14px;
  --r-ctl: 7px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.55 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--page);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.night :focus-visible { outline-color: var(--champagne-hover); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------ Sahne (koyu) */

body.night {
  background-color: var(--night);
  color: var(--night-text);
  background-image:
    linear-gradient(rgba(220, 199, 166, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 199, 166, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(220, 199, 166, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 199, 166, 0.03) 1px, transparent 1px);
  background-size: 240px 240px, 240px 240px, 48px 48px, 48px 48px;
  background-position: -1px -1px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 4vw, 48px);
}
.topbar .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.topbar .brand img { width: 46px; height: auto; }
.topbar .brand span { font-size: 13px; letter-spacing: 0.02em; color: var(--night-muted); padding-left: 14px; border-left: 1px solid rgba(220, 199, 166, 0.35); }
.topbar nav { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.topbar nav a, .topbar nav button {
  background: none; border: 0; padding: 8px 12px; border-radius: var(--r-ctl);
  color: var(--night-muted); text-decoration: none; cursor: pointer;
}
.topbar nav a:hover, .topbar nav button:hover { color: var(--night-strong); background: rgba(255, 255, 255, 0.04); }
.topbar .who { color: var(--night-quiet); font-size: 13px; margin-right: 6px; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding: clamp(8px, 3vw, 40px) clamp(16px, 4vw, 48px) 64px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Sağdaki büyük ifade + şema */
.statement { padding-top: clamp(8px, 4vh, 56px); max-width: 720px; }
.statement h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--night-strong);
  text-wrap: balance;
}
.statement p { margin: 28px 0 0; max-width: 46ch; color: var(--night-muted); font-size: 16px; line-height: 1.6; }

.route { margin-top: clamp(32px, 6vh, 64px); width: 100%; max-width: 640px; height: auto; overflow: visible; }
.route .wire { fill: none; stroke: var(--champagne); stroke-width: 1; }
.route .wire-faint { fill: none; stroke: rgba(220, 199, 166, 0.28); stroke-width: 1; stroke-dasharray: 3 5; }
.route .node { fill: var(--night); stroke: var(--champagne); stroke-width: 1; }
.route .node-core { fill: var(--champagne); }
.route text { fill: var(--night-muted); font: 400 12px var(--font); }
.route text.strong { fill: var(--night-strong); font-weight: 500; font-size: 13px; }
.route .layer { fill: none; stroke: rgba(220, 199, 166, 0.55); stroke-width: 1; }
.route .d0 { --delay: .05s; } .route .d1 { --delay: .15s; --len: 560; } .route .d2 { --delay: .55s; } .route .d4 { --delay: 1.3s; } .route .d5 { --delay: 1.45s; }
.route .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); animation: draw 1.6s cubic-bezier(.6, .1, .2, 1) forwards; animation-delay: var(--delay, 0s); }
.route .fade { opacity: 0; animation: fade 0.6s ease forwards; animation-delay: var(--delay, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.layers { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; max-width: 640px; }
.layers li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid rgba(220, 199, 166, 0.16); font-size: 14px; color: var(--night-text); }
.layers li small { display: block; color: var(--night-quiet); font-size: 12.5px; margin-top: 2px; }
.layers li::before { content: ""; flex: 0 0 7px; height: 7px; border: 1px solid var(--champagne); border-radius: 50%; transform: translateY(-1px); }

/* ------------------------------------------------------------ Kart (açık) */

.card {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 40px 90px -40px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.card-body { padding: 26px 28px 28px; }
.card-foot { padding: 18px 28px 24px; border-top: 1px solid var(--line); background: var(--cream); }
.card h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; }
.card .lead { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tabs button {
  background: none; border: 0; padding: 16px 12px 14px; cursor: pointer; font-size: 14.5px; font-weight: 500;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button:hover { color: var(--ink); }

/* Sürükle-bırak alanı */
.drop {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  padding: 18px; border: 1px dashed var(--sand); border-radius: 10px; background: var(--panel);
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.drop:hover, .drop.over { background: #fffdf8; border-color: var(--ink); }
.drop .plus { width: 44px; height: 44px; border-radius: 50%; background: var(--action); display: grid; place-items: center; }
.drop .plus svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 1.6; }
.drop strong { display: block; font-weight: 600; font-size: 15px; }
.drop span { color: var(--muted); font-size: 13px; }
.drop .alt { display: flex; gap: 12px; margin-top: 2px; }
.drop .alt button { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sand); cursor: pointer; font-size: 13px; }

.files { list-style: none; margin: 14px 0 0; padding: 0; max-height: 236px; overflow: auto; }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.files li:last-child { border-bottom: 0; }
.files .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .size { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.files .rm { background: none; border: 0; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.files .rm:hover { background: var(--subtle); color: var(--ink); }
.files .rm svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.8; }
.files-total { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 13px; }
.file-note { margin-top: 6px; font-size: 12.5px; color: #7a5f22; }

/* Alanlar */
.stack > * + * { margin-top: 14px; }
.field { display: block; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field > span em { font-style: normal; color: var(--muted); opacity: 0.8; }
.input, .select, .textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-ctl);
  padding: 11px 12px; font-size: 15px; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder, .textarea::placeholder { color: #9aa1a8; }
.input:hover, .select:hover, .textarea:hover { border-color: #c8bfb1; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(54, 95, 125, 0.16); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.code-input { font-size: 26px; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; padding: 14px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; min-height: 46px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-ctl); cursor: text; }
.chips:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(54, 95, 125, 0.16); }
.chips input { flex: 1 1 140px; min-width: 120px; border: 0; outline: 0; padding: 4px 5px; background: transparent; font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--subtle); border-radius: 5px; padding: 3px 4px 3px 9px; font-size: 13.5px; }
.chip.bad { background: var(--err-bg); }
.chip button { background: none; border: 0; width: 20px; height: 20px; border-radius: 4px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.chip button:hover { background: rgba(6, 24, 42, 0.08); color: var(--ink); }
.chip svg { width: 9px; height: 9px; stroke: currentColor; stroke-width: 2; }

.segmented { display: inline-grid; grid-auto-flow: column; background: var(--subtle); border-radius: 8px; padding: 3px; gap: 2px; }
.segmented button { background: none; border: 0; padding: 7px 12px; border-radius: 6px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(6, 24, 42, 0.08); }

details.options { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 4px; }
details.options summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 8px; font-size: 14px; color: var(--ink); }
details.options summary::-webkit-details-marker { display: none; }
details.options summary .sum { color: var(--muted); font-size: 13px; }
details.options summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin-left: 10px; transition: transform 0.2s; }
details.options[open] summary::after { transform: rotate(-135deg); }
details.options .opts { padding: 6px 0 4px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--action); flex: none; }

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-ctl); padding: 12px 18px; font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s;
  background: var(--action); color: #fff;
}
.btn:hover { background: var(--action-hover); }
.btn:active { background: var(--action-pressed); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.block { width: 100%; padding: 14px 18px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--subtle); border-color: #cfc6b8; }
.btn.small { padding: 7px 11px; font-size: 13.5px; }
.btn.danger { background: transparent; color: var(--err); border-color: #e5c4c5; }
.btn.danger:hover { background: var(--err-bg); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.night .btn.champagne { background: var(--champagne); color: var(--night); }
.night .btn.champagne:hover { background: var(--champagne-hover); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

/* Durum etiketleri */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--subtle); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.pill.ok { background: var(--ok-bg); } .pill.ok::before { background: var(--ok); }
.pill.warn { background: var(--warn-bg); } .pill.warn::before { background: var(--warn); }
.pill.err { background: var(--err-bg); } .pill.err::before { background: var(--err); }
.pill.info { background: var(--info-bg); } .pill.info::before { background: var(--info); }
.pill.busy::before { background: var(--info); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.notice { border-radius: 8px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; background: var(--subtle); }
.notice.err { background: var(--err-bg); }
.notice.warn { background: var(--warn-bg); }
.notice.ok { background: var(--ok-bg); }
.notice.info { background: var(--info-bg); }
.notice strong { display: block; margin-bottom: 2px; }

.error-text { color: var(--err); font-size: 13.5px; margin-top: 10px; }

/* İlerleme */
.progress-hero { display: flex; align-items: baseline; gap: 8px; }
.progress-hero .pct { font-size: 72px; line-height: 1; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.progress-hero .pct small { font-size: 32px; letter-spacing: -0.02em; margin-left: 2px; }
.bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 18px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.25s linear; }
.meta-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; margin-top: 10px; font-variant-numeric: tabular-nums; }

.scanlist { list-style: none; margin: 16px 0 0; padding: 0; }
.scanlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.scanlist .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scanlist .why { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin-top: -4px; }

.linkbox { display: flex; gap: 8px; align-items: stretch; margin-top: 16px; }
.linkbox input { flex: 1; min-width: 0; font-size: 13.5px; background: var(--panel); }

/* İndirme kartı başlığı — kartvizit düzeni */
.sender { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--sand); }
.sender .who-name { font-family: var(--serif); font-size: 23px; line-height: 1.2; letter-spacing: -0.005em; }
.sender .who-mail { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.message { white-space: pre-wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 14.5px; margin-top: 14px; }

.dl-files { list-style: none; margin: 16px 0 0; padding: 0; }
.dl-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.dl-files .name { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-files .sub { grid-column: 1; color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dl-files .act { grid-row: 1 / span 2; grid-column: 2; }
.dl-files .warnbox { grid-column: 1 / -1; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--subtle); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; fill: none; }

.quiet { color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mx-auto { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(6, 24, 42, 0.15); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 8px; font-size: 14px; z-index: 50;
  transition: opacity 0.2s, transform 0.2s; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.foot { padding: 0 clamp(16px, 4vw, 48px) 28px; color: var(--night-quiet); font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--night-muted); text-decoration: none; }

/* ------------------------------------------------------------ Panel (açık tema) */

body.day { background: var(--page); }
.day .topbar { background: var(--brand-navy); }
.day .topbar .brand span { color: var(--night-muted); }
.day .topbar nav a.on { color: var(--night-strong); background: rgba(255, 255, 255, 0.07); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 34px; letter-spacing: -0.035em; font-weight: 600; line-height: 1.1; }
.page-head p { margin: 6px 0 0; color: var(--muted); }

.viewtabs { display: flex; gap: 2px; margin-top: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.viewtabs button { background: none; border: 0; padding: 12px 14px; font-size: 14.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.viewtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.viewtabs .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--subtle); font-size: 12px; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; margin-top: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.table th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 12px 16px; background: var(--subtle); border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover td { background: #fcfaf6; }
.table .t-title { font-weight: 500; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .t-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 48px 24px; text-align: center; margin-top: 8px; }
.empty h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.empty p { margin: 6px auto 18px; color: var(--muted); max-width: 44ch; }

/* Ayrıntı çekmecesi */
.drawer-back { position: fixed; inset: 0; background: rgba(6, 17, 28, 0.42); z-index: 30; opacity: 0; transition: opacity 0.2s; }
.drawer-back.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--page); z-index: 31;
  transform: translateX(100%); transition: transform 0.25s cubic-bezier(.3, .7, .2, 1); display: flex; flex-direction: column;
  box-shadow: -30px 0 60px -30px rgba(6, 17, 28, 0.5);
}
.drawer.show { transform: none; }
.drawer header { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; background: var(--panel); }
.drawer header h2 { margin: 0; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; }
.drawer .scroll { overflow: auto; padding: 22px 26px 40px; }
.drawer section + section { margin-top: 26px; }
.drawer h3 { font-size: 13px; color: var(--muted); font-weight: 500; margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.scan-file { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.scan-file + .scan-file { margin-top: 10px; }
.scan-file .top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.scan-file .top strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-file ul { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; }
.scan-file li { padding: 3px 0; display: flex; gap: 8px; }
.scan-file li::before { content: ""; flex: 0 0 5px; height: 5px; margin-top: 7px; border-radius: 50%; background: var(--sand); }
.scan-file li.block::before { background: var(--err); }
.scan-file li.warn::before { background: var(--warn); }
.scan-file .checks { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.scan-file code { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.events { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.events li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.events time { color: var(--muted); font-variant-numeric: tabular-nums; }

.modal-back { position: fixed; inset: 0; background: rgba(6, 17, 28, 0.55); z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal { width: min(460px, 100%); }

/* ------------------------------------------------------------ Duyarlı */

@media (max-width: 960px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stage .card { max-width: 560px; width: 100%; }
  .statement { padding-top: 0; }
  .statement h1 { font-size: clamp(34px, 8vw, 52px); }
  .route { display: none; }
}
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table td { border: 0; padding: 4px 16px; }
  .table .t-title, .table .t-sub { max-width: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 8px; }
  .events li { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .topbar .brand span { display: none; }
  .card-body { padding: 22px 18px 22px; }
  .card-foot { padding: 16px 18px 20px; }
  .row { grid-template-columns: 1fr; }
  .layers { grid-template-columns: 1fr; }
  .progress-hero .pct { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .route .draw { stroke-dashoffset: 0; }
  .route .fade { opacity: 1; }
}
