/* ============================================================
   Team+ (Premium Team)
   ============================================================ */
.tm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tm-head-act, .tm-back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-secondary);
    transition: .15s;
}
.tm-head-act:hover, .tm-back:hover { color: var(--accent2); border-color: var(--accent2); }
.tm-head-act svg, .tm-back svg { width: 20px; height: 20px; }
.tm-sub-head { display: flex; align-items: center; gap: 12px; }

/* Takım seçici */
.tm-switch { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
.tm-switch::-webkit-scrollbar { height: 0; }
.tm-chip {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0;
    padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-secondary); transition: .15s;
}
.tm-chip svg { width: 15px; height: 15px; }
.tm-chip:hover { border-color: var(--accent2); color: var(--text-primary); }
.tm-chip.active { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.tm-chip-add { border-style: dashed; color: var(--text-muted); }

/* Hero istatistikler */
.tm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.tm-stat {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 16px 14px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border);
}
.tm-stat-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; }
.tm-stat-ic svg { width: 19px; height: 19px; }
.tm-stat-val { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.tm-stat-lbl { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* YÖNETİM kart ızgarası */
.tm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tm-card {
    position: relative; display: flex; flex-direction: column; gap: 8px;
    padding: 16px 14px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border);
    transition: .15s;
}
a.tm-card:hover { border-color: var(--accent2); transform: translateY(-2px); box-shadow: var(--shadow); }
.tm-card-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; }
.tm-card-ic svg { width: 20px; height: 20px; }
.tm-card-t { font-size: 14.5px; font-weight: 700; color: var(--text-primary); }
.tm-card-s { font-size: 12px; color: var(--text-muted); }
.tm-soon { opacity: .72; }
.tm-soon-tag {
    position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 700; letter-spacing: .4px;
    padding: 2px 7px; border-radius: 999px; background: var(--bg-surface-2); color: var(--text-muted); border: 1px solid var(--border);
}

/* Son aktiviteler */
.tm-acts { display: flex; flex-direction: column; gap: 8px; }
.tm-act { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--border); }
.tm-act-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.tm-act-ic svg { width: 17px; height: 17px; }
.tm-act-main { flex: 1; min-width: 0; }
.tm-act-name { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-act-meta { font-size: 12px; color: var(--text-muted); }
.tm-act-time { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* Alt sayfa listeleri (üyeler / davetler) */
.tm-list { display: flex; flex-direction: column; gap: 10px; }
.tm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); }
.tm-ava { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.tm-ava-mail { background: var(--bg-surface-2); color: var(--text-muted); }
.tm-ava-mail svg { width: 19px; height: 19px; }
.tm-row-main { flex: 1; min-width: 0; }
.tm-row-name { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--text-primary); }
.tm-row-sub { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-crown { width: 15px; height: 15px; color: #f5b301; }
.tm-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-surface-2); color: var(--text-secondary); border: 1px solid var(--border); flex-shrink: 0; }
.tm-pill-owner { background: var(--accent-soft); color: var(--accent-bright); border-color: transparent; }
.tm-row-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: transparent; border: 1px solid var(--border); color: var(--text-muted); flex-shrink: 0; }
.tm-row-x:hover { color: var(--danger); border-color: var(--danger); }
.tm-row-x svg { width: 16px; height: 16px; }

/* Roller */
.tm-roles { display: flex; flex-direction: column; gap: 12px; }
.tm-role { padding: 15px 16px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); }
.tm-role-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tm-role-name { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.tm-role-name svg { width: 17px; height: 17px; color: var(--accent); }
.tm-tag-sys { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px; background: var(--bg-surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.tm-perms { display: flex; flex-wrap: wrap; gap: 7px; }
.tm-perm { font-size: 12px; padding: 4px 10px; border-radius: 8px; background: var(--accent2-soft); color: var(--accent2); font-weight: 600; }

/* Davet gönderme formu */
.tm-invite-form { margin-bottom: 22px; }
.tm-if-row { display: flex; gap: 10px; }
.tm-if-row input[type=email] { flex: 1; min-width: 0; }
.tm-if-row input, .tm-if-row select { padding: 11px 13px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-primary); font-size: 14px; }
.tm-if-row select { flex-shrink: 0; }

@media (min-width: 720px) {
    .tm-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
    .tm-if-row { flex-wrap: wrap; }
    .tm-if-row input[type=email] { flex-basis: 100%; }
    .tm-if-row select { flex: 1; }
}

/* ============================================================
   Team+ — Takımlar listesi & takım detayı
   ============================================================ */
/* Liste başlığı + arama */
.tm-list-head .page-title { display: flex; align-items: center; gap: 12px; }
.tm-lh-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent2); color: #fff; }
.tm-lh-ic svg { width: 24px; height: 24px; }
.tm-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); }
.tm-search > svg { width: 19px; height: 19px; color: var(--text-muted); flex-shrink: 0; }
.tm-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text-primary); font-size: 15px; outline: none; }
.tm-mic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: transparent; border: 0; color: var(--text-muted); flex-shrink: 0; }
.tm-mic:hover { color: var(--accent2); }
.tm-mic.rec { color: var(--danger); animation: tmpulse 1s infinite; }
@keyframes tmpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Takım kartları */
.tm-tlist { display: flex; flex-direction: column; gap: 12px; }
.tm-tcard { position: relative; display: flex; align-items: stretch; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border); overflow: hidden; }
.tm-tcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tm-accent, var(--accent2)); }
.tm-tcard-link { flex: 1; display: flex; align-items: center; gap: 14px; padding: 15px 8px 15px 18px; min-width: 0; }
.tm-tcard-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 15px; color: #fff; flex-shrink: 0; }
.tm-tcard-ic svg { width: 26px; height: 26px; }
.tm-tcard-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; padding-right: 42px; flex: 1; }
.tm-tcard-name { font-size: 16px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-tcard-sub { font-size: 13px; color: var(--text-muted); }
.tm-tcard-ava { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; opacity: .9; }
.tm-tcard-menu { position: relative; display: flex; align-items: center; padding-right: 8px; }
.tm-more { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: transparent; border: 0; color: var(--text-muted); }
.tm-more:hover { color: var(--text-primary); background: var(--bg-surface-2); }
.tm-more svg { width: 20px; height: 20px; }
.tm-menu { position: absolute; top: 44px; right: 4px; z-index: 50; min-width: 168px; display: none; flex-direction: column; padding: 6px; border-radius: 14px; background: var(--bg-elevated); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.tm-menu.open { display: flex; }
.tm-menu-right { right: 4px; }
.tm-menu a, .tm-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; border-radius: 9px; background: transparent; border: 0; color: var(--text-secondary); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.tm-menu a:hover, .tm-menu button:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.tm-menu svg { width: 16px; height: 16px; }
.tm-menu form { width: 100%; }
.tm-menu-del:hover { color: var(--danger) !important; }
.tm-noresult { padding: 24px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* Geniş "+ Takım" düğmesi */
.tm-fab-wide { position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 22px; padding: 16px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--accent2), #6aa9ff); color: #fff; font-size: 16px; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
.tm-fab-wide svg { width: 20px; height: 20px; }

/* Detay başlığı */
.tm-detail-head { display: flex; align-items: center; gap: 12px; }
.tm-dh-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; flex-shrink: 0; }
.tm-dh-ic svg { width: 24px; height: 24px; }
.tm-dh-title { flex: 1; font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-dh-menu { padding-right: 0; }

/* Sekmeler */
.tm-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 20px; border-bottom: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.tm-tabs::-webkit-scrollbar { height: 0; }
.tm-tab { position: relative; white-space: nowrap; flex-shrink: 0; padding: 12px 16px; background: transparent; border: 0; color: var(--text-muted); font-size: 15px; font-weight: 600; cursor: pointer; }
.tm-tab.active { color: var(--accent2); }
.tm-tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--accent2); }

/* Paneller */
.tm-panel { display: none; }
.tm-panel.show { display: block; }

/* Genel bakış kartı */
.tm-ov-card { padding: 18px; border-radius: 20px; background: var(--bg-surface); border: 1px solid var(--border); margin-bottom: 22px; }
.tm-ov-top { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.tm-ov-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; flex-shrink: 0; }
.tm-ov-ic svg { width: 24px; height: 24px; }
.tm-ov-name { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.tm-ov-sub { font-size: 13px; color: var(--text-muted); }
.tm-ov-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.tm-ov-stats > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; }
.tm-ov-stats > div + div { border-left: 1px solid var(--border); }
.tm-ov-val { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.tm-ov-lbl { font-size: 12px; color: var(--text-muted); }

.tm-sec-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 22px 0 12px; }
.tm-row-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.tm-row-chev { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.tm-ava-act { background: var(--bg-surface-2); }
.tm-ava-act svg { width: 18px; height: 18px; }

/* Geniş aksiyon düğmesi (davet/ekle) */
.tm-wide-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; margin-bottom: 16px; border-radius: 15px; background: var(--bg-surface); border: 1px dashed var(--border-strong); color: var(--text-primary); font-size: 15px; font-weight: 600; cursor: pointer; }
.tm-wide-btn:hover { border-color: var(--accent2); color: var(--accent2); }
.tm-wide-btn svg { width: 19px; height: 19px; }
.tm-modal-note { font-size: 13.5px; color: var(--text-secondary); margin: 4px 0 14px; line-height: 1.5; }

@media (max-width: 860px) {
    .tm-fab-wide { position: fixed; left: 16px; right: 16px; bottom: calc(var(--bottomnav-h, 72px) + 12px); width: auto; margin: 0; z-index: 60; }
}

/* Takım simge + renk seçici (oluştur/düzenle modalı) */
.tm-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-pick-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bg-surface-2); border: 1.5px solid var(--border); color: var(--text-secondary); cursor: pointer; transition: .12s; }
.tm-pick-ic svg { width: 22px; height: 22px; }
.tm-pick-ic:hover { color: var(--text-primary); border-color: var(--border-strong); }
.tm-pick-ic.sel { background: var(--accent2-soft); border-color: var(--accent2); color: var(--accent2); }
.tm-pick-color { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: .12s; }
.tm-pick-color svg { width: 18px; height: 18px; color: #fff; opacity: 0; transition: .12s; stroke-width: 3; }
.tm-pick-color.sel { border-color: var(--text-primary); box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--text-primary); }
.tm-pick-color.sel svg { opacity: 1; }

/* Davetler — gelen davet satırı (kabul/reddet) */
.tm-invrow { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); }
.tm-invrow-top { display: flex; align-items: center; gap: 12px; }
.tm-invrow-acts { display: flex; gap: 10px; }
.tm-inv-yes, .tm-inv-no { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); }
.tm-inv-yes { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.tm-inv-yes:hover { filter: brightness(1.06); }
.tm-inv-no { background: transparent; color: var(--text-secondary); }
.tm-inv-no:hover { border-color: var(--danger); color: var(--danger); }
.tm-inv-yes svg, .tm-inv-no svg { width: 16px; height: 16px; }

/* ============================================================
   Roller & Yetkiler
   ============================================================ */
.tm-rolechips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; -webkit-overflow-scrolling: touch; }
.tm-rolechips::-webkit-scrollbar { height: 0; }
.tm-rolechip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; transition: .14s; }
.tm-rolechip svg { width: 16px; height: 16px; color: var(--rc); }
.tm-rolechip:hover { border-color: var(--rc); color: var(--text-primary); }
.tm-rolechip.active { background: var(--rc); border-color: var(--rc); color: #fff; }
.tm-rolechip.active svg { color: #fff; }

.tm-rolepanel { display: none; }
.tm-rolepanel.show { display: block; }
.tm-role-card { position: relative; display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border); margin-bottom: 14px; overflow: hidden; }
.tm-role-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rc); }
.tm-role-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; flex-shrink: 0; }
.tm-role-ic svg { width: 24px; height: 24px; }
.tm-role-info { flex: 1; min-width: 0; }
.tm-role-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.tm-role-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg-surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.tm-role-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.tm-role-count { font-family: var(--font-display); font-weight: 800; font-size: 14px; padding: 5px 11px; border-radius: 999px; background: var(--bg-surface-2); flex-shrink: 0; }

.tm-permlist { display: flex; flex-direction: column; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); overflow: hidden; }
.tm-perm-row { display: flex; align-items: center; gap: 13px; padding: 14px 16px; }
.tm-perm-row + .tm-perm-row { border-top: 1px solid var(--border); }
.tm-perm-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-surface-2); color: var(--text-muted); flex-shrink: 0; font-size: 13px; }
.tm-perm-dot.on { background: var(--accent-soft); color: var(--accent-bright); }
.tm-perm-dot svg { width: 15px; height: 15px; }
.tm-perm-lbl { font-size: 14.5px; color: var(--text-primary); }
.tm-perm-lbl.off { color: var(--text-muted); }

.tm-role-actions { display: flex; gap: 10px; margin-top: 14px; }
.tm-role-edit, .tm-role-del { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; border-radius: 13px; font-size: 14px; font-weight: 600; cursor: pointer; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-secondary); }
.tm-role-edit:hover { border-color: var(--accent2); color: var(--accent2); }
.tm-role-del:hover { border-color: var(--danger); color: var(--danger); }
.tm-role-edit svg, .tm-role-del svg { width: 16px; height: 16px; }
.tm-role-actions form { flex: 1; display: flex; }

/* Yetki matrisi */
.tm-matrix-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.tm-matrix { width: 100%; border-collapse: collapse; background: var(--bg-surface); }
.tm-matrix th, .tm-matrix td { padding: 13px 14px; text-align: left; white-space: nowrap; }
.tm-matrix thead th { border-bottom: 1px solid var(--border-strong); font-size: 13px; }
.tm-mx-head { font-weight: 700; color: var(--text-primary); position: sticky; left: 0; background: var(--bg-surface); z-index: 2; }
.tm-mx-role { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.tm-mx-role svg { width: 15px; height: 15px; }
.tm-matrix tbody tr + tr td { border-top: 1px solid var(--border); }
.tm-mx-perm { font-size: 13.5px; color: var(--text-secondary); position: sticky; left: 0; background: var(--bg-surface); z-index: 1; min-width: 190px; }
.tm-mx-cell { text-align: center; }
.tm-mx-yes { width: 17px; height: 17px; color: var(--accent-bright); }
.tm-mx-no { color: var(--text-muted); }

/* Yetki seçim listesi (rol modalı) */
.tm-permpick { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 6px; }
.tm-permopt { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--text-secondary); }
.tm-permopt:hover { background: var(--bg-surface-2); }
.tm-permopt input { position: absolute; opacity: 0; width: 0; height: 0; }
.tm-permopt-box { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border-strong); color: transparent; flex-shrink: 0; transition: .12s; }
.tm-permopt-box svg { width: 14px; height: 14px; }
.tm-permopt input:checked + .tm-permopt-box { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.tm-permopt input:checked ~ span:last-child { color: var(--text-primary); }

/* ============================================================
   Team+ — Audit Log / Destek / Sahiplik
   ============================================================ */
.tm-page-head { display: flex; flex-direction: column; }
.tm-page-sub { font-size: 13.5px; color: var(--text-muted); }
.tm-audit-count { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* Tarih filtresi (select) */
.tm-audit-date { display: flex; align-items: center; gap: 10px; padding: 13px 14px; margin-bottom: 16px; border-radius: 15px; background: var(--bg-surface); border: 1px solid var(--border); }
.tm-audit-date > svg:first-child { width: 19px; height: 19px; color: var(--text-muted); flex-shrink: 0; }
.tm-audit-date select { flex: 1; background: transparent; border: 0; color: var(--text-primary); font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.tm-audit-date > svg:last-child { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

/* Audit satırı */
.tm-audit-row { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 15px; background: var(--bg-surface); border: 1px solid var(--border); }
.tm-audit-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent2-soft); color: var(--accent2); flex-shrink: 0; }
.tm-audit-ic svg { width: 21px; height: 21px; }
.tm-audit-main { flex: 1; min-width: 0; }
.tm-audit-top { display: flex; align-items: center; gap: 9px; }
.tm-audit-user { font-size: 15px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-audit-badge { font-size: 12px; font-weight: 800; letter-spacing: .4px; padding: 1px 8px; border-radius: 6px; background: var(--bg-surface-2); flex-shrink: 0; }
.tm-audit-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.tm-audit-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-muted); }
.tm-audit-meta svg { width: 13px; height: 13px; }
.tm-audit-err { color: var(--danger) !important; }
.tm-audit-time { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; color: var(--text-muted); flex-shrink: 0; }

/* Geniş gradient CTA (Destek İste) */
.tm-wide-cta { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 16px; margin-bottom: 24px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--accent2), #6aa9ff); color: #fff; font-size: 16px; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
.tm-wide-cta svg { width: 20px; height: 20px; }

/* Destek talebi satırı */
.tm-suprow { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); }
.tm-suprow-top { display: flex; align-items: center; gap: 12px; }
.tm-sup-msg { font-size: 14px; color: var(--text-secondary); line-height: 1.5; padding: 10px 12px; border-radius: 11px; background: var(--bg-surface-2); }

/* Yardım isteyeceği kişi seçimi (radio) */
.tm-helperlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; max-height: 240px; overflow-y: auto; }
.tm-helper { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; border: 1.5px solid var(--border); cursor: pointer; transition: .12s; }
.tm-helper:hover { border-color: var(--border-strong); }
.tm-helper input { position: absolute; opacity: 0; width: 0; height: 0; }
.tm-helper-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; margin-left: auto; transition: .12s; }
.tm-helper:has(input:checked) { border-color: var(--accent2); background: var(--accent2-soft); }
.tm-helper:has(input:checked) .tm-helper-dot { border-color: var(--accent2); background: var(--accent2); box-shadow: inset 0 0 0 3px var(--bg-surface); }

/* Sahiplik */
.tm-owner-row .tm-pill-primary { background: rgba(245,179,1,.16); color: #f5b301; border-color: transparent; }
.tm-deleg { position: relative; display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); margin-bottom: 14px; overflow: hidden; }
.tm-deleg::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent2); }
.tm-deleg.active::before { background: var(--accent); }
.tm-deleg-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent2-soft); color: var(--accent2); flex-shrink: 0; }
.tm-deleg.active .tm-deleg-ic { background: var(--accent-soft); color: var(--accent-bright); }
.tm-deleg-ic svg { width: 22px; height: 22px; }

/* ============================================================
   Team+ — Görev Panosu
   ============================================================ */
.tm-prog-card { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 20px; background: var(--bg-surface); border: 1px solid var(--border); margin-bottom: 24px; overflow: hidden; }
.tm-prog-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent2); }
.tm-prog-ring { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.tm-prog-ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.tm-ring-bg { fill: none; stroke: var(--bg-surface-2); stroke-width: 9; }
.tm-ring-fg { fill: none; stroke: var(--accent2); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.tm-ring-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--text-primary); }
.tm-prog-info { flex: 1; min-width: 0; }
.tm-prog-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.tm-prog-sub { font-size: 13px; color: var(--text-muted); margin: 3px 0 12px; }
.tm-prog-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-prog-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 10px; }
.tm-prog-pill svg { width: 15px; height: 15px; }
.tm-prog-pill.done { background: rgba(34,197,94,.14); color: #22c55e; }
.tm-prog-pill.rem { background: rgba(245,158,11,.14); color: #f59e0b; }

/* Şu an çalışan */
.tm-now-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.tm-now-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); flex-shrink: 0; }
.tm-now-empty { position: relative; display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 14.5px; overflow: hidden; }
.tm-now-empty::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--border-strong); }
.tm-now-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: var(--bg-surface-2); color: var(--text-muted); flex-shrink: 0; }
.tm-now-ic svg { width: 22px; height: 22px; }
.tm-now-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #22c55e; flex-shrink: 0; }

/* Görev satırı */
.tm-taskrow { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 15px; background: var(--bg-surface); border: 1px solid var(--border); }
.tm-taskrow.done { opacity: .66; }
.tm-taskrow.done .tm-task-title { text-decoration: line-through; }
.tm-task-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.tm-task-status { font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.tm-inline-ic { width: 12px; height: 12px; vertical-align: -1px; }

/* Team+ — İzin Talepleri */
.tm-leave-head { position: relative; }
.tm-leave-head .tm-back { margin-bottom: 12px; }
.tm-leave-refresh { position: absolute; top: 0; right: 0; }
.tm-leaverow { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); }
.tm-leaverow-top { display: flex; align-items: center; gap: 12px; }

