/* ==================================================================
   Ajansly örnek UI · styles.css
   İlke: Apple tarzı sakin arayüz. Sistem fontu, tek vurgu rengi,
   renk yalnız anlam taşır (mavi eylem/bekleyen, yeşil onaylı,
   turuncu revizyon, kırmızı gecikme/acil).
   Tema: <html data-theme="light|dark"> ya da sistem (özniteliksiz).
================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --bg: #ffffff;
  --sidebar: #f5f5f7;
  --column: #f2f2f5;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --field: #ffffff;
  --hover: rgba(0, 0, 0, .045);
  --selected: rgba(36, 87, 214, .10);
  --line: rgba(0, 0, 0, .09);
  --line-strong: rgba(0, 0, 0, .16);

  --text: #1d1d1f;
  --text-2: #5e5e63;
  --text-3: #76767c;

  --accent: #2457d6;
  --accent-press: #1c47b5;
  --on-accent: #ffffff;
  --accent-soft: rgba(36, 87, 214, .11);

  --green: #1a7f37;  --green-soft: rgba(26, 127, 55, .11);
  --orange: #b04a00; --orange-soft: rgba(176, 74, 0, .11);
  --red: #c42b1c;    --red-soft: rgba(196, 43, 28, .10);

  --thumb: #e9e9ee;
  --scrim: rgba(0, 0, 0, .32);
  --shadow-pop: 0 10px 32px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .06);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .05);
  --shadow-lift: 0 8px 24px rgba(0, 0, 0, .12);
  --toast-bg: #1d1d1f; --toast-text: #f5f5f7; --toast-err: #3a1410; --toast-link: #8fb0ff;

  --r-s: 6px; --r-m: 10px; --r-l: 14px;
  --sidebar-w: 248px;
  --toolbar-h: 56px;
  --ctl-h: 32px;          /* tüm kontrollerin ortak yüksekliği */
  --card-pad: 11px 12px 10px;
  --card-gap: 8px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

/* Koyu tokenlar: elle seçilen koyu tema */
:root[data-theme="dark"] {
  --bg: #1c1c1e; --sidebar: #161618; --column: #232326; --surface: #2c2c2f; --surface-2: #232326; --field: #1f1f22;
  --hover: rgba(255,255,255,.06); --selected: rgba(110,150,255,.16);
  --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.18);
  --text: #f5f5f7; --text-2: #a8a8ae; --text-3: #8e8e94;
  --accent: #6e96ff; --accent-press: #8aaaff; --on-accent: #0b1a3d; --accent-soft: rgba(110,150,255,.16);
  --green: #4cc26b; --green-soft: rgba(76,194,107,.14);
  --orange: #ff9f45; --orange-soft: rgba(255,159,69,.14);
  --red: #ff6b5e; --red-soft: rgba(255,107,94,.14);
  --thumb: #3a3a3e; --scrim: rgba(0,0,0,.55);
  --shadow-pop: 0 10px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  --shadow-modal: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.07);
  --shadow-lift: 0 8px 24px rgba(0,0,0,.45);
  --toast-bg: #3a3a3e; --toast-err: #4a1e19;
  color-scheme: dark;
}
/* Sistem koyu ve kullanıcı açık seçmemişse aynı tokenlar */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1c1e; --sidebar: #161618; --column: #232326; --surface: #2c2c2f; --surface-2: #232326; --field: #1f1f22;
    --hover: rgba(255,255,255,.06); --selected: rgba(110,150,255,.16);
    --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.18);
    --text: #f5f5f7; --text-2: #a8a8ae; --text-3: #8e8e94;
    --accent: #6e96ff; --accent-press: #8aaaff; --on-accent: #0b1a3d; --accent-soft: rgba(110,150,255,.16);
    --green: #4cc26b; --green-soft: rgba(76,194,107,.14);
    --orange: #ff9f45; --orange-soft: rgba(255,159,69,.14);
    --red: #ff6b5e; --red-soft: rgba(255,107,94,.14);
    --thumb: #3a3a3e; --scrim: rgba(0,0,0,.55);
    --shadow-pop: 0 10px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
    --shadow-modal: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.07);
    --shadow-lift: 0 8px 24px rgba(0,0,0,.45);
    --toast-bg: #3a3a3e; --toast-err: #4a1e19;
    color-scheme: dark;
  }
}
:root[data-theme="light"] { color-scheme: light; }

/* Yoğunluk */
:root[data-density="compact"] { --ctl-h: 28px; --card-pad: 8px 10px 7px; --card-gap: 6px; --toolbar-h: 50px; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.45 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  transition: background-color 200ms ease, color 200ms ease;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-s); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 14px; height: 14px; }
svg.i.m { width: 16px; height: 16px; }
.muted { color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
kbd, .kbd { font: 11px/1 var(--font); color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; background: var(--surface); }

/* ================= Ortak kontroller ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--ctl-h); padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--text);
  transition: background-color 120ms ease, transform 120ms var(--ease-out), border-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn svg.i { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { background: var(--accent-press); }
.btn.danger { color: var(--red); }
.btn.danger.solid { background: var(--red); color: #fff; border-color: transparent; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--accent); padding: 0 8px; }
.btn.quiet:hover { background: var(--accent-soft); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.small { height: 28px; font-size: 12.5px; padding: 0 10px; }
.btn.is-on { background: var(--selected); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
.btn .badge-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }

.icon-btn {
  width: var(--ctl-h); height: var(--ctl-h); flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-s); background: transparent; color: var(--text-2);
  transition: background-color 120ms ease, transform 120ms var(--ease-out), color 120ms ease;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.icon-btn.sm { width: 26px; height: 26px; }
.icon-btn.sm svg.i { width: 15px; height: 15px; }

/* Metin alanları: input, textarea ve "field-btn" (select/date tetikleyici) aynı görünür */
.input, .textarea, .field-btn {
  width: 100%; min-height: var(--ctl-h);
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--field); color: var(--text);
  font-size: 13.5px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.input { height: var(--ctl-h); padding: 0 10px; }
.input.lg, .field-btn.lg { --ctl-h: 36px; font-size: 14px; }
.textarea { padding: 8px 10px; resize: vertical; line-height: 1.5; min-height: 80px; display: block; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .textarea:hover, .field-btn:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); }
.input:focus, .textarea:focus, .field-btn:focus-visible, .field-btn[aria-expanded="true"] {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.input:disabled { opacity: .55; }
.invalid .input, .invalid .field-btn, .invalid .textarea { border-color: var(--red); }
.invalid .input:focus, .invalid .field-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--red-soft); }

/* Arama kutusu (ikonlu, temizle düğmeli) */
.search {
  position: relative; display: flex; align-items: center;
}
.search > svg.i { position: absolute; left: 9px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 30px; padding-right: 30px; }
.search .clear { position: absolute; right: 3px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); display: grid; place-items: center; }
.search .clear:hover { background: var(--hover); color: var(--text); }
.search .hint { position: absolute; right: 7px; pointer-events: none; }
.search input[type="search"]::-webkit-search-cancel-button { display: none; }

/* Select / tarih tetikleyici */
.field-btn {
  display: flex; align-items: center; gap: 8px;
  height: var(--ctl-h); padding: 0 8px 0 10px; text-align: left;
  cursor: pointer;
}
.field-btn .val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.field-btn .ph { color: var(--text-3); }
.field-btn > svg.i:last-child { width: 14px; height: 14px; color: var(--text-3); }
.field-btn .x { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); }
.field-btn .x:hover { background: var(--hover); color: var(--text); }
.field-btn .x svg.i { width: 12px; height: 12px; }
.field-btn .cnt { font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 9px; padding: 1px 7px; }
.field-btn.chip-like { width: auto; border-radius: 999px; height: 30px; padding: 0 8px 0 12px; font-size: 13px; }
.field-btn.chip-like.has-value { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.field-btn.chip-like.has-value > svg.i:last-child { color: var(--accent); }
.field-btn.bare { border-color: transparent; background: transparent; padding-left: 6px; }
.field-btn.bare:hover { background: var(--hover); }

/* Onay kutusu */
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.check input { appearance: none; -webkit-appearance: none; margin: 0; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--field); display: grid; place-items: center; cursor: pointer; transition: background-color 120ms ease, border-color 120ms ease; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 140ms var(--ease-out); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check input.round { border-radius: 50%; }

/* Anahtar (switch) */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 34px; height: 20px; border-radius: 10px; background: var(--line-strong); position: relative; cursor: pointer; transition: background-color 160ms ease; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 200ms var(--ease-out); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(14px); }
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Bölümlü kontrol */
.segmented { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--column); }
.segmented button { border: 0; background: transparent; border-radius: 6px; height: calc(var(--ctl-h) - 4px); padding: 0 12px; font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; transition: background-color 150ms ease, color 150ms ease; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"], .segmented button[aria-checked="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.segmented.full { display: flex; }
.segmented.full button { flex: 1; justify-content: center; }

/* Form alanı */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-2); }
.field .err { font-size: 12px; color: var(--red); display: none; }
.field.invalid .err { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Rozet, avatar, etiket */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.muted::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.avatar { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--thumb); color: var(--text-2); font-size: 10px; font-weight: 650; letter-spacing: .02em; }
.avatar.md { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.lg { width: 30px; height: 30px; font-size: 11px; }
.avatars { display: inline-flex; }
.avatars .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatars .avatar + .avatar { margin-left: -3px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 550; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.tag button { border: 0; background: transparent; padding: 0; margin-right: -3px; color: var(--text-3); display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; }
.tag button:hover { color: var(--text); background: var(--hover); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.dot.todo { background: var(--text-3); }
.dot.production { background: color-mix(in srgb, var(--accent) 55%, var(--text-3)); }
.dot.approval { background: var(--accent); }
.dot.revision { background: var(--orange); }
.dot.ready { background: var(--green); }
.prio { display: inline-flex; align-items: center; gap: 4px; }
.prio.urgent { color: var(--red); }
.prio.high { color: var(--orange); }
.prio.normal, .prio.low { color: var(--text-3); }
mark { background: color-mix(in srgb, #ffd60a 55%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ================= Popover / menü / liste kutusu ================= */
.pop {
  position: fixed; z-index: 1000;
  background: var(--surface); border-radius: var(--r-m);
  box-shadow: var(--shadow-pop);
  min-width: 200px; max-width: min(360px, calc(100vw - 16px));
  display: flex; flex-direction: column;
  transform-origin: var(--origin, top left);
  animation: pop-in 140ms var(--ease-out);
  overflow: hidden;
}
@keyframes pop-in { from { opacity: 0; transform: scale(.97) translateY(-3px); } }
.pop.instant { animation: none; }
.pop-search { padding: 8px 8px 6px; border-bottom: 1px solid var(--line); }
.pop-search .input { height: 30px; }
.pop-list { list-style: none; margin: 0; padding: 5px; overflow-y: auto; max-height: 300px; }
.pop-list .grp { padding: 7px 9px 3px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.opt, .menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  min-height: 32px; padding: 5px 9px; border: 0; border-radius: var(--r-s);
  background: transparent; text-align: left; font-size: 13.5px; color: var(--text); cursor: pointer;
}
.opt.active, .menu-item:hover, .menu-item:focus-visible { background: var(--hover); outline: none; }
.opt .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .sub, .menu-item .sub { color: var(--text-2); font-size: 12px; }
.opt .tick { width: 15px; height: 15px; color: var(--accent); visibility: hidden; }
.opt[aria-selected="true"] .tick { visibility: visible; }
.opt .box { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 4px; display: grid; place-items: center; }
.opt[aria-selected="true"] .box { background: var(--accent); border-color: var(--accent); }
.opt[aria-selected="true"] .box::after { content: ""; width: 8px; height: 5px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt.create { color: var(--accent); }
.pop-empty { padding: 14px 10px; text-align: center; font-size: 13px; color: var(--text-2); }
.pop-foot { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.pop-foot .btn { margin-left: auto; }
.menu-item svg.i { width: 16px; height: 16px; color: var(--text-2); }
.menu-item.danger, .menu-item.danger svg.i { color: var(--red); }
.menu-item .kbd { margin-left: auto; }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu-label { padding: 7px 9px 3px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 9px; font-size: 13.5px; }

/* Tarih seçici */
.cal { padding: 10px; width: 264px; }
.cal-head { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.cal-head strong { flex: 1; font-size: 13.5px; padding-left: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid .wd { font-size: 11px; color: var(--text-3); text-align: center; padding: 4px 0; font-weight: 600; }
.cal-grid button { height: 32px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); }
.cal-grid button:hover { background: var(--hover); }
.cal-grid button.out { color: var(--text-3); }
.cal-grid button.today { color: var(--accent); font-weight: 700; }
.cal-grid button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.cal-grid button:disabled { color: var(--text-3); opacity: .45; cursor: default; background: transparent; }
.cal-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

/* ================= Uygulama iskeleti ================= */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); height: 100dvh; }
.app.sidebar-hidden { grid-template-columns: 0 minmax(0, 1fr); }
.app.sidebar-hidden .sidebar { visibility: hidden; }

.sidebar { background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.tenant-btn { margin: 10px 10px 4px; width: calc(100% - 20px); display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: var(--r-m); background: transparent; text-align: left; transition: background-color 120ms ease; }
.tenant-btn:hover, .tenant-btn[aria-expanded="true"] { background: var(--hover); }
.tenant-mark { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--text); color: var(--bg); font-weight: 650; font-size: 12.5px; letter-spacing: -.01em; }
.tenant-mark.alt { background: var(--thumb); color: var(--text-2); }
.tenant-mark.sm { width: 24px; height: 24px; font-size: 10.5px; border-radius: 6px; }
.tenant-name { font-weight: 600; font-size: 14px; line-height: 1.2; display: block; }
.tenant-role { color: var(--text-2); font-size: 12px; }
.tenant-btn > svg.i { margin-left: auto; color: var(--text-3); width: 16px; height: 16px; }

.global-search {
  margin: 4px 10px 6px; height: var(--ctl-h);
  display: flex; align-items: center; gap: 8px; padding: 0 7px 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--field);
  color: var(--text-3); font-size: 13px; text-align: left;
  transition: border-color 120ms ease;
}
.global-search:hover { border-color: var(--line-strong); color: var(--text-2); }
.global-search svg.i { width: 15px; height: 15px; }
.global-search kbd { margin-left: auto; }

.nav { padding: 4px 10px 12px; overflow-y: auto; flex: 1; }
.nav-group { margin-top: 14px; }
.nav-title { padding: 0 10px 4px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: var(--r-s); color: var(--text); text-decoration: none; transition: background-color 120ms ease; }
.nav a:hover { background: var(--hover); }
.nav a svg.i { color: var(--text-2); }
.nav a[aria-current="page"] { background: var(--selected); color: var(--accent); font-weight: 600; }
.nav a[aria-current="page"] svg.i { color: var(--accent); }
.nav .count { margin-left: auto; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 400; }
.nav .count.attn { color: var(--accent); font-weight: 600; }

.me-btn { display: flex; align-items: center; gap: 10px; width: calc(100% - 20px); margin: 6px 10px 10px; padding: 7px 8px; border: 0; border-radius: var(--r-m); background: transparent; text-align: left; font-size: 13px; transition: background-color 120ms ease; }
.me-btn:hover, .me-btn[aria-expanded="true"] { background: var(--hover); }
.me-btn small { display: block; color: var(--text-2); font-size: 12px; }
.me-btn > svg.i { margin-left: auto; color: var(--text-3); width: 16px; height: 16px; }
.sidebar-foot { border-top: 1px solid var(--line); }

.main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.toolbar { height: var(--toolbar-h); flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.toolbar h1 { font-size: 17px; font-weight: 650; letter-spacing: -.012em; margin: 0 6px 0 2px; white-space: nowrap; }
.toolbar h1 span { color: var(--text-3); font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }
.spacer { flex: 1; }
.toolbar .search { width: 240px; }
.toolbar .search .input { background: var(--field); }

/* Filtre çubuğu */
.filterbar {
  flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.filterbar .result { margin-left: auto; font-size: 12.5px; color: var(--text-2); }
.filterbar .switch { font-size: 13px; margin-left: 4px; }

.content { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.page { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }
.page-narrow { max-width: 960px; }

/* ================= Pano ================= */
.board { flex: 1; min-height: 0; display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px 20px; overflow-x: auto; overflow-y: hidden; }
.column { flex: 1 0 212px; min-width: 0; max-height: 100%; display: flex; flex-direction: column; background: var(--column); border-radius: var(--r-l); transition: box-shadow 120ms ease, background-color 120ms ease; }
.column.drop-target { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.column-head { display: flex; align-items: center; gap: 8px; padding: 10px 8px 8px 14px; font-size: 13px; font-weight: 600; }
.column-head .n { color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.column-head .icon-btn { margin-left: auto; }
.column-body { list-style: none; margin: 0; padding: 2px 8px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: var(--card-gap); min-height: 48px; }
.column-empty { color: var(--text-3); font-size: 12.5px; text-align: center; padding: 14px 8px; border: 1px dashed var(--line-strong); border-radius: var(--r-m); }
.quick-add { padding: 0 8px 10px; }
.quick-add .input { background: var(--surface); }

.card { display: block; width: 100%; text-align: left; background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--line); padding: var(--card-pad); cursor: pointer; user-select: none; transition: border-color 120ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out), opacity 120ms ease; }
@media (hover: hover) and (pointer: fine) { .card:hover { border-color: var(--line-strong); } }
.card:active { transform: scale(.985); }
.card.dragging { opacity: .45; }
.card.flash { animation: flash 1.4s var(--ease-out); }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.card-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.card-top > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-top .id { margin-left: auto; flex: none; color: var(--text-3); font-variant-numeric: tabular-nums; }
.card-title { display: block; margin: 4px 0 8px; font-weight: 600; font-size: 14px; line-height: 1.3; letter-spacing: -.005em; text-wrap: pretty; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: -2px 0 8px; }
.card-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.card-foot .cnt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card-foot .due { margin-left: auto; font-variant-numeric: tabular-nums; }
.card-foot .prio svg.i { width: 14px; height: 14px; }
.due.late { color: var(--red); font-weight: 600; }
.due.soon { color: var(--orange); font-weight: 600; }
.pips { display: inline-flex; gap: 3px; }
.pip { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.pip.approved { background: var(--green); box-shadow: none; }
.pip.pending { box-shadow: inset 0 0 0 2px var(--accent); }
.pip.revision { background: var(--orange); box-shadow: none; }
.pip.draft { box-shadow: inset 0 0 0 1.5px var(--text-2); background: linear-gradient(90deg, var(--text-2) 50%, transparent 50%); }

.empty-state { margin: auto; text-align: center; max-width: 380px; padding: 32px 24px; color: var(--text-2); }
.empty-state h2 { color: var(--text); font-size: 17px; margin: 12px 0 6px; }
.empty-state svg.i { width: 32px; height: 32px; color: var(--text-3); }
.empty-state p { margin: 0 0 16px; }

/* Tablo */
.table-wrap { flex: 1; overflow: auto; padding: 4px 20px 24px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid th { position: sticky; top: 0; background: var(--bg); text-align: left; font-weight: 600; color: var(--text-2); font-size: 12px; padding: 0; border-bottom: 1px solid var(--line); z-index: 1; white-space: nowrap; }
.grid th button { all: unset; display: inline-flex; align-items: center; gap: 4px; padding: 10px; cursor: pointer; border-radius: 4px; }
.grid th button:focus-visible { outline: 2px solid var(--accent); }
.grid th svg.i { width: 12px; height: 12px; opacity: 0; }
.grid th[aria-sort] svg.i { opacity: 1; color: var(--accent); }
.grid th.plain { padding: 10px; }
.grid td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid tbody tr[data-id] { cursor: pointer; transition: background-color 100ms ease; }
.grid tbody tr[data-id]:hover { background: var(--hover); }
.grid .t { font-weight: 600; }
.grid .sub { color: var(--text-2); font-size: 12px; }

/* Sayfa bileşenleri (Bugün, Onaylar, Müşteriler...) */
.page h2.title { font-size: 22px; letter-spacing: -.02em; margin: 0 0 4px; }
.page .lede { color: var(--text-2); margin: 0 0 20px; }
.section { margin-top: 22px; }
.section-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.section-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.section-head .meta { color: var(--text-2); font-size: 12.5px; }
.section-head .btn { margin-left: auto; }
.group { background: var(--surface-2); border-radius: var(--r-m); overflow: hidden; }
.group > * + * { border-top: 1px solid var(--line); }
.row-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-height: 48px; }
button.row-item { width: 100%; border: 0; background: transparent; text-align: left; transition: background-color 100ms ease; }
button.row-item:hover { background: var(--hover); }
.row-item .main-txt { flex: 1; min-width: 0; }
.row-item .main-txt strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item .main-txt span { color: var(--text-2); font-size: 12.5px; }
.row-actions { display: flex; gap: 6px; flex: none; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tile { background: var(--surface-2); border-radius: var(--r-m); padding: 14px; }
.tile h4 { margin: 0 0 2px; font-size: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.stat { background: var(--surface-2); border-radius: var(--r-m); padding: 12px 14px; text-align: left; border: 0; width: 100%; color: var(--text); }
button.stat:hover { background: var(--hover); }
.stat b { display: block; font-size: 24px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-2); font-size: 12.5px; }
.stat.red b { color: var(--red); } .stat.orange b { color: var(--orange); } .stat.accent b { color: var(--accent); }

.bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 10px 0 8px; gap: 2px; }
.bar i { display: block; height: 100%; }
.bar .used { background: var(--text-2); }
.bar .res { background: var(--accent); opacity: .55; }
.legend { display: flex; gap: 14px; color: var(--text-2); font-size: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* Takvim sayfası */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.month .wd { padding: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.month .day { min-height: 104px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.month .day.out { background: var(--surface-2); }
.month .day.out .dn { color: var(--text-3); }
.month .dn { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.month .day.today .dn { background: var(--accent); color: var(--on-accent); }
.month .ev { display: flex; align-items: center; gap: 5px; border: 0; border-radius: 5px; padding: 2px 6px; font-size: 11.5px; text-align: left; background: var(--surface-2); color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 100%; }
.month .day:not(.out) .ev { background: var(--column); }
.month .ev:hover { background: var(--hover); }
.month .ev .dot { width: 6px; height: 6px; }
.month .ev span { overflow: hidden; text-overflow: ellipsis; }

/* ================= Diyaloglar ================= */
dialog { border: 0; padding: 0; color: var(--text); background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-modal); }
dialog::backdrop { background: var(--scrim); }
dialog.sheet { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); }
dialog.sheet.sm { width: min(420px, calc(100vw - 32px)); }
dialog.sheet[open] { animation: sheet-in 220ms var(--ease-out); }
dialog[open]::backdrop { animation: fade-in 200ms ease; }
@keyframes sheet-in { from { opacity: 0; transform: scale(.97) translateY(6px); } }
@keyframes fade-in { from { opacity: 0; } }
.dlg-head { display: flex; align-items: center; gap: 8px; padding: 16px 14px 4px 20px; }
.dlg-head h2 { margin: 0; font-size: 17px; font-weight: 650; flex: 1; }
.dlg-sub { margin: 0 20px 4px; color: var(--text-2); font-size: 13px; }
.dlg-body { padding: 12px 20px 4px; display: grid; gap: 14px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Komut paleti: günde onlarca kez açılır, animasyon yok */
dialog.palette { width: min(600px, calc(100vw - 32px)); margin-top: 12vh; animation: none; }
dialog.palette[open]::backdrop { animation: none; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette-input svg.i { color: var(--text-3); }
.palette-input input { flex: 1; height: 52px; border: 0; background: transparent; font-size: 16px; outline: none; }
.palette .pop-list { max-height: 380px; padding: 6px; }
.palette .opt { min-height: 36px; }
.palette .opt svg.i { width: 16px; height: 16px; color: var(--text-2); }
.palette .opt small { margin-left: auto; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.palette-foot { display: flex; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; }

/* ================= Proje detay modalı (Kanatspace düzeni) ================= */
dialog.pm {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; background: transparent; box-shadow: none; border-radius: 0;
  display: none; place-items: center; overflow: hidden;
}
dialog.pm[open] { display: grid; }
dialog.pm::backdrop { background: var(--scrim); }
.pm-inner {
  width: min(920px, calc(100vw - 32px)); height: min(88vh, 900px);
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-modal);
  display: flex; flex-direction: column; overflow: hidden;
  animation: sheet-in 220ms var(--ease-out);
}
.pm-top { display: flex; align-items: flex-start; gap: 12px 20px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); flex: none; }
.pm-brand { flex: 1; min-width: 0; }
.pm-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pm-title { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; outline: none; }
.pm-title-input { font-size: 1.25rem; font-weight: 700; height: 38px; }
.pm-edit { opacity: 0; transition: opacity 120ms ease; }
.pm-title-line:hover .pm-edit, .pm-edit:focus-visible, .pm-sub-line:hover .pm-edit { opacity: 1; }
.pm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 13px; color: var(--text-2); }
.pm-sub-line { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pm-sub-line svg.i { width: 14px; height: 14px; color: var(--text-3); }
.pm-sub-line .icon-btn { width: 22px; height: 22px; }
.pm-sub-line .icon-btn svg.i { width: 13px; height: 13px; }
.mono-pill { font: 600 11px/1 var(--mono); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; }
.pm-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.vdiv { width: 1px; height: 18px; background: var(--line-strong); margin: 0 4px; }

.pm-split { display: flex; flex: 1; min-height: 0; }
.pm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pm-tabs { display: flex; gap: 22px; padding: 12px 22px 0; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; scrollbar-width: none; }
.pm-tabs button { border: 0; background: none; font-size: 13px; font-weight: 600; padding: 0 2px 10px; margin-bottom: -1px; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: color 120ms ease, border-color 120ms ease; }
.pm-tabs button:hover { color: var(--text); }
.pm-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.pm-tabs .tab-n { min-width: 18px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--surface-2); color: var(--text-2); font-size: 11px; display: inline-grid; place-items: center; }
.pm-scroll { flex: 1; overflow-y: auto; padding: 20px 22px 28px; overscroll-behavior: contain; }
.pm-aside { width: 288px; flex: none; border-left: 1px solid var(--line); background: var(--surface-2); overflow-y: auto; padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 16px; }
.pm-field > .label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.pm-aside hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.pm-aside .field-btn { background: var(--surface); }
.pm-dates { display: grid; grid-template-columns: 1fr; gap: 5px; font-size: 13px; }
.pm-dates .lbl { color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.pm-dates .lbl:not(:first-child) { margin-top: 6px; }
.pm-dates .lbl svg.i { width: 14px; height: 14px; }
.pm-due { display: grid; grid-template-columns: 1fr 64px; gap: 6px; }
.pm-due .input { text-align: center; padding: 0 6px; background: var(--surface); font-variant-numeric: tabular-nums; }
.assignees { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.person-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; }
.person-chip button { width: 18px; height: 18px; border: 0; background: transparent; border-radius: 50%; color: var(--text-3); display: grid; place-items: center; }
.person-chip button:hover { background: var(--hover); color: var(--text); }
.add-round { width: 28px; height: 28px; border-radius: 50%; border: 1px dashed var(--line-strong); background: transparent; color: var(--text-2); display: grid; place-items: center; }
.add-round:hover { border-color: var(--accent); color: var(--accent); }
.add-row { display: flex; gap: 6px; margin-top: 8px; }
.add-row .input { background: var(--surface); }

/* Detay sekmesi */
.block-head { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.block-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.block-head .meta { margin-left: auto; color: var(--text-2); font-size: 12.5px; }
.desc-view { font-size: 13.5px; line-height: 1.6; color: var(--text); background: var(--surface-2); border-radius: var(--r-m); padding: 12px 14px; border: 1px solid var(--line); cursor: text; }
.desc-view:empty::before, .desc-view.empty { color: var(--text-3); }
.desc-view p { margin: 0 0 8px; } .desc-view p:last-child { margin-bottom: 0; }
.desc-view ul, .desc-view ol { margin: 0 0 8px; padding-left: 20px; }
.desc-view code { font-family: var(--mono); font-size: 12px; background: var(--thumb); padding: 1px 4px; border-radius: 4px; }
.desc-view pre { background: var(--thumb); padding: 10px; border-radius: 8px; overflow-x: auto; margin: 0 0 8px; }
.desc-view pre code { background: none; padding: 0; }
.md-toolbar { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--surface-2); }
.md-toolbar + .textarea { border-radius: 0 0 8px 8px; }
.editor-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.subtasks { display: grid; gap: 2px; }
.subtask { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: var(--r-s); }
.subtask:hover { background: var(--hover); }
.subtask .txt { flex: 1; font-size: 13.5px; min-width: 0; }
.subtask.done .txt { color: var(--text-3); text-decoration: line-through; }
.subtask .icon-btn { opacity: 0; }
.subtask:hover .icon-btn, .subtask .icon-btn:focus-visible { opacity: 1; }
.progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin: 0 0 8px; }
.progress i { display: block; height: 100%; background: var(--green); transition: width 240ms var(--ease-out); }

/* Teslim sekmesi: teslimat başına onay zinciri */
.dropzone { display: grid; justify-items: center; gap: 2px; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-m); color: var(--text-2); font-size: 12.5px; text-align: center; cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease; }
.dropzone strong { color: var(--text); font-size: 13.5px; }
.dropzone svg.i { width: 22px; height: 22px; color: var(--text-3); margin-bottom: 4px; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.deliv { padding: 12px; display: grid; grid-template-columns: auto 1fr; gap: 0 12px; transition: background-color 120ms ease; }
.deliv.over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.thumb { width: 52px; height: 64px; display: grid; place-items: center; grid-row: span 3; border: 0; padding: 0; background: none; }
.thumb i, .thumb img { display: grid; place-items: end start; padding: 3px 4px; border-radius: 5px; background: var(--thumb); box-shadow: inset 0 0 0 1px var(--line); font: 600 10px/1 var(--font); font-style: normal; color: var(--text-2); font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; object-fit: cover; }
button.thumb { cursor: zoom-in; }
.deliv-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.deliv-name { font-weight: 600; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deliv-top .badge { margin-left: auto; }
.chain { display: flex; align-items: center; margin: 8px 0 6px; flex-wrap: wrap; row-gap: 6px; }
.chain .link { width: 10px; height: 1.5px; background: var(--line-strong); }
.ver { height: 24px; min-width: 34px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.ver.approved { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.ver.revision { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 45%, transparent); }
.ver.pending { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.ver[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.ver svg.i { width: 12px; height: 12px; stroke-width: 2.4; }
.ver-detail { font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.ver-detail q { color: var(--text); quotes: "“" "”"; }
.deliv-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.deliv-actions .size { margin-left: auto; font-size: 12px; color: var(--text-3); }
.notice { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--text); font-size: 12.5px; line-height: 1.4; }
.notice svg.i { width: 15px; height: 15px; color: var(--accent); margin-top: 1px; }
.pub { padding: 12px; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; }
.pub .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; color: var(--text-2); flex: none; border: 1px solid var(--line); }
.pub .ic svg.i { width: 16px; height: 16px; }
.pub p { margin: 2px 0 0; color: var(--text-2); font-size: 12.5px; }
.quota { padding: 12px; font-size: 13px; }
.quota-top { display: flex; align-items: baseline; gap: 8px; }
.quota-top span { color: var(--text-2); font-size: 12.5px; }

/* Yorumlar */
.comments { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.comment { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.comment-head strong { font-size: 13px; }
.comment-head time { color: var(--text-3); }
.comment-body { margin-top: 3px; font-size: 13.5px; line-height: 1.55; }
.comment-body p { margin: 0 0 6px; } .comment-body p:last-child { margin: 0; }
.comment-body code { font-family: var(--mono); font-size: 12px; background: var(--thumb); padding: 1px 4px; border-radius: 4px; }
.comment-quote { font-size: 12.5px; color: var(--text-2); border-left: 2px solid var(--line-strong); padding-left: 8px; margin: 4px 0; }
.comment-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.comment-files img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.comment-tools { display: flex; gap: 2px; margin-top: 2px; }
.comment-tools .btn { height: 24px; padding: 0 6px; font-size: 12px; }
.vis { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-2); }
.vis svg.i { width: 12px; height: 12px; }
.composer { border: 1px solid var(--line-strong); border-radius: var(--r-m); background: var(--field); overflow: hidden; transition: border-color 120ms ease, box-shadow 120ms ease; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer .textarea { border: 0; box-shadow: none !important; border-radius: 0; min-height: 64px; background: transparent; }
.composer-bar { display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.composer-bar .spacer { flex: 1; }
.composer-bar .hint { font-size: 11.5px; color: var(--text-3); margin-right: 6px; }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--accent-soft); font-size: 12.5px; }
.reply-bar .btn { margin-left: auto; height: 24px; }
.attach-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; }

/* Aktiviteler */
.activity { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.activity li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 7px 0; position: relative; }
.activity li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); margin: 6px 0 0 3px; }
.activity li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 21px; bottom: -7px; width: 1px; background: var(--line); }
.activity time { display: block; color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* Süre */
.timer { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface-2); border-radius: var(--r-m); }
.timer .clock { font: 600 26px/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.timer .muted { font-size: 12.5px; }
.timer .btn { margin-left: auto; }
.time-add { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; margin-top: 12px; }

/* Önizleme */
dialog.preview { width: min(900px, calc(100vw - 32px)); }
.preview-stage { display: grid; place-items: center; padding: 12px; background: var(--surface-2); max-height: 70vh; }
.preview-stage img { max-width: 100%; max-height: calc(70vh - 24px); border-radius: 6px; }

/* Bildirim (toast) */
.toasts { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 2000; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(540px, calc(100vw - 32px)); padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--toast-bg); color: var(--toast-text); font-size: 13px; box-shadow: var(--shadow-lift); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@starting-style { .toast { opacity: 0; transform: translateY(8px); } }
.toast.leaving { opacity: 0; transform: translateY(8px); transition-duration: 150ms; }
.toast.err { background: var(--toast-err); }
.toast button { white-space: nowrap; flex: none; border: 0; background: transparent; color: var(--toast-link); font-weight: 600; padding: 4px 6px; border-radius: 6px; }
.toast button:hover { background: rgba(255,255,255,.08); }

/* Oturum kapalı ekranı */
.signed-out { position: fixed; inset: 0; z-index: 3000; background: var(--bg); display: grid; place-items: center; }
.signed-out .box { width: min(360px, calc(100vw - 32px)); text-align: center; }
.signed-out .tenant-mark { margin: 0 auto 14px; width: 44px; height: 44px; font-size: 16px; border-radius: 12px; }
.signed-out h2 { margin: 0 0 6px; font-size: 20px; }
.signed-out p { color: var(--text-2); margin: 0 0 18px; }

/* Alt sekme çubuğu (telefon) */
.tabbar { display: none; }
.mobile-search { display: none; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  .app, .app.sidebar-hidden { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .toggle-sidebar, .toolbar .label, .view-switch { display: none !important; }
  .toolbar { padding: 0 12px 0 16px; gap: 6px; }
  .toolbar .search { width: auto; flex: 1; }
  .toolbar .btn.primary { width: var(--ctl-h); padding: 0; border-radius: 50%; }
  .mobile-search { display: grid; }
  .filterbar { padding: 8px 16px; flex-wrap: nowrap; overflow-x: auto; }
  .filterbar .result { display: none; }
  .board { padding: 12px 16px calc(84px + env(safe-area-inset-bottom)); scroll-snap-type: x mandatory; gap: 10px; }
  .column { flex: 0 0 calc(100vw - 48px); max-width: none; scroll-snap-align: start; }
  .page { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .table-wrap { padding: 4px 0 96px; }
  .grid .hide-sm { display: none; }
  .month .day { min-height: 64px; padding: 3px; }
  .month .ev span { display: none; }
  .month .ev { padding: 2px; width: auto; }
  .tabbar { display: flex; position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-top: 1px solid var(--line); }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 4px 0; min-height: 48px; font-size: 10.5px; font-weight: 500; color: var(--text-3); text-decoration: none; position: relative; }
  .tabbar a svg.i { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar .tb-count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .two { grid-template-columns: 1fr; }
  .pm-inner { width: 100vw; height: 100dvh; border-radius: 0; }
  .pm-split { flex-direction: column; overflow-y: auto; }
  .pm-main { flex: none; }
  .pm-scroll { overflow: visible; }
  .pm-aside { width: 100%; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .pm-title { font-size: 1.25rem; white-space: normal; }
  .pm-top { flex-wrap: wrap; padding: 8px 10px 14px 18px; }
  .pm-actions { order: -1; width: 100%; justify-content: flex-end; }
  .search .hint { display: none; }
  .pm-edit { opacity: 1; }
  .time-add { grid-template-columns: 80px 1fr; }
  .time-add .btn { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
@media (prefers-reduced-transparency: reduce) { .tabbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --line: rgba(0,0,0,.28); --line-strong: rgba(0,0,0,.45); --text-2: #3f3f44; --text-3: #55555a; } }
