/* Uygulama iskeleti: başlık, görünüm sekmeleri, filtre çubuğu, görünüm alanı. */
#app { display: grid; grid-template-rows: var(--hdr-h) var(--fbar-h) minmax(0, 1fr); height: 100vh; }

/* ---------- başlık ---------- */
.hdr { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; background: var(--bg); min-width: 0; }
.hdr-logo { display: flex; align-items: center; padding-right: 10px; margin-right: 2px; border-right: 1px solid var(--line); height: 26px; }
.hdr-logo img { height: 24px; width: auto; display: block; }
.vtabs { display: flex; align-items: center; gap: 2px; padding: 2px; margin-left: 4px; }
.vtab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 500; white-space: nowrap; transition: background .12s, color .12s; }
.vtab:hover { background: var(--hover2); color: var(--text); }
.vtab.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .07), 0 0 0 1px var(--line); }
.vtab.on .i { color: var(--accent-d); }
.vtab .soon { position: absolute; top: 7px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: #f5b544; font-size: 0; }
.hdr-search { width: 230px; }
.hdr-search:focus-within { width: 300px; }
.hdr .btn { height: 30px; }
.hdr .btn .cnt { margin-left: 2px; }
.role { display: flex; align-items: center; gap: 8px; max-width: 230px; height: 36px; padding: 0 8px 0 5px; border-radius: 9px; border: 1px solid var(--line); background: #fff; text-align: left; transition: border-color .15s; }
.role:hover { border-color: #d4d4d8; }
.role-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.role-t b { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-t span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role .i { color: var(--faint); }

/* ---------- filtre çubuğu ---------- */
.fbar { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 16px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.fbar::-webkit-scrollbar { display: none; }
.fbar > * { flex: none; }
.fb-st { display: flex; gap: 4px; }
.fdrop { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--text2); font-size: var(--fs-sm); white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.fdrop:hover { background: var(--hover); border-color: #d4d4d8; }
.fdrop.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-d); }
.achip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 3px 0 8px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-soft2); color: var(--accent-d); font-size: var(--fs-sm); white-space: nowrap; }
.achip button { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent-d); }
.achip button:hover { background: rgba(73, 157, 88, .15); }
.fb-stat { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; padding: 0 4px; }
.fb-stat b { color: var(--text2); font-weight: 600; font-variant-numeric: tabular-nums; }
.fb-stat.late b, .fb-stat.late { color: var(--danger); }
.opt.pend b { font-variant-numeric: tabular-nums; }

/* ---------- görünüm alanı ---------- */
.view-host { position: relative; min-height: 0; min-width: 0; display: flex; }
.view-root { flex: 1; min-width: 0; min-height: 0; display: flex; }
.view-loading { margin: auto; display: flex; align-items: center; gap: 8px; color: var(--faint); }
.view-error { margin: auto; }

@media (max-width: 1360px) {
  .vtab { padding: 0 9px; }
  .hdr-search { width: 170px; }
  .hdr-search:focus-within { width: 240px; }
  .role { max-width: 180px; }
}
@media (max-width: 1400px) {
  .fb-st .fchip .lbl { display: none; }
  .fb-stat.total { display: none; }
}
@media (max-width: 1240px) {
  .vtab span:not(.soon) { display: none; }
  .role-t { display: none; }
}

/* --- AI Proje eklemeleri --- */
.hdr-brand { display: flex; align-items: center; gap: 10px; padding-right: 12px; margin-right: 2px; border-right: 1px solid var(--line); height: 28px; }
.hdr-brand img { height: 22px; width: auto; display: block; }
.hdr-brand b { font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; color: var(--text2); }
.hdr-brand b span { color: var(--accent-d); }
.hdr-search-btn { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--faint); width: 150px; text-align: left; white-space: nowrap; transition: border-color .12s; flex: none; }
.hdr-search-btn:hover { border-color: #d0d0d6; color: var(--muted); }
.hdr-search-btn span { flex: 1; }
.inbox-btn .cnt.hotp { margin-left: 2px; }
.fb-group { display: inline-flex; align-items: center; gap: 4px; }
.fb-lbl { font-size: 11.5px; color: var(--faint); margin-right: 2px; }
.fchip .hdot { box-shadow: none !important; width: 7px; height: 7px; }
.fchip.on .hdot.h-idle { background: transparent; border-color: #fff; }
.fb-mine.on { background: var(--accent); border-color: var(--accent-d); }
.fb-stats { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--muted); padding-left: 6px; }
.fb-stats b { color: var(--text2); font-weight: 600; font-variant-numeric: tabular-nums; }
.fb-stats .late b { color: var(--late); }
@media (max-width: 1480px) { .hdr-brand b { display: none; } .fb-stats .tot { display: none; } }
@media (max-width: 1360px) { .vtab { padding: 0 9px; } .fb-group .fchip .lbl { display: none; } }
@media (max-width: 1180px) { .hdr-search-btn span, .hdr-search-btn kbd { display: none; } .hdr-search-btn { width: auto; } .vtab span { display: none; } }

.lnk, .alink { white-space: nowrap; }
.hdr .role { flex: none; }
.fbar .filter { width: 170px; }
@media (max-width: 1560px) { .inbox-btn > span:not(.cnt) { display: none; } .hdr .role { max-width: 190px; } }
@media (max-width: 1440px) { .hdr .vtab { padding: 0 8px; } .hdr { gap: 6px; } }
