:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f0f2f5; --text: #1b1f24; --muted: #5d6673;
  --line: #e1e5ea; --accent: #1f5fbf; --accent-soft: #e6eefb; --good: #1d7a4b; --mid: #b26a00; --low: #8a8f98;
  --mark: #fff1b8; --c1: #1f5fbf; --c2: #3e8fd6; --c3: #7fb3e6; --c4: #b9d3ef; --c5: #c77d1a;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 2px 8px rgba(16,24,40,.04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --surface: #191d23; --surface-2: #222730; --text: #e7eaee; --muted: #9aa3ae;
    --line: #2c323b; --accent: #6ea8ff; --accent-soft: #1c2a40; --good: #4cc38a; --mid: #f0a43a; --low: #7d8590;
    --mark: #5b4a12; --c1: #6ea8ff; --c2: #4f88d9; --c3: #3a6aaa; --c4: #2c4d7a; --c5: #e0a04a;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.25; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; gap: 12px; align-items: center; }
.logo { font-size: 28px; color: var(--accent); }
.brand h1 { font-size: 20px; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.who { position: relative; width: 300px; max-width: 100%; }
.who.small { width: 280px; }
.who input, .big, textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; }
select { width: auto; padding: 6px 10px; }
.big { font-size: 17px; padding: 13px 14px; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dropdown { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-height: 300px; overflow: auto; }
.dropdown li { padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.dropdown li:hover, .dropdown li.active { background: var(--accent-soft); }
.dropdown small { color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 20px 0; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.lbl { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.file input { display: none; }
.file span { display: inline-block; padding: 7px 12px; border: 1px dashed var(--line); border-radius: 8px; cursor: pointer; background: var(--surface-2); }
.check { display: flex; gap: 6px; align-items: center; font-size: 14px; }

.filters { margin: 14px 0; border-top: 1px solid var(--line); padding-top: 10px; }
.filters summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.frow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.fl { color: var(--muted); font-size: 13px; min-width: 70px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
button.chip { cursor: pointer; font: inherit; font-size: 13px; }
button.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip.me { background: var(--accent-soft); border-color: var(--accent); }
.chip.me button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 0 0 4px; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--surface-2); color: var(--muted); }

.primary { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 11px 22px; font: inherit; font-weight: 600; cursor: pointer; }
.primary:disabled { opacity: .6; cursor: progress; }

.note { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px; }
.section-h { font-size: 16px; margin: 26px 0 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card-h { display: flex; gap: 14px; align-items: flex-start; }
.rank { font-weight: 700; color: var(--muted); font-size: 15px; min-width: 22px; padding-top: 10px; }
.who-h { flex: 1; min-width: 0; }
.who-h h3 { font-size: 18px; }
.who-h h3 button { all: unset; cursor: pointer; }
.who-h h3 button:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 13px; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.conf { font-weight: 600; }
.conf.c-cok-yuksek, .conf.c-yuksek { color: var(--good); }
.conf.c-orta { color: var(--mid); }
.conf.c-dusuk { color: var(--low); }

.reasons { margin: 14px 0 0; padding-left: 20px; }
.reasons li { margin: 4px 0; }

.breakdown { margin-top: 14px; }
.bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.legend b { color: var(--text); font-weight: 600; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.evidence { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.evidence h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.ev { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 6px 0; align-items: start; }
.ev .pct { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.ev .mini { height: 4px; background: var(--surface-2); border-radius: 3px; margin-top: 4px; }
.ev .mini i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.ev .t { font-size: 14px; }
.ev .t a { color: var(--text); text-decoration: none; }
.ev .t a:hover { text-decoration: underline; }
.ev .d { color: var(--muted); font-size: 12.5px; }
.ev .kw { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ev .snip { margin: 4px 0 0; padding-left: 8px; border-left: 2px solid var(--line); color: var(--muted); font-size: 12.5px; font-style: italic; }
.unit { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.areas { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.areas .fl { min-width: 0; }

.aspects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.aspect { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.aspect h4 { margin: 0 0 4px; font-size: 15px; }
.aspect .src { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aspect ol { margin: 0; padding-left: 18px; font-size: 13.5px; }
.aspect li { margin: 5px 0; }
.aspect .why { color: var(--muted); font-size: 12.5px; display: block; }
.team { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.team ul { margin: 8px 0 0; padding-left: 18px; }
.cov { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 13px; }

.drawer { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-in { width: min(640px, 100%); height: 100%; overflow: auto; background: var(--bg); padding: 22px 20px; position: relative; }
.close { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.years { display: flex; align-items: flex-end; gap: 2px; height: 70px; margin: 10px 0 2px; }
.years i { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 1px; }
.yl { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.parea { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.parea h4 { margin: 0; font-size: 15px; }
.parea ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: s 0.8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes s { to { transform: rotate(360deg); } }
.foot { color: var(--muted); font-size: 12.5px; padding-top: 10px; padding-bottom: 30px; }

@media (max-width: 640px) {
  .who, .who.small { width: 100%; }
  .card-h { flex-wrap: wrap; }
  .ring { width: 54px; height: 54px; }
  .ring span { width: 42px; height: 42px; font-size: 14px; }
}
