/* Hastambu Outreach · "Gece Camı" panel dili
   Kaynak: ~/Desktop/hastambu/site/src/styles/tokens.css (ADR-005). Tek aile: Satoshi 500/700.
   Kontrastlar docs/kontrast.md'de ölçüldü. Sönük durum renkle verilir, saydamlıkla verilmez. */

@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-xs: 8px; --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 28px;
  --side: 252px;
  --top: 64px;
  --gutter: clamp(16px, 2.2vw, 32px);

  /* Gece (varsayılan) */
  --bg: #07060d; --bg-raised: #0c0b15;
  --surface: #110f1c; --surface-2: #17142a; --surface-3: #1f1b38;
  --field: #0d0b18;
  --line: #252040; --line-strong: #372f5e;
  --text: #f2f0f5; --text-2: #b4b0c2; --text-3: #9590a8;
  --accent: #5b35ff; --accent-hover: #4321e0; --on-accent: #ffffff;
  --accent-ink: #c9bdff; --accent-soft: #221a4d; --accent-line: #4a3a9e;
  --ok: #74e0b4; --ok-soft: #0f2a22; --ok-line: #1f5a46;
  --warn: #f5c56e; --warn-soft: #2b2112; --warn-line: #5e4719;
  --danger: #ff9aae; --danger-soft: #331722; --danger-line: #6b2b3b;
  --focus: #c9bdff;
  --glow: rgb(91 53 255 / 0.22);
  --shadow: 0 30px 80px -40px rgb(0 0 0 / 0.85);
  --glass: linear-gradient(180deg, rgb(12 11 21 / 0.86), rgb(12 11 21 / 0.72));
  --glass-solid: rgb(12 11 21 / 0.96);
  color-scheme: dark;
}

/* İnci (açık) */
:root[data-theme="inci"] {
  --bg: #f5f4f8; --bg-raised: #ecebf2;
  --surface: #ffffff; --surface-2: #f8f7fb; --surface-3: #efedf6;
  --field: #ffffff;
  --line: #e4e2ec; --line-strong: #cfcbdc;
  --text: #121016; --text-2: #5a5766; --text-3: #686475;
  --accent: #5b35ff; --accent-hover: #4321e0; --on-accent: #ffffff;
  --accent-ink: #4a28e0; --accent-soft: #ece7ff; --accent-line: #c9bdff;
  --ok: #0a6e4c; --ok-soft: #e3f6ee; --ok-line: #a9dcc6;
  --warn: #835300; --warn-soft: #fbf1dc; --warn-line: #ead2a0;
  --danger: #ad2340; --danger-soft: #fbe6ea; --danger-line: #efb8c4;
  --focus: #4a28e0;
  --glow: rgb(91 53 255 / 0.10);
  --shadow: 0 30px 70px -40px rgb(40 20 120 / 0.35);
  --glass: linear-gradient(180deg, rgb(245 244 248 / 0.9), rgb(245 244 248 / 0.78));
  --glass-solid: rgb(245 244 248 / 0.97);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f5f4f8; --bg-raised: #ecebf2;
    --surface: #ffffff; --surface-2: #f8f7fb; --surface-3: #efedf6;
    --field: #ffffff;
    --line: #e4e2ec; --line-strong: #cfcbdc;
    --text: #121016; --text-2: #5a5766; --text-3: #686475;
    --accent-ink: #4a28e0; --accent-soft: #ece7ff; --accent-line: #c9bdff;
    --ok: #0a6e4c; --ok-soft: #e3f6ee; --ok-line: #a9dcc6;
    --warn: #835300; --warn-soft: #fbf1dc; --warn-line: #ead2a0;
    --danger: #ad2340; --danger-soft: #fbe6ea; --danger-line: #efb8c4;
    --focus: #4a28e0;
    --glow: rgb(91 53 255 / 0.10);
    --shadow: 0 30px 70px -40px rgb(40 20 120 / 0.35);
    --glass: linear-gradient(180deg, rgb(245 244 248 / 0.9), rgb(245 244 248 / 0.78));
    --glass-solid: rgb(245 244 248 / 0.97);
    color-scheme: light;
  }
}

/* ---------- temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  font: 500 14px/1.5 var(--font); letter-spacing: -0.003em;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 38% at 88% -6%, var(--glow), transparent 70%),
    radial-gradient(30% 30% at 18% 108%, var(--glow), transparent 70%);
}
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
ol, ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.sprite { position: absolute; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--sm { width: 15px; height: 15px; }
.i--lg { width: 22px; height: 22px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-s); background: var(--accent); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.micro { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- uygulama iskeleti ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 20px;
  padding: 22px 16px 16px; background: var(--bg-raised); border-right: 1px solid var(--line);
}
.brand { display: grid; gap: 6px; padding: 2px 10px 6px; text-decoration: none; color: var(--text); }
.brand-logo { height: 24px; width: auto; }
.brand-sub { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); padding-left: 1px; }
.brand .brand-logo--inci { display: none; }
:root[data-theme="inci"] .brand .brand-logo--gece { display: none; }
:root[data-theme="inci"] .brand .brand-logo--inci { display: block; }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .brand .brand-logo--gece { display: none; }
  :root[data-theme="auto"] .brand .brand-logo--inci { display: block; }
}

.nav { display: grid; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-s);
  color: var(--text-2); text-decoration: none; font-weight: 500; transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--surface-3); color: var(--text); }
.nav-item[aria-current="page"] .i { color: var(--accent-ink); }
.nav-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.nav-item[aria-current="page"] .nav-count { color: var(--text-2); }
.nav-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink); box-shadow: 0 0 10px var(--accent); }

.side-stack { margin-top: auto; display: grid; gap: 10px; }
.side-card { padding: 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.side-card h3 { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.side-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.side-foot { display: flex; align-items: center; gap: 4px; padding-top: 4px; }
.side-foot-text { margin-left: auto; font-size: 11.5px; color: var(--text-3); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot--warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot--danger { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.dot--live { background: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }

.meter { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .4s var(--ease); }
.meter--warn > span { background: var(--warn); }
.meter--full > span { background: var(--danger); }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 12px;
  padding: 0 var(--gutter); background: var(--glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .topbar { background: var(--glass-solid); } }
.topbar h1 { font-size: 19px; letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-sub { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar .topbar-back { display: none; }
.topbar-logo { display: none; }
.main { flex: 1; min-width: 0; padding: 28px var(--gutter) 64px; outline: none; }

.tabbar, .mobile-worker { display: none; }
@media (min-width: 901px) { .only-mobile { display: none !important; } }

/* ---------- düğmeler ---------- */
.btn {
  --h: 38px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 15px;
  border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font-weight: 700; font-size: 13.5px; white-space: nowrap; text-decoration: none; user-select: none;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; background: var(--surface); color: var(--text-3); border-color: var(--line); transform: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -14px var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--primary[disabled] { box-shadow: none; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--danger { background: transparent; border-color: var(--danger-line); color: var(--danger); }
.btn--danger:hover { background: var(--danger-soft); }
.btn--ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.btn--ok:hover { border-color: var(--ok); }
.btn--sm { --h: 32px; padding: 0 11px; font-size: 12.5px; border-radius: var(--r-xs); gap: 6px; }
.btn--xs { --h: 28px; padding: 0 9px; font-size: 12px; border-radius: var(--r-xs); gap: 5px; }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-s);
  border: 1px solid transparent; background: transparent; color: var(--text-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn--sm { width: 30px; height: 30px; border-radius: var(--r-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- form ---------- */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field-label { font-size: 12.5px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.field-hint { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.input, .textarea, .select {
  width: 100%; min-width: 0; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--field);
  color: var(--text); padding: 9px 12px; line-height: 1.45; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input { height: 40px; }
.select { height: 40px; padding-right: 34px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.textarea { resize: vertical; min-height: 84px; }
.textarea--msg { font-size: 14.5px; line-height: 1.6; min-height: 220px; padding: 14px 16px; resize: none; overflow: hidden; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--accent-line); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group { display: flex; gap: 8px; }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 38px; }
.kbd { font: 700 11px var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--text-3); }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13.5px; line-height: 1.45; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--field); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.check small { display: block; color: var(--text-3); font-size: 12.5px; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 38px; height: 22px; border-radius: 22px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; cursor: pointer; transition: background .18s var(--ease); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform .2s var(--ease), background .2s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(16px); background: #fff; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); }
.seg-btn { height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--text-2); font-weight: 700; font-size: 12.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg-btn:hover { color: var(--text); }
.seg-btn.is-on, .seg-btn[aria-pressed="true"], .seg-btn[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line-strong), 0 6px 16px -10px rgb(0 0 0 / .6); }
:root[data-theme="inci"] .seg-btn.is-on, :root[data-theme="inci"] .seg-btn[aria-pressed="true"], :root[data-theme="inci"] .seg-btn[aria-selected="true"] { box-shadow: 0 1px 2px rgb(18 16 22 / .12); }
.seg--sm .seg-btn { height: 26px; padding: 0 9px; font-size: 12px; }
.seg--wide { display: flex; }
.seg--wide .seg-btn { flex: 1; }
.seg--stack { display: grid; gap: 2px; }
.seg--stack .seg-btn { justify-content: flex-start; height: auto; min-height: 38px; padding: 8px 12px; text-align: left; white-space: normal; line-height: 1.3; }
.seg--stack .seg-btn b { font-weight: 700; color: var(--text); min-width: 18px; }
.seg--stack .seg-btn span { color: var(--text-3); font-weight: 500; margin-left: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 700; text-align: left;
}
.chip:hover { color: var(--text); border-color: var(--accent-line); background: var(--surface-2); }
.chip.is-on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.chip-count { font-variant-numeric: tabular-nums; color: var(--text-3); font-weight: 700; }
.chip.is-on .chip-count { color: var(--accent-ink); }

/* ---------- rozet ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface-2); }
.pill--accent { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }
.pill--ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
.pill--warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.pill--danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.pill--quiet { background: transparent; }

.avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.avatar--lg { width: 56px; height: 56px; font-size: 18px; }

/* ---------- kart ve bölüm ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.card-head .btn-row { margin-left: auto; }
.card-body { padding: 18px 20px; display: grid; gap: 18px; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.section-title h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.section-title .faint { font-size: 13px; }
.section-title .btn-row { margin-left: auto; }
.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: 28px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h2 { font-size: clamp(26px, 1.4rem + 1vw, 34px); line-height: 1.05; letter-spacing: -0.035em; }
.page-head p { color: var(--text-2); margin-top: 8px; max-width: 46rem; }
.page-head .btn-row { margin-left: auto; }

/* ---------- boş durum ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 24px; color: var(--text-2); }
.empty-mark { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.empty h3 { font-size: 18px; color: var(--text); letter-spacing: -0.02em; }
.empty p { max-width: 30rem; }

/* ---------- Bugün ---------- */
.quota { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.quota-item { padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.quota-top { display: flex; align-items: baseline; gap: 8px; }
.quota-label { font-size: 12.5px; color: var(--text-2); font-weight: 700; }
.quota-val { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.quota-val span { color: var(--text-3); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-m); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2); font-size: 13.5px; }
.notice .i { margin-top: 1px; }
.notice strong { color: var(--text); font-weight: 700; }
.notice--warn { border-color: var(--warn-line); background: var(--warn-soft); }
.notice--warn .i { color: var(--warn); }
.notice--danger { border-color: var(--danger-line); background: var(--danger-soft); }
.notice--danger .i { color: var(--danger); }
.notice--accent { border-color: var(--accent-line); background: var(--accent-soft); }
.notice--accent .i { color: var(--accent-ink); }
.notice .btn-row { margin-left: auto; flex-wrap: nowrap; }

.today-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rows { display: grid; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line); min-width: 0;
  text-decoration: none; color: inherit;
}
.rows > .row:first-child { border-top: 0; }
a.row:hover, .row--link:hover { background: var(--surface-2); }
.row-main { min-width: 0; flex: 1; display: grid; gap: 2px; }
.row-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-side { display: flex; align-items: center; gap: 8px; flex: none; }
.row-date { font-size: 12.5px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }

/* ---------- Kişiler ---------- */
.people { display: grid; grid-template-columns: minmax(300px, 344px) minmax(0, 1fr); gap: 0; margin: -28px calc(var(--gutter) * -1) -64px; min-height: calc(100dvh - var(--top)); }
.people-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; position: sticky; top: var(--top); height: calc(100dvh - var(--top)); }
.list-tools { padding: 16px 16px 12px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.filter-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-scroll .chip { flex: none; }
.select-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--accent-soft); font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.select-bar .btn-row { margin-left: auto; gap: 6px; }
.lead-list { overflow-y: auto; flex: 1; padding: 6px 8px 24px; }
.lead {
  position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 10px; border-radius: var(--r-m); cursor: pointer; text-decoration: none; color: inherit;
  transition: background .15s var(--ease);
}
.lead:hover { background: var(--surface-2); }
.lead.is-active { background: var(--surface-3); }
.lead.is-active::before { content: ""; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--accent-ink); }
.lead-pick { width: 18px; display: grid; place-items: center; }
.lead-pick input { margin: 0; }
.lead-body { min-width: 0; display: grid; gap: 1px; }
.lead-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.005em; }
.lead-clinic { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-next { margin-top: 3px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.lead-next .i { width: 13px; height: 13px; }
.lead-next--due { color: var(--accent-ink); font-weight: 700; }
.lead-next--warn { color: var(--warn); font-weight: 700; }
.lead-side { display: grid; justify-items: end; gap: 6px; align-self: start; padding-top: 2px; }
.list-empty { padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 13.5px; }

.detail { min-width: 0; padding: 28px var(--gutter) 80px; max-width: 1080px; }
.detail-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.detail-id { min-width: 0; flex: 1; display: grid; gap: 6px; }
.detail-id h2 { font-size: clamp(24px, 1.2rem + 1vw, 32px); line-height: 1.08; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.detail-headline { color: var(--text-2); max-width: 52rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.meta a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

.next {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px 24px; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong);
  display: grid; gap: 14px;
}
.next::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 140%; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.next > * { position: relative; z-index: 1; }
.next--due { border-color: var(--accent-line); }
.next--confirm { border-color: var(--warn-line); }
.next-top { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.next-label { display: grid; gap: 4px; min-width: 0; }
.next-title { font-size: 21px; letter-spacing: -0.025em; line-height: 1.15; }
.next-when { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 13.5px; }
.next-when strong { color: var(--text); font-weight: 700; }
.next .btn-row { margin-left: auto; }
.blockers { display: grid; gap: 6px; }
.blocker { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.blocker .i { width: 16px; height: 16px; margin-top: 2px; color: var(--danger); }
.blocker--warn .i { color: var(--warn); }
.blocker strong { color: var(--text); font-weight: 700; }
.next-secondary { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 20px; align-items: start; }
.detail-grid > .stack { min-width: 0; }

.bank { display: grid; gap: 6px; }
.bank-item { display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--r-s); border: 1px dashed var(--line-strong); background: transparent; color: var(--text-2); font-size: 13px; }
.bank-item:hover { border-style: solid; border-color: var(--accent-line); color: var(--text); background: var(--surface-2); }
.bank-item b { flex: none; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); min-width: 88px; }
.preview-line { padding: 12px 14px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.preview-line mark { background: var(--accent-soft); color: var(--accent-ink); border-radius: 4px; padding: 0 3px; font-weight: 700; }

.details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 700; font-size: 15px; }
.details > summary::-webkit-details-marker { display: none; }
.details > summary .i { margin-left: auto; transition: transform .2s var(--ease); color: var(--text-3); }
.details[open] > summary .i { transform: rotate(180deg); }
.details > summary .faint { font-weight: 500; font-size: 13px; }
.details-body { padding: 0 20px 20px; display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.msg-tabs { display: flex; gap: 2px; padding: 4px; margin: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.msg-tabs::-webkit-scrollbar { display: none; }
.msg-tab { position: relative; flex: none; height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--text-2); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.msg-tab:hover { color: var(--text); background: var(--surface-2); }
.msg-tab[aria-selected="true"] { color: var(--text); background: var(--surface-3); }
.msg-tab .dot { width: 6px; height: 6px; box-shadow: none; }
.msg-pane { padding: 18px 20px 20px; display: grid; gap: 14px; }
.msg-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.msg-meta .btn-row { margin-left: auto; gap: 6px; }
.counter { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.counter--over { color: var(--danger); }
.counter--near { color: var(--warn); }
.checks { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line); }
.checks-title { margin-bottom: 4px; }
.ck { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; color: var(--text-2); padding: 3px 0; }
.ck .i { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.ck--ok .i { color: var(--ok); }
.ck--warn .i { color: var(--warn); }
.ck--block .i { color: var(--danger); }
.ck--block { color: var(--text); }
.ck small { display: block; color: var(--text-3); font-size: 12.5px; }

.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 18px 20px 20px; }
.tl { position: relative; display: grid; gap: 5px; padding-right: 10px; min-width: 0; }
.tl::before { content: ""; position: absolute; top: 6px; left: 14px; right: 0; height: 2px; background: var(--line-strong); }
.tl:last-child::before { display: none; }
.tl-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.tl--done .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl--done::before { background: var(--accent); }
.tl--now .tl-dot { border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl--stop .tl-dot { background: var(--danger); border-color: var(--danger); }
.tl-name { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl--done .tl-name, .tl--now .tl-name { color: var(--text); }
.tl-date { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.reply { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface-2); }
.reply-head { display: flex; align-items: center; gap: 10px; }
.reply-head b { font-size: 13px; }
.reply-head .btn { margin-left: auto; }
.reply p { white-space: pre-wrap; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

.suggest { display: grid; gap: 6px; }
.suggest-item { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--text); font-size: 13.5px; }
.suggest-item small { color: var(--text-3); font-size: 12px; }

/* ---------- Şablonlar ve ayarlar ---------- */
.tpl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: 20px; align-items: start; }
.tpl-preview { position: sticky; top: calc(var(--top) + 20px); }
.tpl-preview .msg-text { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--text); padding: 14px 16px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line); }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; }
.token { font: 700 12px var(--mono); padding: 4px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--accent-ink); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td .textarea { min-height: 64px; }
.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--top) + 24px); display: grid; gap: 2px; }
.settings-nav a { padding: 8px 12px; border-radius: var(--r-s); color: var(--text-2); text-decoration: none; font-weight: 500; }
.settings-nav a:hover { background: var(--surface-2); color: var(--text); }
.save-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: var(--r-l); background: var(--glass-solid); border: 1px solid var(--accent-line); box-shadow: var(--shadow); }
.save-bar .btn-row { margin-left: auto; }

/* ---------- çekmece, modal, bildirim ---------- */
.drawer, .modal { position: fixed; inset: 0; z-index: 60; }
.drawer-scrim, .modal-scrim { position: absolute; inset: 0; background: rgb(4 3 10 / 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s var(--ease); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); display: flex; flex-direction: column; background: var(--bg-raised); border-left: 1px solid var(--line); box-shadow: var(--shadow); animation: slide .26s var(--ease); }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 17px; font-weight: 700; margin-right: auto; }
.log-list { overflow-y: auto; padding: 8px 0 32px; }
.log { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.log-time { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.log-msg { color: var(--text-2); line-height: 1.45; overflow-wrap: anywhere; }
.log-msg b { color: var(--text); font-weight: 700; }
.log--success .log-msg { color: var(--text); }
.log--warning .log-time { color: var(--warn); }
.log--error .log-time { color: var(--danger); }
.log--error .log-msg { color: var(--text); }
.log-cat { display: inline-block; margin-right: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--text-3); }
.log-day { padding: 14px 20px 6px; }

.modal { display: grid; place-items: center; padding: 16px; }
.modal-panel { position: relative; width: min(680px, 100%); max-height: min(86dvh, 820px); overflow: auto; border-radius: var(--r-xl); background: var(--bg-raised); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: pop .24s var(--ease); }
.modal-panel--sm { width: min(460px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 22px 0; }
.modal-head h2 { font-size: 21px; letter-spacing: -0.025em; }
.modal-head p { color: var(--text-2); margin-top: 6px; font-size: 13.5px; }
.modal-head .icon-btn { margin-left: auto; margin-top: -6px; margin-right: -6px; }
.modal-body { padding: 18px 22px; display: grid; gap: 16px; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 16px 22px 22px; }
.modal-foot .btn-row { margin-left: auto; }
.drop { position: relative; display: grid; gap: 10px; padding: 14px; border-radius: var(--r-m); border: 1.5px dashed var(--line-strong); background: var(--surface); transition: border-color .16s, background .16s; }
.drop.is-over { border-color: var(--accent-ink); background: var(--accent-soft); }
.drop .textarea { min-height: 150px; border: 0; background: transparent; padding: 4px; font-family: var(--mono); font-size: 12.5px; box-shadow: none; }
.drop-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.drop-foot .btn { margin-left: auto; }
#impFile:focus-visible + .file-btn { outline: 2px solid var(--focus); outline-offset: 2px; }
.import-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.import-rows { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.import-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.import-row:first-child { border-top: 0; }
.import-row span:first-child { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; max-width: 420px; padding: 12px 14px; border-radius: var(--r-m); background: var(--glass-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 13.5px; animation: rise .26s var(--ease); }
.toast .i { margin-top: 1px; }
.toast--ok .i { color: var(--ok); }
.toast--error { border-color: var(--danger-line); }
.toast--error .i { color: var(--danger); }
.toast--warn .i { color: var(--warn); }

@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* ---------- duyarlı ---------- */
@media (max-width: 1560px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1180px) {
  :root { --side: 220px; }
  .today-grid { grid-template-columns: minmax(0, 1fr); }
  .tpl-layout { grid-template-columns: minmax(0, 1fr); }
  .tpl-preview { position: static; }
  .quota { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --top: 58px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar-logo { display: block; height: 22px; width: auto; }
  .topbar-logo.brand-logo--inci { display: none; }
  :root[data-theme="inci"] .topbar-logo.brand-logo--gece { display: none; }
  :root[data-theme="inci"] .topbar-logo.brand-logo--inci { display: block; }
}
@media (max-width: 900px) and (prefers-color-scheme: light) {
  :root[data-theme="auto"] .topbar-logo.brand-logo--gece { display: none; }
  :root[data-theme="auto"] .topbar-logo.brand-logo--inci { display: block; }
}
@media (max-width: 900px) {
  .detail-open .topbar-logo { display: none !important; }
  .main { padding: 20px var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--glass-solid); border-top: 1px solid var(--line);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  .tab { display: grid; justify-items: center; gap: 3px; padding: 7px 4px 5px; border-radius: var(--r-s); color: var(--text-3); text-decoration: none; font-size: 11.5px; font-weight: 700; position: relative; }
  .tab[aria-current="page"] { color: var(--text); }
  .tab[aria-current="page"] .i { color: var(--accent-ink); }
  .tab-badge { position: absolute; top: 4px; left: calc(50% + 8px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink); }
  .mobile-worker:not([hidden]) {
    position: fixed; left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 31; display: flex; align-items: center; gap: 12px;
    padding: 10px 10px 10px 14px; border-radius: var(--r-m); background: var(--glass-solid); border: 1px solid var(--accent-line); box-shadow: var(--shadow); font-size: 13px;
  }
  .mobile-worker .grow { min-width: 0; flex: 1; display: grid; gap: 6px; }
  .mobile-worker .grow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .people { display: block; margin: -20px calc(var(--gutter) * -1) 0; min-height: 0; }
  .people-list { position: static; height: auto; border-right: 0; }
  .lead-list { overflow: visible; padding: 6px 8px 0; }
  .people.has-detail .people-list { display: none; }
  .people:not(.has-detail) .detail { display: none; }
  .detail { padding: 20px var(--gutter) 24px; }
  .topbar .topbar-back { display: inline-grid; margin-left: -8px; }
  .topbar-sub { display: none; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { display: none; }
  .toasts { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); justify-items: stretch; }
  .toast { max-width: none; }
  .save-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .quota { gap: 8px; }
  .quota-item { padding: 12px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .detail-head { gap: 14px; }
  .detail-head .avatar--lg { width: 46px; height: 46px; font-size: 15px; }
  .next { padding: 18px; border-radius: var(--r-l); }
  .next .btn-row { margin-left: 0; width: 100%; }
  .next .btn-row .btn { flex: 1; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .tl:nth-child(3)::before { display: none; }
  .row { padding: 12px 16px; flex-wrap: wrap; }
  .row-side { width: 100%; justify-content: flex-end; }
  .row-side .row-date { margin-right: auto; text-align: left; min-width: 0; }
  .card-head, .card-body, .msg-pane, .details > summary, .details-body { padding-left: 16px; padding-right: 16px; }
  .page-head .btn-row { margin-left: 0; width: 100%; }
  .topbar-actions .btn-label { display: none; }
  .modal { padding: 0; place-items: end stretch; }
  .modal-panel { width: 100%; max-height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .notice { flex-wrap: wrap; }
  .notice .btn-row { margin-left: 0; }
  .textarea--msg { font-size: 15px; }
}


/* ---------- Performans ---------- */
:root { --s1: #8f74ff; --s2: #22a08d; }
:root[data-theme="inci"] { --s1: #5b35ff; --s2: #0e8f7e; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] { --s1: #5b35ff; --s2: #0e8f7e; } }
.perf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.perf-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; transition: opacity .2s var(--ease); }
.perf-body > *, .perf-grid > * { min-width: 0; }
.perf-body.is-loading { opacity: .55; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1280px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.stat-label { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.stat-value { font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; color: var(--text); }
.stat-sub { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.stat-hint { font-size: 12px; color: var(--text-3); }
.perf-health { display: grid; gap: 10px; }
.notice--ok { border-color: var(--ok-line); background: var(--ok-soft); }
.notice--ok .i { color: var(--ok); }
.perf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.chart { width: 100%; min-height: 220px; }
.chart svg, #chFunnel svg, #chMix svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.key { width: 10px; height: 10px; border-radius: 3px; }
.key--s1 { background: var(--s1); }
.key--s2 { background: var(--s2); }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-base { stroke: var(--line-strong); stroke-width: 1; }
.ch-tick { fill: var(--text-3); font: 500 11px var(--font); font-variant-numeric: tabular-nums; }
.ch-val { fill: var(--text); font: 700 11.5px var(--font); font-variant-numeric: tabular-nums; }
.ch-label { fill: var(--text-2); font: 700 12.5px var(--font); }
.ch-note { fill: var(--text-3); font: 500 11px var(--font); }
.ch-track { fill: var(--surface-2); }
.ch-bar.ch-s1, .tip-key.ch-s1 { fill: var(--s1); background: var(--s1); }
.ch-bar.ch-s2, .tip-key.ch-s2 { fill: var(--s2); background: var(--s2); }
.ch-hit { fill: transparent; cursor: default; outline: none; }
.ch-hit.is-on, .ch-hit:focus-visible { fill: var(--text); fill-opacity: .045; }
.ch-hit:focus-visible { stroke: var(--focus); stroke-width: 1.5; }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; display: grid; gap: 4px; min-width: 120px; padding: 9px 11px; border-radius: 10px;
  background: var(--glass-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 12.5px; color: var(--text-2); }
.tip-head { font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.tip-row { display: flex; align-items: center; gap: 7px; }
.tip-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.tip-key { width: 12px; height: 2px; border-radius: 2px; }
.table-view > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--text-3); padding-top: 4px; }
.table-view[open] > summary { margin-bottom: 8px; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.breakdowns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.bd { display: grid; gap: 14px; align-content: start; }
.bd-row { display: grid; gap: 6px; }
.bd-top { display: flex; align-items: baseline; gap: 10px; }
.bd-label { font-weight: 700; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-val { margin-left: auto; font-weight: 700; }
.bd-bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.bd-bar > span { display: block; height: 100%; border-radius: 8px; background: var(--s1); }
.bd-sub { font-size: 12px; color: var(--text-3); }
.review-table th { white-space: nowrap; }
.choice-list { display: grid; gap: 6px; }
.choice { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-weight: 700; text-align: left; }
.choice:hover { border-color: var(--accent-line); background: var(--surface-3); }
.choice .pill { margin-left: auto; }
.reply--suggested { border-color: var(--accent-line); background: var(--accent-soft); }
@media (max-width: 1180px) { .perf-grid { grid-template-columns: minmax(0, 1fr); } .breakdowns { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-value { font-size: 24px; } .perf-filters .seg { width: 100%; } }


/* ---------- Fırsatlar (mini CRM) ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.col { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-l); background: var(--bg-raised); border: 1px solid var(--line); scroll-snap-align: start; }
.col-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.col-head h3 { font-size: 13px; font-weight: 700; }
.col-body { display: grid; gap: 8px; padding: 10px; align-content: start; min-height: 120px; }
.col-empty { color: var(--text-3); text-align: center; padding: 18px 0; }
.opp { display: grid; gap: 4px; padding: 12px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .15s var(--ease), background .15s var(--ease); }
.opp:hover { border-color: var(--accent-line); background: var(--surface-2); }
.opp-name { font-weight: 700; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.opp-meta { font-size: 12.5px; color: var(--text-2); }
.opp-next { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.opp-next .i { margin-top: 2px; }
.opp .pill { justify-self: start; }
.stage-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 4px 0 6px; }
.stage { width: 100%; display: grid; justify-items: start; gap: 8px; padding: 10px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 700; text-align: left; line-height: 1.3; }
.stage:hover:not([disabled]) { border-color: var(--accent-line); color: var(--text); }
.stage-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.stage.is-done .stage-dot { background: var(--accent); border-color: var(--accent); }
.stage.is-now { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.stage.is-now .stage-dot { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.stage[disabled] { cursor: default; }
.kv { display: grid; gap: 4px; padding: 12px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); }
.kv b { font-size: 15px; }
.task { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.task:first-child { border-top: 0; }
.task .check { flex: 1; }
.task small { display: block; color: var(--text-3); font-size: 12.5px; }
.task--link { align-items: flex-start; }
.task--link .i { margin-top: 3px; color: var(--accent-ink); }
.task--link:hover b { text-decoration: underline; }
.note { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.note p { white-space: pre-wrap; color: var(--text); }
.ghl-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ghl-step { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 14px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line); }
.ghl-step b { font-size: 15px; }
@media (max-width: 1180px) { .stage-track { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .stage-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ghl-steps { grid-template-columns: minmax(0, 1fr); }
  .board { grid-auto-columns: 82%; }
  .input-group { flex-wrap: wrap; }
}

.demo-strip { display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter); background: var(--warn-soft); border-bottom: 1px solid var(--warn-line); color: var(--text); font-size: 13px; }
.demo-strip[hidden] { display: none; }
@media (max-width: 640px) { .demo-strip { font-size: 12.5px; align-items: flex-start; } }


/* ---------- Giriş ---------- */
.auth { position: relative; z-index: 1; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; }
.auth[hidden], .app[hidden] { display: none; }
.auth-card { width: min(420px, 100%); display: grid; gap: 16px; padding: 32px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop .35s var(--ease); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.auth-brand .brand-logo { height: 30px; width: auto; }
.auth-card h1 { font-size: 26px; letter-spacing: -0.03em; }
.auth-form { display: grid; gap: 14px; }
.auth-err { min-height: 1.2em; margin: 0; color: var(--danger); font-weight: 700; font-size: 13px; }
.auth-err:empty { min-height: 0; }
.auth-foot { font-size: 12.5px; margin: 0; }
.auth .brand-logo--inci { display: none; }
:root[data-theme="inci"] .auth .brand-logo--gece { display: none; }
:root[data-theme="inci"] .auth .brand-logo--inci { display: block; }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .auth .brand-logo--gece { display: none; }
  :root[data-theme="auto"] .auth .brand-logo--inci { display: block; }
}
@media (max-width: 640px) { .auth-card { padding: 24px 20px; } }

/* ---------- Kenar çubuğu: kullanıcı ---------- */
.side-user { display: flex; align-items: center; gap: 10px; margin: 0 12px 6px; padding: 10px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.side-user:empty { display: none; }
.user-id { min-width: 0; flex: 1; display: grid; line-height: 1.25; }
.user-id b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-id small { font-size: 12px; color: var(--text-3); }
.avatar--sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar--xs { width: 22px; height: 22px; font-size: 9.5px; flex: none; }
.i--xs { width: 12px; height: 12px; }
.log-actor { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.menu-sheet { display: grid; gap: 4px; }
.menu-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid transparent; background: transparent; color: var(--text); font-weight: 700; text-decoration: none; text-align: left; width: 100%; }
.menu-item:hover, .menu-item[aria-current="page"] { background: var(--surface-2); border-color: var(--line); }
.menu-item .nav-count { margin-left: auto; }
.menu-item--danger { color: var(--danger); }
button.tab { border: 0; background: transparent; font: inherit; font-size: 11.5px; font-weight: 700; }

/* ---------- Ortak küçükler ---------- */
.ai-badge { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; vertical-align: middle; flex: none; }
.kind { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.kind--klinik, .kind--gorusme { background: var(--ok-soft); color: var(--ok); }
.kind--teshis, .kind--karar { background: var(--accent-soft); color: var(--accent-ink); }
.kind--haftalik, .kind--gunluk { background: var(--warn-soft); color: var(--warn); }
.tag { font-size: 12px; color: var(--text-3); font-weight: 700; }
.prio-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--danger); vertical-align: 1px; }
.task.is-done .check > span { color: var(--text-3); text-decoration: line-through; }
.select--sm, .input--sm { height: 32px; font-size: 13px; padding-top: 0; padding-bottom: 0; }
.check--inline small { display: inline; margin-left: 6px; }
.sub-head { display: flex; align-items: center; gap: 12px; }
.sub-head h3 { font-size: 15px; margin-right: auto; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table tr.is-muted td { color: var(--text-3); }
.code-block { position: relative; border-radius: var(--r-m); background: var(--field); border: 1px solid var(--line-strong); }
.code-block pre { margin: 0; padding: 14px 16px; padding-right: 110px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; white-space: pre; color: var(--text); }
.code-block .btn { position: absolute; top: 10px; right: 10px; }
.code-block--key pre { font-size: 14px; white-space: pre-wrap; word-break: break-all; color: var(--accent-ink); }
.steps { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: var(--text-2); }
.steps b { color: var(--text); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 10px 12px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; }
.tool b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.tool span:not(.pill) { grid-column: 1; color: var(--text-2); }
.tool .pill { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.modal-panel--lg { width: min(980px, 100%); }
.card--ai { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 140px); }
.card--ai .card-head h2 { display: inline-flex; align-items: center; gap: 8px; }
.card--ai .card-head .i { color: var(--accent-ink); }

/* ---------- Notlar ---------- */
.notes { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); margin: -28px calc(var(--gutter) * -1) -64px; min-height: calc(100dvh - var(--top)); }
.notes-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; position: sticky; top: var(--top); height: calc(100dvh - var(--top)); }
.note-subfilters { display: flex; gap: 8px; margin-top: 10px; }
.note-subfilters .select { flex: 1; min-width: 0; }
.note-items { overflow-y: auto; flex: 1; padding: 6px 8px 24px; display: grid; align-content: start; gap: 2px; }
.note-group { padding: 12px 10px 4px; }
.note-item { position: relative; display: grid; gap: 4px; padding: 11px 12px; border-radius: var(--r-m); color: inherit; text-decoration: none; transition: background .15s var(--ease); }
.note-item:hover { background: var(--surface-2); }
.note-item.is-active { background: var(--surface-3); }
.note-item.is-active::before { content: ""; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--accent-ink); }
.note-item-top { display: flex; align-items: baseline; gap: 10px; }
.note-item-title { flex: 1; min-width: 0; font-weight: 700; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item-title .pin { color: var(--accent-ink); margin-right: 5px; }
.note-item-time { flex: none; font-size: 12px; color: var(--text-3); }
.note-item-sub { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.note-item-sub mark, .md mark { background: var(--warn-soft); color: var(--text); border-radius: 3px; padding: 0 1px; box-shadow: inset 0 -1px 0 var(--warn-line); }
.note-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; color: var(--text-3); }
.note-ref { display: inline-flex; align-items: center; gap: 4px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-ck { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-variant-numeric: tabular-nums; }
.note-ck.is-done { color: var(--ok); }
.note-pane { min-width: 0; padding: 28px var(--gutter) 80px; }
.note-empty { padding-top: 14vh; }
.note-doc { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.note-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.note-kind { width: auto; max-width: 200px; }
.note-bar .icon-btn.is-on { color: var(--accent-ink); background: var(--accent-soft); }
.note-status { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.note-status .i { color: var(--ok); }
.note-status.is-warn, .note-status.is-warn .i { color: var(--warn); }
.note-title { width: 100%; border: 0; background: transparent; color: var(--text); font: 700 32px/1.15 var(--font); letter-spacing: -0.035em; padding: 6px 0 0; outline: none; }
.note-title::placeholder { color: var(--text-3); }
.note-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 0; font-size: 12.5px; color: var(--text-3); }
.note-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding: 12px; border-radius: var(--r-m); background: var(--bg-raised); border: 1px solid var(--line); }
.note-links .field { gap: 4px; }
.note-links .field > label { font-size: 11.5px; color: var(--text-3); }
.note-links-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -4px; }
.note-links-foot .check { margin-left: auto; font-size: 12.5px; }
.md-toolbar { position: sticky; top: calc(var(--top) + 6px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px; border-radius: var(--r-s); background: var(--glass-solid); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.md-hint { margin-left: auto; padding-right: 8px; font-size: 12px; }
.note-body { width: 100%; min-height: 360px; resize: none; border: 0; border-radius: 0; background: transparent; color: var(--text); font: 500 15.5px/1.75 var(--font); letter-spacing: -0.004em; padding: 4px 0; outline: none; tab-size: 2; }
.note-body::placeholder { color: var(--text-3); }
.note-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.note-side { display: grid; gap: 8px; align-content: start; }
.note-side .micro { margin-bottom: 2px; }
.backlinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.backlinks li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.backlinks a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.backlinks a:hover { text-decoration: underline; }
.backlinks .faint { margin-left: auto; font-size: 12px; }
.note-cards { display: grid; gap: 8px; }
.note-card { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .15s var(--ease); }
.note-card:hover { border-color: var(--accent-line); }
.note-card-top { display: flex; align-items: center; gap: 8px; }
.note-card-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-card-sub { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tpl-card { display: grid; gap: 6px; justify-items: start; align-content: start; padding: 14px; min-height: 108px; border-radius: var(--r-m); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); text-align: left; }
.tpl-card:hover, .tpl-card:focus-visible { border-color: var(--accent-line); background: var(--surface-3); }
.tpl-card b { font-size: 14.5px; }
.tpl-card small { color: var(--text-2); font-size: 12.5px; }
.rev-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; min-height: 360px; }
.rev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; max-height: 60dvh; overflow-y: auto; }
.rev-list .choice { min-height: 52px; }
.rev-list .choice.is-on { border-color: var(--accent-line); background: var(--accent-soft); }
.rev-preview { padding: 16px 18px; border-radius: var(--r-m); background: var(--bg-raised); border: 1px solid var(--line); max-height: 60dvh; overflow-y: auto; }
.conflict { animation: rise .25s var(--ease); }

/* Markdown görünümü */
.md { font-size: 15.5px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.md > * + * { margin-top: .7em; }
.md h2 { font-size: 24px; letter-spacing: -0.03em; margin-top: 1.2em; }
.md h3 { font-size: 19px; letter-spacing: -0.02em; margin-top: 1.1em; }
.md h4, .md h5 { font-size: 16px; margin-top: 1em; }
.md > :first-child { margin-top: 0; }
.md p { margin: 0; }
.md a { color: var(--accent-ink); font-weight: 700; text-underline-offset: 3px; }
.md a.wiki { text-decoration: none; padding: 0 3px; border-radius: 5px; background: var(--accent-soft); }
.md a.wiki::before { content: "↗ "; font-weight: 500; opacity: .8; }
.md code { font-family: var(--mono); font-size: .88em; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); }
.md pre { margin: 0; padding: 14px 16px; border-radius: var(--r-m); background: var(--field); border: 1px solid var(--line); overflow-x: auto; }
.md pre code { padding: 0; background: none; font-size: 13px; line-height: 1.6; }
.md blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent-line); color: var(--text-2); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; }
.md del { color: var(--text-3); }
.md-list { margin: 0; padding: 0 0 0 1.35em; display: grid; gap: .25em; }
.md-list li { margin-left: calc(var(--d, 0) * 1.4em); }
.md-list li.md-check { list-style: none; margin-left: calc(var(--d, 0) * 1.4em - 1.35em); }
.md-check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.md-check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 5px 0 0; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--field); display: grid; place-items: center; cursor: pointer; }
.md-check input::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.md-check input:checked { background: var(--accent); border-color: var(--accent); }
.md-check input:checked::after { opacity: 1; }
.md-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.md-check.is-on > label > span { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.md-table { overflow-x: auto; }
.md-table .table { font-size: 13.5px; }

/* ---------- İşler ---------- */
.tboard { grid-auto-columns: minmax(250px, 1fr); }
.tboard .col { transition: border-color .15s var(--ease), background .15s var(--ease); }
.tboard .col.is-over { border-color: var(--accent-line); background: var(--accent-soft); }
.tboard .col-head { align-items: center; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.st--suruyor { background: var(--accent-ink); }
.st--bekliyor { background: var(--warn); }
.st--bitti { background: var(--ok); }
.tquick .input { background: var(--surface); }
.tcard { position: relative; display: grid; gap: 6px; padding: 12px 12px 12px 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); cursor: grab; transition: border-color .15s var(--ease), transform .15s var(--ease), opacity .15s; }
.tcard:hover { border-color: var(--accent-line); }
.tcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tcard::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.tcard.prio--yuksek::before { background: var(--danger); }
.tcard.prio--dusuk { background: var(--bg-raised); }
.tcard.is-drag { opacity: .45; }
.tcard.drop-before { box-shadow: 0 -3px 0 -1px var(--accent-ink); }
.tcard.is-done .tcard-title { color: var(--text-3); text-decoration: line-through; }
.tcard-title { font-weight: 700; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.tcard-desc { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--text-3); }
.tcard-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.tcard-meta .avatar { margin-left: auto; }

@media (max-width: 1180px) {
  .notes { grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); }
  .note-links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .note-tags-field { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .side-user { display: none; }
  .notes { display: block; margin: -20px calc(var(--gutter) * -1) 0; min-height: 0; }
  .notes-list { position: static; height: auto; border-right: 0; }
  .note-items { overflow: visible; }
  .notes.has-detail .notes-list { display: none; }
  .notes:not(.has-detail) .note-pane { display: none; }
  .note-pane { padding: 20px var(--gutter) 24px; }
  .note-title { font-size: 26px; }
  .md-toolbar { top: calc(var(--top) + 4px); overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .md-hint { display: none; }
  .tboard { grid-auto-columns: 78%; }
  .topbar-log { display: none; }
}
@media (max-width: 640px) {
  .note-links { grid-template-columns: minmax(0, 1fr); }
  .note-foot { grid-template-columns: minmax(0, 1fr); }
  .note-links-foot .check { margin-left: 0; width: 100%; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rev-layout { grid-template-columns: minmax(0, 1fr); }
  .rev-list { max-height: 30dvh; }
  .note-status { width: 100%; order: 10; margin-left: 0; }
  .sub-head { flex-wrap: wrap; }
  .code-block pre { padding-right: 16px; padding-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.modal .seg--stack .seg-btn { flex-direction: column; align-items: flex-start; gap: 2px; }
.modal .seg--stack .seg-btn span { margin-left: 0; font-size: 12.5px; }
.note-item-title .pin { display: inline-flex; vertical-align: -1px; }
.note-items { grid-template-columns: minmax(0, 1fr); }
.note-item { min-width: 0; }
.note-item-sub { overflow-wrap: anywhere; }
.card-body .details { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); }
.card-body .details > summary { padding: 12px 14px; font-size: 14px; }
.card-body .details-body { padding: 0 14px 14px; }
.md ul.md-list { list-style: disc; }
.md ol.md-list { list-style: decimal; }
.md-list li::marker { color: var(--text-3); }
.note-meta { border-radius: var(--r-m); background: var(--bg-raised); border: 1px solid var(--line); }
.note-meta > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.note-meta > summary::-webkit-details-marker { display: none; }
.note-meta > summary .i { margin-left: auto; color: var(--text-3); transition: transform .2s var(--ease); flex: none; }
.note-meta[open] > summary .i { transform: rotate(180deg); }
.note-meta-sum { min-width: 0; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-meta[open] .note-meta-sum { display: none; }
.note-meta .note-links { border: 0; background: transparent; padding: 0 12px 12px; }
textarea.note-title { resize: none; overflow: hidden; display: block; }
.avatar--photo { padding: 0; overflow: hidden; background: var(--surface-3); }
.avatar--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-code { font-size: 20px; letter-spacing: 0.2em; text-align: center; height: 48px; }
.auth-form .steps { font-size: 13.5px; }
pre.recovery { columns: 2; column-gap: 24px; font-size: 15px; line-height: 1.9; }
.auth-code { font-size: 20px; letter-spacing: 0.2em; text-align: center; height: 48px; }
.auth-form .steps { font-size: 13.5px; }
pre.recovery { columns: 2; column-gap: 24px; font-size: 15px; line-height: 1.9; }
