/* Bad Company paneli v0.4: sade, acik tema (Plane tarzi) */
:root {
  --bg: #ffffff;
  --side: #f7f8fa;
  --soft: #f3f4f6;
  --hover: #eef0f3;
  --line: #e5e7eb;
  --line2: #d1d5db;
  --text: #1f2937;
  --dim: #6b7280;
  --faint: #9ca3af;
  --accent: #3f76ff;
  --accent-soft: #eaf0ff;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --warn: #d97706;
  --warn-soft: #fff4e0;
  --err: #dc2626;
  --err-soft: #fdecec;
  --purple: #7c3aed;
  --purple-soft: #f1ebff;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.45 Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.sm { font-size: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.err { color: var(--err); font-size: 13px; min-height: 1em; margin: 6px 0 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--soft); padding: 1px 5px; border-radius: 4px; word-break: break-all; }

/* ---------- butonlar, girdiler ---------- */
button, .btn {
  font: inherit; font-size: 13px; font-weight: 500; color: var(--text); background: #fff;
  border: 1px solid var(--line2); border-radius: 6px; padding: 6px 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1.3;
}
button:hover { background: var(--soft); }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { background: #2f63e6; }
button.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
button.ok:hover { background: #12863d; }
button.danger { color: var(--err); }
button.ghost { border-color: transparent; background: transparent; color: var(--dim); }
button.ghost:hover { background: var(--hover); color: var(--text); }
button.small { padding: 3px 8px; font-size: 12px; }
button.icon { padding: 4px 7px; }
input, select, textarea {
  font: inherit; font-size: 13px; color: var(--text); background: #fff; border: 1px solid var(--line2);
  border-radius: 6px; padding: 6px 9px; width: 100%; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; }
label { display: block; font-size: 12px; font-weight: 500; color: var(--dim); }
label > input, label > select, label > textarea { margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > label { flex: 1; min-width: 120px; }
.stack { display: grid; gap: 12px; }

/* ---------- giris ---------- */
.login { position: fixed; inset: 0; display: grid; place-items: center; background: var(--side); }
.login-card { width: min(380px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.logo { width: 26px; height: 26px; border-radius: 7px; background: #111827; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .5px; }

/* ---------- iskelet ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side .brand { padding: 14px 16px 10px; }
.nav { padding: 6px 8px; display: grid; gap: 1px; overflow-y: auto; }
.nav a, .nav .navh {
  display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 6px; color: var(--text);
  font-size: 13px; text-decoration: none;
}
.nav a:hover { background: var(--hover); }
.nav a.active { background: #fff; box-shadow: var(--shadow); font-weight: 500; }
.nav .ico { width: 16px; text-align: center; color: var(--dim); font-size: 13px; }
.nav .count { margin-left: auto; background: var(--err); color: #fff; font-size: 11px; border-radius: 10px; padding: 0 7px; font-weight: 600; }
.nav .count:empty { display: none; }
.nav .navh { color: var(--faint); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-top: 12px; padding-bottom: 2px; }
.nav .navh button { margin-left: auto; padding: 0 6px; font-size: 14px; }
.nav a.proj { padding-left: 12px; }
.pdot { width: 18px; height: 18px; border-radius: 5px; color: #fff; display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.me-box { margin-top: auto; border-top: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 9px; align-items: center; font-size: 13px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { height: 52px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 20px; flex: none; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; min-width: 0; }
.crumbs a { color: var(--dim); }
.crumbs .sep { color: var(--faint); }
.crumbs b { font-weight: 600; }
.top .sp { flex: 1; }
.sync { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.sync.off { background: var(--err); box-shadow: 0 0 0 3px var(--err-soft); }
.menu-btn { display: none; }
.page { flex: 1; overflow: auto; padding: 20px; min-height: 0; }
.page.flush { padding: 0; display: flex; flex-direction: column; }

/* ---------- ortak parcalar ---------- */
.avatar { width: 24px; height: 24px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; position: relative; }
.avatar.ai { border-radius: 7px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.xs { width: 18px; height: 18px; font-size: 8px; }
.avatar .st { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; background: var(--faint); }
.avatar .st.working { background: var(--ok); }
.avatar .st.blocked { background: var(--err); }
.avatars { display: inline-flex; }
.avatars .avatar { margin-left: -5px; border: 2px solid #fff; }
.avatars .avatar:first-child { margin-left: 0; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 10px; background: var(--soft); color: var(--dim); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.todo { color: #6b7280; }
.pill.doing, .pill.working { color: var(--warn); background: var(--warn-soft); }
.pill.review { color: var(--purple); background: var(--purple-soft); }
.pill.done { color: var(--ok); background: var(--ok-soft); }
.pill.paused, .pill.idle { color: #6b7280; }
.pill.cancelled, .pill.blocked { color: var(--err); background: var(--err-soft); }
.pill.ai { color: var(--accent); background: var(--accent-soft); }

.sicon { width: 14px; height: 14px; border-radius: 50%; border: 2px solid; display: inline-block; flex: none; position: relative; }
.sicon.todo, .sicon.paused { border-color: #9ca3af; }
.sicon.paused { border-style: dashed; }
.sicon.doing { border-color: var(--warn); background: conic-gradient(var(--warn) 0 50%, transparent 50% 100%); }
.sicon.review { border-color: var(--purple); background: conic-gradient(var(--purple) 0 75%, transparent 75% 100%); }
.sicon.done { border-color: var(--ok); background: var(--ok); }
.sicon.done::after { content: ''; position: absolute; left: 3px; top: 0px; width: 3px; height: 6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sicon.cancelled { border-color: var(--err); background: var(--err); }

.prio { display: inline-flex; gap: 1px; align-items: flex-end; height: 12px; }
.prio i { width: 3px; background: var(--line2); border-radius: 1px; }
.prio i:nth-child(1) { height: 5px; } .prio i:nth-child(2) { height: 8px; } .prio i:nth-child(3) { height: 11px; }
.prio.p1 i { background: var(--err); } .prio.p2 i:nth-child(-n+2) { background: var(--warn); } .prio.p3 i:nth-child(1) { background: var(--ok); }

.key { color: var(--faint); font-size: 12px; font-weight: 500; white-space: nowrap; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=search] { width: 220px; }
.toolbar select { width: auto; }
.toolbar .sp { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; padding: 5px 10px; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on { background: var(--soft); font-weight: 600; }
.seg a { padding: 6px 14px; color: var(--dim); text-decoration: none; font-size: 13px; }
.seg a + a { border-left: 1px solid var(--line2); }
.seg a.on { background: var(--soft); color: var(--text); font-weight: 600; }
/* ajan rol kartlari */
.rcard { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.rcard .rc-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rcard, .stack > * { min-width: 0; }
.rcard .chip { white-space: normal; }
@media (max-width: 760px) { .rcard { flex-wrap: wrap; } .rcard > .grow { flex: 1 1 200px; } .provgrid { grid-template-columns: 1fr 1fr; } .provbox .sm { display: none; } }
.provgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.provbox { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; align-content: start; background: #fff; }
.provbox .pill { justify-self: start; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.chk { display: inline-flex !important; gap: 6px; align-items: center; font-size: 13px; font-weight: 400; cursor: pointer; }
.chk input { width: auto; margin: 0; }
details summary { cursor: pointer; }
.empty { color: var(--faint); text-align: center; padding: 22px 10px; font-size: 13px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card > h3 { margin: 0; font-size: 13px; font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.card > h3 .more { margin-left: auto; font-weight: 400; font-size: 12px; }
.card .body { padding: 12px 14px; }
.progress { height: 6px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.clickable { cursor: pointer; }
.clickable:hover { color: var(--accent); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 20px; flex: none; }
.tabs a { padding: 10px 12px; color: var(--dim); font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs .n { color: var(--faint); font-weight: 400; margin-left: 3px; }

/* ---------- genel bakis ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; }
.stat:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.stat b { display: block; font-size: 24px; font-weight: 600; line-height: 1.1; }
.stat span { color: var(--dim); font-size: 12px; }
.stat.attn b { color: var(--purple); }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.col-stack { display: grid; gap: 16px; }
.li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); min-height: 42px; }
.li:first-child { border-top: 0; }
.li:hover { background: #fafbfc; }

/* ---------- gorev listesi (Plane liste gorunumu) ---------- */
.group { margin-bottom: 14px; }
.group-h { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--side); border: 1px solid var(--line); border-radius: 6px 6px 0 0; font-weight: 600; font-size: 13px; }
.group-h .n { color: var(--faint); font-weight: 400; }
.group-h button { margin-left: auto; }
.group-b { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; }
.group-b .empty { padding: 12px; }
.trow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); cursor: pointer; min-height: 40px; }
.trow:first-child { border-top: 0; }
.trow:hover { background: #fafbfc; }
.trow .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .meta { display: flex; align-items: center; gap: 8px; flex: none; }
.chip { font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; white-space: nowrap; }

/* ---------- pano ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; align-items: start; min-height: 100%; }
.col { background: var(--side); border-radius: var(--radius); padding: 8px; min-height: 160px; }
.col.over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.col-h { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 600; font-size: 13px; }
.col-h .n { color: var(--faint); font-weight: 400; }
.col-h button { margin-left: auto; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.tcard:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.tcard.dragging { opacity: .45; }
.tcard .t { font-weight: 500; margin: 3px 0 8px; word-break: break-word; }
.tcard .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tcard .live { font-size: 11px; color: var(--warn); margin-top: 7px; display: flex; gap: 5px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.blink { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- projeler ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; cursor: pointer; display: grid; gap: 10px; }
.pcard:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.pcard .h { display: flex; align-items: center; gap: 10px; }
.pcard .h .pdot { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; }
.pcard .h b { font-size: 15px; }
.pcard .desc { color: var(--dim); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 1em; }
.pcard .f { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.phead { padding: 16px 20px 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; flex: none; }
.phead .pdot { width: 38px; height: 38px; border-radius: 10px; font-size: 13px; }
.phead h2 { margin: 0; font-size: 18px; font-weight: 600; }
.phead .info { display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 12px; margin-top: 3px; flex-wrap: wrap; }
.phead .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pbody { flex: 1; overflow: auto; padding: 16px 20px; min-height: 0; }

/* ---------- sohbet ---------- */
.chat { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--line); border-radius: var(--radius); height: calc(100vh - 250px); min-height: 380px; overflow: hidden; }
.threads { border-right: 1px solid var(--line); overflow-y: auto; background: var(--side); }
.threads .th { padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.threads .th:hover { background: var(--hover); }
.threads .th.on { background: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.threads .th b { font-weight: 500; display: block; }
.conv { display: flex; flex-direction: column; min-width: 0; }
.conv-h { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 12px; align-content: start; }
.msg { display: flex; gap: 10px; }
.msg .bub { background: var(--side); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; white-space: pre-wrap; word-break: break-word; max-width: 760px; }
.msg.ai .bub { background: var(--accent-soft); border-color: #d4e0ff; }
.msg .who { font-size: 12px; color: var(--dim); margin-bottom: 3px; }
.composer { border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 38px; max-height: 160px; }

/* ---------- ajan ofisi ---------- */
.office-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.office-h, .arow { display: grid; grid-template-columns: 300px 1fr; align-items: center; }
.office-h { background: var(--side); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.office-h > div { padding: 7px 14px; }
.ticks { display: flex; justify-content: space-between; }
.arow { border-top: 1px solid var(--line); min-height: 58px; cursor: pointer; }
.arow:first-of-type { border-top: 0; }
.arow:hover { background: #fafbfc; }
.arow.child .who { padding-left: 34px; }
.arow .who { display: flex; gap: 10px; align-items: center; padding: 8px 14px; min-width: 0; border-right: 1px solid var(--line); height: 100%; }
.arow .who .nm { font-weight: 500; }
.arow .now { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow.working .now { color: var(--warn); }
.arow.blocked .now { color: var(--err); }
.track { position: relative; height: 58px; margin: 0 14px; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 16.666% 100%; }
.track .dot { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.track .dot.k-start { background: var(--ok); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
.track .dot.k-stop { background: var(--faint); }
.track .dot.k-error { background: var(--err); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
.track .dot.k-note { background: var(--purple); }
.track .span { position: absolute; top: 50%; height: 4px; margin-top: -2px; background: var(--warn-soft); border-radius: 2px; }
.track .nowline { position: absolute; right: 0; top: 6px; bottom: 6px; width: 2px; background: var(--accent); border-radius: 1px; }
.pulse { position: relative; }
.pulse::after { content: ''; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }

.feed { display: grid; }
.ev { display: grid; grid-template-columns: 62px 18px 1fr; gap: 8px; padding: 7px 14px; border-top: 1px solid var(--line); align-items: start; font-size: 13px; }
.ev:first-child { border-top: 0; }
.ev .tm { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.ev .k { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; background: var(--accent); }
.ev .k.k-start { background: var(--ok); } .ev .k.k-stop { background: var(--faint); } .ev .k.k-error { background: var(--err); } .ev .k.k-note { background: var(--purple); }
.ev .tool { font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 6px; }
.ev.new { animation: flash 1.5s; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }

.steps { position: relative; padding: 4px 0 4px 6px; }
.step { position: relative; padding: 0 0 14px 22px; }
.step::before { content: ''; position: absolute; left: 4px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .k { position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.step .k.k-start { background: var(--ok); } .step .k.k-stop { background: var(--faint); } .step .k.k-error { background: var(--err); } .step .k.k-note { background: var(--purple); }
.step .tm { font-size: 11px; color: var(--faint); }
.ahead { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ahead h2 { margin: 0; font-size: 18px; }
.nowbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; display: flex; gap: 12px; align-items: center; }
.nowbox.working { border-color: #fbd38d; background: #fffbf3; }
.nowbox.blocked { border-color: #f8b4b4; background: #fff8f8; }

/* ---------- gorev detayi (sag panel) ---------- */
.peek { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: #fff; border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 40; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .18s ease; }
.peek.open { transform: none; }
.peek-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.peek-b { flex: 1; overflow-y: auto; padding: 16px 18px 30px; }
.peek .ttl { font-size: 18px; font-weight: 600; border: 1px solid transparent; padding: 4px 6px; margin-left: -7px; }
.peek .ttl:hover { border-color: var(--line); }
.peek .ttl:focus { border-color: var(--accent); }
.peek .desc { border: 1px solid transparent; margin-left: -7px; padding: 6px; min-height: 60px; }
.peek .desc:hover { border-color: var(--line); }
.props { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; align-items: center; margin: 14px 0; font-size: 13px; }
.props > span { color: var(--dim); }
.props select { width: auto; max-width: 100%; padding: 3px 7px; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
.sec { margin-top: 20px; }
.sec h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.deliv { border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; margin-bottom: 6px; }
.backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .18); z-index: 35; }

/* ---------- kararlar ---------- */
.decision { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 12px; display: grid; gap: 10px; max-width: 900px; }
.decision .h { display: flex; gap: 10px; align-items: center; }
.decision .crit { background: var(--side); border-radius: 6px; padding: 8px 10px; font-size: 13px; }

/* ---------- dialog, bildirim ---------- */
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(560px, 94vw); box-shadow: var(--shadow-lg); color: var(--text); }
dialog::backdrop { background: rgba(17, 24, 39, .3); }
dialog form { padding: 20px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
dialog form > *, .li > .grow, .grow { min-width: 0; }
dialog h2 { margin: 0; font-size: 16px; }
dialog .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.keybox { font-family: ui-monospace, Consolas, monospace; background: var(--side); border: 1px solid var(--line); border-radius: 6px; padding: 10px; word-break: break-all; user-select: all; }
.note { background: var(--accent-soft); color: #1e3a8a; border-radius: 7px; padding: 9px 12px; font-size: 13px; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; }
.toast { background: #111827; color: #fff; padding: 9px 14px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow-lg); }
.toast.err { background: var(--err); }

/* ---------- mobil ---------- */
@media (max-width: 900px) {
  .two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .office-h, .arow { grid-template-columns: 190px 1fr; }
  .chat { grid-template-columns: 1fr; height: auto; }
  .threads { max-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .18s; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: inline-flex; }
  .page { padding: 14px; }
  .top { padding: 0 12px; }
  .board { grid-template-columns: repeat(4, 82vw); overflow-x: auto; }
  .trow .meta .chip, .trow .meta .hide-m { display: none; }
  .office-h > div:last-child, .arow .track { display: none; }
  .office-h, .arow { grid-template-columns: 1fr; }
  .arow .who { border-right: 0; }
  .toolbar input[type=search] { width: 100%; }
  /* telefon */
  .main { min-width: 0; }
  .two > *, .col-stack > *, .stats > * { min-width: 0; }
  .app .tabbar { display: flex; }
  .page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  input, select, textarea { font-size: 16px; } /* iOS büyütmesin */
  .top { gap: 6px; }
  .top #quickTask { padding: 6px 10px; }
  .peek { width: 100vw; border-left: 0; }
  .peek-b { padding: 14px 14px calc(30px + env(safe-area-inset-bottom)); }
  .props { grid-template-columns: 96px 1fr; }
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 88vh; }
  dialog form { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: 88vh; }
  dialog .actions button { flex: 1; }
  .arow { grid-template-columns: 1fr; }
  .arow .track { display: block; height: 22px; margin: 0 14px 8px; }
  .office-h > div:last-child { display: none; }
  .chat { height: auto; }
  .msgs { max-height: 55vh; }
  .ev { grid-template-columns: 44px 14px 1fr; padding: 7px 10px; }
  .pgrid { grid-template-columns: 1fr; }
  pre, code { white-space: pre-wrap; word-break: break-all; }
}
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); justify-content: space-around; }
.tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0 4px; font-size: 11px; color: var(--dim); text-decoration: none; border-radius: 8px; }
.tabbar a .ico { font-size: 18px; line-height: 1.1; }
.tabbar a.active { color: var(--accent); font-weight: 600; }
.tb-badge { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--err); color: #fff; font-size: 10px; font-weight: 700; border-radius: 9px; padding: 0 5px; line-height: 16px; }
