/* IsItReal: GitHub tarzı koyu arayüz, ekrana sabit yükseklik (sayfa kaydırması yok) */
:root {
  --canvas: #0d1117;
  --header: #010409;
  --surface: #151b23;
  --surface-2: #1c2128;
  --inset: #010409;
  --border: #30363d;
  --border-muted: #21262d;
  --fg: #e6edf3;
  --muted: #9198a1;
  --faint: #6e7681;
  --link: #4493f8;
  --brand: #ab7df8;          /* teksir moru: kopyalar ve marka */
  --brand-wash: rgba(171, 125, 248, 0.15);
  --green: #3fb950;
  --green-btn: #238636;
  --green-btn-hover: #29903b;
  --green-wash: rgba(46, 160, 67, 0.12);
  --red: #f85149;
  --red-wash: rgba(248, 81, 73, 0.12);
  --amber: #d29922;
  --amber-wash: rgba(210, 153, 34, 0.14);
  --orange: #db6d28;
  --gray: #9198a1;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --radius: 6px;
  --top-h: 64px;
  --tabs-h: 48px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--canvas);
  color: var(--fg);
  font: 14px/1.5 var(--font);
  overflow: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 12px; }
button { font: inherit; color: inherit; }
svg { width: 16px; height: 16px; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--link); outline-offset: -1px; border-radius: var(--radius); }

.app { height: 100dvh; display: grid; grid-template-rows: var(--top-h) var(--tabs-h) minmax(0, 1fr); }

/* ---------- Üst bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--header);
  position: relative;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; }
.brand-name { font-weight: 600; font-size: 16px; }
.crumb-sep { color: var(--faint); }
.crumb { font-weight: 600; margin-right: 8px; white-space: nowrap; }

.omnibox { position: relative; flex: 1; max-width: 720px; height: 36px; margin-left: auto; }
.omni-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 6px 0 10px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}
.omni-field:focus-within { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.omni-field textarea {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 7px 0;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--fg);
  font: 14px/20px var(--font);
  overflow: hidden;
  white-space: nowrap;
}
.omni-field textarea::placeholder { color: var(--muted); }
.omnibox.is-open .omni-field { position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 132px; align-items: flex-start; border-radius: var(--radius) var(--radius) 0 0; }
.omnibox.is-open .omni-field textarea { height: 130px; padding: 8px 0; overflow: auto; white-space: pre-wrap; }
.omnibox.is-open .omni-icon, .omnibox.is-open .icon-btn, .omnibox.is-open .kind-pill { margin-top: 8px; }
.omnibox.is-open .slash-hint { display: none; }
.slash-hint {
  min-width: 20px;
  padding: 0 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: 11px/18px var(--mono);
  text-align: center;
  color: var(--muted);
}
.kind-pill {
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  color: var(--fg);
  white-space: nowrap;
}
.pdf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-right: auto;
  padding: 2px 4px 2px 8px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--fg);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}
.pdf-chip span { overflow: hidden; text-overflow: ellipsis; }
.chip-x { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.chip-x:hover { color: var(--fg); background: rgba(255,255,255,.08); }
.chip-x svg { width: 12px; height: 12px; }

.omni-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 132px;
  padding: 8px 0;
  background: var(--surface);
  border: 1px solid var(--link);
  border-top-color: var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(1, 4, 9, 0.75);
}
.omni-toolbar { display: flex; justify-content: space-between; padding: 0 12px 8px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border-muted); }
.count[data-over] { color: var(--red); }
.omni-section { margin: 8px 12px 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.suggestions { list-style: none; margin: 0; padding: 0; }
.suggestions button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--fg);
}
.suggestions button:hover, .suggestions button:focus-visible { background: var(--surface-2); outline: none; }
.suggestions svg { color: var(--muted); }
.suggestions span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestions em { font-style: normal; font-size: 12px; color: var(--muted); }

.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.omni-field .icon-btn { width: 26px; height: 26px; border: 0; }
.icon-btn:hover { color: var(--fg); background: var(--surface-2); text-decoration: none; }
.mode-badge {
  padding: 0 8px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  color: var(--amber);
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--fg);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: #262c36; border-color: #8b949e; }
.btn svg { color: var(--muted); }
.btn-primary { background: var(--green-btn); border-color: rgba(240,246,252,.1); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--green-btn-hover); border-color: rgba(240,246,252,.1); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-quiet { background: transparent; }
.btn-small { height: 28px; padding: 0 10px; font-size: 12px; }

/* ---------- Sekmeler ---------- */
.tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 0 16px;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--fg);
  white-space: nowrap;
  cursor: pointer;
}
.tab svg { color: var(--muted); }
.tab::before { content: ''; position: absolute; inset: 8px 0; border-radius: var(--radius); z-index: -1; }
.tab:hover::before { background: var(--surface-2); }
.tab[aria-current='page'] { font-weight: 600; }
.tab[aria-current='page']::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.counter {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(101, 108, 118, 0.3);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

/* ---------- Çalışma alanı ---------- */
.workspace { min-height: 0; padding: 20px 24px 16px; }
.view { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; max-width: 1440px; margin: 0 auto; }
.col-main { min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.col-side { min-height: 0; overflow-y: auto; scrollbar-width: thin; }

.box { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius); min-height: 0; }
.box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.banner { padding: 10px 14px; border: 1px solid rgba(248,81,73,.4); border-radius: var(--radius); background: var(--red-wash); }

/* Boş durum */
.blank { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; }
.blank-icon { width: 32px; height: 32px; color: var(--muted); margin-bottom: 12px; }
.blank h1 { margin: 0 0 8px; font-size: 24px; font-weight: 600; }
.blank p { max-width: 560px; margin: 0 0 20px; color: var(--muted); }
.blank-actions { display: flex; gap: 8px; margin-bottom: 28px; }
.kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 10px 24px; text-align: left; }
.kinds li { display: flex; gap: 8px; color: var(--muted); font-size: 13px; }
.kinds svg { margin-top: 2px; color: var(--fg); }
.kinds strong { color: var(--fg); font-weight: 600; margin-right: 4px; }

/* Sonuç kutusu */
.result { flex: 1; display: flex; flex-direction: column; }
.source { display: flex; align-items: center; gap: 8px; min-width: 0; }
.source strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source .mono { color: var(--muted); }
.source-tier { flex: none; }
.switcher { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex: none; }
.switcher button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid var(--border);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.switcher button:first-child { border-left: 0; }
.switcher button[aria-selected='true'] { background: var(--surface-2); color: var(--fg); font-weight: 600; }
.switcher button:hover { background: var(--surface-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--gray)); flex: none; }

.claim-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.claim-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px 10px; }
.claim-text { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.claim-reason { margin: 0; padding: 0 16px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.claim-reason.is-open { -webkit-line-clamp: unset; }
.claim-stop { margin: 4px 0 12px; padding: 0 16px; font-size: 12px; color: var(--faint); }
.claim-guard { margin: 4px 16px 10px; padding: 6px 10px; border-radius: var(--radius); background: var(--amber-wash); color: var(--fg); font-size: 12px; }

/* Karar etiketi (GitHub label benzeri) */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--tone, var(--gray));
  border-radius: 999px;
  color: var(--tone, var(--gray));
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
}
.label small { font-weight: 400; color: var(--muted); }
[data-tone='SUPPORTED'], [data-tone='found'] { --tone: var(--green); --wash: var(--green-wash); }
[data-tone='CONTRADICTED'], [data-tone='retracted'], [data-tone='not_found'] { --tone: var(--red); --wash: var(--red-wash); }
[data-tone='CIRCULAR_ECHO_CHAMBER'] { --tone: var(--brand); --wash: var(--brand-wash); }
[data-tone='NOT_ENOUGH_EVIDENCE'], [data-tone='corrected'] { --tone: var(--amber); --wash: var(--amber-wash); }
[data-tone='MISLEADING_CONTEXT'] { --tone: var(--orange); --wash: rgba(219,109,40,.14); }
[data-tone='OUTDATED'], [data-tone='error'], [data-tone='pending'] { --tone: var(--gray); --wash: rgba(145,152,161,.12); }

/* Kaynak katmanları */
.strata { position: relative; flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.stratum { position: relative; z-index: 1; display: grid; grid-template-columns: 190px minmax(0, 1fr); border-top: 1px solid var(--border-muted); min-height: 0; }
.stratum:first-of-type { border-top: 0; }
.stratum-label { display: flex; gap: 8px; padding: 10px 12px 10px 16px; border-right: 1px solid var(--border-muted); }
.stratum-label svg { margin-top: 2px; color: var(--muted); }
.stratum-label strong { display: block; font-size: 13px; font-weight: 600; }
.stratum-label small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.stratum[data-tier='TIER_1_TERMINAL_PROOF'] { background: var(--green-wash); }
.stratum[data-tier='TIER_1_TERMINAL_PROOF'] .stratum-label strong, .stratum[data-tier='TIER_1_TERMINAL_PROOF'] .stratum-label svg { color: var(--green); }
.stratum[data-tier='TIER_1_TERMINAL_PROOF']::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--green-btn); }
.stratum-nodes { display: flex; align-items: center; gap: 10px; padding: 8px 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.stratum-empty { margin: 0; color: var(--faint); font-size: 12px; white-space: nowrap; }
.stratum[data-tier='TIER_1_TERMINAL_PROOF'] .stratum-empty { padding: 4px 10px; border: 1px dashed rgba(63,185,80,.5); border-radius: var(--radius); color: var(--green); }

.src {
  position: relative;
  display: block;
  flex: none;
  width: 230px;
  padding: 7px 10px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
}
a.src:hover { border-color: var(--muted); text-decoration: none; }
.src-top { display: flex; justify-content: space-between; gap: 8px; }
.src-domain { font: 12px/1.4 var(--mono); color: var(--link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-num { font-size: 11px; color: var(--faint); white-space: nowrap; }
.src-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13px; line-height: 1.35; }
.src-hop { display: block; margin-top: 4px; font-size: 11px; color: var(--green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stratum[data-tier='TIER_1_TERMINAL_PROOF'] .src { border-color: rgba(63,185,80,.55); }

/* Kopya yığını */
.pile { position: relative; flex: none; }
.pile > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; border-radius: var(--radius); }
.pile > summary::-webkit-details-marker { display: none; }
.pile > summary .src { border-color: rgba(171,125,248,.6); box-shadow: 4px 4px 0 -1px var(--canvas), 4px 4px 0 0 rgba(171,125,248,.45), 8px 8px 0 -1px var(--canvas), 8px 8px 0 0 rgba(171,125,248,.25); margin: 0 8px 8px 0; }
.pile-count { padding: 0 8px; border-radius: 999px; background: var(--brand-wash); color: var(--brand); font-size: 12px; font-weight: 600; line-height: 22px; white-space: nowrap; }
.pile-pop {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 300px;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(1,4,9,.8);
}
.pile-pop .src { width: 100%; margin-bottom: 6px; border-style: dashed; border-color: rgba(171,125,248,.5); }
.pile-pop li:last-child .src { margin-bottom: 0; }

.edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.edges path { fill: none; stroke-width: 2; }
.edges .cites { stroke: var(--green); }
.edges .supports { stroke: var(--muted); stroke-dasharray: 4 4; }

.src.is-new { animation: settle .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes settle { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Atıf tablosu ve yayın kartı */
.rows { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; }
.rows > li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--border-muted); }
.rows > li:first-child { border-top: 0; }
.rows > li:hover { background: var(--surface); }
.row-main { min-width: 0; }
.row-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-icon { color: var(--tone, var(--muted)); }
.citation-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.citation-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border-muted); }

.paper { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px; }
.paper h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.paper .authors { margin: 0 0 16px; color: var(--muted); }
.paper dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 16px; margin: 0 0 20px; }
.paper dt { color: var(--muted); }
.paper dd { margin: 0; }
.notice { padding: 10px 12px; border: 1px solid var(--tone); border-radius: var(--radius); background: var(--wash); margin-bottom: 8px; }
.notice strong { color: var(--tone); }

/* ---------- Yan panel ---------- */
.side-block { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border-muted); }
.side-block:last-child { border-bottom: 0; }
.side-block h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.side-block p { margin: 0 0 10px; }
.about-text { font-size: 15px; line-height: 1.5; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.facts li { display: flex; gap: 8px; }
.facts svg { margin-top: 2px; }

.verdict-name { margin: 0 0 4px !important; color: var(--tone, var(--fg)); font-size: 22px; font-weight: 600; line-height: 1.25; }
.verdict-summary { color: var(--fg); }
.scale { margin: 12px 0 8px; }
.scale-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.scale-row strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.scale-track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.scale-fill { display: block; height: 100%; width: 0; background: var(--tone, var(--gray)); border-radius: 4px; transition: width .5s cubic-bezier(.2,.8,.2,1); }

.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.log li { display: flex; gap: 8px; }
.log li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--border); }
.log li[data-kind='stage'] { color: var(--fg); font-weight: 600; }
.log li[data-kind='stage']::before { background: var(--brand); }
.log li[data-kind='pointer'] { color: var(--green); }
.log li[data-kind='pointer']::before { background: var(--green); }
.log li[data-kind='error'] { color: var(--red); }
.log q { quotes: '“' '”'; color: var(--fg); font-weight: 400; overflow-wrap: anywhere; }

.signal-list, .tip-list, .notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.signal-list li { padding-left: 10px; border-left: 2px solid var(--tone); }
.signal-list strong { display: block; font-size: 13px; }
.signal-list q { quotes: '“' '”'; font-size: 12px; color: var(--fg); }
.signal-list span { display: block; font-size: 12px; color: var(--muted); }
[data-signal='EMOTIONAL_TRIGGER'] { --tone: var(--red); }
[data-signal='ANONYMOUS_AUTHORITY'] { --tone: var(--brand); }
[data-signal='ABSOLUTE_CERTAINTY'] { --tone: var(--amber); }
[data-signal='CHERRY_PICKING'] { --tone: var(--gray); }
[data-signal='CLICKBAIT_GAP'] { --tone: var(--orange); }
.tip-list li { position: relative; padding-left: 16px; color: var(--fg); }
.tip-list li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.notes summary { cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.notes ul { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Diğer sekmeler */
.view > .col-main > .box { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.tier-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 14px 16px; border-top: 1px solid var(--border-muted); overflow: hidden; min-height: 0; }
.tier-row:first-of-type { border-top: 0; }
.tier-row strong { display: block; }
.tier-row small { color: var(--muted); }
.tier-row[data-tier='TIER_1_TERMINAL_PROOF'] { background: var(--green-wash); flex: 2.4 !important; }
.tier-row[data-tier='TIER_3_SECONDARY_AGGREGATOR'] { flex: .5 !important; }
.tier-row[data-tier='TIER_1_TERMINAL_PROOF'] strong { color: var(--green); }
.tier-list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; overflow-y: auto; max-height: 100%; scrollbar-width: thin; }
.tier-list code { padding: 1px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--fg); }
.tier-box-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tier-box-body .tier-row { flex: 1; }

.steps { margin: 0; padding: 8px 16px 8px 40px; overflow-y: auto; }
.steps li { padding: 8px 0; color: var(--muted); }
.steps strong { color: var(--fg); margin-right: 4px; }

.history-row { cursor: pointer; }
.history-empty { padding: 32px 16px; text-align: center; color: var(--muted); }

.drop-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(1,4,9,.8); border: 2px dashed var(--brand); }
.drop-overlay p { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; }
.drop-overlay svg { width: 24px; height: 24px; color: var(--brand); }

/* ---------- Dar ekranlar: kaydırmaya izin ver ---------- */
@media (max-width: 1100px) {
  .crumb, .crumb-sep { display: none; }
  .view { grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
  .stratum { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 860px), (max-height: 560px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100dvh; grid-template-rows: auto var(--tabs-h) auto; }
  .topbar { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .omnibox { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .top-actions { margin-left: auto; }
  .workspace { padding: 16px 12px; }
  .view { height: auto; grid-template-columns: 1fr; }
  .col-side { overflow: visible; }
  .result { min-height: 560px; }
  .strata { min-height: 420px; }
  .stratum { grid-template-columns: 1fr; }
  .stratum-label { border-right: 0; padding-bottom: 0; }
  .kinds { grid-template-columns: 1fr; }
  .slash-hint { display: none; }
  .claim-head { flex-direction: column; gap: 8px; }
  .box-header { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
