/* ==========================================================================
   Yazı İşleri Arşivi — yönetim paneli tasarımına (admin.css) ek stiller
   ========================================================================== */

/* ---------- Tablolar ---------- */
.table--click tbody tr { cursor: pointer; }
.table--click tbody tr:focus-visible td { background: var(--primary-soft); outline: none; }
.table tr.is-off td { opacity: .55; }
.table-foot { padding: 10px 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); display: flex; justify-content: center; }
.doc-cell { min-width: 0; max-width: 560px; }
.doc-cell b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-cell small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar .switch { padding-top: 0; }
.card__head .inp--sm { max-width: 220px; padding-right: 9px; }

/* ---------- Yetki seviyesi renkleri (1 en üst) ---------- */
.rank { font-variant-numeric: tabular-nums; }
.pill.rank--1, .level__no.rank--1 { background: rgba(168, 85, 247, .16); color: #c084fc; }
.pill.rank--2, .level__no.rank--2 { background: rgba(244, 114, 182, .15); color: #f472b6; }
.pill.rank--3, .level__no.rank--3 { background: rgba(251, 146, 60, .15); color: #fb923c; }
.pill.rank--4, .level__no.rank--4 { background: var(--warning-soft); color: var(--warning); }
.pill.rank--5, .level__no.rank--5 { background: var(--primary-soft); color: var(--primary-2); }
.pill.rank--6, .level__no.rank--6 { background: var(--success-soft); color: #34d399; }
.pill.rank--7, .level__no.rank--7 { background: var(--hover); color: var(--muted); }

/* ---------- Seviye listesi ---------- */
.levels { list-style: none; margin: 0; padding: 0; }
.level { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.level:last-child { border-bottom: 0; }
.level__no { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.level__main { flex: 1; min-width: 0; }
.level__main b { display: block; font-weight: 600; font-size: 14px; }
.level__main small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.level__acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.level__acts .pill .ic { width: 13px; height: 13px; margin-right: 4px; }

/* ---------- Onay kutusu ---------- */
.chk { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; cursor: pointer; }
.chk input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chk span { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--input); display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s, color .15s; pointer-events: none; }
.chk span .ic { width: 13px; height: 13px; }
.chk input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chk input:focus-visible + span { box-shadow: var(--ring); }
.chk input:disabled { cursor: not-allowed; }
.chk input:disabled + span { opacity: .55; }

/* ---------- İzin tablosu ---------- */
.matrix th.matrix__role { text-align: center; white-space: normal; min-width: 92px; vertical-align: bottom; }
.matrix th.matrix__role span { display: inline-block; max-width: 110px; line-height: 1.3; }
.matrix td.matrix__cell { text-align: center; }
.matrix td:first-child { min-width: 240px; }
.matrix .doc-cell b, .matrix .doc-cell small { white-space: normal; }

/* ---------- İzin seçimi (yan panel) ---------- */
.perm-pick { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.perm-opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.perm-opt:last-child { border-bottom: 0; }
.perm-opt:hover { background: var(--hover); }
.perm-opt .chk { margin-top: 1px; }
.perm-opt b { display: block; font-weight: 500; font-size: 13.5px; }
.perm-opt small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

/* ---------- Yetkilerim penceresi ---------- */
.perm-list { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 18px; }
.perm-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; opacity: .55; }
.perm-row.is-on { opacity: 1; }
.perm-row__ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--hover); color: var(--muted); flex-shrink: 0; }
.perm-row.is-on .perm-row__ic { background: var(--success-soft); color: #34d399; }
.perm-row__ic .ic { width: 12px; height: 12px; }
.perm-row b { display: block; font-weight: 500; font-size: 13.5px; }
.perm-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }

/* ---------- Belge düzenleyici ---------- */
.card__pad { padding: 20px; }
.doc-metaline { margin: -14px 0 18px; font-size: 12.5px; color: var(--muted); }
.inp--title { font-size: 16px; font-weight: 600; min-height: 44px; }
.doc-editor { min-height: 320px; resize: vertical; font-size: 14.5px; line-height: 1.75; padding: 14px 16px; tab-size: 4; }
.doc-count { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Belge görüntüleme ---------- */
.doc-paper { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); max-width: 860px; padding: 32px 36px 40px; }
.doc-paper__head { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 18px; }
.doc-paper__no { font-family: var(--mono); font-size: 12.5px; color: var(--primary-2); margin-bottom: 6px; }
.doc-paper__head h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.doc-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 22px; font-size: 13px; }
.doc-meta dt { color: var(--muted); }
.doc-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.doc-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.8; color: var(--foreground); }

@media (max-width: 640px) {
  .toolbar .inp:first-child { flex-basis: 100%; }
  .toolbar .dd { flex: 1 1 0; min-width: 0; }
  .table .opt { display: none; }
  .table th, .table td { padding-left: 12px; padding-right: 12px; }
  .doc-cell { max-width: calc(100vw - 170px); }
  .doc-paper { padding: 20px 18px 26px; border-radius: 12px; }
  .doc-paper__head h2 { font-size: 19px; }
  .doc-meta { grid-template-columns: 1fr; gap: 0; }
  .doc-meta dd { margin-bottom: 8px; }
  .level { flex-wrap: wrap; }
  .level__acts { width: 100%; justify-content: flex-start; padding-left: 44px; }
  .card__head { flex-wrap: wrap; }
  .card__head .inp--sm { max-width: none; width: 100%; }
}

/* ---------- Yazdırma: yalnızca belge ---------- */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .sb-wrap, .sb-scrim, .topbar, .page-head, .toast-save, .toasts, .note { display: none !important; }
  .app, .main, .content, .content__in { display: block !important; height: auto !important; overflow: visible !important; background: #fff !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .doc-paper { border: 0; box-shadow: none; padding: 0; max-width: none; background: #fff; color: #000; }
  .doc-paper__no { color: #000; }
  .doc-meta dt { color: #444; }
  .doc-text { color: #000; font-size: 12pt; line-height: 1.6; }
}

/* ---------- Tarih seçici ---------- */
.dp { position: relative; display: flex; align-items: center; }
.dp__btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; padding-right: 36px; }
.dp__btn .ic { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.dp__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp.is-empty .dp__val { color: var(--dim); }
.dp.is-open .dp__btn { border-color: var(--primary); box-shadow: var(--ring); }
.dp__btn:disabled { cursor: not-allowed; opacity: .6; }
.dp__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.dp__clear:hover { background: var(--hover); color: var(--foreground); }
.dp__clear .ic { width: 14px; height: 14px; }

.dpop {
  position: fixed; z-index: 110; width: 296px; padding: 10px; border-radius: 12px;
  background: var(--popover); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .5), 0 4px 8px -4px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top left;
  transition: opacity .18s ease-out, transform .18s ease-out;
}
.dpop.is-up { transform: translateY(8px) scale(.97); transform-origin: bottom left; }
.dpop[data-state="open"] { opacity: 1; transform: none; }
.dpop__nav { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; margin-bottom: 8px; }
.dpop__nav .dd { width: 100%; min-width: 0; }
.dpop__nav .dd__btn { width: 100%; min-width: 0; min-height: 32px; font-weight: 500; }
.tp__cell .dd, .tp__cell .dd__btn { width: 100%; }
.dpop__week, .dpop__grid { display: grid; grid-template-columns: repeat(7, 36px); justify-content: space-between; }
.dpop__week span { height: 32px; display: grid; place-items: center; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.dpop__day {
  position: relative; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  font-size: 13.5px; color: var(--foreground); font-variant-numeric: tabular-nums;
  transition: background-color .15s, color .15s;
}
.dpop__day:hover { background: var(--hover); }
.dpop__day:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; z-index: 1; }
.dpop__day.is-out { color: var(--dim); opacity: .55; }
.dpop__day.is-today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--primary); }
.dpop__day.is-sel { background: var(--primary); color: #fff; font-weight: 600; opacity: 1; }
.dpop__day.is-sel::after { background: #fff; }
.dpop__foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

/* ---------- Saat seçici (ÖÖ / ÖS) ---------- */
.tp { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tp__fields { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.tp__cell { flex: 1 1 78px; min-width: 58px; max-width: 78px; }
.tp__cell--ap { margin-left: 4px; }
.tp__cell .dd__btn { font-variant-numeric: tabular-nums; }
.tp.is-empty .tp__cell:not(.tp__cell--ap) .dd__val { color: var(--dim); }
.tp__colon { font-weight: 600; color: var(--muted); }
.tp__now .ic { width: 14px; height: 14px; }
.tp__clear { position: static; transform: none; }

@media (max-width: 640px) {
  .dpop { width: calc(100vw - 16px); max-width: 340px; }
  .dpop__week, .dpop__grid { grid-template-columns: repeat(7, 1fr); }
  .dpop__day { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .dpop { transition: none; } }

/* ==========================================================================
   v03: etiketler, belgeler, PDF düzenleyici, kişisel arşiv
   ========================================================================== */
.pill--ic { gap: 5px; }
.pill--ic .ic { width: 12px; height: 12px; }
.tagpill { display: inline-flex; align-items: center; height: 22px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-strong); font-size: 11.5px; white-space: nowrap; max-width: 100%; }
.tagpill b { padding: 0 6px; height: 100%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-2); font: 700 11px var(--mono); letter-spacing: .04em; }
.tagpill span { padding: 0 8px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.codepill { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-2); font: 700 12px var(--mono); letter-spacing: .06em; }
.inp--code { width: 90px; font: 700 14px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.code-sample { display: flex; align-items: center; min-height: 38px; font: 600 13px var(--mono); color: var(--foreground); }
.srcpill { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; padding: 1px 6px 1px 4px; border-radius: 5px; background: var(--danger-soft); color: var(--danger); font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
.srcpill .ic { width: 11px; height: 11px; }
.matrix__grp th { background: var(--tint); color: var(--foreground); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding-top: 14px; }
.perm-grp { margin: 10px 0 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.perm-grp:first-child { margin-top: 0; }

/* ---------- Düğme grubu (indir | sayı, düzenle | çoğalt | sil) ---------- */
.bgroup { display: inline-flex; align-items: stretch; border-radius: 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); vertical-align: middle; }
.bgroup > * { margin-left: -1px; }
.bgroup > *:first-child { margin-left: 0; border-top-left-radius: 9px; border-bottom-left-radius: 9px; }
.bgroup > *:last-child { border-top-right-radius: 9px; border-bottom-right-radius: 9px; }
.bgroup__btn.btn { border-radius: 0; box-shadow: none; position: relative; }
.bgroup__btn.btn:focus-visible, .bgroup__btn.btn:hover { z-index: 1; }
.bgroup__btn--danger.btn { color: var(--danger); }
.bgroup__btn--primary.btn { color: var(--primary-2); }
.bgroup__badge { display: flex; align-items: center; padding: 0 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--input); border: 1px solid var(--border-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.page-head__acts { align-items: center; }
.table .acts .bgroup .btn { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.table .acts .bgroup__badge { font-size: 12px; padding: 0 8px; }

/* ---------- Dosya kartları ---------- */
.filecard { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--tint); }
.filecard__ic, .filehero__ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); flex-shrink: 0; }
.filecard b { display: block; font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.filecard small { color: var(--muted); font-size: 12px; }
.filehero { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; max-width: 860px; }
.filehero__ic { width: 52px; height: 52px; }
.filehero__ic .ic { width: 24px; height: 24px; }
.filehero__main { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.filehero__main b { font-size: 15px; }
.filehero__main small { color: var(--muted); font-size: 12.5px; }
.filehero__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.filehero__acts { margin-top: 10px; width: 100%; }
.filehero .doc-meta { width: 100%; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.progress { height: 6px; border-radius: 99px; background: var(--active); overflow: hidden; margin-top: 6px; }
.progress span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .15s; }

/* ---------- Belge sayfası ---------- */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.doc-side { padding: 18px 20px; position: sticky; top: 12px; }
.doc-meta--card { grid-template-columns: max-content minmax(0, 1fr); margin: 0; align-items: center; }
.pdfview { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.pdfpage { display: block; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .55); max-width: 100%; height: auto !important; }
@media (max-width: 1100px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-side { position: static; order: -1; }
}

/* ---------- Düzenleyici (araç çubuğu + önizleme) ---------- */
.mde-card { margin-top: 16px; }
.mde { position: relative; }
.mde__tabs { display: none; gap: 4px; margin-bottom: 10px; padding: 4px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); width: max-content; }
.mde__tab { padding: 6px 16px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.mde__tab.is-on { background: var(--active); color: var(--foreground); }
.mde__panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mde__write { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: sticky; top: 8px; }
.mde__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.tb-group { display: flex; align-items: center; gap: 2px; }
.tb-sep { width: 1px; align-self: stretch; margin: 6px 0; background: var(--border-strong); }
.tb { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s; }
.tb .ic { width: 16px; height: 16px; }
.tb:hover { background: var(--hover); color: var(--foreground); }
.tb.is-on, .tb[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-2); }
.tb:focus-visible { outline: none; box-shadow: var(--ring); }
.tb:disabled { opacity: .4; pointer-events: none; }
.tip { position: fixed; z-index: 130; padding: 5px 9px; border-radius: 7px; background: var(--popover); border: 1px solid var(--border-strong); color: var(--foreground); font-size: 12px; white-space: nowrap; box-shadow: var(--shadow); pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s; }
.tip.is-on { opacity: 1; transform: none; }
.tip__k { margin-left: 8px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.mde textarea.mde__input { overflow: auto; min-height: 62vh; resize: vertical; font: 14px/1.7 var(--mono); padding: 14px 16px; tab-size: 4; }
.mde__help summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.mde__help div { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.mde__help code { font: 11.5px var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--hover); color: var(--foreground); }
.mde__preview { min-width: 0; border-radius: 12px; border: 1px solid var(--border); background: color-mix(in srgb, var(--background) 70%, #1b2a3c); }
.mde__phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.mde__phead span { display: inline-flex; align-items: center; gap: 6px; }
.mde__phead .ic { width: 15px; height: 15px; color: var(--muted); }
.mde__info { color: var(--muted); font-variant-numeric: tabular-nums; }
.mde__pages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px; max-height: 78vh; overflow: auto; }
.mde.is-narrow .mde__tabs { display: flex; }
.mde.is-narrow .mde__panes { grid-template-columns: 1fr; }
.mde.is-narrow .mde__write { position: static; }
.mde.is-narrow .mde__preview { display: none; }
.mde.is-narrow.is-preview .mde__write { display: none; }
.mde.is-narrow.is-preview .mde__preview { display: block; }
.mde.is-narrow .mde__pages { max-height: none; }
.mde.is-narrow textarea.mde__input { min-height: 50vh; }

/* ---------- Kişisel arşiv ---------- */
.usage { display: flex; align-items: center; gap: 12px; margin: -8px 0 16px; font-size: 12.5px; color: var(--muted); }
.usage__bar { width: 220px; max-width: 45%; height: 8px; border-radius: 99px; background: var(--active); overflow: hidden; }
.usage__bar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.usage.is-warn .usage__bar span { background: var(--warning); }
.dropcard, .card { position: relative; }
.dropcard.is-drop::after, .card.is-drop::after {
  content: "Bırakın, yüklensin"; position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border-radius: inherit;
  border: 2px dashed var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--foreground); font-weight: 600; pointer-events: none;
}
.plist { display: flex; flex-direction: column; }
.pitem { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.pitem:last-child { border-bottom: 0; }
.pitem:hover { background: var(--tint); }
.pitem__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--hover); color: var(--muted); flex-shrink: 0; }
.pitem__ic .ic { width: 18px; height: 18px; }
.pitem__main { flex: 1; min-width: 0; }
.pitem__main b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitem__main small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitem__acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pitem__acts .btn { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.pitem--busy .pitem__main { max-width: 360px; }
.empty--drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; }
.empty--drop .ic { width: 30px; height: 30px; color: var(--dim); }
.empty--drop p { margin: 0; max-width: 460px; }
.empty--drop small { color: var(--dim); }

@media (max-width: 760px) {
  .pitem { flex-wrap: wrap; padding: 12px 14px; }
  .pitem__acts { width: 100%; justify-content: flex-start; padding-left: 52px; }
  .page-head__acts { width: 100%; }
  .usage__bar { flex: 1; max-width: none; }
}

/* ---------- Belge ve taslak listeleri ---------- */
.llist { display: flex; flex-direction: column; }
.lgroup { position: sticky; top: 0; z-index: 1; padding: 8px 18px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--card-2); border-bottom: 1px solid var(--border); }
.lrow { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: var(--hover); }
.lrow:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--primary); }
.lrow__ic { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-2); }
.lrow__ic .ic { width: 19px; height: 19px; }
.lrow__ic.is-arch { background: var(--active); color: var(--muted); }
.lrow__ic.is-wait { background: var(--warning-soft); color: var(--warning); }
.lrow__ic.is-rej { background: var(--danger-soft); color: var(--danger); }
.lrow__ic.is-draft { background: var(--active); color: var(--foreground); }
.lrow__ic.is-lock { background: rgba(167, 139, 250, .15); color: #a78bfa; }
.lrow__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lrow__t { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.lrow__t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lrow__s { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow__m { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.lrow__m .tagpill { font-size: 11px; }
.lrow__side { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.lrow__date { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.lrow__date .ic { width: 14px; height: 14px; }
.lcode { font: 600 12px var(--mono); padding: 2px 7px; border-radius: 6px; background: var(--input); border: 1px solid var(--border-strong); color: var(--foreground); white-space: nowrap; }
.ldot { color: var(--dim); }
.lmuted { color: var(--muted); white-space: nowrap; }
.lperson { display: inline-flex; align-items: center; gap: 6px; color: var(--foreground); font-weight: 500; white-space: nowrap; }
.lav { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; color: #fff; letter-spacing: .02em; flex: none; }
@media (max-width: 760px) {
  .lrow { grid-template-columns: 34px minmax(0, 1fr); padding: 12px 14px; gap: 10px; }
  .lrow__ic { width: 34px; height: 34px; }
  .lrow__side { grid-column: 2; justify-content: flex-start; }
  .lrow__s { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* Dışarıdan PDF yükleme alanı */
.upstrip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--tint); }
.upstrip > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.upstrip b { font-size: 14px; }
.upstrip small { font-size: 12.5px; color: var(--muted); }
.upstrip__ic { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-2); flex: none; }
.upstrip.is-drop { border-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 640px) { .upstrip { flex-wrap: wrap; } .upstrip .btn { width: 100%; justify-content: center; } }
@media (max-width: 640px) {
  .toolbar > .inp:first-child { flex: 1 1 100%; }
  .toolbar .dd { min-width: 0; flex: 1 1 calc(50% - 5px); max-width: 100%; overflow: hidden; }
  .toolbar .dd .dd__btn { min-width: 0; width: 100%; }
  .toolbar .switch { flex: 1 1 100%; }
}

/* ---------- Çoklu seçici (etiketler, kişiler) ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.tsel { display: flex; flex-direction: column; gap: 8px; }
.tsel__h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.tsel__h b { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tsel__clear { border: 0; background: none; color: var(--primary-2); font: inherit; font-size: 12.5px; cursor: pointer; padding: 2px 4px; }
.tsel__sel { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 5px; overflow-x: auto; border: 1px solid var(--border-strong); background: var(--input); border-radius: 16px; }
.tsel__empty { padding: 0 10px; font-size: 13px; color: var(--dim); white-space: nowrap; }
.tsel__chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 4px 0 10px; flex: none; border-radius: 13px; background: var(--card-2); border: 1px solid var(--border-strong); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); font-size: 13px; font-weight: 500; }
.tsel__x { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; }
.tsel__x:hover { background: var(--hover); color: var(--foreground); }
.tsel__x .ic { width: 15px; height: 15px; }
.tsel__pool { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--tint); }
.tsel__pool[hidden] { display: none; }
.tsel__opt { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 13px; border: 1px solid transparent; background: var(--active); color: var(--foreground); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s; }
.tsel__opt:hover { background: var(--hover); border-color: var(--border-strong); }
.tsel__opt:focus-visible, .tsel__x:focus-visible { outline: none; box-shadow: var(--ring); }
.tsel__opt:disabled { opacity: .45; cursor: default; }
.tsel__code { font: 700 11px var(--mono); color: var(--primary-2); }
.tsel__sub { color: var(--muted); font-size: 11.5px; }
.tsel--compact .tsel__sel { min-height: 40px; }
.tsel--compact .tsel__chip, .tsel--compact .tsel__opt { height: 30px; font-size: 12.5px; }
.list-tags { margin-bottom: 14px; }

/* ---------------- Görevler ---------------- */
.lrow__ic.is-done { background: var(--success-soft); color: #34d399; }
.lrow__date.is-late { color: var(--danger); }
.tk-avs { display: inline-flex; align-items: center; }
.tk-avs .lav { margin-left: -4px; box-shadow: 0 0 0 2px var(--card); }
.tk-avs .lav:first-child { margin-left: 0; }
.tk-more { margin-left: 4px; font-size: 11px; color: var(--muted); }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .tk-grid { grid-template-columns: 1fr; } }
.tk-head-r { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tk-desc { margin: 0 0 16px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; color: var(--foreground); }
.tk-kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 18px; margin-bottom: 6px; }
.tk-kv { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-kv > span:first-child { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.tk-kv > b { font-size: 13.5px; font-weight: 500; }
.tk-sub { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tk-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-members li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--border); }
.tk-members li:last-child { border-bottom: 0; }
.tk-members li > div { min-width: 0; display: flex; flex-direction: column; }
.tk-members b { font-size: 13.5px; font-weight: 550; }
.tk-members small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-members .lav { width: 30px; height: 30px; font-size: 11.5px; }
.tk-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .tk-dates { grid-template-columns: 1fr; } }

/* Görev ilerleyişi (dikey adımlar) */
.tl { list-style: none; margin: 0; padding: 0; max-width: 520px; }
.tl__step { display: flex; }
.tl__rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.tl__dot { display: inline-flex; color: var(--dim); }
.tl__dot .ic { width: 24px; height: 24px; flex: none; }
.tl__step.is-done .tl__dot { color: rgba(42, 166, 230, .75); }
.tl--approved .tl__dot, .tl--published .tl__dot { color: #34d399 !important; }
.tl--revision .tl__dot, .tl--cancelled .tl__dot, .tl--declined .tl__dot { color: var(--danger) !important; }
.tl--paused .tl__dot { color: var(--warning) !important; }
.tl__line { width: 1.5px; flex: 1; min-height: 14px; background: var(--dim); opacity: .6; }
.tl__line.is-done { background: rgba(42, 166, 230, .7); opacity: 1; }
.tl__main { margin-left: 12px; padding-bottom: 22px; min-width: 0; }
.tl__step:last-child .tl__main { padding-bottom: 0; }
.tl__name { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 550; }
.tl__step:not(.is-done) .tl__name { color: var(--muted); font-weight: 500; }
.tl__ic { display: inline-flex; color: var(--muted); }
.tl__ic .ic { width: 14px; height: 14px; }
.tl__time { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.tl__note { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--hover); font-size: 12.5px; white-space: pre-wrap; border-left: 2px solid var(--border-strong); }
.tl--revision .tl__note { border-left-color: var(--danger); }

/* Canlı çalışma */
.lv-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 12px; font-size: 13px; }
.lv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.lv-dot.is-on { background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: lv-pulse 1.6s infinite; }
@keyframes lv-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@media (prefers-reduced-motion: reduce) { .lv-dot.is-on { animation: none; } }
.lv-people { display: flex; gap: 6px; flex-wrap: wrap; }
.lv-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--hover); border: 1px solid var(--border); font-size: 12.5px; }
.lv-chip small { color: var(--muted); font-size: 11px; }
.lv-chip__dot { width: 8px; height: 8px; border-radius: 50%; }
.lv-watch { height: calc(100vh - 230px); min-height: 420px; border-radius: 12px; border: 1px solid var(--border); }
.lv-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; color: #e2e8f0; text-align: center; padding: 24px; }
.lv-empty .ic { width: 30px; height: 30px; opacity: .7; }
.lv-empty p { margin: 0; color: #cbd5e1; font-size: 13px; }
.lv-card h3 { display: flex; align-items: center; gap: 6px; }
.lv-card h3 .ic { width: 15px; height: 15px; color: #ef4444; }
.lv-card .lv-people { margin-top: 10px; }
.lv-sync { display: block; font-size: 12px; color: var(--muted); }
.lv-sync.is-saving { color: var(--primary-2); }
.lv-sync.is-error { color: var(--danger); }
.lv-desc { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); white-space: pre-wrap; }
.tsel__tog { display: inline-flex; align-items: center; gap: 8px; min-width: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 4px 6px 4px 2px; border-radius: 8px; }
.tsel__tog:hover { background: var(--hover); }
.tsel__tog:focus-visible { outline: none; box-shadow: var(--ring); }
.tsel__chev { display: inline-flex; color: var(--muted); transition: transform .18s; }
.tsel__chev .ic { width: 15px; height: 15px; }
.tsel.is-closed .tsel__chev { transform: rotate(-90deg); }
.tsel__sum { font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.tsel__tog.has-sel .tsel__sum { color: var(--primary-2); font-weight: 600; font-family: var(--mono); font-size: 12px; }
.tsel.is-closed .tsel__body { display: none; }
.tsel__body { display: flex; flex-direction: column; gap: 8px; }

/* Dar alanlarda (düzenleyicinin yan paneli) saat seçici kutuya sığar */
.px-right .tp, .px-right .tp__fields { width: 100%; }
.px-right .tp__cell { max-width: none; }
.px-right .tp__cell .dd__btn { padding-left: 10px; padding-right: 8px; }
/* Canlı çalışma kartı */
.lv-card.is-alone .lv-people { opacity: .85; }

/* ---------------- Müzikçalar ---------------- */
.nav-item.is-on .nav-item__l .ic { color: var(--primary-2); }
.mp { position: fixed; left: 0; top: 0; z-index: 80; width: 280px; max-width: calc(100vw - 16px); color: #fff; border-radius: 24px; background: rgba(17, 17, 17, .72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 0 20px rgba(0, 0, 0, .2), 0 18px 40px -12px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 13px; user-select: none; }
.mp[hidden] { display: none; }
.mp.is-in { animation: mp-in .35s cubic-bezier(.2, .8, .2, 1) .05s both; }
@keyframes mp-in { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }
.mp.is-drag { cursor: grabbing; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 26px 50px -12px rgba(0, 0, 0, .8); }
.mp__full { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain; }
.mp__head { display: flex; align-items: center; gap: 4px; margin: -2px -4px 0; cursor: grab; touch-action: none; }
.mp__head b { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.mp__grip { display: inline-flex; color: rgba(255, 255, 255, .4); }
.mp__grip .ic { width: 16px; height: 16px; }
.mp__grow { flex: 1; }
.mp__ib { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: rgba(255, 255, 255, .7); cursor: pointer; transition: background .15s, color .15s, transform .15s; flex: none; }
.mp__ib .ic { width: 16px; height: 16px; }
.mp__ib:hover { background: rgba(17, 17, 17, .82); color: #fff; }
.mp__ib.is-on { color: #fff; background: rgba(255, 255, 255, .12); }
.mp__ib:focus-visible, .mp__cb:focus-visible, .mp__bar:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.mp__cover { position: relative; height: 158px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.mp__img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.mp__img[hidden], .mp__mthumb[hidden] { display: none; }
.mp__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255, 255, 255, .55); text-align: center; padding: 16px; }
.mp__empty[hidden] { display: none; }
.mp__empty .ic { width: 30px; height: 30px; }
/* Gömülü oynatıcı: yalnızca ses kipinde görünmez, video kipinde kapağın yerine geçer */
.mp__frame { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.mp__yt { width: 100%; height: 100%; border: 0; display: block; }
.mp.is-video .mp__frame { opacity: 1; pointer-events: auto; background: #000; }
.mp__info { text-align: center; min-width: 0; margin-top: 2px; }
.mp__title { margin: 0; font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp__sub { margin: 2px 0 0; font-size: 12px; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1em; }
.mp__seek { display: flex; flex-direction: column; gap: 4px; }
.mp__bar { position: relative; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .2); cursor: pointer; touch-action: none; }
.mp__bar::before { content: ""; position: absolute; inset: -8px 0; }
.mp__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: #fff; transition: width .25s cubic-bezier(.2, .8, .2, 1); }
.mp.is-playing .mp__fill { transition: none; }
.mp__times { display: flex; justify-content: space-between; font-size: 12.5px; color: #fff; font-variant-numeric: tabular-nums; }
.mp__ctl { display: flex; justify-content: center; }
.mp__pill { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(17, 17, 17, .6); }
.mp__cb { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background .15s, transform .15s, opacity .15s; flex: none; }
.mp__cb .ic { width: 20px; height: 20px; }
.mp__cb:hover { background: rgba(17, 17, 17, .82); transform: scale(1.1); }
.mp__cb:active { transform: scale(.9); }
.mp__cb.is-on { background: rgba(17, 17, 17, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.mp__cb:disabled { opacity: .35; cursor: default; transform: none; background: none; }
.mp__pill .mp__cb:not(.is-on):nth-child(1), .mp__pill .mp__cb:not(.is-on):nth-child(5) { color: rgba(255, 255, 255, .55); }
.mp__volrow { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.mp__vol { flex: 1; height: 4px; -webkit-appearance: none; appearance: none; border-radius: 999px; background: linear-gradient(90deg, #fff var(--v, 70%), rgba(255, 255, 255, .2) var(--v, 70%)); cursor: pointer; }
.mp__vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.mp__vol::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.mp__vol:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
/* Sıra paneli */
.mp__panel { display: none; flex-direction: column; gap: 8px; margin-top: 2px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); user-select: text; }
.mp.is-list .mp__panel { display: flex; }
.mp__add { display: flex; gap: 4px; align-items: center; }
.mp__in { flex: 1; min-width: 0; height: 32px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 12.5px; }
.mp__in::placeholder { color: rgba(255, 255, 255, .45); }
.mp__in:focus { outline: none; border-color: rgba(255, 255, 255, .4); }
.mp__results { display: flex; flex-direction: column; gap: 2px; max-height: 210px; overflow-y: auto; }
.mp__results:empty { display: none; }
.mp__res, .mp__q { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 4px; border-radius: 10px; }
.mp__res:hover, .mp__q:hover { background: rgba(255, 255, 255, .07); }
.mp__res img, .mp__q img { width: 44px; height: 30px; object-fit: cover; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.mp__res b, .mp__q b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp__res small, .mp__q small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp__resplay, .mp__resadd, .mp__qx { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: rgba(255, 255, 255, .75); cursor: pointer; }
.mp__resplay:hover, .mp__resadd:hover, .mp__qx:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mp__resplay .ic, .mp__resadd .ic, .mp__qx .ic { width: 15px; height: 15px; }
.mp__resclose { align-self: center; border: 0; background: none; color: rgba(255, 255, 255, .55); font: inherit; font-size: 12px; cursor: pointer; padding: 4px 8px; }
.mp__note { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 8px; color: rgba(255, 255, 255, .6); font-size: 12.5px; text-align: center; }
.mp__note .ic { width: 15px; height: 15px; }
.mp__qhead { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; }
.mp__qhead b { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.mp__qhead small { flex: 1; color: rgba(255, 255, 255, .45); font-size: 11.5px; }
.mp__clear { border: 0; background: none; color: rgba(255, 255, 255, .6); font: inherit; font-size: 12px; cursor: pointer; }
.mp__clear:hover { color: #fff; }
.mp__queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; max-height: 240px; overflow-y: auto; }
.mp__q { grid-template-columns: 18px 44px minmax(0, 1fr) auto; cursor: pointer; }
.mp__q.is-cur { background: rgba(255, 255, 255, .1); }
.mp__q.is-cur b { color: #fff; }
.mp__q.is-bad { opacity: .5; }
.mp__q.is-drag { opacity: .4; }
.mp__qn { display: inline-flex; justify-content: center; font-size: 11px; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.mp__qn .ic { width: 14px; height: 14px; color: #fff; }
.mp__qempty { padding: 10px 6px; font-size: 12.5px; color: rgba(255, 255, 255, .55); text-align: center; }
/* Küçük hâl */
.mp__mini { display: none; position: relative; align-items: center; gap: 8px; padding: 6px 8px 8px 6px; cursor: grab; touch-action: none; overflow: hidden; border-radius: inherit; }
.mp.is-min { width: 300px; border-radius: 18px; background: rgba(17, 17, 17, .86); }
.mp.is-min .mp__mini { display: flex; }
.mp.is-min .mp__full { position: absolute; left: 0; top: 0; width: 280px; visibility: hidden; opacity: 0; pointer-events: none; }
.mp__mthumb { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; -webkit-user-drag: none; }
.mp__mtitle { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp__mini .mp__cb { width: 30px; height: 30px; }
.mp__mini .mp__cb .ic { width: 18px; height: 18px; }
.mp__mbar { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 999px; background: rgba(255, 255, 255, .15); }
.mp__mfill { height: 100%; width: 0; border-radius: inherit; background: #fff; }
@media (prefers-reduced-motion: reduce) { .mp__cb, .mp__fill { transition: none; } .mp__cb:hover, .mp__cb:active { transform: none; } }

/* ---------------- Renk seçici ---------------- */
.cpi { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 26px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--input); cursor: pointer; flex: none; }
.cpi:hover { border-color: rgba(255, 255, 255, .3); }
.cpi:focus-visible, .cpi[aria-expanded="true"] { outline: none; box-shadow: var(--ring); }
.cpi:disabled { opacity: .4; cursor: default; }
.cpi__sw { display: block; width: 100%; height: 100%; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cp { position: fixed; z-index: 400; width: 272px; display: grid; gap: 12px; padding: 14px; border-radius: 10px; background: var(--popover); border: 1px solid var(--border-strong); box-shadow: var(--shadow); color: var(--foreground); }
.cp[hidden] { display: none; }
.cp__sel { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; cursor: crosshair; touch-action: none; background-image: linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, transparent); }
.cp__sel:focus-visible { outline: none; box-shadow: var(--ring); }
.cp__dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); transform: translate(-50%, -50%); pointer-events: none; }
.cp__row { display: flex; align-items: center; gap: 14px; }
.cp__drop { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--input); color: var(--muted); cursor: pointer; }
.cp__drop:hover { color: var(--foreground); background: var(--hover); }
.cp__drop .ic { width: 16px; height: 16px; }
.cp__drop[hidden] { display: none; }
.cp__sliders { flex: 1; display: grid; gap: 6px; }
.cp__hue, .cp__alpha { position: relative; height: 12px; margin: 2px 0; border-radius: 999px; cursor: pointer; touch-action: none; }
.cp__hue { background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.cp__alpha { background: repeating-conic-gradient(#cbd5e1 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.cp__alpha[hidden] { display: none; }
.cp__atrack { position: absolute; inset: 0; border-radius: inherit; }
.cp__hue:focus-visible, .cp__alpha:focus-visible { outline: none; box-shadow: var(--ring); }
.cp__thumb { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--background); border: 1px solid rgba(42, 166, 230, .6); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transform: translate(-50%, -50%); pointer-events: none; }
.cp__modes { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--input); border: 1px solid var(--border); }
.cp__mode { flex: 1; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 600 11px var(--mono); cursor: pointer; }
.cp__mode[aria-selected="true"] { background: var(--active); color: var(--foreground); }
.cp__out { display: flex; align-items: center; }
.cp__out > * + * { margin-left: -1px; }
.cp__in { width: 100%; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--border-strong); background: var(--card-2); color: var(--foreground); font: 12px var(--mono); border-radius: 0; }
.cp__out > :first-child, .cp__out > :first-child .cp__in { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.cp__out > :last-child, .cp__out > :last-child .cp__in { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.cp__in:focus { outline: none; border-color: var(--primary); position: relative; z-index: 1; }
.cp__in[readonly] { color: var(--muted); }
.cp__hexw, .cp__pct { position: relative; display: flex; }
.cp__hexw { flex: 1; }
.cp__hash { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: var(--muted); pointer-events: none; z-index: 2; }
.cp__in--hex { padding-left: 20px; text-transform: uppercase; }
.cp__pct { width: 62px; flex: none; }
.cp__in--pct { padding-right: 20px; }
.cp__pctsign { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }

/* ---------------- Şu an sitede olanlar ---------------- */
.online { display: flex; align-items: center; min-height: 36px; }
.avc { position: relative; display: flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 999px; }
.avc:focus-visible { outline: none; box-shadow: var(--ring); }
.avc__img, .avc__more { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--background); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; color: #fff; font-size: 12px; font-weight: 600; background: var(--card-2); transition: transform .15s; }
.avc__img + .avc__img, .avc__img + .avc__more { margin-left: -12px; }
.avc__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avc__more { background: var(--foreground); color: var(--background); font-size: 11.5px; }
.avc:hover .avc__img, .avc:hover .avc__more { transform: translateY(-1px); }
.avc:hover .avc__more { background: #cbd5e1; }
.avc__dot { position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid var(--background); }
.avc__dot.is-static { position: static; display: inline-block; flex: none; }
.avc-pop { position: fixed; z-index: 300; width: 270px; max-height: min(420px, 70vh); display: flex; flex-direction: column; border-radius: 12px; background: var(--popover); border: 1px solid var(--border-strong); box-shadow: var(--shadow); overflow: hidden; }
.avc-pop__h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.avc-pop__h b { font-size: 13.5px; }
.avc-pop__h small { margin-left: auto; color: var(--muted); font-size: 12px; }
.avc-pop__list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.avc-pop__list li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.avc-pop__list li:hover { background: var(--hover); }
.avc-pop__list li > div { min-width: 0; display: flex; flex-direction: column; }
.avc-pop__list b { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avc-pop__list small { font-size: 11.5px; color: var(--muted); }
.avc-pop__img { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; color: #fff; font-size: 11.5px; font-weight: 600; background: var(--card-2); }
.avc-pop__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Birimler ---------------- */
.ws__grp { padding: 8px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.ws__none { padding: 6px 10px 10px; font-size: 12.5px; color: var(--muted); }
.ws__unit { position: relative; }
.ws__unit.is-cur { color: var(--foreground); background: var(--hover); }
.ws__unit .ws__ck { margin-left: auto; color: var(--primary-2); }
.ws__opt--danger, .ws__opt--danger .ic { color: var(--danger) !important; }
.lockbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 20px; background: rgba(248, 113, 113, .14); border-bottom: 1px solid rgba(248, 113, 113, .35); color: #fecaca; font-size: 13px; }
.lockbar[hidden] { display: none; }
.lockbar > .ic { width: 16px; height: 16px; color: var(--danger); flex: none; }
.lockbar span { flex: 1; min-width: 200px; }
.unit-cell { display: flex; flex-wrap: wrap; gap: 4px; }
td.unit-cell { display: table-cell; }
td.unit-cell .pill { margin: 2px 4px 2px 0; }
.add-units { border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }

/* ---------------- Duyurular ---------------- */
.tabs .grow { flex: 1; }
.switch--sm em { font-size: 12.5px; }
.ann-list { display: flex; flex-direction: column; gap: 12px; }
.ann { position: relative; padding: 16px 18px 14px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.ann::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); opacity: .6; }
.ann--important::before { background: var(--warning); opacity: 1; }
.ann--urgent::before { background: var(--danger); opacity: 1; }
.ann--urgent { border-color: rgba(248, 113, 113, .35); background: linear-gradient(180deg, rgba(248, 113, 113, .06), transparent 60%), var(--card); }
.ann.is-new { box-shadow: 0 0 0 1px rgba(42, 166, 230, .35); }
.ann.is-old { opacity: .65; }
.ann__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ann__pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ann__acts { display: flex; gap: 4px; align-items: center; }
.ann__new { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; }
.ann__title { margin: 10px 0 0; font-size: 16px; font-weight: 650; }
.ann__body { margin-top: 8px; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--foreground); }
.ann__body a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 2px; }
.ann__meta { margin-top: 12px; }
.ann-readers { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.ann-readers li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--border); font-size: 13px; }
.ann-readers small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.seg { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--input); border: 1px solid var(--border-strong); }
.seg__b { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg__b .ic { width: 15px; height: 15px; }
.seg__b[aria-checked="true"] { background: var(--active); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border-strong); }
.seg__b:disabled { opacity: .4; cursor: not-allowed; }
.seg__b:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---- v17: görev türleri ---- */
.seg--3 { flex-wrap: wrap; }
.seg--3 .seg__b { min-width: 0; flex: 1 1 140px; padding: 0 8px; white-space: nowrap; }
.tk-ck-edit { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tk-ck-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; align-items: center; width: 100%; }
.tk-ck-n { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.tk-ck { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tk-ck li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-bottom: 1px solid var(--border); }
.tk-ck li:last-child { border-bottom: 0; }
.tk-ck li > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.tk-ck li > div > span { font-size: 13.5px; overflow-wrap: anywhere; }
.tk-ck li small { font-size: 11.5px; color: var(--muted); }
.tk-ck li.is-done > div > span { color: var(--muted); text-decoration: line-through; }
.tk-donenote { margin: 4px 0 0; padding: 6px 9px; border-radius: 8px; background: var(--input); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--foreground); }

/* ---- v17: kaydırma çubuğu ---- */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .26); }
::-webkit-scrollbar-thumb:active { background-color: rgba(124, 140, 255, .55); }
::-webkit-scrollbar-corner { background: transparent; }
.no-scrollbar { scrollbar-width: none; }
.level.is-off .level__main, .level.is-off .level__no { opacity: .55; }
.level__main b .pill { margin-left: 8px; vertical-align: 1px; }
.td-ip, .table td.ip-masked { font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--muted); }
.page-head .switch--head, .switch--head { padding-top: 0; white-space: nowrap; }
.tk-kv > .pill { align-self: flex-start; justify-self: start; width: max-content; }
