/* Mentor Takip v0.2 — sade, okunaklı, hızlı */
:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --side: #fbfaf7;
  --ink: #1b211f;
  --ink-2: #3c4441;
  --muted: #6c736f;
  --line: #e4e1d9;
  --line-2: #efece6;
  --accent: #0e6b5b;
  --accent-2: #0b5a4c;
  --accent-ink: #ffffff;
  --accent-soft: #e2efeb;
  --ok: #2b7a4b;   --ok-bg: #e4f2e9;
  --warn: #a5650e; --warn-bg: #fbefd9;
  --bad: #b03a3a;  --bad-bg: #f9e3e1;
  --info: #2d5d88; --info-bg: #e3ecf6;
  --mute-bg: #eeebe5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .04), 0 4px 14px rgba(20, 30, 25, .04);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --side-w: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614; --surface: #1a1f1d; --surface-2: #1f2522; --side: #161b19; --ink: #e7ebe8; --ink-2: #c4cbc7; --muted: #8d9691;
    --line: #2c3330; --line-2: #242a28; --accent: #4fb69f; --accent-2: #63c4ae; --accent-ink: #0c1311; --accent-soft: #1c3731;
    --ok: #6cc28f; --ok-bg: #1b3225; --warn: #e0a64a; --warn-bg: #382c17; --bad: #ec8a83; --bad-bg: #3b201f;
    --info: #86b4e0; --info-bg: #1c2b3a; --mute-bg: #272d2a; --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 650; letter-spacing: -.012em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1rem; display: flex; align-items: center; gap: .45rem; }
h2 .ic { color: var(--muted); }
h3 { font-size: .74rem; margin: 1.2rem 0 .35rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
h3:first-child { margin-top: 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
small, .small { font-size: .83rem; }
.muted { color: var(--muted); }
.good { color: var(--ok); font-weight: 600; }
.bad { color: var(--bad); font-weight: 600; }
.warnc { color: var(--warn); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.ic { flex: none; vertical-align: -3px; }

.prose { max-width: 78ch; margin: .1rem 0 .6rem; }
.prose p { margin: 0 0 .6rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: .2rem 0 .6rem; padding-left: 1.2rem; }
.prose li { margin: .15rem 0; }
.prose a { word-break: break-all; }

/* ------------------------------------------------ Sol menü */
body.app { padding-left: var(--side-w); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30;
  display: flex; flex-direction: column; gap: .2rem;
  background: var(--side); border-right: 1px solid var(--line); padding: 1rem .75rem .75rem; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); white-space: nowrap; padding: .2rem .45rem .7rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 24px; height: 24px; flex: none; background: url(favicon.svg) center / contain no-repeat; }
.sidebar .search { position: relative; margin-bottom: .5rem; }
.sidebar .search .ic { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.sidebar .search input { padding-left: 2rem; background: var(--surface); }
.newnote { margin-bottom: .7rem; }
.sidenav, .sidefoot { display: flex; flex-direction: column; gap: 1px; }
.sidenav a, .sidefoot a, .sidefoot .linkbtn {
  display: flex; align-items: center; gap: .65rem; padding: .48rem .6rem; border-radius: var(--radius-sm);
  color: var(--ink-2); font-weight: 520; width: 100%;
}
.sidenav a .ic, .sidefoot .ic { color: var(--muted); }
.sidenav a:hover, .sidefoot a:hover, .sidefoot .linkbtn:hover { background: var(--line-2); text-decoration: none; }
.sidenav a.on, .sidefoot a.on { background: var(--accent-soft); color: var(--accent); }
.sidenav a.on .ic, .sidefoot a.on .ic { color: var(--accent); }
.sidehead { font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 1.1rem .6rem .35rem; }
.sidecos { display: flex; flex-direction: column; gap: 1px; }
.sidecos a { display: flex; align-items: center; gap: .55rem; padding: .36rem .6rem; border-radius: var(--radius-sm); color: var(--ink-2); font-size: .9rem; }
.sidecos a:hover { background: var(--line-2); text-decoration: none; }
.sidecos a.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; }
.sidecos .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidecos small { font-size: .65rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 .25rem; }
.sidecos .light { width: 8px; height: 8px; box-shadow: none; }
.sidefoot { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.linkbtn { background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
form.inline { display: inline; margin: 0; }
.sidefoot form.inline { display: block; }
.mobilebar, .scrim { display: none; }

/* ------------------------------------------------ Yerleşim */
.wrap { max-width: 1240px; margin: 0 auto; padding: 1.6rem 1.8rem 4rem; }
.narrow { max-width: 460px; margin: 0 auto; padding: 3rem 1rem; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.pagehead .sub { margin: .3rem 0 0; color: var(--muted); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.cohead { align-items: center; }
.cotitle { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.actions { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.cols2 > .card { margin-bottom: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.15rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.card.highlight { border-color: var(--accent); background: var(--accent-soft); }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .75rem; flex-wrap: wrap; }
.count { display: inline-block; min-width: 1.45em; padding: 0 .42em; border-radius: 99px; background: var(--mute-bg); color: var(--muted); font-size: .72rem; font-weight: 650; text-align: center; line-height: 1.55; }
.empty { color: var(--muted); margin: .2rem 0; font-size: .92rem; }
.emptybig { text-align: center; padding: 2rem 1rem; }
.emptybig p { margin: 0 0 .4rem; font-weight: 600; }
.emptybig p.muted { font-weight: 400; margin-bottom: 1rem; }

/* ------------------------------------------------ Avatar */
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #fff;
}
.avatar.sm { width: 24px; height: 24px; border-radius: 6px; font-size: .62rem; }
.avatar.lg { width: 52px; height: 52px; border-radius: 13px; font-size: 1.1rem; }
.avatar.h0 { background: #0e6b5b; } .avatar.h1 { background: #2d5d88; } .avatar.h2 { background: #8a4b2a; } .avatar.h3 { background: #6b4c8a; }
.avatar.h4 { background: #3f6e2f; } .avatar.h5 { background: #9a3b5a; } .avatar.h6 { background: #4a5a66; } .avatar.h7 { background: #8a6d12; }

/* ------------------------------------------------ Butonlar */
.btn {
  display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 560;
  cursor: pointer; white-space: nowrap; line-height: 1.2; transition: border-color .12s, background .12s, filter .12s;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn .ic { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--line-2); }
.btn.danger { color: var(--bad); border-color: var(--bad-bg); background: transparent; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { padding: .32rem .7rem; font-size: .85rem; }
.btn.block { width: 100%; justify-content: center; padding: .62rem; }
.iconbtn { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--muted); border-radius: 6px; vertical-align: middle; }
.iconbtn .ic { width: 15px; height: 15px; }
.iconbtn:hover { background: var(--line-2); color: var(--ink); text-decoration: none; }
.quick {
  font: inherit; font-size: .76rem; font-weight: 600; padding: .18rem .5rem; margin-right: .2rem; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ok); white-space: nowrap; vertical-align: middle;
}
.quick:hover { background: var(--ok-bg); border-color: var(--ok); }

/* ------------------------------------------------ Rozetler, filtreler */
.badge { display: inline-block; padding: .08rem .52rem; border-radius: 99px; font-size: .76rem; font-weight: 620; white-space: nowrap; background: var(--mute-bg); color: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.tag { display: inline-block; padding: .04rem .45rem; border: 1px solid var(--line); border-radius: 5px; font-size: .76rem; color: var(--ink-2); white-space: nowrap; background: var(--surface-2); }
.tag:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0 0 1rem; }
.filters .sep { width: 1px; height: 1.3rem; background: var(--line); margin: 0 .3rem; }
.chip { padding: .28rem .72rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .85rem; }
.chip:hover { text-decoration: none; border-color: var(--muted); }
.chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.inline-form select, .inline-form input { width: auto; padding: .32rem .55rem; }
.inline-form label { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }

/* ------------------------------------------------ Sekmeler */
.tabs { display: flex; gap: .1rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 0 1.2rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .55rem .78rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 520; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }

/* ------------------------------------------------ Göstergeler */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .85rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-size: .78rem; font-weight: 560; }
.stat .value { font-size: 1.5rem; font-weight: 680; font-variant-numeric: tabular-nums; margin-top: .1rem; letter-spacing: -.02em; }
.stat .value small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.stat .note { font-size: .79rem; color: var(--muted); margin-top: .15rem; }
.light { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; vertical-align: middle; }
.light.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.light.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.light.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.light.none { background: transparent; border: 1.5px dashed var(--muted); }
.score { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 6px; font-weight: 650; font-size: .85rem; }
.score.ok { background: var(--ok-bg); color: var(--ok); }
.score.warn { background: var(--warn-bg); color: var(--warn); }
.score.bad { background: var(--bad-bg); color: var(--bad); }
meter { width: 70px; height: 9px; vertical-align: middle; }
.scorebars { display: grid; gap: .45rem; max-width: 440px; margin-bottom: .7rem; }
.sb { display: grid; grid-template-columns: 70px 1fr 1.5rem; align-items: center; gap: .6rem; }
.sb meter { width: 100%; height: 12px; }
.private { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: .65rem .85rem; margin-top: .6rem; }
.trend { display: flex; align-items: center; gap: 1rem; margin-top: .6rem; }

.kpicards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .85rem; margin-bottom: 1rem; }
.kpicard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .95rem .55rem; color: var(--ink); box-shadow: var(--shadow); }
.kpicard:hover { border-color: var(--accent); text-decoration: none; }
.kpicard .label { font-size: .78rem; color: var(--muted); font-weight: 560; }
.kpicard .value { font-size: 1.15rem; font-weight: 680; font-variant-numeric: tabular-nums; margin: .1rem 0 .25rem; }
.kpicard .value span { font-size: .76rem; }
.kpicard svg { width: 100%; height: 40px; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark .target { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.spark .base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark .dot { fill: var(--accent); }

.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: .4rem; align-items: end; height: 140px; }
.bar { display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar svg { flex: 1; width: 100%; }
.bar rect { fill: var(--accent); }
.bar span { font-size: .7rem; color: var(--muted); margin-top: .2rem; white-space: nowrap; }

/* ------------------------------------------------ Ana ekran gündemi */
.agenda, .attn { list-style: none; margin: 0; padding: 0; }
.agenda li { display: flex; align-items: center; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--line-2); }
.agenda li:last-child, .attn li:last-child { border-bottom: 0; }
.agenda a, .attn a { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 560; flex: 1; min-width: 0; }
.cal { display: grid; place-items: center; width: 44px; flex: none; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .66rem; text-transform: uppercase; color: var(--muted); line-height: 1.15; padding: .2rem 0; background: var(--surface-2); }
.cal b { font-size: 1.05rem; color: var(--ink); }
.attn li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .5rem 0; border-bottom: 1px solid var(--line-2); }
.attn li > span { color: var(--warn); font-size: .85rem; font-weight: 550; }
.coname { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 600; }
.coname:hover { text-decoration: none; }
.coname:hover span { text-decoration: underline; }

/* ------------------------------------------------ Akış */
.feed { list-style: none; margin: 0; padding: 0 0 0 .2rem; position: relative; }
.feed::before { content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.feed-month { position: relative; padding: .9rem 0 .35rem 1.6rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.feed-month:first-child { padding-top: 0; }
.feed-item { position: relative; display: grid; grid-template-columns: 92px 112px 1fr; align-items: baseline; gap: .7rem; padding: .38rem 0 .38rem 1.6rem; }
.feed-dot { position: absolute; left: .27rem; top: .78rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--muted); }
.feed-date { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.feed-type { font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.feed-title a { color: var(--ink); }
.t-meeting .feed-dot { border-color: var(--accent); }
.t-decision .feed-dot { border-color: var(--info); }
.t-feedback .feed-dot { border-color: var(--warn); }
.t-done .feed-dot, .t-goal .feed-dot, .t-deal .feed-dot { border-color: var(--ok); background: var(--ok); }
.t-stage .feed-dot { border-color: var(--ink); background: var(--ink); }

/* ------------------------------------------------ Tablolar */
.tablewrap { overflow-x: auto; margin: 0 -.2rem; }
table.grid { width: 100%; border-collapse: collapse; font-size: .9rem; }
.grid th { text-align: left; font-weight: 620; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .045em; padding: .42rem .55rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td { padding: .52rem .55rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tbody tr:hover td { background: var(--surface-2); }
.grid tr.done td.first { color: var(--muted); }
.grid tr.done .rowlink { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.grid th.num, .grid td.num { text-align: right; }
.grid td.act, .grid th.act { width: 1%; text-align: right; white-space: nowrap; }
.rowlink { color: var(--ink); font-weight: 560; }
.colink { color: var(--ink-2); }
.overdue { color: var(--bad); font-weight: 600; white-space: nowrap; }
.overdue::before { content: "⚠ "; }

.kpigrid th.sticky, .kpigrid td.sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 190px; text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--ink); }
.kpigrid thead th.sticky { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.kpigrid td { min-width: 78px; }
.kpigrid td small.tgt { display: block; color: var(--muted); font-size: .72rem; }
.kpigrid td.hit { background: var(--ok-bg); }
.kpigrid td.miss { background: var(--bad-bg); }
.kpigrid tr.derived th, .kpigrid tr.derived td { border-top: 1px solid var(--line); font-style: italic; }
.notemark { color: var(--warn); margin-left: 2px; }
.entry input { min-width: 110px; }
.entry th small.help { display: block; font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.entry th { text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--ink); }
.entry thead th { text-transform: uppercase; font-size: .72rem; color: var(--muted); }

/* ------------------------------------------------ Girişim kartları */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .9rem; }
.ccard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.05rem; color: var(--ink); box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
.ccard:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.ccard-top { display: flex; align-items: center; gap: .65rem; font-size: 1.02rem; }
.ccard-top strong { flex: 1; min-width: 0; }
.ccard-meta { color: var(--muted); font-size: .83rem; margin: .45rem 0 .75rem; }
.ccard dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 0; padding-top: .7rem; border-top: 1px solid var(--line-2); }
.ccard dt { font-size: .7rem; color: var(--muted); }
.ccard dd { margin: 0; font-size: .88rem; font-weight: 560; }

dl.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem 1.4rem; margin: 0; }
dl.kv .wide { grid-column: 1 / -1; }
dl.kv dt { font-size: .74rem; color: var(--muted); font-weight: 560; }
dl.kv dd { margin: .12rem 0 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .25rem 0 .25rem 1rem; border-left: 2px solid var(--line); }
.timeline .when { color: var(--muted); font-size: .85rem; margin-right: .4rem; font-variant-numeric: tabular-nums; }
ul.plain { margin: 0; padding-left: 1.1rem; }
.quickadd { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin: 0 0 1rem; }
.pager { display: flex; justify-content: space-between; margin-top: .5rem; }

/* ------------------------------------------------ Formlar */
input, select, textarea {
  width: 100%; padding: .52rem .68rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
textarea { resize: vertical; line-height: 1.55; }
.form .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .95rem 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field > span { font-size: .83rem; font-weight: 560; color: var(--ink-2); }
.field small { color: var(--muted); font-size: .78rem; }
.field.wide { grid-column: 1 / -1; }
.field.check { flex-direction: row; align-items: center; gap: .5rem; padding-top: 1.5rem; }
.field .current { font-size: .85rem; color: var(--muted); }
.field label.inline { display: inline-flex; gap: .25rem; align-items: center; margin-left: .5rem; }
.thumb { display: block; max-width: 320px; max-height: 200px; border: 1px solid var(--line); border-radius: 6px; margin: .2rem 0 .4rem; }
.req { color: var(--bad); }
.formbar { display: flex; gap: .5rem; margin-top: 1.15rem; padding-top: .95rem; border-top: 1px solid var(--line-2); flex-wrap: wrap; align-items: center; }
.formbar::after { content: "Ctrl/⌘ + S ile de kaydedebilirsiniz"; margin-left: auto; color: var(--muted); font-size: .78rem; }
.dangerzone { margin: -.4rem 0 1rem; text-align: right; }
.stack { display: grid; gap: .85rem; }
.narrowform { max-width: 320px; }
input.otp { font-family: var(--mono); font-size: 1.3rem; letter-spacing: .25em; text-align: center; }
.quickbox { margin: 1.2rem 0 0; padding: .9rem 1rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); }
.quickbox legend { padding: 0 .4rem; font-weight: 620; font-size: .9rem; }
.quickbox legend .muted { font-weight: 400; font-size: .8rem; }
.qcols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.qopts { display: flex; gap: .6rem; flex-wrap: wrap; }
.qopts label { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.qopts select, .qopts input { width: auto; padding: .28rem .45rem; font-size: .85rem; }

/* ------------------------------------------------ Gündem, şablonlar, hazırlık */
.agendabox legend { display: flex; align-items: center; gap: .4rem; }
.agendachecks { display: grid; gap: .35rem; margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.agendachecks .lbl { font-size: .83rem; font-weight: 560; color: var(--ink-2); margin-bottom: .1rem; }
.agcheck { display: flex; align-items: flex-start; gap: .55rem; padding: .4rem .6rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.agcheck:hover { border-color: var(--accent); }
.agcheck input { margin-top: .2rem; }
.agcheck input:checked + span { color: var(--muted); text-decoration: line-through; }
.agendacard { border-left: 3px solid var(--accent); }
.aglist { list-style: none; margin: 0 0 .7rem; padding: 0; }
.aglist li { display: flex; align-items: center; gap: .55rem; padding: .32rem 0; border-bottom: 1px solid var(--line-2); }
.aglist li:last-child { border-bottom: 0; }
.aglist a { color: var(--ink); font-weight: 520; }
.aglist small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aglist form { margin-left: auto; }
.agdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.iconx { background: none; border: 0; color: var(--muted); font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 .3rem; border-radius: 4px; }
.iconx:hover { color: var(--bad); background: var(--bad-bg); }
.agadd { display: flex; gap: .45rem; }
.agadd input { padding: .38rem .6rem; }
.tplsteps { margin: .7rem 0 0; padding-left: 1.3rem; color: var(--ink-2); font-size: .88rem; columns: 2; column-gap: 2rem; }
.tplsteps li { margin: .15rem 0; break-inside: avoid; }
.reflink { color: var(--ink-2); border-bottom: 1px dotted var(--muted); }
.reflink:hover { text-decoration: none; color: var(--accent); }
ul.checked { list-style: none; padding: 0; margin: 0 0 .6rem; }
ul.checked li { padding: .15rem 0 .15rem 1.4rem; position: relative; }
ul.checked li::before { content: "✓"; position: absolute; left: .1rem; color: var(--ok); font-weight: 700; }
.checkbox-list { list-style: none; margin: 0; padding: 0; }
.checkbox-list li { display: flex; gap: .65rem; align-items: flex-start; padding: .38rem 0; border-bottom: 1px solid var(--line-2); }
.checkbox-list li:last-child { border-bottom: 0; }
.checkbox-list .box { width: 15px; height: 15px; border: 1.5px solid var(--muted); border-radius: 4px; flex: none; margin-top: .22rem; }
.prep-agenda { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1.4rem !important; }
.prep-agenda h2 { border-bottom-color: rgba(0,0,0,.08) !important; }
.prep-agenda .checkbox-list li { border-bottom-color: rgba(0,0,0,.06); }
.hint { margin: .8rem 0 0; font-size: .88rem; color: var(--warn); }
.plainlist { margin: 0; padding-left: 1.1rem; }
.plainlist li { margin: .2rem 0; }
.prep .private { margin-top: 1.4rem; }

/* ------------------------------------------------ Uyarılar */
.flash { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; transition: opacity .35s, transform .35s; }
.flash.fade { opacity: 0; transform: translateY(-4px); }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.flash.bad { background: var(--bad-bg); color: var(--bad); }
.flash-x { margin-left: auto; background: none; border: 0; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: .6; padding: 0 .2rem; }
.flash-x:hover { opacity: 1; }

/* ------------------------------------------------ Giriş ekranı */
body.bare { min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.authcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.9rem 1.7rem; box-shadow: var(--shadow); }
.authcard h1 { font-size: 1.3rem; margin-bottom: .4rem; }
.authcard p { margin: .3rem 0 1rem; }
.authbrand { display: flex; align-items: center; gap: .55rem; font-weight: 700; margin-bottom: 1.4rem; color: var(--ink-2); }
.qr { width: 220px; height: 220px; margin: 1rem auto; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { margin: 0 0 1.2rem; font-size: .88rem; }
.secret summary { cursor: pointer; color: var(--muted); }
.secret code { display: block; margin-top: .5rem; padding: .6rem; background: var(--surface-2); border-radius: 6px; word-break: break-all; font-size: 1rem; letter-spacing: .05em; }
.steps { padding-left: 1.2rem; margin: .5rem 0; color: var(--ink-2); font-size: .92rem; }
ul.codes { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
ul.codes code { display: block; padding: .45rem; text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; letter-spacing: .06em; }

/* ------------------------------------------------ Rapor */
body.report main.narrow { max-width: 980px; padding: 1.5rem 1rem 3rem; }
body.report { background: var(--bg); }
.report-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.report-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2.2rem; box-shadow: var(--shadow); }
.report-doc section { margin-top: 1.6rem; }
.report-doc h2 { font-size: 1.02rem; margin-bottom: .6rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.report-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.2rem; border-bottom: 2px solid var(--ink); }
.report-head .sub { color: var(--muted); margin: .25rem 0 0; }
.report-meta { display: grid; gap: .2rem; font-size: .85rem; text-align: right; }
.report-meta strong { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.report-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.report-stats div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .7rem; }
.report-stats span { display: block; font-size: .72rem; color: var(--muted); }
.report-stats b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.rtable td small.tgt { color: var(--muted); }
.report-foot { margin-top: 2rem; padding-top: .8rem; border-top: 1px solid var(--line); }

/* ------------------------------------------------ Mobil */
@media (max-width: 960px) {
  body.app { padding-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  body.menu-open .sidebar { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.3); }
  .mobilebar {
    display: flex; align-items: center; gap: .6rem; position: sticky; top: 0; z-index: 20;
    padding: .55rem .8rem; background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .mobilebar .brand { padding: 0; flex: 1; }
  .menubtn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); color: var(--ink); cursor: pointer; }
  .wrap { padding: 1.1rem .85rem 3rem; }
  .cols2, .qcols, .report-cols { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 1.35rem; }
  .formbar::after { display: none; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat .value { font-size: 1.2rem; }
  .kpicards { grid-template-columns: 1fr 1fr; }
  .kpicard .value { font-size: 1rem; }
  .avatar.lg { width: 42px; height: 42px; font-size: .95rem; }
  .feed-item { grid-template-columns: 1fr; gap: 0; }
  .feed-type { display: none; }
  .report-stats { grid-template-columns: 1fr 1fr; }
  .report-doc { padding: 1.2rem; }

  /* Tablolar mobilde kart görünümüne geçer */
  .tablewrap { overflow: visible; margin: 0; }
  table.grid:not(.kpigrid):not(.entry), table.grid:not(.kpigrid):not(.entry) tbody, table.grid:not(.kpigrid):not(.entry) tr, table.grid:not(.kpigrid):not(.entry) td { display: block; width: 100%; }
  table.grid:not(.kpigrid):not(.entry) thead { display: none; }
  table.grid:not(.kpigrid):not(.entry) tr { position: relative; padding: .6rem 0; border-bottom: 1px solid var(--line); }
  table.grid:not(.kpigrid):not(.entry) tbody tr:last-child { border-bottom: 0; }
  table.grid:not(.kpigrid):not(.entry) td { border: 0; padding: .12rem 0; display: flex; gap: .6rem; align-items: baseline; }
  table.grid:not(.kpigrid):not(.entry) td[data-label]::before { content: attr(data-label); flex: 0 0 38%; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
  table.grid:not(.kpigrid):not(.entry) td.first { font-size: 1rem; }
  table.grid:not(.kpigrid):not(.entry) td.first::before { display: none; }
  table.grid:not(.kpigrid):not(.entry) td.act { justify-content: flex-start; align-items: center; padding-top: .45rem; }
  table.grid:not(.kpigrid):not(.entry) td.act .quick { padding: .3rem .7rem; font-size: .82rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -.85rem; margin-right: -.85rem; padding: 0 .85rem; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid tbody tr:hover td { background: transparent; }
}
@media print {
  @page { margin: 14mm; }
  .sidebar, .mobilebar, .scrim, .actions, .filters, .tabs, .act, .quickadd, .dangerzone, .noprint, .flash { display: none !important; }
  body.app { padding-left: 0; }
  body, body.bare, body.report { background: #fff !important; color: #000; }
  .card, .stat, .report-doc { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .report-doc { border: 0; padding: 0; }
  .report-doc section { break-inside: avoid; }
  a { color: inherit; }
}
