:root { --bg:#f6f7f9; --card:#fff; --fg:#1a1d23; --muted:#6b7280; --line:#e5e7eb; --accent:#2563eb; --ok:#16a34a; --warn:#d97706; --bad:#dc2626; }
@media (prefers-color-scheme: dark) { :root { --bg:#0f1115; --card:#181b21; --fg:#e8eaee; --muted:#9aa3b2; --line:#2a2f38; --accent:#60a5fa; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:14px/1.5 system-ui,"Segoe UI",sans-serif; }
a { color:var(--accent); text-decoration:none; }
.top { padding:14px 24px; background:var(--card); border-bottom:1px solid var(--line); font-weight:600; }
main { max-width:1100px; margin:0 auto; padding:24px 16px; }
.grid { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); margin-bottom:20px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; margin-bottom:16px; }
.kpi .v { font-size:24px; font-weight:700; } .kpi .l { color:var(--muted); font-size:12px; }
table { width:100%; border-collapse:collapse; } th,td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-weight:500; font-size:12px; }
.badge { display:inline-block; padding:1px 8px; border-radius:99px; font-size:12px; background:var(--line); }
.ok { color:var(--ok); } .warn { color:var(--warn); } .bad { color:var(--bad); } .muted { color:var(--muted); }
h1,h2 { margin:0 0 12px; } h2 { font-size:16px; }
form.inline { display:flex; flex-wrap:wrap; gap:8px; align-items:end; }
input,select,textarea,button { font:inherit; padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--fg); }
button { background:var(--accent); color:#fff; border:0; cursor:pointer; }
button:disabled { opacity:.6; cursor:default; }
button.secondary { background:var(--line); color:var(--fg); }
label { display:flex; flex-direction:column; font-size:12px; color:var(--muted); gap:2px; }
.tipwrap { position:relative; }
.tipwrap .tip { display:none; position:absolute; z-index:10; top:100%; left:0; min-width:220px; margin-top:6px; padding:10px 12px; background:var(--card); border:1px solid var(--line); border-radius:8px; box-shadow:0 6px 20px rgba(0,0,0,.25); font-size:13px; }
.tipwrap:hover .tip, .tipwrap:focus-within .tip { display:block; }
.tip div { display:flex; justify-content:space-between; gap:16px; }
.tip.right { left:auto; right:0; max-width:340px; }
.tip p { margin:0 0 6px; } .tip p:last-child { margin-bottom:0; }
.toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:end; margin:8px 0; }
.charts { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; padding: 12px 18px; border-radius: 10px; background: #15803d; color: #fff; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: opacity .5s, transform .5s; }
.toast.bad { background: #b91c1c; }
.toast.hide { opacity: 0; transform: translateY(8px); }

header.top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
header.top nav { display: flex; gap: 16px; margin-left: auto; font-size: 14px; }
table.sortable th { white-space: nowrap; user-select: none; }
table.sortable th:hover { color: #4c8dff; }

/* Grafik/tablo başlıkları ile içerik arasında boşluk */
.charts > div > strong, .grid > div > strong { display: block; margin-bottom: 10px; }

/* Uzun listeler kaydırılır */
.scroll { max-height: 380px; overflow: auto; }
.scroll table { margin: 0; }
td.warn select, td.bad select { font-weight: 600; }

.pol-tabs { margin-top: 12px; }
textarea { width: 100%; box-sizing: border-box; }

[hidden] { display: none !important; }

.lgrid { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); }
.lsec { border:1px solid var(--line); border-radius:8px; padding:12px; min-width:0; }
.lhead { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.licon { width:40px; height:40px; border-radius:9px; }
.lf { margin:8px 0; }
.lv { white-space:pre-wrap; word-break:break-word; margin-top:2px; }
.lv.long { max-height:140px; overflow:auto; border:1px solid var(--line); border-radius:6px; padding:6px 8px; }
.shots { display:flex; gap:8px; overflow-x:auto; padding:4px 0; }
.shots img { height:180px; width:auto; border-radius:6px; border:1px solid var(--line); display:block; }
.shot { position:relative; display:inline-block; flex:0 0 auto; }
.shot-x { position:absolute; top:4px; right:4px; width:24px; height:24px; padding:0; line-height:1; border-radius:50%; background:#e5534b; color:#fff; border:none; cursor:pointer; }

.acc > summary { cursor:pointer; list-style:none; display:flex; align-items:center; gap:8px; }
.acc > summary::-webkit-details-marker { display:none; }
.acc > summary::before { content:"▸"; color:var(--muted); }
.acc[open] > summary::before { content:"▾"; }
.acc > summary h2 { margin:0; }
.acc[open] > summary { margin-bottom:8px; }
