/* Menzil — arayüz stilleri
   Yazı: Instrument Sans (OFL). Açık tema varsayılan; koyu tema sistemden ya da elle. */

@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokenlar ---------- */
:root {
  --canvas: #ffffff;
  --side: #f7f6f4;
  --sunk: #f2f0ed;
  --hover: #eeece8;
  --select: #e7e4df;
  --ink: #1b1916;
  --ink-2: #57534c;
  --ink-3: #8b867e;
  --ink-4: #c6c1b9;
  --line: #e8e5e0;
  --line-soft: #f1efeb;
  --accent: #d63f1f;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee8;
  --doing: #d5841f;
  --done: #2a9a62;
  --late: #c92f4c;
  --review: #7356cf;
  --p-high: #e5701e;
  --p-med: #d9a21b;
  --p-low: #3d7fe0;
  --shadow: 0 1px 2px rgba(20, 22, 28, .06), 0 8px 24px rgba(20, 22, 28, .08);
  --shadow-lg: 0 24px 64px rgba(20, 22, 28, .18);
  --timer-bg: #1b1916;
  --timer-ink: #f6f4f1;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --font: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #1a1817; --side: #141311; --sunk: #211f1c; --hover: #262421; --select: #2e2b27;
    --ink: #eeebe6; --ink-2: #aaa49b; --ink-3: #78726a; --ink-4: #4a4640;
    --line: #2d2a26; --line-soft: #24221f;
    --accent: #ff7a57; --accent-ink: #1f0c06; --accent-soft: #3a2119; --doing: #e6a03f; --done: #45b97c; --late: #f2677f; --review: #a08bf0; --p-high: #f08a40; --p-med: #e4b544; --p-low: #6f9ff0;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 24px 64px rgba(0,0,0,.55);
    --timer-bg: #eeebe6; --timer-ink: #1b1916;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #1a1817; --side: #141311; --sunk: #211f1c; --hover: #262421; --select: #2e2b27;
    --ink: #eeebe6; --ink-2: #aaa49b; --ink-3: #78726a; --ink-4: #4a4640;
    --line: #2d2a26; --line-soft: #24221f;
    --accent: #ff7a57; --accent-ink: #1f0c06; --accent-soft: #3a2119; --doing: #e6a03f; --done: #45b97c; --late: #f2677f; --review: #a08bf0; --p-high: #f08a40; --p-med: #e4b544; --p-low: #6f9ff0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 24px 64px rgba(0,0,0,.55);
  --timer-bg: #eeebe6; --timer-ink: #1b1916;
  color-scheme: dark;
}

/* ---------- temel ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body.booting > * { visibility: hidden; }
body {
  margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font);
  font-size: 13.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: grid; grid-template-columns: 236px minmax(0, 1fr); overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; -webkit-app-region: no-drag; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; }
h2 { font-size: 15px; }
h3 { font-size: 13.5px; }
p { margin: 0; }
.drag { -webkit-app-region: drag; height: 12px; position: fixed; inset: 0 0 auto 0; z-index: 60; }
:root[data-os="darwin"] .drag { height: 40px; pointer-events: none; }
.spacer { flex: 1; }
.muted { color: var(--ink-3); }
.mobile-only { display: none !important; }
[hidden] { display: none !important; }

.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- düğmeler & alanlar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--canvas); color: var(--ink); font-weight: 500; font-size: 13px; white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.running { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.btn.danger-text { border-color: transparent; color: var(--late); padding-left: 0; }
.btn.danger-text:hover { background: none; text-decoration: underline; }
.btn .ic { width: 14px; height: 14px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm);
  background: none; border: 0; color: var(--ink-3); padding: 0; flex: none;
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn.sm { width: 22px; height: 22px; }
.icon-btn.sm .ic { width: 14px; height: 14px; }

input, select, textarea {
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 9px; font-size: 13.5px; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { resize: vertical; line-height: 1.5; }
input[type=number] { -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
input[type=number]::-webkit-inner-spin-button { display: none; }
select { appearance: none; -webkit-appearance: none; padding-right: 26px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f9b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 14px; }

/* ---------- kenar çubuğu ---------- */
.side {
  background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  padding: 14px 10px 10px; min-height: 0; overflow: hidden;
}
:root[data-os="darwin"] .side { padding-top: 46px; }
.brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.brand-mark { width: 18px; height: 18px; color: var(--accent); }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 30px; padding: 0 8px; border-radius: var(--r-sm);
  background: none; border: 0; color: var(--ink-2); text-align: left; font-size: 13.5px; font-weight: 500;
}
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.on { background: var(--select); color: var(--ink); }
.nav-item .ic { color: var(--ink-3); }
.nav-item.on .ic { color: var(--ink); }
.nav-label { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nav-item.quiet { color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 8px 4px; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.project-list { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; min-height: 0; margin: 0 -4px; padding: 0 4px; }
.side-empty { color: var(--ink-3); font-size: 12.5px; padding: 6px 8px; line-height: 1.5; }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ilerleme halkası */
.ring { width: 15px; height: 15px; flex: none; transform: rotate(-90deg); }
.ring .trk { stroke: color-mix(in srgb, var(--c) 28%, transparent); }
.ring .val { stroke: var(--c); stroke-linecap: round; transition: stroke-dasharray .4s; }

.side-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 8px; }

/* ---------- kronometre (tek güçlü öğe) ---------- */
.timer { border-radius: var(--r-lg); }
.timer.on { background: var(--timer-bg); color: var(--timer-ink); padding: 12px 12px 11px; }
.t-open, .m-text { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; }
.t-open .t-proj, .t-open .t-task, .m-text .m-task, .m-text .m-proj { display: flex; }
.timer.on .t-proj { display: flex; align-items: center; gap: 6px; font-size: 11.5px; opacity: .65; min-width: 0; }
.timer.on .t-proj span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.timer .t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.timer.on .t-task { font-weight: 600; font-size: 13.5px; margin-top: 3px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-open:hover .t-task { text-decoration: underline; text-underline-offset: 2px; }
.timer.on .t-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.t-clock { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.t-stop { width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--timer-ink) 14%, transparent); color: var(--timer-ink); }
.t-stop:hover { background: color-mix(in srgb, var(--timer-ink) 24%, transparent); }
.t-stop .ic { width: 12px; height: 12px; }
.timer.on .t-sub { font-size: 11.5px; opacity: .65; margin-top: 7px; font-variant-numeric: tabular-nums; }
.t-bar { height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--timer-ink) 16%, transparent); margin-top: 6px; overflow: hidden; }
.t-bar i { display: block; height: 100%; background: var(--timer-ink); }
.timer.idle { padding: 2px 0; }
.t-resume { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border-radius: var(--r); border: 1px dashed var(--ink-4);
  background: none; color: var(--ink-2); text-align: left; font-size: 12.5px; }
.t-resume:hover { border-style: solid; color: var(--ink); background: var(--hover); }
.t-resume .ic { width: 12px; height: 12px; color: var(--accent); }
.t-resume span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- ana alan ---------- */
.main { overflow-y: auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; height: 50px; flex: none;
  padding: 0 28px; background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
:root[data-os="darwin"] .topbar { padding-top: 0; }
.crumbs { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; font-size: 13px; color: var(--ink-3); }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crumbs .sep { color: var(--ink-4); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-time { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.top-time b { color: var(--ink); font-weight: 500; }

.seg { display: inline-flex; padding: 2px; border-radius: 7px; background: var(--sunk); gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 0; border-radius: 5px; background: none; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.seg button .ic { width: 13px; height: 13px; }
.seg button.on { background: var(--canvas); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.page { padding: 32px 28px 80px; max-width: 1020px; width: 100%; }
.page.wide { max-width: none; }

/* ---------- Bugün ---------- */
.home-head { margin-bottom: 30px; }
.lede { margin-top: 8px; font-size: 15px; color: var(--ink-2); max-width: 60ch; line-height: 1.55; }
.lede b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.section-head .muted { font-size: 12.5px; }

.ptable { border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(120px, 1fr) 92px 120px 30px; align-items: center; gap: 16px;
  height: 46px; padding: 0 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.prow:hover { background: var(--sunk); }
.prow .p-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.prow .p-name span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prow .p-prog { display: flex; align-items: center; gap: 10px; }
.prow .p-prog .bar { flex: 1; }
.prow .num { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow .num b { color: var(--ink); font-weight: 500; }
.prow .icon-btn { visibility: hidden; }
.prow:hover .icon-btn, .prow .icon-btn.on { visibility: visible; }
.icon-btn.on { color: var(--accent); }
.new-row { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 6px; width: 100%; border: 0; background: none; color: var(--ink-3); text-align: left; }
.new-row:hover { color: var(--ink); }

.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; min-width: 40px; }
.bar > i { display: block; height: 100%; background: var(--c, var(--accent)); border-radius: 4px; transition: width .4s; }

/* son 7 gün */
.week { display: grid; gap: 6px; }
.wk-row { display: grid; grid-template-columns: 180px repeat(7, 28px) 1fr; gap: 6px; align-items: center; }
.wk-row.head span { font-size: 11.5px; color: var(--ink-3); text-align: center; }
.wk-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.wk-name span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cell { width: 28px; height: 28px; border-radius: 5px; background: var(--sunk); position: relative; }
.cell i { position: absolute; inset: 0; border-radius: 5px; background: var(--c); }
.cell.full::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--canvas); opacity: .9; }
.wk-total { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-left: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }

.empty { padding: 56px 0 0; max-width: 460px; }
.home-head + .empty { padding-top: 0; }
.banner + .empty { padding-top: 14px; }
.empty h1 { margin-bottom: 10px; }
.empty p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }

/* ---------- proje sayfası ---------- */
.p-head { margin-bottom: 22px; }
.p-head .desc { margin-top: 6px; color: var(--ink-2); font-size: 14px; max-width: 64ch; }
.p-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.p-progress .bar { width: 200px; flex: none; }
.p-progress b { color: var(--ink); font-weight: 600; }

.quick-add { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--canvas); }
.quick-add:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.quick-add .ic { color: var(--ink-3); }
.quick-add input { flex: 1; border: 0; padding: 0; background: none; height: 100%; box-shadow: none !important; }
.quick-add kbd { font-family: var(--font); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.quick-add:not(:focus-within) kbd { visibility: hidden; }

/* durum ikonu */
.status { width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: none; padding: 0; border-radius: 50%; flex: none; }
.status:hover { background: var(--hover); }
.st { display: inline-grid; place-items: center; flex: none; width: 15px; height: 15px; }
.st svg { width: 100%; height: 100%; display: block; }
.st-backlog { color: var(--ink-3); }
.st-todo { color: var(--ink-2); }
.st-doing { color: var(--doing); }
.st-review { color: var(--review); }
.st-done { color: var(--done); }
.st-cancelled { color: var(--ink-4); }

/* liste */
.group { margin-bottom: 18px; }
.group-head { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 6px; border: 0; background: var(--sunk);
  border-radius: var(--r-sm); color: var(--ink); font-weight: 500; font-size: 13px; text-align: left; }
.group-head .chev { width: 12px; height: 12px; color: var(--ink-3); transition: transform .15s; }
.group.collapsed .chev { transform: rotate(-90deg); }
.group.collapsed .rows { display: none; }
.group-head .st { width: 14px; height: 14px; }
.group-head .cnt { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px 4px 4px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.row:hover { background: var(--sunk); }
.row.running { background: var(--accent-soft); }
.r-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 450; }
.is-done .r-title, .is-done .c-title { color: var(--ink-3); }
.meta { display: flex; align-items: center; gap: 12px; flex: none; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.m { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.m .ic { width: 13px; height: 13px; }
.m.late { color: var(--late); }
.m.today { color: var(--doing); }
.m.full { color: var(--done); }
.m.run { color: var(--accent); font-weight: 600; }
.m.proj { color: var(--ink-2); }
.prio { width: 14px; height: 14px; flex: none; display: block; }
.prio rect { fill: var(--ink-4); opacity: .55; }
.prio rect.on { opacity: 1; }
.prio.high rect.on { fill: var(--p-high); }
.prio.med rect.on { fill: var(--p-med); }
.prio.low rect.on { fill: var(--p-low); }
.prio.urgent { color: var(--late); }
.prio.urgent rect { opacity: 1; fill: currentColor; }
.prio.none { color: var(--ink-4); }
.prio.none rect { fill: none; opacity: 1; }
.play { visibility: hidden; }
.row:hover .play, .card:hover .play, .play.on { visibility: visible; }
.play.on { color: var(--accent); }
.rows-empty { padding: 12px 10px; color: var(--ink-3); font-size: 13px; }

/* pano */
.board { display: grid; grid-template-columns: repeat(5, minmax(176px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; min-height: 200px; border-radius: var(--r); padding: 2px; transition: background .15s; }
.col.over { background: var(--accent-soft); }
.col-head { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 4px; font-weight: 500; font-size: 13px; }
.col-head .st { width: 14px; height: 14px; }
.col-head .cnt { color: var(--ink-3); font-weight: 400; }
.col-empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 18px; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 9px; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; }
.card:hover { border-color: var(--ink-4); box-shadow: var(--shadow); }
.card.dragging { opacity: .4; }
.card.running { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.c-top { display: flex; gap: 6px; align-items: flex-start; }
.c-top .pr-btn { margin-top: -1px; }
.c-top .icon-btn { width: 24px; height: 24px; margin: -3px -4px -3px 0; }
.c-top .icon-btn .ic { width: 13px; height: 13px; }
.c-title { flex: 1; line-height: 1.4; word-break: break-word; font-weight: 450; }
.c-foot { display: flex; align-items: center; gap: 6px; padding-left: 26px; }
.card > .lbls { padding-left: 26px; }
.c-foot .meta { flex-wrap: wrap; gap: 10px; flex: 1; }
.next { display: none; }

/* ---------- görev paneli ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100vw; z-index: 30;
  background: var(--canvas); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateX(24px); opacity: 0; transition: transform .18s ease, opacity .18s ease;
  overflow-y: auto; display: flex; flex-direction: column;
}
.drawer.open { transform: none; opacity: 1; }
.dr-head { display: flex; align-items: center; gap: 4px; height: 50px; padding: 0 14px 0 22px; border-bottom: 1px solid var(--line-soft); flex: none; position: sticky; top: 0; background: var(--canvas); z-index: 2; }
:root[data-os="darwin"] .dr-head { padding-top: 0; }
.dr-crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); min-width: 0; flex: 1; }
.dr-crumb span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dr-body { padding: 20px 22px 28px; display: flex; flex-direction: column; gap: 22px; }
.dr-title { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; border: 0; padding: 0; resize: none; overflow: hidden; background: none; box-shadow: none !important; }
.props { display: grid; grid-template-columns: 96px 1fr; row-gap: 4px; align-items: center; font-size: 13px; }
.props dt { color: var(--ink-3); }
.props dd { margin: 0; display: flex; align-items: center; gap: 8px; min-height: 32px; }
.props select, .props input[type=date] { border-color: transparent; background-color: transparent; padding: 4px 26px 4px 6px; margin-left: -6px; font-size: 13px; }
.props select:hover, .props input[type=date]:hover { background-color: var(--hover); }
.props input[type=date] { padding-right: 6px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-2); }
.switch input { appearance: none; -webkit-appearance: none; width: 28px; height: 16px; border-radius: 9px; background: var(--ink-4); border: 0; padding: 0; position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(12px); }
.time-val { font-variant-numeric: tabular-nums; }
.time-val.run { color: var(--accent); font-weight: 600; }

.dr-sec h3 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.dr-sec h3 .muted { font-weight: 400; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dr-sec > .bar { margin-bottom: 8px; }
.steps { display: flex; flex-direction: column; }
.step { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 2px 4px 2px 0; border-radius: var(--r-sm); position: relative; }
.step:hover { background: var(--sunk); }
.step.dragging { opacity: .4; }
.step.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.step.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.grip { width: 16px; height: 22px; display: grid; place-items: center; color: var(--ink-4); cursor: grab; visibility: hidden; flex: none; }
.grip .ic { width: 14px; height: 14px; }
.step:hover .grip { visibility: visible; }
.step-no { width: 16px; text-align: right; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }
.box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ink-4); background: none; padding: 0; display: grid; place-items: center; flex: none; color: transparent; }
.box:hover { border-color: var(--ink-3); }
.box.on { background: var(--done); border-color: var(--done); color: #fff; }
.box .ic { width: 11px; height: 11px; stroke-width: 3; }
.step-text { flex: 1; border: 0; background: none; padding: 4px 2px; box-shadow: none !important; }
.step.done .step-text { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); height: 26px; flex: none; background: var(--canvas); }
.qty button { width: 24px; height: 100%; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; padding: 0; }
.qty button:hover { background: var(--hover); color: var(--ink); }
.qty button .ic { width: 12px; height: 12px; }
.qty input { width: 34px; height: 100%; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 2px; text-align: right; font-size: 12.5px; box-shadow: none !important; background: none; }
.qty .need { padding: 0 6px 0 3px; font-size: 12.5px; color: var(--ink-3); border-right: 1px solid var(--line); height: 100%; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.step .rm { visibility: hidden; }
.step:hover .rm { visibility: visible; }
.step-add { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 2px 4px 2px 22px; color: var(--ink-3); }
.step-add .ic { width: 14px; height: 14px; margin: 0 1px; }
.step-add input[name=text] { flex: 1; border: 0; padding: 4px 2px; background: none; box-shadow: none !important; }
.step-add input[name=need] { width: 64px; height: 26px; font-size: 12.5px; text-align: right; }
.step-add .btn { height: 26px; }
.note { width: 100%; min-height: 96px; border-color: var(--line-soft); background: var(--sunk); }
.dr-foot { font-size: 12px; color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* ---------- diyalog ---------- */
dialog { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; width: 440px; max-width: calc(100vw - 24px); background: var(--canvas); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(15, 17, 22, .32); }
dialog form { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
dialog h2 { font-size: 17px; }
.templates { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.templates legend { font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.tpl { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.tpl:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tpl input { margin: 2px 0 0; accent-color: var(--accent); }
.tpl b { display: block; font-weight: 500; }
.tpl small { color: var(--ink-3); font-size: 12.5px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.field input { color: var(--ink); }
.field .hint { color: var(--ink-3); font-size: 12px; }
.duration { display: flex; align-items: center; gap: 6px; color: var(--ink-3); }
.duration input { width: 64px; text-align: right; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch.sel { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--c); }
.dialog-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

/* ---------- bildirim ---------- */
#toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; width: min(360px, calc(100vw - 32px));
  background: var(--timer-bg); color: var(--timer-ink); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 2px; transform: translateY(16px); opacity: 0; pointer-events: none; transition: .2s ease; }
#toast.show { transform: none; opacity: 1; }
#toast span { opacity: .7; font-size: 12.5px; }

/* ---------- dokunmatik ---------- */
@media (hover: none) {
  .play, .prow .icon-btn, .step .rm, .grip { visibility: visible; }
  .next { display: inline-grid; }
}

/* ---------- mobil ---------- */
.side-backdrop, .mtimer { display: none; }
@media (max-width: 760px) {
  body { display: block; overflow: auto; }
  .drag { display: none; }
  .mobile-only { display: inline-grid !important; }
  .side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: 84vw; max-width: 300px;
    transform: translateX(-100%); transition: transform .2s ease; padding-top: calc(16px + env(safe-area-inset-top)); }
  body.side-open .side { transform: none; box-shadow: var(--shadow-lg); }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(15,17,22,.35); }
  .side .timer { display: none; }
  .nav-item { height: 40px; font-size: 15px; }

  .main { overflow: visible; min-height: 100vh; }
  .topbar { padding: env(safe-area-inset-top) 10px 0 6px; height: calc(52px + env(safe-area-inset-top)); }
  .topbar .icon-btn { width: 40px; height: 40px; }
  .topbar .icon-btn .ic { width: 20px; height: 20px; }
  .crumbs { font-size: 15px; }
  .crumbs .c-parent, .crumbs .sep { display: none; }
  .top-time { display: none; }
  .seg button { height: 30px; }
  .page { padding: 20px 16px 120px; }
  h1 { font-size: 23px; }
  .lede { font-size: 14.5px; }

  .prow { grid-template-columns: minmax(0, 1fr) 70px 40px; height: auto; min-height: 54px; padding: 8px 4px; row-gap: 6px; }
  .prow .p-prog { grid-column: 1 / -1; order: 3; }
  .prow .num.tasks { display: none; }
  .wk-row { grid-template-columns: 96px repeat(7, minmax(0, 1fr)) 56px; gap: 4px; }
  .cell { width: 100%; aspect-ratio: 1; height: auto; }

  .p-progress .bar { width: auto; flex: 1; }
  .quick-add { height: 46px; }
  input, select, textarea { font-size: 16px; }
  .row { min-height: 52px; flex-wrap: wrap; padding: 8px 4px; row-gap: 2px; }
  .r-title { white-space: normal; flex: 1 1 0; font-size: 15px; }
  .play, .prow .icon-btn, .step .rm { visibility: visible; }
  .next { display: inline-grid; }
  .row .meta { order: 3; flex-basis: 100%; padding-left: 30px; flex-wrap: wrap; row-gap: 4px; }
  .row .meta:empty { display: none; }
  .status { width: 28px; height: 28px; }
  .status svg { width: 18px; height: 18px; }
  .board { grid-template-columns: 1fr; }
  .col { min-height: 0; }
  .c-title { font-size: 15px; }
  .icon-btn { width: 36px; height: 36px; }

  .drawer { width: 100vw; border-left: 0; transform: translateY(16px); }
  .drawer.open { transform: none; }
  .dr-head { padding: env(safe-area-inset-top) 6px 0 16px; height: calc(52px + env(safe-area-inset-top)); }
  .dr-body { padding: 18px 16px calc(40px + env(safe-area-inset-bottom)); }
  .props { grid-template-columns: 84px 1fr; }
  .step { min-height: 46px; flex-wrap: wrap; row-gap: 4px; }
  .step-text { flex: 1 1 calc(100% - 110px); min-width: 0; }
  .step .rm { order: 4; }
  .step .qty { order: 5; margin-left: 50px; }
  .section-head { flex-direction: column; gap: 2px; }
  .box { width: 20px; height: 20px; }
  .qty { height: 34px; }
  .qty button { width: 34px; }
  .qty input { width: 42px; }

  .mtimer:not([hidden]) { display: flex; align-items: center; gap: 12px; position: fixed; z-index: 25; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); padding: 10px 10px 10px 14px; border-radius: 14px;
    background: var(--timer-bg); color: var(--timer-ink); box-shadow: var(--shadow-lg); }
  .mtimer .m-text { flex: 1; min-width: 0; }
  .mtimer .m-task { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .mtimer .m-proj { font-size: 12px; opacity: .65; display: flex; align-items: center; gap: 6px; }
  .mtimer .t-clock { font-size: 20px; }
  .mtimer .t-stop { width: 38px; height: 38px; }
  #toast { left: 16px; right: 16px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* =====================================================================
   Menzil 2: giriş, alanlar, menüler, etiketler, dosyalar, ekip
   ===================================================================== */

/* ---------- giriş ---------- */
.auth { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: var(--side); overflow-y: auto; }
.auth-card { width: 100%; max-width: 380px; }
.auth-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; margin-bottom: 36px; }
.auth-brand .brand-mark { width: 22px; height: 22px; }
.auth h1 { font-size: 28px; }
.auth-sub { color: var(--ink-2); margin: 8px 0 26px; font-size: 14px; line-height: 1.55; }
#auth-form { display: flex; flex-direction: column; gap: 14px; }
#auth-form input { height: 40px; font-size: 14.5px; background: var(--canvas); }
.btn.wide { width: 100%; height: 40px; justify-content: center; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: default; }
.auth-error { color: var(--late); font-size: 13px; line-height: 1.5; }
.auth-error.ok { color: var(--done); }
.auth-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.link b { color: var(--accent); font-weight: 600; }
.link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- alan seçici ---------- */
.ws-switch { display: flex; align-items: center; gap: 9px; width: 100%; height: 38px; padding: 0 8px; margin-bottom: 10px;
  border: 0; border-radius: var(--r); background: none; color: var(--ink); text-align: left; font-weight: 600; font-size: 14px; }
.ws-switch:hover { background: var(--hover); }
.ws-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ws-chev { width: 14px; height: 14px; color: var(--ink-3); }
.ws-ic { width: var(--s); height: var(--s); border-radius: 6px; display: inline-grid; place-items: center; flex: none;
  background: var(--c); color: #fff; font-size: calc(var(--s) * .55); font-weight: 700; line-height: 1; }
.ws-ic .ic { width: calc(var(--s) * .62); height: calc(var(--s) * .62); stroke-width: 2.2; }
.badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }

/* ---------- kullanıcı ---------- */
.user-btn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border: 0; border-radius: var(--r); background: none; color: var(--ink); text-align: left; }
.user-btn:hover { background: var(--hover); }
.u-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.u-text b { font-weight: 500; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.u-text small { color: var(--ink-3); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.u-more { color: var(--ink-3); }

/* ---------- kişi rozeti ---------- */
.av { width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--av); color: #fff; font-size: calc(var(--s) * .42); font-weight: 600; letter-spacing: .01em; line-height: 1; position: relative; }
.av.none { background: none; color: var(--ink-3); border: 1.3px dashed var(--ink-4); }
.av.none .ic { width: calc(var(--s) * .6); height: calc(var(--s) * .6); }
.av.live::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 7px; height: 7px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 2px var(--canvas); }
.as-btn { border: 0; background: none; padding: 2px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.as-btn:hover { background: var(--hover); }
.as-btn.multi { display: inline-flex; border-radius: 999px; padding: 2px 4px 2px 2px; }
.as-btn.multi .av { box-shadow: 0 0 0 2px var(--canvas); }
.as-btn.multi .av + .av, .as-btn.multi .av + .as-more { margin-left: -6px; }
.as-more { min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: var(--hover); color: var(--ink-2); font-size: 10.5px; font-weight: 600; display: inline-grid; place-items: center; box-shadow: 0 0 0 2px var(--canvas); }
.as-stack { display: inline-flex; }
.as-stack .av { box-shadow: 0 0 0 2px var(--canvas); }
.as-stack .av + .av { margin-left: -5px; }

/* ---------- satır parçaları ---------- */
.pr-btn { width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: none; padding: 0; border-radius: 5px; flex: none; }
.pr-btn:hover { background: var(--hover); }
.lbls { display: inline-flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.lbl-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-2); white-space: nowrap; background: var(--canvas); }
.lbl-chip .dot { width: 7px; height: 7px; }
.lbl-chip.more { color: var(--ink-3); }
.row .lbls { flex: none; max-width: 40%; flex-wrap: nowrap; overflow: hidden; }
.row .meta { gap: 10px; }
.m .av { margin: -2px 0; }
.btn.ghost { border-color: transparent; background: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.ghost.on { color: var(--accent); }
.btn .badge { height: 16px; min-width: 16px; font-size: 10.5px; }
.btn.danger { color: var(--late); border-color: color-mix(in srgb, var(--late) 40%, var(--line)); }
.btn.danger:hover { background: color-mix(in srgb, var(--late) 8%, var(--canvas)); }

/* ---------- açılır menü ---------- */
.pop-layer { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.pop { position: fixed; pointer-events: auto; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 4px; max-height: min(420px, calc(100vh - 16px)); display: flex; flex-direction: column; }
.pop-search { padding: 4px 4px 6px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.pop-search input { width: 100%; height: 30px; border: 0; background: var(--sunk); box-shadow: none !important; }
.pop-list { overflow-y: auto; display: flex; flex-direction: column; }
.pop-head { padding: 8px 8px 4px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.pop-item { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: none;
  color: var(--ink); text-align: left; font-size: 13px; width: 100%; flex: none; }
.pop-item:hover, .pop-item.active, .pop-item:focus-visible { background: var(--hover); outline: none; }
.pop-item .pi-label { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pop-item .pi-hint { color: var(--ink-3); font-size: 12px; }
.pop-item .pi-check { width: 14px; height: 14px; color: var(--accent); }
.pop-item > .ic { color: var(--ink-3); }
.pop-item.danger, .pop-item.danger > .ic { color: var(--late); }
.pop-item.create { color: var(--accent); }
.pop-item.create .ic { color: var(--accent); }
.pop-item .box { width: 15px; height: 15px; }
.pop-empty { padding: 10px 8px; color: var(--ink-3); font-size: 12.5px; }

/* ---------- görev paneli eklemeleri ---------- */
.prop-btn { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 8px; margin-left: -8px; border: 0; border-radius: 6px;
  background: none; color: var(--ink); font-size: 13px; max-width: 100%; }
.prop-btn:hover { background: var(--hover); }
.prop-btn span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prop-btn.icon-only { margin-left: 0; width: 24px; height: 24px; padding: 0; justify-content: center; color: var(--ink-3); }
.prop-btn .ic { width: 14px; height: 14px; color: var(--ink-3); }
.props dd.wrap { flex-wrap: wrap; gap: 4px 6px; padding: 4px 0; }
.files .file-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.file { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: var(--r-sm); }
.file:hover { background: var(--sunk); }
.file.uploading { opacity: .7; }
.f-ic { width: 36px; height: 36px; border-radius: 7px; background: var(--sunk); border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700; color: var(--ink-2); flex: none; letter-spacing: .02em; }
.f-ic .ic { width: 16px; height: 16px; color: var(--ink-3); }
.f-thumb { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; border: 1px solid var(--line); flex: none; background: var(--sunk); }
.f-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.f-name { border: 0; background: none; padding: 0; text-align: left; color: var(--ink); font-size: 13px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
button.f-name:hover { text-decoration: underline; text-underline-offset: 2px; }
.f-meta { font-size: 11.5px; color: var(--ink-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file .rm { visibility: hidden; }
.file:hover .rm { visibility: visible; }
.drop { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px dashed var(--ink-4); border-radius: var(--r); color: var(--ink-2); cursor: pointer; font-size: 13px; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.drop .ic { width: 15px; height: 15px; }
.drop .muted { font-size: 12px; }

/* ---------- bannerlar ---------- */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--side); }
.banner > .ic { color: var(--accent); width: 18px; height: 18px; }
.b-text { flex: 1; min-width: 0; color: var(--ink-2); line-height: 1.45; }
.b-text b { color: var(--ink); font-weight: 600; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- ekip: şu an çalışanlar ---------- */
.working { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.w-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.w-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.w-text b { font-weight: 500; }
.w-text span { color: var(--ink-3); font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-time { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--done); font-weight: 600; }
h2.with-ring { display: flex; align-items: center; gap: 8px; }

/* ---------- filtre çubuğu ---------- */
.filter-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px 0 14px; }
.filter-bar:empty { display: none; }
.f-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 9px; border-radius: 13px; background: var(--accent-soft); color: var(--ink); font-size: 12.5px; }
.f-chip .prio, .f-chip .dot { width: 12px; height: 12px; }
.f-chip .dot { width: 8px; height: 8px; }
.f-chip button { width: 18px; height: 18px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--ink-3); padding: 0; }
.f-chip button:hover { background: var(--canvas); color: var(--ink); }
.f-chip button .ic { width: 11px; height: 11px; }

/* ---------- eşitleme durumu ---------- */
.sync { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: color-mix(in srgb, var(--doing) 14%, var(--canvas)); color: var(--doing); font-size: 12px; font-weight: 500; white-space: nowrap; }
.sync .ic { width: 13px; height: 13px; }

/* ---------- diyalog içerikleri ---------- */
#dlg { width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; }
.dlg-form .muted { line-height: 1.55; font-size: 13px; }
.dlg-form .muted a { color: var(--accent); }
#dlg form.inline { display: flex; flex-direction: row; gap: 8px; padding: 0; }
.swatch.sm { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .auth { padding: calc(24px + env(safe-area-inset-top)) 20px 24px; place-items: start center; }
  .auth-brand { margin-bottom: 28px; }
  #auth-form input { height: 46px; }
  .btn.wide { height: 46px; }
  .row .lbls { order: 4; max-width: none; padding-left: 58px; flex-basis: 100%; }
  .row .meta { padding-left: 58px; }
  .pr-btn { width: 28px; height: 28px; }
  .board { grid-template-columns: 1fr; overflow: visible; }
  .top-actions .lbl { display: none; }
  .top-actions .btn { padding: 0 8px; }
  .sync span { display: none; }
  .banner { flex-wrap: wrap; }
  .banner .b-text { flex-basis: calc(100% - 34px); }
  .banner .btn { flex: 1; justify-content: center; height: 36px; }
  #dlg { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; margin: 0; }
  #dlg form.inline { flex-wrap: wrap; }
  .inline input { flex-basis: 100%; height: 42px; }
  .inline select, .inline .btn { height: 40px; flex: 1; justify-content: center; }
  .file .rm, .file .icon-btn { visibility: visible; }
  .pop-item { min-height: 42px; font-size: 14.5px; }
  .ws-switch { height: 44px; font-size: 15px; }
}

/* =====================================================================
   Menzil 2.1: Work, sayaç sıfırlama, AI, Ayarlar, İçe aktarma
   ===================================================================== */

/* ---------- ortak parçalar ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--sunk); color: var(--ink-2);
  font-size: 11.5px; font-weight: 500; white-space: nowrap; flex: none; }
.pill .ic { width: 12px; height: 12px; stroke-width: 2.2; }
.pill.sm { height: 17px; padding: 0 6px; font-size: 10.5px; }
.pill.ok { background: color-mix(in srgb, var(--done) 14%, var(--canvas)); color: var(--done); }
.pill.warn { background: color-mix(in srgb, var(--doing) 15%, var(--canvas)); color: var(--doing); }
.late { color: var(--late) !important; }
.nav-count.late { color: var(--late); font-weight: 600; }
.ws-ic.logo { object-fit: cover; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 12.5px; letter-spacing: -0.01em; }
.flip { transform: scaleX(-1); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12.5px; }
.btn.danger.primary, .btn.danger:disabled { opacity: .55; }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; justify-content: center; height: 28px; }

/* ---------- bildirim + geri al ---------- */
#toast { flex-direction: row; align-items: center; gap: 12px; }
#toast .t-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.toast-act { flex: none; height: 28px; padding: 0 12px; border-radius: var(--r-sm); border: 0; font-weight: 600; font-size: 12.5px;
  background: color-mix(in srgb, var(--timer-ink) 14%, transparent); color: var(--timer-ink); }
.toast-act:hover { background: color-mix(in srgb, var(--timer-ink) 24%, transparent); }

/* ---------- sayaç: sıfırla ---------- */
.t-btns { display: inline-flex; align-items: center; gap: 6px; }
.t-reset { width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; background: none;
  color: color-mix(in srgb, var(--timer-ink) 65%, transparent); }
.t-reset:hover { background: color-mix(in srgb, var(--timer-ink) 14%, transparent); color: var(--timer-ink); }
.t-reset .ic { width: 14px; height: 14px; }

/* ---------- Work ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); margin: -8px 0 26px; overflow: hidden; }
.stats > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats span { color: var(--ink-3); font-size: 12px; }
.stats b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.work-bar { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 0; background: none;
  color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.tabs .cnt, .section-head .cnt { font-size: 11.5px; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; background: var(--sunk); border-radius: 9px; padding: 1px 6px; }
.work-group .section-head h2 { font-size: 13.5px; }

/* ---------- görev paneli: süre kayıtları, salt okunur ---------- */
.time-log > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.time-log > summary::-webkit-details-marker { display: none; }
.time-log > summary h3 { margin: 0; flex: 1; }
.time-log > summary .chev { width: 14px; height: 14px; color: var(--ink-3); transition: transform .15s; transform: rotate(-90deg); }
.time-log[open] > summary .chev { transform: none; }
.tl-list { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--line-soft); }
.tl-row { display: flex; align-items: center; gap: 10px; min-height: 34px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.tl-when { flex: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-dur { font-variant-numeric: tabular-nums; font-weight: 500; }
.tl-dur.run { color: var(--accent); }
.tl-pad { width: 22px; flex: none; }
.ro-note { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r); background: var(--sunk); color: var(--ink-2); font-size: 12.5px; }
.ro-note .ic { width: 14px; height: 14px; color: var(--ink-3); }
.drawer.readonly .dr-title, .drawer.readonly .note { cursor: default; }

/* =====================================================================
   AI
   ===================================================================== */
.page.flush { padding: 0; max-width: none; }
.ai { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: calc(100vh - 50px); }
.ai-side { border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; min-height: 0; background: var(--canvas); }
.ai-side .btn.wide { height: 34px; font-size: 13px; }
.ai-search { width: 100%; height: 32px; background: var(--sunk); border-color: transparent; }
.ai-threads { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; margin: 0 -4px; padding: 0 4px; }
.th-group { font-size: 11.5px; color: var(--ink-3); font-weight: 500; padding: 12px 8px 4px; }
.th-group:first-child { padding-top: 2px; }
.th-item { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 9px; border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2); }
.th-item:hover { background: var(--hover); color: var(--ink); }
.th-item.on { background: var(--select); color: var(--ink); font-weight: 500; }
.th-item .dot { width: 6px; height: 6px; }
.th-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.th-more { visibility: hidden; }
.th-item:hover .th-more, .th-item.on .th-more { visibility: visible; }

.ai-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ai-head { display: flex; align-items: center; gap: 8px; padding: 10px 20px; }
.agent-chip { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px 0 6px; border-radius: var(--r); border: 0; background: none; text-align: left; }
.agent-chip:hover { background: var(--hover); }
.agent-chip > span:not(.ag-ic) { display: flex; flex-direction: column; line-height: 1.2; }
.agent-chip b { font-weight: 600; font-size: 13.5px; }
.agent-chip small { color: var(--ink-3); font-size: 11.5px; }
.agent-chip .chev { width: 14px; height: 14px; color: var(--ink-3); }
.ag-ic { width: var(--s); height: var(--s); border-radius: calc(var(--s) * .3); display: inline-grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c) 16%, var(--canvas)); color: var(--c); }
.ag-ic .ic { width: calc(var(--s) * .58); height: calc(var(--s) * .58); stroke-width: 1.8; }

.ai-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.ai-msgs { max-width: 760px; margin: 0 auto; padding: 12px 24px 24px; display: flex; flex-direction: column; gap: 22px; }
.ai-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 9vh 0 0; }
.ai-empty h1 { margin: 16px 0 6px; font-size: 24px; }
.ai-empty > p { color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
.sugg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 32px; }
.sugg-item { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas); }
.sugg-item:hover { border-color: var(--ink-4); background: var(--side); }
.sugg-item b { font-weight: 500; }
.sugg-item span { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }

.msg.user { display: flex; justify-content: flex-end; }
.msg.user .bubble { max-width: 78%; background: var(--sunk); padding: 9px 14px; border-radius: 16px 16px 4px 16px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.msg.bot { display: flex; gap: 12px; align-items: flex-start; }
.msg.bot > .ag-ic { margin-top: 1px; }
.bot-body { flex: 1; min-width: 0; }
.md { font-size: 14px; line-height: 1.65; word-break: break-word; }
.md > * + * { margin-top: 10px; }
.md h3, .md h4 { font-size: 14.5px; margin-top: 18px; }
.md h3:first-child, .md h4:first-child { margin-top: 0; }
.md ul, .md ol { padding-left: 20px; margin-bottom: 0; }
.md li + li { margin-top: 3px; }
.md code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 12.5px; background: var(--sunk); padding: 1px 5px; border-radius: 4px; }
.md pre.code { position: relative; background: var(--side); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; overflow-x: auto; }
.md pre.code code { background: none; padding: 0; font-size: 12.5px; line-height: 1.55; }
.code-copy { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 5px; background: var(--canvas); color: var(--ink-3); opacity: 0; }
pre.code:hover .code-copy { opacity: 1; }
.md blockquote { margin-left: 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--ink-2); }
.md hr { border: 0; border-top: 1px solid var(--line); }
.md a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.msg-tools { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; opacity: 0; transition: opacity .15s; }
.msg.bot:hover .msg-tools { opacity: 1; }
.typing { display: inline-flex; gap: 4px; padding: 10px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.ai-err { color: var(--late); margin-bottom: 10px; line-height: 1.5; }

.ai-tasks { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 14px; background: var(--canvas); }
.at-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--side); border-bottom: 1px solid var(--line); font-size: 13px; }
.at-head .ic { width: 14px; height: 14px; color: var(--accent); }
.at-list { display: flex; flex-direction: column; }
.at-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.at-item:hover { background: var(--side); }
.at-item input { margin: 3px 0 0; accent-color: var(--accent); }
.at-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.at-title { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.at-meta { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12px; }
.at-meta .ic { width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; }
.at-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.at-foot select { flex: 1; height: 30px; max-width: 280px; }
.ok-note { display: inline-flex; align-items: center; gap: 6px; color: var(--done); font-size: 13px; font-weight: 500; }
.ok-note .ic { width: 14px; height: 14px; }

.composer { max-width: 760px; width: calc(100% - 48px); margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas);
  box-shadow: var(--shadow); padding: 10px 10px 8px 14px; display: flex; flex-direction: column; gap: 6px; }
.composer:focus-within { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.composer textarea { border: 0; padding: 4px 0; resize: none; box-shadow: none !important; background: none; font-size: 14px; max-height: 220px; line-height: 1.5; }
.composer-bar { display: flex; align-items: center; gap: 8px; }
.composer-hint { font-size: 11.5px; color: var(--ink-3); }
.ctx-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--line); background: none; color: var(--ink-3); font-size: 12px; }
.ctx-chip .ic { width: 12px; height: 12px; }
.ctx-chip.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--accent-soft); }
.send { width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ink); color: var(--canvas); flex: none; }
.send:hover { filter: brightness(1.15); }
.send:disabled { opacity: .35; cursor: default; }
.send .ic { width: 15px; height: 15px; stroke-width: 2; }

/* AI kurulum ve ajanlar */
.ai-setup { max-width: 640px; margin: 0 auto; padding: 48px 24px 64px; }
.ai-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 30px; }
.ai-hero h1 { margin-top: 6px; }
.ai-hero p { color: var(--ink-2); line-height: 1.6; max-width: 52ch; }
.ai-hero .btn { margin-top: 10px; }
.prov-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.prov { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas); text-align: left; }
.prov:hover { border-color: var(--ink-4); }
.prov.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.prov b { font-weight: 600; }
.prov span { color: var(--ink-3); font-size: 11.5px; line-height: 1.35; }
.setup-form { display: flex; flex-direction: column; gap: 16px; }
.setup-form .hint a { color: var(--accent); }
.model-row { display: flex; gap: 8px; }
.model-row input { flex: 1; }
.agents { max-width: 820px; margin: 0 auto; padding: 18px 28px 64px; }
.ag-top { margin: 0 0 14px -10px; }
.ag-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ag-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ag-row + .ag-row { border-top: 1px solid var(--line-soft); }
.ag-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.ag-info b { font-weight: 600; }
.ag-info span { color: var(--ink-3); font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tpl-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas); text-align: left; }
.tpl-card:hover { border-color: var(--ink-4); background: var(--side); }
.tpl-card b { font-weight: 600; margin-top: 4px; }
.tpl-card span { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.agent-form textarea { min-height: 120px; }

/* =====================================================================
   Ayarlar
   ===================================================================== */
.settings { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 50px); align-items: start; }
.set-nav { position: sticky; top: 50px; display: flex; flex-direction: column; gap: 1px; padding: 18px 12px; border-right: 1px solid var(--line-soft); min-height: calc(100vh - 50px); }
.set-ws { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.set-ws > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.set-ws b { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.set-ws small { color: var(--ink-3); font-size: 11.5px; }
.set-group { font-size: 11.5px; color: var(--ink-3); font-weight: 500; padding: 14px 8px 4px; }
.set-tab { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); text-align: left; font-size: 13px; }
.set-tab:hover { background: var(--hover); color: var(--ink); }
.set-tab.on { background: var(--select); color: var(--ink); font-weight: 500; }
.set-tab .ic { width: 15px; height: 15px; color: var(--ink-3); }
.set-tab.on .ic { color: var(--ink); }
.set-tab span:first-of-type { flex: 1; }
.set-body { padding: 32px 40px 80px; max-width: 840px; width: 100%; min-width: 0; }
.set-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.set-head > div { flex: 1; min-width: 0; }
.set-head h1 { font-size: 22px; }
.set-head p { margin-top: 6px; color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.set-sub { font-size: 13px; font-weight: 600; margin: 30px 0 10px; }
.set-sub.first { margin-top: 0; }
.set-sub.danger { color: var(--late); }
.set-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: var(--canvas); display: flex; flex-direction: column; gap: 16px; }
.set-card + .set-card { margin-top: 12px; }
.set-card.flush-card { padding: 0; gap: 0; overflow: hidden; }
.set-form { display: flex; flex-direction: column; gap: 16px; }
.set-form .field select, .set-form .field input:not([type=checkbox]):not([type=radio]) { height: 34px; }
.set-actions { display: flex; align-items: center; gap: 8px; }
.set-actions.center { justify-content: center; }
.card-title { display: flex; align-items: center; gap: 10px; }
.card-title b { font-weight: 600; }
.card-title .muted { margin-left: auto; font-size: 12.5px; }
.pad { padding: 16px 18px; }
.small { font-size: 12px; line-height: 1.5; margin-top: 10px; }
.empty-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 30px 20px; color: var(--ink-3); }
.empty-mini > .ic { width: 22px; height: 22px; margin-bottom: 6px; }
.empty-mini b { color: var(--ink); font-weight: 500; }
.empty-mini small { font-size: 12.5px; max-width: 46ch; line-height: 1.5; }

.logo-row { display: flex; align-items: center; gap: 16px; }
.logo-box { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; background: var(--side); }
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 28px; font-weight: 700; }
.logo-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.logo-txt b { font-weight: 600; }
.logo-txt small { color: var(--ink-3); font-size: 12.5px; }
.logo-txt .row-actions { margin-top: 8px; }
.logo-txt label.btn { cursor: pointer; }
.meta-card { flex-direction: row; flex-wrap: wrap; gap: 0; padding: 0; }
.meta-card > div { flex: 1 1 140px; display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; position: relative; }
.meta-card > div + div { border-left: 1px solid var(--line-soft); }
.meta-card small { color: var(--ink-3); font-size: 12px; }
.meta-card b { font-weight: 500; }
.meta-card .copy { position: absolute; right: 10px; bottom: 12px; }
.danger-card { border-color: color-mix(in srgb, var(--late) 30%, var(--line)); }
.danger-row { display: flex; align-items: center; gap: 16px; }
.danger-row > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.danger-row b { font-weight: 600; }
.danger-row small { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }

/* tablolar */
.tbl { display: flex; flex-direction: column; }
.tbl-tools { padding: 12px; border-bottom: 1px solid var(--line-soft); }
.tbl-tools .ai-search { max-width: 320px; }
.tbl-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 16px; }
.tbl-row + .tbl-row { border-top: 1px solid var(--line-soft); }
.tbl-row.th { min-height: 34px; color: var(--ink-3); font-size: 12px; font-weight: 500; background: var(--side); }
.tbl-row .grow { flex: 1; min-width: 0; }
.tbl-row .w-role { width: 120px; flex: none; }
.tbl-row .w-date { width: 104px; flex: none; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tbl-row .w-act { width: 64px; flex: none; display: flex; justify-content: flex-end; }
.person { display: flex; align-items: center; gap: 11px; }
.person > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.person b { font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.person small { color: var(--ink-3); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.role-sel { height: 28px; font-size: 12.5px; width: 100%; }
.role-tag { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 11px; background: var(--sunk); font-size: 12px; color: var(--ink-2); }
.role-tag.owner { background: var(--accent-soft); color: var(--accent); }
.role-tag.guest { background: color-mix(in srgb, var(--doing) 12%, var(--canvas)); color: var(--doing); }
.inline-input { height: 30px; border-color: transparent; background: none; }
.inline-input:hover:not(:disabled) { border-color: var(--line); }
.add-row { flex-direction: row; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; }
.add-row input { flex: 1; height: 32px; border-color: transparent; background: none; box-shadow: none !important; padding-left: 2px; }
.add-row .swatch { cursor: pointer; flex: none; }

.perm { display: flex; flex-direction: column; }
.perm-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 76px); align-items: center; min-height: 38px; padding: 0 16px; font-size: 12.5px; }
.perm-row + .perm-row { border-top: 1px solid var(--line-soft); }
.perm-row > span:not(:first-child) { text-align: center; }
.perm-row.th { background: var(--side); color: var(--ink-3); font-weight: 500; font-size: 12px; min-height: 34px; }
.perm-row.th span { cursor: help; }
.perm .yes { width: 14px; height: 14px; color: var(--done); stroke-width: 2.2; }
.perm .no { color: var(--ink-4); font-style: normal; }

.join-card { flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 14px; }
.jc-row { display: flex; align-items: center; gap: 16px; }
.jc-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jc-txt b { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.jc-txt b .ic { width: 14px; height: 14px; color: var(--accent); }
.jc-txt small { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.jc-act { display: flex; align-items: center; gap: 6px; flex: none; }
.join-code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 14px; font-weight: 600; letter-spacing: .12em; padding: 6px 10px; border-radius: var(--r-sm); background: var(--sunk); }
.role-pick { display: flex; flex-direction: column; gap: 6px; }
.role-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.role-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.role-opt input { margin: 2px 0 0; accent-color: var(--accent); }
.role-opt span { display: flex; flex-direction: column; gap: 2px; }
.role-opt b { font-weight: 500; color: var(--ink); }
.role-opt small { color: var(--ink-3); font-size: 12px; line-height: 1.45; }

/* plan ve faturalama */
.banner.warn > .ic { color: var(--doing); }
.plan-now { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
.plan-now > div:first-child { flex: 1; min-width: 220px; }
.plan-now small { color: var(--ink-3); font-size: 12px; }
.plan-now h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; }
.usage { display: flex; gap: 28px; }
.usage > div { display: flex; flex-direction: column; gap: 2px; min-width: 70px; }
.usage b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.plans-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 10px; }
.plans-head .set-sub { margin: 0; }
.seg .save { color: var(--done); font-size: 11px; font-weight: 600; margin-left: 2px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan.current { background: var(--side); }
.plan h4 { margin: 0; font-size: 15px; font-weight: 600; }
.plan > .muted { font-size: 12.5px; }
.plan-flag { position: absolute; top: -10px; left: 16px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.price b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.price small { color: var(--ink-3); font-size: 12px; }
.plan ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.plan li .ic { width: 14px; height: 14px; color: var(--done); margin-top: 1px; stroke-width: 2.2; }
.plan .btn.wide { height: 34px; font-size: 13px; }

/* kimlik */
.dom { gap: 14px; }
.dom-head { display: flex; align-items: center; gap: 10px; }
.dom-head > .ic { color: var(--ink-3); }
.dom-head b { font-weight: 600; font-size: 14px; }
.dom .switch { align-items: flex-start; color: var(--ink); }
.dom .switch input { margin-top: 2px; flex: none; }
.dom .switch span { display: flex; flex-direction: column; gap: 2px; }
.dom .switch small { color: var(--ink-3); font-size: 12px; line-height: 1.45; }
.inline-field { flex-direction: row; align-items: center; gap: 10px; }
.inline-field select { height: 30px; width: 140px; }
.dns-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); line-height: 1.5; }
.dns-steps code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 12px; }
.dns-rec { display: flex; gap: 0; margin: 8px 0 6px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dns-rec > div { display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; position: relative; min-width: 0; }
.dns-rec > div.grow { flex: 1; }
.dns-rec > div + div { border-left: 1px solid var(--line); }
.dns-rec small { color: var(--ink-3); font-size: 11px; }
.dns-rec code { color: var(--ink); font-size: 12.5px; padding-right: 26px; word-break: break-all; }
.dns-rec .copy { position: absolute; right: 6px; bottom: 6px; }
.soon-card { gap: 0; padding: 0; }
.soon-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.soon-row + .soon-row { border-top: 1px solid var(--line-soft); }
.soon-row > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.soon-row b { font-weight: 500; }
.soon-row small { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.soon-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--sunk); display: grid; place-items: center; color: var(--ink-3); flex: none; }

/* dışa aktar: yapım aşamasında */
.wip { align-items: center; text-align: center; padding: 40px 24px; gap: 10px; }
.wip-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.wip-ic .ic { width: 22px; height: 22px; }
.wip h3 { font-size: 16px; margin-top: 6px; }
.wip > p { max-width: 50ch; line-height: 1.55; }
.wip-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 16px; }
.wip-list > div { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px; border: 1px dashed var(--line); border-radius: var(--r); }
.wip-list .ic { color: var(--ink-3); margin-top: 1px; }
.wip-list span { display: flex; flex-direction: column; gap: 2px; }
.wip-list b { font-weight: 500; }
.wip-list small { color: var(--ink-3); font-size: 12px; line-height: 1.4; }

/* içe aktar */
.src-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.src-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas); text-align: left; min-height: 66px; }
.src-card:hover { border-color: var(--ink-4); background: var(--side); }
.src-card .go { width: 14px; height: 14px; color: var(--ink-3); opacity: 0; transition: opacity .15s, transform .15s; }
.src-card:hover .go { opacity: 1; transform: translateX(2px); }
.src-card.soon .src-ic { filter: grayscale(.6); opacity: .7; }
.src-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.src-txt b { font-weight: 600; }
.src-txt small { color: var(--ink-3); font-size: 12px; }
.src-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.src-ic.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.imp-history { margin-top: 8px; }
.imp-history .tbl { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.imp-history .tbl-row { min-height: 44px; font-size: 13px; }
.stepper { display: flex; gap: 6px; list-style: none; margin: -6px 0 20px; padding: 0; flex-wrap: wrap; }
.stepper li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); padding-right: 10px; }
.stepper li + li::before { content: ''; width: 18px; height: 1px; background: var(--line); margin-right: 4px; }
.stepper li > span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--sunk); }
.stepper li.cur { color: var(--ink); font-weight: 500; }
.stepper li.cur > span { background: var(--accent); color: var(--accent-ink); }
.stepper li.past > span { background: color-mix(in srgb, var(--done) 16%, var(--canvas)); color: var(--done); }
.stepper li.past > span .ic { width: 11px; height: 11px; stroke-width: 3; }
.set-card .drop { flex-direction: column; justify-content: center; gap: 6px; padding: 32px; text-align: center; }
.set-card .drop .ic { width: 22px; height: 22px; }
.set-card .drop small { color: var(--ink-3); font-size: 12px; }
.set-card a { color: var(--accent); }
.pick-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; border: 1px solid var(--line-soft); border-radius: var(--r); }
.pick-row { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; cursor: pointer; }
.pick-row + .pick-row { border-top: 1px solid var(--line-soft); }
.pick-row:hover { background: var(--side); }
.pick-row input { accent-color: var(--accent); margin: 0; }
.pick-row span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pick-row small { color: var(--ink-3); font-size: 12px; }
.map-table { display: flex; flex-direction: column; }
.map-row { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: 12px; min-height: 42px; }
.map-row + .map-row { border-top: 1px solid var(--line-soft); }
.map-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-row select, .map-row input { height: 30px; }
.map-row .ic { width: 14px; height: 14px; }
.map-sample { color: var(--ink-3); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.req { color: var(--late); font-style: normal; }
.pv-list { display: flex; flex-direction: column; gap: 4px; }
.pv-row { display: flex; align-items: center; gap: 10px; }
.pv-row input { flex: 1; height: 32px; }
.done-card { align-items: center; text-align: center; padding: 36px 24px; gap: 8px; }
.big-ok { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: color-mix(in srgb, var(--done) 15%, var(--canvas)); color: var(--done); stroke-width: 2.4; }
.done-card h3 { font-size: 16px; margin-top: 4px; }
.done-card .set-actions { margin-top: 10px; }

@media (max-width: 1100px) {
  .src-grid, .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .row2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -12px; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats b { font-size: 19px; }
  .tabs button { height: 42px; }
  .t-reset { width: 38px; height: 38px; }

  .ai { grid-template-columns: 1fr; height: calc(100dvh - 52px - env(safe-area-inset-top)); position: relative; }
  .ai-side { position: absolute; z-index: 5; inset: 0 auto 0 0; width: 84%; max-width: 320px; transform: translateX(-102%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .ai.show-threads .ai-side { transform: none; }
  .ai-head { padding: 6px 8px; }
  .ai-msgs { padding: 8px 16px 20px; }
  .sugg { grid-template-columns: 1fr; margin-top: 22px; }
  .ai-empty { padding-top: 4vh; }
  .composer { width: calc(100% - 20px); margin-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .composer-hint { display: none; }
  .msg.user .bubble { max-width: 88%; }
  .msg-tools { opacity: 1; }
  .th-more { visibility: visible; }
  .ai-setup { padding: 24px 16px 48px; }
  .model-row { flex-direction: column; }
  .agents { padding: 12px 16px 48px; }
  .ag-row { flex-wrap: wrap; }
  .tpl-grid, .src-grid, .wip-list { grid-template-columns: 1fr; }

  .settings { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 8px 12px; gap: 4px; }
  .set-ws, .set-group { display: none; }
  .set-tab { flex: none; height: 36px; padding: 0 12px; }
  .set-tab .ic { display: none; }
  .set-body { padding: 20px 16px 120px; }
  .set-head { flex-direction: column; gap: 10px; }
  .tbl-row { padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
  .tbl-row .w-date { display: none; }
  .tbl-row .w-role { width: 104px; }
  .tbl-row .w-act { width: auto; }
  .perm-row { grid-template-columns: minmax(0, 1fr) repeat(4, 44px); padding: 0 10px; font-size: 12px; }
  .perm-row.th { font-size: 10.5px; }
  .jc-row, .danger-row, .plan-now { flex-direction: column; align-items: stretch; }
  .jc-act { flex-wrap: wrap; }
  .usage { gap: 18px; }
  .meta-card > div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .meta-card > div { flex-basis: 100%; }
  .dns-rec { flex-direction: column; }
  .dns-rec > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .map-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 4px; padding: 6px 0; }
  .map-row > .ic, .map-sample { display: none; }
  .plans-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* dar masaüstü penceresi: ayar menüsü üstte sekme olur */
@media (max-width: 1080px) {
  .settings { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .set-nav { position: sticky; top: 50px; z-index: 5; flex-direction: row; align-items: center; overflow-x: auto; scrollbar-width: none; min-height: 0;
    border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 8px 20px; gap: 2px; background: color-mix(in srgb, var(--canvas) 94%, transparent); backdrop-filter: blur(8px); }
  .set-ws, .set-group { display: none; }
  .set-tab { flex: none; height: 32px; padding: 0 10px; }
  .set-body { padding: 26px 28px 80px; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .set-nav { top: calc(52px + env(safe-area-inset-top)); padding: 8px 12px; } }

.add-row input { width: 0; }
.dom-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  body:has(.mtimer:not([hidden])) .ai { height: calc(100dvh - 52px - 78px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
}

/* ---------- uygulama ve güncelleme ---------- */
.ver-row { display: flex; gap: 0; border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.ver-row > div { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.ver-row > div + div { border-left: 1px solid var(--line-soft); }
.ver-row small { color: var(--ink-3); font-size: 12px; }
.ver-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.upd-status { display: flex; align-items: center; gap: 10px; color: var(--ink-2); line-height: 1.5; }
.upd-status .ic { color: var(--ink-3); }
.upd-status.ok .ic { color: var(--done); }
.upd-status.warn .ic { color: var(--doing); }
.upd-notes { padding: 12px 14px; border-radius: var(--r); background: var(--side); }
.upd-notes > b { display: block; margin-bottom: 6px; }
.upd-notes .md { font-size: 13px; }
.ic.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .ver-row { flex-direction: column; } .ver-row > div + div { border-left: 0; border-top: 1px solid var(--line-soft); } }
.upd-pill { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: 12.5px; text-align: left; }
.upd-pill .dot { --c: var(--accent); width: 7px; height: 7px; }
.upd-pill span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.upd-pill b { color: var(--accent); font-weight: 600; }
.upd-pill:hover { filter: brightness(.98); }

/* =====================================================================
   2.3: proje emojisi, kimlik, erişim, yeni proje penceresi, görev bulma
   ===================================================================== */
.emo { display: inline-block; flex: none; object-fit: contain; vertical-align: middle; user-select: none; -webkit-user-drag: none; }
.emo.txt { display: inline-grid; place-items: center; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.p-emo { margin: -2px 0; }
.nav-lock { color: var(--ink-3); display: inline-grid; }
.nav-lock .ic { width: 12px; height: 12px; }
.nav-kbd { font-family: inherit; font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; line-height: 16px; background: var(--canvas); }

/* proje başlığı */
.p-title { display: flex; align-items: center; gap: 14px; }
.p-emoji { width: 56px; height: 56px; border-radius: 14px; border: 0; background: none; display: grid; place-items: center; flex: none; padding: 0; transition: background .15s; }
.p-emoji:not(:disabled):hover { background: var(--hover); }
.p-emoji.add { border: 1.5px dashed var(--ink-4); color: var(--ink-3); width: 44px; height: 44px; border-radius: 12px; }
.p-emoji.add:hover { color: var(--ink); border-color: var(--ink-3); }
.p-badges { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.p-key { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; background: var(--sunk); color: var(--ink-2); }
.p-access { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--ink-2); font-size: 12px; }
.p-access:hover { background: var(--hover); color: var(--ink); }
.p-access .ic { width: 13px; height: 13px; }
.p-avs { display: inline-flex; margin-left: 2px; }
.p-avs .av { box-shadow: 0 0 0 2px var(--canvas); }
.p-avs .av + .av { margin-left: -5px; }

/* görev kimliği */
.t-key { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 11.5px; color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; min-width: 52px; }
.c-foot .t-key { min-width: 0; margin-right: 2px; }
.card .c-foot { padding-left: 4px; }
.dr-key { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; margin-left: 4px; border: 0; border-radius: 5px; background: var(--sunk); color: var(--ink-2);
  font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 11.5px; flex: none; }
.dr-key:hover { background: var(--select); color: var(--ink); }
.dr-key .ic { width: 12px; height: 12px; }

/* yeni proje penceresi */
#dlg.wide-dlg { width: 640px; }
.pdlg { gap: 18px !important; padding: 22px 24px !important; }
.pd-head { display: flex; align-items: baseline; gap: 10px; }
.pd-head .muted { font-size: 12.5px; }
.pd-top { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--side); }
.pd-emoji { width: 64px; height: 64px; flex: none; border-radius: 16px; border: 0; padding: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 13%, var(--canvas)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); transition: transform .12s; }
.pd-emoji:hover { transform: scale(1.04); }
.pd-emoji-ph { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--c); }
.pd-emoji-ph .ic { width: 20px; height: 20px; }
.pd-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-title-in { font-size: 19px !important; font-weight: 600; letter-spacing: -0.01em; border: 0 !important; background: none !important; box-shadow: none !important; padding: 6px 2px !important; }
.pd-desc-in { border: 0 !important; background: none !important; box-shadow: none !important; padding: 4px 2px !important; color: var(--ink-2); font-size: 13.5px; }
.pd-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pd-tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--canvas); text-align: left; color: var(--ink); }
.pd-tpl .ic { color: var(--ink-3); margin-bottom: 4px; }
.pd-tpl b { font-weight: 600; font-size: 13px; }
.pd-tpl small { color: var(--ink-3); font-size: 11.5px; line-height: 1.4; }
.pd-tpl:hover { border-color: var(--ink-4); }
.pd-tpl.on { border-color: var(--accent); background: var(--accent-soft); }
.pd-tpl.on .ic { color: var(--accent); }
.pd-grid { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.pd-ident { height: 34px; font-size: 14px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.field .hint b { color: var(--ink); font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-weight: 600; font-size: 11.5px; }
.field .hint.bad { color: var(--late); }
.pd-access { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; color: var(--ink); }
.acc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.acc-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.acc-opt.disabled { cursor: default; opacity: .7; }
.acc-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--sunk); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.acc-opt.on .acc-ic { background: var(--canvas); color: var(--accent); }
.acc-opt > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.acc-opt b { font-weight: 600; font-size: 13px; }
.acc-opt small { color: var(--ink-3); font-size: 12px; line-height: 1.4; }
.acc-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.pd-members { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 10px; border: 1px dashed var(--line); border-radius: var(--r); }
.pm-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 4px; border-radius: 14px; background: var(--sunk); font-size: 12.5px; color: var(--ink); }
.pm-chip > span:not(.av) { padding-right: 4px; }
.pm-chip small { color: var(--ink-3); font-size: 11px; padding-right: 6px; }
.pm-x { width: 20px; height: 20px; border-radius: 50%; border: 0; background: none; color: var(--ink-3); display: grid; place-items: center; padding: 0; }
.pm-x:hover { background: var(--canvas); color: var(--ink); }
.pm-x .ic { width: 11px; height: 11px; }
.pd-more { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.pd-more > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-2); font-size: 13px; list-style: none; }
.pd-more > summary::-webkit-details-marker { display: none; }
.pd-more > summary .ic { width: 14px; height: 14px; color: var(--ink-3); }
.pd-more > summary .muted { margin-left: auto; font-size: 12px; }
.pd-more[open] > summary { margin-bottom: 10px; }
.pd-more .hint { display: block; margin-top: 6px; color: var(--ink-3); font-size: 12px; }

/* emoji seçici */
.emo-pick { display: flex; flex-direction: column; min-height: 0; }
.emo-top { display: flex; gap: 6px; padding: 4px 4px 6px; }
.emo-search { flex: 1; height: 32px; border: 0; background: var(--sunk); box-shadow: none !important; }
.emo-tabs { display: flex; gap: 2px; padding: 0 2px 6px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; }
.emo-tabs button { width: 30px; height: 30px; flex: none; border: 0; border-radius: 6px; background: none; display: grid; place-items: center; padding: 0; opacity: .8; }
.emo-tabs button:hover { background: var(--hover); opacity: 1; }
.emo-grid { overflow-y: auto; height: 300px; padding: 2px; }
.emo-cat { font-size: 11.5px; color: var(--ink-3); font-weight: 500; padding: 10px 6px 4px; position: sticky; top: 0; background: var(--canvas); z-index: 1; }
.emo-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; }
.emo-cell { aspect-ratio: 1; border: 0; border-radius: 8px; background: none; display: grid; place-items: center; padding: 0; transition: transform .1s; }
.emo-cell:hover { background: var(--hover); transform: scale(1.12); }
.emo-cell.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.emo-empty { padding: 30px 10px; text-align: center; color: var(--ink-3); font-size: 12.5px; }

/* görev bul */
.fd-close { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.fd-close span { display: none; color: var(--accent); font-weight: 600; font-size: 15px; }
#dlg.finder-dlg { width: 620px; margin-top: 12vh; padding: 0; }
.finder { display: flex; flex-direction: column; }
.fd-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.fd-in .ic { color: var(--ink-3); }
.fd-in input { flex: 1; height: 52px; border: 0; box-shadow: none !important; font-size: 15px; background: none; padding: 0; }
.fd-in kbd { font-family: inherit; font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.fd-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.fd-sec { font-size: 11.5px; color: var(--ink-3); padding: 6px 10px 4px; font-weight: 500; }
.fd-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 7px; background: none; text-align: left; color: var(--ink); }
.fd-row.on, .fd-row:hover { background: var(--hover); }
.fd-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fd-proj { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12px; max-width: 40%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fd-empty { padding: 28px 10px; text-align: center; color: var(--ink-3); }

@media (max-width: 760px) {
  #dlg.wide-dlg { width: 100vw; }
  .pd-access { grid-template-columns: 1fr; }
  .pd-tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-tpl { padding: 10px; align-items: center; text-align: center; }
  .pd-tpl small { display: none; }
  .pd-tpl .ic { margin-bottom: 2px; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-top { padding: 10px; }
  .pd-emoji { width: 56px; height: 56px; }
  .t-key { display: none; }
  .p-emoji { width: 48px; height: 48px; }
  #dlg.finder-dlg { width: 100vw; margin-top: 0; }
  .fd-close kbd { display: none; }
  .fd-close span { display: inline; }
  .nav-kbd { display: none; }
  .emo-row { grid-template-columns: repeat(7, 1fr); }
}
.pop-list { min-height: 0; }
.pop > .emo-pick { flex: 1; min-height: 0; }
.emo-grid { flex: 1 1 300px; min-height: 60px; }

/* =====================================================================
   UI kiti: işletim sistemi bileşenlerinin yerine geçenler
   ===================================================================== */
/* Windows: kendi başlık çubuğumuz (pencere düğmeleri sağ üstte, uygulamanın renginde) */
:root[data-os="win32"] .drag { height: 50px; pointer-events: none; }
:root[data-os="win32"] .topbar { padding-right: 150px; }
:root[data-os="win32"] .dr-head { padding-right: 146px; }
:root[data-os="win32"] .auth { padding-top: 56px; }
dialog, .pop, .tip { -webkit-app-region: no-drag; }

/* kaydırma çubukları */
* { scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink-3) 45%, transparent); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--ink-3) 75%, transparent); }
::-webkit-scrollbar-corner { background: transparent; }

/* onay kutusu ve seçenek düğmesi */
input[type=checkbox]:not(.switch input), input[type=radio] {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; flex: none; border: 1.5px solid var(--ink-4); background: var(--canvas);
  border-radius: 4px; display: inline-grid; place-items: center; cursor: pointer; transition: background .12s, border-color .12s; padding: 0; vertical-align: middle; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:not(.switch input):hover, input[type=radio]:hover { border-color: var(--ink-3); }
input[type=checkbox]:not(.switch input):checked { background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat; }
input[type=radio]:checked { border-color: var(--accent); box-shadow: inset 0 0 0 3.5px var(--canvas); background: var(--accent); }
input[type=checkbox]:disabled, input[type=radio]:disabled { opacity: .5; cursor: default; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* gizlenen yerel alanlar */
.ui-native { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; overflow: hidden; }

/* açılır liste */
.ui-select { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 32px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--canvas); color: var(--ink); text-align: left; font-size: 13.5px; cursor: pointer; }
.ui-select:hover:not(:disabled) { border-color: var(--ink-4); }
.ui-select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ui-select:disabled { cursor: default; color: var(--ink-3); background: var(--sunk); }
.ui-select .us-label { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ui-select.placeholder .us-label { color: var(--ink-3); }
.ui-select .us-chev { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.field .ui-select, .map-row .ui-select, .at-foot .ui-select, .set-form .ui-select { width: 100%; }
.set-form .field .ui-select { height: 34px; }
.ui-select.role-sel { height: 28px; font-size: 12.5px; width: 100%; }
.inline-field .ui-select { width: 150px; height: 30px; }
.at-foot .ui-select { max-width: 280px; height: 30px; }
.map-row .ui-select { height: 30px; }

/* tarih seçici */
.ui-date { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--canvas);
  color: var(--ink); font-size: 13px; cursor: pointer; min-width: 0; }
.ui-date .ic { width: 14px; height: 14px; color: var(--ink-3); }
.ui-date:hover:not(:disabled) { border-color: var(--ink-4); }
.props .ui-date { border-color: transparent; margin-left: -10px; height: 28px; }
.props .ui-date:hover { background: var(--hover); border-color: transparent; }
.field .ui-date { height: 34px; width: 100%; }
.dp { padding: 6px 6px 4px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; }
.dp-head b { font-weight: 600; font-size: 13.5px; }
.ic.rot90 { transform: rotate(90deg); }
.ic.rot-90 { transform: rotate(-90deg); }
.dp-w, .dp-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-w span { text-align: center; font-size: 11px; color: var(--ink-3); padding: 4px 0; font-weight: 500; }
.dp-d { aspect-ratio: 1; border: 0; border-radius: 7px; background: none; font-size: 12.5px; color: var(--ink); font-variant-numeric: tabular-nums; padding: 0; }
.dp-d:hover:not(:disabled) { background: var(--hover); }
.dp-d.today { color: var(--accent); font-weight: 700; }
.dp-d.sel { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.dp-d:disabled { color: var(--ink-4); cursor: default; }
.dp-q { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 0 2px; margin-top: 6px; border-top: 1px solid var(--line-soft); }
.dp-chip { height: 26px; padding: 0 9px; border-radius: 13px; border: 1px solid var(--line); background: var(--canvas); font-size: 12px; color: var(--ink-2); }
.dp-chip:hover { background: var(--hover); color: var(--ink); }
.dp-chip.clear { color: var(--late); border-color: transparent; }

/* ipucu */
.tip { position: fixed; z-index: 200; max-width: 280px; padding: 5px 9px; border-radius: 6px; background: var(--timer-bg); color: var(--timer-ink); font-size: 12px; line-height: 1.4;
  pointer-events: none; opacity: 0; transform: translateY(2px); transition: opacity .12s, transform .12s; box-shadow: var(--shadow); }
.tip.show { opacity: 1; transform: none; }

/* onay penceresi */
.ask-dlg { width: 400px; padding: 0; }
.ask { display: grid !important; grid-template-columns: 40px 1fr; gap: 14px 14px !important; padding: 22px !important; }
.ask-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ask-ic.danger { background: color-mix(in srgb, var(--late) 12%, var(--canvas)); color: var(--late); }
.ask-txt h2 { font-size: 15.5px; line-height: 1.35; margin-top: 2px; }
.ask-txt p { margin-top: 6px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.ask-act { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.btn.danger-solid { background: var(--late); border-color: var(--late); color: #fff; }
.btn.danger-solid:hover { filter: brightness(1.06); }
@media (max-width: 760px) { .ask-dlg { width: calc(100vw - 24px); } .ask-act .btn { flex: 1; justify-content: center; height: 40px; } }

/* ---------- bildirimler ---------- */
.badge-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink) !important; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.inbox { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pop > .inbox { flex: 1; min-height: 0; }
.ib-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line-soft); }
.ib-head b { font-weight: 600; font-size: 14px; }
.ib-list { overflow-y: auto; min-height: 0; padding: 4px; }
.ib-item { display: flex; gap: 10px; padding: 10px; border-radius: 8px; position: relative; }
.ib-item + .ib-item { margin-top: 2px; }
.ib-item.new { background: var(--accent-soft); }
.ib-item.new::after { content: ''; position: absolute; right: 10px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ib-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--sunk); color: var(--ink-2); }
.lv-update .ib-ic { color: var(--accent); }
.lv-warning .ib-ic { background: color-mix(in srgb, var(--doing) 15%, var(--canvas)); color: var(--doing); }
.lv-success .ib-ic { background: color-mix(in srgb, var(--done) 15%, var(--canvas)); color: var(--done); }
.ib-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-right: 12px; }
.ib-top { display: flex; align-items: baseline; gap: 8px; }
.ib-top b { flex: 1; font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.ib-top time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.ib-body { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ib-body > * + * { margin-top: 6px; }
.ib-main .btn { align-self: flex-start; margin-top: 4px; }
#desk-prefs .switch, #ntf-kinds .switch { align-items: flex-start; color: var(--ink); }
#desk-prefs .switch input, #ntf-kinds .switch input { margin-top: 2px; flex: none; }
#desk-prefs .switch span, #ntf-kinds .switch span { display: flex; flex-direction: column; gap: 2px; }
#desk-prefs .switch small, #ntf-kinds .switch small { color: var(--ink-3); font-size: 12px; line-height: 1.45; }

/* ---------- 3.0: bildirim sekmeleri ---------- */
.ib-tabs { margin-left: auto; }
.ib-tabs .badge-dot { margin-left: 2px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.ib-item.me { cursor: pointer; }
.ib-item.me:hover { background: var(--hover); }
.ib-item.me.new:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--hover)); }
.ib-item.me:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ib-av { position: relative; flex: none; width: 30px; height: 30px; }
.ib-av > .av { font-size: 11.5px; }
.ib-kind { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); color: var(--accent); box-shadow: 0 0 0 1.5px var(--canvas); }
.ib-kind .ic { width: 11px; height: 11px; }
.ib-item.me .ib-body { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- 3.0: görev etkinliği (yorumlar + geçmiş) ---------- */
.activity { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.act-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.act-empty { color: var(--ink-3); font-size: 13px; padding: 4px 0 8px; }
.act-ev { display: flex; align-items: baseline; gap: 8px; padding: 4px 0 4px 9px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.act-ev b { color: var(--ink-2); font-weight: 500; }
.act-ev time { margin-left: auto; font-size: 11.5px; white-space: nowrap; padding-left: 8px; }
.act-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); flex: none; position: relative; top: -1px; }
.cmt { display: flex; gap: 10px; padding: 10px 0; }
.cmt + .cmt, .act-ev + .cmt, .cmt + .act-ev { border-top: 1px solid var(--line-soft); }
.cmt.pending { opacity: .6; }
.cmt.failed .cmt-top time { color: var(--late); }
.cmt-main { flex: 1; min-width: 0; }
.cmt-top { display: flex; align-items: center; gap: 6px; min-height: 22px; font-size: 13px; }
.cmt-top b { font-weight: 600; }
.cmt-top time, .cmt-top .muted { font-size: 11.5px; color: var(--ink-3); }
.cmt-more { margin-left: auto; opacity: 0; transition: opacity .12s; }
.cmt:hover .cmt-more, .cmt-more:focus-visible { opacity: 1; }
@media (hover: none) { .cmt-more { opacity: 1; } }
.cmt-body { font-size: 13.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; margin-top: 2px; }
.cmt-body a { color: var(--accent); }
.mention { display: inline-block; padding: 0 4px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.mention.me { background: var(--accent); color: var(--accent-ink); }
.cmt-edit textarea { width: 100%; margin-top: 4px; resize: vertical; min-height: 60px; }
.cmt-edit-act { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.cmt-form { position: relative; }
.cmt-box { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 10px; background: var(--canvas); transition: border-color .12s, box-shadow .12s; }
.cmt-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cmt-box textarea { flex: 1; border: 0; padding: 4px 0; resize: none; background: none; box-shadow: none !important; min-height: 24px; line-height: 1.5; font-size: 13.5px; }
.cmt-box .btn { flex: none; }
.cmt-hint { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; text-align: right; }
@media (hover: none) { .cmt-hint { display: none; } }
.mention-pop { position: absolute; left: 0; bottom: calc(100% + 4px); width: min(300px, 100%); z-index: 5; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; display: flex; flex-direction: column; }
.mention-pop button { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 13px; }
.mention-pop button small { margin-left: auto; color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.mention-pop button.on, .mention-pop button:hover { background: var(--hover); }

/* ---------- 3.0: tekrar seçici ---------- */
.rp-extra { border-top: 1px solid var(--line-soft); margin-top: 4px; padding: 10px 6px 6px; }
.rp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rp-mdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.rp-day { height: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); color: var(--ink-2); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; padding: 0; }
.rp-mdays .rp-day { height: 28px; border-color: transparent; }
.rp-day:hover { background: var(--hover); }
.rp-day.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rp-note { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 8px; }

/* ---------- 3.0: Takvim ---------- */
.cal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-head h1 { font-variant-numeric: tabular-nums; }
.cal-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-tools .btn.on { color: var(--accent); }
.cal-tools .btn.on .ic { color: var(--accent); }
.cal-nav { display: flex; align-items: center; gap: 2px; }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.cal { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--canvas); }
.cal-wds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--side); }
.cal-wds > span { padding: 8px 10px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.cal-wds .short { display: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(var(--weeks), minmax(112px, 1fr)); }
.cal-cell { position: relative; min-width: 0; padding: 6px 6px 8px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: background .12s; outline: none; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.wkend { background: color-mix(in srgb, var(--sunk) 45%, transparent); }
.cal-cell.out { background: color-mix(in srgb, var(--sunk) 70%, transparent); }
.cal-cell.out .cal-num, .cal-cell.out .cal-chip { opacity: .55; }
.cal-cell:hover { background: var(--hover); }
.cal-cell:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-cell.sel { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.cal-cell.over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-num { display: flex; align-items: center; height: 22px; padding-left: 2px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-num span { min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 11px; padding: 0 5px; }
.cal-cell.today .cal-num span { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.cal-items { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-chip { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; height: 22px; padding: 0 6px; border: 0; border-radius: 5px; text-align: left;
  background: color-mix(in srgb, var(--c, var(--ink-3)) 13%, var(--canvas)); color: var(--ink); font-size: 12px; cursor: pointer; }
.cal-chip:hover { background: color-mix(in srgb, var(--c, var(--ink-3)) 22%, var(--canvas)); }
.cal-chip[draggable=true] { cursor: grab; }
.cal-chip.dragging { opacity: .4; }
.cal-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.cal-chip .cc-t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-chip.done .cc-t { text-decoration: line-through; color: var(--ink-3); }
.cal-chip.late { box-shadow: inset 2px 0 0 var(--late); }
.cal-chip.routine { background: none; color: var(--ink-2); padding-left: 4px; }
.cal-chip.routine:hover { background: var(--hover); }
.cal-chip.routine .ic { width: 12px; height: 12px; color: var(--ink-3); flex: none; }
.cal-chip.routine.done .ic { color: var(--done); }
.cal-more { border: 0; background: none; color: var(--ink-3); font-size: 11.5px; font-weight: 500; text-align: left; padding: 1px 6px; border-radius: 5px; }
.cal-more:hover { color: var(--ink); background: var(--hover); }
.cal-dots { display: none; }
.cal-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 12px; }
.cal-agenda { border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px 10px; transition: background .12s, box-shadow .12s; }
.cal-agenda.over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-agenda h3, .cal-undated h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; margin: 0 4px 8px; }
.cal-agenda h3 .pill { background: var(--accent-soft); color: var(--accent); }
.cal-agenda h4 { display: flex; align-items: center; gap: 6px; margin: 12px 4px 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cal-agenda h4 .ic { width: 13px; height: 13px; }
.cal-agenda .rows .row { padding-left: 4px; padding-right: 4px; }
.cal-agenda .rows .row .play, .cal-agenda .rows .row .meta, .cal-agenda .rows .row .lbl-chip { display: none; }
.cal-empty { font-size: 13px; margin: 0 4px 6px; line-height: 1.5; }
.cal-rlist { display: flex; flex-direction: column; gap: 2px; }
.cal-r { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: none; border-radius: 6px; text-align: left; font-size: 13px; }
.cal-r:hover { background: var(--hover); }
.cal-r > span:not(.st) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-r small { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.cal-r.done > span:not(.st) { color: var(--ink-3); text-decoration: line-through; }
.cal-undated { padding: 0 2px; }
.cal-undated h3 .cnt { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.cal-undated > p { font-size: 12px; margin: -4px 4px 8px; }
.cal-ulist { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow: auto; }
.cal-ulist .cal-chip { height: 28px; font-size: 12.5px; }

@media (max-width: 1100px) {
  .cal-wrap { grid-template-columns: 1fr; }
  .cal-side { position: static; }
}
/* Telefon: hücrede yazı yerine nokta; günün listesi altta */
@media (max-width: 640px) {
  .cal-head { align-items: flex-start; }
  .cal-tools { width: 100%; }
  .cal-tools .cal-nav { margin-left: auto; }
  .cal { border-radius: 10px; }
  .cal-wds > span { padding: 6px 0; text-align: center; font-size: 11px; }
  .cal-wds .full { display: none; }
  .cal-wds .short { display: inline; }
  .cal-grid { grid-template-rows: repeat(var(--weeks), 52px); }
  .cal-cell { padding: 4px 2px; align-items: center; gap: 3px; }
  .cal-num { padding: 0; justify-content: center; }
  .cal-items { display: none; }
  .cal-dots { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; }
  .cal-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
  .cal-dots i.done { opacity: .35; }
  .cal-dots i.r { background: none; box-shadow: inset 0 0 0 1.2px var(--ink-3); }
  .cal-cell.sel { box-shadow: none; }
  .cal-cell.sel .cal-num span { box-shadow: 0 0 0 1.5px var(--ink); }
  .cal-undated { display: none; }
}

/* ---------- 3.0.1: bildirim tercihleri, takip ---------- */
#ntf-kinds { display: flex; flex-direction: column; gap: 14px; }
.mute-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mute-row + .mute-row { border-top: 1px solid var(--line-soft); }
.mute-row .link-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; text-align: left; color: var(--ink); font-size: 13.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mute-row .link-btn:hover { color: var(--accent); }
.follow-btn { margin-left: auto; height: 26px; padding: 0 9px; font-size: 12px; font-weight: 500; }
.follow-btn .ic { width: 13px; height: 13px; }
.follow-btn.off { color: var(--ink-3); }

/* ---------- 3.1: davet linki ---------- */
.auth-invite { margin: 4px 0 18px; }
.auth-invite .ai-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }
.auth-invite img, .auth-invite .ai-ws, .auth-invite .ai-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; object-fit: cover; }
.auth-invite .ai-ws { display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 650; font-size: 17px; }
.auth-invite .ai-ic { display: grid; place-items: center; background: var(--canvas); color: var(--accent); }
.auth-invite b { display: block; font-size: 14px; }
.auth-invite small { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.join-link { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.join-link input { flex: 1; min-width: 0; font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; color: var(--ink-2); background: var(--sunk); border-color: transparent; }

/* ---------- 3.1: açılışta güncelleme penceresi ---------- */
.upd-dlg { width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); color: var(--ink); box-shadow: var(--shadow-lg); }
.upd-dlg::backdrop { background: rgba(15, 13, 10, .38); }
.upd-box { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.upd-hero { display: flex; align-items: center; gap: 12px; }
.upd-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.upd-ic .ic { width: 20px; height: 20px; }
.upd-hero small { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.upd-hero h2 { font-size: 19px; margin: 0; }
.upd-notes { max-height: 42vh; overflow: auto; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); background: var(--sunk); border-radius: 10px; padding: 12px 14px; }
.upd-notes > :first-child { margin-top: 0; }
.upd-notes > :last-child { margin-bottom: 0; }
.upd-foot { font-size: 12.5px; line-height: 1.5; margin: 0; }
.upd-dlg .dialog-actions { display: flex; align-items: center; gap: 8px; margin: 0; }
.upd-dlg [data-now]:disabled { opacity: .7; }
.ib-item.linked { cursor: pointer; }
.ib-item.linked:hover { background: var(--hover); }
.upd-more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 550; font-size: 13px; cursor: pointer; }
.upd-more .ic { width: 14px; height: 14px; }
.upd-link { margin: 10px 0 0; font-size: 13px; }
.upd-link a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 550; text-decoration: none; }
.upd-link .ic { width: 14px; height: 14px; }
