/* ===== Fonts (sunucudan, latin + latin-ext) ===== */
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url(/fonts/sg/schibsted-grotesk-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url(/fonts/sg/schibsted-grotesk-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500; font-display: swap; src: url(/fonts/sg/schibsted-grotesk-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500; font-display: swap; src: url(/fonts/sg/schibsted-grotesk-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 600; font-display: swap; src: url(/fonts/sg/schibsted-grotesk-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 600; font-display: swap; src: url(/fonts/sg/schibsted-grotesk-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-display: swap; src: url(/fonts/sg/schibsted-grotesk-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-display: swap; src: url(/fonts/sg/schibsted-grotesk-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/fonts/jb/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/fonts/jb/jetbrains-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2190-2193; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(/fonts/jb/jetbrains-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+2000-206F; }

/* ===== Tokens ===== */
:root {
  color-scheme: light;
  --paper: #f6f6f2;
  --side: #ecede7;
  --surface: #ffffff;
  --sunk: #efefe9;
  --hover: #e4e5de;
  --line: #dadbd3;
  --line-2: #c6c8bf;
  --dot: #d3d4cb;
  --ink: #1d211e;
  --ink-2: #545a55;
  --ink-3: #676c66; /* 4,5:1 kontrast (açık zeminlerde) */
  --on-ink: #f6f6f2;
  --hl: #f3d34a;
  --hl-ink: #2b2508;
  --hl-mix: 40%;
  --hl-soft: color-mix(in srgb, var(--hl) var(--hl-mix), transparent);
  --text-size: 15.5px;
  --pat: radial-gradient(var(--dot) 1px, transparent 1.3px);
  --pat-size: 22px 22px;
  --link: #2d5bd0;
  --bug: #cf3439;
  --feat: #7448c8;
  --note: #6a706b;
  --ok: #24774a;
  --on-bug: #ffffff;
  --warn: #a86b00;
  --shadow: 0 1px 0 rgba(29, 33, 30, .04), 0 10px 30px -8px rgba(29, 33, 30, .22);
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --side-w: 272px;
  --r: 6px;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #1a1c1a;
    --side: #141614;
    --surface: #222522;
    --sunk: #1e211e;
    --hover: #2b2e2b;
    --line: #2f332f;
    --line-2: #3f443f;
    --dot: #2c302c;
    --ink: #e9ebe6;
    --ink-2: #a9aea8;
    --ink-3: #8e948d;
    --on-ink: #1a1c1a;
    --link: #8fb0ff;
    --bug: #ef6a6e;
    --feat: #b08cf5;
    --note: #9aa19a;
    --ok: #5bc48a;
    --on-bug: #1c0a0a;
    --warn: #e0a640;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 36px -10px rgba(0, 0, 0, .6);
    --hl-mix: 24%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --paper: #1a1c1a;
    --side: #141614;
    --surface: #222522;
    --sunk: #1e211e;
    --hover: #2b2e2b;
    --line: #2f332f;
    --line-2: #3f443f;
    --dot: #2c302c;
    --ink: #e9ebe6;
    --ink-2: #a9aea8;
    --ink-3: #8e948d;
    --on-ink: #1a1c1a;
    --link: #8fb0ff;
    --bug: #ef6a6e;
    --feat: #b08cf5;
    --note: #9aa19a;
    --ok: #5bc48a;
    --on-bug: #1c0a0a;
    --warn: #e0a640;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 36px -10px rgba(0, 0, 0, .6);
    --hl-mix: 24%;
  }
}

/* Vurgu renkleri ve zeminler */
:root[data-accent="nane"] { --hl: #4fd1a1; --hl-ink: #062a1d; }
:root[data-accent="mercan"] { --hl: #ff8b6e; --hl-ink: #3a1006; }
:root[data-accent="gok"] { --hl: #6ab4ff; --hl-ink: #06213d; }
:root[data-accent="lila"] { --hl: #c1a2ff; --hl-ink: #22104a; }
:root[data-bg="kare"] { --pat: linear-gradient(var(--dot) 1px, transparent 1px), linear-gradient(90deg, var(--dot) 1px, transparent 1px); --pat-size: 22px 22px; }
:root[data-bg="cizgi"] { --pat: linear-gradient(transparent 27px, var(--dot) 27px, var(--dot) 28px); --pat-size: 100% 28px; }
:root[data-bg="duz"] { --pat: none; }
:root { --veil: 74%; }
:root[data-bgdim="hafif"] { --veil: 52%; }
:root[data-bgdim="guclu"] { --veil: 88%; }
:root[data-bg="foto"] { --pat: linear-gradient(color-mix(in srgb, var(--paper) var(--veil), transparent), color-mix(in srgb, var(--paper) var(--veil), transparent)), var(--user-bg, none); --pat-size: auto, cover; }
:root[data-bg="foto"] :is(.thread, .home) { background-attachment: scroll; background-position: center; background-repeat: no-repeat; }
:root[data-size="buyuk"] { --text-size: 17.5px; }
:root[data-size="buyuk"] body { font-size: 15.5px; }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--hl-soft); }
[hidden] { display: none !important; }
.i { flex: none; display: block; }
kbd, code { font: 500 .8em/1 var(--mono); background: var(--sunk); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: .2em .4em; white-space: nowrap; }
code { border-bottom-width: 1px; font-weight: 400; }
.muted { color: var(--ink-3); }
.t-hata { --tc: var(--bug); }
.t-ozellik { --tc: var(--feat); }
.t-not, .ow-row, .lg-row { --tc: var(--note); }
.ow-row.t-hata, .lg-row.t-hata { --tc: var(--bug); }
.ow-row.t-ozellik, .lg-row.t-ozellik { --tc: var(--feat); }
strong.t-hata, strong.t-ozellik { color: var(--tc); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== Controls ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r); font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid transparent; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.ink { background: var(--ink); color: var(--on-ink); }
.btn.ink:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.btn.ink kbd { background: transparent; border-color: color-mix(in srgb, var(--on-ink) 30%, transparent); color: inherit; opacity: .75; }
.btn.line { border-color: var(--line-2); background: var(--surface); }
.btn.line:hover:not(:disabled) { border-color: var(--ink-3); }
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.danger { background: var(--bug); color: var(--on-bug); }
.btn.danger-line { border-color: color-mix(in srgb, var(--bug) 45%, transparent); color: var(--bug); }
.btn.danger-line:hover { background: color-mix(in srgb, var(--bug) 10%, transparent); }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--on-ink); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.line.is-busy::after, .btn.ghost.is-busy::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.ibtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r); color: var(--ink-2); flex: none; }
.ibtn:hover { background: var(--hover); color: var(--ink); }
.ibtn.sm { width: 26px; height: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .inline-form input, .inline-form select, .quick select, .quick textarea {
  height: 38px; padding: 0 11px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); font-size: 14.5px; font-weight: 400; outline: none; width: 100%; min-width: 0;
}
.field input:focus, .field select:focus, .inline-form input:focus, .inline-form select:focus, .quick select:focus, .quick textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
.hint { font-size: 12.5px; color: var(--ink-3); margin: 0; line-height: 1.5; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 3px; background: var(--hl); color: var(--hl-ink); vertical-align: 1px; }

/* ===== Shell ===== */
.app { display: flex; height: 100vh; height: 100dvh; }
.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; overflow: clip; }
.app { overflow: hidden; overflow: clip; }
body:not(.auth) { overflow: hidden; }
.page, .thread, .home { min-height: 0; }
.scrim { display: none; }

/* ===== Sidebar ===== */
.side { width: var(--side-w); flex: none; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 12px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
/* Logo: "N" harfi, çaprazı vurgu kalemi. Renkler temayla döner (koyu temada açık kare) */
.brand-mark { width: 24px; height: 24px; flex: none; display: block; }
.brand-mark .bm-bg { fill: var(--ink); }
.brand-mark .bm-bar { fill: var(--paper); }
.brand-mark .bm-hl { fill: #f3d34a; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.side-close { display: none; }
.side-actions { padding: 0 12px; display: flex; flex-direction: column; gap: 6px; }
.side-search { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 9px; border-radius: var(--r); color: var(--ink-3); border: 1px solid var(--line); background: var(--sunk); }
.side-search span { flex: 1; text-align: left; }
.side-search kbd { font-size: 10.5px; }
.side-search:hover { color: var(--ink-2); border-color: var(--line-2); }
.side-nav { padding: 10px 12px 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 9px; border-radius: var(--r); color: var(--ink-2); font-weight: 500; }
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.is-on { color: var(--ink); background: var(--surface); box-shadow: inset 3px 0 0 var(--hl), 0 0 0 1px var(--line); }

.tree { flex: 1; overflow-y: auto; padding: 4px 12px 16px; min-height: 0; }
.tree-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 4px 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.tree-empty { padding: 4px 9px; }
.tree-empty p { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.fold { border-radius: var(--r); margin-top: 2px; }
.fold.is-drop { background: var(--hl-soft); box-shadow: 0 0 0 1px var(--hl); }
.fold-row { display: flex; align-items: center; border-radius: var(--r); }
.fold-row:hover { background: var(--hover); }
.fold-toggle { width: 22px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); flex: none; }
.fold-toggle .chev { transition: transform .15s; transform: rotate(90deg); display: flex; }
.fold.is-shut .chev { transform: none; }
.fold.is-shut .plist { display: none; }
.fold-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 32px; color: var(--ink); font-weight: 600; }
.fold-link .i { color: var(--ink-3); }
.fold-link.is-on { text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.fold-name, .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-more { opacity: 0; margin-right: 3px; }
.fold-row:hover .row-more, .pitem:hover .row-more, .row-more:focus-visible { opacity: 1; }
.plist { list-style: none; margin: 0 0 4px; padding: 0 0 0 22px; }
.pitem { display: flex; align-items: center; border-radius: var(--r); position: relative; }
.pitem > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 6px; color: var(--ink-2); }
.pitem:hover { background: var(--hover); }
.pitem:hover > a { color: var(--ink); }
.pitem.is-on { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pitem.is-on::before { content: ''; position: absolute; left: -9px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--hl); }
.pitem.is-on > a { color: var(--ink); font-weight: 600; }
.pitem.is-drag { opacity: .4; }
.phash { font-family: var(--mono); color: var(--ink-3); font-size: 12.5px; }
.pname { flex: 1; }
.bugs { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; color: var(--on-bug); background: var(--bug); }
.padd button { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; font-size: 13px; color: var(--ink-3); border-radius: var(--r); width: 100%; }
.padd button:hover { color: var(--ink); background: var(--hover); }
.side-foot { border-top: 1px solid var(--line); padding: 8px 12px 12px; }
.me { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 8px; border-radius: var(--r); color: var(--ink-2); }
.me:hover { background: var(--hover); color: var(--ink); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; flex: none; object-fit: cover; }
.avatar.big { width: 64px; height: 64px; font-size: 26px; }
[data-color="sari"] { --sw: #f3d34a; --sw-ink: #2b2508; }
[data-color="nane"] { --sw: #4fd1a1; --sw-ink: #062a1d; }
[data-color="mercan"] { --sw: #ff8b6e; --sw-ink: #3a1006; }
[data-color="gok"] { --sw: #6ab4ff; --sw-ink: #06213d; }
[data-color="lila"] { --sw: #c1a2ff; --sw-ink: #22104a; }
[data-color="murekkep"] { --sw: var(--ink); --sw-ink: var(--on-ink); }
span.avatar[data-color] { background: var(--sw); color: var(--sw-ink); }
.me-name { flex: 1; text-align: left; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.dot.is-on { background: var(--ok); }

/* ===== Top bar ===== */
.bar { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px 10px 24px; border-bottom: 1px solid var(--line); background: var(--paper); flex: none; }
.bar.is-mobile-only { display: none; }
.menu-btn { display: none; margin-left: -8px; }
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.crumb { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 500; min-width: 0; max-width: 40%; }
.crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb:hover { color: var(--ink); }
.crumb-sep { color: var(--line-2); font-size: 18px; }
.crumb-icon { color: var(--ink-3); display: flex; }
.crumb-here { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-actions { display: flex; align-items: center; gap: 2px; }
.repo-link { display: inline-flex; align-items: center; gap: 6px; font: 12px var(--mono); color: var(--ink-2); padding: 0 10px; height: 30px; border-radius: var(--r); margin-right: 6px; border: 1px solid var(--line); }
.repo-link:hover { color: var(--ink); border-color: var(--line-2); }

.tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; scrollbar-width: none; background: var(--paper); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.tab span { font: 500 11.5px var(--mono); color: var(--ink-3); }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); }
.tab.is-on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; background: var(--tc, var(--ink)); border-radius: 2px 2px 0 0; }

/* ===== Thread (noktalı defter + zaman çizgisi) ===== */
.thread { flex: 1; overflow-y: auto; background-color: var(--paper); background-image: var(--pat); background-size: var(--pat-size); background-attachment: local; }
.col { max-width: 840px; margin: 0 auto; padding: 18px 24px 40px; }
.col.wide { max-width: 880px; }

.day { position: relative; }
.day-h { position: sticky; top: 0; z-index: 3; margin: 0; padding: 14px 0 8px 92px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); pointer-events: none; }
.day-h span { background: var(--paper); padding: 3px 9px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); pointer-events: auto; }

.entry { --tc: var(--note); position: relative; display: grid; grid-template-columns: 64px 28px minmax(0, 1fr); padding: 0 12px 0 0; border-radius: var(--r); }
.entry.t-hata { --tc: var(--bug); }
.entry.t-ozellik { --tc: var(--feat); }
.e-gutter { padding-top: 10px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.e-gutter time { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hash { font: 400 11px var(--mono); color: var(--ink-3); }
.e-rail { position: relative; display: flex; justify-content: center; padding-top: 11px; }
.e-rail::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line); }
.day .entry:first-of-type .e-rail::before { top: 14px; }
.day .entry:last-of-type .e-rail::before { bottom: auto; height: 14px; }
.day .entry:only-of-type .e-rail::before { display: none; }
.node { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--tc); display: flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.entry.t-not .node { width: 11px; height: 11px; margin-top: 2px; border-width: 2px; background: var(--tc); border-color: var(--paper); box-shadow: 0 0 0 1px var(--tc); }
button.node { cursor: pointer; transition: transform .12s; }
button.node:hover { transform: scale(1.25); background: color-mix(in srgb, var(--tc) 18%, var(--paper)); }
.is-done .node, .ow-row.is-done .node { background: var(--tc); color: var(--paper); }
.entry.is-pinned .node { box-shadow: 0 0 0 4px var(--hl-soft); }
.e-body { padding: 8px 0 14px 10px; min-width: 0; }
.e-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 22px; font-size: 12.5px; }
.e-type { font-weight: 700; color: var(--tc); }
.e-done { font-weight: 600; color: var(--ok); }
.e-pin { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--hl-ink); background: var(--hl); padding: 0 6px; border-radius: 3px; }
.e-edited { color: var(--ink-3); font-style: italic; }
.path { display: inline-flex; align-items: center; max-width: 100%; font: 400 11.5px/20px var(--mono); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 0 7px; border-radius: 3px; overflow: hidden; white-space: nowrap; }
.path i { font-style: normal; color: var(--ink-3); padding: 0 1px; }
.path b { font-weight: 400; }
.path b.leaf { font-weight: 500; color: var(--ink); }
a.path:hover { border-color: var(--link); color: var(--link); }
.e-text { margin-top: 3px; font-size: var(--text-size); line-height: 1.6; overflow-wrap: anywhere; max-width: 68ch; }
.e-text p { margin: 0 0 .5em; }
.e-text p:last-child { margin-bottom: 0; }
.e-text a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.e-text a.mention, .e-text .mention { font: .86em var(--mono); color: var(--link); text-decoration: none; }
.e-text code { font-size: .86em; }
.e-text pre { margin: .5em 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.e-text pre code { background: none; border: 0; padding: 0; font-size: 12.5px; line-height: 1.55; white-space: pre; }
.e-text blockquote { margin: .4em 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.entry.is-done .e-text { color: var(--ink-3); }
.entry.is-done .e-text p { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); }
.shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shots img { display: block; max-height: 200px; max-width: 100%; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); }

.entry:hover, .entry.is-ctx { background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: 0 0 0 1px var(--line); }
.entry.is-flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 30% { background: var(--hl-soft); } 100% { background: transparent; } }
.entry.is-new { animation: arrive .35s ease-out; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
.entry.is-leaving { opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .2s; }

.e-tools { position: absolute; top: -13px; right: 10px; display: flex; gap: 1px; padding: 2px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .1s; z-index: 4; }
.entry:hover .e-tools, .entry.is-ctx .e-tools, .e-tools:focus-within { opacity: 1; pointer-events: auto; }
@media (hover: none) {
  .e-tools { opacity: 1; pointer-events: auto; top: 6px; right: 4px; box-shadow: none; border-color: transparent; background: transparent; }
  .e-tools [data-e="copy"], .e-tools [data-e="edit"], .e-tools [data-e="pin"] { display: none; }
}

.editor { margin-top: 6px; }
.editor textarea { width: 100%; min-height: 90px; resize: vertical; padding: 10px 12px; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r); font-size: 15px; line-height: 1.55; outline: none; box-shadow: 0 0 0 3px var(--hl-soft); }
.editor-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.editor-bar .hint { margin-right: auto; }

.pins { margin: 6px 0 4px 92px; padding: 10px 14px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--hl); border-radius: var(--r); }
.pins h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; }
.pins h2 span { font: 500 11.5px var(--mono); color: var(--ink-3); }
.pins ul { list-style: none; margin: 0; padding: 0; }
.pins a { display: flex; align-items: center; gap: 9px; padding: 3px 0; font-size: 14px; color: var(--ink-2); }
.pins a:hover { color: var(--ink); }
.pins a.is-done .pin-t { text-decoration: line-through; color: var(--ink-3); }
.pin-t, .mini-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tdot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc, var(--note)); flex: none; }

.empty { margin: 9vh 0 0 92px; max-width: 520px; }
.empty h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.empty p { color: var(--ink-2); margin: 0 0 16px; line-height: 1.6; }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.tips li { padding-left: 14px; position: relative; }
.tips li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 2px; background: var(--hl); }
.filter-empty { text-align: center; color: var(--ink-3); padding: 48px 0; }

/* ===== Composer (commit kutusu) ===== */
.composer { flex: none; padding: 10px 24px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); position: relative; }
.cbox { --tc: var(--note); max-width: 792px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--tc); border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
.cbox[data-type="hata"] { --tc: var(--bug); }
.cbox[data-type="ozellik"] { --tc: var(--feat); }
.cbox:focus-within { border-color: var(--ink); border-left-color: var(--tc); box-shadow: 0 0 0 3px var(--hl-soft); }
.ctabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); }
.ctab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ctab:hover { color: var(--ink); }
.ctab[aria-checked="true"] { color: var(--tc); }
.ctab[aria-checked="true"]::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; background: var(--tc); }
.cbox textarea { display: block; width: 100%; resize: none; border: 0; outline: none; background: none; padding: 12px 14px 4px; font-size: var(--text-size); line-height: 1.55; min-height: 64px; max-height: 260px; }
.cbox textarea::placeholder { color: var(--ink-3); }
.cfoot { display: flex; align-items: center; gap: 2px; padding: 4px 8px 8px; }
.chint { margin-left: 10px; margin-right: auto; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.chint kbd { margin-left: 6px; }
.chint kbd:first-child { margin-left: 0; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 0; align-items: flex-end; }
.atts figure { margin: 0; position: relative; }
.atts img { width: 68px; height: 68px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); display: block; }
.atts button { font-size: 12.5px; color: var(--ink-2); padding: 4px 8px; border-radius: var(--r); }
.atts button:hover { background: var(--hover); color: var(--bug); }

.suggest { position: absolute; left: 24px; right: 24px; bottom: calc(100% - 4px); max-width: 792px; margin: 0 auto; max-height: 300px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px; z-index: 20; }
.sg { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 5px 10px; border-radius: 4px; text-align: left; }
.sg.is-on, .sg:hover { background: var(--hover); }
.sg-ic { width: 16px; display: flex; justify-content: center; color: var(--ink-3); }
.sg-ic.t-hata, .sg-ic.t-ozellik { color: var(--tc); }
.sg-l { font: 12.5px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-l mark { background: var(--hl-soft); color: inherit; border-radius: 2px; }
.sg-d { margin-left: auto; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.sg-info { padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); }

/* ===== Drawer ===== */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; z-index: 30; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 8px 20px; }
.drawer-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.drawer-meta { padding: 0 20px 12px; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.drawer-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-family: var(--mono); font-size: 12px; }
.commits { list-style: none; margin: 0; padding: 10px 12px 20px; overflow-y: auto; }
.commits li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 7px 8px; border-radius: 4px; }
.commits li:hover { background: var(--sunk); }
.commits .hash { grid-row: span 2; padding-top: 3px; }
.commits .cm { font-size: 13.5px; overflow-wrap: anywhere; }
.commits time { font-size: 11.5px; color: var(--ink-3); }

/* ===== Pages ===== */
.page { flex: 1; overflow-y: auto; }
.sect { padding: 26px 0; border-bottom: 1px solid var(--line); }
.sect:last-child { border-bottom: 0; }
.sect > p { margin: 0 0 14px; line-height: 1.6; max-width: 62ch; }
.sect-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sect-h h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.sect-h .btn { margin-left: auto; }
.sect-h .muted { font: 500 12px var(--mono); }
.sect-danger h2 { color: var(--bug); }
.calm-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.calm-box p { margin: 0; color: var(--ink-2); flex: 1; min-width: 200px; }
.inline-form { display: flex; gap: 8px; max-width: 520px; }
.inline-form input { font-family: var(--mono); font-size: 13px; }
.stack { display: grid; gap: 12px; max-width: 420px; }

.ptable { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ptable li { border-bottom: 1px solid var(--line); }
.ptable a { display: grid; grid-template-columns: minmax(0, 1fr) auto 90px; align-items: center; gap: 16px; padding: 12px 6px; }
.ptable a:hover { background: var(--sunk); }
.pt-name { font-weight: 600; display: flex; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-stats { display: flex; gap: 12px; font-size: 13px; }
.pt-stats .t-hata, .pt-stats .t-ozellik { color: var(--tc); font-weight: 600; }
.pt-when { font-size: 12.5px; text-align: right; }

.gh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gh-block h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.gh-block > p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; }
.gh-block strong { color: var(--ink); }
.backup-line { display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; font-size: 13px; }
.backup-line a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--link); }

.kv { margin: 0; display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 140px 1fr; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; }
.sessions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sessions li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.sessions li > .i { color: var(--ink-3); }
.sessions li div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sessions .muted { font-size: 12.5px; }
.gh-account { display: flex; align-items: center; gap: 12px; }
.gh-account img { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
.gh-account div { flex: 1; display: flex; flex-direction: column; }
.gh-account .muted { font-size: 12.5px; }
.steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.75; color: var(--ink-2); max-width: 64ch; }
.steps a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.steps em { font-style: normal; font-weight: 600; color: var(--ink); }
.warn-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.warn-box .i { color: var(--warn); margin-top: 2px; }
.warn-box p { margin: 0; line-height: 1.55; }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; max-width: 560px; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { width: 38px; height: 22px; border-radius: 11px; background: var(--line-2); position: relative; flex: none; transition: background .15s; margin-top: 1px; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); background: var(--hl); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch > span:last-child { display: flex; flex-direction: column; }
.switch .muted { font-size: 13px; }
.center-msg { max-width: 440px; margin: 16vh auto 0; padding: 0 24px; }
.center-msg h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 8px; }
.center-msg p { color: var(--ink-2); margin: 0 0 20px; }

/* ===== Home ===== */
.home { background-image: var(--pat); background-size: var(--pat-size); background-attachment: local; }
.home-wrap { max-width: 1080px; margin: 0 auto; padding: 48px 32px 64px; }
.hello { max-width: 720px; margin-bottom: 36px; }
.hello-date { margin: 0 0 6px; font-size: 14px; color: var(--ink-3); }
.hello h1 { margin: 0 0 12px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.hello-sum { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.hello-sum strong { box-shadow: inset 0 -.42em 0 var(--hl-soft); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.openwork .calm { padding: 14px 0; }
.ow { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ow:empty { display: none; }
.ow-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); transition: opacity .25s; }
.ow-row:last-child { border-bottom: 0; }
.ow-row .node { margin-top: 3px; }
.ow-row.is-done { opacity: .45; }
.ow-row.is-done .ow-title { text-decoration: line-through; }
.ow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ow-main:hover .ow-title { text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ow-title { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-meta { display: flex; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.home-side { display: flex; flex-direction: column; gap: 30px; }
.quick form { display: grid; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.quick textarea { height: auto; min-height: 84px; padding: 10px 11px; resize: vertical; line-height: 1.5; }
.quick .btn { justify-self: end; }
.qtypes { display: flex; gap: 4px; }
.qtypes label { cursor: pointer; }
.qtypes input { position: absolute; opacity: 0; }
.qtypes span { display: inline-flex; height: 28px; align-items: center; padding: 0 10px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line); }
.qtypes input:checked + span { color: var(--tc); border-color: var(--tc); background: color-mix(in srgb, var(--tc) 9%, transparent); }
.qtypes input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.mini { list-style: none; margin: 0; padding: 0; }
.mini a { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini li:last-child a { border-bottom: 0; }
.mini a:hover .mini-t { text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.mini-t { flex: 1; }
.mini-s { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.onboard { list-style: none; counter-reset: s; margin: 8px 0 0; padding: 0; max-width: 720px; border-top: 1px solid var(--line); }
.onboard li { counter-increment: s; display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.onboard li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.onboard li.is-done::before { background: var(--hl); border-color: var(--hl); color: var(--hl-ink); }
.onboard li div { flex: 1; }
.onboard h2 { margin: 0 0 2px; font-size: 16px; }
.onboard p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.done-mark { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ok); }

/* ===== Menus, dialogs, palette, toasts ===== */
.ctx { position: fixed; z-index: 90; min-width: 232px; max-width: 290px; padding: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); font-size: 13.5px; animation: pop .1s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.98); } }
.ctx button, .ctx a { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 10px; border-radius: 4px; text-align: left; color: var(--ink); }
.ctx button:hover, .ctx a:hover, .ctx .is-on { background: var(--hover); }
.ctx .i { color: var(--ink-3); }
.ctx .danger, .ctx .danger .i { color: var(--bug); }
.ctx kbd { margin-left: auto; font-size: 10.5px; }
.ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.ctx-label { padding: 6px 10px 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.ctx-types { display: flex; gap: 4px; padding: 2px 6px 4px; }
.ctx-types button { flex: 1; justify-content: center; height: 28px; padding: 0 6px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ctx-types button.is-cur { color: var(--tc); border-color: var(--tc); background: color-mix(in srgb, var(--tc) 9%, transparent); }

.dlg { border: 1px solid var(--line-2); border-radius: 8px; padding: 0; width: min(440px, calc(100% - 28px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dlg::backdrop, .palette::backdrop { background: rgba(20, 22, 20, .45); }
.dlg form { padding: 22px; display: grid; gap: 14px; }
.dlg h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.dlg-text { margin: 0; color: var(--ink-2); line-height: 1.55; }
.dlg-err { margin: 0; color: var(--bug); font-size: 13.5px; font-weight: 500; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.seg label + label span { border-left: 1px solid var(--line-2); }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--hl); outline-offset: -3px; }
.repo-pick { display: grid; gap: 8px; }
.repo-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); }
.repo-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); font: 12.5px var(--mono); }
.repo-list button:last-child { border-bottom: 0; }
.repo-list button:hover { background: var(--sunk); }
.repo-list button.is-on { background: var(--hl-soft); }
.repo-list .lock { margin-left: auto; color: var(--ink-3); }
.repo-list p { margin: 0; padding: 12px; color: var(--ink-2); font-size: 13.5px; font-family: var(--sans); }
.repo-list p a { color: var(--link); text-decoration: underline; }
.opt-row { display: flex; gap: 6px; flex-wrap: wrap; }
.opt-row label { cursor: pointer; }
.opt-row input { position: absolute; opacity: 0; }
.opt-row span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 13.5px; font-weight: 500; }
.opt-row input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }

.palette { margin: 12vh auto auto; padding: 0; width: min(620px, calc(100% - 24px)); border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pal-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.pal-input input { flex: 1; height: 52px; border: 0; outline: none; background: none; font-size: 16px; color: var(--ink); }
.pal-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.pal-group { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.pal-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 6px 10px; border-radius: 4px; text-align: left; }
.pal-item.is-on { background: var(--hover); }
.pal-item .i, .pal-item .phash { color: var(--ink-3); }
.pal-item.t-hata .i, .pal-item.t-ozellik .i { color: var(--tc); }
.pal-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-t mark { background: var(--hl-soft); color: inherit; }
.pal-s { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.pal-empty { padding: 22px; text-align: center; color: var(--ink-3); }

.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; width: max-content; max-width: calc(100% - 28px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); background: var(--ink); color: var(--on-ink); font-size: 14px; box-shadow: var(--shadow); pointer-events: auto; animation: arrive .2s ease-out; }
.toast .i { color: var(--hl); }
.toast.is-err { background: var(--bug); color: var(--on-bug); }
.toast.is-err .i { color: #fff; }
.toast.is-out { opacity: 0; transition: opacity .3s; }

/* ===== Auth ===== */
body.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 88px); }
.auth-brand { margin-bottom: 48px; }
.auth-form { display: grid; gap: 16px; max-width: 380px; width: 100%; }
.auth-form h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.035em; }
.auth-lead { margin: 0; color: var(--ink-2); line-height: 1.55; }
.form-err { margin: 0; padding: 10px 12px; border-radius: var(--r); background: color-mix(in srgb, var(--bug) 10%, transparent); color: var(--bug); font-weight: 500; font-size: 14px; }
.auth-alt { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.auth-alt a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.auth-warn { display: flex; gap: 8px; align-items: flex-start; margin: 32px 0 0; max-width: 380px; font-size: 13px; color: var(--warn); line-height: 1.5; }
.auth-warn .i { margin-top: 2px; }
.auth-aside { background: var(--side); border-left: 1px solid var(--line); background-image: var(--pat); background-size: var(--pat-size); display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 80px); }
.ledger { max-width: 480px; }
.lg-row { --tc: var(--note); display: grid; grid-template-columns: 48px 22px 1fr; align-items: start; }
.lg-row.t-hata { --tc: var(--bug); }
.lg-row.t-ozellik { --tc: var(--feat); }
.lg-row time { font-size: 12.5px; color: var(--ink-3); padding-top: 14px; font-variant-numeric: tabular-nums; }
.lg-row i { position: relative; align-self: stretch; }
.lg-row i::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.lg-row:first-child i::before { top: 18px; }
.lg-row:last-child i::before { bottom: auto; height: 18px; }
.lg-row i::after { content: ''; position: absolute; left: 4px; top: 16px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--tc); background: var(--side); box-sizing: border-box; }
.lg-row.is-done i::after { background: var(--tc); }
.lg-row p { margin: 0; padding: 10px 0 14px 8px; font-size: 15px; line-height: 1.5; }
.lg-row b { display: block; font-size: 12.5px; color: var(--tc); }
.lg-row.is-done p { color: var(--ink-3); }
.lg-row code { font-size: 11px; }
.auth-tag { margin: 28px 0 0 70px; font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; max-width: 340px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .home-grid { grid-template-columns: 1fr; }
  .gh-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 900px) {
  .side { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: min(var(--side-w), 86vw); transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow); padding-top: env(safe-area-inset-top); }
  .app.is-side-open .side { transform: none; }
  .app.is-side-open .scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(20, 22, 20, .45); }
  .side-close, .menu-btn { display: inline-flex; }
  .bar.is-mobile-only { display: flex; }
  .row-more { opacity: 1; }
  .bar { padding-left: 14px; padding-right: 8px; }
  body.auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .col { padding: 10px 12px 28px; }
  .entry { grid-template-columns: 46px 22px minmax(0, 1fr); padding-right: 30px; }
  .e-gutter time { font-size: 11.5px; }
  .hash { font-size: 10px; }
  .day-h { position: static; padding-left: 68px; }
  .pins, .empty { margin-left: 0; }
  .tabs { padding: 0 8px; }
  .composer { padding: 8px 8px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .chint { display: none; }
  #cat { margin-right: auto; }
  .suggest { left: 8px; right: 8px; }
  .home-wrap { padding: 28px 16px 48px; }
  .ptable a { grid-template-columns: 1fr auto; }
  .pt-when { display: none; }
  .kv div { grid-template-columns: 110px 1fr; }
  .inline-form { flex-direction: column; }
  .crumb { max-width: 34%; }
}
@media (hover: none) { .hide-touch { display: none; } }

/* ===== v3 bileşenleri ===== */
.input { height: 38px; padding: 0 11px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); font-size: 14.5px; outline: none; width: 100%; }
.input.sm { height: 32px; font-size: 13.5px; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
.opt { font-style: normal; font-weight: 400; color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: .9em; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--link); }
.link-btn:hover { text-decoration: underline; }
.err-line { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 10px; font-size: 13px; color: var(--bug); }
.err-line .i { margin-top: 2px; }
.lock-tag { display: inline-flex; align-items: center; gap: 3px; vertical-align: 2px; }

/* öncelik, kaynak commit, issue */
.prio { font-weight: 700; font-size: 11.5px; padding: 0 6px; border-radius: 3px; line-height: 18px; }
.prio.p-acil { background: var(--bug); color: var(--on-bug); }
.prio.p-yuksek { color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 55%, transparent); }
.prio.p-dusuk { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.src-commit { display: inline-flex; align-items: center; gap: 5px; max-width: min(100%, 340px); height: 20px; padding: 0 7px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12px; overflow: hidden; }
.src-commit b { font: 500 11px var(--mono); color: var(--ink); }
.src-commit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-commit:hover { border-color: var(--link); color: var(--link); }
.issue-chip { display: inline-flex; align-items: center; gap: 4px; font: 500 11.5px var(--mono); color: var(--ok); }
.issue-chip:hover { text-decoration: underline; }
.commit-filter { display: flex; align-items: center; gap: 8px; padding: 8px 20px; background: var(--hl-soft); border-bottom: 1px solid var(--line); font-size: 13.5px; flex: none; }
.commit-filter span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* yazma kutusu etiketleri */
.cchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.cchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 9px; border-radius: 13px; background: var(--sunk); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; max-width: 100%; }
.cchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cchip b { font: 500 11.5px var(--mono); }
.cchip button { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.cchip button:hover { background: var(--hover); color: var(--ink); }
.cchip.p-acil { background: var(--bug); color: var(--on-bug); border-color: var(--bug); }
.cchip.p-acil button { color: #fff; }

/* çekmece sekmeleri ve commit listesi */
.dtabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.dtab { position: relative; height: 36px; padding: 0 8px; font-weight: 600; font-size: 13.5px; color: var(--ink-3); }
.dtab.is-on { color: var(--ink); }
.dtab.is-on::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; background: var(--ink); }
[data-dpanel] { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.commits.src li { cursor: pointer; grid-template-columns: auto 1fr auto; }
.commits.src .nb { grid-row: span 2; align-self: center; font: 600 11px var(--mono); padding: 1px 6px; border-radius: 9px; background: var(--hl); color: var(--hl-ink); }
.commit-list { max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); }
.commit-list button { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; width: 100%; padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.commit-list button:last-child { border-bottom: 0; }
.commit-list button:hover, .commit-list button.is-on { background: var(--sunk); }
.commit-list .hash { grid-row: span 2; padding-top: 2px; }
.commit-list .cm { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commit-list .cmeta { font-size: 12px; color: var(--ink-3); }
.commit-list .nb { grid-row: span 2; align-self: center; font: 600 11px var(--mono); padding: 1px 6px; border-radius: 9px; background: var(--hl); color: var(--hl-ink); }
.commit-list p { margin: 0; padding: 14px; color: var(--ink-2); }

/* klasör diyaloğu */
.dlg.wide { width: min(560px, calc(100% - 28px)); }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg.two { grid-template-columns: repeat(2, 1fr); }
.seg.narrow { max-width: 320px; }
.seg label + label span { border-left: 1px solid var(--line-2); }
.vis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vis label { cursor: pointer; }
.vis input { position: absolute; opacity: 0; }
.vis span { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); }
.vis span .i { grid-row: span 2; margin-top: 2px; color: var(--ink-3); }
.vis small { font-size: 12px; color: var(--ink-3); }
.vis input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
.vis input[value="public"]:checked + span .i { color: var(--warn); }
.vis input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.backup-opts { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 12px; margin: 0; display: grid; gap: 8px; }
.backup-opts legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gh-need { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.gh-need p { margin: 0; flex: 1; color: var(--ink-2); }
.keys { margin: 0; display: grid; gap: 8px; }
.keys div { display: grid; grid-template-columns: 170px 1fr; align-items: center; }
.keys dd { margin: 0; color: var(--ink-2); }

/* ana sayfa repolar */
.repos .input { margin-bottom: 6px; }
.repo-mini { max-height: 272px; overflow-y: auto; }
.repo-mini li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 6px 0; font-size: 14px; }
.repo-mini li:last-child { border-bottom: 0; }
.repo-mini .rn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-mini .rn a:hover { text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.repo-mini .i { color: var(--ink-3); }
.repo-mini .btn { height: 26px; padding: 0 8px; font-size: 12px; }
.repo-mini .linked { font-size: 12px; color: var(--ok); font-weight: 600; white-space: nowrap; }

/* Hesabım */
.set-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; max-width: 1040px; margin: 0 auto; padding: 24px 28px 64px; }
.stabs { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.stabs a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r); color: var(--ink-2); font-weight: 500; }
.stabs a .i { color: var(--ink-3); }
.stabs a:hover { background: var(--hover); color: var(--ink); }
.stabs a.is-on { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--hl), 0 0 0 1px var(--line); }
.stabs .count { margin-left: auto; font: 500 11.5px var(--mono); color: var(--ink-3); }
.stabs .bugs, .stabs .dot { margin-left: auto; }
.set-body { min-width: 0; max-width: 680px; }
.set-body .sect:first-child { padding-top: 0; }
.tab-panel > .sect:last-child { border-bottom: 0; }
.profile-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-edit > div { display: flex; flex-direction: column; gap: 2px; }
.ph-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.mini-stats { display: flex; gap: 24px; margin: 0; }
.mini-stats div { display: flex; flex-direction: column; align-items: flex-end; }
.mini-stats dt { font-size: 12px; color: var(--ink-3); }
.mini-stats dd { margin: 0; font: 600 20px var(--mono); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.swatches label { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.swatches input { position: absolute; opacity: 0; }
.sw { width: 28px; height: 28px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatches.big .sw { width: 38px; height: 38px; }
.sw-l { font-size: 12px; color: var(--ink-3); }
.swatches input:checked + .sw { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.swatches input:focus-visible + .sw { outline: 2px solid var(--ink); outline-offset: 4px; }
.choice { display: grid; gap: 12px; }
.choice.three { grid-template-columns: repeat(3, 1fr); }
.choice.four { grid-template-columns: repeat(4, 1fr); }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.ch-card { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.choice input:checked + .ch-card { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
.choice input:focus-visible + .ch-card { outline: 2px solid var(--ink); outline-offset: 2px; }
.ch-l { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 0 2px 2px; }
.ch-prev { height: 64px; border-radius: 5px; display: grid; grid-template-columns: 30% 1fr; grid-template-rows: 1fr 1fr; gap: 4px; padding: 6px; }
.ch-prev i { border-radius: 3px; }
.ch-prev i:first-child { grid-row: span 2; }
.theme-light { background: #f6f6f2; } .theme-light i { background: #e4e5de; } .theme-light i:last-child { background: #1d211e; width: 40%; }
.theme-dark { background: #1a1c1a; } .theme-dark i { background: #2b2e2b; } .theme-dark i:last-child { background: #e9ebe6; width: 40%; }
.theme-system { background: linear-gradient(135deg, #f6f6f2 50%, #1a1c1a 50%); } .theme-system i { background: rgba(128, 128, 128, .35); } .theme-system i:last-child { width: 40%; }
.ch-bg { height: 64px; border-radius: 5px; background-color: var(--paper); border: 1px solid var(--line); }
[data-bg-prev="nokta"] { background-image: radial-gradient(var(--line-2) 1px, transparent 1.3px); background-size: 12px 12px; }
[data-bg-prev="kare"] { background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 12px 12px; }
[data-bg-prev="cizgi"] { background-image: linear-gradient(transparent 13px, var(--line-2) 13px, var(--line-2) 14px); background-size: 100% 14px; }
.sec-summary { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); margin-bottom: 8px; }
.sec-summary > div { display: flex; flex-direction: column; gap: 2px; }
.sec-summary.is-ok { background: color-mix(in srgb, var(--ok) 11%, transparent); }
.sec-summary.is-ok > .i { color: var(--ok); }
.sec-summary.is-warn { background: color-mix(in srgb, var(--warn) 13%, transparent); }
.sec-summary.is-warn > .i { color: var(--warn); }
.logins { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.logins li { display: grid; grid-template-columns: 100px 1fr auto auto 28px; gap: 14px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.lg-state { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ok); }
.logins li.is-fail .lg-state { color: var(--bug); }
.logins li.is-fail { background: color-mix(in srgb, var(--bug) 6%, transparent); }
.devices { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line); }
.devices li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.dev-ic { width: 40px; height: 40px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none; }
.devices li.is-current .dev-ic { background: var(--hl-soft); border-color: var(--hl); color: var(--ink); }
.dev-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dev-main .muted { font-size: 12.5px; }
.perm-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.perm-list li { color: var(--ink-2); line-height: 1.5; }
.perm-list b { display: inline-block; min-width: 120px; color: var(--ink); }
.switch.compact { margin-top: 14px; }
.token-replace { margin-top: 14px; }
.token-replace summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; width: max-content; }
.token-replace[open] summary { margin-bottom: 10px; }
.gh-account { flex-wrap: wrap; }

@media (max-width: 900px) {
  .set-wrap { grid-template-columns: 1fr; gap: 0; padding: 0 16px 48px; }
  .stabs { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; gap: 4px; padding: 10px 0; margin: 0 -16px 16px; padding-left: 16px; padding-right: 16px; background: var(--paper); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .stabs::-webkit-scrollbar { display: none; }
  .stabs a { flex: none; height: 34px; }
  .stabs a.is-on { box-shadow: inset 0 -3px 0 var(--hl), 0 0 0 1px var(--line); }
  .stabs .count, .stabs .bugs, .stabs .dot { margin-left: 4px; }
  .choice.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .choice.three { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ch-prev, .ch-bg { height: 48px; }
  .logins li { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .logins li > :nth-child(3) { grid-column: 1; }
  .vis { grid-template-columns: 1fr; }
  .seg.three span { font-size: 12.5px; gap: 5px; }
  .keys div { grid-template-columns: 1fr; gap: 2px; }
  .mini-stats { width: 100%; justify-content: space-between; }
}
.repo-mini a { display: inline; padding: 0; border: 0; font-size: inherit; }
.repo-mini a.linked { font-size: 12px; }
.dlg .stack { max-width: none; }
[data-dpanel] .drawer-meta { padding-top: 12px; }
.set-body .sect.stack { max-width: none; }
.set-body .sect.stack > .field, .set-body .sect.stack > .hint { max-width: 420px; }

/* ===== v4: ekler ===== */
.shot { position: relative; }
.att-x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--on-ink); border: 2px solid var(--paper); box-shadow: var(--shadow); opacity: 0; transition: opacity .12s, transform .12s; z-index: 2; }
.att-x:hover { background: var(--bug); color: var(--on-bug); transform: scale(1.1); }
.shot:hover .att-x, .att-file:hover .att-x, .att-prev .att-x, .att-x:focus-visible { opacity: 1; }
@media (hover: none) { .att-x { opacity: 1; } }
.att-files { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.att-file { position: relative; }
.att-file a, .att-filebox { display: flex; align-items: center; gap: 10px; max-width: 300px; padding: 7px 12px 7px 7px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.att-file a:hover { border-color: var(--ink-3); }
.att-file a > .i { color: var(--ink-3); flex: none; }
.att-ext { flex: none; min-width: 38px; height: 38px; padding: 0 4px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font: 700 10.5px var(--mono); background: var(--sunk); border: 1px solid var(--line); color: var(--ink-2); }
.att-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.att-meta b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-meta small { font-size: 12px; color: var(--ink-3); }
.atts { gap: 12px; padding: 14px 14px 2px; }
.att-prev { position: relative; margin: 0; }
.att-prev img { width: 68px; height: 68px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); display: block; }
.att-prev.is-file .att-filebox { max-width: 220px; height: 68px; }

/* ===== v4: ana sayfa ===== */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 28px; }
.hero .hello-sum { max-width: 560px; }
.heat-box { margin: 0; padding: 14px 16px 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: 8px; }
.heat { display: block; width: 262px; height: auto; }
.heat rect { stroke: color-mix(in srgb, var(--ink) 6%, transparent); stroke-width: 1; }
.heat .l0 { fill: var(--sunk); }
.heat .l1 { fill: color-mix(in srgb, var(--hl) 35%, var(--sunk)); }
.heat .l2 { fill: color-mix(in srgb, var(--hl) 60%, var(--sunk)); }
.heat .l3 { fill: color-mix(in srgb, var(--hl) 82%, var(--sunk)); }
.heat .l4 { fill: var(--hl); }
.heat-d { font: 500 9px var(--sans); fill: var(--ink-3); }
.heat-box figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.heat-box figcaption b { color: var(--ink); font-weight: 700; }
.heat-legend { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.heat-legend svg { width: 64px; height: 11px; }
.heat-legend rect { stroke: none; }
.heat-legend .l0 { fill: var(--sunk); } .heat-legend .l1 { fill: color-mix(in srgb, var(--hl) 35%, var(--sunk)); } .heat-legend .l2 { fill: color-mix(in srgb, var(--hl) 60%, var(--sunk)); } .heat-legend .l3 { fill: color-mix(in srgb, var(--hl) 82%, var(--sunk)); } .heat-legend .l4 { fill: var(--hl); }

.capture { margin-bottom: 36px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 1px 0 rgba(0, 0, 0, .03); transition: border-color .15s, box-shadow .15s; }
.capture:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
.cap-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 0; flex-wrap: wrap; }
.cap-row select { height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sunk); color: var(--ink); font-size: 13.5px; font-weight: 500; max-width: 280px; outline: none; }
.cap-input { display: flex; align-items: flex-end; gap: 10px; padding: 6px 10px 10px 14px; }
.cap-input textarea { flex: 1; min-width: 0; border: 0; outline: none; background: none; resize: none; font-size: 16.5px; line-height: 1.5; padding: 6px 0; max-height: 200px; }
.cap-input textarea::placeholder { color: var(--ink-3); }
.home-main { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.act-list { list-style: none; margin: 0; padding: 0; }
.act-list li { --tc: var(--note); display: grid; grid-template-columns: 74px 20px minmax(0, 1fr); align-items: start; }
.act-list li.t-hata { --tc: var(--bug); }
.act-list li.t-ozellik { --tc: var(--feat); }
.act-time { font-size: 12.5px; color: var(--ink-3); text-align: right; padding: 9px 8px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.act-node { position: relative; align-self: stretch; }
.act-node::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.act-list li:first-child .act-node::before { top: 14px; }
.act-list li:last-child .act-node::before { bottom: auto; height: 14px; }
.act-node::after { content: ''; position: absolute; left: 4px; top: 11px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--tc); background: var(--paper); box-sizing: border-box; }
.act-list li.is-done .act-node::after { background: var(--tc); }
.act-body { display: flex; flex-direction: column; padding: 6px 0 12px 8px; min-width: 0; }
.act-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-list li.is-done .act-title { color: var(--ink-3); text-decoration: line-through; }
.act-where { font-size: 12.5px; color: var(--ink-3); }
.act-body:hover .act-title { text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.pcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pcard { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.pcard:hover { border-color: var(--ink-3); }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-top .i { color: var(--ink-3); }
.pc-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.pc-top .muted { font-size: 12px; white-space: nowrap; }
.pc-repo { font: 11.5px var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog { display: block; width: 100%; height: 6px; }
.prog .track { fill: var(--sunk); }
.prog .fill { fill: var(--ok); }
.pc-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); }
.pc-stats .t-hata, .pc-stats .t-ozellik { color: var(--tc); font-weight: 600; }

/* ===== v4: proje panosu ===== */
.dash { max-width: 1180px; margin: 0 auto; padding: 22px 24px 56px; }
.dash-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 24px; align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; }
.kpis div { padding: 2px 14px 2px 0; border-right: 1px solid var(--line); margin-right: 14px; }
.kpis div:last-child { border-right: 0; margin-right: 0; }
.kpis dt { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.kpis dd { margin: 2px 0 0; font: 700 28px/1.1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpis dd small { font: 600 12px var(--mono); color: var(--ok); margin-left: 6px; letter-spacing: 0; }
.kpis .t-hata dd, .kpis .t-ozellik dd { color: var(--tc); }
.spark { margin: 0; }
.spark svg { display: block; width: 100%; height: 48px; }
.spark .on { fill: var(--hl); }
.spark .off { fill: var(--line); }
.spark figcaption { font-size: 12px; color: var(--ink-3); margin-top: 4px; text-align: right; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.dash-main { min-width: 0; }
.code-panel { position: sticky; top: 16px; margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 170px); }
.cp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 8px 14px; border-bottom: 1px solid var(--line); }
.cp-head h2 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; font-weight: 700; }
.cp-info { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.cp-info p { margin: 0 0 6px; color: var(--ink-2); line-height: 1.45; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-3); }
.cp-tags span { display: inline-flex; align-items: center; gap: 4px; }
.cp-vis { color: var(--ok); font-weight: 600; }
.cp-vis.is-public { color: var(--warn); }
.cp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 8px 12px 4px; font: 12px var(--mono); }
.cp-crumbs button { color: var(--link); padding: 1px 2px; border-radius: 3px; }
.cp-crumbs button:hover { background: var(--sunk); }
.cp-crumbs i { font-style: normal; color: var(--ink-3); }
.cp-list { list-style: none; margin: 0; padding: 2px 6px 8px; overflow-y: auto; flex: 1; min-height: 120px; }
.cp-list button { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; padding: 0 8px; border-radius: 4px; text-align: left; font: 13px var(--mono); color: var(--ink); }
.cp-list button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-list button .i { color: var(--ink-3); }
.cp-list button[data-dir] .i { color: var(--link); }
.cp-list button:hover { background: var(--sunk); }
.cp-list .muted { padding: 8px; font-size: 13px; }
.cp-commits { border-top: 1px solid var(--line); padding: 10px 14px 12px; }
.cp-commits h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.cp-commits ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cp-commits a { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 3px 0; font-size: 13px; }
.cp-commits a:hover .cm { text-decoration: underline; }
.cp-commits .cm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-commits .nb { font: 600 10.5px var(--mono); padding: 0 6px; border-radius: 9px; background: var(--hl); color: var(--hl-ink); }
.cp-empty { padding: 16px 14px; }
.cp-empty p { margin: 0 0 10px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.code-dlg { width: min(1000px, calc(100% - 24px)); height: min(80vh, 900px); padding: 0; }
.code-dlg[open] { display: flex; flex-direction: column; }
.code-head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); }
.code-path { flex: 1; min-width: 0; font: 500 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-body { flex: 1; overflow: auto; background: var(--paper); }
.code-body .pad { padding: 20px; }
.code-view { margin: 0; padding: 10px 0; font: 12.5px/1.6 var(--mono); counter-reset: ln; min-width: max-content; }
.code-view .cl { display: block; padding-right: 20px; white-space: pre; }
.code-view .cl::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 52px; padding-right: 14px; margin-right: 12px; text-align: right; color: var(--ink-3); border-right: 1px solid var(--line); user-select: none; }
.code-view .cl:hover { background: var(--hl-soft); }

/* ===== v4: hesap ===== */
.ok-box { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.ok-box .i { color: var(--ok); margin-top: 2px; }
.ok-box p, .warn-box p { margin: 0; }
.set-body .warn-box { margin: 0 0 18px; }
.choice.five { grid-template-columns: repeat(5, 1fr); }
.ch-photo { display: flex; align-items: center; justify-content: center; color: var(--ink-3); background-image: var(--user-bg, none); background-size: cover; background-position: center; }
.choice label.is-empty { cursor: not-allowed; opacity: .6; }
.bg-actions { margin: 14px 0 6px; }
.dim-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.dim-row .seg { flex: 1; min-width: 240px; }
.blocks { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.blocks li { display: flex; align-items: center; gap: 14px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.blocks li .mono { flex: 1; }
.tag.off { background: var(--sunk); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.gh-test { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.gt-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; font-size: 13.5px; }
.gt-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.gt-head b { color: var(--ink); }
.gt-list { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--line); }
.gt-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gt-list small { grid-column: 2 / -1; font: 11.5px var(--mono); color: var(--ink-3); }
.gt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.gt-ok .gt-dot { background: var(--ok); }
.gt-write .gt-dot { background: color-mix(in srgb, var(--ok) 55%, var(--warn)); }
.gt-missing .gt-dot { background: var(--bug); }
.gt-l { font-weight: 600; font-size: 14px; }
.gt-s { font-size: 12.5px; color: var(--ink-2); text-align: right; }
.gt-missing .gt-s { color: var(--bug); font-weight: 600; }
.gt-ok .gt-s { color: var(--ok); font-weight: 600; }
.gt-bad { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--bug); font-weight: 600; }
.copyable { user-select: all; word-break: break-all; white-space: normal; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-note { margin: 0; padding: 10px 12px; border-radius: var(--r); background: var(--hl-soft); font-size: 14px; }

@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .code-panel { position: static; max-height: 520px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .kpis div:nth-child(3n) { border-right: 0; margin-right: 0; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
  .choice.five { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .heat { width: 100%; }
  .dash { padding: 16px 14px 40px; }
  .kpis dd { font-size: 23px; }
  .act-list li { grid-template-columns: 54px 20px minmax(0, 1fr); }
  .logins li { grid-template-columns: 1fr auto 28px; }
  .code-dlg { height: 88vh; }
  .att-file a { max-width: 100%; }
}

/* ===== v4.1: iki adımlı doğrulama, çöp kutusu, sistem ===== */
.code-input { font: 600 22px var(--mono) !important; letter-spacing: .25em; text-align: center; height: 52px !important; }
.auth-alt-form { margin-top: 14px; max-width: 380px; }
.twofa-setup { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-top: 12px; }
.qr { width: 180px; height: 180px; padding: 8px; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.qr svg { display: block; width: 100%; height: 100%; }
.secret { font: 500 13px var(--mono); word-break: break-all; padding: 8px 10px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); user-select: all; }
.rcodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 12px 0; padding: 14px 16px; background: var(--sunk); border: 1px dashed var(--line-2); border-radius: 8px; font: 500 15px var(--mono); list-style: none; }
.state-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.state-on { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ok); }
.state-off { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--warn); }
.trash-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.trash-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.trash-list .tl-main { display: flex; flex-direction: column; min-width: 0; }
.trash-list .tl-main b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trash-list .tl-main small { color: var(--ink-3); font-size: 12.5px; }
.sys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sys-grid div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sys-grid div:nth-child(3n) { border-right: 0; }
.sys-grid dt { font-size: 12px; color: var(--ink-3); }
.sys-grid dd { margin: 2px 0 0; font: 600 15px var(--mono); }
.disk-bar { display: block; width: 100%; height: 6px; margin-top: 6px; }
.disk-bar .track { fill: var(--sunk); } .disk-bar .fill { fill: var(--ok); } .disk-bar .fill.is-warn { fill: var(--warn); } .disk-bar .fill.is-bad { fill: var(--bug); }
@media (max-width: 640px) {
  .twofa-setup { grid-template-columns: 1fr; justify-items: start; }
  .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-grid div:nth-child(3n) { border-right: 1px solid var(--line); }
  .sys-grid div:nth-child(2n) { border-right: 0; }
  .trash-list li { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .trash-list li > :last-child { grid-column: 2 / -1; justify-self: start; }
}
.row-gap.mt { margin-top: 12px; }
.nav-item span:first-of-type { flex: 1; }
.nav-count { font: 500 11.5px var(--mono); color: var(--ink-3); }

/* ===== Yapay zeka promptu ===== */
.ai-dlg { width: min(760px, calc(100% - 20px)); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.ai-dlg form { gap: 12px; }
.ai-head { display: grid; gap: 4px; }
.ai-head .dlg-text { font-size: 13.5px; overflow-wrap: anywhere; }
.ai-opts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 10px 12px; align-items: end; }
.ai-checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ai-checks .check { font-size: 13px; color: var(--ink-2); }
.ai-text { width: 100%; min-height: 240px; max-height: 46dvh; resize: vertical; padding: 12px 14px; background: var(--sunk); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); font: 12.5px/1.55 var(--mono); outline: none; tab-size: 2; }
.ai-text:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
.ai-text.is-loading { opacity: .55; }
.ai-warn { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.ai-warn li { display: flex; gap: 6px; align-items: flex-start; }
.ai-warn svg { flex: none; margin-top: 2px; color: var(--warn); }
.ai-out { display: grid; gap: 10px; }
.ai-conv { display: grid; gap: 10px; }
.ai-turn { border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 14px 12px; background: var(--surface); }
.ai-turn.is-user { justify-self: end; max-width: 85%; background: var(--sunk); border-color: var(--line); padding: 8px 12px; }
.ai-turn.is-user .e-text { margin: 0; }
.ai-turn header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ai-turn header b { font: 600 11.5px var(--mono); color: var(--ink-3); }
.ai-turn-act { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
.ai-wait { margin: 0; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.ai-wait::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink-3); border-right-color: transparent; animation: spin .7s linear infinite; }
.ai-follow { display: flex; gap: 8px; align-items: flex-end; }
.ai-follow textarea { flex: 1; min-width: 0; resize: vertical; min-height: 40px; max-height: 30dvh; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.ai-follow textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
.ai-key-pick { height: 36px; max-width: 220px; padding: 0 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); font-size: 13px; }
.ai-md { max-width: none; }
.e-text .md-h { margin: .8em 0 .3em; font-size: 1em; font-weight: 700; }
.e-text .md-h:first-child { margin-top: 0; }
.ai-actions { flex-wrap: wrap; align-items: center; position: sticky; bottom: -22px; margin: 0 -22px -22px; padding: 12px 22px 22px; background: var(--surface); border-top: 1px solid var(--line); z-index: 1; }
.ai-count { margin-right: auto; font: 11.5px var(--mono); color: var(--ink-3); }
@media (max-width: 560px) {
  .ai-opts { grid-template-columns: 1fr; }
  .ai-text { min-height: 200px; font-size: 12px; }
  .ai-count { width: 100%; }
  .ai-actions .btn { flex: 1 1 auto; }
  .ai-key-pick { max-width: none; flex: 1 1 100%; }
  .ai-turn.is-user { max-width: 100%; }
}
.sect > .muted.mt { margin-top: 14px; }

/* ===== Yapay zeka bağlantıları ===== */
.ai-keys { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ai-key { border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 10px; background: var(--surface); }
.ai-key.is-active { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.ak-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-width: 0; }
.ak-main .muted { font: 12px var(--mono); overflow-wrap: anywhere; }
.ak-prov { font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 3px; background: var(--sunk); border: 1px solid var(--line); color: var(--ink-2); }
.ak-on { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ok); }
.ak-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ak-model { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; min-width: 0; font-size: 12.5px; color: var(--ink-3); }
.ak-model select { flex: 1; min-width: 0; height: 32px; padding: 0 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); font: 12.5px var(--mono); }
.ak-result { margin: 0; font-size: 12.5px; }
.ak-result.is-ok { color: var(--ok); }
.ak-result.is-bad { color: var(--bug); }
.ai-empty { margin: 12px 0 0; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-3); font-size: 13.5px; }
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 16px; }
.prov { position: relative; display: grid; gap: 3px; padding: 11px 12px 11px 36px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; background: var(--surface); }
.prov:hover { border-color: var(--ink-3); }
.prov input { position: absolute; left: 12px; top: 13px; width: 15px; height: 15px; accent-color: var(--ink); margin: 0; }
.prov:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
.prov-name { font-weight: 700; font-size: 14px; }
.prov-note { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.ai-add-fields { max-width: 520px; }
.field .key-link { float: right; font-size: 12px; font-weight: 500; color: var(--link); }
.field .key-link[hidden] { display: none; }
.field small.hint { font-weight: 400; }

/* ===== Durum, son tarih, yapılacaklar ===== */
.e-wip { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--link); }
.wip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.due { display: inline-flex; align-items: center; gap: 4px; font: 500 11.5px var(--mono); padding: 0 6px; line-height: 18px; border-radius: 3px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.due.d-soon { color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 55%, transparent); }
.due.d-late { color: var(--on-bug); background: var(--bug); box-shadow: none; }
.due.d-done { color: var(--ink-3); text-decoration: line-through; }
.cl-prog { display: inline-flex; align-items: center; gap: 3px; font: 500 11.5px var(--mono); color: var(--ink-3); }
.cl-prog.is-full { color: var(--ok); }
.e-text .ul, .e-text .cl { margin: .3em 0 .5em; padding: 0; list-style: none; }
.e-text .ul li { position: relative; padding-left: 16px; }
.e-text .ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.cl-i { display: flex; align-items: flex-start; gap: 9px; padding: 2px 0; }
.cl-i > span { flex: 1; min-width: 0; }
.cl-i.is-done > span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.cb { flex: none; width: 17px; height: 17px; margin-top: .22em; border-radius: 4px; border: 1.5px solid var(--ink-3); background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cb:hover { border-color: var(--ink); }
.cb[aria-checked="true"] { background: var(--ok); border-color: var(--ok); }
.cb[aria-checked="true"]::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.cb:disabled { opacity: .6; cursor: progress; }
.ai-md .cb, .dlg .cb { pointer-events: none; }
.date-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.date-quick:empty { display: none; }

/* ===== Görünüm seçici ve pano ===== */
.view-sw { margin-left: auto; display: flex; align-items: center; gap: 2px; padding-left: 12px; }
.vbtn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: var(--r); font-size: 13px; font-weight: 500; color: var(--ink-3); }
.vbtn:hover { color: var(--ink); background: var(--hover); }
.vbtn.is-on { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.board { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; padding: 18px 20px 24px; overflow: auto; background-color: var(--paper); background-image: var(--pat); background-size: var(--pat-size); }
.board[hidden], .thread[hidden] { display: none; }
.bcol { display: flex; flex-direction: column; min-height: 0; background: color-mix(in srgb, var(--sunk) 70%, transparent); border: 1px solid var(--line); border-radius: 8px; transition: border-color .12s, background .12s; }
.bcol.is-over { border-color: var(--ink); background: var(--hl-soft); }
.bcol header { display: flex; align-items: center; gap: 8px; padding: 11px 14px 8px; }
.bcol h2 { margin: 0; font-size: 13.5px; font-weight: 700; }
.bcol header span { font: 500 11.5px var(--mono); color: var(--ink-3); }
.bcol[data-col="devam"] h2::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--link); margin-right: 7px; vertical-align: 1px; }
.bcol[data-col="tamam"] h2::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 7px; vertical-align: 1px; }
.bcards { flex: 1; overflow-y: auto; padding: 4px 10px 12px; display: grid; align-content: start; gap: 8px; min-height: 80px; }
.bcard { background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--tc, var(--ink-3)); border-radius: 6px; padding: 9px 11px 10px; cursor: grab; display: grid; gap: 6px; }
.bcard.t-hata { --tc: var(--bug); }
.bcard.t-ozellik { --tc: var(--feat); }
.bcard:hover { box-shadow: var(--shadow); }
.bcard:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bcard.is-drag { opacity: .45; }
.bcard p { margin: 0; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.btype { font-size: 12px; font-weight: 700; color: var(--tc); }
.bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; font-size: 12px; }
.bpath { font: 11.5px var(--mono); color: var(--ink-3); }
.bcol[data-col="tamam"] .bcard p { color: var(--ink-3); }
.bempty { margin: 0; padding: 18px 8px; text-align: center; font-size: 12.5px; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 6px; }
@media (max-width: 760px) {
  .board { grid-template-columns: repeat(3, 82%); scroll-snap-type: x mandatory; padding: 14px 12px 18px; gap: 10px; }
  .bcol { scroll-snap-align: start; }
  .vbtn span { display: none; }
}

/* ===== Ana sayfa: tarihi yaklaşanlar ===== */
.upcoming { margin-bottom: 28px; }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.up-list a { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: inherit; }
.up-list a:hover { border-color: var(--ink-3); }
.up-date { flex: none; width: 92px; display: grid; gap: 1px; padding-right: 12px; border-right: 1px solid var(--line); }
.up-date b { font-size: 13.5px; }
.up-date small { font: 11px var(--mono); color: var(--ink-3); }
.up-date.d-late b, .up-date.d-late small { color: var(--bug); }
.up-date.d-soon small { color: var(--warn); }
.up-body { display: grid; gap: 2px; min-width: 0; }
.up-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-where { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== API anahtarları ===== */
.tokens { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 8px; }
.tokens li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.tokens li.is-expired { opacity: .6; }
.tokens li > .btn { grid-row: 1 / span 2; grid-column: 2; }
.tk-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12px; }
.tk-scope { font: 500 11px var(--mono); padding: 1px 6px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.tk-scope.s-write { color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 50%, transparent); }
.mt-form { margin-top: 16px; max-width: 560px; }
.row-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.code-ex { margin: 10px 0 16px; padding: 12px 14px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; font: 12px/1.6 var(--mono); }
.code-ex code { background: none; border: 0; padding: 0; white-space: pre; font-size: inherit; }
.api-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 10px; }
.api-table td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.api-table td:first-child { white-space: nowrap; width: 1%; }
.api-table code { white-space: nowrap; }
.token-out { display: block; padding: 12px; font-size: 13px; white-space: normal; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 600px) {
  .row-fields { grid-template-columns: 1fr 1fr; }
  .row-fields .field:first-child { grid-column: 1 / -1; }
  .api-table td:first-child { white-space: normal; }
  .api-table, .api-table tbody, .api-table tr, .api-table td { display: block; width: auto; }
  .api-table td { border: 0; padding: 2px 0; }
  .api-table tr { border-top: 1px solid var(--line); padding: 8px 0; }
}
.view-sw { position: sticky; right: 0; background: var(--paper); box-shadow: -12px 0 12px -4px var(--paper); }

/* ===== Sade görünüm: ileri düzey araçlar gizli ===== */
[data-simple="1"] .e-gutter .hash,
[data-simple="1"] #ccommit,
[data-simple="1"] #cprio,
[data-simple="1"] .bar [data-act="history"],
[data-simple="1"] .repo-link,
[data-simple="1"] .e-edited,
[data-simple="1"] .chint { display: none !important; }

/* ===== Ayarlar: gruplar, genel bakış ===== */
.stabs-g { margin: 14px 10px 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.dot.is-warn { background: var(--warn); }
.ov-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ov-id { display: grid; gap: 2px; flex: 1; min-width: 180px; }
.ov-id strong { font-size: 18px; }
.health-bar { width: 100%; height: 6px; margin: 0 0 14px; display: block; }
.health-bar .track { fill: var(--sunk); }
.health-bar .fill { fill: var(--ok); }
.health { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.health li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.health li:last-child { border-bottom: 0; }
.health li > div { display: grid; gap: 1px; flex: 1; min-width: 0; }
.health li .muted { font-size: 13px; }
.h-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.health .is-ok .h-mark { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.health .is-todo .h-mark { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.audit { list-style: none; margin: 0; padding: 0; display: grid; }
.audit li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.audit li:last-child { border-bottom: 0; }
.a-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); align-self: center; }
.audit .a-login_fail .a-dot, .audit .a-recovery_used .a-dot, .audit .a-token_new .a-dot { background: var(--warn); }
.audit .a-vault_on .a-dot, .audit .a-twofa_on .a-dot { background: var(--ok); }
.a-when { font-size: 12px; white-space: nowrap; }
.choice.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ch-card.ch-text { display: grid; gap: 4px; padding: 12px 14px; text-align: left; }
.ch-card.ch-text .muted { font-size: 12.5px; line-height: 1.45; }
.row-fields.two { grid-template-columns: 1fr 1fr; }
.switch.sm { margin-left: auto; align-items: center; }
.switch.sm .switch-ui { margin-top: 0; }
.switch.sm strong { font-size: 13px; font-weight: 500; }
.sect.wide, .set-body .sect.wide { max-width: none; }

/* Yedek listesi */
.bk-list { list-style: none; margin: 0; padding: 0; display: grid; }
.bk-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bk-list li:last-child { border-bottom: 0; }
.bk-ic { color: var(--ink-3); flex: none; }
.bk-main { display: grid; gap: 1px; flex: 1; min-width: 0; }
.bk-main > a { font-weight: 600; color: var(--ink); }
.bk-main .muted { font-size: 12.5px; overflow-wrap: anywhere; }
.bk-main .muted a { color: var(--link); }
.bk-list li.is-bad .muted { color: var(--bug); }

/* Dışa aktarma seçimi */
.pick-tree { border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 14px; max-height: 340px; overflow-y: auto; background: var(--surface); display: grid; gap: 6px; }
.pick-all { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pick-f { display: grid; gap: 4px; }
.pick-f .check span { display: inline-flex; align-items: center; gap: 6px; }
.pick-fh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.pick-c { display: grid; gap: 3px; padding-left: 24px; }
.pick-c .check { font-size: 13.5px; }
.pick-c .muted { font-size: 12px; }

/* İçe aktarma */
.imp-tabs { margin-bottom: 14px; }
.drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border: 1.5px dashed var(--line-2); border-radius: 8px; background: var(--surface); cursor: pointer; text-align: center; color: var(--ink-2); }
.drop:hover, .drop.is-over { border-color: var(--ink); background: var(--hl-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop > span { display: inline-flex; align-items: center; gap: 8px; }
.drop small { font: 12px var(--mono); color: var(--ink-3); }
.imp-preview { display: grid; gap: 14px; border: 1px solid var(--line-2); border-radius: 8px; padding: 16px; background: var(--surface); }
.imp-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.imp-preview .pick-tree { max-height: 300px; }
.wa-senders { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Sağlayıcı deneme */
.probe { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.probe-out { font-size: 12.5px; color: var(--ink-3); }
.probe-out.is-ok, .ai-test-out.is-ok { color: var(--ok); }
.probe-out.is-bad, .ai-test-out.is-bad { color: var(--bug); }
.ai-test-out { margin: 0; font-size: 13px; }
.rk-out { font-size: 17px; letter-spacing: .06em; text-align: center; }

/* Yardım */
.help-dlg h3 { margin: 6px 0 0; font-size: 14px; }
.help-terms { margin: 0; display: grid; gap: 10px; }
.help-terms div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.help-terms dt { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.help-terms dd { margin: 0; color: var(--ink-2); line-height: 1.5; font-size: 14px; }
.help-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* Tanıtım turu */
.tour-ring { position: fixed; z-index: 90; border-radius: 10px; box-shadow: 0 0 0 9999px color-mix(in srgb, #000 45%, transparent), 0 0 0 2px var(--hl); pointer-events: none; transition: all .2s ease; }
.tour-card { position: fixed; z-index: 91; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.tour-card h3 { margin: 0; font-size: 15px; }
.tour-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tour-step { font-size: 12px !important; color: var(--ink-3) !important; }
.tour-act { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.tour-act [data-t="skip"] { margin-right: auto; }
@media (prefers-reduced-motion: reduce) { .tour-ring { transition: none; } }
@media (max-width: 600px) {
  .choice.two, .row-fields.two { grid-template-columns: 1fr; }
  .help-terms div { grid-template-columns: 1fr; gap: 2px; }
  .audit li { grid-template-columns: 10px minmax(0, 1fr); }
  .a-when { grid-column: 2; }
}
@media (max-width: 900px) { .stabs-g { display: none; } }
.notice-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin-bottom: 22px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.notice-bar > .i { flex: none; color: var(--ink-2); }
.notice-bar p { margin: 0; flex: 1; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.notice-bar p b { color: var(--ink); }
.notice-bar.is-warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.notice-bar.is-warn > .i { color: var(--warn); }
@media (max-width: 600px) { .notice-bar { flex-wrap: wrap; } .notice-bar .btn { margin-left: 28px; } }
[data-simple="1"] #csave { margin-left: auto; }

/* ===== Paylaşım (v7) ===== */
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.avatar.xs { width: 20px; height: 20px; font-size: 10.5px; }
.ctx hr:first-child, .ctx hr:last-child, .ctx hr + hr { display: none; }
.role-pill { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px 1px 7px; white-space: nowrap; }
.share-btn { gap: 6px; margin-right: 4px; }
.share-n { font-size: 11.5px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hl); color: var(--hl-ink); display: inline-flex; align-items: center; justify-content: center; }
.presence { display: flex; align-items: center; margin-right: 8px; }
.presence .pres { display: flex; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper); position: relative; }
.presence .pres:first-child { margin-left: 0; }
.presence .pres::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 7px; height: 7px; border-radius: 50%; background: #2ea36b; box-shadow: 0 0 0 2px var(--paper); }
.presence[hidden] { display: none; }
.pres-more { font-size: 11.5px; color: var(--ink-3); margin-left: 5px; }

.e-author { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.e-author.is-me { color: var(--ink-2); font-weight: 500; }

.ro-note { max-width: 792px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); background: var(--sunk); border: 1px dashed var(--line-2); border-radius: var(--r); }
.cbox[hidden] { display: none; }

.share-dlg { width: min(560px, calc(100% - 20px)); max-height: min(720px, calc(100dvh - 32px)); display: none; }
.share-dlg[open] { display: flex; flex-direction: column; }
.share-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 6px 22px; }
.share-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.share-dlg .dtabs { padding: 0 22px; }
.share-body { padding: 16px 22px 22px; overflow-y: auto; min-height: 0; flex: 1; }
.share-intro { margin: -6px 0 16px; max-width: 620px; line-height: 1.55; font-size: 13.5px; }

.members { display: grid; gap: 12px; max-width: 640px; }
.m-add { display: grid; grid-template-columns: 1fr 150px auto; gap: 10px; align-items: end; }
.m-add .btn { height: 38px; }
.m-lock { display: flex; gap: 7px; align-items: flex-start; }
.m-lock .i { flex: none; margin-top: 2px; }
.m-h { margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.m-h small { font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.mlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.mlist.is-quiet { background: transparent; }
.mrow { display: flex; align-items: center; gap: 11px; padding: 10px 12px; }
.mrow + .mrow, .mchat + .mchat { border-top: 1px solid var(--line); }
.m-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.m-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-who small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.m-badges:empty { display: none; }
.m-badges span { font-size: 10.5px; font-weight: 600; padding: 0 6px; border-radius: 3px; line-height: 17px; }
.m-you { background: var(--sunk); color: var(--ink-2); }
.m-on { background: color-mix(in srgb, #2ea36b 20%, transparent); color: var(--ink); }
.m-pend { background: var(--hl-soft); color: var(--ink); cursor: help; }
.m-act { display: flex; align-items: center; gap: 4px; flex: none; }
.m-act select { height: 32px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 13px; }
.m-role { font-size: 12.5px; color: var(--ink-3); padding: 0 6px; }
.m-empty { margin: -4px 0 0; font-size: 13px; }
.m-sugg .mlist { margin-top: 8px; }
.mchat { display: flex; gap: 10px; padding: 9px 12px; font-size: 13px; align-items: baseline; flex-wrap: wrap; }
.mchat a { font-weight: 600; }
.mchat span { color: var(--ink-3); }

.alog-list { list-style: none; margin: 0; padding: 6px 0; }
.drawer .alog-list { padding: 8px 12px 16px; }
.drawer [data-dpanel="activity"]:not([hidden]) { flex: 1; min-height: 0; overflow-y: auto; }
.alog { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 8px 6px; border-radius: 4px; }
.alog + .alog { border-top: 1px solid var(--line); }
.alog .avatar { margin-top: 1px; }
.alog-b p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.alog-b b { color: var(--ink); }
.alog-d { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; overflow-wrap: anywhere; }
.alog-where { font-weight: 600; color: var(--ink); }
.alog time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; padding-top: 2px; }
.alog.a-visit .alog-b p { color: var(--ink-3); }
.alog.a-note_delete .alog-b p, .alog.a-member_remove .alog-b p, .alog.a-chat_delete .alog-b p { color: var(--bug); }
.alog-more { margin: 4px 0 0 6px; }

.tree-shared { margin-top: 14px; }
.fold.is-shared .fold-link { font-weight: 500; }
.fold-owner { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--ink-3); padding-right: 8px; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
  .m-add { grid-template-columns: 1fr auto; }
  .m-add .field:first-child { grid-column: 1 / -1; }
  .share-body { padding: 14px 16px 18px; }
  .share-head { padding-left: 16px; }
  .share-dlg .dtabs { padding: 0 16px; }
  .presence .pres:nth-child(n+3) { display: none; }
  .role-pill { display: none; }
}

.share-dlg .m-add { padding: 0; }

/* ===== Ekip iş akışı (v8) ===== */
.nav-count.is-hot { background: var(--hl); color: var(--hl-ink); font-weight: 700; margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.nav-count[hidden] { display: none; }
.mention.is-user { font-family: inherit; font-weight: 600; color: var(--ink); background: var(--hl-soft); border-radius: 3px; padding: 0 3px; border: 0; }
.assignee { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px 0 6px; line-height: 19px; }
.assignee.is-me { background: var(--hl-soft); border-color: transparent; color: var(--ink); }

.e-social { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.rx { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); cursor: pointer; }
.rx b { font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.rx:hover { border-color: var(--line-2); color: var(--ink); }
.rx.is-mine { border-color: color-mix(in srgb, var(--hl) 70%, var(--line-2)); background: var(--hl-soft); color: var(--ink); }
.rx-thread[aria-expanded="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.thread-box { margin-top: 10px; border-left: 2px solid var(--line-2); padding: 2px 0 2px 14px; display: grid; gap: 8px; }
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cm { display: grid; grid-template-columns: 20px 1fr; gap: 9px; }
.cm .avatar { margin-top: 2px; }
.cm-h { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.cm-h time { font-size: 11.5px; color: var(--ink-3); }
.cm-h .link-btn { font-size: 11.5px; color: var(--ink-3); padding: 0; }
.cm-h .link-btn:hover { color: var(--ink); }
.cm-text { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; margin-top: 1px; }
.cm-text a { color: var(--link); }
.cm-empty { font-size: 13px; }
.cm-form { display: flex; gap: 8px; align-items: flex-end; }
.cm-form[hidden] { display: none; }
.cm-form textarea, .cm-edit { flex: 1; min-height: 36px; max-height: 200px; resize: none; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.45; outline: none; }
.cm-edit { width: 100%; min-height: 70px; resize: vertical; }
.cm-form textarea:focus, .cm-edit:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
.sg-ic.is-person { color: var(--ink); }

.inbox { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ib + .ib { border-top: 1px solid var(--line); }
.ib a { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; padding: 13px 14px; color: inherit; position: relative; }
.ib a:hover { background: var(--hover); }
.ib.is-unread a::before { content: ''; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--hl); box-shadow: 0 0 0 1px color-mix(in srgb, var(--hl-ink) 30%, transparent); }
.ib-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ib-line { font-size: 14px; color: var(--ink-2); }
.ib-line b { color: var(--ink); }
.ib.is-unread .ib-line { color: var(--ink); }
.ib-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-snip { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-where { font-size: 12px; color: var(--ink-3); }
.ib time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.inbox-empty p { line-height: 1.6; }
.e-text .mention.is-user, .cm-text .mention.is-user { font: inherit; font-weight: 600; color: var(--ink); }
.spark.wide { margin: 0 0 18px; }
.sub-h { margin: 16px 0 8px; font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.tag.danger-tag { background: var(--bug); color: var(--on-bug); }
.health-bar .fill.is-bad { fill: var(--bug); }
.invite-card { max-width: 520px; }
.invite-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--hl); color: var(--hl-ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.invite-card form { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.m-inv { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 0; }
.m-inv summary { cursor: pointer; padding: 9px 12px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; list-style: none; }
.m-inv summary::-webkit-details-marker { display: none; }
.m-inv[open] summary { border-bottom: 1px dashed var(--line-2); }
.m-inv-b { padding: 10px 12px 12px; display: grid; gap: 10px; }
.m-inv-row { display: flex; flex-wrap: wrap; gap: 6px; }
.m-inv-row select { height: 32px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 13px; }
.m-inv-out { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.m-inv-out:empty { display: none; }
.m-inv-out input { flex: 1; min-width: 0; height: 32px; padding: 0 9px; font: 12px var(--mono); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sunk); color: var(--ink); }
.m-inv-out .hint { flex-basis: 100%; }
.m-inv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.m-inv-list:empty { display: none; }
.m-inv-list li { display: flex; justify-content: space-between; gap: 8px; }

/* ===== Herkese açık anlık görüntü ===== */
.snap-body { background: var(--paper); min-height: 100vh; overflow: auto; }
.snap { max-width: 820px; margin: 0 auto; padding: 18px 16px 60px; }
.snap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 22px; }
.snap-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.snap-status { padding: 40px 0; text-align: center; color: var(--ink-3); }
.snap-status.is-err { color: var(--bug); font-weight: 600; }
.snap-title h1 { margin: 2px 0 4px; font-size: 26px; letter-spacing: -.02em; }
.snap-crumb { margin: 0; color: var(--ink-3); font-size: 13px; }
.snap-tabs { padding: 0; margin: 16px 0 8px; background: transparent; }
.snap-list { list-style: none; margin: 0; padding: 0; }
.snap-n { --tc: var(--note); display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.snap-n.t-hata { --tc: var(--bug); } .snap-n.t-ozellik { --tc: var(--feat); }
.snap-n time { font: 12px var(--mono); color: var(--ink-3); padding-top: 3px; }
.snap-n.is-done .e-text { color: var(--ink-3); }
.snap-att { margin: 6px 0 0; font-size: 12px; }
@media (max-width: 640px) { .snap-n { grid-template-columns: 1fr; gap: 4px; } }
.wh-form { display: grid; gap: 10px; margin: 12px 0; max-width: 640px; }
.wh-form input[type="url"] { height: 38px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 14px; }
.wh-form .btn { justify-self: start; }
.wh-evs { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ok-txt { color: #2ea36b; } .bad-txt { color: var(--bug); }
.entry.is-pending { opacity: .7; }
.entry.is-pending .node { border-style: dashed; }
.e-wait { font-size: 12px; color: var(--ink-3); font-style: italic; }
.older { display: flex; justify-content: center; padding: 6px 0 14px; }
.snap .cb { pointer-events: none; }

/* ===== v9: mobil düzeltmeler ===== */
.cfoot .save { margin-left: auto; }
@media (max-width: 640px) {
  #cat { margin-right: 0; }
  /* Başlık: klasör adı üstte küçük satır, sohbet adı altta. İkisi de kesilmeden tam genişliği kullanır. */
  .bar .crumbs.is-chat { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
  .bar .crumbs .crumb { max-width: 100%; font-size: 12px; gap: 5px; color: var(--ink-3); }
  .bar .crumbs .crumb svg { width: 12px; height: 12px; }
  .bar .crumbs .crumb-sep { display: none; }
  .bar .crumbs .crumb-here { max-width: 100%; font-size: 16px; line-height: 1.25; }
  .bar .crumbs .role-pill { display: none; }
  .bar { gap: 8px; }
  /* Sekme satırı: görünüm düğmesi sağ kenara yapışık, arkasındaki sekme yazısı görünmez */
  .tabs { padding-right: 0; }
  .view-sw { padding-right: 8px; box-shadow: -14px 0 10px -2px var(--paper); }
}
/* Dokunmatik ekran: iOS odaklanınca yakınlaştırmasın, dokunma alanları en az ~40 px olsun */
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { font-size: max(16px, 1em) !important; }
  .ibtn { width: 40px; height: 40px; }
  .ibtn.sm { width: 32px; height: 32px; position: relative; }
  .ibtn.sm::after, .cb::before, .node::before, .vbtn::after, .rx::after { content: ''; position: absolute; inset: -6px; }
  .cb, .vbtn, .rx { position: relative; }
  .node { position: relative; }
  .cb { width: 20px; height: 20px; }
  .vbtn { height: 34px; }
  .tab { height: 44px; }
  .btn.sm { min-height: 36px; }
  .e-tools [data-e="react-pick"], .e-tools [data-e="thread"] { display: none; }
}
@media (pointer: coarse) {
  .nav-item, .fold-link, .fold-toggle { height: 40px; }
  .pitem > a { height: 38px; }
  .padd button { height: 36px; }
  .pins a { padding: 7px 0; }
  .cap-row select { height: 36px; }
  .btn.ghost.sm { min-height: 36px; }
  .key-link { display: inline-block; padding: 6px 2px; margin: -6px 0; }
}

.cm-form textarea { min-width: 0; }
.cm-form .btn { flex: none; }
@media (hover: none) { .side-search kbd { display: none; } }
.kb-open .app { height: var(--vvh, 100dvh); }
.kb-open #tabs { display: none; }
/* Yatay telefon gibi kısa ekranlar: başlık, sekmeler ve yazma kutusu sıkışır, kayıtlara yer kalır */
@media (max-height: 520px) {
  .bar { min-height: 46px; padding-top: 4px; padding-bottom: 4px; }
  .tab { height: 36px; }
  .cbox:not(:focus-within) .ctabs { display: none; }
  .cbox textarea { min-height: 40px; max-height: 96px; padding-top: 8px; }
  .cfoot { padding-bottom: 4px; }
  .composer { padding-top: 6px; }
  .kb-open .bar { display: none; }
}
.thread-box { grid-template-columns: minmax(0, 1fr); min-width: 0; }

/* ===== v9: tek dokunuşla başla ===== */
.qstart { max-width: 720px; margin: 4px 0 18px; }
.qstart h2 { margin: 0 0 4px; font-size: 18px; }
.qstart > p.muted { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.qstart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.qstart-c { display: grid; gap: 4px; text-align: left; padding: 14px 16px; min-height: 64px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.qstart-c:hover { border-color: var(--ink); }
.qstart-c b { font-size: 15px; }
.qstart-c small { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.qstart-c.is-busy { opacity: .6; cursor: progress; }
.qstart-c:disabled:not(.is-busy) { opacity: .5; }
.qstart-or { margin: 22px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 640px) { .qstart-grid { grid-template-columns: 1fr 1fr; } .qstart-c { padding: 12px; } }

.cchip.is-hint { border-style: dashed; background: transparent; }
.cchip .hint-go { padding: 0; font: inherit; color: inherit; text-align: left; }
.cchip .hint-go b { font-weight: 600; }
@media (pointer: coarse) { .cchip .hint-go { min-height: 32px; } }
.cchip.is-hint { height: auto; min-height: 26px; }
.cchip .hint-go b { font-family: inherit; font-size: inherit; }
.cchip .hint-go { width: auto; height: auto; border-radius: 0; display: inline; color: var(--ink-2); white-space: normal; line-height: 1.35; padding: 3px 0; }
.cchip .hint-go:hover { background: none; color: var(--ink); text-decoration: underline; }

.help-note { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
.help-cmds { margin: 0 0 6px; display: grid; gap: 0; }
.help-cmds div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.help-cmds dt { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-start; }
.help-cmds dd { margin: 0; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 560px) { .help-cmds div { grid-template-columns: 1fr; } }

/* ===== v9.1: Bugün ===== */
.today-lead { margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.td-sect { margin-bottom: 26px; }
.td-late .sect-h h2 { color: var(--bug); }
.td-list .node.is-note { border-color: var(--line-2); background: var(--sunk); }
.td-mine { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 600; }
.td-list .ow-meta, .ow .ow-meta { flex-wrap: wrap; align-items: center; row-gap: 4px; }
.ow-meta > .due, .ow-meta > .prio, .ow-meta > .e-type, .ow-meta > .e-wip, .ow-meta > .td-mine { white-space: nowrap; flex: none; }
.td-sect.sect { padding-bottom: 0; border-bottom: 0; margin-bottom: 22px; }

/* ===== v9.1: etiketler ===== */
.e-text .tag { display: inline; padding: 0 3px; margin: 0 -1px; border-radius: 3px; font: inherit; font-weight: 600; color: var(--link); background: color-mix(in srgb, var(--link) 9%, transparent); cursor: pointer; }
.e-text .tag:hover { background: color-mix(in srgb, var(--link) 18%, transparent); }
.snap-body .tag { cursor: default; }

/* ===== v9.1: toplu seçim ===== */
.selbar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); flex: none; }
.selbar[hidden] { display: none; }
.sel-n { margin-right: auto; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.sel-n b { color: var(--ink); }
.is-selecting .entry { cursor: pointer; user-select: none; -webkit-user-select: none; }
.is-selecting .entry::before { content: ''; position: absolute; left: 4px; top: 14px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ink-3); background: var(--surface); z-index: 2; }
.is-selecting .entry.is-sel::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--surface); }
.is-selecting .entry.is-sel { background: color-mix(in srgb, var(--hl) 14%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--hl) 60%, transparent); }
.is-selecting .e-tools { display: none; }
.is-selecting .e-gutter time { visibility: hidden; }
@media (max-width: 380px) { .hide-xs { display: none; } }
.is-selecting .entry { -webkit-tap-highlight-color: transparent; }
/* ===== v9.1: arşiv ===== */
.tree-archive { display: flex; align-items: center; gap: 8px; height: 34px; margin: 10px 0 0; padding: 0 9px; border-radius: var(--r); color: var(--ink-3); font-size: 13.5px; font-weight: 500; }
.tree-archive:hover, .tree-archive.is-on { background: var(--hover); color: var(--ink); }
.tree-archive span:first-of-type { flex: 1; }
.arch-row { display: flex; align-items: center; gap: 10px; padding-right: 12px; border-bottom: 1px solid var(--line); }
.arch-row:last-child { border-bottom: 0; }
.arch-row .ow-main { flex: 1; min-width: 0; }
.arch-row .ow-title svg { vertical-align: -2px; color: var(--ink-3); }
.archived-bar { margin: 0; }
@media (pointer: coarse) { .tree-archive { height: 40px; } }

/* ===== v9.2: alt gezinme (telefon) ===== */
.bnav { display: none; }
@media (max-width: 640px) {
  body:has(.bnav) .app { height: calc(100dvh - 58px - env(safe-area-inset-bottom)); }
  .bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line); }
  .bnav > a, .bnav > button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--ink-3); -webkit-tap-highlight-color: transparent; }
  .bnav > .is-on { color: var(--ink); }
  .bnav > .is-on::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--hl); }
  .bn-dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bug); color: var(--on-bug); font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .bn-dot[hidden] { display: none; }
  .kb-open .bnav { display: none; }
  .kb-open body:has(.bnav) .app { height: var(--vvh, 100dvh); }
  body:has(.bnav) .toasts { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (hover: none) { .pal-input kbd { display: none; } }

/* ===== v9.2: duyuru bandı ===== */
.announce { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px 9px 16px; background: color-mix(in srgb, var(--link) 10%, var(--paper)); border-bottom: 1px solid var(--line); font-size: 14px; flex: none; }
.announce[hidden] { display: none; }
.announce.a-warn { background: color-mix(in srgb, var(--warn) 14%, var(--paper)); }
.announce > svg { flex: none; margin-top: 2px; color: var(--ink-2); }
.announce p { flex: 1; margin: 0; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }

/* ===== v9.2: yönetim ===== */
.ann-form { display: grid; gap: 8px; max-width: 560px; }
.ann-form textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.ann-form .row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ann-form select { width: auto; }
.ufilter { display: grid; gap: 8px; margin-bottom: 10px; }
.ufilter .input { max-width: 360px; }
.ufilter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ulist > li[hidden] { display: none; }
.audit-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.audit-form .input { width: auto; flex: 1 1 140px; min-width: 0; }
.audit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.audit-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.al-l { display: grid; gap: 1px; min-width: 0; }
.al-l .muted { overflow-wrap: anywhere; }
.al-m { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-3); font-size: 12.5px; }
@media (pointer: coarse) { .chip { height: 36px; } }
@media (max-width: 640px) { .ulist > li { flex-wrap: wrap; gap: 4px 6px; } .ulist .dev-ic { display: none; } .ulist .dev-main { flex-basis: 100%; } }

.wh-secret { margin: 10px 0 14px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--sunk); max-width: 640px; }
.wh-secret p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; }
.wh-secret code { overflow-wrap: anywhere; }
.e-rep { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--link); white-space: nowrap; }

/* ===== v9.3: kayıt bağlantıları ===== */
.e-text a.nref { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 1px 8px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; vertical-align: baseline; }
.e-text a.nref b { font-size: .8em; font-weight: 700; color: var(--tc); flex: none; }
.e-text a.nref span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.e-text a.nref.is-done span { text-decoration: line-through; color: var(--ink-3); }
.e-text a.nref:hover { border-color: var(--ink-3); }
.e-text a.nref.t-hata { --tc: var(--bug); } .e-text a.nref.t-ozellik { --tc: var(--feat); } .e-text a.nref.t-not { --tc: var(--note); }
/* ===== v9.4: takvim ===== */
.cal-nav { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.cal-nav h2 { margin: 0 6px; font-size: 19px; min-width: 150px; text-align: center; }
.cal-nav .ibtn:first-child svg { transform: rotate(180deg); }
.cal-nav .btn { margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); border-radius: var(--r); overflow: hidden; }
.cal-dow { padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.cal-day { min-height: 104px; padding: 5px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; position: relative; }
.cal-day.is-out { background: var(--paper); color: var(--ink-3); }
.cal-day.is-out .cal-items { opacity: .55; }
.cal-num { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cal-day.is-today .cal-num { background: var(--hl); color: var(--hl-ink); }
.cal-items { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; }
.cal-items li a { display: block; padding: 2px 6px; border-radius: 3px; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); background: color-mix(in srgb, var(--tc) 12%, transparent); border-left: 3px solid var(--tc); }
.cal-items li.is-done a { text-decoration: line-through; color: var(--ink-3); }
.cal-items .t-hata { --tc: var(--bug); } .cal-items .t-ozellik { --tc: var(--feat); } .cal-items .t-not { --tc: var(--note); }
.cal-items .cal-more a { background: none; border: 0; color: var(--ink-3); font-weight: 600; }
.cal-day.is-past:not(.is-today) .cal-items li:not(.is-done) a { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bug) 35%, transparent); }
.cal-dots { display: none; }
.cal-ag { margin-top: 22px; scroll-margin-top: 12px; }
.cal-ag h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.cal-ag h3.is-today { color: var(--ink); }
.cal-ag .ow-row.is-done .ow-title { text-decoration: line-through; color: var(--ink-3); }
@media (max-width: 760px) {
  .cal-day { min-height: 54px; padding: 4px 2px; text-align: center; }
  .cal-items { display: none; }
  .cal-dots { display: flex; justify-content: center; gap: 3px; margin-top: 3px; }
  .cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }
  .cal-dots i.t-hata { --tc: var(--bug); } .cal-dots i.t-ozellik { --tc: var(--feat); } .cal-dots i.t-not { --tc: var(--note); }
  .cal-dots i.is-done { opacity: .35; }
  .cal-dow { padding: 6px 2px; text-align: center; font-size: 11px; }
  .cal-num { min-width: 28px; height: 28px; border-radius: 14px; }
  a.cal-num { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
  .cal-nav h2 { font-size: 17px; min-width: 0; flex: 1; text-align: left; }
}
.cal-items { grid-template-columns: minmax(0, 1fr); } .cal-items li { min-width: 0; }
.cchip.is-dup { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.cchip.is-dup > svg { color: var(--warn); }

.ib[data-kind="new_device"] .ib-snip { white-space: normal; }
.ib[data-kind="new_device"] .avatar { background: var(--warn); color: #fff; }
/* 320 px: yeni proje penceresindeki sekmeler ve açılış başlığı */
@media (max-width: 400px) {
  .seg span { gap: 5px; font-size: 12.5px; padding: 0 4px; text-align: center; line-height: 1.15; }
  .seg span svg { flex: none; }
}

/* ===== v10.0: kayıt numaraları ===== */
.e-seq { font: 600 11.5px var(--mono); color: var(--ink-3); }
.e-text a.seqref { font-family: var(--mono); font-size: .9em; font-weight: 600; color: var(--link); text-decoration: none; padding: 0 3px; border-radius: 3px; background: color-mix(in srgb, var(--link) 8%, transparent); }
.e-text a.seqref.t-hata { color: var(--bug); background: color-mix(in srgb, var(--bug) 9%, transparent); }
.e-text a.seqref.t-ozellik { color: var(--feat); background: color-mix(in srgb, var(--feat) 9%, transparent); }
.e-text a.seqref.is-done { text-decoration: line-through; }
.e-text a.seqref.is-missing { color: var(--ink-3); background: none; }

/* ===== v10: telefon için yeniden düzen (menü, alt çubuk, hızlı kayıt) ===== */
.m-menu { display: none; }
@media (max-width: 640px) {
  /* Menü tam ekran; alt çubukta olanlar burada tekrar etmez */
  .side { width: 100vw; max-width: 100vw; padding-bottom: env(safe-area-inset-bottom); }
  .side-actions, .side-nav { display: none; }
  .side-top { padding: 10px 12px 6px 16px; }
  .side-top .brand-name { font-size: 18px; }
  .side-close { width: 44px; height: 44px; }
  .m-menu { display: block; padding: 4px 16px 10px; }
  .m-search { display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); font-size: 16px; text-align: left; }
  .m-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .m-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; }
  .m-tile svg { color: var(--ink-2); }
  .m-tile b { position: absolute; top: 6px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sunk); font-size: 11px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
  .tree { padding: 6px 10px 12px; }
  .tree-head { padding: 14px 8px 6px; font-size: 13px; }
  .tree-head .ibtn { width: 44px; height: 44px; }
  .fold-row { min-height: 52px; }
  .fold-link { height: 52px; font-size: 17px; gap: 10px; }
  .fold-toggle { width: 36px; height: 52px; }
  .pitem > a { height: 48px; font-size: 16px; padding-left: 12px; }
  .padd button { height: 46px; font-size: 15px; padding-left: 12px; }
  .row-more { width: 44px !important; height: 44px !important; opacity: 1; }
  .bugs { min-width: 22px; height: 22px; font-size: 12px; }
  .tree-archive { height: 46px; font-size: 15px; }
  .side-foot { padding: 10px 16px 12px; }
  .side-foot .me { min-height: 52px; font-size: 16px; }

  /* Alt çubuk: ortada belirgin Yaz düğmesi */
  .bnav > .bn-write { gap: 2px; color: var(--ink); }
  .bn-plus { display: flex; align-items: center; justify-content: center; width: 46px; height: 34px; border-radius: 17px; background: var(--ink); color: var(--on-ink); }
  .bnav > a, .bnav > button { font-size: 11.5px; }
}
/* Hızlı kayıt: telefonda alttan açılan panel */
.sheet { width: min(560px, 100%); }
.sheet-grip { display: none; }
.qk { display: grid; gap: 12px; }
.qk h2 { margin: 0; font-size: 18px; }
.qk select { height: 46px; }
.qk-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qk-types label { cursor: pointer; }
.qk-types input { position: absolute; opacity: 0; pointer-events: none; }
.qk-types span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.qk-types input:checked + span { border-color: var(--tc, var(--ink)); color: var(--tc, var(--ink)); background: color-mix(in srgb, var(--tc, var(--ink)) 10%, transparent); box-shadow: inset 0 0 0 1px var(--tc, var(--ink)); }
.qk-types input:focus-visible + span { outline: 2px solid var(--hl); outline-offset: 2px; }
.qk-types .t-hata { --tc: var(--bug); } .qk-types .t-ozellik { --tc: var(--feat); } .qk-types .t-not { --tc: var(--ink-2); }
.qk textarea { width: 100%; min-height: 110px; max-height: 40dvh; resize: vertical; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; outline: none; }
.qk textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
@media (max-width: 640px) {
  dialog.sheet[open] { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); animation: sheetUp .18s ease-out; }
  .sheet-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 2px auto 4px; }
  .qk .dlg-actions .btn { height: 46px; flex: 1; }
}
@keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } }
@media (max-width: 640px) {
  dialog.sheet form { padding: 6px 2px 0; }
  .side-foot .me { height: 52px; }
}
@media (max-width: 640px) {
  body:has(.bnav) .bar .menu-btn { display: none; }
  body:has(.bnav) .bar { padding-left: 16px; }
}

/* ===== v10.1: sürümler ===== */
.e-ms { display: inline-flex; align-items: center; gap: 4px; max-width: 160px; padding: 0 7px; height: 20px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-ms.is-rel { color: var(--ok); }

.ms-new { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; max-width: 620px; }
.ms-new .input[name=name] { flex: 2 1 200px; }
.ms-new .input[type=date] { flex: 1 1 140px; width: auto; }
.ms-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.ms-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ms-item.is-rel { opacity: .8; }
.ms-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ms-name { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; min-width: 0; }
.ms-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-due { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.ms-due.is-late { color: var(--bug); font-weight: 600; }
.ms-head .tag { margin-left: auto; }
.ms-bar { height: 8px; margin: 10px 0 6px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.ms-bar span { display: block; height: 100%; background: var(--ok); border-radius: 4px; transition: width .3s; }
.ms-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-3); }
.ms-stats b { color: var(--ink); }
.ms-pct { margin-left: auto; font-weight: 700; color: var(--ink-2); }
.ms-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.ms-acts .ibtn { margin-left: auto; }
.ms-notes { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ms-notes a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.ms-seq { font: 600 12px var(--mono); color: var(--tc, var(--ink-3)); }
.ms-notes .t-hata { --tc: var(--bug); } .ms-notes .t-ozellik { --tc: var(--feat); }
.ms-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-c { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ms-notes .is-done .ms-t { text-decoration: line-through; color: var(--ink-3); }
@media (max-width: 640px) { .ms-c { display: none; } .ms-acts .btn { flex: 1 1 auto; } }

/* ===== v10.2: alttan açılan menüler ===== */
.ctx-scrim { position: fixed; inset: 0; z-index: 89; background: rgba(15, 17, 15, .45); animation: fadeIn .15s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }
.ctx.is-sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; min-width: 0; max-width: none; width: 100%; max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px calc(12px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; border-width: 1px 0 0; font-size: 16px; animation: sheetUp .18s ease-out; transition: transform .15s; }
.ctx-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 6px auto 8px; }
.ctx.is-sheet button, .ctx.is-sheet a { height: 50px; padding: 0 14px; gap: 14px; border-radius: 10px; font-size: 16px; }
.ctx.is-sheet button svg, .ctx.is-sheet a svg { width: 20px; height: 20px; }
.ctx.is-sheet .ctx-label { padding: 12px 14px 4px; font-size: 13px; }
.ctx.is-sheet .ctx-types { gap: 8px; padding: 4px 6px 8px; }
.ctx.is-sheet .ctx-types button { height: 44px; font-size: 15px; justify-content: center; padding: 0 6px; }
.ctx.is-sheet hr { margin: 6px 4px; }
.ctx.is-sheet kbd { display: none; }

/* ===== v10.2: kaydırma hareketleri ===== */
@media (pointer: coarse) {
  #days .entry { touch-action: pan-y; transition: transform .18s ease-out; }
  #days .entry.is-swiping { transition: none; background: var(--surface); box-shadow: 0 0 0 1px var(--line); z-index: 2; }
  #days .entry[data-swipe="done"] { box-shadow: inset 4px 0 0 var(--ok), 0 0 0 1px var(--ok); }
  #days .entry[data-swipe="menu"] { box-shadow: inset -4px 0 0 var(--ink-3), 0 0 0 1px var(--line-2); }
}

.qk-recent { display: flex; flex-wrap: wrap; gap: 8px; }
.qk-chip { height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qk-chip.is-on { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cchip.is-nlp { border-color: color-mix(in srgb, var(--feat) 50%, transparent); }
.cchip.is-nlp > svg { color: var(--feat); }

/* ===== v10.3: sesli yazma ===== */
.no-dictate .mic-btn { display: none; }
.mic-btn.is-rec { color: var(--on-bug); background: var(--bug); animation: recPulse 1.2s ease-in-out infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--bug) 25%, transparent); } }
.qk-ta { position: relative; }
.qk-ta .mic-btn { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 22px; background: var(--sunk); }
.qk-ta textarea { padding-right: 60px; }
.qk-hint { margin: -4px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--ink-2); }
.qk-hint[hidden] { display: none; }

/* v10.4: hızlı kayıtta ekler */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.att-prev.is-wait { width: 68px; height: 68px; border-radius: 5px; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; }
.att-wait { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink-2); animation: att-spin .8s linear infinite; }
@keyframes att-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .att-wait { animation-duration: 2.4s; } }
.qk-atts { padding: 10px 2px 2px; }
.qk-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.qk-tool { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

@media (pointer: coarse) { .qk-tool { min-height: 44px; padding-inline: 14px; } }
.qk.is-drop { outline: 2px dashed var(--ink-3); outline-offset: 4px; border-radius: var(--r); }
@media (max-width: 640px) {
  /* Uzun içerikte Kaydet her zaman görünür kalır */
  .qk .dlg-actions { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); z-index: 2; margin: 0 -18px; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .qk-tools { margin-top: 0; }
  .qk-tools .qk-tool { flex: 1; justify-content: center; }
}
.qk-shared { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; background: color-mix(in srgb, var(--warn, #b7791f) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn, #b7791f) 40%, transparent); }

/* ===== v10.5: görünümler ve akıllı arama ===== */
.nav-item.nav-sub { height: 28px; padding-left: 26px; font-size: 13.5px; }
.nav-item.nav-sub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.sr-form { display: flex; gap: 8px; align-items: center; }
.sr-box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); }
.sr-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
.sr-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-family: var(--mono); height: 100%; }
.sr-chips, .sr-views { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.sr-chips::-webkit-scrollbar, .sr-views::-webkit-scrollbar { display: none; }
.sr-chips .qk-chip { flex: none; white-space: nowrap; }
.sr-chips .qk-chip.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.sr-view { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--sunk); color: var(--ink-2); font-size: 14px; font-weight: 600; max-width: 220px; }
.sr-view span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-view.is-on { background: color-mix(in srgb, var(--hl) 35%, var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.sr-help summary { cursor: pointer; color: var(--ink-2); font-size: 14px; width: max-content; }
.sr-help-body { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.sr-help-body p { margin: 0 0 10px; }
.sr-help dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.sr-help dt code, .sr-help dd code, .sr-help p code { font-size: 12.5px; }
.sr-help dd { margin: 0; color: var(--ink-2); }
.sr-status { font-size: 14px; color: var(--ink-3); min-height: 1.2em; }
.sr-list .ow-row.is-done .ow-title { text-decoration: line-through; color: var(--ink-3); }
.sr-done { color: var(--ok); font-weight: 600; }
.sr-more { justify-self: center; }
@media (max-width: 640px) {
  .sr-help dl { grid-template-columns: 1fr; gap: 2px; }
  .sr-help dd { margin-bottom: 8px; }
  .sr-chips .qk-chip, .sr-view { min-height: 40px; }
  .sr-form .btn { height: 46px; }
}
.sr-help dt code { cursor: pointer; }
.sr-help dt code:hover { background: var(--hover); }

/* ===== v10.7: bildirim ve çevrimdışı okuma ===== */
.push-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.push-state { font-weight: 600; margin-right: auto; }
.push-devs { margin-top: 12px; }
.warn-hint { color: var(--warn); }
.offline-bar { position: sticky; top: 0; z-index: 30; padding: 8px 14px; font-size: 13.5px; text-align: center; background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--ink); border-bottom: 1px solid var(--line); }
.ctx button:disabled { opacity: .5; cursor: default; background: none; }

/* ===== v10.7: yapay zeka yardımcıları ===== */
#cai.is-rec { color: var(--feat); animation: att-spin 1.6s linear infinite; }
@media (prefers-reduced-motion: reduce) { #cai.is-rec { animation: none; } }
.daily-out { max-height: 60dvh; overflow: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.daily-out .md > :first-child { margin-top: 0; }
/* Dar ekranda yazma kutusu araçları yatay kaydırılır, Kaydet her zaman görünür kalır */
@media (max-width: 400px) {
  .cfoot { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .cfoot::-webkit-scrollbar { display: none; }
  .cfoot > .ibtn { flex: none; }
  .cfoot #csave { position: sticky; right: 0; flex: none; box-shadow: -10px 0 10px -4px var(--surface); }
}
@media (max-width: 400px) {
  /* Yapışkan Kaydet saydam kalmasın: devre dışıyken de opak, soluk renk */
  .cfoot #csave:disabled { opacity: 1; background: color-mix(in srgb, var(--ink) 45%, var(--surface)); border-color: transparent; }
  /* Repoya bağlı olmayan projede dosya etiketleme düğmesi telefonda yer kaplamasın */
  #composer[data-linked="0"] #cat { display: none; }
}

/* ===== v10.8: zaman takibi ve haftalık rapor ===== */
.rp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
.rp-range { margin: 0; }
.rp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rp-stat { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: grid; gap: 4px; }
.rp-stat b { font-size: 22px; line-height: 1.1; }
.rp-stat span { font-size: 13px; color: var(--ink-3); }
.rp-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp-days li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: 14px; }
.rp-bar { height: 12px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.rp-fill { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--feat); }
.rp-dv { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rp-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rp-list li { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.rp-list li a, .rp-list li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-list li b { flex: none; font-variant-numeric: tabular-nums; }
.rp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 420px) {
  .rp-stats { grid-template-columns: 1fr 1fr; }
  .rp-stats .rp-stat:first-child { grid-column: 1 / -1; }
  .rp-days li { grid-template-columns: 64px minmax(0, 1fr) 70px; font-size: 13.5px; }
}
/* Çalışan sayaç: her sayfanın altında */
.timer-pill { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: 18px; display: flex; align-items: center; gap: 8px; max-width: min(520px, calc(100% - 24px)); padding: 6px 6px 6px 14px; border-radius: 22px; background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow); font-size: 14px; }
.timer-pill a { color: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer-pill .tp-t { font-variant-numeric: tabular-nums; font-weight: 700; flex: none; }
.timer-pill .tp-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; flex: none; animation: tp-blink 1.6s ease-in-out infinite; }
.timer-pill button { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; background: color-mix(in srgb, var(--on-ink) 16%, transparent); color: inherit; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
@keyframes tp-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .timer-pill .tp-dot { animation: none; } }
@media (max-width: 640px) {
  body:has(.bnav) .timer-pill { bottom: calc(70px + env(safe-area-inset-bottom)); }
  body:has(#composer) .timer-pill { bottom: auto; top: calc(64px + env(safe-area-inset-top)); }
}
.e-time { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.e-time.is-run { color: #e5484d; font-weight: 600; }

/* ===== v10.9: daha anlaşılır gezinme ===== */
.nav-group { display: grid; gap: 1px; margin-top: 12px; }
.nav-label { padding: 0 9px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }
.tree-archive + .tree-archive { margin-top: 2px; }
.side-admin { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 9px; margin-bottom: 4px; border-radius: var(--r); color: var(--ink-3); font-size: 13.5px; font-weight: 500; }
.side-admin:hover { background: var(--hover); color: var(--ink); }
.me-btn, .back-btn { display: none; }
@media (max-width: 640px) {
  /* Üst çubukta sağda profil (hesap menüsü); projeler alttaki "Projeler" sekmesinde */
  /* Profil sağ üstte (başlığın ve sayfa düğmelerinin en sağında) */
  body:has(.bnav) .bar .me-btn { display: inline-flex; align-items: center; justify-content: center; order: 99; width: 40px; height: 40px; margin-right: -6px; border-radius: 50%; flex: none; }
  body:has(.bnav) .bar .me-btn .avatar { width: 32px; height: 32px; font-size: 14px; }
  body:has(.bnav) .bar { padding-left: 16px; }
  /* Sohbette: geri ok ana sayfaya (sohbet listesine) döner */
  body:not(:has(.bnav)) .bar .back-btn { display: inline-flex; margin-left: -8px; width: 40px; height: 40px; }
  body:not(:has(.bnav)) .bar:has(.back-btn) .menu-btn { display: none; }
  /* Menü (Projeler) sayfasında profil üstte olduğu için alttaki satır gizlenir */
  .side .side-foot .me { display: none; }
  .side .side-foot:not(:has(.side-admin)) { display: none; }
  /* Çalışan sayaç telefonda küçük ve sağ üstte */
  .timer-pill { left: auto; right: 10px; transform: none; padding: 4px 4px 4px 10px; gap: 6px; font-size: 13px; max-width: 70vw; }
  .timer-pill a { display: none; }
  .timer-pill button { height: 30px; padding: 0 10px; }
  body:has(.bnav) .timer-pill { top: auto; bottom: calc(70px + env(safe-area-inset-bottom)); }
  /* Sohbette yazma kutusunun hemen üstünde (konumu JS ile, kutu büyüdükçe) */
  body:has(#composer) .timer-pill { top: auto; bottom: var(--pill-b, 160px); }
}
@media (max-width: 640px) {
  /* Sayaç çubuğu açıkken bildirimler onun üstünde çıkar */
  body:has(.bnav):has(.timer-pill) .toasts { bottom: calc(120px + env(safe-area-inset-bottom)); }
}

/* ===== v10.10: sayaç içeriğin üstünde yüzmez ===== */
.side-timer { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 4px 6px 10px; border-radius: var(--r); background: color-mix(in srgb, #e5484d 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #e5484d 30%, transparent); }
.side-timer .st-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; color: var(--ink); }
.side-timer .tp-t { font: 700 13px var(--mono); font-variant-numeric: tabular-nums; flex: none; }
.side-timer .st-name { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; flex: none; animation: tp-blink 1.6s ease-in-out infinite; }
.timer-chip { display: none; }
@media (max-width: 640px) {
  .timer-chip { display: inline-flex; align-items: center; gap: 5px; order: 98; height: 32px; padding: 0 9px 0 8px; border-radius: 16px; flex: none; background: color-mix(in srgb, #e5484d 12%, var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, #e5484d 35%, transparent); }
  .timer-chip .tp-t { font: 700 13px var(--mono); font-variant-numeric: tabular-nums; }
  .side .side-timer { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tp-dot { animation: none; } }
/* Kayan şeritlerde devam ipucu */
.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 20px; margin-top: 12px; border: 1px dashed var(--line-2); border-radius: 14px; }
.empty-state .es-ic { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sunk); color: var(--ink-3); margin-bottom: 4px; }
.empty-state h2 { margin: 0; font-size: 18px; }
.empty-state p { margin: 0; max-width: 42ch; color: var(--ink-2); }
/* Küçük durum düğmeleri: görünüm aynı, dokunma/tıklama alanı 32 px */
.node, .ow-row .node { position: relative; }
.node::after { content: ''; position: absolute; inset: -9px; }
@media (max-width: 420px) {
  /* Sayaç çipi açıkken başlık sığsın: üst çubuk düğmeleri yalnızca simge */
  .bar:has(.timer-chip) .bar-actions .btn > span:not(.share-n) { display: none; }
  .bar:has(.timer-chip) .bar-actions .btn { padding: 0 9px; }
}
@media (max-width: 400px) {
  /* Dar ekranda sayaç açıkken üye sayısı rozeti yer kaplamasın (sayı paylaş penceresinde) */
  .bar:has(.timer-chip) .share-n { display: none; }
  .bar:has(.timer-chip) { gap: 6px; }
  .bar:has(.timer-chip) .crumb-icon { display: none; }
}

/* ===== v10.11: sesli yazma durumu ===== */
.mic-btn { position: relative; }
.mic-btn.is-rec, .qk-ta .mic-btn.is-rec { color: var(--on-bug); background: var(--bug); }
.mic-btn.is-rec[data-sec]::after { content: attr(data-sec); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 9px; background: var(--ink); color: var(--paper); font: 600 11px/16px var(--mono, ui-monospace, monospace); white-space: nowrap; pointer-events: none; }
.mic-btn.is-busy { opacity: .7; }
.mic-btn.is-busy svg { animation: micWait 1s linear infinite; }
@keyframes micWait { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .mic-btn.is-rec, .mic-btn.is-busy svg { animation: none; } }

/* ===== v10.11: yapay zeka bağlantı ayarları ===== */
.ai-key.is-off { background: var(--sunk); }
.ai-key.is-off .ak-main strong { color: var(--ink-3); }
.ak-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 3px; background: var(--sunk); border: 1px solid var(--line); color: var(--ink-2); vertical-align: 1px; }
.prov-name .ak-tag { font-size: 10.5px; padding: 0 5px; margin-left: 4px; }
.ak-switch { margin-left: auto; align-self: center; flex: none; }
.ak-meta { margin: -4px 0 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; }
.ak-meta span:first-child { font-family: var(--mono); }
.ak-meta span { overflow-wrap: anywhere; }
.ak-err { margin: -4px 0 0; display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--bug); }
.ak-err svg { flex: none; margin-top: 2px; }
.ak-edit { border-top: 1px dashed var(--line-2); padding-top: 12px; }
.ak-edit[hidden] { display: none; }
.ak-edit textarea { min-height: 72px; }
.ak-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ak-routes select { width: 100%; }
.seg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.seg-opt { position: relative; display: block; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; }
.seg-opt > span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.seg-opt small { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.seg-opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.voice-status { margin: 6px 0 0; font-size: 13.5px; }
.voice-try { max-width: 640px; }
.voice-try textarea { width: 100%; resize: vertical; }
@media (max-width: 720px) {
  .ak-routes, .seg-row { grid-template-columns: 1fr; }
}
.ak-routes .field:first-child { grid-column: auto; }
#voiceSect .row-fields { margin-top: 16px; }
#voiceSect .voice-try { margin-top: 14px; }
.ak-edit .ak-del { margin-left: auto; color: var(--bug); }
.qk-ta .mic-btn.is-rec[data-sec]::after { bottom: auto; left: auto; right: calc(100% + 6px); top: 50%; transform: translateY(-50%); }

/* ---------- v10.13: Destek ve iletişim ---------- */
.sup .sect + .sect { margin-top: 26px; }
.sup-filter { margin: 0 0 10px; }
.sup-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sup-item + .sup-item { border-top: 1px solid var(--line); }
.sup-item[hidden] { display: none; }
.sup-item a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; color: inherit; position: relative; }
.sup-item a:hover { background: var(--hover); }
.sup-item.is-unread a::before { content: ''; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--hl); }
.sup-ic { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hover); color: var(--ink-2); }
.sup-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sup-subj { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-item.is-unread .sup-subj { color: var(--ink); }
.sup-meta { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sup-side time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.sup-new { display: grid; gap: 12px; max-width: 640px; }
.sup-new textarea, .sup-reply textarea, .contact-form textarea, .bc-form textarea, #dlg-admin-msg textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; width: 100%; }
.sup-new .btn { justify-self: start; }
.sup-hint { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; margin: 0; line-height: 1.45; }
.sup-hint .i { flex: none; margin-top: 2px; }
.sup-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-size: 14px; }
.sup-head .tag { margin-left: auto; }
.sup-msgs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sup-msg { max-width: min(640px, 88%); padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: var(--surface); align-self: flex-start; }
.sup-msg.is-mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--hl) 16%, var(--surface)); border-color: color-mix(in srgb, var(--hl) 40%, var(--line)); }
.sup-msg-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
.sup-msg-h b { color: var(--ink); }
.sup-msg-h time { margin-left: auto; color: var(--ink-3); font-size: 11.5px; }
.sup-msg-h .tag { font-size: 10.5px; padding: 0 5px; }
.sup-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 14.5px; }
.sup-reply { position: sticky; bottom: 0; display: grid; gap: 8px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.sup-reply-row { display: flex; align-items: center; gap: 10px; }
.sup-reply-row .btn { margin-left: auto; flex: none; }
.contact-card { display: grid; gap: 10px; max-width: 640px; }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.contact-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: inherit; min-width: 0; }
.contact-links a:hover { border-color: var(--line-2); background: var(--hover); }
.cl-ic { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hover); flex: none; color: var(--ink-2); }
.cl-txt { display: flex; flex-direction: column; min-width: 0; }
.cl-txt small { font-size: 11.5px; color: var(--ink-3); }
.cl-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-ext { margin-left: auto; color: var(--ink-3); flex: none; }
.contact-hours { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.contact-note { margin: 0; white-space: pre-wrap; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 10px; max-width: 680px; }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.bc-form { display: grid; gap: 8px; max-width: 680px; }
.bc-form .row-gap { flex-wrap: wrap; }
.bc-form input[name="usernames"] { flex: 1; min-width: 160px; }
.bc-form input[hidden] { display: none; }
.ib-snip.is-full { white-space: pre-wrap; overflow: visible; }
.auth-help { display: flex; gap: 8px; align-items: center; margin: 24px 0 0; font-size: 13.5px; color: var(--ink-2); }
.auth-help a { text-decoration: underline; text-underline-offset: 3px; }
.contact-page .contact-card { margin: 16px 0; }
.contact-page .contact-links { grid-template-columns: 1fr; }
.side-admin .nav-count { margin-left: auto; }
.side-admin.is-on { background: var(--hover); color: var(--ink); }
@media (max-width: 640px) {
  .cf-grid { grid-template-columns: 1fr; }
  .sup-msg { max-width: 92%; }
  .sup-reply-row .sup-hint { font-size: 11.5px; }
}
@media (max-width: 640px) {
  .bar .crumbs .sup-crumb span { display: none; }
  .bar .crumbs .sup-crumb { flex: none; }
}
