:root {
  --bg: #f3f4f7; --surface: #ffffff; --surface-2: #f7f8fa; --ink: #151b26; --ink-2: #465061; --muted: #7a8394;
  --line: #e1e5eb; --line-2: #eef1f5; --accent: #2a5bd7; --accent-soft: #e7eefd;
  --good: #177a45; --good-soft: #e2f3e9; --bad: #b3321f; --bad-soft: #fbe6e2; --warn: #8d5a00; --warn-soft: #fcf0d9;
  --s1: #2a5bd7; --s2: #d4761f; --s3: #14907f; --s4: #8a55c9; --mark: #b3321f;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 1px rgba(16, 24, 40, .03);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1218; --surface: #161b23; --surface-2: #1b212a; --ink: #e7eaf0; --ink-2: #b5bcc8; --muted: #8791a1;
    --line: #29303b; --line-2: #212731; --accent: #7aa2ff; --accent-soft: #1b2847;
    --good: #52c48c; --good-soft: #15291e; --bad: #ff8574; --bad-soft: #3a1f1b; --warn: #f0b44e; --warn-soft: #33270f;
    --s1: #7aa2ff; --s2: #f0a050; --s3: #3cc6b0; --s4: #b58cf0; --mark: #ff8574; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1218; --surface: #161b23; --surface-2: #1b212a; --ink: #e7eaf0; --ink-2: #b5bcc8; --muted: #8791a1;
  --line: #29303b; --line-2: #212731; --accent: #7aa2ff; --accent-soft: #1b2847;
  --good: #52c48c; --good-soft: #15291e; --bad: #ff8574; --bad-soft: #3a1f1b; --warn: #f0b44e; --warn-soft: #33270f;
  --s1: #7aa2ff; --s2: #f0a050; --s3: #3cc6b0; --s4: #b58cf0; --mark: #ff8574; --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.num, td.r, th.r { font-variant-numeric: tabular-nums; }
.layout { display: grid; grid-template-columns: 208px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.brand { font-weight: 650; font-size: 15px; padding: 2px 10px 14px; letter-spacing: -.01em; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.nav svg { width: 17px; height: 17px; flex: none; }
.side .foot { margin-top: auto; padding: 10px; color: var(--muted); font-size: 12px; }
.side .foot button { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; cursor: pointer; color: var(--ink-2); }
main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 12px 28px; display: flex; align-items: center; gap: 16px; }
.top h1 { font-size: 19px; margin: 0; letter-spacing: -.01em; font-weight: 650; text-wrap: balance; }
.top .sub { color: var(--muted); font-size: 12.5px; }
.top .spacer { flex: 1; }
.fresh { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 6px 11px; cursor: pointer; font-weight: 500; box-shadow: var(--shadow); }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .55; cursor: default; }
.content { padding: 22px 28px 60px; display: flex; flex-direction: column; gap: 18px; max-width: 1480px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.card h2 { font-size: 15px; margin: 0 0 12px; font-weight: 650; display: flex; align-items: baseline; gap: 10px; }
.card h2 .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1100px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; box-shadow: var(--shadow); }
.tile .l { font-size: 12px; color: var(--muted); }
.tile .v { font-size: 23px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.tile .s { font-size: 12px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 550; font-size: 11.5px; color: var(--muted); padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--surface); }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--ink); }
th.r, td.r { text-align: right; white-space: nowrap; } /* tutar iki satıra kırılmasın ("1.468 / TL") */
td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
tr.tot td { font-weight: 650; border-top: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 550; padding: 1px 8px; border-radius: 99px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.pill.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.idx { display: inline-block; min-width: 36px; text-align: center; font-weight: 650; font-size: 12px; padding: 1px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.idx.good { background: var(--good-soft); color: var(--good); }
.idx.bad { background: var(--bad-soft); color: var(--bad); }
.idx.mid { background: var(--surface-2); color: var(--ink-2); }
.idx.none { color: var(--muted); }
.up { color: var(--good); } .down { color: var(--bad); } .flat { color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 12px; }
.alerts { display: flex; flex-direction: column; gap: 6px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 8px 11px; border-radius: 8px; font-size: 13px; }
.alert.bad { background: var(--bad-soft); } .alert.warn { background: var(--warn-soft); } .alert.info { background: var(--surface-2); }
.alert .dot { margin-top: 7px; flex: none; }
.alert.bad .dot { color: var(--bad); } .alert.warn .dot { color: var(--warn); } .alert.info .dot { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters input[type=search], .filters select, input[type=date] { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 7px; padding: 6px 10px; font: inherit; }
.filters input[type=search] { min-width: 240px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 5px 11px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cc { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-color .12s; }
.cc:hover { border-color: var(--accent); }
.cc .th { aspect-ratio: 4 / 5; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; position: relative; }
.cc .th img { width: 100%; height: 100%; object-fit: cover; }
.cc .th .ph { font-size: 12px; color: var(--muted); padding: 12px; text-align: center; }
.cc .th .st { position: absolute; top: 8px; left: 8px; }
.cc .bd { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.cc .nm { font-weight: 600; font-size: 13px; line-height: 1.3; word-break: break-word; }
.cc .ty { font-size: 11.5px; color: var(--muted); }
.cc .kv { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cc .ix { display: flex; flex-wrap: wrap; gap: 3px 5px; align-items: center; font-size: 11px; color: var(--muted); }
.cc .ix .idx { min-width: 28px; padding: 0 4px; }
.thumb { width: 38px; height: 48px; border-radius: 5px; object-fit: cover; background: var(--surface-2); display: block; }
.thumb.ph { display: grid; place-items: center; font-size: 10px; color: var(--muted); }
.cell-c { display: flex; align-items: center; gap: 10px; }
.viewer { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 18px; }
@media (max-width: 1000px) { .viewer { grid-template-columns: 1fr; } }
.player { background: #0b0d11; border-radius: 11px; overflow: hidden; display: grid; place-items: center; aspect-ratio: 9 / 16; max-height: 640px; }
.player video, .player img { width: 100%; height: 100%; object-fit: contain; }
.player .ph { color: #9aa3b2; font-size: 13px; padding: 20px; text-align: center; }
.files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.files button { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 4px 9px; cursor: pointer; font-size: 12px; }
.files button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .ax text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--line-2); }
.chart .base { stroke: var(--line); }
.chart .mk line { stroke: var(--mark); stroke-dasharray: 3 3; opacity: .7; }
.chart .mk circle { fill: var(--mark); }
.chart .thr line { stroke: var(--bad); stroke-dasharray: 5 4; }
.chart .thr text { fill: var(--bad); font-size: 11px; }
.chart .hover line { stroke: var(--muted); }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); white-space: nowrap; z-index: 3; display: none; }
.tip b { font-weight: 650; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.tl { display: flex; flex-direction: column; }
.tl .it { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.tl .it .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.tl .it .who { color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); padding: 16px 0; font-size: 13px; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
.err { background: var(--bad-soft); color: var(--bad); padding: 12px 14px; border-radius: 8px; }
.kv-list { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.kv-list dt { color: var(--muted); } .kv-list dd { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 7px 11px; cursor: pointer; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.stars { color: #e0a100; letter-spacing: 1px; }
.review { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.review .meta { color: var(--muted); font-size: 12px; }
.spin { width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sp 0.8s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } .cc { transition: none; } }
.refresh-pop { position: absolute; right: 28px; top: 54px; width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 8px 30px rgba(0,0,0,.15); padding: 12px; z-index: 20; }
.refresh-pop .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; align-items: center; }
.refresh-pop .row:last-child { border-bottom: 0; }
.refresh-pop .row .d { color: var(--muted); font-size: 11.5px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 12px 0 0; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .side .foot { display: none; }
  .top { position: static; padding: 12px 16px; flex-wrap: wrap; }
  .content { padding: 16px; }
  .refresh-pop { right: 16px; width: calc(100% - 32px); }
}
details.more > summary { cursor: pointer; color: var(--muted); font-size: 12.5px; padding: 6px 2px; }
details.more > summary:hover { color: var(--ink); }

/* ---------------- Claude sohbeti ---------------- */
.askbtn { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 7px 12px; font-weight: 600; cursor: pointer; }
.askbtn:hover { filter: brightness(1.08); }
.askbtn svg { width: 15px; height: 15px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(0,0,0,.14); z-index: 30; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .18s ease; }
.drawer.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }
.drawer .dh { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.drawer .dh b { font-size: 15px; }
.drawer .dh .sp { flex: 1; }
.drawer .dh button { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.drawer .ctx { padding: 6px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.drawer .msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.drawer .foot2 { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 8px; align-items: flex-end; }
.drawer textarea { flex: 1; resize: none; min-height: 42px; max-height: 160px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font: inherit; background: var(--surface); color: var(--ink); }
.m-user { align-self: flex-end; max-width: 88%; background: var(--accent-soft); color: var(--ink); padding: 8px 12px; border-radius: 12px 12px 3px 12px; white-space: pre-wrap; font-size: 13.5px; }
.m-ai { font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.m-ai p { margin: 0 0 8px; } .m-ai ul, .m-ai ol { margin: 0 0 8px; padding-left: 20px; } .m-ai li { margin-bottom: 3px; }
.m-ai h1, .m-ai h2, .m-ai h3 { font-size: 14px; margin: 10px 0 6px; }
.m-ai code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; }
.m-ai pre { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 8px 10px; overflow-x: auto; margin: 0 0 8px; }
.m-ai pre code { border: 0; padding: 0; background: none; }
.m-ai table { font-size: 12.5px; margin: 0 0 8px; } .m-ai th, .m-ai td { padding: 4px 6px; }
.m-tool { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.m-tool b { color: var(--ink-2); font-weight: 600; }
.m-status { font-size: 12px; color: var(--muted); text-align: center; }
.m-done { font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; }
.m-err { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.m-err code { font: 11.5px ui-monospace, Menlo, monospace; background: var(--surface); padding: 1px 4px; border-radius: 4px; word-break: break-all; }
.m-perm { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.m-perm pre { margin: 7px 0; max-height: 220px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; font: 11.5px/1.45 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.m-perm .acts { display: flex; gap: 8px; }
.m-perm .ok { background: var(--good); color: #fff; border: 0; border-radius: 7px; padding: 6px 14px; font-weight: 600; cursor: pointer; }
.m-perm .no { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 6px 14px; cursor: pointer; }
.m-perm.decided { opacity: .7; border-color: var(--line); background: var(--surface-2); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: tp 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tp { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.hist { padding: 8px 16px; border-bottom: 1px solid var(--line-2); max-height: 240px; overflow-y: auto; }
.hist a { display: block; padding: 5px 0; font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.hist a small { color: var(--muted); margin-left: 6px; }
.drawer .opts { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 16px; border-bottom: 1px solid var(--line-2); }
.drawer .opts > div { display: flex; align-items: center; gap: 8px; }
.drawer .opts .seg button { font-size: 12px; padding: 4px 9px; }
.pend { display: flex; gap: 8px; padding: 0 12px; flex-wrap: wrap; }
.pend:not(:empty) { padding-top: 8px; }
.pimg { position: relative; } .pimg img { width: 64px; height: 64px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); display: block; }
.pimg button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: var(--surface); cursor: pointer; font-size: 13px; line-height: 20px; padding: 0; }
.clip { background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.clip svg { width: 18px; height: 18px; }
.uimgs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; } .uimgs img { max-width: 160px; max-height: 120px; border-radius: 6px; display: block; }
a.flink { text-decoration: underline dotted; }

mark { background: color-mix(in srgb, var(--warn) 30%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---- oneriler, gundem, uyari dugmeleri, tablo araclari, sohbet gecmisi */
.nbadge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn); color: var(--surface); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.lnk { background: none; border: 0; padding: 2px 4px; color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; border-radius: 5px; }
.lnk:hover { text-decoration: underline; }
.lnk:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#agenda { display: flex; flex-direction: column; gap: 14px; }
#agenda:empty { display: none; }
.props { display: flex; flex-direction: column; gap: 10px; }
.prop { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.prop.bekliyor { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }
.prop.uygulandi, .prop.reddedildi { opacity: .8; }
.prop .ph { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prop .pw { display: grid; grid-template-columns: 104px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; }
.prop .pw .lbl { color: var(--muted); font-size: 12px; padding-top: 1px; }
.prop .acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.prop .acts:empty { display: none; }
.btn.ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ok:hover { color: #fff; filter: brightness(1.08); }
.wk { display: flex; flex-direction: column; }
.wk-it { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--ink); }
.wk-it:last-child { border-bottom: 0; }
.wk-it:hover { text-decoration: none; background: var(--surface-2); }
.wk-it .d { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.wk-it.late .d { color: var(--bad); font-weight: 600; }
.alert .at { flex: 1; }
.alert .aacts { display: inline-flex; gap: 2px; flex: none; opacity: .85; }
.alert:hover .aacts { opacity: 1; }
.tbl-tools { display: flex; justify-content: flex-end; margin: -6px 0 4px; }
.tbl-tools .lnk { font-size: 12px; color: var(--muted); }
.tbl-tools .lnk:hover { color: var(--accent); }
.drawer.wide { width: min(900px, 100vw); }
.drawer .dh #ch-wide { font-size: 14px; line-height: 1; }
.hist .htools { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.hist .htools input[type=search] { flex: 1; border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; font: inherit; font-size: 12.5px; background: var(--surface); color: var(--ink); }
.hist .hrow { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line-2); }
.hist .hrow a.ht { flex: 1; border-bottom: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist .hrow.cur a.ht { color: var(--accent); font-weight: 600; }
.hist .hrow.hid a.ht { color: var(--muted); font-style: italic; }
.hist .hrow button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.hist .hrow button:hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 640px) { .prop .pw, .wk-it { grid-template-columns: 1fr; gap: 2px; } }
/* ---- duzenleme turu 2 */
.card h2 .h2x { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.card h2 .h2x:hover { color: var(--accent); }
.more-rows { display: block; margin: 8px auto 0; font-size: 12.5px; }
.tcmp { display: inline-flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.agenda2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 1100px) { .agenda2 { grid-template-columns: minmax(0, 1fr); } }
.pwhy summary { cursor: pointer; font-size: 12.5px; color: var(--muted); padding: 2px 0; }
.pwhy summary:hover { color: var(--accent); }
.pwhy[open] { display: flex; flex-direction: column; gap: 6px; }
.agenda2 .wk-it { grid-template-columns: 96px 1fr; }
.cc .ix { display: flex; justify-content: space-between; gap: 6px; flex-wrap: nowrap; white-space: nowrap; font-size: 11.5px; color: var(--muted); }
.cc .ix span { display: inline-flex; align-items: center; gap: 4px; }
section.card.click:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#sum { margin-bottom: 14px; }
.card h2.ch2 { flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.card h2.ch2 .nm { white-space: nowrap; }
.pend-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 10px; border: 1px solid var(--warn); background: var(--warn-soft); color: var(--ink); font-size: 13.5px; margin-bottom: 14px; }
.pend-bar:hover { text-decoration: none; filter: brightness(1.04); }
.pend-bar .nbadge { margin-left: 0; }
.pend-bar > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pend-bar .go { color: var(--warn); font-weight: 600; white-space: nowrap; }
/* ---- dar ekran: hicbir sey sayfayi yana tasirmasin */
.layout { grid-template-columns: 208px minmax(0, 1fr); }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .top .sub { width: 100%; }
  .top .fresh { flex-wrap: wrap; }
  .tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .pend-bar { flex-wrap: wrap; }
  .pend-bar > span:nth-child(2) { white-space: normal; }
  .filters input[type=search] { min-width: 0; width: 100%; }
  .drawer, .drawer.wide { width: 100vw; }
  .alert { flex-wrap: wrap; }
}
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 8 Eki: orta genişlikte 6 kart 4+2 diziliyordu (satırda yalnız kalan kartlar). 6 kart → 3+3,
   tam 4 kart → tek satır, 3 kart → tek satır. */
@media (min-width: 901px) and (max-width: 1400px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles:has(> .tile:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* İlk sütun (gün / ülke / durum) iki satıra kırılmasın; tablo kendi kabında yana kayar. */
table td:first-child { white-space: nowrap; }
.side .foot #fb { margin-top: 6px; display: block; }
.card.audit { border-color: var(--warn); }
/* ---- rapor olusturucu */
.rp { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .rp { grid-template-columns: minmax(0, 1fr); } }
.rp-set { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.rp-sec { display: flex; flex-direction: column; gap: 7px; }
.rp-h { font-weight: 650; font-size: 13px; }
.rp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rp-row select, .rp-row input, .rp-dims select, .rp-set input[type=search], .rp-set input[type=number] { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 7px; padding: 5px 8px; font: inherit; font-size: 12.5px; }
.rp-row input[type=date] { flex: 1; min-width: 0; }
.rp-dims { display: flex; flex-direction: column; gap: 6px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 99px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.rp-f { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 9px; }
.rp-f summary { cursor: pointer; font-size: 12.5px; font-weight: 550; }
.rp-list { display: flex; flex-direction: column; gap: 3px; max-height: 190px; overflow-y: auto; margin-top: 6px; font-size: 12.5px; }
.rp-list label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.rp-set input[type=search] { width: 100%; margin-top: 6px; }
.rp-opt { font-size: 12.5px; display: flex; gap: 6px; align-items: baseline; }
.rp-go { width: 100%; padding: 9px; font-size: 14px; }
.rp-out { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rp-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.rp-head h2 { font-size: 16px; }
.rp-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.rp-d { font-size: 11px; font-weight: 600; }
.rp-d.up { color: var(--good); } .rp-d.down { color: var(--bad); } .rp-d.flat { color: var(--muted); }
.rp-bars { display: flex; flex-direction: column; gap: 5px; }
.rp-bar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 110px; gap: 10px; align-items: center; font-size: 12.5px; }
.rp-bar .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-bar .t { background: var(--surface-2); border-radius: 4px; height: 14px; overflow: hidden; }
.rp-bar .t i { display: block; height: 100%; background: var(--s1); border-radius: 4px; }
.rp-bar .v { text-align: right; font-variant-numeric: tabular-nums; }
@media print {
  .side, .top .askbtn, .fresh, .rp-set, .rp-acts, .drawer, #pop { display: none !important; }
  .layout, .rp { display: block; } .content { padding: 0; } .card { break-inside: avoid; box-shadow: none; }
}
.rp-out td, .rp-out th { white-space: nowrap; }

/* ---- hedefler, ulkeler, butce, karsilastirma, rapor diyalogu */
.goals .card h2 { flex-wrap: wrap; }
.goal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.goal-row .gv { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.goal-row input.gt { width: 80px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; background: var(--surface); color: var(--ink); }
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.cmp-grid { display: grid; gap: 14px; }
.cmp-th { aspect-ratio: 1 / 1; background: var(--surface-2); border-radius: 8px; overflow: hidden; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.cmp-th img { width: 100%; height: 100%; object-fit: contain; }
.cmp-c h2 { margin-bottom: 4px; }
.rp-dlg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rp-dlg .card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; }
.rp-dlg input, .rp-dlg select { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 7px; padding: 6px 8px; font: inherit; }
#rsched:empty { display: none; }
#rout { display: flex; flex-direction: column; gap: 14px; }
.bp-t tr.cur td { background: var(--accent-soft); }
#bpc td { background: var(--surface-2); }

.aops { display: inline-flex; gap: 2px; flex-wrap: wrap; margin-top: 2px; }
.aops .lnk { font-size: 12px; padding: 1px 5px; }
.aops.col { flex-direction: row; white-space: nowrap; }
.wk-it .aops { opacity: .75; } .wk-it:hover .aops { opacity: 1; }
.rp-dlg textarea { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 7px; padding: 6px 8px; font: inherit; }
.drawer .ch-sel { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; padding: 3px 6px; font: inherit; font-size: 12px; margin-right: 6px; }
