/* Mim Bytes İSG — ortak taban stillerin (tokens.css + app.css, bizim tasarım dili) üstüne İSG'ye özel ekler. */
.sidebar { overflow-y: auto; scrollbar-width: thin; }
.sidebar .me { position: sticky; bottom: -20px; background: var(--mb-bg-sunken); padding-bottom: 14px; margin-bottom: -6px; }
.nav a { height: auto; min-height: 36px; padding: 6px 12px; line-height: 1.25; font-size: 13.5px; }
.nav a.active::before { top: 8px; bottom: 8px; }
a.stat, .feed a.it { color: inherit; text-decoration: none; }
.feed a.it:hover b { color: var(--mb-accent-text); }
.feed .it .avatar { width: 34px; height: 34px; font-size: 12px; }
.feed time.gecti, b.gecti { color: var(--mb-danger); font-weight: 600; }
.content > .card + .card, .content > .grid-2 + .card { margin-top: 0; }

/* süzülebilir tablo */
.dt-bar { margin-bottom: 12px; }
.dt-bar .input-icon { min-width: 240px; }
.dt-bar .dt-q { width: 100%; }
table.dt thead th[data-s] { cursor: pointer; user-select: none; }
table.dt thead th[data-s]:hover { color: var(--mb-text-primary); }
table.dt thead th.sorted { color: var(--mb-accent-text); }
table.dt thead tr.dt-f th { height: 40px; padding: 4px 8px; position: static; background: var(--mb-bg-elevated); border-bottom: 1px solid var(--mb-border-subtle); }
tr.dt-f input, tr.dt-f select { width: 100%; min-width: 70px; height: 30px; padding: 0 8px; border-radius: var(--mb-radius-xs); border: 1px solid var(--mb-border-subtle); background: var(--mb-bg-inset); font-size: 12px; font-weight: 400; color: var(--mb-text-primary); }
tr.dt-f input:focus, tr.dt-f select:focus { outline: none; border-color: var(--mb-accent); }
table.dt tbody td { height: 46px; padding: 8px 16px; white-space: nowrap; }
table.dt td.td-wrap { min-width: 160px; max-width: 420px; white-space: normal; overflow-wrap: anywhere; }
table.dt td.mono { font-family: var(--mb-font-mono); font-size: 13px; }
tr.is-click { cursor: pointer; }
tr.is-pasif td { color: var(--mb-text-muted); }
tr.is-gecik { box-shadow: inset 3px 0 0 var(--mb-danger); background: var(--mb-danger-subtle); }
.p-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.p-cell .avatar { width: 32px; height: 32px; font-size: 12px; }

/* onay / çıktı seçimi / büyük fotoğraf: kayıt penceresinin üstünde açılır */
.onay { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(4, 8, 14, .62); backdrop-filter: blur(2px); }
.onay-kutu { width: min(440px, 100%); padding: 24px; border-radius: var(--mb-radius-lg); background: var(--mb-bg-elevated); border: 1px solid var(--mb-border-default); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); }
.onay-kutu h2 { font: 600 19px var(--mb-font-display); margin: 0 0 8px; }
.onay-kutu .sub { color: var(--mb-text-secondary); margin: 0; }
.onay-kutu .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.cikti-sec { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cikti-sec .btn { justify-content: flex-start; }
.onay.buyut { background: rgba(0, 0, 0, .88); cursor: zoom-out; }
.onay.buyut img { max-width: 100%; max-height: calc(100vh - 32px); border-radius: var(--mb-radius-md); object-fit: contain; }
.onay.buyut .btn { position: fixed; top: 14px; right: 14px; }

/* personel seçici */
.pp-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 10px; }
@media (max-width: 640px) { .pp-bar { grid-template-columns: 1fr; } }
.pp-sec { margin-top: 10px; }
.pp-sec .chips { max-height: 190px; overflow: auto; padding: 2px; }
.pp-sec .chip small { margin-left: 6px; color: var(--mb-text-muted); font-size: 11px; }
.pp-say { font-size: 12px; color: var(--mb-text-secondary); margin-bottom: 6px; }
.pp-temizle { border: 0; background: none; padding: 0; margin-left: 4px; color: var(--mb-accent-text); font: inherit; font-size: 12px; cursor: pointer; }
.pp-temizle:hover { text-decoration: underline; }
.pp-bos { padding: 12px 14px; border: 1px dashed var(--mb-border-default); border-radius: var(--mb-radius-md); color: var(--mb-text-muted); font-size: 13px; }
.chips .chip { cursor: pointer; }

/* ekler */
.ek-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ek-foto { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.ek-foto:not(:empty) { margin-bottom: 10px; }
.ek-f { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--mb-radius-md); overflow: hidden; background: var(--mb-bg-inset); border: 1px solid var(--mb-border-subtle); }
.ek-f img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.ek-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(6, 10, 16, .78); color: #fff; cursor: pointer; }
.ek-x svg { width: 14px; height: 14px; }
.ek-x:hover { background: var(--mb-danger); }
.ek-belge { display: flex; flex-direction: column; gap: 6px; }
.ek-d { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border: 1px solid var(--mb-border-subtle); border-radius: var(--mb-radius-md); background: var(--mb-bg-inset); }
.ek-d a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--mb-text-primary); text-decoration: none; }
.ek-d a[href]:hover span { color: var(--mb-accent-text); text-decoration: underline; }
.ek-d a svg { width: 18px; height: 18px; flex: none; color: var(--mb-text-muted); }
.ek-d a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-d a small { margin-left: auto; color: var(--mb-text-muted); white-space: nowrap; }

/* haftalık toplantı galerisi */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--mb-space-4); }
.gal.buyuk { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.gal-k { display: flex; flex-direction: column; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; overflow: hidden; border-radius: var(--mb-radius-lg); border: 1px solid var(--mb-border-subtle); background: var(--mb-bg-elevated); transition: border-color var(--mb-dur-fast), transform var(--mb-dur-fast); }
.gal-k:hover, .gal-k:focus-visible { border-color: var(--mb-accent); transform: translateY(-2px); outline: none; }
.gal-g { position: relative; aspect-ratio: 16 / 10; background: var(--mb-bg-inset); display: grid; place-items: center; }
.gal-g > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-g > svg { width: 38px; height: 38px; color: var(--mb-text-muted); opacity: .5; }
.gal-n { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 12px; background: rgba(6, 10, 16, .74); color: #fff; }
.gal-n svg { width: 13px; height: 13px; }
.gal-b { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.gal-b time { font-size: 12px; color: var(--mb-accent-text); }
.gal-b b { font: 600 15px/1.3 var(--mb-font-display); overflow-wrap: anywhere; }
.gal-b span { font-size: 12.5px; color: var(--mb-text-secondary); min-height: 1em; }

/* personel kartı */
.pk { display: flex; flex-direction: column; gap: var(--mb-space-5); }
.pk-ust { display: flex; align-items: center; gap: var(--mb-space-4); }
.pk-av { width: 64px; height: 64px; font-size: 22px; flex: none; }
.pk-kim h2 { font: 600 24px var(--mb-font-display); letter-spacing: -.01em; margin: 0 0 8px; overflow-wrap: anywhere; }
.pk-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: var(--mb-text-secondary); }
.pk-kutu { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pk-kutu > div { padding: 12px 14px; border-radius: var(--mb-radius-md); background: var(--mb-bg-inset); border: 1px solid var(--mb-border-subtle); }
.pk-kutu span { display: block; font-size: 12px; color: var(--mb-text-muted); margin-bottom: 4px; }
.pk-kutu b { font-weight: 600; font-size: 15px; }
.pk-hizli { display: flex; flex-wrap: wrap; gap: 8px; }
.modal .field label .pp-temizle { font-weight: 400; }

/* giriş ekranı görseli */
.login-visual svg.kask { height: 66%; }
.kask-cizgi path { fill: none; stroke: var(--mb-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: kask-ciz 2.4s var(--mb-ease-decelerate, ease-out) .2s forwards; }
.kask-tik { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: kask-ciz 0.6s ease-out 2.2s forwards; filter: drop-shadow(0 0 8px var(--mb-accent)); }
[data-theme=light] .kask-tik { stroke: var(--mb-accent); }
.kask-halka { fill: none; stroke: var(--mb-accent); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: kask-halka 4.8s ease-out infinite; }
@keyframes kask-ciz { to { stroke-dashoffset: 0; } }
@keyframes kask-halka { 0% { opacity: .5; transform: scale(.9); } 100% { opacity: 0; transform: scale(2.3); } }
.login-panel { overflow: hidden; }
.login-form .btn-primary:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .login *, .login *::before, .login *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; } .kask-cizgi path, .kask-tik { stroke-dashoffset: 0; } .kask-halka { display: none; }
}

/* telefon: saha kullanımı */
@media (max-width: 640px) {
  .gal, .gal.buyuk { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gal-b { padding: 10px; } .gal-b b { font-size: 14px; }
  .pk-hizli .btn { flex: 1 1 46%; justify-content: center; }
  .toolbar .pill-group { overflow-x: auto; max-width: 100%; }
  .toolbar .pill-group button { white-space: nowrap; flex: none; }
  .toolbar .btn { flex: 1 1 auto; justify-content: center; }
}
